blob: d259324bddc61d8c054888a52116d281ebecc3ac [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.
drh74f4d3e2015-03-09 10:40:48 +00003# Generated by GNU Autoconf 2.62 for sqlite 3.8.9.
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,
drh710658c2012-01-16 13:00:05 +00006# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
drh75897232000-05-29 14:26:00 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
drh710658c2012-01-16 13:00:05 +00009## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
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
drh710658c2012-01-16 13:00:05 +000015if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
a.rottmann84e63352003-03-24 09:42:16 +000016 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
drh710658c2012-01-16 13:00:05 +000023 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
drh8b727472009-01-19 18:18:40 +000025esac
drh710658c2012-01-16 13:00:05 +000026
a.rottmann84e63352003-03-24 09:42:16 +000027fi
drh8b727472009-01-19 18:18:40 +000028
29
drh710658c2012-01-16 13:00:05 +000030
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
drh8b727472009-01-19 18:18:40 +000040as_nl='
41'
42export as_nl
43# Printing a long string crashes Solaris 7 /usr/bin/printf.
44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
drh710658c2012-01-16 13:00:05 +000047if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
drh8b727472009-01-19 18:18:40 +000048 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;
drh710658c2012-01-16 13:00:05 +000058 case $arg in
drh8b727472009-01-19 18:18:40 +000059 *"$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
drh710658c2012-01-16 13:00:05 +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
87
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.
drh710658c2012-01-16 13:00:05 +000097case $0 in
drh8b727472009-01-19 18:18:40 +000098 *[\\/]* ) 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=.
drh710658c2012-01-16 13:00:05 +0000104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105done
drh8b727472009-01-19 18:18:40 +0000106IFS=$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
drh710658c2012-01-16 13:00:05 +0000117 { (exit 1); exit 1; }
drh8b727472009-01-19 18:18:40 +0000118fi
119
drh710658c2012-01-16 13:00:05 +0000120# Work around bugs in pre-3.0 UWIN ksh.
121for as_var in ENV MAIL MAILPATH
122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
drh8b727472009-01-19 18:18:40 +0000123done
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
drh710658c2012-01-16 13:00:05 +0000134# 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
drh710658c2012-01-16 13:00:05 +0000149# 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
drh710658c2012-01-16 13:00:05 +0000169# CDPATH.
170$as_unset CDPATH
mlcreech94984912008-03-04 19:03:08 +0000171
172
drh710658c2012-01-16 13:00:05 +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
178fi
179
180 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}
196
197exitcode=0
198if as_func_success; then
199 :
200else
201 exitcode=1
202 echo as_func_success failed.
203fi
204
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
212else
213 exitcode=1
214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
240 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=.
245 case $as_dir in
246 /*)
247 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(
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 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" || {
447
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
450 # 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.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
drh8b727472009-01-19 18:18:40 +0000458 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" ||
drh710658c2012-01-16 13:00:05 +0000474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
a.rottmann84e63352003-03-24 09:42:16 +0000476
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
drh710658c2012-01-16 13:00:05 +0000485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
drh8b727472009-01-19 18:18:40 +0000492ECHO_C= ECHO_N= ECHO_T=
drh710658c2012-01-16 13:00:05 +0000493case `echo -n x` in
drh8b727472009-01-19 18:18:40 +0000494-n*)
drh710658c2012-01-16 13:00:05 +0000495 case `echo 'x\c'` in
drh8b727472009-01-19 18:18:40 +0000496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drh710658c2012-01-16 13:00:05 +0000497 *) ECHO_C='\c';;
drh8b727472009-01-19 18:18:40 +0000498 esac;;
499*)
500 ECHO_N='-n';;
501esac
drh710658c2012-01-16 13:00:05 +0000502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505else
506 as_expr=false
507fi
a.rottmann84e63352003-03-24 09:42:16 +0000508
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
drh710658c2012-01-16 13:00:05 +0000537 as_mkdir_p=:
a.rottmann84e63352003-03-24 09:42:16 +0000538else
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
drh710658c2012-01-16 13:00:05 +0000556 case $1 in
drh8b727472009-01-19 18:18:40 +0000557 -*)set "./$1";;
558 esac;
drh710658c2012-01-16 13:00:05 +0000559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
drh8b727472009-01-19 18:18:40 +0000560 ???[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
drh710658c2012-01-16 13:00:05 +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
drh710658c2012-01-16 13:00:05 +0000723exec 7<&0 </dev/null 6>&1
drh8b727472009-01-19 18:18:40 +0000724
drh71eb93e2001-09-28 01:34:43 +0000725# Name of the host.
drh710658c2012-01-16 13:00:05 +0000726# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
drh71eb93e2001-09-28 01:34:43 +0000727# 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=
drh710658c2012-01-16 13:00:05 +0000741SHELL=${CONFIG_SHELL-/bin/sh}
drh71eb93e2001-09-28 01:34:43 +0000742
a.rottmann84e63352003-03-24 09:42:16 +0000743# Identity of this package.
mlcreechb87057f2008-03-06 07:19:20 +0000744PACKAGE_NAME='sqlite'
745PACKAGE_TARNAME='sqlite'
drh74f4d3e2015-03-09 10:40:48 +0000746PACKAGE_VERSION='3.8.9'
747PACKAGE_STRING='sqlite 3.8.9'
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
drh710658c2012-01-16 13:00:05 +0000786ac_subst_vars='SHELL
dana9f39fd2011-08-12 16:34:42 +0000787PATH_SEPARATOR
drh710658c2012-01-16 13:00:05 +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
drh710658c2012-01-16 13:00:05 +0000871ALLOWRELEASE
872TEMP_STORE
873BUILD_EXEEXT
874SQLITE_OS_UNIX
875SQLITE_OS_WIN
drh710658c2012-01-16 13:00:05 +0000876TARGET_EXEEXT
877TCL_VERSION
878TCL_BIN_DIR
879TCL_SRC_DIR
drh710658c2012-01-16 13:00:05 +0000880TCL_INCLUDE_SPEC
881TCL_LIB_FILE
882TCL_LIB_FLAG
883TCL_LIB_SPEC
884TCL_STUB_LIB_FILE
885TCL_STUB_LIB_FLAG
886TCL_STUB_LIB_SPEC
drhd881ce82015-03-31 17:01:52 +0000887TCL_SHLIB_SUFFIX
drh710658c2012-01-16 13:00:05 +0000888HAVE_TCL
889TARGET_READLINE_LIBS
890TARGET_READLINE_INC
891TARGET_HAVE_READLINE
892TARGET_DEBUG
893USE_AMALGAMATION
894OPT_FEATURE_FLAGS
895USE_GCOV
896BUILD_CFLAGS
897LIBOBJS
898LTLIBOBJS'
a.rottmann84e63352003-03-24 09:42:16 +0000899ac_subst_files=''
drh8b727472009-01-19 18:18:40 +0000900ac_user_opts='
901enable_option_checking
902enable_shared
903enable_static
904with_pic
905enable_fast_install
906with_gnu_ld
907enable_libtool_lock
908enable_largefile
drh8b727472009-01-19 18:18:40 +0000909enable_threadsafe
drh8b727472009-01-19 18:18:40 +0000910enable_releasemode
911enable_tempstore
912enable_tcl
913with_tcl
914enable_readline
915with_readline_lib
916with_readline_inc
917enable_debug
918enable_amalgamation
919enable_load_extension
920enable_gcov
921'
922 ac_precious_vars='build_alias
923host_alias
924target_alias
925CC
926CFLAGS
927LDFLAGS
928LIBS
929CPPFLAGS
vapier6acb2cf2009-01-28 04:46:28 +0000930CPP
931TCLLIBDIR'
drh8b727472009-01-19 18:18:40 +0000932
drh75897232000-05-29 14:26:00 +0000933
934# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000935ac_init_help=
936ac_init_version=false
drh8b727472009-01-19 18:18:40 +0000937ac_unrecognized_opts=
938ac_unrecognized_sep=
drh75897232000-05-29 14:26:00 +0000939# The variables have the same names as the options, with
940# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000941cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000942exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000943no_create=
drh75897232000-05-29 14:26:00 +0000944no_recursion=
945prefix=NONE
946program_prefix=NONE
947program_suffix=NONE
948program_transform_name=s,x,x,
949silent=
950site=
951srcdir=
drh75897232000-05-29 14:26:00 +0000952verbose=
953x_includes=NONE
954x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000955
956# Installation directory options.
957# These are left unexpanded so users can "make install exec_prefix=/foo"
958# and all the variables that are supposed to be based on exec_prefix
959# by default will actually change.
960# Use braces instead of parens because sh, perl, etc. also accept them.
drh8b727472009-01-19 18:18:40 +0000961# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000962bindir='${exec_prefix}/bin'
963sbindir='${exec_prefix}/sbin'
964libexecdir='${exec_prefix}/libexec'
drh8b727472009-01-19 18:18:40 +0000965datarootdir='${prefix}/share'
966datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000967sysconfdir='${prefix}/etc'
968sharedstatedir='${prefix}/com'
969localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000970includedir='${prefix}/include'
971oldincludedir='/usr/include'
drh8b727472009-01-19 18:18:40 +0000972docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
973infodir='${datarootdir}/info'
974htmldir='${docdir}'
975dvidir='${docdir}'
976pdfdir='${docdir}'
977psdir='${docdir}'
978libdir='${exec_prefix}/lib'
979localedir='${datarootdir}/locale'
980mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000981
drh75897232000-05-29 14:26:00 +0000982ac_prev=
drh8b727472009-01-19 18:18:40 +0000983ac_dashdash=
drh75897232000-05-29 14:26:00 +0000984for ac_option
985do
drh75897232000-05-29 14:26:00 +0000986 # If the previous option needs an argument, assign it.
987 if test -n "$ac_prev"; then
drh8b727472009-01-19 18:18:40 +0000988 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000989 ac_prev=
990 continue
991 fi
992
drh8b727472009-01-19 18:18:40 +0000993 case $ac_option in
drh710658c2012-01-16 13:00:05 +0000994 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
995 *) ac_optarg=yes ;;
drh8b727472009-01-19 18:18:40 +0000996 esac
drh75897232000-05-29 14:26:00 +0000997
998 # Accept the important Cygnus configure options, so we can diagnose typos.
999
drh8b727472009-01-19 18:18:40 +00001000 case $ac_dashdash$ac_option in
1001 --)
1002 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +00001003
1004 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1005 ac_prev=bindir ;;
1006 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +00001007 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001008
1009 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +00001010 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +00001011 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +00001012 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001013
1014 -cache-file | --cache-file | --cache-fil | --cache-fi \
1015 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1016 ac_prev=cache_file ;;
1017 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1018 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +00001019 cache_file=$ac_optarg ;;
1020
1021 --config-cache | -C)
1022 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +00001023
drh8b727472009-01-19 18:18:40 +00001024 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +00001025 ac_prev=datadir ;;
drh8b727472009-01-19 18:18:40 +00001026 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +00001027 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001028
drh8b727472009-01-19 18:18:40 +00001029 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1030 | --dataroo | --dataro | --datar)
1031 ac_prev=datarootdir ;;
1032 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1033 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1034 datarootdir=$ac_optarg ;;
1035
drh75897232000-05-29 14:26:00 +00001036 -disable-* | --disable-*)
drh8b727472009-01-19 18:18:40 +00001037 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001038 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drh710658c2012-01-16 13:00:05 +00001040 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1041 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001042 ac_useropt_orig=$ac_useropt
1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1045 *"
1046"enable_$ac_useropt"
1047"*) ;;
1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1049 ac_unrecognized_sep=', ';;
1050 esac
1051 eval enable_$ac_useropt=no ;;
1052
1053 -docdir | --docdir | --docdi | --doc | --do)
1054 ac_prev=docdir ;;
1055 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1056 docdir=$ac_optarg ;;
1057
1058 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1059 ac_prev=dvidir ;;
1060 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1061 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001062
1063 -enable-* | --enable-*)
drh8b727472009-01-19 18:18:40 +00001064 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001065 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001066 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drh710658c2012-01-16 13:00:05 +00001067 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1068 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001069 ac_useropt_orig=$ac_useropt
1070 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1071 case $ac_user_opts in
1072 *"
1073"enable_$ac_useropt"
1074"*) ;;
1075 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1076 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001077 esac
drh8b727472009-01-19 18:18:40 +00001078 eval enable_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001079
1080 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1081 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1082 | --exec | --exe | --ex)
1083 ac_prev=exec_prefix ;;
1084 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1085 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1086 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001087 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001088
1089 -gas | --gas | --ga | --g)
1090 # Obsolete; use --with-gas.
1091 with_gas=yes ;;
1092
drh71eb93e2001-09-28 01:34:43 +00001093 -help | --help | --hel | --he | -h)
1094 ac_init_help=long ;;
1095 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1096 ac_init_help=recursive ;;
1097 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1098 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001099
1100 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001101 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001102 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001103 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001104
drh8b727472009-01-19 18:18:40 +00001105 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1106 ac_prev=htmldir ;;
1107 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1108 | --ht=*)
1109 htmldir=$ac_optarg ;;
1110
drh75897232000-05-29 14:26:00 +00001111 -includedir | --includedir | --includedi | --included | --include \
1112 | --includ | --inclu | --incl | --inc)
1113 ac_prev=includedir ;;
1114 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1115 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001116 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001117
1118 -infodir | --infodir | --infodi | --infod | --info | --inf)
1119 ac_prev=infodir ;;
1120 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001121 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001122
1123 -libdir | --libdir | --libdi | --libd)
1124 ac_prev=libdir ;;
1125 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001126 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001127
1128 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1129 | --libexe | --libex | --libe)
1130 ac_prev=libexecdir ;;
1131 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1132 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001133 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001134
drh8b727472009-01-19 18:18:40 +00001135 -localedir | --localedir | --localedi | --localed | --locale)
1136 ac_prev=localedir ;;
1137 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1138 localedir=$ac_optarg ;;
1139
drh75897232000-05-29 14:26:00 +00001140 -localstatedir | --localstatedir | --localstatedi | --localstated \
drh8b727472009-01-19 18:18:40 +00001141 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001142 ac_prev=localstatedir ;;
1143 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh8b727472009-01-19 18:18:40 +00001144 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001145 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001146
1147 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1148 ac_prev=mandir ;;
1149 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001150 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001151
1152 -nfp | --nfp | --nf)
1153 # Obsolete; use --without-fp.
1154 with_fp=no ;;
1155
1156 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001157 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001158 no_create=yes ;;
1159
1160 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1161 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1162 no_recursion=yes ;;
1163
1164 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1165 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1166 | --oldin | --oldi | --old | --ol | --o)
1167 ac_prev=oldincludedir ;;
1168 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1169 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1170 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001171 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001172
1173 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1174 ac_prev=prefix ;;
1175 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001176 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001177
1178 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1179 | --program-pre | --program-pr | --program-p)
1180 ac_prev=program_prefix ;;
1181 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1182 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001183 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001184
1185 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1186 | --program-suf | --program-su | --program-s)
1187 ac_prev=program_suffix ;;
1188 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1189 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001190 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001191
1192 -program-transform-name | --program-transform-name \
1193 | --program-transform-nam | --program-transform-na \
1194 | --program-transform-n | --program-transform- \
1195 | --program-transform | --program-transfor \
1196 | --program-transfo | --program-transf \
1197 | --program-trans | --program-tran \
1198 | --progr-tra | --program-tr | --program-t)
1199 ac_prev=program_transform_name ;;
1200 -program-transform-name=* | --program-transform-name=* \
1201 | --program-transform-nam=* | --program-transform-na=* \
1202 | --program-transform-n=* | --program-transform-=* \
1203 | --program-transform=* | --program-transfor=* \
1204 | --program-transfo=* | --program-transf=* \
1205 | --program-trans=* | --program-tran=* \
1206 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001207 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001208
drh8b727472009-01-19 18:18:40 +00001209 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1210 ac_prev=pdfdir ;;
1211 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1212 pdfdir=$ac_optarg ;;
1213
1214 -psdir | --psdir | --psdi | --psd | --ps)
1215 ac_prev=psdir ;;
1216 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1217 psdir=$ac_optarg ;;
1218
drh75897232000-05-29 14:26:00 +00001219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1220 | -silent | --silent | --silen | --sile | --sil)
1221 silent=yes ;;
1222
1223 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1224 ac_prev=sbindir ;;
1225 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1226 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001227 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001228
1229 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1230 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1231 | --sharedst | --shareds | --shared | --share | --shar \
1232 | --sha | --sh)
1233 ac_prev=sharedstatedir ;;
1234 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1235 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1236 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1237 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001238 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001239
1240 -site | --site | --sit)
1241 ac_prev=site ;;
1242 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001243 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001244
1245 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1246 ac_prev=srcdir ;;
1247 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001248 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001249
1250 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1251 | --syscon | --sysco | --sysc | --sys | --sy)
1252 ac_prev=sysconfdir ;;
1253 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1254 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001255 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001256
1257 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001258 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001259 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001260 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001261
1262 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1263 verbose=yes ;;
1264
drh71eb93e2001-09-28 01:34:43 +00001265 -version | --version | --versio | --versi | --vers | -V)
1266 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001267
1268 -with-* | --with-*)
drh8b727472009-01-19 18:18:40 +00001269 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001270 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001271 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drh710658c2012-01-16 13:00:05 +00001272 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1273 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001274 ac_useropt_orig=$ac_useropt
1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1277 *"
1278"with_$ac_useropt"
1279"*) ;;
1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001282 esac
drh8b727472009-01-19 18:18:40 +00001283 eval with_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001284
1285 -without-* | --without-*)
drh8b727472009-01-19 18:18:40 +00001286 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001287 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drh710658c2012-01-16 13:00:05 +00001289 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1290 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001291 ac_useropt_orig=$ac_useropt
1292 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1293 case $ac_user_opts in
1294 *"
1295"with_$ac_useropt"
1296"*) ;;
1297 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1298 ac_unrecognized_sep=', ';;
1299 esac
1300 eval with_$ac_useropt=no ;;
drh75897232000-05-29 14:26:00 +00001301
1302 --x)
1303 # Obsolete; use --with-x.
1304 with_x=yes ;;
1305
1306 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1307 | --x-incl | --x-inc | --x-in | --x-i)
1308 ac_prev=x_includes ;;
1309 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1310 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001311 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001312
1313 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1314 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1315 ac_prev=x_libraries ;;
1316 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1317 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001318 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001319
drh710658c2012-01-16 13:00:05 +00001320 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1321Try \`$0 --help' for more information." >&2
1322 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001323 ;;
1324
drh71eb93e2001-09-28 01:34:43 +00001325 *=*)
1326 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1327 # Reject names that are not valid shell variable names.
drh710658c2012-01-16 13:00:05 +00001328 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1329 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1330 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001331 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001332 export $ac_envvar ;;
1333
drh75897232000-05-29 14:26:00 +00001334 *)
drh71eb93e2001-09-28 01:34:43 +00001335 # FIXME: should be removed in autoconf 3.0.
drh8b727472009-01-19 18:18:40 +00001336 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +00001337 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001338 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drh710658c2012-01-16 13:00:05 +00001339 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
drh75897232000-05-29 14:26:00 +00001340 ;;
1341
1342 esac
1343done
1344
1345if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001346 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
drh710658c2012-01-16 13:00:05 +00001347 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1348 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00001349fi
1350
drh8b727472009-01-19 18:18:40 +00001351if test -n "$ac_unrecognized_opts"; then
1352 case $enable_option_checking in
1353 no) ;;
drh710658c2012-01-16 13:00:05 +00001354 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1355 { (exit 1); exit 1; }; } ;;
1356 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
mlcreech636a9952008-05-05 22:52:56 +00001357 esac
drh8b727472009-01-19 18:18:40 +00001358fi
drh866108f2008-05-13 00:57:21 +00001359
drh8b727472009-01-19 18:18:40 +00001360# Check all directory arguments for consistency.
1361for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1362 datadir sysconfdir sharedstatedir localstatedir includedir \
1363 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1364 libdir localedir mandir
drh866108f2008-05-13 00:57:21 +00001365do
drh8b727472009-01-19 18:18:40 +00001366 eval ac_val=\$$ac_var
1367 # Remove trailing slashes.
drh71eb93e2001-09-28 01:34:43 +00001368 case $ac_val in
drh8b727472009-01-19 18:18:40 +00001369 */ )
1370 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1371 eval $ac_var=\$ac_val;;
drh75897232000-05-29 14:26:00 +00001372 esac
drh8b727472009-01-19 18:18:40 +00001373 # Be sure to have absolute directory names.
1374 case $ac_val in
1375 [\\/$]* | ?:[\\/]* ) continue;;
1376 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1377 esac
drh710658c2012-01-16 13:00:05 +00001378 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1379 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00001380done
drh75897232000-05-29 14:26:00 +00001381
drh71eb93e2001-09-28 01:34:43 +00001382# There might be people who depend on the old broken behavior: `$host'
1383# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001384# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001385build=$build_alias
1386host=$host_alias
1387target=$target_alias
drh75897232000-05-29 14:26:00 +00001388
a.rottmann84e63352003-03-24 09:42:16 +00001389# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001390if test "x$host_alias" != x; then
1391 if test "x$build_alias" = x; then
1392 cross_compiling=maybe
drh710658c2012-01-16 13:00:05 +00001393 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1394 If a cross compiler is detected then cross compile mode will be used." >&2
drh71eb93e2001-09-28 01:34:43 +00001395 elif test "x$build_alias" != "x$host_alias"; then
1396 cross_compiling=yes
1397 fi
1398fi
1399
1400ac_tool_prefix=
1401test -n "$host_alias" && ac_tool_prefix=$host_alias-
1402
1403test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001404
a.rottmann84e63352003-03-24 09:42:16 +00001405
drh8b727472009-01-19 18:18:40 +00001406ac_pwd=`pwd` && test -n "$ac_pwd" &&
1407ac_ls_di=`ls -di .` &&
1408ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
drh710658c2012-01-16 13:00:05 +00001409 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1410 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001411test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
drh710658c2012-01-16 13:00:05 +00001412 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1413 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001414
1415
drh75897232000-05-29 14:26:00 +00001416# Find the source files, if location was not specified.
1417if test -z "$srcdir"; then
1418 ac_srcdir_defaulted=yes
drh8b727472009-01-19 18:18:40 +00001419 # Try the directory containing this script, then the parent directory.
1420 ac_confdir=`$as_dirname -- "$as_myself" ||
1421$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1422 X"$as_myself" : 'X\(//\)[^/]' \| \
1423 X"$as_myself" : 'X\(//\)$' \| \
1424 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1425$as_echo X"$as_myself" |
1426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1427 s//\1/
1428 q
1429 }
1430 /^X\(\/\/\)[^/].*/{
1431 s//\1/
1432 q
1433 }
1434 /^X\(\/\/\)$/{
1435 s//\1/
1436 q
1437 }
1438 /^X\(\/\).*/{
1439 s//\1/
1440 q
1441 }
1442 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001443 srcdir=$ac_confdir
drh8b727472009-01-19 18:18:40 +00001444 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001445 srcdir=..
1446 fi
1447else
1448 ac_srcdir_defaulted=no
1449fi
drh8b727472009-01-19 18:18:40 +00001450if test ! -r "$srcdir/$ac_unique_file"; then
1451 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
drh710658c2012-01-16 13:00:05 +00001452 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1453 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +00001454fi
drh8b727472009-01-19 18:18:40 +00001455ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1456ac_abs_confdir=`(
drh710658c2012-01-16 13:00:05 +00001457 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1458 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00001459 pwd)`
1460# When building in place, set srcdir=.
1461if test "$ac_abs_confdir" = "$ac_pwd"; then
1462 srcdir=.
1463fi
1464# Remove unnecessary trailing slashes from srcdir.
1465# Double slashes in file names in object file debugging info
1466# mess up M-x gdb in Emacs.
1467case $srcdir in
1468*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1469esac
1470for ac_var in $ac_precious_vars; do
1471 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1472 eval ac_env_${ac_var}_value=\$${ac_var}
1473 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1475done
drh75897232000-05-29 14:26:00 +00001476
drh71eb93e2001-09-28 01:34:43 +00001477#
1478# Report the --help message.
1479#
1480if test "$ac_init_help" = "long"; then
1481 # Omit some internal or obsolete options to make the list less imposing.
1482 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001483 cat <<_ACEOF
drh74f4d3e2015-03-09 10:40:48 +00001484\`configure' configures sqlite 3.8.9 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001485
1486Usage: $0 [OPTION]... [VAR=VALUE]...
1487
1488To assign environment variables (e.g., CC, CFLAGS...), specify them as
1489VAR=VALUE. See below for descriptions of some of the useful variables.
1490
1491Defaults for the options are specified in brackets.
1492
1493Configuration:
1494 -h, --help display this help and exit
1495 --help=short display options specific to this package
1496 --help=recursive display the short help of all the included packages
1497 -V, --version display version information and exit
drh710658c2012-01-16 13:00:05 +00001498 -q, --quiet, --silent do not print \`checking...' messages
drh71eb93e2001-09-28 01:34:43 +00001499 --cache-file=FILE cache test results in FILE [disabled]
1500 -C, --config-cache alias for \`--cache-file=config.cache'
1501 -n, --no-create do not create output files
1502 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1503
drh71eb93e2001-09-28 01:34:43 +00001504Installation directories:
1505 --prefix=PREFIX install architecture-independent files in PREFIX
drh8b727472009-01-19 18:18:40 +00001506 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001507 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh8b727472009-01-19 18:18:40 +00001508 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001509
1510By default, \`make install' will install all the files in
1511\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1512an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1513for instance \`--prefix=\$HOME'.
1514
1515For better control, use the options below.
1516
1517Fine tuning of the installation directories:
drh8b727472009-01-19 18:18:40 +00001518 --bindir=DIR user executables [EPREFIX/bin]
1519 --sbindir=DIR system admin executables [EPREFIX/sbin]
1520 --libexecdir=DIR program executables [EPREFIX/libexec]
1521 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1522 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1523 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1524 --libdir=DIR object code libraries [EPREFIX/lib]
1525 --includedir=DIR C header files [PREFIX/include]
1526 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1527 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1528 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1529 --infodir=DIR info documentation [DATAROOTDIR/info]
1530 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1531 --mandir=DIR man documentation [DATAROOTDIR/man]
1532 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1533 --htmldir=DIR html documentation [DOCDIR]
1534 --dvidir=DIR dvi documentation [DOCDIR]
1535 --pdfdir=DIR pdf documentation [DOCDIR]
1536 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001537_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001538
a.rottmann84e63352003-03-24 09:42:16 +00001539 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001540
1541System types:
1542 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001543 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1544_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001545fi
1546
1547if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001548 case $ac_init_help in
drh74f4d3e2015-03-09 10:40:48 +00001549 short | recursive ) echo "Configuration of sqlite 3.8.9:";;
mlcreechb87057f2008-03-06 07:19:20 +00001550 esac
a.rottmann84e63352003-03-24 09:42:16 +00001551 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001552
1553Optional Features:
drh8b727472009-01-19 18:18:40 +00001554 --disable-option-checking ignore unrecognized --enable/--with options
drh71eb93e2001-09-28 01:34:43 +00001555 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1556 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh8b727472009-01-19 18:18:40 +00001557 --enable-shared[=PKGS] build shared libraries [default=yes]
1558 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001559 --enable-fast-install[=PKGS]
1560 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001561 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001562 --disable-largefile omit support for large files
drh05c7e0b2015-01-10 14:27:17 +00001563 --disable-threadsafe Disable mutexing
drh94e4f822006-02-15 02:00:25 +00001564 --enable-releasemode Support libtool link to release mode
1565 --enable-tempstore Use an in-ram database for temporary tables
1566 (never,no,yes,always)
1567 --disable-tcl do not build TCL extension
vapier7f19c022007-02-17 14:46:31 +00001568 --disable-readline disable readline support [default=detect]
drh94e4f822006-02-15 02:00:25 +00001569 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001570 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001571 separately
drh05c7e0b2015-01-10 14:27:17 +00001572 --disable-load-extension
1573 Disable loading of external extensions
mlcreechaac7b932008-04-01 02:45:22 +00001574 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001575
1576Optional Packages:
1577 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1578 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001579 --with-pic try to use only PIC/non-PIC objects [default=use
1580 both]
mlcreech636a9952008-05-05 22:52:56 +00001581 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh94e4f822006-02-15 02:00:25 +00001582 --with-tcl=DIR directory containing tcl configuration
1583 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001584 --with-readline-lib specify readline library
1585 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001586
1587Some influential environment variables:
1588 CC C compiler command
1589 CFLAGS C compiler flags
1590 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1591 nonstandard directory <lib dir>
drh8b727472009-01-19 18:18:40 +00001592 LIBS libraries to pass to the linker, e.g. -l<library>
drh710658c2012-01-16 13:00:05 +00001593 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
drh8b727472009-01-19 18:18:40 +00001594 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001595 CPP C preprocessor
vapier6acb2cf2009-01-28 04:46:28 +00001596 TCLLIBDIR Where to install tcl plugin
drh71eb93e2001-09-28 01:34:43 +00001597
1598Use these variables to override the choices made by `configure' or to help
1599it to find libraries and programs with nonstandard names/locations.
1600
a.rottmann84e63352003-03-24 09:42:16 +00001601_ACEOF
drh8b727472009-01-19 18:18:40 +00001602ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001603fi
1604
1605if test "$ac_init_help" = "recursive"; then
1606 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001607 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh8b727472009-01-19 18:18:40 +00001608 test -d "$ac_dir" ||
1609 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1610 continue
a.rottmann84e63352003-03-24 09:42:16 +00001611 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001612
drh8b727472009-01-19 18:18:40 +00001613case "$ac_dir" in
1614.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615*)
1616 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1617 # A ".." for each directory in $ac_dir_suffix.
1618 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1619 case $ac_top_builddir_sub in
1620 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1621 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1622 esac ;;
1623esac
1624ac_abs_top_builddir=$ac_pwd
1625ac_abs_builddir=$ac_pwd$ac_dir_suffix
1626# for backward compatibility:
1627ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001628
a.rottmann84e63352003-03-24 09:42:16 +00001629case $srcdir in
drh8b727472009-01-19 18:18:40 +00001630 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001631 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +00001632 ac_top_srcdir=$ac_top_builddir_sub
1633 ac_abs_top_srcdir=$ac_pwd ;;
1634 [\\/]* | ?:[\\/]* ) # Absolute name.
drh866108f2008-05-13 00:57:21 +00001635 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +00001636 ac_top_srcdir=$srcdir
1637 ac_abs_top_srcdir=$srcdir ;;
1638 *) # Relative name.
1639 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1640 ac_top_srcdir=$ac_top_build_prefix$srcdir
1641 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
drh866108f2008-05-13 00:57:21 +00001642esac
drh8b727472009-01-19 18:18:40 +00001643ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
drh866108f2008-05-13 00:57:21 +00001644
drh8b727472009-01-19 18:18:40 +00001645 cd "$ac_dir" || { ac_status=$?; continue; }
1646 # Check for guested configure.
1647 if test -f "$ac_srcdir/configure.gnu"; then
1648 echo &&
1649 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1650 elif test -f "$ac_srcdir/configure"; then
1651 echo &&
1652 $SHELL "$ac_srcdir/configure" --help=recursive
drh866108f2008-05-13 00:57:21 +00001653 else
drh8b727472009-01-19 18:18:40 +00001654 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1655 fi || ac_status=$?
1656 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001657 done
1658fi
1659
drh8b727472009-01-19 18:18:40 +00001660test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001661if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001662 cat <<\_ACEOF
drh74f4d3e2015-03-09 10:40:48 +00001663sqlite configure 3.8.9
drh710658c2012-01-16 13:00:05 +00001664generated by GNU Autoconf 2.62
drh71eb93e2001-09-28 01:34:43 +00001665
drh710658c2012-01-16 13:00:05 +00001666Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16672002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001668This configure script is free software; the Free Software Foundation
1669gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001670_ACEOF
drh8b727472009-01-19 18:18:40 +00001671 exit
drh71eb93e2001-09-28 01:34:43 +00001672fi
drh8b727472009-01-19 18:18:40 +00001673cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001674This file contains any messages produced by compilers while
1675running configure, to aid debugging if configure makes a mistake.
1676
drh74f4d3e2015-03-09 10:40:48 +00001677It was created by sqlite $as_me 3.8.9, which was
drh710658c2012-01-16 13:00:05 +00001678generated by GNU Autoconf 2.62. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00001679
1680 $ $0 $@
1681
a.rottmann84e63352003-03-24 09:42:16 +00001682_ACEOF
drh8b727472009-01-19 18:18:40 +00001683exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00001684{
1685cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001686## --------- ##
1687## Platform. ##
1688## --------- ##
drh71eb93e2001-09-28 01:34:43 +00001689
1690hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1691uname -m = `(uname -m) 2>/dev/null || echo unknown`
1692uname -r = `(uname -r) 2>/dev/null || echo unknown`
1693uname -s = `(uname -s) 2>/dev/null || echo unknown`
1694uname -v = `(uname -v) 2>/dev/null || echo unknown`
1695
1696/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1697/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1698
1699/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1700/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1701/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh8b727472009-01-19 18:18:40 +00001702/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00001703/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1704/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1705/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1706
drh71eb93e2001-09-28 01:34:43 +00001707_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00001708
1709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1710for as_dir in $PATH
1711do
1712 IFS=$as_save_IFS
1713 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00001714 $as_echo "PATH: $as_dir"
1715done
drh8b727472009-01-19 18:18:40 +00001716IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00001717
drh71eb93e2001-09-28 01:34:43 +00001718} >&5
1719
a.rottmann84e63352003-03-24 09:42:16 +00001720cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001721
a.rottmann84e63352003-03-24 09:42:16 +00001722
1723## ----------- ##
1724## Core tests. ##
1725## ----------- ##
1726
1727_ACEOF
1728
drh71eb93e2001-09-28 01:34:43 +00001729
1730# Keep a trace of the command line.
1731# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00001732# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00001733# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00001734# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00001735ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00001736ac_configure_args0=
1737ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00001738ac_must_keep_next=false
1739for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00001740do
a.rottmann84e63352003-03-24 09:42:16 +00001741 for ac_arg
1742 do
1743 case $ac_arg in
1744 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1745 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1746 | -silent | --silent | --silen | --sile | --sil)
1747 continue ;;
drh8b727472009-01-19 18:18:40 +00001748 *\'*)
1749 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00001750 esac
1751 case $ac_pass in
drh710658c2012-01-16 13:00:05 +00001752 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
a.rottmann84e63352003-03-24 09:42:16 +00001753 2)
drh710658c2012-01-16 13:00:05 +00001754 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00001755 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00001756 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00001757 else
a.rottmann964dbb12004-02-26 19:47:42 +00001758 case $ac_arg in
1759 *=* | --config-cache | -C | -disable-* | --disable-* \
1760 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1761 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1762 | -with-* | --with-* | -without-* | --without-* | --x)
1763 case "$ac_configure_args0 " in
1764 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1765 esac
1766 ;;
1767 -* ) ac_must_keep_next=true ;;
1768 esac
a.rottmann84e63352003-03-24 09:42:16 +00001769 fi
drh710658c2012-01-16 13:00:05 +00001770 ac_configure_args="$ac_configure_args '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00001771 ;;
1772 esac
1773 done
drh71eb93e2001-09-28 01:34:43 +00001774done
drh710658c2012-01-16 13:00:05 +00001775$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1776$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
drh71eb93e2001-09-28 01:34:43 +00001777
1778# When interrupted or exit'd, cleanup temporary files, and complete
1779# config.log. We remove comments because anyway the quotes in there
1780# would cause problems or look ugly.
drh8b727472009-01-19 18:18:40 +00001781# WARNING: Use '\'' to represent an apostrophe within the trap.
1782# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00001783trap 'exit_status=$?
1784 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00001785 {
1786 echo
1787
drh710658c2012-01-16 13:00:05 +00001788 cat <<\_ASBOX
1789## ---------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00001790## Cache variables. ##
drh710658c2012-01-16 13:00:05 +00001791## ---------------- ##
1792_ASBOX
a.rottmann84e63352003-03-24 09:42:16 +00001793 echo
1794 # The following way of writing the cache mishandles newlines in values,
drh8b727472009-01-19 18:18:40 +00001795(
1796 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1797 eval ac_val=\$$ac_var
1798 case $ac_val in #(
1799 *${as_nl}*)
1800 case $ac_var in #(
drh710658c2012-01-16 13:00:05 +00001801 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1802$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
drh8b727472009-01-19 18:18:40 +00001803 esac
1804 case $ac_var in #(
1805 _ | IFS | as_nl) ;; #(
1806 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drh710658c2012-01-16 13:00:05 +00001807 *) $as_unset $ac_var ;;
drh8b727472009-01-19 18:18:40 +00001808 esac ;;
1809 esac
1810 done
drh71eb93e2001-09-28 01:34:43 +00001811 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +00001812 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1813 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00001814 sed -n \
drh8b727472009-01-19 18:18:40 +00001815 "s/'\''/'\''\\\\'\'''\''/g;
1816 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1817 ;; #(
drh866108f2008-05-13 00:57:21 +00001818 *)
drh8b727472009-01-19 18:18:40 +00001819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh866108f2008-05-13 00:57:21 +00001820 ;;
drh8b727472009-01-19 18:18:40 +00001821 esac |
1822 sort
1823)
a.rottmann84e63352003-03-24 09:42:16 +00001824 echo
1825
drh710658c2012-01-16 13:00:05 +00001826 cat <<\_ASBOX
1827## ----------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00001828## Output variables. ##
drh710658c2012-01-16 13:00:05 +00001829## ----------------- ##
1830_ASBOX
a.rottmann84e63352003-03-24 09:42:16 +00001831 echo
1832 for ac_var in $ac_subst_vars
1833 do
drh8b727472009-01-19 18:18:40 +00001834 eval ac_val=\$$ac_var
1835 case $ac_val in
1836 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1837 esac
1838 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00001839 done | sort
1840 echo
1841
1842 if test -n "$ac_subst_files"; then
drh710658c2012-01-16 13:00:05 +00001843 cat <<\_ASBOX
1844## ------------------- ##
drh8b727472009-01-19 18:18:40 +00001845## File substitutions. ##
drh710658c2012-01-16 13:00:05 +00001846## ------------------- ##
1847_ASBOX
a.rottmann84e63352003-03-24 09:42:16 +00001848 echo
1849 for ac_var in $ac_subst_files
1850 do
drh8b727472009-01-19 18:18:40 +00001851 eval ac_val=\$$ac_var
1852 case $ac_val in
1853 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1854 esac
1855 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00001856 done | sort
1857 echo
1858 fi
1859
1860 if test -s confdefs.h; then
drh710658c2012-01-16 13:00:05 +00001861 cat <<\_ASBOX
1862## ----------- ##
a.rottmann84e63352003-03-24 09:42:16 +00001863## confdefs.h. ##
drh710658c2012-01-16 13:00:05 +00001864## ----------- ##
1865_ASBOX
a.rottmann84e63352003-03-24 09:42:16 +00001866 echo
drh8b727472009-01-19 18:18:40 +00001867 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00001868 echo
1869 fi
1870 test "$ac_signal" != 0 &&
drh8b727472009-01-19 18:18:40 +00001871 $as_echo "$as_me: caught signal $ac_signal"
1872 $as_echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00001873 } >&5
drh8b727472009-01-19 18:18:40 +00001874 rm -f core *.core core.conftest.* &&
1875 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00001876 exit $exit_status
drh8b727472009-01-19 18:18:40 +00001877' 0
drh71eb93e2001-09-28 01:34:43 +00001878for ac_signal in 1 2 13 15; do
drh710658c2012-01-16 13:00:05 +00001879 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
drh71eb93e2001-09-28 01:34:43 +00001880done
1881ac_signal=0
1882
1883# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh8b727472009-01-19 18:18:40 +00001884rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00001885
a.rottmann84e63352003-03-24 09:42:16 +00001886# Predefined preprocessor variables.
1887
1888cat >>confdefs.h <<_ACEOF
1889#define PACKAGE_NAME "$PACKAGE_NAME"
1890_ACEOF
1891
drh710658c2012-01-16 13:00:05 +00001892
a.rottmann84e63352003-03-24 09:42:16 +00001893cat >>confdefs.h <<_ACEOF
1894#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1895_ACEOF
1896
drh710658c2012-01-16 13:00:05 +00001897
a.rottmann84e63352003-03-24 09:42:16 +00001898cat >>confdefs.h <<_ACEOF
1899#define PACKAGE_VERSION "$PACKAGE_VERSION"
1900_ACEOF
1901
drh710658c2012-01-16 13:00:05 +00001902
a.rottmann84e63352003-03-24 09:42:16 +00001903cat >>confdefs.h <<_ACEOF
1904#define PACKAGE_STRING "$PACKAGE_STRING"
1905_ACEOF
1906
a.rottmann84e63352003-03-24 09:42:16 +00001907
dana9f39fd2011-08-12 16:34:42 +00001908cat >>confdefs.h <<_ACEOF
drh710658c2012-01-16 13:00:05 +00001909#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
dana9f39fd2011-08-12 16:34:42 +00001910_ACEOF
1911
a.rottmann84e63352003-03-24 09:42:16 +00001912
drh71eb93e2001-09-28 01:34:43 +00001913# Let the site file select an alternate cache file if it wants to.
drh8b727472009-01-19 18:18:40 +00001914# Prefer an explicitly selected file to automatically selected ones.
1915ac_site_file1=NONE
1916ac_site_file2=NONE
1917if test -n "$CONFIG_SITE"; then
drh710658c2012-01-16 13:00:05 +00001918 ac_site_file1=$CONFIG_SITE
drh8b727472009-01-19 18:18:40 +00001919elif test "x$prefix" != xNONE; then
1920 ac_site_file1=$prefix/share/config.site
1921 ac_site_file2=$prefix/etc/config.site
1922else
1923 ac_site_file1=$ac_default_prefix/share/config.site
1924 ac_site_file2=$ac_default_prefix/etc/config.site
drh75897232000-05-29 14:26:00 +00001925fi
drh8b727472009-01-19 18:18:40 +00001926for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1927do
1928 test "x$ac_site_file" = xNONE && continue
drh710658c2012-01-16 13:00:05 +00001929 if test -r "$ac_site_file"; then
1930 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
drh8b727472009-01-19 18:18:40 +00001931$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00001932 sed 's/^/| /' "$ac_site_file" >&5
drh710658c2012-01-16 13:00:05 +00001933 . "$ac_site_file"
drh75897232000-05-29 14:26:00 +00001934 fi
1935done
1936
1937if test -r "$cache_file"; then
drh710658c2012-01-16 13:00:05 +00001938 # Some versions of bash will fail to source /dev/null (special
1939 # files actually), so we avoid doing that.
1940 if test -f "$cache_file"; then
1941 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00001942$as_echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00001943 case $cache_file in
drh8b727472009-01-19 18:18:40 +00001944 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1945 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00001946 esac
1947 fi
drh75897232000-05-29 14:26:00 +00001948else
drh710658c2012-01-16 13:00:05 +00001949 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00001950$as_echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00001951 >$cache_file
1952fi
1953
1954# Check that the precious variables saved in the cache have kept the same
1955# value.
1956ac_cache_corrupted=false
drh8b727472009-01-19 18:18:40 +00001957for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00001958 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1959 eval ac_new_set=\$ac_env_${ac_var}_set
drh8b727472009-01-19 18:18:40 +00001960 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1961 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00001962 case $ac_old_set,$ac_new_set in
1963 set,)
drh710658c2012-01-16 13:00:05 +00001964 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00001965$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001966 ac_cache_corrupted=: ;;
1967 ,set)
drh710658c2012-01-16 13:00:05 +00001968 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00001969$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001970 ac_cache_corrupted=: ;;
1971 ,);;
1972 *)
1973 if test "x$ac_old_val" != "x$ac_new_val"; then
drh8b727472009-01-19 18:18:40 +00001974 # differences in whitespace do not lead to failure.
1975 ac_old_val_w=`echo x $ac_old_val`
1976 ac_new_val_w=`echo x $ac_new_val`
1977 if test "$ac_old_val_w" != "$ac_new_val_w"; then
drh710658c2012-01-16 13:00:05 +00001978 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00001979$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1980 ac_cache_corrupted=:
1981 else
drh710658c2012-01-16 13:00:05 +00001982 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00001983$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1984 eval $ac_var=\$ac_old_val
1985 fi
drh710658c2012-01-16 13:00:05 +00001986 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
drh8b727472009-01-19 18:18:40 +00001987$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
drh710658c2012-01-16 13:00:05 +00001988 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
drh8b727472009-01-19 18:18:40 +00001989$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
drh71eb93e2001-09-28 01:34:43 +00001990 fi;;
1991 esac
a.rottmann84e63352003-03-24 09:42:16 +00001992 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00001993 if test "$ac_new_set" = set; then
1994 case $ac_new_val in
drh8b727472009-01-19 18:18:40 +00001995 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00001996 *) ac_arg=$ac_var=$ac_new_val ;;
1997 esac
1998 case " $ac_configure_args " in
1999 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
drh710658c2012-01-16 13:00:05 +00002000 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00002001 esac
2002 fi
2003done
2004if $ac_cache_corrupted; then
drh710658c2012-01-16 13:00:05 +00002005 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
drh8b727472009-01-19 18:18:40 +00002006$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
drh710658c2012-01-16 13:00:05 +00002007 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2008$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2009 { (exit 1); exit 1; }; }
drh75897232000-05-29 14:26:00 +00002010fi
drh710658c2012-01-16 13:00:05 +00002011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
drh8b727472009-01-19 18:18:40 +00002035
drh75897232000-05-29 14:26:00 +00002036ac_ext=c
drh75897232000-05-29 14:26:00 +00002037ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00002038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2040ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00002041
a.rottmann84e63352003-03-24 09:42:16 +00002042
2043
drh04446102009-06-15 00:04:06 +00002044sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
vapierfaa68db2009-04-01 07:38:31 +00002045if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
drh710658c2012-01-16 13:00:05 +00002046{ { $as_echo "$as_me:$LINENO: error: configure script is out of date:
vapierfaa68db2009-04-01 07:38:31 +00002047 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2048 top level VERSION file = $sqlite_version_sanity_check
drh710658c2012-01-16 13:00:05 +00002049please regen with autoconf" >&5
2050$as_echo "$as_me: error: configure script is out of date:
2051 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2052 top level VERSION file = $sqlite_version_sanity_check
2053please regen with autoconf" >&2;}
2054 { (exit 1); exit 1; }; }
vapierfaa68db2009-04-01 07:38:31 +00002055fi
2056
drh75897232000-05-29 14:26:00 +00002057#########
drh71eb93e2001-09-28 01:34:43 +00002058# Programs needed
drh75897232000-05-29 14:26:00 +00002059#
mlcreech636a9952008-05-05 22:52:56 +00002060case `pwd` in
2061 *\ * | *\ *)
drh710658c2012-01-16 13:00:05 +00002062 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
drh8b727472009-01-19 18:18:40 +00002063$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00002064esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002065
mlcreech94984912008-03-04 19:03:08 +00002066
mlcreech636a9952008-05-05 22:52:56 +00002067
vapier6acb2cf2009-01-28 04:46:28 +00002068macro_version='2.2.6'
2069macro_revision='1.3012'
a.rottmann9bc8b932004-02-29 15:18:31 +00002070
mlcreech94984912008-03-04 19:03:08 +00002071
mlcreech94984912008-03-04 19:03:08 +00002072
a.rottmann9bc8b932004-02-29 15:18:31 +00002073
mlcreech636a9952008-05-05 22:52:56 +00002074
2075
2076
2077
2078
2079
2080
2081
2082
2083ltmain="$ac_aux_dir/ltmain.sh"
2084
drh71eb93e2001-09-28 01:34:43 +00002085ac_aux_dir=
drh8b727472009-01-19 18:18:40 +00002086for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
drh0fe0c462011-09-22 00:56:38 +00002087 if test -f "$ac_dir/install-sh"; then
2088 ac_aux_dir=$ac_dir
2089 ac_install_sh="$ac_aux_dir/install-sh -c"
2090 break
2091 elif test -f "$ac_dir/install.sh"; then
2092 ac_aux_dir=$ac_dir
2093 ac_install_sh="$ac_aux_dir/install.sh -c"
2094 break
2095 elif test -f "$ac_dir/shtool"; then
2096 ac_aux_dir=$ac_dir
2097 ac_install_sh="$ac_aux_dir/shtool install -c"
2098 break
2099 fi
drh71eb93e2001-09-28 01:34:43 +00002100done
2101if test -z "$ac_aux_dir"; then
drh710658c2012-01-16 13:00:05 +00002102 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2103$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2104 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002105fi
drh8b727472009-01-19 18:18:40 +00002106
2107# These three variables are undocumented and unsupported,
2108# and are intended to be withdrawn in a future Autoconf release.
2109# They can cause serious problems if a builder's source tree is in a directory
2110# whose full name contains unusual characters.
2111ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2112ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2113ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2114
drh71eb93e2001-09-28 01:34:43 +00002115
2116# Make sure we can run config.sub.
drh8b727472009-01-19 18:18:40 +00002117$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
drh710658c2012-01-16 13:00:05 +00002118 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2119$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2120 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002121
drh710658c2012-01-16 13:00:05 +00002122{ $as_echo "$as_me:$LINENO: checking build system type" >&5
drh8b727472009-01-19 18:18:40 +00002123$as_echo_n "checking build system type... " >&6; }
drh710658c2012-01-16 13:00:05 +00002124if test "${ac_cv_build+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002125 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002126else
drh8b727472009-01-19 18:18:40 +00002127 ac_build_alias=$build_alias
2128test "x$ac_build_alias" = x &&
2129 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2130test "x$ac_build_alias" = x &&
drh710658c2012-01-16 13:00:05 +00002131 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2132$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2133 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00002134ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
drh710658c2012-01-16 13:00:05 +00002135 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2136$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2137 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002138
2139fi
drh710658c2012-01-16 13:00:05 +00002140{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
drh8b727472009-01-19 18:18:40 +00002141$as_echo "$ac_cv_build" >&6; }
2142case $ac_cv_build in
2143*-*-*) ;;
drh710658c2012-01-16 13:00:05 +00002144*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2145$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2146 { (exit 1); exit 1; }; };;
drh8b727472009-01-19 18:18:40 +00002147esac
drh71eb93e2001-09-28 01:34:43 +00002148build=$ac_cv_build
drh8b727472009-01-19 18:18:40 +00002149ac_save_IFS=$IFS; IFS='-'
2150set x $ac_cv_build
2151shift
2152build_cpu=$1
2153build_vendor=$2
2154shift; shift
2155# Remember, the first character of IFS is used to create $*,
2156# except with old shells:
2157build_os=$*
2158IFS=$ac_save_IFS
2159case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002160
a.rottmann84e63352003-03-24 09:42:16 +00002161
drh710658c2012-01-16 13:00:05 +00002162{ $as_echo "$as_me:$LINENO: checking host system type" >&5
drh8b727472009-01-19 18:18:40 +00002163$as_echo_n "checking host system type... " >&6; }
drh710658c2012-01-16 13:00:05 +00002164if test "${ac_cv_host+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002165 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002166else
drh8b727472009-01-19 18:18:40 +00002167 if test "x$host_alias" = x; then
2168 ac_cv_host=$ac_cv_build
2169else
2170 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
drh710658c2012-01-16 13:00:05 +00002171 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2172$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2173 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00002174fi
drh71eb93e2001-09-28 01:34:43 +00002175
2176fi
drh710658c2012-01-16 13:00:05 +00002177{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
drh8b727472009-01-19 18:18:40 +00002178$as_echo "$ac_cv_host" >&6; }
2179case $ac_cv_host in
2180*-*-*) ;;
drh710658c2012-01-16 13:00:05 +00002181*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2182$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2183 { (exit 1); exit 1; }; };;
drh8b727472009-01-19 18:18:40 +00002184esac
drh71eb93e2001-09-28 01:34:43 +00002185host=$ac_cv_host
drh8b727472009-01-19 18:18:40 +00002186ac_save_IFS=$IFS; IFS='-'
2187set x $ac_cv_host
2188shift
2189host_cpu=$1
2190host_vendor=$2
2191shift; shift
2192# Remember, the first character of IFS is used to create $*,
2193# except with old shells:
2194host_os=$*
2195IFS=$ac_save_IFS
2196case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002197
a.rottmann84e63352003-03-24 09:42:16 +00002198
drh71eb93e2001-09-28 01:34:43 +00002199ac_ext=c
2200ac_cpp='$CPP $CPPFLAGS'
2201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2203ac_compiler_gnu=$ac_cv_c_compiler_gnu
2204if test -n "$ac_tool_prefix"; then
2205 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2206set dummy ${ac_tool_prefix}gcc; ac_word=$2
drh710658c2012-01-16 13:00:05 +00002207{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002208$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00002209if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002210 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002211else
2212 if test -n "$CC"; then
2213 ac_cv_prog_CC="$CC" # Let the user override the test.
2214else
a.rottmann84e63352003-03-24 09:42:16 +00002215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216for as_dir in $PATH
2217do
2218 IFS=$as_save_IFS
2219 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00002220 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002221 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 +00002222 ac_cv_prog_CC="${ac_tool_prefix}gcc"
drh710658c2012-01-16 13:00:05 +00002223 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002224 break 2
2225 fi
2226done
drh710658c2012-01-16 13:00:05 +00002227done
drh8b727472009-01-19 18:18:40 +00002228IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002229
2230fi
2231fi
2232CC=$ac_cv_prog_CC
2233if test -n "$CC"; then
drh710658c2012-01-16 13:00:05 +00002234 { $as_echo "$as_me:$LINENO: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002235$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002236else
drh710658c2012-01-16 13:00:05 +00002237 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002238$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002239fi
2240
drh8b727472009-01-19 18:18:40 +00002241
drh71eb93e2001-09-28 01:34:43 +00002242fi
2243if test -z "$ac_cv_prog_CC"; then
2244 ac_ct_CC=$CC
2245 # Extract the first word of "gcc", so it can be a program name with args.
2246set dummy gcc; ac_word=$2
drh710658c2012-01-16 13:00:05 +00002247{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002248$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00002249if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002250 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002251else
2252 if test -n "$ac_ct_CC"; then
2253 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2254else
a.rottmann84e63352003-03-24 09:42:16 +00002255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256for as_dir in $PATH
2257do
2258 IFS=$as_save_IFS
2259 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00002260 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002261 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 +00002262 ac_cv_prog_ac_ct_CC="gcc"
drh710658c2012-01-16 13:00:05 +00002263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002264 break 2
2265 fi
2266done
drh710658c2012-01-16 13:00:05 +00002267done
drh8b727472009-01-19 18:18:40 +00002268IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002269
2270fi
2271fi
2272ac_ct_CC=$ac_cv_prog_ac_ct_CC
2273if test -n "$ac_ct_CC"; then
drh710658c2012-01-16 13:00:05 +00002274 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002275$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002276else
drh710658c2012-01-16 13:00:05 +00002277 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002278$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002279fi
2280
drh8b727472009-01-19 18:18:40 +00002281 if test "x$ac_ct_CC" = x; then
2282 CC=""
2283 else
2284 case $cross_compiling:$ac_tool_warned in
2285yes:)
drh710658c2012-01-16 13:00:05 +00002286{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2287whose name does not start with the host triplet. If you think this
2288configuration is useful to you, please write to autoconf@gnu.org." >&5
2289$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2290whose name does not start with the host triplet. If you think this
2291configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00002292ac_tool_warned=yes ;;
2293esac
2294 CC=$ac_ct_CC
2295 fi
drh71eb93e2001-09-28 01:34:43 +00002296else
2297 CC="$ac_cv_prog_CC"
2298fi
2299
2300if test -z "$CC"; then
drh8b727472009-01-19 18:18:40 +00002301 if test -n "$ac_tool_prefix"; then
2302 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002303set dummy ${ac_tool_prefix}cc; ac_word=$2
drh710658c2012-01-16 13:00:05 +00002304{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002305$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00002306if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002307 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002308else
2309 if test -n "$CC"; then
2310 ac_cv_prog_CC="$CC" # Let the user override the test.
2311else
a.rottmann84e63352003-03-24 09:42:16 +00002312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313for as_dir in $PATH
2314do
2315 IFS=$as_save_IFS
2316 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00002317 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002318 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 +00002319 ac_cv_prog_CC="${ac_tool_prefix}cc"
drh710658c2012-01-16 13:00:05 +00002320 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002321 break 2
2322 fi
2323done
drh710658c2012-01-16 13:00:05 +00002324done
drh8b727472009-01-19 18:18:40 +00002325IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002326
2327fi
2328fi
2329CC=$ac_cv_prog_CC
2330if test -n "$CC"; then
drh710658c2012-01-16 13:00:05 +00002331 { $as_echo "$as_me:$LINENO: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002332$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002333else
drh710658c2012-01-16 13:00:05 +00002334 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002335$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002336fi
2337
drh8b727472009-01-19 18:18:40 +00002338
a.rottmann84e63352003-03-24 09:42:16 +00002339 fi
drh71eb93e2001-09-28 01:34:43 +00002340fi
2341if test -z "$CC"; then
2342 # Extract the first word of "cc", so it can be a program name with args.
2343set dummy cc; ac_word=$2
drh710658c2012-01-16 13:00:05 +00002344{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002345$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00002346if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002347 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002348else
2349 if test -n "$CC"; then
2350 ac_cv_prog_CC="$CC" # Let the user override the test.
2351else
2352 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354for as_dir in $PATH
2355do
2356 IFS=$as_save_IFS
2357 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00002358 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002359 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 +00002360 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2361 ac_prog_rejected=yes
2362 continue
2363 fi
2364 ac_cv_prog_CC="cc"
drh710658c2012-01-16 13:00:05 +00002365 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002366 break 2
2367 fi
2368done
drh710658c2012-01-16 13:00:05 +00002369done
drh8b727472009-01-19 18:18:40 +00002370IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002371
2372if test $ac_prog_rejected = yes; then
2373 # We found a bogon in the path, so make sure we never use it.
2374 set dummy $ac_cv_prog_CC
2375 shift
2376 if test $# != 0; then
2377 # We chose a different compiler from the bogus one.
2378 # However, it has the same basename, so the bogon will be chosen
2379 # first if we set CC to just the basename; use the full file name.
2380 shift
a.rottmann84e63352003-03-24 09:42:16 +00002381 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002382 fi
2383fi
2384fi
2385fi
2386CC=$ac_cv_prog_CC
2387if test -n "$CC"; then
drh710658c2012-01-16 13:00:05 +00002388 { $as_echo "$as_me:$LINENO: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002389$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002390else
drh710658c2012-01-16 13:00:05 +00002391 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002392$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002393fi
2394
drh8b727472009-01-19 18:18:40 +00002395
drh71eb93e2001-09-28 01:34:43 +00002396fi
2397if test -z "$CC"; then
2398 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00002399 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002400 do
2401 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2402set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drh710658c2012-01-16 13:00:05 +00002403{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002404$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00002405if test "${ac_cv_prog_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002406 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002407else
2408 if test -n "$CC"; then
2409 ac_cv_prog_CC="$CC" # Let the user override the test.
2410else
a.rottmann84e63352003-03-24 09:42:16 +00002411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412for as_dir in $PATH
2413do
2414 IFS=$as_save_IFS
2415 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00002416 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002417 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 +00002418 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
drh710658c2012-01-16 13:00:05 +00002419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002420 break 2
2421 fi
2422done
drh710658c2012-01-16 13:00:05 +00002423done
drh8b727472009-01-19 18:18:40 +00002424IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002425
2426fi
2427fi
2428CC=$ac_cv_prog_CC
2429if test -n "$CC"; then
drh710658c2012-01-16 13:00:05 +00002430 { $as_echo "$as_me:$LINENO: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002431$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002432else
drh710658c2012-01-16 13:00:05 +00002433 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002434$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002435fi
2436
drh8b727472009-01-19 18:18:40 +00002437
drh71eb93e2001-09-28 01:34:43 +00002438 test -n "$CC" && break
2439 done
2440fi
2441if test -z "$CC"; then
2442 ac_ct_CC=$CC
drh8b727472009-01-19 18:18:40 +00002443 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002444do
2445 # Extract the first word of "$ac_prog", so it can be a program name with args.
2446set dummy $ac_prog; ac_word=$2
drh710658c2012-01-16 13:00:05 +00002447{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002448$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00002449if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002450 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002451else
2452 if test -n "$ac_ct_CC"; then
2453 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2454else
a.rottmann84e63352003-03-24 09:42:16 +00002455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456for as_dir in $PATH
2457do
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00002460 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00002461 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 +00002462 ac_cv_prog_ac_ct_CC="$ac_prog"
drh710658c2012-01-16 13:00:05 +00002463 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002464 break 2
2465 fi
2466done
drh710658c2012-01-16 13:00:05 +00002467done
drh8b727472009-01-19 18:18:40 +00002468IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002469
2470fi
2471fi
2472ac_ct_CC=$ac_cv_prog_ac_ct_CC
2473if test -n "$ac_ct_CC"; then
drh710658c2012-01-16 13:00:05 +00002474 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002475$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002476else
drh710658c2012-01-16 13:00:05 +00002477 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002478$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002479fi
2480
drh8b727472009-01-19 18:18:40 +00002481
drh71eb93e2001-09-28 01:34:43 +00002482 test -n "$ac_ct_CC" && break
2483done
2484
drh8b727472009-01-19 18:18:40 +00002485 if test "x$ac_ct_CC" = x; then
2486 CC=""
2487 else
2488 case $cross_compiling:$ac_tool_warned in
2489yes:)
drh710658c2012-01-16 13:00:05 +00002490{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2491whose name does not start with the host triplet. If you think this
2492configuration is useful to you, please write to autoconf@gnu.org." >&5
2493$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2494whose name does not start with the host triplet. If you think this
2495configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00002496ac_tool_warned=yes ;;
2497esac
2498 CC=$ac_ct_CC
2499 fi
drh71eb93e2001-09-28 01:34:43 +00002500fi
2501
2502fi
2503
a.rottmann84e63352003-03-24 09:42:16 +00002504
drh710658c2012-01-16 13:00:05 +00002505test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2506See \`config.log' for more details." >&5
2507$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2508See \`config.log' for more details." >&2;}
2509 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002510
2511# Provide some information about the compiler.
drh710658c2012-01-16 13:00:05 +00002512$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
drh8b727472009-01-19 18:18:40 +00002513set X $ac_compile
2514ac_compiler=$2
drh710658c2012-01-16 13:00:05 +00002515{ (ac_try="$ac_compiler --version >&5"
drh8b727472009-01-19 18:18:40 +00002516case "(($ac_try" in
2517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2518 *) ac_try_echo=$ac_try;;
2519esac
drh710658c2012-01-16 13:00:05 +00002520eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2521$as_echo "$ac_try_echo") >&5
2522 (eval "$ac_compiler --version >&5") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002523 ac_status=$?
drh710658c2012-01-16 13:00:05 +00002524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }
2526{ (ac_try="$ac_compiler -v >&5"
2527case "(($ac_try" in
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2530esac
2531eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2532$as_echo "$ac_try_echo") >&5
2533 (eval "$ac_compiler -v >&5") 2>&5
2534 ac_status=$?
2535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }
2537{ (ac_try="$ac_compiler -V >&5"
2538case "(($ac_try" in
2539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2540 *) ac_try_echo=$ac_try;;
2541esac
2542eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2543$as_echo "$ac_try_echo") >&5
2544 (eval "$ac_compiler -V >&5") 2>&5
2545 ac_status=$?
2546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }
drh71eb93e2001-09-28 01:34:43 +00002548
drh710658c2012-01-16 13:00:05 +00002549cat >conftest.$ac_ext <<_ACEOF
2550/* confdefs.h. */
2551_ACEOF
2552cat confdefs.h >>conftest.$ac_ext
2553cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002554/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002555
2556int
2557main ()
2558{
2559
2560 ;
2561 return 0;
2562}
2563_ACEOF
2564ac_clean_files_save=$ac_clean_files
drh8b727472009-01-19 18:18:40 +00002565ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002566# Try to create an executable without -o first, disregard a.out.
2567# It will help us diagnose broken compilers, and finding out an intuition
2568# of exeext.
drh710658c2012-01-16 13:00:05 +00002569{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2570$as_echo_n "checking for C compiler default output file name... " >&6; }
drh8b727472009-01-19 18:18:40 +00002571ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
drh866108f2008-05-13 00:57:21 +00002572
drh8b727472009-01-19 18:18:40 +00002573# The possible output files:
2574ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2575
2576ac_rmfiles=
2577for ac_file in $ac_files
2578do
2579 case $ac_file in
2580 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2581 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2582 esac
2583done
2584rm -f $ac_rmfiles
2585
drh710658c2012-01-16 13:00:05 +00002586if { (ac_try="$ac_link_default"
drh8b727472009-01-19 18:18:40 +00002587case "(($ac_try" in
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2590esac
drh710658c2012-01-16 13:00:05 +00002591eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2592$as_echo "$ac_try_echo") >&5
drh8b727472009-01-19 18:18:40 +00002593 (eval "$ac_link_default") 2>&5
2594 ac_status=$?
drh710658c2012-01-16 13:00:05 +00002595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }; then
drh8b727472009-01-19 18:18:40 +00002597 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2598# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2599# in a Makefile. We should not override ac_cv_exeext if it was cached,
2600# so that the user can short-circuit this test for compilers unknown to
2601# Autoconf.
2602for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002603do
2604 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002605 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002607 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002608 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002609 # We found the default executable, but exeext='' is most
2610 # certainly right.
2611 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002612 *.* )
drh710658c2012-01-16 13:00:05 +00002613 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
drh8b727472009-01-19 18:18:40 +00002614 then :; else
2615 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2616 fi
2617 # We set ac_cv_exeext here because the later test for it is not
2618 # safe: cross compilers may not add the suffix if given an `-o'
2619 # argument, so we may need to know it at that point already.
2620 # Even if this section looks crufty: it has the advantage of
2621 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002622 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002623 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002624 break;;
drh71eb93e2001-09-28 01:34:43 +00002625 esac
2626done
drh8b727472009-01-19 18:18:40 +00002627test "$ac_cv_exeext" = no && ac_cv_exeext=
2628
drh71eb93e2001-09-28 01:34:43 +00002629else
drh8b727472009-01-19 18:18:40 +00002630 ac_file=''
2631fi
drh710658c2012-01-16 13:00:05 +00002632
2633{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2634$as_echo "$ac_file" >&6; }
2635if test -z "$ac_file"; then
2636 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002637sed 's/^/| /' conftest.$ac_ext >&5
2638
drh710658c2012-01-16 13:00:05 +00002639{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2640See \`config.log' for more details." >&5
2641$as_echo "$as_me: error: C compiler cannot create executables
2642See \`config.log' for more details." >&2;}
2643 { (exit 77); exit 77; }; }
dana9f39fd2011-08-12 16:34:42 +00002644fi
drh710658c2012-01-16 13:00:05 +00002645
dana9f39fd2011-08-12 16:34:42 +00002646ac_exeext=$ac_cv_exeext
drh71eb93e2001-09-28 01:34:43 +00002647
drh710658c2012-01-16 13:00:05 +00002648# Check that the compiler produces executables we can run. If not, either
2649# the compiler is broken, or we cross compile.
2650{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2651$as_echo_n "checking whether the C compiler works... " >&6; }
2652# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2653# If not cross compiling, check that we can run a simple program.
2654if test "$cross_compiling" != yes; then
2655 if { ac_try='./$ac_file'
2656 { (case "(($ac_try" in
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2659esac
2660eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2661$as_echo "$ac_try_echo") >&5
2662 (eval "$ac_try") 2>&5
2663 ac_status=$?
2664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; }; then
2666 cross_compiling=no
2667 else
2668 if test "$cross_compiling" = maybe; then
2669 cross_compiling=yes
2670 else
2671 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2672If you meant to cross compile, use \`--host'.
2673See \`config.log' for more details." >&5
2674$as_echo "$as_me: error: cannot run C compiled programs.
2675If you meant to cross compile, use \`--host'.
2676See \`config.log' for more details." >&2;}
2677 { (exit 1); exit 1; }; }
2678 fi
2679 fi
2680fi
2681{ $as_echo "$as_me:$LINENO: result: yes" >&5
2682$as_echo "yes" >&6; }
2683
drh8b727472009-01-19 18:18:40 +00002684rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002685ac_clean_files=$ac_clean_files_save
drh710658c2012-01-16 13:00:05 +00002686# Check that the compiler produces executables we can run. If not, either
2687# the compiler is broken, or we cross compile.
2688{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2689$as_echo_n "checking whether we are cross compiling... " >&6; }
2690{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2691$as_echo "$cross_compiling" >&6; }
2692
2693{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
drh8b727472009-01-19 18:18:40 +00002694$as_echo_n "checking for suffix of executables... " >&6; }
drh710658c2012-01-16 13:00:05 +00002695if { (ac_try="$ac_link"
drh8b727472009-01-19 18:18:40 +00002696case "(($ac_try" in
2697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698 *) ac_try_echo=$ac_try;;
2699esac
drh710658c2012-01-16 13:00:05 +00002700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2701$as_echo "$ac_try_echo") >&5
drh8b727472009-01-19 18:18:40 +00002702 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002703 ac_status=$?
drh710658c2012-01-16 13:00:05 +00002704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }; then
drh71eb93e2001-09-28 01:34:43 +00002706 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2707# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2708# work properly (i.e., refer to `conftest.exe'), while it won't with
2709# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00002710for ac_file in conftest.exe conftest conftest.*; do
2711 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002712 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002713 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00002714 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00002715 break;;
drh71eb93e2001-09-28 01:34:43 +00002716 * ) break;;
2717 esac
2718done
2719else
drh710658c2012-01-16 13:00:05 +00002720 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2721See \`config.log' for more details." >&5
2722$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2723See \`config.log' for more details." >&2;}
2724 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002725fi
drh710658c2012-01-16 13:00:05 +00002726
2727rm -f conftest$ac_cv_exeext
2728{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
drh8b727472009-01-19 18:18:40 +00002729$as_echo "$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002730
2731rm -f conftest.$ac_ext
2732EXEEXT=$ac_cv_exeext
2733ac_exeext=$EXEEXT
drh710658c2012-01-16 13:00:05 +00002734{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
drh8b727472009-01-19 18:18:40 +00002735$as_echo_n "checking for suffix of object files... " >&6; }
drh710658c2012-01-16 13:00:05 +00002736if test "${ac_cv_objext+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002737 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002738else
drh710658c2012-01-16 13:00:05 +00002739 cat >conftest.$ac_ext <<_ACEOF
2740/* confdefs.h. */
2741_ACEOF
2742cat confdefs.h >>conftest.$ac_ext
2743cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002744/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002745
2746int
2747main ()
2748{
2749
2750 ;
2751 return 0;
2752}
2753_ACEOF
2754rm -f conftest.o conftest.obj
drh710658c2012-01-16 13:00:05 +00002755if { (ac_try="$ac_compile"
drh8b727472009-01-19 18:18:40 +00002756case "(($ac_try" in
2757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2758 *) ac_try_echo=$ac_try;;
2759esac
drh710658c2012-01-16 13:00:05 +00002760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2761$as_echo "$ac_try_echo") >&5
drh8b727472009-01-19 18:18:40 +00002762 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002763 ac_status=$?
drh710658c2012-01-16 13:00:05 +00002764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; then
drh8b727472009-01-19 18:18:40 +00002766 for ac_file in conftest.o conftest.obj conftest.*; do
2767 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00002768 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
drh71eb93e2001-09-28 01:34:43 +00002770 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2771 break;;
2772 esac
2773done
2774else
drh8b727472009-01-19 18:18:40 +00002775 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002776sed 's/^/| /' conftest.$ac_ext >&5
2777
drh710658c2012-01-16 13:00:05 +00002778{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2779See \`config.log' for more details." >&5
2780$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2781See \`config.log' for more details." >&2;}
2782 { (exit 1); exit 1; }; }
drh71eb93e2001-09-28 01:34:43 +00002783fi
drh710658c2012-01-16 13:00:05 +00002784
drh71eb93e2001-09-28 01:34:43 +00002785rm -f conftest.$ac_cv_objext conftest.$ac_ext
2786fi
drh710658c2012-01-16 13:00:05 +00002787{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
drh8b727472009-01-19 18:18:40 +00002788$as_echo "$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002789OBJEXT=$ac_cv_objext
2790ac_objext=$OBJEXT
drh710658c2012-01-16 13:00:05 +00002791{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
drh8b727472009-01-19 18:18:40 +00002792$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
drh710658c2012-01-16 13:00:05 +00002793if test "${ac_cv_c_compiler_gnu+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002794 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002795else
drh710658c2012-01-16 13:00:05 +00002796 cat >conftest.$ac_ext <<_ACEOF
2797/* confdefs.h. */
2798_ACEOF
2799cat confdefs.h >>conftest.$ac_ext
2800cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002801/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002802
2803int
2804main ()
2805{
2806#ifndef __GNUC__
2807 choke me
2808#endif
2809
2810 ;
2811 return 0;
2812}
2813_ACEOF
drh710658c2012-01-16 13:00:05 +00002814rm -f conftest.$ac_objext
2815if { (ac_try="$ac_compile"
2816case "(($ac_try" in
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2819esac
2820eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2821$as_echo "$ac_try_echo") >&5
2822 (eval "$ac_compile") 2>conftest.er1
2823 ac_status=$?
2824 grep -v '^ *+' conftest.er1 >conftest.err
2825 rm -f conftest.er1
2826 cat conftest.err >&5
2827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } && {
2829 test -z "$ac_c_werror_flag" ||
2830 test ! -s conftest.err
2831 } && test -s conftest.$ac_objext; then
drh71eb93e2001-09-28 01:34:43 +00002832 ac_compiler_gnu=yes
2833else
drh710658c2012-01-16 13:00:05 +00002834 $as_echo "$as_me: failed program was:" >&5
2835sed 's/^/| /' conftest.$ac_ext >&5
2836
2837 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00002838fi
drh710658c2012-01-16 13:00:05 +00002839
drh8b727472009-01-19 18:18:40 +00002840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002841ac_cv_c_compiler_gnu=$ac_compiler_gnu
2842
2843fi
drh710658c2012-01-16 13:00:05 +00002844{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
drh8b727472009-01-19 18:18:40 +00002845$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2846if test $ac_compiler_gnu = yes; then
2847 GCC=yes
2848else
2849 GCC=
2850fi
drh71eb93e2001-09-28 01:34:43 +00002851ac_test_CFLAGS=${CFLAGS+set}
2852ac_save_CFLAGS=$CFLAGS
drh710658c2012-01-16 13:00:05 +00002853{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
drh8b727472009-01-19 18:18:40 +00002854$as_echo_n "checking whether $CC accepts -g... " >&6; }
drh710658c2012-01-16 13:00:05 +00002855if test "${ac_cv_prog_cc_g+set}" = set; then
drh8b727472009-01-19 18:18:40 +00002856 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002857else
drh8b727472009-01-19 18:18:40 +00002858 ac_save_c_werror_flag=$ac_c_werror_flag
2859 ac_c_werror_flag=yes
2860 ac_cv_prog_cc_g=no
2861 CFLAGS="-g"
drh710658c2012-01-16 13:00:05 +00002862 cat >conftest.$ac_ext <<_ACEOF
2863/* confdefs.h. */
2864_ACEOF
2865cat confdefs.h >>conftest.$ac_ext
2866cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00002867/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002868
2869int
2870main ()
2871{
2872
2873 ;
2874 return 0;
2875}
2876_ACEOF
drh710658c2012-01-16 13:00:05 +00002877rm -f conftest.$ac_objext
2878if { (ac_try="$ac_compile"
2879case "(($ac_try" in
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2882esac
2883eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2884$as_echo "$ac_try_echo") >&5
2885 (eval "$ac_compile") 2>conftest.er1
2886 ac_status=$?
2887 grep -v '^ *+' conftest.er1 >conftest.err
2888 rm -f conftest.er1
2889 cat conftest.err >&5
2890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); } && {
2892 test -z "$ac_c_werror_flag" ||
2893 test ! -s conftest.err
2894 } && test -s conftest.$ac_objext; then
drh71eb93e2001-09-28 01:34:43 +00002895 ac_cv_prog_cc_g=yes
2896else
drh710658c2012-01-16 13:00:05 +00002897 $as_echo "$as_me: failed program was:" >&5
2898sed 's/^/| /' conftest.$ac_ext >&5
2899
2900 CFLAGS=""
2901 cat >conftest.$ac_ext <<_ACEOF
2902/* confdefs.h. */
2903_ACEOF
2904cat confdefs.h >>conftest.$ac_ext
2905cat >>conftest.$ac_ext <<_ACEOF
drh8b727472009-01-19 18:18:40 +00002906/* end confdefs.h. */
2907
2908int
2909main ()
2910{
2911
2912 ;
2913 return 0;
2914}
2915_ACEOF
drh710658c2012-01-16 13:00:05 +00002916rm -f conftest.$ac_objext
2917if { (ac_try="$ac_compile"
2918case "(($ac_try" in
2919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2920 *) ac_try_echo=$ac_try;;
2921esac
2922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2923$as_echo "$ac_try_echo") >&5
2924 (eval "$ac_compile") 2>conftest.er1
2925 ac_status=$?
2926 grep -v '^ *+' conftest.er1 >conftest.err
2927 rm -f conftest.er1
2928 cat conftest.err >&5
2929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } && {
2931 test -z "$ac_c_werror_flag" ||
2932 test ! -s conftest.err
2933 } && test -s conftest.$ac_objext; then
2934 :
dana9f39fd2011-08-12 16:34:42 +00002935else
drh710658c2012-01-16 13:00:05 +00002936 $as_echo "$as_me: failed program was:" >&5
2937sed 's/^/| /' conftest.$ac_ext >&5
2938
2939 ac_c_werror_flag=$ac_save_c_werror_flag
drh8b727472009-01-19 18:18:40 +00002940 CFLAGS="-g"
drh710658c2012-01-16 13:00:05 +00002941 cat >conftest.$ac_ext <<_ACEOF
2942/* confdefs.h. */
2943_ACEOF
2944cat confdefs.h >>conftest.$ac_ext
2945cat >>conftest.$ac_ext <<_ACEOF
drh8b727472009-01-19 18:18:40 +00002946/* end confdefs.h. */
2947
2948int
2949main ()
2950{
2951
2952 ;
2953 return 0;
2954}
2955_ACEOF
drh710658c2012-01-16 13:00:05 +00002956rm -f conftest.$ac_objext
2957if { (ac_try="$ac_compile"
2958case "(($ac_try" in
2959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2960 *) ac_try_echo=$ac_try;;
2961esac
2962eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2963$as_echo "$ac_try_echo") >&5
2964 (eval "$ac_compile") 2>conftest.er1
2965 ac_status=$?
2966 grep -v '^ *+' conftest.er1 >conftest.err
2967 rm -f conftest.er1
2968 cat conftest.err >&5
2969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); } && {
2971 test -z "$ac_c_werror_flag" ||
2972 test ! -s conftest.err
2973 } && test -s conftest.$ac_objext; then
drh8b727472009-01-19 18:18:40 +00002974 ac_cv_prog_cc_g=yes
drh710658c2012-01-16 13:00:05 +00002975else
2976 $as_echo "$as_me: failed program was:" >&5
2977sed 's/^/| /' conftest.$ac_ext >&5
2978
2979
drh71eb93e2001-09-28 01:34:43 +00002980fi
drh710658c2012-01-16 13:00:05 +00002981
drh8b727472009-01-19 18:18:40 +00002982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00002983fi
drh710658c2012-01-16 13:00:05 +00002984
drh8b727472009-01-19 18:18:40 +00002985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986fi
drh710658c2012-01-16 13:00:05 +00002987
drh8b727472009-01-19 18:18:40 +00002988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2989 ac_c_werror_flag=$ac_save_c_werror_flag
2990fi
drh710658c2012-01-16 13:00:05 +00002991{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
drh8b727472009-01-19 18:18:40 +00002992$as_echo "$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002993if test "$ac_test_CFLAGS" = set; then
2994 CFLAGS=$ac_save_CFLAGS
2995elif test $ac_cv_prog_cc_g = yes; then
2996 if test "$GCC" = yes; then
2997 CFLAGS="-g -O2"
2998 else
2999 CFLAGS="-g"
3000 fi
3001else
3002 if test "$GCC" = yes; then
3003 CFLAGS="-O2"
3004 else
3005 CFLAGS=
3006 fi
3007fi
drh710658c2012-01-16 13:00:05 +00003008{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
drh8b727472009-01-19 18:18:40 +00003009$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
drh710658c2012-01-16 13:00:05 +00003010if test "${ac_cv_prog_cc_c89+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003011 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00003012else
drh8b727472009-01-19 18:18:40 +00003013 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00003014ac_save_CC=$CC
drh710658c2012-01-16 13:00:05 +00003015cat >conftest.$ac_ext <<_ACEOF
3016/* confdefs.h. */
3017_ACEOF
3018cat confdefs.h >>conftest.$ac_ext
3019cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00003020/* end confdefs.h. */
3021#include <stdarg.h>
3022#include <stdio.h>
3023#include <sys/types.h>
3024#include <sys/stat.h>
3025/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3026struct buf { int x; };
3027FILE * (*rcsopen) (struct buf *, struct stat *, int);
3028static char *e (p, i)
3029 char **p;
3030 int i;
3031{
3032 return p[i];
3033}
3034static char *f (char * (*g) (char **, int), char **p, ...)
3035{
3036 char *s;
3037 va_list v;
3038 va_start (v,p);
3039 s = g (p, va_arg (v,int));
3040 va_end (v);
3041 return s;
3042}
a.rottmann964dbb12004-02-26 19:47:42 +00003043
3044/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3045 function prototypes and stuff, but not '\xHH' hex character constants.
3046 These don't provoke an error unfortunately, instead are silently treated
drh8b727472009-01-19 18:18:40 +00003047 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00003048 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3049 array size at least. It's necessary to write '\x00'==0 to get something
drh8b727472009-01-19 18:18:40 +00003050 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00003051int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3052
drh8b727472009-01-19 18:18:40 +00003053/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3054 inside strings and character constants. */
3055#define FOO(x) 'x'
3056int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3057
a.rottmann84e63352003-03-24 09:42:16 +00003058int test (int i, double x);
3059struct s1 {int (*f) (int a);};
3060struct s2 {int (*f) (double a);};
3061int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3062int argc;
3063char **argv;
3064int
3065main ()
3066{
3067return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3068 ;
3069 return 0;
3070}
3071_ACEOF
drh8b727472009-01-19 18:18:40 +00003072for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3073 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003074do
3075 CC="$ac_save_CC $ac_arg"
drh710658c2012-01-16 13:00:05 +00003076 rm -f conftest.$ac_objext
3077if { (ac_try="$ac_compile"
3078case "(($ac_try" in
3079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3080 *) ac_try_echo=$ac_try;;
3081esac
3082eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3083$as_echo "$ac_try_echo") >&5
3084 (eval "$ac_compile") 2>conftest.er1
3085 ac_status=$?
3086 grep -v '^ *+' conftest.er1 >conftest.err
3087 rm -f conftest.er1
3088 cat conftest.err >&5
3089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } && {
3091 test -z "$ac_c_werror_flag" ||
3092 test ! -s conftest.err
3093 } && test -s conftest.$ac_objext; then
drh8b727472009-01-19 18:18:40 +00003094 ac_cv_prog_cc_c89=$ac_arg
drh710658c2012-01-16 13:00:05 +00003095else
3096 $as_echo "$as_me: failed program was:" >&5
3097sed 's/^/| /' conftest.$ac_ext >&5
3098
3099
a.rottmann84e63352003-03-24 09:42:16 +00003100fi
drh710658c2012-01-16 13:00:05 +00003101
drh8b727472009-01-19 18:18:40 +00003102rm -f core conftest.err conftest.$ac_objext
3103 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003104done
drh8b727472009-01-19 18:18:40 +00003105rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003106CC=$ac_save_CC
3107
3108fi
drh8b727472009-01-19 18:18:40 +00003109# AC_CACHE_VAL
3110case "x$ac_cv_prog_cc_c89" in
3111 x)
drh710658c2012-01-16 13:00:05 +00003112 { $as_echo "$as_me:$LINENO: result: none needed" >&5
drh8b727472009-01-19 18:18:40 +00003113$as_echo "none needed" >&6; } ;;
3114 xno)
drh710658c2012-01-16 13:00:05 +00003115 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
drh8b727472009-01-19 18:18:40 +00003116$as_echo "unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003117 *)
drh8b727472009-01-19 18:18:40 +00003118 CC="$CC $ac_cv_prog_cc_c89"
drh710658c2012-01-16 13:00:05 +00003119 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
drh8b727472009-01-19 18:18:40 +00003120$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003121esac
3122
a.rottmann84e63352003-03-24 09:42:16 +00003123
drh71eb93e2001-09-28 01:34:43 +00003124ac_ext=c
3125ac_cpp='$CPP $CPPFLAGS'
3126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128ac_compiler_gnu=$ac_cv_c_compiler_gnu
3129
drh710658c2012-01-16 13:00:05 +00003130{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
drh8b727472009-01-19 18:18:40 +00003131$as_echo_n "checking for a sed that does not truncate output... " >&6; }
drh710658c2012-01-16 13:00:05 +00003132if test "${ac_cv_path_SED+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003133 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003134else
drh8b727472009-01-19 18:18:40 +00003135 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3136 for ac_i in 1 2 3 4 5 6 7; do
3137 ac_script="$ac_script$as_nl$ac_script"
3138 done
3139 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
drh710658c2012-01-16 13:00:05 +00003140 $as_unset ac_script || ac_script=
drh8b727472009-01-19 18:18:40 +00003141 if test -z "$SED"; then
3142 ac_path_SED_found=false
3143 # Loop through the user's path and test for each of PROGNAME-LIST
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00003145for as_dir in $PATH
3146do
3147 IFS=$as_save_IFS
3148 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00003149 for ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003150 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003151 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3152 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3153# Check for GNU ac_path_SED and select it if it is found.
3154 # Check for GNU $ac_path_SED
3155case `"$ac_path_SED" --version 2>&1` in
3156*GNU*)
3157 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3158*)
3159 ac_count=0
3160 $as_echo_n 0123456789 >"conftest.in"
3161 while :
3162 do
3163 cat "conftest.in" "conftest.in" >"conftest.tmp"
3164 mv "conftest.tmp" "conftest.in"
3165 cp "conftest.in" "conftest.nl"
3166 $as_echo '' >> "conftest.nl"
3167 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3168 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drh710658c2012-01-16 13:00:05 +00003169 ac_count=`expr $ac_count + 1`
drh8b727472009-01-19 18:18:40 +00003170 if test $ac_count -gt ${ac_path_SED_max-0}; then
3171 # Best one so far, save it but keep looking for a better one
3172 ac_cv_path_SED="$ac_path_SED"
3173 ac_path_SED_max=$ac_count
3174 fi
3175 # 10*(2^10) chars as input seems more than enough
3176 test $ac_count -gt 10 && break
3177 done
3178 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3179esac
3180
3181 $ac_path_SED_found && break 3
a.rottmann9bc8b932004-02-29 15:18:31 +00003182 done
3183 done
drh710658c2012-01-16 13:00:05 +00003184done
mlcreech636a9952008-05-05 22:52:56 +00003185IFS=$as_save_IFS
drh8b727472009-01-19 18:18:40 +00003186 if test -z "$ac_cv_path_SED"; then
drh710658c2012-01-16 13:00:05 +00003187 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
3188$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
3189 { (exit 1); exit 1; }; }
a.rottmann9bc8b932004-02-29 15:18:31 +00003190 fi
drh8b727472009-01-19 18:18:40 +00003191else
3192 ac_cv_path_SED=$SED
mlcreech636a9952008-05-05 22:52:56 +00003193fi
drh866108f2008-05-13 00:57:21 +00003194
drh8b727472009-01-19 18:18:40 +00003195fi
drh710658c2012-01-16 13:00:05 +00003196{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
drh8b727472009-01-19 18:18:40 +00003197$as_echo "$ac_cv_path_SED" >&6; }
3198 SED="$ac_cv_path_SED"
3199 rm -f conftest.sed
a.rottmann9bc8b932004-02-29 15:18:31 +00003200
mlcreech636a9952008-05-05 22:52:56 +00003201test -z "$SED" && SED=sed
3202Xsed="$SED -e 1s/^X//"
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
drh710658c2012-01-16 13:00:05 +00003214{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
drh8b727472009-01-19 18:18:40 +00003215$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
drh710658c2012-01-16 13:00:05 +00003216if test "${ac_cv_path_GREP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003217 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003218else
drh8b727472009-01-19 18:18:40 +00003219 if test -z "$GREP"; then
3220 ac_path_GREP_found=false
3221 # Loop through the user's path and test for each of PROGNAME-LIST
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3224do
3225 IFS=$as_save_IFS
3226 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00003227 for ac_prog in grep ggrep; do
drh8b727472009-01-19 18:18:40 +00003228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3230 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3231# Check for GNU ac_path_GREP and select it if it is found.
3232 # Check for GNU $ac_path_GREP
3233case `"$ac_path_GREP" --version 2>&1` in
3234*GNU*)
3235 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3236*)
3237 ac_count=0
3238 $as_echo_n 0123456789 >"conftest.in"
3239 while :
3240 do
3241 cat "conftest.in" "conftest.in" >"conftest.tmp"
3242 mv "conftest.tmp" "conftest.in"
3243 cp "conftest.in" "conftest.nl"
3244 $as_echo 'GREP' >> "conftest.nl"
3245 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3246 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drh710658c2012-01-16 13:00:05 +00003247 ac_count=`expr $ac_count + 1`
drh8b727472009-01-19 18:18:40 +00003248 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3249 # Best one so far, save it but keep looking for a better one
3250 ac_cv_path_GREP="$ac_path_GREP"
3251 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003252 fi
drh8b727472009-01-19 18:18:40 +00003253 # 10*(2^10) chars as input seems more than enough
3254 test $ac_count -gt 10 && break
3255 done
3256 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3257esac
3258
3259 $ac_path_GREP_found && break 3
3260 done
3261 done
drh710658c2012-01-16 13:00:05 +00003262done
drh8b727472009-01-19 18:18:40 +00003263IFS=$as_save_IFS
3264 if test -z "$ac_cv_path_GREP"; then
drh710658c2012-01-16 13:00:05 +00003265 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3266$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3267 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00003268 fi
3269else
3270 ac_cv_path_GREP=$GREP
mlcreech94984912008-03-04 19:03:08 +00003271fi
drh8b727472009-01-19 18:18:40 +00003272
3273fi
drh710658c2012-01-16 13:00:05 +00003274{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
drh8b727472009-01-19 18:18:40 +00003275$as_echo "$ac_cv_path_GREP" >&6; }
3276 GREP="$ac_cv_path_GREP"
mlcreech94984912008-03-04 19:03:08 +00003277
3278
drh710658c2012-01-16 13:00:05 +00003279{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
drh8b727472009-01-19 18:18:40 +00003280$as_echo_n "checking for egrep... " >&6; }
drh710658c2012-01-16 13:00:05 +00003281if test "${ac_cv_path_EGREP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003282 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +00003283else
drh8b727472009-01-19 18:18:40 +00003284 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3285 then ac_cv_path_EGREP="$GREP -E"
3286 else
3287 if test -z "$EGREP"; then
3288 ac_path_EGREP_found=false
3289 # Loop through the user's path and test for each of PROGNAME-LIST
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3292do
3293 IFS=$as_save_IFS
3294 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00003295 for ac_prog in egrep; do
drh8b727472009-01-19 18:18:40 +00003296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3298 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3299# Check for GNU ac_path_EGREP and select it if it is found.
3300 # Check for GNU $ac_path_EGREP
3301case `"$ac_path_EGREP" --version 2>&1` in
3302*GNU*)
3303 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3304*)
3305 ac_count=0
3306 $as_echo_n 0123456789 >"conftest.in"
3307 while :
3308 do
3309 cat "conftest.in" "conftest.in" >"conftest.tmp"
3310 mv "conftest.tmp" "conftest.in"
3311 cp "conftest.in" "conftest.nl"
3312 $as_echo 'EGREP' >> "conftest.nl"
3313 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3314 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drh710658c2012-01-16 13:00:05 +00003315 ac_count=`expr $ac_count + 1`
drh8b727472009-01-19 18:18:40 +00003316 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3317 # Best one so far, save it but keep looking for a better one
3318 ac_cv_path_EGREP="$ac_path_EGREP"
3319 ac_path_EGREP_max=$ac_count
mlcreech94984912008-03-04 19:03:08 +00003320 fi
drh8b727472009-01-19 18:18:40 +00003321 # 10*(2^10) chars as input seems more than enough
3322 test $ac_count -gt 10 && break
3323 done
3324 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3325esac
3326
3327 $ac_path_EGREP_found && break 3
3328 done
3329 done
drh710658c2012-01-16 13:00:05 +00003330done
drh8b727472009-01-19 18:18:40 +00003331IFS=$as_save_IFS
3332 if test -z "$ac_cv_path_EGREP"; then
drh710658c2012-01-16 13:00:05 +00003333 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3334$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3335 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00003336 fi
3337else
3338 ac_cv_path_EGREP=$EGREP
mlcreech94984912008-03-04 19:03:08 +00003339fi
drh8b727472009-01-19 18:18:40 +00003340
3341 fi
3342fi
drh710658c2012-01-16 13:00:05 +00003343{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
drh8b727472009-01-19 18:18:40 +00003344$as_echo "$ac_cv_path_EGREP" >&6; }
3345 EGREP="$ac_cv_path_EGREP"
3346
3347
drh710658c2012-01-16 13:00:05 +00003348{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
drh8b727472009-01-19 18:18:40 +00003349$as_echo_n "checking for fgrep... " >&6; }
drh710658c2012-01-16 13:00:05 +00003350if test "${ac_cv_path_FGREP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003351 $as_echo_n "(cached) " >&6
3352else
3353 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3354 then ac_cv_path_FGREP="$GREP -F"
3355 else
3356 if test -z "$FGREP"; then
3357 ac_path_FGREP_found=false
3358 # Loop through the user's path and test for each of PROGNAME-LIST
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3361do
3362 IFS=$as_save_IFS
3363 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00003364 for ac_prog in fgrep; do
drh8b727472009-01-19 18:18:40 +00003365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3367 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3368# Check for GNU ac_path_FGREP and select it if it is found.
3369 # Check for GNU $ac_path_FGREP
3370case `"$ac_path_FGREP" --version 2>&1` in
3371*GNU*)
3372 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3373*)
3374 ac_count=0
3375 $as_echo_n 0123456789 >"conftest.in"
3376 while :
3377 do
3378 cat "conftest.in" "conftest.in" >"conftest.tmp"
3379 mv "conftest.tmp" "conftest.in"
3380 cp "conftest.in" "conftest.nl"
3381 $as_echo 'FGREP' >> "conftest.nl"
3382 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3383 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drh710658c2012-01-16 13:00:05 +00003384 ac_count=`expr $ac_count + 1`
drh8b727472009-01-19 18:18:40 +00003385 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3386 # Best one so far, save it but keep looking for a better one
3387 ac_cv_path_FGREP="$ac_path_FGREP"
3388 ac_path_FGREP_max=$ac_count
3389 fi
3390 # 10*(2^10) chars as input seems more than enough
3391 test $ac_count -gt 10 && break
3392 done
3393 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3394esac
3395
3396 $ac_path_FGREP_found && break 3
3397 done
3398 done
drh710658c2012-01-16 13:00:05 +00003399done
drh8b727472009-01-19 18:18:40 +00003400IFS=$as_save_IFS
3401 if test -z "$ac_cv_path_FGREP"; then
drh710658c2012-01-16 13:00:05 +00003402 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3403$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3404 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +00003405 fi
3406else
3407 ac_cv_path_FGREP=$FGREP
3408fi
3409
3410 fi
3411fi
drh710658c2012-01-16 13:00:05 +00003412{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
drh8b727472009-01-19 18:18:40 +00003413$as_echo "$ac_cv_path_FGREP" >&6; }
3414 FGREP="$ac_cv_path_FGREP"
mlcreech636a9952008-05-05 22:52:56 +00003415
3416
3417test -z "$GREP" && GREP=grep
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
a.rottmann9bc8b932004-02-29 15:18:31 +00003434
3435
a.rottmann84e63352003-03-24 09:42:16 +00003436
drh8b727472009-01-19 18:18:40 +00003437# Check whether --with-gnu-ld was given.
drh710658c2012-01-16 13:00:05 +00003438if test "${with_gnu_ld+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003439 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003440else
3441 with_gnu_ld=no
drh8b727472009-01-19 18:18:40 +00003442fi
3443
drh71eb93e2001-09-28 01:34:43 +00003444ac_prog=ld
3445if test "$GCC" = yes; then
3446 # Check if gcc -print-prog-name=ld gives a path.
drh710658c2012-01-16 13:00:05 +00003447 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
drh8b727472009-01-19 18:18:40 +00003448$as_echo_n "checking for ld used by $CC... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003449 case $host in
3450 *-*-mingw*)
3451 # gcc leaves a trailing carriage return which upsets mingw
3452 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3453 *)
3454 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3455 esac
3456 case $ac_prog in
3457 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003458 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003459 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003460 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00003461 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3462 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3463 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003464 done
3465 test -z "$LD" && LD="$ac_prog"
3466 ;;
3467 "")
3468 # If it fails, then pretend we aren't using GCC.
3469 ac_prog=ld
3470 ;;
3471 *)
3472 # If it is relative, then search for the first ld in PATH.
3473 with_gnu_ld=unknown
3474 ;;
3475 esac
3476elif test "$with_gnu_ld" = yes; then
drh710658c2012-01-16 13:00:05 +00003477 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003478$as_echo_n "checking for GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003479else
drh710658c2012-01-16 13:00:05 +00003480 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003481$as_echo_n "checking for non-GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003482fi
drh710658c2012-01-16 13:00:05 +00003483if test "${lt_cv_path_LD+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003484 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003485else
3486 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003487 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003488 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003489 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003490 test -z "$ac_dir" && ac_dir=.
3491 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3492 lt_cv_path_LD="$ac_dir/$ac_prog"
3493 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003494 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003495 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003496 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3497 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003498 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003499 ;;
3500 *)
drh71eb93e2001-09-28 01:34:43 +00003501 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003502 ;;
3503 esac
drh71eb93e2001-09-28 01:34:43 +00003504 fi
3505 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003506 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003507else
3508 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3509fi
3510fi
3511
3512LD="$lt_cv_path_LD"
3513if test -n "$LD"; then
drh710658c2012-01-16 13:00:05 +00003514 { $as_echo "$as_me:$LINENO: result: $LD" >&5
drh8b727472009-01-19 18:18:40 +00003515$as_echo "$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003516else
drh710658c2012-01-16 13:00:05 +00003517 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003518$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003519fi
drh710658c2012-01-16 13:00:05 +00003520test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3521$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3522 { (exit 1); exit 1; }; }
3523{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003524$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
drh710658c2012-01-16 13:00:05 +00003525if test "${lt_cv_prog_gnu_ld+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003526 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003527else
vapier7f19c022007-02-17 14:46:31 +00003528 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003529case `$LD -v 2>&1 </dev/null` in
3530*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003531 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003532 ;;
3533*)
drh71eb93e2001-09-28 01:34:43 +00003534 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003535 ;;
3536esac
drh71eb93e2001-09-28 01:34:43 +00003537fi
drh710658c2012-01-16 13:00:05 +00003538{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
drh8b727472009-01-19 18:18:40 +00003539$as_echo "$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003540with_gnu_ld=$lt_cv_prog_gnu_ld
3541
a.rottmann84e63352003-03-24 09:42:16 +00003542
drh71eb93e2001-09-28 01:34:43 +00003543
mlcreech636a9952008-05-05 22:52:56 +00003544
3545
3546
3547
3548
3549
drh710658c2012-01-16 13:00:05 +00003550{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
drh8b727472009-01-19 18:18:40 +00003551$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
drh710658c2012-01-16 13:00:05 +00003552if test "${lt_cv_path_NM+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003553 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003554else
3555 if test -n "$NM"; then
3556 # Let the user override the test.
3557 lt_cv_path_NM="$NM"
3558else
vapier7f19c022007-02-17 14:46:31 +00003559 lt_nm_to_check="${ac_tool_prefix}nm"
3560 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3561 lt_nm_to_check="$lt_nm_to_check nm"
3562 fi
3563 for lt_tmp_nm in $lt_nm_to_check; do
3564 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3565 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3566 IFS="$lt_save_ifs"
3567 test -z "$ac_dir" && ac_dir=.
3568 tmp_nm="$ac_dir/$lt_tmp_nm"
3569 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3570 # Check to see if the nm accepts a BSD-compat flag.
3571 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3572 # nm: unknown option "B" ignored
3573 # Tru64's nm complains that /dev/null is an invalid object file
3574 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3575 */dev/null* | *'Invalid file or object type'*)
3576 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003577 break
3578 ;;
3579 *)
vapier7f19c022007-02-17 14:46:31 +00003580 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3581 */dev/null*)
3582 lt_cv_path_NM="$tmp_nm -p"
3583 break
3584 ;;
3585 *)
3586 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3587 continue # so that we can try to find one that supports BSD flags
3588 ;;
3589 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003590 ;;
3591 esac
vapier7f19c022007-02-17 14:46:31 +00003592 fi
3593 done
3594 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003595 done
mlcreech636a9952008-05-05 22:52:56 +00003596 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00003597fi
3598fi
drh710658c2012-01-16 13:00:05 +00003599{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
drh8b727472009-01-19 18:18:40 +00003600$as_echo "$lt_cv_path_NM" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003601if test "$lt_cv_path_NM" != "no"; then
3602 NM="$lt_cv_path_NM"
3603else
3604 # Didn't find any BSD compatible name lister, look for dumpbin.
3605 if test -n "$ac_tool_prefix"; then
3606 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3607 do
3608 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3609set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drh710658c2012-01-16 13:00:05 +00003610{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003611$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00003612if test "${ac_cv_prog_DUMPBIN+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003613 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003614else
3615 if test -n "$DUMPBIN"; then
3616 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3617else
3618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3619for as_dir in $PATH
3620do
3621 IFS=$as_save_IFS
3622 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00003623 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003624 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 +00003625 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
drh710658c2012-01-16 13:00:05 +00003626 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003627 break 2
3628 fi
3629done
drh710658c2012-01-16 13:00:05 +00003630done
drh8b727472009-01-19 18:18:40 +00003631IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00003632
mlcreech636a9952008-05-05 22:52:56 +00003633fi
3634fi
3635DUMPBIN=$ac_cv_prog_DUMPBIN
3636if test -n "$DUMPBIN"; then
drh710658c2012-01-16 13:00:05 +00003637 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003638$as_echo "$DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003639else
drh710658c2012-01-16 13:00:05 +00003640 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003641$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003642fi
3643
drh8b727472009-01-19 18:18:40 +00003644
mlcreech636a9952008-05-05 22:52:56 +00003645 test -n "$DUMPBIN" && break
3646 done
3647fi
3648if test -z "$DUMPBIN"; then
3649 ac_ct_DUMPBIN=$DUMPBIN
3650 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3651do
3652 # Extract the first word of "$ac_prog", so it can be a program name with args.
3653set dummy $ac_prog; ac_word=$2
drh710658c2012-01-16 13:00:05 +00003654{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003655$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00003656if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003657 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003658else
3659 if test -n "$ac_ct_DUMPBIN"; then
3660 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3661else
3662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663for as_dir in $PATH
3664do
3665 IFS=$as_save_IFS
3666 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00003667 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003668 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 +00003669 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
drh710658c2012-01-16 13:00:05 +00003670 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003671 break 2
3672 fi
3673done
drh710658c2012-01-16 13:00:05 +00003674done
drh8b727472009-01-19 18:18:40 +00003675IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003676
3677fi
3678fi
3679ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3680if test -n "$ac_ct_DUMPBIN"; then
drh710658c2012-01-16 13:00:05 +00003681 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003682$as_echo "$ac_ct_DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003683else
drh710658c2012-01-16 13:00:05 +00003684 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003685$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003686fi
3687
drh8b727472009-01-19 18:18:40 +00003688
mlcreech636a9952008-05-05 22:52:56 +00003689 test -n "$ac_ct_DUMPBIN" && break
3690done
3691
drh8b727472009-01-19 18:18:40 +00003692 if test "x$ac_ct_DUMPBIN" = x; then
3693 DUMPBIN=":"
3694 else
3695 case $cross_compiling:$ac_tool_warned in
3696yes:)
drh710658c2012-01-16 13:00:05 +00003697{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3698whose name does not start with the host triplet. If you think this
3699configuration is useful to you, please write to autoconf@gnu.org." >&5
3700$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3701whose name does not start with the host triplet. If you think this
3702configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00003703ac_tool_warned=yes ;;
3704esac
3705 DUMPBIN=$ac_ct_DUMPBIN
3706 fi
mlcreech636a9952008-05-05 22:52:56 +00003707fi
3708
3709
3710 if test "$DUMPBIN" != ":"; then
3711 NM="$DUMPBIN"
3712 fi
3713fi
3714test -z "$NM" && NM=nm
3715
3716
3717
3718
3719
3720
drh710658c2012-01-16 13:00:05 +00003721{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
drh8b727472009-01-19 18:18:40 +00003722$as_echo_n "checking the name lister ($NM) interface... " >&6; }
drh710658c2012-01-16 13:00:05 +00003723if test "${lt_cv_nm_interface+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003724 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003725else
3726 lt_cv_nm_interface="BSD nm"
3727 echo "int some_variable = 0;" > conftest.$ac_ext
drhd881ce82015-03-31 17:01:52 +00003728 (eval echo "\"\$as_me:3728: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003729 (eval "$ac_compile" 2>conftest.err)
3730 cat conftest.err >&5
drhd881ce82015-03-31 17:01:52 +00003731 (eval echo "\"\$as_me:3731: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003732 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3733 cat conftest.err >&5
drhd881ce82015-03-31 17:01:52 +00003734 (eval echo "\"\$as_me:3734: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003735 cat conftest.out >&5
3736 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3737 lt_cv_nm_interface="MS dumpbin"
3738 fi
3739 rm -f conftest*
3740fi
drh710658c2012-01-16 13:00:05 +00003741{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
drh8b727472009-01-19 18:18:40 +00003742$as_echo "$lt_cv_nm_interface" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003743
drh710658c2012-01-16 13:00:05 +00003744{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
drh8b727472009-01-19 18:18:40 +00003745$as_echo_n "checking whether ln -s works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003746LN_S=$as_ln_s
3747if test "$LN_S" = "ln -s"; then
drh710658c2012-01-16 13:00:05 +00003748 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00003749$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003750else
drh710658c2012-01-16 13:00:05 +00003751 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
drh8b727472009-01-19 18:18:40 +00003752$as_echo "no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003753fi
3754
mlcreech636a9952008-05-05 22:52:56 +00003755# find the maximum length of command line arguments
drh710658c2012-01-16 13:00:05 +00003756{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
drh8b727472009-01-19 18:18:40 +00003757$as_echo_n "checking the maximum length of command line arguments... " >&6; }
drh710658c2012-01-16 13:00:05 +00003758if test "${lt_cv_sys_max_cmd_len+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003759 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003760else
3761 i=0
3762 teststring="ABCD"
3763
3764 case $build_os in
3765 msdosdjgpp*)
3766 # On DJGPP, this test can blow up pretty badly due to problems in libc
3767 # (any single argument exceeding 2000 bytes causes a buffer overrun
3768 # during glob expansion). Even if it were fixed, the result of this
3769 # check would be larger than it should be.
3770 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3771 ;;
3772
3773 gnu*)
3774 # Under GNU Hurd, this test is not required because there is
3775 # no limit to the length of command line arguments.
3776 # Libtool will interpret -1 as no limit whatsoever
3777 lt_cv_sys_max_cmd_len=-1;
3778 ;;
3779
vapier6acb2cf2009-01-28 04:46:28 +00003780 cygwin* | mingw* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00003781 # On Win9x/ME, this test blows up -- it succeeds, but takes
3782 # about 5 minutes as the teststring grows exponentially.
3783 # Worse, since 9x/ME are not pre-emptively multitasking,
3784 # you end up with a "frozen" computer, even though with patience
3785 # the test eventually succeeds (with a max line length of 256k).
3786 # Instead, let's just punt: use the minimum linelength reported by
3787 # all of the supported platforms: 8192 (on NT/2K/XP).
3788 lt_cv_sys_max_cmd_len=8192;
3789 ;;
3790
3791 amigaos*)
3792 # On AmigaOS with pdksh, this test takes hours, literally.
3793 # So we just punt and use a minimum line length of 8192.
3794 lt_cv_sys_max_cmd_len=8192;
3795 ;;
3796
3797 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3798 # This has been around since 386BSD, at least. Likely further.
3799 if test -x /sbin/sysctl; then
3800 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
3801 elif test -x /usr/sbin/sysctl; then
3802 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
3803 else
3804 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
3805 fi
3806 # And add a safety zone
3807 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3808 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3809 ;;
3810
3811 interix*)
3812 # We know the value 262144 and hardcode it with a safety zone (like BSD)
3813 lt_cv_sys_max_cmd_len=196608
3814 ;;
3815
3816 osf*)
3817 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
3818 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
3819 # nice to cause kernel panics so lets avoid the loop below.
3820 # First set a reasonable default.
3821 lt_cv_sys_max_cmd_len=16384
3822 #
3823 if test -x /sbin/sysconfig; then
3824 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
3825 *1*) lt_cv_sys_max_cmd_len=-1 ;;
3826 esac
3827 fi
3828 ;;
3829 sco3.2v5*)
3830 lt_cv_sys_max_cmd_len=102400
3831 ;;
3832 sysv5* | sco5v6* | sysv4.2uw2*)
3833 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
3834 if test -n "$kargmax"; then
3835 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
3836 else
3837 lt_cv_sys_max_cmd_len=32768
3838 fi
3839 ;;
3840 *)
3841 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
3842 if test -n "$lt_cv_sys_max_cmd_len"; then
3843 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
3844 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
3845 else
3846 # Make teststring a little bigger before we do anything with it.
3847 # a 1K string should be a reasonable start.
3848 for i in 1 2 3 4 5 6 7 8 ; do
3849 teststring=$teststring$teststring
3850 done
3851 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
3852 # If test is not a shell built-in, we'll probably end up computing a
3853 # maximum length that is only half of the actual maximum length, but
3854 # we can't tell.
3855 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
3856 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
3857 test $i != 17 # 1/2 MB should be enough
3858 do
3859 i=`expr $i + 1`
3860 teststring=$teststring$teststring
3861 done
3862 # Only check the string length outside the loop.
3863 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
3864 teststring=
3865 # Add a significant safety factor because C++ compilers can tack on
3866 # massive amounts of additional arguments before passing them to the
3867 # linker. It appears as though 1/2 is a usable value.
3868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
3869 fi
3870 ;;
3871 esac
3872
3873fi
3874
3875if test -n $lt_cv_sys_max_cmd_len ; then
drh710658c2012-01-16 13:00:05 +00003876 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
drh8b727472009-01-19 18:18:40 +00003877$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003878else
drh710658c2012-01-16 13:00:05 +00003879 { $as_echo "$as_me:$LINENO: result: none" >&5
drh8b727472009-01-19 18:18:40 +00003880$as_echo "none" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003881fi
3882max_cmd_len=$lt_cv_sys_max_cmd_len
3883
3884
3885
3886
3887
3888
3889: ${CP="cp -f"}
3890: ${MV="mv -f"}
3891: ${RM="rm -f"}
3892
drh710658c2012-01-16 13:00:05 +00003893{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
drh8b727472009-01-19 18:18:40 +00003894$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003895# Try some XSI features
3896xsi_shell=no
3897( _lt_dummy="a/b/c"
3898 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
3899 = c,a/b,, \
3900 && eval 'test $(( 1 + 1 )) -eq 2 \
3901 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
3902 && xsi_shell=yes
drh710658c2012-01-16 13:00:05 +00003903{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
drh8b727472009-01-19 18:18:40 +00003904$as_echo "$xsi_shell" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003905
3906
drh710658c2012-01-16 13:00:05 +00003907{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
drh8b727472009-01-19 18:18:40 +00003908$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003909lt_shell_append=no
3910( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
3911 >/dev/null 2>&1 \
3912 && lt_shell_append=yes
drh710658c2012-01-16 13:00:05 +00003913{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
drh8b727472009-01-19 18:18:40 +00003914$as_echo "$lt_shell_append" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003915
3916
3917if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3918 lt_unset=unset
3919else
3920 lt_unset=false
3921fi
3922
3923
3924
3925
3926
3927# test EBCDIC or ASCII
3928case `echo X|tr X '\101'` in
3929 A) # ASCII based system
3930 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
3931 lt_SP2NL='tr \040 \012'
3932 lt_NL2SP='tr \015\012 \040\040'
3933 ;;
3934 *) # EBCDIC based system
3935 lt_SP2NL='tr \100 \n'
3936 lt_NL2SP='tr \r\n \100\100'
3937 ;;
3938esac
3939
3940
3941
3942
3943
3944
3945
3946
3947
drh710658c2012-01-16 13:00:05 +00003948{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
drh8b727472009-01-19 18:18:40 +00003949$as_echo_n "checking for $LD option to reload object files... " >&6; }
drh710658c2012-01-16 13:00:05 +00003950if test "${lt_cv_ld_reload_flag+set}" = set; then
drh8b727472009-01-19 18:18:40 +00003951 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003952else
3953 lt_cv_ld_reload_flag='-r'
3954fi
drh710658c2012-01-16 13:00:05 +00003955{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
drh8b727472009-01-19 18:18:40 +00003956$as_echo "$lt_cv_ld_reload_flag" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003957reload_flag=$lt_cv_ld_reload_flag
3958case $reload_flag in
3959"" | " "*) ;;
3960*) reload_flag=" $reload_flag" ;;
3961esac
3962reload_cmds='$LD$reload_flag -o $output$reload_objs'
3963case $host_os in
3964 darwin*)
3965 if test "$GCC" = yes; then
3966 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3967 else
3968 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3969 fi
3970 ;;
3971esac
3972
3973
3974
3975
3976
3977
3978
3979
3980
vapier6acb2cf2009-01-28 04:46:28 +00003981if test -n "$ac_tool_prefix"; then
3982 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
3983set dummy ${ac_tool_prefix}objdump; ac_word=$2
drh710658c2012-01-16 13:00:05 +00003984{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00003985$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00003986if test "${ac_cv_prog_OBJDUMP+set}" = set; then
vapier6acb2cf2009-01-28 04:46:28 +00003987 $as_echo_n "(cached) " >&6
3988else
3989 if test -n "$OBJDUMP"; then
3990 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
3991else
3992as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993for as_dir in $PATH
3994do
3995 IFS=$as_save_IFS
3996 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00003997 for ac_exec_ext in '' $ac_executable_extensions; do
vapier6acb2cf2009-01-28 04:46:28 +00003998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3999 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
drh710658c2012-01-16 13:00:05 +00004000 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004001 break 2
4002 fi
4003done
drh710658c2012-01-16 13:00:05 +00004004done
vapier6acb2cf2009-01-28 04:46:28 +00004005IFS=$as_save_IFS
4006
4007fi
4008fi
4009OBJDUMP=$ac_cv_prog_OBJDUMP
4010if test -n "$OBJDUMP"; then
drh710658c2012-01-16 13:00:05 +00004011 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004012$as_echo "$OBJDUMP" >&6; }
4013else
drh710658c2012-01-16 13:00:05 +00004014 { $as_echo "$as_me:$LINENO: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004015$as_echo "no" >&6; }
4016fi
4017
4018
4019fi
4020if test -z "$ac_cv_prog_OBJDUMP"; then
4021 ac_ct_OBJDUMP=$OBJDUMP
4022 # Extract the first word of "objdump", so it can be a program name with args.
4023set dummy objdump; ac_word=$2
drh710658c2012-01-16 13:00:05 +00004024{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004025$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00004026if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
vapier6acb2cf2009-01-28 04:46:28 +00004027 $as_echo_n "(cached) " >&6
4028else
4029 if test -n "$ac_ct_OBJDUMP"; then
4030 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4031else
4032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033for as_dir in $PATH
4034do
4035 IFS=$as_save_IFS
4036 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004037 for ac_exec_ext in '' $ac_executable_extensions; do
vapier6acb2cf2009-01-28 04:46:28 +00004038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4039 ac_cv_prog_ac_ct_OBJDUMP="objdump"
drh710658c2012-01-16 13:00:05 +00004040 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004041 break 2
4042 fi
4043done
drh710658c2012-01-16 13:00:05 +00004044done
vapier6acb2cf2009-01-28 04:46:28 +00004045IFS=$as_save_IFS
4046
4047fi
4048fi
4049ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4050if test -n "$ac_ct_OBJDUMP"; then
drh710658c2012-01-16 13:00:05 +00004051 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004052$as_echo "$ac_ct_OBJDUMP" >&6; }
4053else
drh710658c2012-01-16 13:00:05 +00004054 { $as_echo "$as_me:$LINENO: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004055$as_echo "no" >&6; }
4056fi
4057
4058 if test "x$ac_ct_OBJDUMP" = x; then
4059 OBJDUMP="false"
4060 else
4061 case $cross_compiling:$ac_tool_warned in
4062yes:)
drh710658c2012-01-16 13:00:05 +00004063{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4064whose name does not start with the host triplet. If you think this
4065configuration is useful to you, please write to autoconf@gnu.org." >&5
4066$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4067whose name does not start with the host triplet. If you think this
4068configuration is useful to you, please write to autoconf@gnu.org." >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00004069ac_tool_warned=yes ;;
4070esac
4071 OBJDUMP=$ac_ct_OBJDUMP
4072 fi
4073else
4074 OBJDUMP="$ac_cv_prog_OBJDUMP"
4075fi
4076
4077test -z "$OBJDUMP" && OBJDUMP=objdump
4078
4079
4080
4081
4082
4083
4084
4085
mlcreech636a9952008-05-05 22:52:56 +00004086
drh710658c2012-01-16 13:00:05 +00004087{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
drh8b727472009-01-19 18:18:40 +00004088$as_echo_n "checking how to recognize dependent libraries... " >&6; }
drh710658c2012-01-16 13:00:05 +00004089if test "${lt_cv_deplibs_check_method+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004090 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00004091else
4092 lt_cv_file_magic_cmd='$MAGIC_CMD'
4093lt_cv_file_magic_test_file=
4094lt_cv_deplibs_check_method='unknown'
4095# Need to set the preceding variable on all platforms that support
4096# interlibrary dependencies.
4097# 'none' -- dependencies not supported.
4098# `unknown' -- same as none, but documents that we really don't know.
4099# 'pass_all' -- all dependencies passed with no checks.
4100# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00004101# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00004102# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00004103# If you have `file' or equivalent on your system and you're not sure
4104# whether `pass_all' will *always* work, you probably want this one.
4105
4106case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00004107aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00004108 lt_cv_deplibs_check_method=pass_all
4109 ;;
4110
4111beos*)
4112 lt_cv_deplibs_check_method=pass_all
4113 ;;
4114
vapier7f19c022007-02-17 14:46:31 +00004115bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00004116 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4117 lt_cv_file_magic_cmd='/usr/bin/file -L'
4118 lt_cv_file_magic_test_file=/shlib/libc.so
4119 ;;
4120
a.rottmann9bc8b932004-02-29 15:18:31 +00004121cygwin*)
vapier7f19c022007-02-17 14:46:31 +00004122 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00004123 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00004124 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00004125 ;;
4126
4127mingw* | pw32*)
4128 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00004129 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4130 # unless we find 'file', for example because we are cross-compiling.
4131 if ( file / ) >/dev/null 2>&1; then
4132 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4133 lt_cv_file_magic_cmd='func_win32_libid'
4134 else
4135 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4136 lt_cv_file_magic_cmd='$OBJDUMP -f'
4137 fi
drh71eb93e2001-09-28 01:34:43 +00004138 ;;
4139
vapier6acb2cf2009-01-28 04:46:28 +00004140cegcc)
4141 # use the weaker test based on 'objdump'. See mingw*.
4142 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4143 lt_cv_file_magic_cmd='$OBJDUMP -f'
4144 ;;
4145
drh71eb93e2001-09-28 01:34:43 +00004146darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004147 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004148 ;;
4149
mlcreech636a9952008-05-05 22:52:56 +00004150freebsd* | dragonfly*)
4151 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004152 case $host_cpu in
4153 i*86 )
4154 # Not sure whether the presence of OpenBSD here was a mistake.
4155 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00004156 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 +00004157 lt_cv_file_magic_cmd=/usr/bin/file
4158 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4159 ;;
4160 esac
4161 else
4162 lt_cv_deplibs_check_method=pass_all
4163 fi
4164 ;;
4165
4166gnu*)
4167 lt_cv_deplibs_check_method=pass_all
4168 ;;
4169
a.rottmann9bc8b932004-02-29 15:18:31 +00004170hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00004171 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00004172 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00004173 ia64*)
4174 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4175 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4176 ;;
4177 hppa*64*)
4178 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]'
4179 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4180 ;;
4181 *)
4182 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4183 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4184 ;;
4185 esac
drh71eb93e2001-09-28 01:34:43 +00004186 ;;
4187
mlcreech636a9952008-05-05 22:52:56 +00004188interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00004189 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4190 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4191 ;;
4192
a.rottmann84e63352003-03-24 09:42:16 +00004193irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004194 case $LD in
4195 *-32|*"-32 ") libmagic=32-bit;;
4196 *-n32|*"-n32 ") libmagic=N32;;
4197 *-64|*"-64 ") libmagic=64-bit;;
4198 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00004199 esac
drh71eb93e2001-09-28 01:34:43 +00004200 lt_cv_deplibs_check_method=pass_all
4201 ;;
4202
4203# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00004204linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00004205 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004206 ;;
4207
vapier7f19c022007-02-17 14:46:31 +00004208netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004209 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004210 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004211 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004212 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004213 fi
4214 ;;
4215
4216newos6*)
4217 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4218 lt_cv_file_magic_cmd=/usr/bin/file
4219 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4220 ;;
4221
mlcreech636a9952008-05-05 22:52:56 +00004222*nto* | *qnx*)
4223 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00004224 ;;
4225
a.rottmann84e63352003-03-24 09:42:16 +00004226openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004227 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00004228 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004229 else
vapier7f19c022007-02-17 14:46:31 +00004230 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004231 fi
drh71eb93e2001-09-28 01:34:43 +00004232 ;;
4233
4234osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004235 lt_cv_deplibs_check_method=pass_all
4236 ;;
4237
mlcreech636a9952008-05-05 22:52:56 +00004238rdos*)
4239 lt_cv_deplibs_check_method=pass_all
4240 ;;
4241
drh71eb93e2001-09-28 01:34:43 +00004242solaris*)
4243 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00004244 ;;
4245
mlcreech636a9952008-05-05 22:52:56 +00004246sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4247 lt_cv_deplibs_check_method=pass_all
4248 ;;
4249
vapier7f19c022007-02-17 14:46:31 +00004250sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00004251 case $host_vendor in
4252 motorola)
4253 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]'
4254 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4255 ;;
4256 ncr)
4257 lt_cv_deplibs_check_method=pass_all
4258 ;;
4259 sequent)
4260 lt_cv_file_magic_cmd='/bin/file'
4261 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4262 ;;
4263 sni)
4264 lt_cv_file_magic_cmd='/bin/file'
4265 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4266 lt_cv_file_magic_test_file=/lib/libc.so
4267 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004268 siemens)
4269 lt_cv_deplibs_check_method=pass_all
4270 ;;
vapier7f19c022007-02-17 14:46:31 +00004271 pc)
4272 lt_cv_deplibs_check_method=pass_all
4273 ;;
drh71eb93e2001-09-28 01:34:43 +00004274 esac
4275 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004276
mlcreech636a9952008-05-05 22:52:56 +00004277tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004278 lt_cv_deplibs_check_method=pass_all
4279 ;;
drh71eb93e2001-09-28 01:34:43 +00004280esac
4281
4282fi
drh710658c2012-01-16 13:00:05 +00004283{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
drh8b727472009-01-19 18:18:40 +00004284$as_echo "$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004285file_magic_cmd=$lt_cv_file_magic_cmd
4286deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00004287test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00004288
drh71eb93e2001-09-28 01:34:43 +00004289
drh71eb93e2001-09-28 01:34:43 +00004290
drh71eb93e2001-09-28 01:34:43 +00004291
mlcreech636a9952008-05-05 22:52:56 +00004292
4293
4294
4295
4296
4297
4298
4299
4300if test -n "$ac_tool_prefix"; then
4301 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4302set dummy ${ac_tool_prefix}ar; ac_word=$2
drh710658c2012-01-16 13:00:05 +00004303{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004304$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00004305if test "${ac_cv_prog_AR+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004306 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004307else
4308 if test -n "$AR"; then
4309 ac_cv_prog_AR="$AR" # Let the user override the test.
4310else
4311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312for as_dir in $PATH
4313do
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004316 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004317 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 +00004318 ac_cv_prog_AR="${ac_tool_prefix}ar"
drh710658c2012-01-16 13:00:05 +00004319 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004320 break 2
4321 fi
4322done
drh710658c2012-01-16 13:00:05 +00004323done
drh8b727472009-01-19 18:18:40 +00004324IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004325
4326fi
4327fi
4328AR=$ac_cv_prog_AR
4329if test -n "$AR"; then
drh710658c2012-01-16 13:00:05 +00004330 { $as_echo "$as_me:$LINENO: result: $AR" >&5
drh8b727472009-01-19 18:18:40 +00004331$as_echo "$AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004332else
drh710658c2012-01-16 13:00:05 +00004333 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004334$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004335fi
4336
drh8b727472009-01-19 18:18:40 +00004337
mlcreech636a9952008-05-05 22:52:56 +00004338fi
4339if test -z "$ac_cv_prog_AR"; then
4340 ac_ct_AR=$AR
4341 # Extract the first word of "ar", so it can be a program name with args.
4342set dummy ar; ac_word=$2
drh710658c2012-01-16 13:00:05 +00004343{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004344$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00004345if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004346 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004347else
4348 if test -n "$ac_ct_AR"; then
4349 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4350else
4351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352for as_dir in $PATH
4353do
4354 IFS=$as_save_IFS
4355 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004356 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004357 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 +00004358 ac_cv_prog_ac_ct_AR="ar"
drh710658c2012-01-16 13:00:05 +00004359 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004360 break 2
4361 fi
4362done
drh710658c2012-01-16 13:00:05 +00004363done
drh8b727472009-01-19 18:18:40 +00004364IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004365
4366fi
4367fi
4368ac_ct_AR=$ac_cv_prog_ac_ct_AR
4369if test -n "$ac_ct_AR"; then
drh710658c2012-01-16 13:00:05 +00004370 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
drh8b727472009-01-19 18:18:40 +00004371$as_echo "$ac_ct_AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004372else
drh710658c2012-01-16 13:00:05 +00004373 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004374$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004375fi
4376
drh8b727472009-01-19 18:18:40 +00004377 if test "x$ac_ct_AR" = x; then
4378 AR="false"
4379 else
4380 case $cross_compiling:$ac_tool_warned in
4381yes:)
drh710658c2012-01-16 13:00:05 +00004382{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4383whose name does not start with the host triplet. If you think this
4384configuration is useful to you, please write to autoconf@gnu.org." >&5
4385$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4386whose name does not start with the host triplet. If you think this
4387configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00004388ac_tool_warned=yes ;;
4389esac
4390 AR=$ac_ct_AR
4391 fi
mlcreech636a9952008-05-05 22:52:56 +00004392else
4393 AR="$ac_cv_prog_AR"
4394fi
4395
4396test -z "$AR" && AR=ar
4397test -z "$AR_FLAGS" && AR_FLAGS=cru
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409if test -n "$ac_tool_prefix"; then
4410 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4411set dummy ${ac_tool_prefix}strip; ac_word=$2
drh710658c2012-01-16 13:00:05 +00004412{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004413$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00004414if test "${ac_cv_prog_STRIP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004415 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004416else
4417 if test -n "$STRIP"; then
4418 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4419else
4420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421for as_dir in $PATH
4422do
4423 IFS=$as_save_IFS
4424 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004425 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004426 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 +00004427 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
drh710658c2012-01-16 13:00:05 +00004428 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004429 break 2
4430 fi
4431done
drh710658c2012-01-16 13:00:05 +00004432done
drh8b727472009-01-19 18:18:40 +00004433IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004434
4435fi
4436fi
4437STRIP=$ac_cv_prog_STRIP
4438if test -n "$STRIP"; then
drh710658c2012-01-16 13:00:05 +00004439 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004440$as_echo "$STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004441else
drh710658c2012-01-16 13:00:05 +00004442 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004443$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004444fi
4445
drh8b727472009-01-19 18:18:40 +00004446
mlcreech636a9952008-05-05 22:52:56 +00004447fi
4448if test -z "$ac_cv_prog_STRIP"; then
4449 ac_ct_STRIP=$STRIP
4450 # Extract the first word of "strip", so it can be a program name with args.
4451set dummy strip; ac_word=$2
drh710658c2012-01-16 13:00:05 +00004452{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004453$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00004454if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004455 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004456else
4457 if test -n "$ac_ct_STRIP"; then
4458 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4459else
4460as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461for as_dir in $PATH
4462do
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004465 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004466 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 +00004467 ac_cv_prog_ac_ct_STRIP="strip"
drh710658c2012-01-16 13:00:05 +00004468 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004469 break 2
4470 fi
4471done
drh710658c2012-01-16 13:00:05 +00004472done
drh8b727472009-01-19 18:18:40 +00004473IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004474
4475fi
4476fi
4477ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4478if test -n "$ac_ct_STRIP"; then
drh710658c2012-01-16 13:00:05 +00004479 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004480$as_echo "$ac_ct_STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004481else
drh710658c2012-01-16 13:00:05 +00004482 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004483$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004484fi
4485
drh8b727472009-01-19 18:18:40 +00004486 if test "x$ac_ct_STRIP" = x; then
4487 STRIP=":"
4488 else
4489 case $cross_compiling:$ac_tool_warned in
4490yes:)
drh710658c2012-01-16 13:00:05 +00004491{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4492whose name does not start with the host triplet. If you think this
4493configuration is useful to you, please write to autoconf@gnu.org." >&5
4494$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4495whose name does not start with the host triplet. If you think this
4496configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00004497ac_tool_warned=yes ;;
4498esac
4499 STRIP=$ac_ct_STRIP
4500 fi
mlcreech636a9952008-05-05 22:52:56 +00004501else
4502 STRIP="$ac_cv_prog_STRIP"
4503fi
4504
4505test -z "$STRIP" && STRIP=:
4506
4507
4508
4509
4510
4511
4512if test -n "$ac_tool_prefix"; then
4513 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4514set dummy ${ac_tool_prefix}ranlib; ac_word=$2
drh710658c2012-01-16 13:00:05 +00004515{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004516$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00004517if test "${ac_cv_prog_RANLIB+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004518 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004519else
4520 if test -n "$RANLIB"; then
4521 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4522else
4523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524for as_dir in $PATH
4525do
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004528 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004529 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 +00004530 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
drh710658c2012-01-16 13:00:05 +00004531 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004532 break 2
4533 fi
4534done
drh710658c2012-01-16 13:00:05 +00004535done
drh8b727472009-01-19 18:18:40 +00004536IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004537
4538fi
4539fi
4540RANLIB=$ac_cv_prog_RANLIB
4541if test -n "$RANLIB"; then
drh710658c2012-01-16 13:00:05 +00004542 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004543$as_echo "$RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004544else
drh710658c2012-01-16 13:00:05 +00004545 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004546$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004547fi
4548
drh8b727472009-01-19 18:18:40 +00004549
mlcreech636a9952008-05-05 22:52:56 +00004550fi
4551if test -z "$ac_cv_prog_RANLIB"; then
4552 ac_ct_RANLIB=$RANLIB
4553 # Extract the first word of "ranlib", so it can be a program name with args.
4554set dummy ranlib; ac_word=$2
drh710658c2012-01-16 13:00:05 +00004555{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004556$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00004557if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004558 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004559else
4560 if test -n "$ac_ct_RANLIB"; then
4561 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4562else
4563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564for as_dir in $PATH
4565do
4566 IFS=$as_save_IFS
4567 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00004568 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00004569 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 +00004570 ac_cv_prog_ac_ct_RANLIB="ranlib"
drh710658c2012-01-16 13:00:05 +00004571 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004572 break 2
4573 fi
4574done
drh710658c2012-01-16 13:00:05 +00004575done
drh8b727472009-01-19 18:18:40 +00004576IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004577
4578fi
4579fi
4580ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4581if test -n "$ac_ct_RANLIB"; then
drh710658c2012-01-16 13:00:05 +00004582 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004583$as_echo "$ac_ct_RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004584else
drh710658c2012-01-16 13:00:05 +00004585 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004586$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004587fi
4588
drh8b727472009-01-19 18:18:40 +00004589 if test "x$ac_ct_RANLIB" = x; then
4590 RANLIB=":"
4591 else
4592 case $cross_compiling:$ac_tool_warned in
4593yes:)
drh710658c2012-01-16 13:00:05 +00004594{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4595whose name does not start with the host triplet. If you think this
4596configuration is useful to you, please write to autoconf@gnu.org." >&5
4597$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4598whose name does not start with the host triplet. If you think this
4599configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00004600ac_tool_warned=yes ;;
4601esac
4602 RANLIB=$ac_ct_RANLIB
4603 fi
mlcreech636a9952008-05-05 22:52:56 +00004604else
4605 RANLIB="$ac_cv_prog_RANLIB"
4606fi
4607
4608test -z "$RANLIB" && RANLIB=:
4609
4610
4611
4612
4613
4614
4615# Determine commands to create old-style static archives.
4616old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4617old_postinstall_cmds='chmod 644 $oldlib'
4618old_postuninstall_cmds=
4619
4620if test -n "$RANLIB"; then
4621 case $host_os in
4622 openbsd*)
4623 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4624 ;;
4625 *)
4626 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4627 ;;
4628 esac
4629 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4630fi
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
a.rottmann9bc8b932004-02-29 15:18:31 +00004665# If no C compiler was specified, use CC.
4666LTCC=${LTCC-"$CC"}
4667
vapier7f19c022007-02-17 14:46:31 +00004668# If no C compiler flags were specified, use CFLAGS.
4669LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4670
a.rottmann9bc8b932004-02-29 15:18:31 +00004671# Allow CC to be a program name with arguments.
4672compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00004673
drh71eb93e2001-09-28 01:34:43 +00004674
mlcreech636a9952008-05-05 22:52:56 +00004675# Check for command to grab the raw symbol name followed by C symbol from nm.
drh710658c2012-01-16 13:00:05 +00004676{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
drh8b727472009-01-19 18:18:40 +00004677$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
drh710658c2012-01-16 13:00:05 +00004678if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004679 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004680else
4681
4682# These are sane defaults that work on at least a few old systems.
4683# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4684
4685# Character class describing NM global symbol codes.
4686symcode='[BCDEGRST]'
4687
4688# Regexp to match symbols that can be accessed directly from C.
4689sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4690
4691# Define system-specific variables.
4692case $host_os in
4693aix*)
4694 symcode='[BCDT]'
4695 ;;
vapier6acb2cf2009-01-28 04:46:28 +00004696cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00004697 symcode='[ABCDGISTW]'
4698 ;;
4699hpux*)
4700 if test "$host_cpu" = ia64; then
4701 symcode='[ABCDEGRST]'
4702 fi
4703 ;;
4704irix* | nonstopux*)
4705 symcode='[BCDEGRST]'
4706 ;;
4707osf*)
4708 symcode='[BCDEGQRST]'
4709 ;;
4710solaris*)
4711 symcode='[BDRT]'
4712 ;;
4713sco3.2v5*)
4714 symcode='[DT]'
4715 ;;
4716sysv4.2uw2*)
4717 symcode='[DT]'
4718 ;;
4719sysv5* | sco5v6* | unixware* | OpenUNIX*)
4720 symcode='[ABDT]'
4721 ;;
4722sysv4)
4723 symcode='[DFNSTU]'
4724 ;;
4725esac
4726
4727# If we're using GNU nm, then use its standard symbol codes.
4728case `$NM -V 2>&1` in
4729*GNU* | *'with BFD'*)
4730 symcode='[ABCDGIRSTW]' ;;
4731esac
4732
4733# Transform an extracted symbol line into a proper C declaration.
4734# Some systems (esp. on ia64) link data and code symbols differently,
4735# so use this general approach.
4736lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4737
4738# Transform an extracted symbol line into symbol name and symbol address
4739lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4740lt_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'"
4741
4742# Handle CRLF in mingw tool chain
4743opt_cr=
4744case $build_os in
4745mingw*)
4746 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4747 ;;
4748esac
4749
4750# Try without a prefix underscore, then with it.
4751for ac_symprfx in "" "_"; do
4752
4753 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4754 symxfrm="\\1 $ac_symprfx\\2 \\2"
4755
4756 # Write the raw and C identifiers.
4757 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4758 # Fake it for dumpbin and say T for any non-static function
4759 # and D for any global variable.
4760 # Also find C++ and __fastcall symbols from MSVC++,
4761 # which start with @ or ?.
4762 lt_cv_sys_global_symbol_pipe="$AWK '"\
4763" {last_section=section; section=\$ 3};"\
4764" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4765" \$ 0!~/External *\|/{next};"\
4766" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4767" {if(hide[section]) next};"\
4768" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4769" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4770" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4771" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4772" ' prfx=^$ac_symprfx"
4773 else
4774 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4775 fi
4776
4777 # Check to see that the pipe works correctly.
4778 pipe_works=no
4779
4780 rm -f conftest*
4781 cat > conftest.$ac_ext <<_LT_EOF
4782#ifdef __cplusplus
4783extern "C" {
4784#endif
4785char nm_test_var;
4786void nm_test_func(void);
4787void nm_test_func(void){}
4788#ifdef __cplusplus
4789}
4790#endif
4791int main(){nm_test_var='a';nm_test_func();return(0);}
4792_LT_EOF
4793
drh710658c2012-01-16 13:00:05 +00004794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
mlcreech636a9952008-05-05 22:52:56 +00004795 (eval $ac_compile) 2>&5
4796 ac_status=$?
drh710658c2012-01-16 13:00:05 +00004797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); }; then
mlcreech636a9952008-05-05 22:52:56 +00004799 # Now try to grab the symbols.
4800 nlist=conftest.nm
drh710658c2012-01-16 13:00:05 +00004801 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
mlcreech636a9952008-05-05 22:52:56 +00004802 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4803 ac_status=$?
drh710658c2012-01-16 13:00:05 +00004804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); } && test -s "$nlist"; then
mlcreech636a9952008-05-05 22:52:56 +00004806 # Try sorting and uniquifying the output.
4807 if sort "$nlist" | uniq > "$nlist"T; then
4808 mv -f "$nlist"T "$nlist"
4809 else
4810 rm -f "$nlist"T
4811 fi
4812
4813 # Make sure that we snagged all the symbols we need.
4814 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4815 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4816 cat <<_LT_EOF > conftest.$ac_ext
4817#ifdef __cplusplus
4818extern "C" {
4819#endif
4820
4821_LT_EOF
4822 # Now generate the symbol file.
4823 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4824
4825 cat <<_LT_EOF >> conftest.$ac_ext
4826
4827/* The mapping between symbol names and symbols. */
4828const struct {
4829 const char *name;
4830 void *address;
4831}
4832lt__PROGRAM__LTX_preloaded_symbols[] =
4833{
4834 { "@PROGRAM@", (void *) 0 },
4835_LT_EOF
4836 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4837 cat <<\_LT_EOF >> conftest.$ac_ext
4838 {0, (void *) 0}
4839};
4840
4841/* This works around a problem in FreeBSD linker */
4842#ifdef FREEBSD_WORKAROUND
4843static const void *lt_preloaded_setup() {
4844 return lt__PROGRAM__LTX_preloaded_symbols;
4845}
4846#endif
4847
4848#ifdef __cplusplus
4849}
4850#endif
4851_LT_EOF
4852 # Now try linking the two files.
4853 mv conftest.$ac_objext conftstm.$ac_objext
4854 lt_save_LIBS="$LIBS"
4855 lt_save_CFLAGS="$CFLAGS"
4856 LIBS="conftstm.$ac_objext"
4857 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
drh710658c2012-01-16 13:00:05 +00004858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
mlcreech636a9952008-05-05 22:52:56 +00004859 (eval $ac_link) 2>&5
4860 ac_status=$?
drh710658c2012-01-16 13:00:05 +00004861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } && test -s conftest${ac_exeext}; then
mlcreech636a9952008-05-05 22:52:56 +00004863 pipe_works=yes
4864 fi
4865 LIBS="$lt_save_LIBS"
4866 CFLAGS="$lt_save_CFLAGS"
4867 else
4868 echo "cannot find nm_test_func in $nlist" >&5
4869 fi
4870 else
4871 echo "cannot find nm_test_var in $nlist" >&5
4872 fi
4873 else
4874 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4875 fi
4876 else
4877 echo "$progname: failed program was:" >&5
4878 cat conftest.$ac_ext >&5
4879 fi
4880 rm -rf conftest* conftst*
4881
4882 # Do not use the global_symbol_pipe unless it works.
4883 if test "$pipe_works" = yes; then
4884 break
4885 else
4886 lt_cv_sys_global_symbol_pipe=
4887 fi
4888done
4889
4890fi
4891
4892if test -z "$lt_cv_sys_global_symbol_pipe"; then
4893 lt_cv_sys_global_symbol_to_cdecl=
4894fi
4895if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
drh710658c2012-01-16 13:00:05 +00004896 { $as_echo "$as_me:$LINENO: result: failed" >&5
drh8b727472009-01-19 18:18:40 +00004897$as_echo "failed" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004898else
drh710658c2012-01-16 13:00:05 +00004899 { $as_echo "$as_me:$LINENO: result: ok" >&5
drh8b727472009-01-19 18:18:40 +00004900$as_echo "ok" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004901fi
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
drh8b727472009-01-19 18:18:40 +00004925# Check whether --enable-libtool-lock was given.
drh710658c2012-01-16 13:00:05 +00004926if test "${enable_libtool_lock+set}" = set; then
drh8b727472009-01-19 18:18:40 +00004927 enableval=$enable_libtool_lock;
4928fi
drh71eb93e2001-09-28 01:34:43 +00004929
a.rottmann9bc8b932004-02-29 15:18:31 +00004930test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00004931
a.rottmann9bc8b932004-02-29 15:18:31 +00004932# Some flags need to be propagated to the compiler or linker for good
4933# libtool support.
4934case $host in
4935ia64-*-hpux*)
4936 # Find out which ABI we are using.
4937 echo 'int i;' > conftest.$ac_ext
drh710658c2012-01-16 13:00:05 +00004938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
drh71eb93e2001-09-28 01:34:43 +00004939 (eval $ac_compile) 2>&5
4940 ac_status=$?
drh710658c2012-01-16 13:00:05 +00004941 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004943 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00004944 *ELF-32*)
4945 HPUX_IA64_MODE="32"
4946 ;;
4947 *ELF-64*)
4948 HPUX_IA64_MODE="64"
4949 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004950 esac
4951 fi
4952 rm -rf conftest*
4953 ;;
4954*-*-irix6*)
4955 # Find out which ABI we are using.
drhd881ce82015-03-31 17:01:52 +00004956 echo '#line 4956 "configure"' > conftest.$ac_ext
drh710658c2012-01-16 13:00:05 +00004957 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004958 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00004959 ac_status=$?
drh710658c2012-01-16 13:00:05 +00004960 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4961 (exit $ac_status); }; then
mlcreech636a9952008-05-05 22:52:56 +00004962 if test "$lt_cv_prog_gnu_ld" = yes; then
4963 case `/usr/bin/file conftest.$ac_objext` in
4964 *32-bit*)
4965 LD="${LD-ld} -melf32bsmip"
4966 ;;
4967 *N32*)
4968 LD="${LD-ld} -melf32bmipn32"
4969 ;;
4970 *64-bit*)
4971 LD="${LD-ld} -melf64bmip"
4972 ;;
4973 esac
4974 else
4975 case `/usr/bin/file conftest.$ac_objext` in
4976 *32-bit*)
4977 LD="${LD-ld} -32"
4978 ;;
4979 *N32*)
4980 LD="${LD-ld} -n32"
4981 ;;
4982 *64-bit*)
4983 LD="${LD-ld} -64"
4984 ;;
4985 esac
4986 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00004987 fi
4988 rm -rf conftest*
4989 ;;
drh71eb93e2001-09-28 01:34:43 +00004990
mlcreech636a9952008-05-05 22:52:56 +00004991x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4992s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004993 # Find out which ABI we are using.
4994 echo 'int i;' > conftest.$ac_ext
drh710658c2012-01-16 13:00:05 +00004995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00004996 (eval $ac_compile) 2>&5
4997 ac_status=$?
drh710658c2012-01-16 13:00:05 +00004998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999 (exit $ac_status); }; then
vapier7f19c022007-02-17 14:46:31 +00005000 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00005001 *32-bit*)
5002 case $host in
5003 x86_64-*kfreebsd*-gnu)
5004 LD="${LD-ld} -m elf_i386_fbsd"
5005 ;;
5006 x86_64-*linux*)
5007 LD="${LD-ld} -m elf_i386"
5008 ;;
5009 ppc64-*linux*|powerpc64-*linux*)
5010 LD="${LD-ld} -m elf32ppclinux"
5011 ;;
5012 s390x-*linux*)
5013 LD="${LD-ld} -m elf_s390"
5014 ;;
5015 sparc64-*linux*)
5016 LD="${LD-ld} -m elf32_sparc"
5017 ;;
5018 esac
5019 ;;
5020 *64-bit*)
5021 case $host in
5022 x86_64-*kfreebsd*-gnu)
5023 LD="${LD-ld} -m elf_x86_64_fbsd"
5024 ;;
5025 x86_64-*linux*)
5026 LD="${LD-ld} -m elf_x86_64"
5027 ;;
5028 ppc*-*linux*|powerpc*-*linux*)
5029 LD="${LD-ld} -m elf64ppc"
5030 ;;
5031 s390*-*linux*|s390*-*tpf*)
5032 LD="${LD-ld} -m elf64_s390"
5033 ;;
5034 sparc*-*linux*)
5035 LD="${LD-ld} -m elf64_sparc"
5036 ;;
5037 esac
5038 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005039 esac
5040 fi
5041 rm -rf conftest*
5042 ;;
drh71eb93e2001-09-28 01:34:43 +00005043
a.rottmann9bc8b932004-02-29 15:18:31 +00005044*-*-sco3.2v5*)
5045 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5046 SAVE_CFLAGS="$CFLAGS"
5047 CFLAGS="$CFLAGS -belf"
drh710658c2012-01-16 13:00:05 +00005048 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
drh8b727472009-01-19 18:18:40 +00005049$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
drh710658c2012-01-16 13:00:05 +00005050if test "${lt_cv_cc_needs_belf+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005051 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005052else
5053 ac_ext=c
5054ac_cpp='$CPP $CPPFLAGS'
5055ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5056ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5057ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00005058
drh710658c2012-01-16 13:00:05 +00005059 cat >conftest.$ac_ext <<_ACEOF
5060/* confdefs.h. */
5061_ACEOF
5062cat confdefs.h >>conftest.$ac_ext
5063cat >>conftest.$ac_ext <<_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00005064/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00005065
a.rottmann9bc8b932004-02-29 15:18:31 +00005066int
5067main ()
drh71eb93e2001-09-28 01:34:43 +00005068{
drh71eb93e2001-09-28 01:34:43 +00005069
a.rottmann9bc8b932004-02-29 15:18:31 +00005070 ;
5071 return 0;
drh71eb93e2001-09-28 01:34:43 +00005072}
a.rottmann9bc8b932004-02-29 15:18:31 +00005073_ACEOF
drh710658c2012-01-16 13:00:05 +00005074rm -f conftest.$ac_objext conftest$ac_exeext
5075if { (ac_try="$ac_link"
5076case "(($ac_try" in
5077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5078 *) ac_try_echo=$ac_try;;
5079esac
5080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5081$as_echo "$ac_try_echo") >&5
5082 (eval "$ac_link") 2>conftest.er1
5083 ac_status=$?
5084 grep -v '^ *+' conftest.er1 >conftest.err
5085 rm -f conftest.er1
5086 cat conftest.err >&5
5087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088 (exit $ac_status); } && {
5089 test -z "$ac_c_werror_flag" ||
5090 test ! -s conftest.err
5091 } && test -s conftest$ac_exeext && {
5092 test "$cross_compiling" = yes ||
5093 $as_test_x conftest$ac_exeext
5094 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005095 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00005096else
drh710658c2012-01-16 13:00:05 +00005097 $as_echo "$as_me: failed program was:" >&5
5098sed 's/^/| /' conftest.$ac_ext >&5
5099
5100 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00005101fi
drh710658c2012-01-16 13:00:05 +00005102
5103rm -rf conftest.dSYM
5104rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5105 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005106 ac_ext=c
5107ac_cpp='$CPP $CPPFLAGS'
5108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5110ac_compiler_gnu=$ac_cv_c_compiler_gnu
5111
drh71eb93e2001-09-28 01:34:43 +00005112fi
drh710658c2012-01-16 13:00:05 +00005113{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
drh8b727472009-01-19 18:18:40 +00005114$as_echo "$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005115 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5116 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5117 CFLAGS="$SAVE_CFLAGS"
5118 fi
5119 ;;
vapier7f19c022007-02-17 14:46:31 +00005120sparc*-*solaris*)
5121 # Find out which ABI we are using.
5122 echo 'int i;' > conftest.$ac_ext
drh710658c2012-01-16 13:00:05 +00005123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
vapier7f19c022007-02-17 14:46:31 +00005124 (eval $ac_compile) 2>&5
5125 ac_status=$?
drh710658c2012-01-16 13:00:05 +00005126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); }; then
vapier7f19c022007-02-17 14:46:31 +00005128 case `/usr/bin/file conftest.o` in
5129 *64-bit*)
5130 case $lt_cv_prog_gnu_ld in
5131 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00005132 *)
5133 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5134 LD="${LD-ld} -64"
5135 fi
5136 ;;
vapier7f19c022007-02-17 14:46:31 +00005137 esac
5138 ;;
5139 esac
5140 fi
5141 rm -rf conftest*
5142 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005143esac
5144
5145need_locks="$enable_libtool_lock"
5146
drh71eb93e2001-09-28 01:34:43 +00005147
mlcreech636a9952008-05-05 22:52:56 +00005148 case $host_os in
5149 rhapsody* | darwin*)
5150 if test -n "$ac_tool_prefix"; then
5151 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5152set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005153{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005154$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005155if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005156 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005157else
5158 if test -n "$DSYMUTIL"; then
5159 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5160else
5161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5162for as_dir in $PATH
5163do
5164 IFS=$as_save_IFS
5165 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005166 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005167 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 +00005168 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
drh710658c2012-01-16 13:00:05 +00005169 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005170 break 2
5171 fi
5172done
drh710658c2012-01-16 13:00:05 +00005173done
drh8b727472009-01-19 18:18:40 +00005174IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005175
5176fi
5177fi
5178DSYMUTIL=$ac_cv_prog_DSYMUTIL
5179if test -n "$DSYMUTIL"; then
drh710658c2012-01-16 13:00:05 +00005180 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005181$as_echo "$DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005182else
drh710658c2012-01-16 13:00:05 +00005183 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005184$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005185fi
5186
drh8b727472009-01-19 18:18:40 +00005187
mlcreech636a9952008-05-05 22:52:56 +00005188fi
5189if test -z "$ac_cv_prog_DSYMUTIL"; then
5190 ac_ct_DSYMUTIL=$DSYMUTIL
5191 # Extract the first word of "dsymutil", so it can be a program name with args.
5192set dummy dsymutil; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005193{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005194$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005195if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005196 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005197else
5198 if test -n "$ac_ct_DSYMUTIL"; then
5199 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5200else
5201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5202for as_dir in $PATH
5203do
5204 IFS=$as_save_IFS
5205 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005206 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005207 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 +00005208 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
drh710658c2012-01-16 13:00:05 +00005209 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005210 break 2
5211 fi
5212done
drh710658c2012-01-16 13:00:05 +00005213done
drh8b727472009-01-19 18:18:40 +00005214IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005215
5216fi
5217fi
5218ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5219if test -n "$ac_ct_DSYMUTIL"; then
drh710658c2012-01-16 13:00:05 +00005220 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005221$as_echo "$ac_ct_DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005222else
drh710658c2012-01-16 13:00:05 +00005223 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005224$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005225fi
5226
drh8b727472009-01-19 18:18:40 +00005227 if test "x$ac_ct_DSYMUTIL" = x; then
5228 DSYMUTIL=":"
5229 else
5230 case $cross_compiling:$ac_tool_warned in
5231yes:)
drh710658c2012-01-16 13:00:05 +00005232{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5233whose name does not start with the host triplet. If you think this
5234configuration is useful to you, please write to autoconf@gnu.org." >&5
5235$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5236whose name does not start with the host triplet. If you think this
5237configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005238ac_tool_warned=yes ;;
5239esac
5240 DSYMUTIL=$ac_ct_DSYMUTIL
5241 fi
mlcreech636a9952008-05-05 22:52:56 +00005242else
5243 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5244fi
5245
5246 if test -n "$ac_tool_prefix"; then
5247 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5248set dummy ${ac_tool_prefix}nmedit; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005249{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005250$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005251if test "${ac_cv_prog_NMEDIT+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005252 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005253else
5254 if test -n "$NMEDIT"; then
5255 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5256else
5257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258for as_dir in $PATH
5259do
5260 IFS=$as_save_IFS
5261 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005262 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005263 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 +00005264 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
drh710658c2012-01-16 13:00:05 +00005265 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005266 break 2
5267 fi
5268done
drh710658c2012-01-16 13:00:05 +00005269done
drh8b727472009-01-19 18:18:40 +00005270IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005271
5272fi
5273fi
5274NMEDIT=$ac_cv_prog_NMEDIT
5275if test -n "$NMEDIT"; then
drh710658c2012-01-16 13:00:05 +00005276 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005277$as_echo "$NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005278else
drh710658c2012-01-16 13:00:05 +00005279 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005280$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005281fi
5282
drh8b727472009-01-19 18:18:40 +00005283
mlcreech636a9952008-05-05 22:52:56 +00005284fi
5285if test -z "$ac_cv_prog_NMEDIT"; then
5286 ac_ct_NMEDIT=$NMEDIT
5287 # Extract the first word of "nmedit", so it can be a program name with args.
5288set dummy nmedit; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005289{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005290$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005291if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005292 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005293else
5294 if test -n "$ac_ct_NMEDIT"; then
5295 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5296else
5297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298for as_dir in $PATH
5299do
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005302 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005303 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 +00005304 ac_cv_prog_ac_ct_NMEDIT="nmedit"
drh710658c2012-01-16 13:00:05 +00005305 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005306 break 2
5307 fi
5308done
drh710658c2012-01-16 13:00:05 +00005309done
drh8b727472009-01-19 18:18:40 +00005310IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005311
5312fi
5313fi
5314ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5315if test -n "$ac_ct_NMEDIT"; then
drh710658c2012-01-16 13:00:05 +00005316 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005317$as_echo "$ac_ct_NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005318else
drh710658c2012-01-16 13:00:05 +00005319 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005320$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005321fi
5322
drh8b727472009-01-19 18:18:40 +00005323 if test "x$ac_ct_NMEDIT" = x; then
5324 NMEDIT=":"
5325 else
5326 case $cross_compiling:$ac_tool_warned in
5327yes:)
drh710658c2012-01-16 13:00:05 +00005328{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5329whose name does not start with the host triplet. If you think this
5330configuration is useful to you, please write to autoconf@gnu.org." >&5
5331$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5332whose name does not start with the host triplet. If you think this
5333configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005334ac_tool_warned=yes ;;
5335esac
5336 NMEDIT=$ac_ct_NMEDIT
5337 fi
mlcreech636a9952008-05-05 22:52:56 +00005338else
5339 NMEDIT="$ac_cv_prog_NMEDIT"
5340fi
5341
5342 if test -n "$ac_tool_prefix"; then
5343 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5344set dummy ${ac_tool_prefix}lipo; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005345{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005346$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005347if test "${ac_cv_prog_LIPO+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005348 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005349else
5350 if test -n "$LIPO"; then
5351 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5352else
5353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354for as_dir in $PATH
5355do
5356 IFS=$as_save_IFS
5357 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005358 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005359 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 +00005360 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
drh710658c2012-01-16 13:00:05 +00005361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005362 break 2
5363 fi
5364done
drh710658c2012-01-16 13:00:05 +00005365done
drh8b727472009-01-19 18:18:40 +00005366IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005367
5368fi
5369fi
5370LIPO=$ac_cv_prog_LIPO
5371if test -n "$LIPO"; then
drh710658c2012-01-16 13:00:05 +00005372 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005373$as_echo "$LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005374else
drh710658c2012-01-16 13:00:05 +00005375 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005376$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005377fi
5378
drh8b727472009-01-19 18:18:40 +00005379
mlcreech636a9952008-05-05 22:52:56 +00005380fi
5381if test -z "$ac_cv_prog_LIPO"; then
5382 ac_ct_LIPO=$LIPO
5383 # Extract the first word of "lipo", so it can be a program name with args.
5384set dummy lipo; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005385{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005386$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005387if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005388 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005389else
5390 if test -n "$ac_ct_LIPO"; then
5391 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5392else
5393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394for as_dir in $PATH
5395do
5396 IFS=$as_save_IFS
5397 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005398 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005399 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 +00005400 ac_cv_prog_ac_ct_LIPO="lipo"
drh710658c2012-01-16 13:00:05 +00005401 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005402 break 2
5403 fi
5404done
drh710658c2012-01-16 13:00:05 +00005405done
drh8b727472009-01-19 18:18:40 +00005406IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005407
5408fi
5409fi
5410ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5411if test -n "$ac_ct_LIPO"; then
drh710658c2012-01-16 13:00:05 +00005412 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005413$as_echo "$ac_ct_LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005414else
drh710658c2012-01-16 13:00:05 +00005415 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005416$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005417fi
5418
drh8b727472009-01-19 18:18:40 +00005419 if test "x$ac_ct_LIPO" = x; then
5420 LIPO=":"
5421 else
5422 case $cross_compiling:$ac_tool_warned in
5423yes:)
drh710658c2012-01-16 13:00:05 +00005424{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5425whose name does not start with the host triplet. If you think this
5426configuration is useful to you, please write to autoconf@gnu.org." >&5
5427$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5428whose name does not start with the host triplet. If you think this
5429configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005430ac_tool_warned=yes ;;
5431esac
5432 LIPO=$ac_ct_LIPO
5433 fi
mlcreech636a9952008-05-05 22:52:56 +00005434else
5435 LIPO="$ac_cv_prog_LIPO"
5436fi
5437
5438 if test -n "$ac_tool_prefix"; then
5439 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5440set dummy ${ac_tool_prefix}otool; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005441{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005442$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005443if test "${ac_cv_prog_OTOOL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005444 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005445else
5446 if test -n "$OTOOL"; then
5447 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5448else
5449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450for as_dir in $PATH
5451do
5452 IFS=$as_save_IFS
5453 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005454 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005455 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 +00005456 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
drh710658c2012-01-16 13:00:05 +00005457 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005458 break 2
5459 fi
5460done
drh710658c2012-01-16 13:00:05 +00005461done
drh8b727472009-01-19 18:18:40 +00005462IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005463
5464fi
5465fi
5466OTOOL=$ac_cv_prog_OTOOL
5467if test -n "$OTOOL"; then
drh710658c2012-01-16 13:00:05 +00005468 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005469$as_echo "$OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005470else
drh710658c2012-01-16 13:00:05 +00005471 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005472$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005473fi
5474
drh8b727472009-01-19 18:18:40 +00005475
mlcreech636a9952008-05-05 22:52:56 +00005476fi
5477if test -z "$ac_cv_prog_OTOOL"; then
5478 ac_ct_OTOOL=$OTOOL
5479 # Extract the first word of "otool", so it can be a program name with args.
5480set dummy otool; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005481{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005482$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005483if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005484 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005485else
5486 if test -n "$ac_ct_OTOOL"; then
5487 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5488else
5489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490for as_dir in $PATH
5491do
5492 IFS=$as_save_IFS
5493 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005494 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005495 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 +00005496 ac_cv_prog_ac_ct_OTOOL="otool"
drh710658c2012-01-16 13:00:05 +00005497 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005498 break 2
5499 fi
5500done
drh710658c2012-01-16 13:00:05 +00005501done
drh8b727472009-01-19 18:18:40 +00005502IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005503
5504fi
5505fi
5506ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5507if test -n "$ac_ct_OTOOL"; then
drh710658c2012-01-16 13:00:05 +00005508 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005509$as_echo "$ac_ct_OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005510else
drh710658c2012-01-16 13:00:05 +00005511 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005512$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005513fi
5514
drh8b727472009-01-19 18:18:40 +00005515 if test "x$ac_ct_OTOOL" = x; then
5516 OTOOL=":"
5517 else
5518 case $cross_compiling:$ac_tool_warned in
5519yes:)
drh710658c2012-01-16 13:00:05 +00005520{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5521whose name does not start with the host triplet. If you think this
5522configuration is useful to you, please write to autoconf@gnu.org." >&5
5523$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5524whose name does not start with the host triplet. If you think this
5525configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005526ac_tool_warned=yes ;;
5527esac
5528 OTOOL=$ac_ct_OTOOL
5529 fi
mlcreech636a9952008-05-05 22:52:56 +00005530else
5531 OTOOL="$ac_cv_prog_OTOOL"
5532fi
5533
5534 if test -n "$ac_tool_prefix"; then
5535 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5536set dummy ${ac_tool_prefix}otool64; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005537{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005538$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005539if test "${ac_cv_prog_OTOOL64+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005540 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005541else
5542 if test -n "$OTOOL64"; then
5543 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5544else
5545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5546for as_dir in $PATH
5547do
5548 IFS=$as_save_IFS
5549 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005550 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005551 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 +00005552 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
drh710658c2012-01-16 13:00:05 +00005553 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005554 break 2
5555 fi
5556done
drh710658c2012-01-16 13:00:05 +00005557done
drh8b727472009-01-19 18:18:40 +00005558IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005559
5560fi
5561fi
5562OTOOL64=$ac_cv_prog_OTOOL64
5563if test -n "$OTOOL64"; then
drh710658c2012-01-16 13:00:05 +00005564 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005565$as_echo "$OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005566else
drh710658c2012-01-16 13:00:05 +00005567 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005568$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005569fi
5570
drh8b727472009-01-19 18:18:40 +00005571
mlcreech636a9952008-05-05 22:52:56 +00005572fi
5573if test -z "$ac_cv_prog_OTOOL64"; then
5574 ac_ct_OTOOL64=$OTOOL64
5575 # Extract the first word of "otool64", so it can be a program name with args.
5576set dummy otool64; ac_word=$2
drh710658c2012-01-16 13:00:05 +00005577{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005578$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +00005579if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005580 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005581else
5582 if test -n "$ac_ct_OTOOL64"; then
5583 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5584else
5585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586for as_dir in $PATH
5587do
5588 IFS=$as_save_IFS
5589 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +00005590 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00005591 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 +00005592 ac_cv_prog_ac_ct_OTOOL64="otool64"
drh710658c2012-01-16 13:00:05 +00005593 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005594 break 2
5595 fi
5596done
drh710658c2012-01-16 13:00:05 +00005597done
drh8b727472009-01-19 18:18:40 +00005598IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005599
5600fi
5601fi
5602ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5603if test -n "$ac_ct_OTOOL64"; then
drh710658c2012-01-16 13:00:05 +00005604 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005605$as_echo "$ac_ct_OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005606else
drh710658c2012-01-16 13:00:05 +00005607 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005608$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005609fi
5610
drh8b727472009-01-19 18:18:40 +00005611 if test "x$ac_ct_OTOOL64" = x; then
5612 OTOOL64=":"
5613 else
5614 case $cross_compiling:$ac_tool_warned in
5615yes:)
drh710658c2012-01-16 13:00:05 +00005616{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5617whose name does not start with the host triplet. If you think this
5618configuration is useful to you, please write to autoconf@gnu.org." >&5
5619$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5620whose name does not start with the host triplet. If you think this
5621configuration is useful to you, please write to autoconf@gnu.org." >&2;}
drh8b727472009-01-19 18:18:40 +00005622ac_tool_warned=yes ;;
5623esac
5624 OTOOL64=$ac_ct_OTOOL64
5625 fi
mlcreech636a9952008-05-05 22:52:56 +00005626else
5627 OTOOL64="$ac_cv_prog_OTOOL64"
5628fi
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
drh710658c2012-01-16 13:00:05 +00005656 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005657$as_echo_n "checking for -single_module linker flag... " >&6; }
drh710658c2012-01-16 13:00:05 +00005658if test "${lt_cv_apple_cc_single_mod+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005659 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005660else
5661 lt_cv_apple_cc_single_mod=no
5662 if test -z "${LT_MULTI_MODULE}"; then
5663 # By default we will add the -single_module flag. You can override
5664 # by either setting the environment variable LT_MULTI_MODULE
5665 # non-empty at configure time, or by adding -multi_module to the
5666 # link flags.
5667 rm -rf libconftest.dylib*
5668 echo "int foo(void){return 1;}" > conftest.c
5669 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5670-dynamiclib -Wl,-single_module conftest.c" >&5
5671 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5672 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5673 _lt_result=$?
5674 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5675 lt_cv_apple_cc_single_mod=yes
5676 else
5677 cat conftest.err >&5
5678 fi
5679 rm -rf libconftest.dylib*
5680 rm -f conftest.*
5681 fi
5682fi
drh710658c2012-01-16 13:00:05 +00005683{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
drh8b727472009-01-19 18:18:40 +00005684$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
drh710658c2012-01-16 13:00:05 +00005685 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005686$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
drh710658c2012-01-16 13:00:05 +00005687if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005688 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005689else
5690 lt_cv_ld_exported_symbols_list=no
5691 save_LDFLAGS=$LDFLAGS
5692 echo "_main" > conftest.sym
5693 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
drh710658c2012-01-16 13:00:05 +00005694 cat >conftest.$ac_ext <<_ACEOF
5695/* confdefs.h. */
5696_ACEOF
5697cat confdefs.h >>conftest.$ac_ext
5698cat >>conftest.$ac_ext <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +00005699/* end confdefs.h. */
5700
5701int
5702main ()
5703{
5704
5705 ;
5706 return 0;
5707}
5708_ACEOF
drh710658c2012-01-16 13:00:05 +00005709rm -f conftest.$ac_objext conftest$ac_exeext
5710if { (ac_try="$ac_link"
5711case "(($ac_try" in
5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5714esac
5715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5716$as_echo "$ac_try_echo") >&5
5717 (eval "$ac_link") 2>conftest.er1
5718 ac_status=$?
5719 grep -v '^ *+' conftest.er1 >conftest.err
5720 rm -f conftest.er1
5721 cat conftest.err >&5
5722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); } && {
5724 test -z "$ac_c_werror_flag" ||
5725 test ! -s conftest.err
5726 } && test -s conftest$ac_exeext && {
5727 test "$cross_compiling" = yes ||
5728 $as_test_x conftest$ac_exeext
5729 }; then
mlcreech636a9952008-05-05 22:52:56 +00005730 lt_cv_ld_exported_symbols_list=yes
5731else
drh710658c2012-01-16 13:00:05 +00005732 $as_echo "$as_me: failed program was:" >&5
5733sed 's/^/| /' conftest.$ac_ext >&5
5734
5735 lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00005736fi
drh710658c2012-01-16 13:00:05 +00005737
5738rm -rf conftest.dSYM
5739rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5740 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005741 LDFLAGS="$save_LDFLAGS"
5742
5743fi
drh710658c2012-01-16 13:00:05 +00005744{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
drh8b727472009-01-19 18:18:40 +00005745$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005746 case $host_os in
5747 rhapsody* | darwin1.[012])
5748 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5749 darwin1.*)
5750 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5751 darwin*) # darwin 5.x on
5752 # if running on 10.5 or later, the deployment target defaults
5753 # to the OS version, if on x86, and 10.4, the deployment
5754 # target defaults to 10.4. Don't you love it?
5755 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5756 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5757 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5758 10.[012]*)
5759 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5760 10.*)
5761 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5762 esac
5763 ;;
5764 esac
5765 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5766 _lt_dar_single_mod='$single_module'
5767 fi
5768 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5769 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5770 else
5771 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5772 fi
5773 if test "$DSYMUTIL" != ":"; then
5774 _lt_dsymutil='~$DSYMUTIL $lib || :'
5775 else
5776 _lt_dsymutil=
5777 fi
5778 ;;
5779 esac
5780
a.rottmann84e63352003-03-24 09:42:16 +00005781ac_ext=c
5782ac_cpp='$CPP $CPPFLAGS'
5783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh710658c2012-01-16 13:00:05 +00005786{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
drh8b727472009-01-19 18:18:40 +00005787$as_echo_n "checking how to run the C preprocessor... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005788# On Suns, sometimes $CPP names a directory.
5789if test -n "$CPP" && test -d "$CPP"; then
5790 CPP=
5791fi
5792if test -z "$CPP"; then
drh710658c2012-01-16 13:00:05 +00005793 if test "${ac_cv_prog_CPP+set}" = set; then
drh8b727472009-01-19 18:18:40 +00005794 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00005795else
a.rottmann84e63352003-03-24 09:42:16 +00005796 # Double quotes because CPP needs to be expanded
5797 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5798 do
5799 ac_preproc_ok=false
5800for ac_c_preproc_warn_flag in '' yes
5801do
5802 # Use a header file that comes with gcc, so configuring glibc
5803 # with a fresh cross-compiler works.
5804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5805 # <limits.h> exists even on freestanding compilers.
5806 # On the NeXT, cc -E runs the code through the compiler's parser,
5807 # not just through cpp. "Syntax error" is here to catch this case.
drh710658c2012-01-16 13:00:05 +00005808 cat >conftest.$ac_ext <<_ACEOF
5809/* confdefs.h. */
5810_ACEOF
5811cat confdefs.h >>conftest.$ac_ext
5812cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005813/* end confdefs.h. */
5814#ifdef __STDC__
5815# include <limits.h>
5816#else
5817# include <assert.h>
5818#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005819 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005820_ACEOF
drh710658c2012-01-16 13:00:05 +00005821if { (ac_try="$ac_cpp conftest.$ac_ext"
5822case "(($ac_try" in
5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5825esac
5826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5827$as_echo "$ac_try_echo") >&5
5828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5829 ac_status=$?
5830 grep -v '^ *+' conftest.er1 >conftest.err
5831 rm -f conftest.er1
5832 cat conftest.err >&5
5833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5834 (exit $ac_status); } >/dev/null && {
5835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5836 test ! -s conftest.err
5837 }; then
5838 :
dana9f39fd2011-08-12 16:34:42 +00005839else
drh710658c2012-01-16 13:00:05 +00005840 $as_echo "$as_me: failed program was:" >&5
5841sed 's/^/| /' conftest.$ac_ext >&5
5842
a.rottmann84e63352003-03-24 09:42:16 +00005843 # Broken: fails on valid input.
5844continue
5845fi
drh710658c2012-01-16 13:00:05 +00005846
5847rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005848
drh8b727472009-01-19 18:18:40 +00005849 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005850 # can be detected and how.
drh710658c2012-01-16 13:00:05 +00005851 cat >conftest.$ac_ext <<_ACEOF
5852/* confdefs.h. */
5853_ACEOF
5854cat confdefs.h >>conftest.$ac_ext
5855cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005856/* end confdefs.h. */
5857#include <ac_nonexistent.h>
5858_ACEOF
drh710658c2012-01-16 13:00:05 +00005859if { (ac_try="$ac_cpp conftest.$ac_ext"
5860case "(($ac_try" in
5861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5862 *) ac_try_echo=$ac_try;;
5863esac
5864eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5865$as_echo "$ac_try_echo") >&5
5866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5867 ac_status=$?
5868 grep -v '^ *+' conftest.er1 >conftest.err
5869 rm -f conftest.er1
5870 cat conftest.err >&5
5871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } >/dev/null && {
5873 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5874 test ! -s conftest.err
5875 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005876 # Broken: success on invalid input.
5877continue
5878else
drh710658c2012-01-16 13:00:05 +00005879 $as_echo "$as_me: failed program was:" >&5
5880sed 's/^/| /' conftest.$ac_ext >&5
5881
a.rottmann84e63352003-03-24 09:42:16 +00005882 # Passes both tests.
5883ac_preproc_ok=:
5884break
5885fi
drh710658c2012-01-16 13:00:05 +00005886
5887rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005888
5889done
5890# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drh710658c2012-01-16 13:00:05 +00005891rm -f conftest.err conftest.$ac_ext
5892if $ac_preproc_ok; then
a.rottmann84e63352003-03-24 09:42:16 +00005893 break
5894fi
5895
5896 done
5897 ac_cv_prog_CPP=$CPP
5898
5899fi
5900 CPP=$ac_cv_prog_CPP
5901else
5902 ac_cv_prog_CPP=$CPP
5903fi
drh710658c2012-01-16 13:00:05 +00005904{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
drh8b727472009-01-19 18:18:40 +00005905$as_echo "$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005906ac_preproc_ok=false
5907for ac_c_preproc_warn_flag in '' yes
5908do
5909 # Use a header file that comes with gcc, so configuring glibc
5910 # with a fresh cross-compiler works.
5911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5912 # <limits.h> exists even on freestanding compilers.
5913 # On the NeXT, cc -E runs the code through the compiler's parser,
5914 # not just through cpp. "Syntax error" is here to catch this case.
drh710658c2012-01-16 13:00:05 +00005915 cat >conftest.$ac_ext <<_ACEOF
5916/* confdefs.h. */
5917_ACEOF
5918cat confdefs.h >>conftest.$ac_ext
5919cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005920/* end confdefs.h. */
5921#ifdef __STDC__
5922# include <limits.h>
5923#else
5924# include <assert.h>
5925#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005926 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005927_ACEOF
drh710658c2012-01-16 13:00:05 +00005928if { (ac_try="$ac_cpp conftest.$ac_ext"
5929case "(($ac_try" in
5930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5931 *) ac_try_echo=$ac_try;;
5932esac
5933eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5934$as_echo "$ac_try_echo") >&5
5935 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5936 ac_status=$?
5937 grep -v '^ *+' conftest.er1 >conftest.err
5938 rm -f conftest.er1
5939 cat conftest.err >&5
5940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5941 (exit $ac_status); } >/dev/null && {
5942 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5943 test ! -s conftest.err
5944 }; then
5945 :
dana9f39fd2011-08-12 16:34:42 +00005946else
drh710658c2012-01-16 13:00:05 +00005947 $as_echo "$as_me: failed program was:" >&5
5948sed 's/^/| /' conftest.$ac_ext >&5
5949
a.rottmann84e63352003-03-24 09:42:16 +00005950 # Broken: fails on valid input.
5951continue
5952fi
drh710658c2012-01-16 13:00:05 +00005953
5954rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005955
drh8b727472009-01-19 18:18:40 +00005956 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005957 # can be detected and how.
drh710658c2012-01-16 13:00:05 +00005958 cat >conftest.$ac_ext <<_ACEOF
5959/* confdefs.h. */
5960_ACEOF
5961cat confdefs.h >>conftest.$ac_ext
5962cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00005963/* end confdefs.h. */
5964#include <ac_nonexistent.h>
5965_ACEOF
drh710658c2012-01-16 13:00:05 +00005966if { (ac_try="$ac_cpp conftest.$ac_ext"
5967case "(($ac_try" in
5968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969 *) ac_try_echo=$ac_try;;
5970esac
5971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5972$as_echo "$ac_try_echo") >&5
5973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5974 ac_status=$?
5975 grep -v '^ *+' conftest.er1 >conftest.err
5976 rm -f conftest.er1
5977 cat conftest.err >&5
5978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } >/dev/null && {
5980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5981 test ! -s conftest.err
5982 }; then
a.rottmann84e63352003-03-24 09:42:16 +00005983 # Broken: success on invalid input.
5984continue
5985else
drh710658c2012-01-16 13:00:05 +00005986 $as_echo "$as_me: failed program was:" >&5
5987sed 's/^/| /' conftest.$ac_ext >&5
5988
a.rottmann84e63352003-03-24 09:42:16 +00005989 # Passes both tests.
5990ac_preproc_ok=:
5991break
5992fi
drh710658c2012-01-16 13:00:05 +00005993
5994rm -f conftest.err conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005995
5996done
5997# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drh710658c2012-01-16 13:00:05 +00005998rm -f conftest.err conftest.$ac_ext
5999if $ac_preproc_ok; then
6000 :
a.rottmann84e63352003-03-24 09:42:16 +00006001else
drh710658c2012-01-16 13:00:05 +00006002 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6003See \`config.log' for more details." >&5
6004$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6005See \`config.log' for more details." >&2;}
6006 { (exit 1); exit 1; }; }
a.rottmann84e63352003-03-24 09:42:16 +00006007fi
6008
6009ac_ext=c
6010ac_cpp='$CPP $CPPFLAGS'
6011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6013ac_compiler_gnu=$ac_cv_c_compiler_gnu
6014
6015
drh710658c2012-01-16 13:00:05 +00006016{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
drh8b727472009-01-19 18:18:40 +00006017$as_echo_n "checking for ANSI C header files... " >&6; }
drh710658c2012-01-16 13:00:05 +00006018if test "${ac_cv_header_stdc+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006019 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006020else
drh710658c2012-01-16 13:00:05 +00006021 cat >conftest.$ac_ext <<_ACEOF
6022/* confdefs.h. */
6023_ACEOF
6024cat confdefs.h >>conftest.$ac_ext
6025cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006026/* end confdefs.h. */
6027#include <stdlib.h>
6028#include <stdarg.h>
6029#include <string.h>
6030#include <float.h>
6031
6032int
6033main ()
6034{
6035
6036 ;
6037 return 0;
6038}
6039_ACEOF
drh710658c2012-01-16 13:00:05 +00006040rm -f conftest.$ac_objext
6041if { (ac_try="$ac_compile"
6042case "(($ac_try" in
6043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6044 *) ac_try_echo=$ac_try;;
6045esac
6046eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6047$as_echo "$ac_try_echo") >&5
6048 (eval "$ac_compile") 2>conftest.er1
6049 ac_status=$?
6050 grep -v '^ *+' conftest.er1 >conftest.err
6051 rm -f conftest.er1
6052 cat conftest.err >&5
6053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); } && {
6055 test -z "$ac_c_werror_flag" ||
6056 test ! -s conftest.err
6057 } && test -s conftest.$ac_objext; then
a.rottmann84e63352003-03-24 09:42:16 +00006058 ac_cv_header_stdc=yes
6059else
drh710658c2012-01-16 13:00:05 +00006060 $as_echo "$as_me: failed program was:" >&5
6061sed 's/^/| /' conftest.$ac_ext >&5
6062
6063 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006064fi
drh710658c2012-01-16 13:00:05 +00006065
drh8b727472009-01-19 18:18:40 +00006066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006067
6068if test $ac_cv_header_stdc = yes; then
6069 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
drh710658c2012-01-16 13:00:05 +00006070 cat >conftest.$ac_ext <<_ACEOF
6071/* confdefs.h. */
6072_ACEOF
6073cat confdefs.h >>conftest.$ac_ext
6074cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006075/* end confdefs.h. */
6076#include <string.h>
6077
6078_ACEOF
6079if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drh710658c2012-01-16 13:00:05 +00006080 $EGREP "memchr" >/dev/null 2>&1; then
6081 :
a.rottmann84e63352003-03-24 09:42:16 +00006082else
6083 ac_cv_header_stdc=no
6084fi
6085rm -f conftest*
6086
6087fi
6088
6089if test $ac_cv_header_stdc = yes; then
6090 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
drh710658c2012-01-16 13:00:05 +00006091 cat >conftest.$ac_ext <<_ACEOF
6092/* confdefs.h. */
6093_ACEOF
6094cat confdefs.h >>conftest.$ac_ext
6095cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006096/* end confdefs.h. */
6097#include <stdlib.h>
6098
6099_ACEOF
6100if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drh710658c2012-01-16 13:00:05 +00006101 $EGREP "free" >/dev/null 2>&1; then
6102 :
a.rottmann84e63352003-03-24 09:42:16 +00006103else
6104 ac_cv_header_stdc=no
6105fi
6106rm -f conftest*
6107
6108fi
6109
6110if test $ac_cv_header_stdc = yes; then
6111 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
drh710658c2012-01-16 13:00:05 +00006112 if test "$cross_compiling" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00006113 :
6114else
drh710658c2012-01-16 13:00:05 +00006115 cat >conftest.$ac_ext <<_ACEOF
6116/* confdefs.h. */
6117_ACEOF
6118cat confdefs.h >>conftest.$ac_ext
6119cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006120/* end confdefs.h. */
6121#include <ctype.h>
drh8b727472009-01-19 18:18:40 +00006122#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00006123#if ((' ' & 0x0FF) == 0x020)
6124# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6125# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6126#else
6127# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00006128 (('a' <= (c) && (c) <= 'i') \
6129 || ('j' <= (c) && (c) <= 'r') \
6130 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00006131# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6132#endif
6133
6134#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6135int
6136main ()
6137{
6138 int i;
6139 for (i = 0; i < 256; i++)
6140 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00006141 || toupper (i) != TOUPPER (i))
drh8b727472009-01-19 18:18:40 +00006142 return 2;
6143 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00006144}
6145_ACEOF
drh710658c2012-01-16 13:00:05 +00006146rm -f conftest$ac_exeext
6147if { (ac_try="$ac_link"
6148case "(($ac_try" in
6149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150 *) ac_try_echo=$ac_try;;
6151esac
6152eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6153$as_echo "$ac_try_echo") >&5
6154 (eval "$ac_link") 2>&5
6155 ac_status=$?
6156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6158 { (case "(($ac_try" in
6159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6160 *) ac_try_echo=$ac_try;;
6161esac
6162eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6163$as_echo "$ac_try_echo") >&5
6164 (eval "$ac_try") 2>&5
6165 ac_status=$?
6166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6167 (exit $ac_status); }; }; then
6168 :
a.rottmann84e63352003-03-24 09:42:16 +00006169else
drh710658c2012-01-16 13:00:05 +00006170 $as_echo "$as_me: program exited with status $ac_status" >&5
6171$as_echo "$as_me: failed program was:" >&5
6172sed 's/^/| /' conftest.$ac_ext >&5
6173
6174( exit $ac_status )
6175ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006176fi
drh710658c2012-01-16 13:00:05 +00006177rm -rf conftest.dSYM
6178rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00006179fi
6180
drh710658c2012-01-16 13:00:05 +00006181
a.rottmann84e63352003-03-24 09:42:16 +00006182fi
6183fi
drh710658c2012-01-16 13:00:05 +00006184{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
drh8b727472009-01-19 18:18:40 +00006185$as_echo "$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006186if test $ac_cv_header_stdc = yes; then
6187
drh710658c2012-01-16 13:00:05 +00006188cat >>confdefs.h <<\_ACEOF
6189#define STDC_HEADERS 1
6190_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00006191
6192fi
6193
6194# On IRIX 5.3, sys/types and inttypes.h are conflicting.
drh710658c2012-01-16 13:00:05 +00006195
6196
6197
6198
6199
6200
6201
6202
6203
a.rottmann84e63352003-03-24 09:42:16 +00006204for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00006205 inttypes.h stdint.h unistd.h
drh710658c2012-01-16 13:00:05 +00006206do
6207as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6208{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6209$as_echo_n "checking for $ac_header... " >&6; }
6210if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6211 $as_echo_n "(cached) " >&6
6212else
6213 cat >conftest.$ac_ext <<_ACEOF
6214/* confdefs.h. */
6215_ACEOF
6216cat confdefs.h >>conftest.$ac_ext
6217cat >>conftest.$ac_ext <<_ACEOF
6218/* end confdefs.h. */
6219$ac_includes_default
6220
6221#include <$ac_header>
6222_ACEOF
6223rm -f conftest.$ac_objext
6224if { (ac_try="$ac_compile"
6225case "(($ac_try" in
6226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6227 *) ac_try_echo=$ac_try;;
6228esac
6229eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6230$as_echo "$ac_try_echo") >&5
6231 (eval "$ac_compile") 2>conftest.er1
6232 ac_status=$?
6233 grep -v '^ *+' conftest.er1 >conftest.err
6234 rm -f conftest.er1
6235 cat conftest.err >&5
6236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); } && {
6238 test -z "$ac_c_werror_flag" ||
6239 test ! -s conftest.err
6240 } && test -s conftest.$ac_objext; then
6241 eval "$as_ac_Header=yes"
6242else
6243 $as_echo "$as_me: failed program was:" >&5
6244sed 's/^/| /' conftest.$ac_ext >&5
6245
6246 eval "$as_ac_Header=no"
6247fi
6248
6249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6250fi
6251ac_res=`eval 'as_val=${'$as_ac_Header'}
6252 $as_echo "$as_val"'`
6253 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6254$as_echo "$ac_res" >&6; }
6255if test `eval 'as_val=${'$as_ac_Header'}
6256 $as_echo "$as_val"'` = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00006257 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006258#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006259_ACEOF
6260
6261fi
6262
6263done
6264
6265
drh710658c2012-01-16 13:00:05 +00006266
a.rottmann84e63352003-03-24 09:42:16 +00006267for ac_header in dlfcn.h
drh710658c2012-01-16 13:00:05 +00006268do
6269as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6270{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6271$as_echo_n "checking for $ac_header... " >&6; }
6272if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6273 $as_echo_n "(cached) " >&6
6274else
6275 cat >conftest.$ac_ext <<_ACEOF
6276/* confdefs.h. */
6277_ACEOF
6278cat confdefs.h >>conftest.$ac_ext
6279cat >>conftest.$ac_ext <<_ACEOF
6280/* end confdefs.h. */
6281$ac_includes_default
6282
6283#include <$ac_header>
6284_ACEOF
6285rm -f conftest.$ac_objext
6286if { (ac_try="$ac_compile"
6287case "(($ac_try" in
6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289 *) ac_try_echo=$ac_try;;
6290esac
6291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6292$as_echo "$ac_try_echo") >&5
6293 (eval "$ac_compile") 2>conftest.er1
6294 ac_status=$?
6295 grep -v '^ *+' conftest.er1 >conftest.err
6296 rm -f conftest.er1
6297 cat conftest.err >&5
6298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); } && {
6300 test -z "$ac_c_werror_flag" ||
6301 test ! -s conftest.err
6302 } && test -s conftest.$ac_objext; then
6303 eval "$as_ac_Header=yes"
6304else
6305 $as_echo "$as_me: failed program was:" >&5
6306sed 's/^/| /' conftest.$ac_ext >&5
6307
6308 eval "$as_ac_Header=no"
6309fi
6310
6311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312fi
6313ac_res=`eval 'as_val=${'$as_ac_Header'}
6314 $as_echo "$as_val"'`
6315 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6316$as_echo "$ac_res" >&6; }
6317if test `eval 'as_val=${'$as_ac_Header'}
6318 $as_echo "$as_val"'` = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00006319 cat >>confdefs.h <<_ACEOF
drh710658c2012-01-16 13:00:05 +00006320#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006321_ACEOF
6322
6323fi
6324
drh71eb93e2001-09-28 01:34:43 +00006325done
6326
drh71eb93e2001-09-28 01:34:43 +00006327
drh71eb93e2001-09-28 01:34:43 +00006328
mlcreech636a9952008-05-05 22:52:56 +00006329# Set options
mlcreech94984912008-03-04 19:03:08 +00006330
drh71eb93e2001-09-28 01:34:43 +00006331
drh71eb93e2001-09-28 01:34:43 +00006332
mlcreech636a9952008-05-05 22:52:56 +00006333 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00006334
a.rottmann9bc8b932004-02-29 15:18:31 +00006335
mlcreech636a9952008-05-05 22:52:56 +00006336 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006337
a.rottmann9bc8b932004-02-29 15:18:31 +00006338
drh8b727472009-01-19 18:18:40 +00006339 # Check whether --enable-shared was given.
drh710658c2012-01-16 13:00:05 +00006340if test "${enable_shared+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006341 enableval=$enable_shared; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006342 case $enableval in
6343 yes) enable_shared=yes ;;
6344 no) enable_shared=no ;;
6345 *)
6346 enable_shared=no
6347 # Look at the argument we got. We use all the common list separators.
6348 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6349 for pkg in $enableval; do
6350 IFS="$lt_save_ifs"
6351 if test "X$pkg" = "X$p"; then
6352 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006353 fi
mlcreech636a9952008-05-05 22:52:56 +00006354 done
6355 IFS="$lt_save_ifs"
6356 ;;
6357 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006358else
mlcreech636a9952008-05-05 22:52:56 +00006359 enable_shared=yes
drh8b727472009-01-19 18:18:40 +00006360fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006361
mlcreech636a9952008-05-05 22:52:56 +00006362
6363
6364
6365
6366
6367
6368
drh8b727472009-01-19 18:18:40 +00006369
6370 # Check whether --enable-static was given.
drh710658c2012-01-16 13:00:05 +00006371if test "${enable_static+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006372 enableval=$enable_static; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006373 case $enableval in
6374 yes) enable_static=yes ;;
6375 no) enable_static=no ;;
6376 *)
6377 enable_static=no
6378 # Look at the argument we got. We use all the common list separators.
6379 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6380 for pkg in $enableval; do
6381 IFS="$lt_save_ifs"
6382 if test "X$pkg" = "X$p"; then
6383 enable_static=yes
6384 fi
6385 done
6386 IFS="$lt_save_ifs"
6387 ;;
6388 esac
6389else
6390 enable_static=yes
drh8b727472009-01-19 18:18:40 +00006391fi
mlcreech636a9952008-05-05 22:52:56 +00006392
6393
6394
6395
6396
6397
6398
6399
6400
drh8b727472009-01-19 18:18:40 +00006401
6402# Check whether --with-pic was given.
drh710658c2012-01-16 13:00:05 +00006403if test "${with_pic+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006404 withval=$with_pic; pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00006405else
6406 pic_mode=default
drh8b727472009-01-19 18:18:40 +00006407fi
6408
mlcreech636a9952008-05-05 22:52:56 +00006409
6410test -z "$pic_mode" && pic_mode=default
6411
6412
6413
6414
6415
6416
6417
drh8b727472009-01-19 18:18:40 +00006418 # Check whether --enable-fast-install was given.
drh710658c2012-01-16 13:00:05 +00006419if test "${enable_fast_install+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006420 enableval=$enable_fast_install; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006421 case $enableval in
6422 yes) enable_fast_install=yes ;;
6423 no) enable_fast_install=no ;;
6424 *)
6425 enable_fast_install=no
6426 # Look at the argument we got. We use all the common list separators.
6427 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6428 for pkg in $enableval; do
6429 IFS="$lt_save_ifs"
6430 if test "X$pkg" = "X$p"; then
6431 enable_fast_install=yes
6432 fi
6433 done
6434 IFS="$lt_save_ifs"
6435 ;;
6436 esac
6437else
6438 enable_fast_install=yes
drh8b727472009-01-19 18:18:40 +00006439fi
6440
mlcreech636a9952008-05-05 22:52:56 +00006441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451# This can be used to rebuild libtool when needed
6452LIBTOOL_DEPS="$ltmain"
6453
6454# Always use our own libtool.
6455LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481test -z "$LN_S" && LN_S="ln -s"
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496if test -n "${ZSH_VERSION+set}" ; then
6497 setopt NO_GLOB_SUBST
6498fi
6499
drh710658c2012-01-16 13:00:05 +00006500{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
drh8b727472009-01-19 18:18:40 +00006501$as_echo_n "checking for objdir... " >&6; }
drh710658c2012-01-16 13:00:05 +00006502if test "${lt_cv_objdir+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006503 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006504else
6505 rm -f .libs 2>/dev/null
6506mkdir .libs 2>/dev/null
6507if test -d .libs; then
6508 lt_cv_objdir=.libs
6509else
6510 # MS-DOS does not allow filenames that begin with a dot.
6511 lt_cv_objdir=_libs
6512fi
6513rmdir .libs 2>/dev/null
6514fi
drh710658c2012-01-16 13:00:05 +00006515{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
drh8b727472009-01-19 18:18:40 +00006516$as_echo "$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006517objdir=$lt_cv_objdir
6518
6519
6520
6521
6522
mlcreech636a9952008-05-05 22:52:56 +00006523cat >>confdefs.h <<_ACEOF
6524#define LT_OBJDIR "$lt_cv_objdir/"
6525_ACEOF
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
a.rottmann9bc8b932004-02-29 15:18:31 +00006543case $host_os in
6544aix3*)
6545 # AIX sometimes has problems with the GCC collect2 program. For some
6546 # reason, if we set the COLLECT_NAMES environment variable, the problems
6547 # vanish in a puff of smoke.
6548 if test "X${COLLECT_NAMES+set}" != Xset; then
6549 COLLECT_NAMES=
6550 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00006551 fi
6552 ;;
6553esac
6554
a.rottmann9bc8b932004-02-29 15:18:31 +00006555# Sed substitution that helps us do robust quoting. It backslashifies
6556# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00006557sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006558
6559# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00006560double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006561
6562# Sed substitution to delay expansion of an escaped shell variable in a
6563# double_quote_subst'ed string.
6564delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6565
mlcreech636a9952008-05-05 22:52:56 +00006566# Sed substitution to delay expansion of an escaped single quote.
6567delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6568
a.rottmann9bc8b932004-02-29 15:18:31 +00006569# Sed substitution to avoid accidental globbing in evaled expressions
6570no_glob_subst='s/\*/\\\*/g'
6571
a.rottmann9bc8b932004-02-29 15:18:31 +00006572# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00006573ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00006574can_build_shared=yes
6575
vapier7f19c022007-02-17 14:46:31 +00006576# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00006577# which needs '.lib').
6578libext=a
mlcreech636a9952008-05-05 22:52:56 +00006579
a.rottmann9bc8b932004-02-29 15:18:31 +00006580with_gnu_ld="$lt_cv_prog_gnu_ld"
6581
a.rottmann84e63352003-03-24 09:42:16 +00006582old_CC="$CC"
6583old_CFLAGS="$CFLAGS"
6584
6585# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00006586test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006587test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006588test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006589test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00006590test -z "$ac_objext" && ac_objext=o
6591
vapier7f19c022007-02-17 14:46:31 +00006592for cc_temp in $compiler""; do
6593 case $cc_temp in
6594 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6595 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6596 \-*) ;;
6597 *) break;;
6598 esac
6599done
mlcreech636a9952008-05-05 22:52:56 +00006600cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00006601
6602
a.rottmann9bc8b932004-02-29 15:18:31 +00006603# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00006604test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00006605case $deplibs_check_method in
6606file_magic*)
6607 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
drh710658c2012-01-16 13:00:05 +00006608 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
drh8b727472009-01-19 18:18:40 +00006609$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
drh710658c2012-01-16 13:00:05 +00006610if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006611 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006612else
a.rottmann9bc8b932004-02-29 15:18:31 +00006613 case $MAGIC_CMD in
6614[\\/*] | ?:[\\/]*)
6615 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6616 ;;
6617*)
6618 lt_save_MAGIC_CMD="$MAGIC_CMD"
6619 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6620 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6621 for ac_dir in $ac_dummy; do
6622 IFS="$lt_save_ifs"
6623 test -z "$ac_dir" && ac_dir=.
6624 if test -f $ac_dir/${ac_tool_prefix}file; then
6625 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6626 if test -n "$file_magic_test_file"; then
6627 case $deplibs_check_method in
6628 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006629 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006630 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6631 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6632 $EGREP "$file_magic_regex" > /dev/null; then
6633 :
6634 else
mlcreech636a9952008-05-05 22:52:56 +00006635 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006636
a.rottmann9bc8b932004-02-29 15:18:31 +00006637*** Warning: the command libtool uses to detect shared libraries,
6638*** $file_magic_cmd, produces output that libtool cannot recognize.
6639*** The result is that libtool may fail to recognize shared libraries
6640*** as such. This will affect the creation of libtool libraries that
6641*** depend on shared libraries, but programs linked with such libtool
6642*** libraries will work regardless of this problem. Nevertheless, you
6643*** may want to report the problem to your system manager and/or to
6644*** bug-libtool@gnu.org
6645
mlcreech636a9952008-05-05 22:52:56 +00006646_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006647 fi ;;
6648 esac
6649 fi
6650 break
6651 fi
6652 done
6653 IFS="$lt_save_ifs"
6654 MAGIC_CMD="$lt_save_MAGIC_CMD"
6655 ;;
6656esac
6657fi
6658
6659MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6660if test -n "$MAGIC_CMD"; then
drh710658c2012-01-16 13:00:05 +00006661 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006662$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006663else
drh710658c2012-01-16 13:00:05 +00006664 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006665$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006666fi
6667
mlcreech636a9952008-05-05 22:52:56 +00006668
6669
6670
6671
a.rottmann9bc8b932004-02-29 15:18:31 +00006672if test -z "$lt_cv_path_MAGIC_CMD"; then
6673 if test -n "$ac_tool_prefix"; then
drh710658c2012-01-16 13:00:05 +00006674 { $as_echo "$as_me:$LINENO: checking for file" >&5
drh8b727472009-01-19 18:18:40 +00006675$as_echo_n "checking for file... " >&6; }
drh710658c2012-01-16 13:00:05 +00006676if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006677 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006678else
6679 case $MAGIC_CMD in
6680[\\/*] | ?:[\\/]*)
6681 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6682 ;;
6683*)
6684 lt_save_MAGIC_CMD="$MAGIC_CMD"
6685 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6686 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6687 for ac_dir in $ac_dummy; do
6688 IFS="$lt_save_ifs"
6689 test -z "$ac_dir" && ac_dir=.
6690 if test -f $ac_dir/file; then
6691 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6692 if test -n "$file_magic_test_file"; then
6693 case $deplibs_check_method in
6694 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006695 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006696 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6697 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6698 $EGREP "$file_magic_regex" > /dev/null; then
6699 :
6700 else
mlcreech636a9952008-05-05 22:52:56 +00006701 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006702
6703*** Warning: the command libtool uses to detect shared libraries,
6704*** $file_magic_cmd, produces output that libtool cannot recognize.
6705*** The result is that libtool may fail to recognize shared libraries
6706*** as such. This will affect the creation of libtool libraries that
6707*** depend on shared libraries, but programs linked with such libtool
6708*** libraries will work regardless of this problem. Nevertheless, you
6709*** may want to report the problem to your system manager and/or to
6710*** bug-libtool@gnu.org
6711
mlcreech636a9952008-05-05 22:52:56 +00006712_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006713 fi ;;
6714 esac
6715 fi
6716 break
6717 fi
6718 done
6719 IFS="$lt_save_ifs"
6720 MAGIC_CMD="$lt_save_MAGIC_CMD"
6721 ;;
6722esac
6723fi
6724
6725MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6726if test -n "$MAGIC_CMD"; then
drh710658c2012-01-16 13:00:05 +00006727 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006728$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006729else
drh710658c2012-01-16 13:00:05 +00006730 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006731$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006732fi
6733
mlcreech636a9952008-05-05 22:52:56 +00006734
a.rottmann9bc8b932004-02-29 15:18:31 +00006735 else
6736 MAGIC_CMD=:
6737 fi
6738fi
6739
6740 fi
6741 ;;
6742esac
6743
a.rottmann9bc8b932004-02-29 15:18:31 +00006744# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00006745
a.rottmann9bc8b932004-02-29 15:18:31 +00006746lt_save_CC="$CC"
6747ac_ext=c
6748ac_cpp='$CPP $CPPFLAGS'
6749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6751ac_compiler_gnu=$ac_cv_c_compiler_gnu
6752
6753
6754# Source file extension for C test sources.
6755ac_ext=c
6756
6757# Object file extension for compiled C test sources.
6758objext=o
6759objext=$objext
6760
6761# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00006762lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00006763
6764# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00006765lt_simple_link_test_code='int main(){return(0);}'
6766
6767
6768
6769
6770
a.rottmann9bc8b932004-02-29 15:18:31 +00006771
6772
6773# If no C compiler was specified, use CC.
6774LTCC=${LTCC-"$CC"}
6775
vapier7f19c022007-02-17 14:46:31 +00006776# If no C compiler flags were specified, use CFLAGS.
6777LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6778
a.rottmann9bc8b932004-02-29 15:18:31 +00006779# Allow CC to be a program name with arguments.
6780compiler=$CC
6781
mlcreech636a9952008-05-05 22:52:56 +00006782# Save the default compiler, since it gets overwritten when the other
6783# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6784compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00006785
vapier7f19c022007-02-17 14:46:31 +00006786# save warnings/boilerplate of simple test code
6787ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006788echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006789eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6790_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006791$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006792
vapier7f19c022007-02-17 14:46:31 +00006793ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006794echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006795eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6796_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006797$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006798
6799
mlcreech636a9952008-05-05 22:52:56 +00006800if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006801
6802lt_prog_compiler_no_builtin_flag=
6803
6804if test "$GCC" = yes; then
6805 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6806
drh710658c2012-01-16 13:00:05 +00006807 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006808$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
drh710658c2012-01-16 13:00:05 +00006809if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
drh8b727472009-01-19 18:18:40 +00006810 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006811else
6812 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00006813 ac_outfile=conftest.$ac_objext
6814 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006815 lt_compiler_flag="-fno-rtti -fno-exceptions"
6816 # Insert the option either (1) after the last *FLAGS variable, or
6817 # (2) before a word containing "conftest.", or (3) at the end.
6818 # Note that $ac_compile itself does not contain backslashes and begins
6819 # with a dollar sign (not a hyphen), so the echo should work correctly.
6820 # The option is referenced via a variable to avoid confusing sed.
6821 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006822 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006823 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6824 -e 's:$: $lt_compiler_flag:'`
drhd881ce82015-03-31 17:01:52 +00006825 (eval echo "\"\$as_me:6825: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006826 (eval "$lt_compile" 2>conftest.err)
6827 ac_status=$?
6828 cat conftest.err >&5
drhd881ce82015-03-31 17:01:52 +00006829 echo "$as_me:6829: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006830 if (exit $ac_status) && test -s "$ac_outfile"; then
6831 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006832 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006833 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006834 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6835 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006836 lt_cv_prog_compiler_rtti_exceptions=yes
6837 fi
6838 fi
mlcreech636a9952008-05-05 22:52:56 +00006839 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006840
6841fi
drh710658c2012-01-16 13:00:05 +00006842{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006843$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006844
6845if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6846 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6847else
6848 :
6849fi
6850
6851fi
6852
mlcreech636a9952008-05-05 22:52:56 +00006853
6854
6855
6856
6857
6858 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00006859lt_prog_compiler_pic=
6860lt_prog_compiler_static=
6861
drh710658c2012-01-16 13:00:05 +00006862{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
drh8b727472009-01-19 18:18:40 +00006863$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006864
drh71eb93e2001-09-28 01:34:43 +00006865 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006866 lt_prog_compiler_wl='-Wl,'
6867 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006868
6869 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006870 aix*)
6871 # All AIX code is PIC.
6872 if test "$host_cpu" = ia64; then
6873 # AIX 5 now supports IA64 processor
6874 lt_prog_compiler_static='-Bstatic'
6875 fi
drh71eb93e2001-09-28 01:34:43 +00006876 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006877
drh71eb93e2001-09-28 01:34:43 +00006878 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006879 case $host_cpu in
6880 powerpc)
6881 # see comment about AmigaOS4 .so support
6882 lt_prog_compiler_pic='-fPIC'
6883 ;;
6884 m68k)
6885 # FIXME: we need at least 68020 code to build shared libraries, but
6886 # adding the `-m68020' flag to GCC prevents building anything better,
6887 # like `-m68040'.
6888 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6889 ;;
6890 esac
drh71eb93e2001-09-28 01:34:43 +00006891 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006892
mlcreech636a9952008-05-05 22:52:56 +00006893 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006894 # PIC is the default for these OSes.
6895 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006896
vapier6acb2cf2009-01-28 04:46:28 +00006897 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006898 # This hack is so that the source file can tell whether it is being
6899 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00006900 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6901 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00006902 lt_prog_compiler_pic='-DDLL_EXPORT'
6903 ;;
6904
drh71eb93e2001-09-28 01:34:43 +00006905 darwin* | rhapsody*)
6906 # PIC is the default on this platform
6907 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006908 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006909 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006910
a.rottmann9bc8b932004-02-29 15:18:31 +00006911 hpux*)
vapier6acb2cf2009-01-28 04:46:28 +00006912 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6913 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6914 # sets the default TLS model and affects inlining.
vapier7f19c022007-02-17 14:46:31 +00006915 case $host_cpu in
vapier6acb2cf2009-01-28 04:46:28 +00006916 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006917 # +Z the default
6918 ;;
6919 *)
6920 lt_prog_compiler_pic='-fPIC'
6921 ;;
6922 esac
6923 ;;
6924
mlcreech636a9952008-05-05 22:52:56 +00006925 interix[3-9]*)
6926 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6927 # Instead, we relocate shared libraries at runtime.
6928 ;;
6929
6930 msdosdjgpp*)
6931 # Just because we use GCC doesn't mean we suddenly get shared libraries
6932 # on systems that don't support them.
6933 lt_prog_compiler_can_build_shared=no
6934 enable_shared=no
6935 ;;
6936
6937 *nto* | *qnx*)
6938 # QNX uses GNU C++, but need to define -shared option too, otherwise
6939 # it will coredump.
6940 lt_prog_compiler_pic='-fPIC -shared'
6941 ;;
6942
6943 sysv4*MP*)
6944 if test -d /usr/nec; then
6945 lt_prog_compiler_pic=-Kconform_pic
6946 fi
6947 ;;
6948
drh71eb93e2001-09-28 01:34:43 +00006949 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006950 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006951 ;;
6952 esac
6953 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006954 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006955 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006956 aix*)
6957 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006958 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006959 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006960 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006961 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006962 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006963 fi
6964 ;;
6965
vapier6acb2cf2009-01-28 04:46:28 +00006966 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006967 # This hack is so that the source file can tell whether it is being
6968 # built for inclusion in a dll (and should export symbols for example).
6969 lt_prog_compiler_pic='-DDLL_EXPORT'
6970 ;;
6971
a.rottmann84e63352003-03-24 09:42:16 +00006972 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006973 lt_prog_compiler_wl='-Wl,'
6974 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6975 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006976 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006977 hppa*64*|ia64*)
6978 # +Z the default
6979 ;;
6980 *)
6981 lt_prog_compiler_pic='+Z'
6982 ;;
6983 esac
6984 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6985 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006986 ;;
6987
6988 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006989 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006990 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006991 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006992 ;;
6993
mlcreech636a9952008-05-05 22:52:56 +00006994 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00006995 case $cc_basename in
vapier6acb2cf2009-01-28 04:46:28 +00006996 # old Intel for x86_64 which still supported -KPIC.
6997 ecc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006998 lt_prog_compiler_wl='-Wl,'
6999 lt_prog_compiler_pic='-KPIC'
7000 lt_prog_compiler_static='-static'
7001 ;;
vapier6acb2cf2009-01-28 04:46:28 +00007002 # icc used to be incompatible with GCC.
7003 # ICC 10 doesn't accept -KPIC any more.
7004 icc* | ifort*)
7005 lt_prog_compiler_wl='-Wl,'
7006 lt_prog_compiler_pic='-fPIC'
7007 lt_prog_compiler_static='-static'
7008 ;;
7009 # Lahey Fortran 8.1.
7010 lf95*)
7011 lt_prog_compiler_wl='-Wl,'
7012 lt_prog_compiler_pic='--shared'
7013 lt_prog_compiler_static='--static'
7014 ;;
vapier7f19c022007-02-17 14:46:31 +00007015 pgcc* | pgf77* | pgf90* | pgf95*)
7016 # Portland Group compilers (*not* the Pentium gcc compiler,
7017 # which looks to be a dead project)
7018 lt_prog_compiler_wl='-Wl,'
7019 lt_prog_compiler_pic='-fpic'
7020 lt_prog_compiler_static='-Bstatic'
7021 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007022 ccc*)
7023 lt_prog_compiler_wl='-Wl,'
7024 # All Alpha code is PIC.
7025 lt_prog_compiler_static='-non_shared'
7026 ;;
mlcreech636a9952008-05-05 22:52:56 +00007027 xl*)
7028 # IBM XL C 8.0/Fortran 10.1 on PPC
7029 lt_prog_compiler_wl='-Wl,'
7030 lt_prog_compiler_pic='-qpic'
7031 lt_prog_compiler_static='-qstaticlink'
7032 ;;
7033 *)
7034 case `$CC -V 2>&1 | sed 5q` in
7035 *Sun\ C*)
7036 # Sun C 5.9
7037 lt_prog_compiler_pic='-KPIC'
7038 lt_prog_compiler_static='-Bstatic'
7039 lt_prog_compiler_wl='-Wl,'
7040 ;;
7041 *Sun\ F*)
7042 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7043 lt_prog_compiler_pic='-KPIC'
7044 lt_prog_compiler_static='-Bstatic'
7045 lt_prog_compiler_wl=''
7046 ;;
7047 esac
7048 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007049 esac
drh71eb93e2001-09-28 01:34:43 +00007050 ;;
7051
mlcreech636a9952008-05-05 22:52:56 +00007052 newsos6)
7053 lt_prog_compiler_pic='-KPIC'
7054 lt_prog_compiler_static='-Bstatic'
7055 ;;
7056
7057 *nto* | *qnx*)
7058 # QNX uses GNU C++, but need to define -shared option too, otherwise
7059 # it will coredump.
7060 lt_prog_compiler_pic='-fPIC -shared'
7061 ;;
7062
drh71eb93e2001-09-28 01:34:43 +00007063 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007064 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00007065 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00007066 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00007067 ;;
7068
mlcreech636a9952008-05-05 22:52:56 +00007069 rdos*)
7070 lt_prog_compiler_static='-non_shared'
7071 ;;
7072
drh71eb93e2001-09-28 01:34:43 +00007073 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007074 lt_prog_compiler_pic='-KPIC'
7075 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00007076 case $cc_basename in
7077 f77* | f90* | f95*)
7078 lt_prog_compiler_wl='-Qoption ld ';;
7079 *)
7080 lt_prog_compiler_wl='-Wl,';;
7081 esac
drh71eb93e2001-09-28 01:34:43 +00007082 ;;
7083
7084 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007085 lt_prog_compiler_wl='-Qoption ld '
7086 lt_prog_compiler_pic='-PIC'
7087 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00007088 ;;
7089
vapier7f19c022007-02-17 14:46:31 +00007090 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007091 lt_prog_compiler_wl='-Wl,'
7092 lt_prog_compiler_pic='-KPIC'
7093 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00007094 ;;
7095
7096 sysv4*MP*)
7097 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00007098 lt_prog_compiler_pic='-Kconform_pic'
7099 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00007100 fi
7101 ;;
7102
vapier7f19c022007-02-17 14:46:31 +00007103 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7104 lt_prog_compiler_wl='-Wl,'
7105 lt_prog_compiler_pic='-KPIC'
7106 lt_prog_compiler_static='-Bstatic'
7107 ;;
7108
7109 unicos*)
7110 lt_prog_compiler_wl='-Wl,'
7111 lt_prog_compiler_can_build_shared=no
7112 ;;
7113
a.rottmann9bc8b932004-02-29 15:18:31 +00007114 uts4*)
7115 lt_prog_compiler_pic='-pic'
7116 lt_prog_compiler_static='-Bstatic'
7117 ;;
7118
drh71eb93e2001-09-28 01:34:43 +00007119 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007120 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00007121 ;;
7122 esac
7123 fi
7124
mlcreech636a9952008-05-05 22:52:56 +00007125case $host_os in
7126 # For platforms which do not support PIC, -DPIC is meaningless:
7127 *djgpp*)
7128 lt_prog_compiler_pic=
7129 ;;
7130 *)
7131 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7132 ;;
7133esac
drh710658c2012-01-16 13:00:05 +00007134{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
drh8b727472009-01-19 18:18:40 +00007135$as_echo "$lt_prog_compiler_pic" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007136
7137
7138
7139
7140
drh71eb93e2001-09-28 01:34:43 +00007141
a.rottmann9bc8b932004-02-29 15:18:31 +00007142#
7143# Check to make sure the PIC flag actually works.
7144#
7145if test -n "$lt_prog_compiler_pic"; then
drh710658c2012-01-16 13:00:05 +00007146 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
drh8b727472009-01-19 18:18:40 +00007147$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
drh710658c2012-01-16 13:00:05 +00007148if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007149 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007150else
mlcreech636a9952008-05-05 22:52:56 +00007151 lt_cv_prog_compiler_pic_works=no
7152 ac_outfile=conftest.$ac_objext
7153 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007154 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7155 # Insert the option either (1) after the last *FLAGS variable, or
7156 # (2) before a word containing "conftest.", or (3) at the end.
7157 # Note that $ac_compile itself does not contain backslashes and begins
7158 # with a dollar sign (not a hyphen), so the echo should work correctly.
7159 # The option is referenced via a variable to avoid confusing sed.
7160 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7163 -e 's:$: $lt_compiler_flag:'`
drhd881ce82015-03-31 17:01:52 +00007164 (eval echo "\"\$as_me:7164: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007165 (eval "$lt_compile" 2>conftest.err)
7166 ac_status=$?
7167 cat conftest.err >&5
drhd881ce82015-03-31 17:01:52 +00007168 echo "$as_me:7168: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007169 if (exit $ac_status) && test -s "$ac_outfile"; then
7170 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00007171 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00007172 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007173 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7174 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007175 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007176 fi
7177 fi
mlcreech636a9952008-05-05 22:52:56 +00007178 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007179
a.rottmann9bc8b932004-02-29 15:18:31 +00007180fi
drh710658c2012-01-16 13:00:05 +00007181{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
drh8b727472009-01-19 18:18:40 +00007182$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007183
mlcreech636a9952008-05-05 22:52:56 +00007184if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007185 case $lt_prog_compiler_pic in
7186 "" | " "*) ;;
7187 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7188 esac
drh71eb93e2001-09-28 01:34:43 +00007189else
a.rottmann9bc8b932004-02-29 15:18:31 +00007190 lt_prog_compiler_pic=
7191 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00007192fi
7193
a.rottmann84e63352003-03-24 09:42:16 +00007194fi
mlcreech636a9952008-05-05 22:52:56 +00007195
7196
7197
7198
7199
a.rottmann84e63352003-03-24 09:42:16 +00007200
vapier7f19c022007-02-17 14:46:31 +00007201#
7202# Check to make sure the static flag actually works.
7203#
7204wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
drh710658c2012-01-16 13:00:05 +00007205{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
drh8b727472009-01-19 18:18:40 +00007206$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
drh710658c2012-01-16 13:00:05 +00007207if test "${lt_cv_prog_compiler_static_works+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007208 $as_echo_n "(cached) " >&6
vapier7f19c022007-02-17 14:46:31 +00007209else
mlcreech636a9952008-05-05 22:52:56 +00007210 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00007211 save_LDFLAGS="$LDFLAGS"
7212 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00007213 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00007214 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7215 # The linker can only warn and ignore the option if not recognized
7216 # So say no if there are warnings
7217 if test -s conftest.err; then
7218 # Append any errors to the config.log.
7219 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00007220 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007221 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7222 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007223 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007224 fi
7225 else
mlcreech636a9952008-05-05 22:52:56 +00007226 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007227 fi
7228 fi
mlcreech636a9952008-05-05 22:52:56 +00007229 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00007230 LDFLAGS="$save_LDFLAGS"
7231
7232fi
drh710658c2012-01-16 13:00:05 +00007233{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
drh8b727472009-01-19 18:18:40 +00007234$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00007235
mlcreech636a9952008-05-05 22:52:56 +00007236if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00007237 :
7238else
7239 lt_prog_compiler_static=
7240fi
7241
7242
mlcreech636a9952008-05-05 22:52:56 +00007243
7244
7245
7246
7247
drh710658c2012-01-16 13:00:05 +00007248 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007249$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drh710658c2012-01-16 13:00:05 +00007250if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007251 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007252else
a.rottmann9bc8b932004-02-29 15:18:31 +00007253 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00007254 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007255 mkdir conftest
7256 cd conftest
7257 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00007258 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007259
a.rottmann9bc8b932004-02-29 15:18:31 +00007260 lt_compiler_flag="-o out/conftest2.$ac_objext"
7261 # Insert the option either (1) after the last *FLAGS variable, or
7262 # (2) before a word containing "conftest.", or (3) at the end.
7263 # Note that $ac_compile itself does not contain backslashes and begins
7264 # with a dollar sign (not a hyphen), so the echo should work correctly.
7265 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007266 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007267 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7268 -e 's:$: $lt_compiler_flag:'`
drhd881ce82015-03-31 17:01:52 +00007269 (eval echo "\"\$as_me:7269: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007270 (eval "$lt_compile" 2>out/conftest.err)
7271 ac_status=$?
7272 cat out/conftest.err >&5
drhd881ce82015-03-31 17:01:52 +00007273 echo "$as_me:7273: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007274 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7275 then
7276 # The compiler can only warn and ignore the option if not recognized
7277 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00007278 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007279 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7280 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007281 lt_cv_prog_compiler_c_o=yes
7282 fi
7283 fi
vapier7f19c022007-02-17 14:46:31 +00007284 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00007285 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00007286 # SGI C++ compiler will create directory out/ii_files/ for
7287 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00007288 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7289 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00007290 cd ..
mlcreech636a9952008-05-05 22:52:56 +00007291 $RM -r conftest
7292 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007293
7294fi
drh710658c2012-01-16 13:00:05 +00007295{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007296$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007297
7298
7299
7300
7301
7302
drh710658c2012-01-16 13:00:05 +00007303 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007304$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drh710658c2012-01-16 13:00:05 +00007305if test "${lt_cv_prog_compiler_c_o+set}" = set; then
drh8b727472009-01-19 18:18:40 +00007306 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00007307else
7308 lt_cv_prog_compiler_c_o=no
7309 $RM -r conftest 2>/dev/null
7310 mkdir conftest
7311 cd conftest
7312 mkdir out
7313 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7314
7315 lt_compiler_flag="-o out/conftest2.$ac_objext"
7316 # Insert the option either (1) after the last *FLAGS variable, or
7317 # (2) before a word containing "conftest.", or (3) at the end.
7318 # Note that $ac_compile itself does not contain backslashes and begins
7319 # with a dollar sign (not a hyphen), so the echo should work correctly.
7320 lt_compile=`echo "$ac_compile" | $SED \
7321 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7323 -e 's:$: $lt_compiler_flag:'`
drhd881ce82015-03-31 17:01:52 +00007324 (eval echo "\"\$as_me:7324: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00007325 (eval "$lt_compile" 2>out/conftest.err)
7326 ac_status=$?
7327 cat out/conftest.err >&5
drhd881ce82015-03-31 17:01:52 +00007328 echo "$as_me:7328: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00007329 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7330 then
7331 # The compiler can only warn and ignore the option if not recognized
7332 # So say no if there are warnings
7333 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7334 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7335 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7336 lt_cv_prog_compiler_c_o=yes
7337 fi
7338 fi
7339 chmod u+w . 2>&5
7340 $RM conftest*
7341 # SGI C++ compiler will create directory out/ii_files/ for
7342 # template instantiation
7343 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7344 $RM out/* && rmdir out
7345 cd ..
7346 $RM -r conftest
7347 $RM conftest*
7348
7349fi
drh710658c2012-01-16 13:00:05 +00007350{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007351$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007352
7353
drh71eb93e2001-09-28 01:34:43 +00007354
a.rottmann84e63352003-03-24 09:42:16 +00007355
drh71eb93e2001-09-28 01:34:43 +00007356hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00007357if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00007358 # do not overwrite the value of need_locks provided by the user
drh710658c2012-01-16 13:00:05 +00007359 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
drh8b727472009-01-19 18:18:40 +00007360$as_echo_n "checking if we can lock with hard links... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00007361 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00007362 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007363 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7364 touch conftest.a
7365 ln conftest.a conftest.b 2>&5 || hard_links=no
7366 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drh710658c2012-01-16 13:00:05 +00007367 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
drh8b727472009-01-19 18:18:40 +00007368$as_echo "$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007369 if test "$hard_links" = no; then
drh710658c2012-01-16 13:00:05 +00007370 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
drh8b727472009-01-19 18:18:40 +00007371$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00007372 need_locks=warn
7373 fi
7374else
7375 need_locks=no
7376fi
7377
mlcreech636a9952008-05-05 22:52:56 +00007378
7379
7380
7381
7382
drh710658c2012-01-16 13:00:05 +00007383 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00007384$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007385
7386 runpath_var=
7387 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007388 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007389 archive_cmds=
7390 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007391 compiler_needs_object=no
7392 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007393 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00007394 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7395 hardcode_automatic=no
7396 hardcode_direct=no
7397 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007398 hardcode_libdir_flag_spec=
7399 hardcode_libdir_flag_spec_ld=
7400 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007401 hardcode_minus_L=no
7402 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007403 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007404 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00007405 module_cmds=
7406 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007407 old_archive_from_new_cmds=
7408 old_archive_from_expsyms_cmds=
7409 thread_safe_flag_spec=
7410 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007411 # include_expsyms should be a list of space-separated symbols to be *always*
7412 # included in the symbol list
7413 include_expsyms=
7414 # exclude_expsyms can be an extended regexp of symbols to exclude
7415 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7416 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7417 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00007418 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00007419 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7420 # platforms (ab)use it in PIC code, but their linkers get confused if
7421 # the symbol is explicitly referenced. Since portable code cannot
7422 # rely on this symbol name, it's probably fine to never include it in
7423 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00007424 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00007425 extract_expsyms_cmds=
7426
7427 case $host_os in
vapier6acb2cf2009-01-28 04:46:28 +00007428 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007429 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7430 # When not using gcc, we currently assume that we are using
7431 # Microsoft Visual C++.
7432 if test "$GCC" != yes; then
7433 with_gnu_ld=no
7434 fi
7435 ;;
vapier7f19c022007-02-17 14:46:31 +00007436 interix*)
7437 # we just hope/assume this is gcc and not c89 (= MSVC++)
7438 with_gnu_ld=yes
7439 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007440 openbsd*)
7441 with_gnu_ld=no
7442 ;;
7443 esac
7444
7445 ld_shlibs=yes
7446 if test "$with_gnu_ld" = yes; then
7447 # If archive_cmds runs LD, not CC, wlarc should be empty
7448 wlarc='${wl}'
7449
vapier7f19c022007-02-17 14:46:31 +00007450 # Set some defaults for GNU ld with shared library support. These
7451 # are reset later if shared libraries are not supported. Putting them
7452 # here allows them to be overridden if necessary.
7453 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00007454 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00007455 export_dynamic_flag_spec='${wl}--export-dynamic'
7456 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00007457 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7458 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7459 else
7460 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00007461 fi
7462 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00007463 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00007464 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7465 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7466 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7467 *\ 2.11.*) ;; # other 2.11 versions
7468 *) supports_anon_versioning=yes ;;
7469 esac
7470
a.rottmann9bc8b932004-02-29 15:18:31 +00007471 # See if GNU ld supports shared libraries.
7472 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007473 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007474 # On AIX/PPC, the GNU linker is very broken
7475 if test "$host_cpu" != ia64; then
7476 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007477 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007478
7479*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7480*** to be unable to reliably create shared libraries on AIX.
7481*** Therefore, libtool is disabling shared libraries support. If you
7482*** really care for shared libraries, you may want to modify your PATH
7483*** so that a non-GNU linker is found, and then restart.
7484
mlcreech636a9952008-05-05 22:52:56 +00007485_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007486 fi
7487 ;;
7488
7489 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007490 case $host_cpu in
7491 powerpc)
7492 # see comment about AmigaOS4 .so support
7493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7494 archive_expsym_cmds=''
7495 ;;
7496 m68k)
7497 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)'
7498 hardcode_libdir_flag_spec='-L$libdir'
7499 hardcode_minus_L=yes
7500 ;;
7501 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007502 ;;
7503
7504 beos*)
mlcreech636a9952008-05-05 22:52:56 +00007505 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007506 allow_undefined_flag=unsupported
7507 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7508 # support --undefined. This deserves some investigation. FIXME
7509 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7510 else
7511 ld_shlibs=no
7512 fi
7513 ;;
7514
vapier6acb2cf2009-01-28 04:46:28 +00007515 cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00007516 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00007517 # as there is no search path for DLLs.
7518 hardcode_libdir_flag_spec='-L$libdir'
7519 allow_undefined_flag=unsupported
7520 always_export_symbols=no
7521 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00007522 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 +00007523
mlcreech636a9952008-05-05 22:52:56 +00007524 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00007525 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 +00007526 # If the export-symbols file already is a .def file (1st line
7527 # is EXPORTS), use it as is; otherwise, prepend...
7528 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7529 cp $export_symbols $output_objdir/$soname.def;
7530 else
7531 echo EXPORTS > $output_objdir/$soname.def;
7532 cat $export_symbols >> $output_objdir/$soname.def;
7533 fi~
vapier7f19c022007-02-17 14:46:31 +00007534 $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 +00007535 else
7536 ld_shlibs=no
7537 fi
7538 ;;
7539
mlcreech636a9952008-05-05 22:52:56 +00007540 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007541 hardcode_direct=no
7542 hardcode_shlibpath_var=no
7543 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7544 export_dynamic_flag_spec='${wl}-E'
7545 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7546 # Instead, shared libraries are loaded at an image base (0x10000000 by
7547 # default) and relocated if they conflict, which is a slow very memory
7548 # consuming and fragmenting process. To avoid this, we pick a random,
7549 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7550 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7551 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7552 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'
7553 ;;
7554
mlcreech636a9952008-05-05 22:52:56 +00007555 gnu* | linux* | tpf* | k*bsd*-gnu)
7556 tmp_diet=no
7557 if test "$host_os" = linux-dietlibc; then
7558 case $cc_basename in
7559 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7560 esac
7561 fi
7562 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7563 && test "$tmp_diet" = no
7564 then
vapier7f19c022007-02-17 14:46:31 +00007565 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00007566 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007567 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00007568 pgcc*) # Portland Group C compiler
7569 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 +00007570 tmp_addflag=' $pic_flag'
7571 ;;
7572 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00007573 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 +00007574 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00007575 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00007576 tmp_addflag=' -i_dynamic' ;;
7577 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7578 tmp_addflag=' -i_dynamic -nofor_main' ;;
7579 ifc* | ifort*) # Intel Fortran compiler
7580 tmp_addflag=' -nofor_main' ;;
vapier6acb2cf2009-01-28 04:46:28 +00007581 lf95*) # Lahey Fortran 8.1
7582 whole_archive_flag_spec=
7583 tmp_sharedflag='--shared' ;;
mlcreech636a9952008-05-05 22:52:56 +00007584 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7585 tmp_sharedflag='-qmkshrobj'
7586 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00007587 esac
mlcreech636a9952008-05-05 22:52:56 +00007588 case `$CC -V 2>&1 | sed 5q` in
7589 *Sun\ C*) # Sun C 5.9
7590 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'
7591 compiler_needs_object=yes
7592 tmp_sharedflag='-G' ;;
7593 *Sun\ F*) # Sun Fortran 8.3
7594 tmp_sharedflag='-G' ;;
7595 esac
7596 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007597
mlcreech636a9952008-05-05 22:52:56 +00007598 if test "x$supports_anon_versioning" = xyes; then
7599 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7600 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7601 echo "local: *; };" >> $output_objdir/$libname.ver~
7602 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7603 fi
7604
7605 case $cc_basename in
7606 xlf*)
7607 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7608 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7609 hardcode_libdir_flag_spec=
7610 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7611 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7612 if test "x$supports_anon_versioning" = xyes; then
7613 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7614 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7615 echo "local: *; };" >> $output_objdir/$libname.ver~
7616 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7617 fi
7618 ;;
7619 esac
vapier7f19c022007-02-17 14:46:31 +00007620 else
mlcreech636a9952008-05-05 22:52:56 +00007621 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00007622 fi
7623 ;;
7624
7625 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007626 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007627 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7628 wlarc=
7629 else
7630 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7631 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7632 fi
7633 ;;
7634
vapier7f19c022007-02-17 14:46:31 +00007635 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007636 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007637 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007638 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007639
7640*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7641*** create shared libraries on Solaris systems. Therefore, libtool
7642*** is disabling shared libraries support. We urge you to upgrade GNU
7643*** binutils to release 2.9.1 or newer. Another option is to modify
7644*** your PATH or compiler configuration so that the native linker is
7645*** used, and then restart.
7646
mlcreech636a9952008-05-05 22:52:56 +00007647_LT_EOF
7648 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007649 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7650 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7651 else
7652 ld_shlibs=no
7653 fi
7654 ;;
7655
vapier7f19c022007-02-17 14:46:31 +00007656 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7657 case `$LD -v 2>&1` in
7658 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7659 ld_shlibs=no
7660 cat <<_LT_EOF 1>&2
7661
7662*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7663*** reliably create shared libraries on SCO systems. Therefore, libtool
7664*** is disabling shared libraries support. We urge you to upgrade GNU
7665*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7666*** your PATH or compiler configuration so that the native linker is
7667*** used, and then restart.
7668
7669_LT_EOF
7670 ;;
7671 *)
mlcreech636a9952008-05-05 22:52:56 +00007672 # For security reasons, it is highly recommended that you always
7673 # use absolute paths for naming shared libraries, and exclude the
7674 # DT_RUNPATH tag from executables and libraries. But doing so
7675 # requires that you compile everything twice, which is a pain.
7676 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7677 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7679 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 +00007680 else
7681 ld_shlibs=no
7682 fi
7683 ;;
7684 esac
7685 ;;
7686
a.rottmann9bc8b932004-02-29 15:18:31 +00007687 sunos4*)
7688 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7689 wlarc=
7690 hardcode_direct=yes
7691 hardcode_shlibpath_var=no
7692 ;;
7693
a.rottmann9bc8b932004-02-29 15:18:31 +00007694 *)
mlcreech636a9952008-05-05 22:52:56 +00007695 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007696 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7697 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7698 else
7699 ld_shlibs=no
7700 fi
7701 ;;
7702 esac
7703
vapier7f19c022007-02-17 14:46:31 +00007704 if test "$ld_shlibs" = no; then
7705 runpath_var=
7706 hardcode_libdir_flag_spec=
7707 export_dynamic_flag_spec=
7708 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007709 fi
7710 else
7711 # PORTME fill in a description of your system's linker (not GNU ld)
7712 case $host_os in
7713 aix3*)
7714 allow_undefined_flag=unsupported
7715 always_export_symbols=yes
7716 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'
7717 # Note: this linker hardcodes the directories in LIBPATH if there
7718 # are no directories specified by -L.
7719 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007720 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007721 # Neither direct hardcoding nor static linking is supported with a
7722 # broken collect2.
7723 hardcode_direct=unsupported
7724 fi
7725 ;;
7726
mlcreech636a9952008-05-05 22:52:56 +00007727 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007728 if test "$host_cpu" = ia64; then
7729 # On IA64, the linker does run time linking by default, so we don't
7730 # have to do anything special.
7731 aix_use_runtimelinking=no
7732 exp_sym_flag='-Bexport'
7733 no_entry_flag=""
7734 else
7735 # If we're using GNU nm, then we don't want the "-C" option.
7736 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00007737 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7738 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 +00007739 else
mlcreech636a9952008-05-05 22:52:56 +00007740 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 +00007741 fi
7742 aix_use_runtimelinking=no
7743
7744 # Test if we are trying to use run time linking or normal
7745 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7746 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00007747 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007748 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00007749 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7750 aix_use_runtimelinking=yes
7751 break
7752 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007753 done
vapier7f19c022007-02-17 14:46:31 +00007754 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007755 esac
7756
7757 exp_sym_flag='-bexport'
7758 no_entry_flag='-bnoentry'
7759 fi
7760
7761 # When large executables or shared objects are built, AIX ld can
7762 # have problems creating the table of contents. If linking a library
7763 # or program results in "error TOC overflow" add -mminimal-toc to
7764 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7765 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7766
7767 archive_cmds=''
7768 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007769 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007770 hardcode_libdir_separator=':'
7771 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00007772 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00007773
7774 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007775 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007776 # We only want to do this on AIX 4.2 and lower, the check
7777 # below for broken collect2 doesn't work under 4.3+
7778 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00007779 if test -f "$collect2name" &&
7780 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007781 then
mlcreech636a9952008-05-05 22:52:56 +00007782 # We have reworked collect2
7783 :
a.rottmann9bc8b932004-02-29 15:18:31 +00007784 else
mlcreech636a9952008-05-05 22:52:56 +00007785 # We have old collect2
7786 hardcode_direct=unsupported
7787 # It fails to find uninstalled libraries when the uninstalled
7788 # path is not listed in the libpath. Setting hardcode_minus_L
7789 # to unsupported forces relinking
7790 hardcode_minus_L=yes
7791 hardcode_libdir_flag_spec='-L$libdir'
7792 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007793 fi
vapier7f19c022007-02-17 14:46:31 +00007794 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007795 esac
7796 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007797 if test "$aix_use_runtimelinking" = yes; then
7798 shared_flag="$shared_flag "'${wl}-G'
7799 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007800 else
7801 # not using gcc
7802 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00007803 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7804 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00007805 shared_flag='-G'
7806 else
vapier7f19c022007-02-17 14:46:31 +00007807 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007808 shared_flag='${wl}-G'
7809 else
7810 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007811 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007812 fi
7813 fi
7814
vapier6acb2cf2009-01-28 04:46:28 +00007815 export_dynamic_flag_spec='${wl}-bexpall'
a.rottmann9bc8b932004-02-29 15:18:31 +00007816 # It seems that -bexpall does not export symbols beginning with
7817 # underscore (_), so it is better to generate a list of symbols to export.
7818 always_export_symbols=yes
7819 if test "$aix_use_runtimelinking" = yes; then
7820 # Warning - without using the other runtime loading flags (-brtl),
7821 # -berok will link without error, but may produce a broken library.
7822 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00007823 # Determine the default libpath from the value encoded in an
7824 # empty executable.
drh710658c2012-01-16 13:00:05 +00007825 cat >conftest.$ac_ext <<_ACEOF
7826/* confdefs.h. */
7827_ACEOF
7828cat confdefs.h >>conftest.$ac_ext
7829cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00007830/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007831
a.rottmann84e63352003-03-24 09:42:16 +00007832int
7833main ()
7834{
a.rottmann9bc8b932004-02-29 15:18:31 +00007835
a.rottmann84e63352003-03-24 09:42:16 +00007836 ;
7837 return 0;
7838}
7839_ACEOF
drh710658c2012-01-16 13:00:05 +00007840rm -f conftest.$ac_objext conftest$ac_exeext
7841if { (ac_try="$ac_link"
7842case "(($ac_try" in
7843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7844 *) ac_try_echo=$ac_try;;
7845esac
7846eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7847$as_echo "$ac_try_echo") >&5
7848 (eval "$ac_link") 2>conftest.er1
7849 ac_status=$?
7850 grep -v '^ *+' conftest.er1 >conftest.err
7851 rm -f conftest.er1
7852 cat conftest.err >&5
7853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); } && {
7855 test -z "$ac_c_werror_flag" ||
7856 test ! -s conftest.err
7857 } && test -s conftest$ac_exeext && {
7858 test "$cross_compiling" = yes ||
7859 $as_test_x conftest$ac_exeext
7860 }; then
a.rottmann84e63352003-03-24 09:42:16 +00007861
mlcreech636a9952008-05-05 22:52:56 +00007862lt_aix_libpath_sed='
7863 /Import File Strings/,/^$/ {
7864 /^0/ {
7865 s/^0 *\(.*\)$/\1/
7866 p
7867 }
7868 }'
7869aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007870# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007871if test -z "$aix_libpath"; then
7872 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7873fi
drh710658c2012-01-16 13:00:05 +00007874else
7875 $as_echo "$as_me: failed program was:" >&5
7876sed 's/^/| /' conftest.$ac_ext >&5
7877
7878
a.rottmann84e63352003-03-24 09:42:16 +00007879fi
drh710658c2012-01-16 13:00:05 +00007880
7881rm -rf conftest.dSYM
7882rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7883 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007884if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007885
mlcreech636a9952008-05-05 22:52:56 +00007886 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7887 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"
7888 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007889 if test "$host_cpu" = ia64; then
7890 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7891 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007892 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 +00007893 else
mlcreech636a9952008-05-05 22:52:56 +00007894 # Determine the default libpath from the value encoded in an
7895 # empty executable.
drh710658c2012-01-16 13:00:05 +00007896 cat >conftest.$ac_ext <<_ACEOF
7897/* confdefs.h. */
7898_ACEOF
7899cat confdefs.h >>conftest.$ac_ext
7900cat >>conftest.$ac_ext <<_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007901/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007902
a.rottmann9bc8b932004-02-29 15:18:31 +00007903int
7904main ()
7905{
a.rottmann84e63352003-03-24 09:42:16 +00007906
a.rottmann9bc8b932004-02-29 15:18:31 +00007907 ;
7908 return 0;
7909}
7910_ACEOF
drh710658c2012-01-16 13:00:05 +00007911rm -f conftest.$ac_objext conftest$ac_exeext
7912if { (ac_try="$ac_link"
7913case "(($ac_try" in
7914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7915 *) ac_try_echo=$ac_try;;
7916esac
7917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7918$as_echo "$ac_try_echo") >&5
7919 (eval "$ac_link") 2>conftest.er1
7920 ac_status=$?
7921 grep -v '^ *+' conftest.er1 >conftest.err
7922 rm -f conftest.er1
7923 cat conftest.err >&5
7924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7925 (exit $ac_status); } && {
7926 test -z "$ac_c_werror_flag" ||
7927 test ! -s conftest.err
7928 } && test -s conftest$ac_exeext && {
7929 test "$cross_compiling" = yes ||
7930 $as_test_x conftest$ac_exeext
7931 }; then
a.rottmann84e63352003-03-24 09:42:16 +00007932
mlcreech636a9952008-05-05 22:52:56 +00007933lt_aix_libpath_sed='
7934 /Import File Strings/,/^$/ {
7935 /^0/ {
7936 s/^0 *\(.*\)$/\1/
7937 p
7938 }
7939 }'
7940aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007941# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007942if test -z "$aix_libpath"; then
7943 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7944fi
drh710658c2012-01-16 13:00:05 +00007945else
7946 $as_echo "$as_me: failed program was:" >&5
7947sed 's/^/| /' conftest.$ac_ext >&5
7948
7949
a.rottmann9bc8b932004-02-29 15:18:31 +00007950fi
drh710658c2012-01-16 13:00:05 +00007951
7952rm -rf conftest.dSYM
7953rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7954 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007955if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007956
a.rottmann9bc8b932004-02-29 15:18:31 +00007957 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7958 # Warning - without using the other run time loading flags,
7959 # -berok will link without error, but may produce a broken library.
7960 no_undefined_flag=' ${wl}-bernotok'
7961 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007962 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007963 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007964 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007965 # This is similar to how AIX traditionally builds its shared libraries.
7966 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 +00007967 fi
7968 fi
a.rottmann84e63352003-03-24 09:42:16 +00007969 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007970
7971 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007972 case $host_cpu in
7973 powerpc)
7974 # see comment about AmigaOS4 .so support
7975 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7976 archive_expsym_cmds=''
7977 ;;
7978 m68k)
7979 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)'
7980 hardcode_libdir_flag_spec='-L$libdir'
7981 hardcode_minus_L=yes
7982 ;;
7983 esac
a.rottmann84e63352003-03-24 09:42:16 +00007984 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007985
vapier7f19c022007-02-17 14:46:31 +00007986 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007987 export_dynamic_flag_spec=-rdynamic
7988 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007989
vapier6acb2cf2009-01-28 04:46:28 +00007990 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007991 # When not using gcc, we currently assume that we are using
7992 # Microsoft Visual C++.
7993 # hardcode_libdir_flag_spec is actually meaningless, as there is
7994 # no search path for DLLs.
7995 hardcode_libdir_flag_spec=' '
7996 allow_undefined_flag=unsupported
7997 # Tell ltmain to make .lib files, not .a files.
7998 libext=lib
7999 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00008000 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00008001 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00008002 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 +00008003 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00008004 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00008005 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00008006 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008007 fix_srcfile_path='`cygpath -w "$srcfile"`'
8008 enable_shared_with_static_runtimes=yes
8009 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008010
a.rottmann9bc8b932004-02-29 15:18:31 +00008011 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00008012
8013
8014 archive_cmds_need_lc=no
8015 hardcode_direct=no
8016 hardcode_automatic=yes
8017 hardcode_shlibpath_var=unsupported
8018 whole_archive_flag_spec=''
8019 link_all_deplibs=yes
8020 allow_undefined_flag="$_lt_dar_allow_undefined"
vapier6acb2cf2009-01-28 04:46:28 +00008021 case $cc_basename in
8022 ifort*) _lt_dar_can_shared=yes ;;
8023 *) _lt_dar_can_shared=$GCC ;;
8024 esac
8025 if test "$_lt_dar_can_shared" = "yes"; then
mlcreech636a9952008-05-05 22:52:56 +00008026 output_verbose_link_cmd=echo
8027 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8028 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8029 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}"
8030 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}"
8031
8032 else
8033 ld_shlibs=no
8034 fi
8035
a.rottmann9bc8b932004-02-29 15:18:31 +00008036 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008037
a.rottmann9bc8b932004-02-29 15:18:31 +00008038 dgux*)
8039 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8040 hardcode_libdir_flag_spec='-L$libdir'
8041 hardcode_shlibpath_var=no
8042 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008043
a.rottmann9bc8b932004-02-29 15:18:31 +00008044 freebsd1*)
8045 ld_shlibs=no
8046 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008047
a.rottmann9bc8b932004-02-29 15:18:31 +00008048 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8049 # support. Future versions do this automatically, but an explicit c++rt0.o
8050 # does not break anything, and helps significantly (at the cost of a little
8051 # extra space).
8052 freebsd2.2*)
8053 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8054 hardcode_libdir_flag_spec='-R$libdir'
8055 hardcode_direct=yes
8056 hardcode_shlibpath_var=no
8057 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008058
a.rottmann9bc8b932004-02-29 15:18:31 +00008059 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8060 freebsd2*)
8061 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8062 hardcode_direct=yes
8063 hardcode_minus_L=yes
8064 hardcode_shlibpath_var=no
8065 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008066
a.rottmann9bc8b932004-02-29 15:18:31 +00008067 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00008068 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008069 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8070 hardcode_libdir_flag_spec='-R$libdir'
8071 hardcode_direct=yes
8072 hardcode_shlibpath_var=no
8073 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008074
a.rottmann9bc8b932004-02-29 15:18:31 +00008075 hpux9*)
8076 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008077 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 +00008078 else
mlcreech636a9952008-05-05 22:52:56 +00008079 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 +00008080 fi
8081 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8082 hardcode_libdir_separator=:
8083 hardcode_direct=yes
8084
8085 # hardcode_minus_L: Not really in the search PATH,
8086 # but as the default location of the library.
8087 hardcode_minus_L=yes
8088 export_dynamic_flag_spec='${wl}-E'
8089 ;;
8090
vapier7f19c022007-02-17 14:46:31 +00008091 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008092 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00008093 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8094 else
8095 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8096 fi
8097 if test "$with_gnu_ld" = no; then
8098 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00008099 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00008100 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00008101 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00008102 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00008103 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00008104 # hardcode_minus_L: Not really in the search PATH,
8105 # but as the default location of the library.
8106 hardcode_minus_L=yes
8107 fi
8108 ;;
8109
8110 hpux11*)
8111 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8112 case $host_cpu in
8113 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008114 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8115 ;;
vapier7f19c022007-02-17 14:46:31 +00008116 ia64*)
vapier6acb2cf2009-01-28 04:46:28 +00008117 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008118 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008119 *)
8120 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8121 ;;
8122 esac
8123 else
vapier7f19c022007-02-17 14:46:31 +00008124 case $host_cpu in
8125 hppa*64*)
8126 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8127 ;;
8128 ia64*)
8129 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00008130 ;;
8131 *)
vapier7f19c022007-02-17 14:46:31 +00008132 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 +00008133 ;;
8134 esac
8135 fi
8136 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00008137 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8138 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00008139
vapier7f19c022007-02-17 14:46:31 +00008140 case $host_cpu in
8141 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00008142 hardcode_direct=no
8143 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008144 ;;
8145 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008146 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00008147 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00008148 export_dynamic_flag_spec='${wl}-E'
8149
8150 # hardcode_minus_L: Not really in the search PATH,
8151 # but as the default location of the library.
8152 hardcode_minus_L=yes
8153 ;;
8154 esac
8155 fi
8156 ;;
8157
8158 irix5* | irix6* | nonstopux*)
8159 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008160 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'
8161 # Try to use the -exported_symbol ld option, if it does not
8162 # work, assume that -exports_file does not work either and
8163 # implicitly export all symbols.
8164 save_LDFLAGS="$LDFLAGS"
8165 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
drh710658c2012-01-16 13:00:05 +00008166 cat >conftest.$ac_ext <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +00008167int foo(void) {}
8168_ACEOF
drh710658c2012-01-16 13:00:05 +00008169rm -f conftest.$ac_objext conftest$ac_exeext
8170if { (ac_try="$ac_link"
8171case "(($ac_try" in
8172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173 *) ac_try_echo=$ac_try;;
8174esac
8175eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8176$as_echo "$ac_try_echo") >&5
8177 (eval "$ac_link") 2>conftest.er1
8178 ac_status=$?
8179 grep -v '^ *+' conftest.er1 >conftest.err
8180 rm -f conftest.er1
8181 cat conftest.err >&5
8182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); } && {
8184 test -z "$ac_c_werror_flag" ||
8185 test ! -s conftest.err
8186 } && test -s conftest$ac_exeext && {
8187 test "$cross_compiling" = yes ||
8188 $as_test_x conftest$ac_exeext
8189 }; then
mlcreech636a9952008-05-05 22:52:56 +00008190 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'
8191
drh710658c2012-01-16 13:00:05 +00008192else
8193 $as_echo "$as_me: failed program was:" >&5
8194sed 's/^/| /' conftest.$ac_ext >&5
8195
8196
mlcreech636a9952008-05-05 22:52:56 +00008197fi
drh710658c2012-01-16 13:00:05 +00008198
8199rm -rf conftest.dSYM
8200rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8201 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008202 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00008203 else
mlcreech636a9952008-05-05 22:52:56 +00008204 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'
8205 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 +00008206 fi
mlcreech636a9952008-05-05 22:52:56 +00008207 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008208 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8209 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00008210 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00008211 link_all_deplibs=yes
8212 ;;
8213
vapier7f19c022007-02-17 14:46:31 +00008214 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00008215 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008216 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8217 else
8218 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8219 fi
8220 hardcode_libdir_flag_spec='-R$libdir'
8221 hardcode_direct=yes
8222 hardcode_shlibpath_var=no
8223 ;;
8224
8225 newsos6)
8226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8227 hardcode_direct=yes
8228 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8229 hardcode_libdir_separator=:
8230 hardcode_shlibpath_var=no
8231 ;;
8232
mlcreech636a9952008-05-05 22:52:56 +00008233 *nto* | *qnx*)
8234 ;;
8235
a.rottmann9bc8b932004-02-29 15:18:31 +00008236 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00008237 if test -f /usr/libexec/ld.so; then
8238 hardcode_direct=yes
8239 hardcode_shlibpath_var=no
8240 hardcode_direct_absolute=yes
8241 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8242 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8243 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8244 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8245 export_dynamic_flag_spec='${wl}-E'
8246 else
8247 case $host_os in
8248 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8249 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8250 hardcode_libdir_flag_spec='-R$libdir'
8251 ;;
8252 *)
8253 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8254 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8255 ;;
8256 esac
8257 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008258 else
mlcreech636a9952008-05-05 22:52:56 +00008259 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008260 fi
8261 ;;
8262
8263 os2*)
8264 hardcode_libdir_flag_spec='-L$libdir'
8265 hardcode_minus_L=yes
8266 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00008267 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'
8268 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00008269 ;;
8270
8271 osf3*)
8272 if test "$GCC" = yes; then
8273 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008274 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 +00008275 else
8276 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008277 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 +00008278 fi
mlcreech636a9952008-05-05 22:52:56 +00008279 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008280 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8281 hardcode_libdir_separator=:
8282 ;;
8283
8284 osf4* | osf5*) # as osf3* with the addition of -msym flag
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}-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 +00008288 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8289 else
8290 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008291 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'
8292 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~
8293 $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 +00008294
8295 # Both c and cxx compiler support -rpath directly
8296 hardcode_libdir_flag_spec='-rpath $libdir'
8297 fi
mlcreech636a9952008-05-05 22:52:56 +00008298 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008299 hardcode_libdir_separator=:
8300 ;;
8301
a.rottmann9bc8b932004-02-29 15:18:31 +00008302 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00008303 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008304 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008305 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00008306 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8307 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8308 $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 +00008309 else
mlcreech636a9952008-05-05 22:52:56 +00008310 case `$CC -V 2>&1` in
8311 *"Compilers 5.0"*)
8312 wlarc=''
8313 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8314 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8315 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8316 ;;
8317 *)
8318 wlarc='${wl}'
8319 archive_cmds='$CC -G${allow_undefined_flag} -h $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 -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8322 ;;
8323 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008324 fi
8325 hardcode_libdir_flag_spec='-R$libdir'
8326 hardcode_shlibpath_var=no
8327 case $host_os in
8328 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00008329 *)
mlcreech636a9952008-05-05 22:52:56 +00008330 # The compiler driver will combine and reorder linker options,
8331 # but understands `-z linker_flag'. GCC discards it without `$wl',
8332 # but is careful enough not to reorder.
8333 # Supported since Solaris 2.6 (maybe 2.5.1?)
8334 if test "$GCC" = yes; then
8335 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8336 else
8337 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8338 fi
8339 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008340 esac
8341 link_all_deplibs=yes
8342 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008343
a.rottmann9bc8b932004-02-29 15:18:31 +00008344 sunos4*)
8345 if test "x$host_vendor" = xsequent; then
8346 # Use $CC to link under sequent, because it throws in some extra .o
8347 # files that make .init and .fini sections work.
8348 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8349 else
8350 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8351 fi
8352 hardcode_libdir_flag_spec='-L$libdir'
8353 hardcode_direct=yes
8354 hardcode_minus_L=yes
8355 hardcode_shlibpath_var=no
8356 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008357
a.rottmann9bc8b932004-02-29 15:18:31 +00008358 sysv4)
8359 case $host_vendor in
8360 sni)
8361 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8362 hardcode_direct=yes # is this really true???
8363 ;;
8364 siemens)
8365 ## LD is ld it makes a PLAMLIB
8366 ## CC just makes a GrossModule.
8367 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8368 reload_cmds='$CC -r -o $output$reload_objs'
8369 hardcode_direct=no
8370 ;;
8371 motorola)
8372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8373 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8374 ;;
8375 esac
8376 runpath_var='LD_RUN_PATH'
8377 hardcode_shlibpath_var=no
8378 ;;
8379
8380 sysv4.3*)
8381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8382 hardcode_shlibpath_var=no
8383 export_dynamic_flag_spec='-Bexport'
8384 ;;
8385
8386 sysv4*MP*)
8387 if test -d /usr/nec; then
8388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8389 hardcode_shlibpath_var=no
8390 runpath_var=LD_RUN_PATH
8391 hardcode_runpath_var=yes
8392 ld_shlibs=yes
8393 fi
8394 ;;
8395
mlcreech636a9952008-05-05 22:52:56 +00008396 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00008397 no_undefined_flag='${wl}-z,text'
8398 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008399 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00008400 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00008401
a.rottmann9bc8b932004-02-29 15:18:31 +00008402 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008403 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8404 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 +00008405 else
vapier7f19c022007-02-17 14:46:31 +00008406 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8407 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 +00008408 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008409 ;;
8410
vapier7f19c022007-02-17 14:46:31 +00008411 sysv5* | sco3.2v5* | sco5v6*)
8412 # Note: We can NOT use -z defs as we might desire, because we do not
8413 # link with -lc, and that would cause any symbols used from libc to
8414 # always be unresolved, which means just about no library would
8415 # ever link correctly. If we're not using GNU ld we use -z text
8416 # though, which does catch some bad symbols but isn't as heavy-handed
8417 # as -z defs.
8418 no_undefined_flag='${wl}-z,text'
8419 allow_undefined_flag='${wl}-z,nodefs'
8420 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008421 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00008422 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00008423 hardcode_libdir_separator=':'
8424 link_all_deplibs=yes
8425 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00008426 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00008427
8428 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008429 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8430 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008431 else
mlcreech636a9952008-05-05 22:52:56 +00008432 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8433 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008434 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008435 ;;
8436
8437 uts4*)
8438 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8439 hardcode_libdir_flag_spec='-L$libdir'
8440 hardcode_shlibpath_var=no
8441 ;;
8442
8443 *)
8444 ld_shlibs=no
8445 ;;
8446 esac
mlcreech636a9952008-05-05 22:52:56 +00008447
8448 if test x$host_vendor = xsni; then
8449 case $host in
8450 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8451 export_dynamic_flag_spec='${wl}-Blargedynsym'
8452 ;;
8453 esac
8454 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008455 fi
8456
drh710658c2012-01-16 13:00:05 +00008457{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
drh8b727472009-01-19 18:18:40 +00008458$as_echo "$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008459test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00008460
mlcreech636a9952008-05-05 22:52:56 +00008461with_gnu_ld=$with_gnu_ld
8462
8463
danielk197733a14782008-08-04 14:50:05 +00008464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
a.rottmann9bc8b932004-02-29 15:18:31 +00008477#
8478# Do we need to explicitly link libc?
8479#
8480case "x$archive_cmds_need_lc" in
8481x|xyes)
8482 # Assume -lc should be added
8483 archive_cmds_need_lc=yes
8484
8485 if test "$enable_shared" = yes && test "$GCC" = yes; then
8486 case $archive_cmds in
8487 *'~'*)
8488 # FIXME: we may have to deal with multi-command sequences.
8489 ;;
8490 '$CC '*)
8491 # Test whether the compiler implicitly links with -lc since on some
8492 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8493 # to ld, don't add -lc before -lgcc.
drh710658c2012-01-16 13:00:05 +00008494 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
drh8b727472009-01-19 18:18:40 +00008495$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008496 $RM conftest*
8497 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00008498
drh710658c2012-01-16 13:00:05 +00008499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008500 (eval $ac_compile) 2>&5
8501 ac_status=$?
drh710658c2012-01-16 13:00:05 +00008502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } 2>conftest.err; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008504 soname=conftest
8505 lib=conftest
8506 libobjs=conftest.$ac_objext
8507 deplibs=
8508 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00008509 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00008510 compiler_flags=-v
8511 linker_flags=-v
8512 verstring=
8513 output_objdir=.
8514 libname=conftest
8515 lt_save_allow_undefined_flag=$allow_undefined_flag
8516 allow_undefined_flag=
drh710658c2012-01-16 13:00:05 +00008517 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
mlcreech636a9952008-05-05 22:52:56 +00008518 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008519 ac_status=$?
drh710658c2012-01-16 13:00:05 +00008520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); }
a.rottmann9bc8b932004-02-29 15:18:31 +00008522 then
8523 archive_cmds_need_lc=no
8524 else
8525 archive_cmds_need_lc=yes
8526 fi
8527 allow_undefined_flag=$lt_save_allow_undefined_flag
8528 else
8529 cat conftest.err 1>&5
8530 fi
mlcreech636a9952008-05-05 22:52:56 +00008531 $RM conftest*
drh710658c2012-01-16 13:00:05 +00008532 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
drh8b727472009-01-19 18:18:40 +00008533$as_echo "$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008534 ;;
8535 esac
drh71eb93e2001-09-28 01:34:43 +00008536 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008537 ;;
8538esac
drh71eb93e2001-09-28 01:34:43 +00008539
mlcreech636a9952008-05-05 22:52:56 +00008540
danielk197733a14782008-08-04 14:50:05 +00008541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
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
drh710658c2012-01-16 13:00:05 +00008696 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
drh8b727472009-01-19 18:18:40 +00008697$as_echo_n "checking dynamic linker characteristics... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008698
8699if test "$GCC" = yes; then
8700 case $host_os in
8701 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8702 *) lt_awk_arg="/^libraries:/" ;;
8703 esac
8704 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8705 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8706 # if the path contains ";" then we assume it to be the separator
8707 # otherwise default to the standard path separator (i.e. ":") - it is
8708 # assumed that no part of a normal pathname contains ";" but that should
8709 # okay in the real world where ";" in dirpaths is itself problematic.
8710 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8711 else
8712 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8713 fi
8714 # Ok, now we have the path, separated by spaces, we can step through it
8715 # and add multilib dir if necessary.
8716 lt_tmp_lt_search_path_spec=
8717 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8718 for lt_sys_path in $lt_search_path_spec; do
8719 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8720 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8721 else
8722 test -d "$lt_sys_path" && \
8723 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8724 fi
8725 done
8726 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8727BEGIN {RS=" "; FS="/|\n";} {
8728 lt_foo="";
8729 lt_count=0;
8730 for (lt_i = NF; lt_i > 0; lt_i--) {
8731 if ($lt_i != "" && $lt_i != ".") {
8732 if ($lt_i == "..") {
8733 lt_count++;
8734 } else {
8735 if (lt_count == 0) {
8736 lt_foo="/" $lt_i lt_foo;
8737 } else {
8738 lt_count--;
8739 }
8740 }
8741 }
8742 }
8743 if (lt_foo != "") { lt_freq[lt_foo]++; }
8744 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8745}'`
8746 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8747else
8748 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8749fi
drh71eb93e2001-09-28 01:34:43 +00008750library_names_spec=
8751libname_spec='lib$name'
8752soname_spec=
vapier7f19c022007-02-17 14:46:31 +00008753shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00008754postinstall_cmds=
8755postuninstall_cmds=
8756finish_cmds=
8757finish_eval=
8758shlibpath_var=
8759shlibpath_overrides_runpath=unknown
8760version_type=none
8761dynamic_linker="$host_os ld.so"
8762sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008763need_lib_prefix=unknown
8764hardcode_into_libs=no
8765
8766# when you set need_version to no, make sure it does not cause -set_version
8767# flags to be left without arguments
8768need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00008769
8770case $host_os in
8771aix3*)
8772 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008773 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008774 shlibpath_var=LIBPATH
8775
a.rottmann9bc8b932004-02-29 15:18:31 +00008776 # AIX 3 has no versioning support, so we append a major version to the name.
8777 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008778 ;;
8779
mlcreech636a9952008-05-05 22:52:56 +00008780aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00008781 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00008782 need_lib_prefix=no
8783 need_version=no
8784 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008785 if test "$host_cpu" = ia64; then
8786 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00008787 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008788 shlibpath_var=LD_LIBRARY_PATH
8789 else
8790 # With GCC up to 2.95.x, collect2 would create an import file
8791 # for dependence libraries. The import file would start with
8792 # the line `#! .'. This would cause the generated library to
8793 # depend on `.', always an invalid library. This was fixed in
8794 # development snapshots of GCC prior to 3.0.
8795 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008796 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008797 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8798 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00008799 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008800 :
8801 else
8802 can_build_shared=no
8803 fi
8804 ;;
drh71eb93e2001-09-28 01:34:43 +00008805 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008806 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8807 # soname into executable. Probably we can add versioning support to
8808 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00008809 if test "$aix_use_runtimelinking" = yes; then
8810 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8811 # instead of lib<name>.a to let people know that these are not
8812 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008814 else
8815 # We preserve .a as extension for shared libraries through AIX4.2
8816 # and later when we are not doing run time linking.
8817 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008818 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008819 fi
8820 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00008821 fi
8822 ;;
8823
8824amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00008825 case $host_cpu in
8826 powerpc)
8827 # Since July 2007 AmigaOS4 officially supports .so libraries.
8828 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8830 ;;
8831 m68k)
8832 library_names_spec='$libname.ixlibrary $libname.a'
8833 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8834 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'
8835 ;;
8836 esac
drh71eb93e2001-09-28 01:34:43 +00008837 ;;
8838
8839beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008840 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008841 dynamic_linker="$host_os ld.so"
8842 shlibpath_var=LIBRARY_PATH
8843 ;;
8844
vapier7f19c022007-02-17 14:46:31 +00008845bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00008846 version_type=linux
8847 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8849 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008850 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8851 shlibpath_var=LD_LIBRARY_PATH
8852 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8853 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8854 # the default ld.so.conf also contains /usr/contrib/lib and
8855 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8856 # libtool to hard-code these into programs
8857 ;;
8858
vapier6acb2cf2009-01-28 04:46:28 +00008859cygwin* | mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008860 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00008861 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008862 need_version=no
8863 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008864
drh71eb93e2001-09-28 01:34:43 +00008865 case $GCC,$host_os in
vapier6acb2cf2009-01-28 04:46:28 +00008866 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008867 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008868 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8869 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00008870 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008871 dldir=$destdir/`dirname \$dlpath`~
8872 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00008873 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00008874 chmod a+x \$dldir/$dlname~
8875 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8876 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8877 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00008878 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008879 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00008880 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00008881 shlibpath_overrides_runpath=yes
8882
8883 case $host_os in
8884 cygwin*)
8885 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8886 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8887 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8888 ;;
vapier6acb2cf2009-01-28 04:46:28 +00008889 mingw* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008890 # MinGW DLLs use traditional 'lib' prefix
8891 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00008892 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8893 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008894 # It is most probably a Windows format PATH printed by
8895 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8896 # path with ; separators, and with drive letters. We can handle the
8897 # drive letters (cygwin fileutils understands them), so leave them,
8898 # especially as we might pass files found there to a mingw objdump,
8899 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00008900 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00008901 else
mlcreech636a9952008-05-05 22:52:56 +00008902 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00008903 fi
8904 ;;
8905 pw32*)
8906 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00008907 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 +00008908 ;;
8909 esac
drh71eb93e2001-09-28 01:34:43 +00008910 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008911
drh71eb93e2001-09-28 01:34:43 +00008912 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008913 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008914 ;;
8915 esac
8916 dynamic_linker='Win32 ld.exe'
8917 # FIXME: first we should search . and the directory the executable is in
8918 shlibpath_var=PATH
8919 ;;
8920
8921darwin* | rhapsody*)
8922 dynamic_linker="$host_os dyld"
8923 version_type=darwin
8924 need_lib_prefix=no
8925 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008926 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00008927 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008928 shlibpath_overrides_runpath=yes
8929 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008930 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00008931
8932 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008933 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8934 ;;
8935
8936dgux*)
8937 version_type=linux
8938 need_lib_prefix=no
8939 need_version=no
8940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8941 soname_spec='${libname}${release}${shared_ext}$major'
8942 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008943 ;;
8944
a.rottmann84e63352003-03-24 09:42:16 +00008945freebsd1*)
8946 dynamic_linker=no
8947 ;;
8948
vapier7f19c022007-02-17 14:46:31 +00008949freebsd* | dragonfly*)
8950 # DragonFly does not have aout. When/if they implement a new
8951 # versioning mechanism, adjust this.
8952 if test -x /usr/bin/objformat; then
8953 objformat=`/usr/bin/objformat`
8954 else
8955 case $host_os in
8956 freebsd[123]*) objformat=aout ;;
8957 *) objformat=elf ;;
8958 esac
8959 fi
8960 # Handle Gentoo/FreeBSD as it was Linux
8961 case $host_vendor in
8962 gentoo)
8963 version_type=linux ;;
8964 *)
8965 version_type=freebsd-$objformat ;;
8966 esac
8967
drh71eb93e2001-09-28 01:34:43 +00008968 case $version_type in
8969 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008971 need_version=no
8972 need_lib_prefix=no
8973 ;;
8974 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008975 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008976 need_version=yes
8977 ;;
vapier7f19c022007-02-17 14:46:31 +00008978 linux)
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8980 soname_spec='${libname}${release}${shared_ext}$major'
8981 need_lib_prefix=no
8982 need_version=no
8983 ;;
drh71eb93e2001-09-28 01:34:43 +00008984 esac
8985 shlibpath_var=LD_LIBRARY_PATH
8986 case $host_os in
8987 freebsd2*)
8988 shlibpath_overrides_runpath=yes
8989 ;;
vapier7f19c022007-02-17 14:46:31 +00008990 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008991 shlibpath_overrides_runpath=yes
8992 hardcode_into_libs=yes
8993 ;;
vapier7f19c022007-02-17 14:46:31 +00008994 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8995 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00008996 shlibpath_overrides_runpath=no
8997 hardcode_into_libs=yes
8998 ;;
mlcreech636a9952008-05-05 22:52:56 +00008999 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00009000 shlibpath_overrides_runpath=yes
9001 hardcode_into_libs=yes
9002 ;;
drh71eb93e2001-09-28 01:34:43 +00009003 esac
9004 ;;
9005
9006gnu*)
9007 version_type=linux
9008 need_lib_prefix=no
9009 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9011 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009012 shlibpath_var=LD_LIBRARY_PATH
9013 hardcode_into_libs=yes
9014 ;;
9015
9016hpux9* | hpux10* | hpux11*)
9017 # Give a soname corresponding to the major version so that dld.sl refuses to
9018 # link against other versions.
9019 version_type=sunos
9020 need_lib_prefix=no
9021 need_version=no
vapier7f19c022007-02-17 14:46:31 +00009022 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00009023 ia64*)
vapier7f19c022007-02-17 14:46:31 +00009024 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00009025 hardcode_into_libs=yes
9026 dynamic_linker="$host_os dld.so"
9027 shlibpath_var=LD_LIBRARY_PATH
9028 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030 soname_spec='${libname}${release}${shared_ext}$major'
9031 if test "X$HPUX_IA64_MODE" = X32; then
9032 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9033 else
9034 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9035 fi
9036 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9037 ;;
mlcreech636a9952008-05-05 22:52:56 +00009038 hppa*64*)
9039 shrext_cmds='.sl'
9040 hardcode_into_libs=yes
9041 dynamic_linker="$host_os dld.sl"
9042 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9043 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9045 soname_spec='${libname}${release}${shared_ext}$major'
9046 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9047 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9048 ;;
9049 *)
vapier7f19c022007-02-17 14:46:31 +00009050 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00009051 dynamic_linker="$host_os dld.sl"
9052 shlibpath_var=SHLIB_PATH
9053 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9055 soname_spec='${libname}${release}${shared_ext}$major'
9056 ;;
9057 esac
drh71eb93e2001-09-28 01:34:43 +00009058 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9059 postinstall_cmds='chmod 555 $lib'
9060 ;;
9061
mlcreech636a9952008-05-05 22:52:56 +00009062interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00009063 version_type=linux
9064 need_lib_prefix=no
9065 need_version=no
9066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9067 soname_spec='${libname}${release}${shared_ext}$major'
9068 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9069 shlibpath_var=LD_LIBRARY_PATH
9070 shlibpath_overrides_runpath=no
9071 hardcode_into_libs=yes
9072 ;;
9073
a.rottmann84e63352003-03-24 09:42:16 +00009074irix5* | irix6* | nonstopux*)
9075 case $host_os in
9076 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009077 *)
9078 if test "$lt_cv_prog_gnu_ld" = yes; then
9079 version_type=linux
9080 else
9081 version_type=irix
9082 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00009083 esac
drh71eb93e2001-09-28 01:34:43 +00009084 need_lib_prefix=no
9085 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009086 soname_spec='${libname}${release}${shared_ext}$major'
9087 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 +00009088 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00009089 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00009090 libsuff= shlibsuff=
9091 ;;
9092 *)
9093 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00009094 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9095 libsuff= shlibsuff= libmagic=32-bit;;
9096 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9097 libsuff=32 shlibsuff=N32 libmagic=N32;;
9098 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9099 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00009100 *) libsuff= shlibsuff= libmagic=never-match;;
9101 esac
9102 ;;
9103 esac
9104 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9105 shlibpath_overrides_runpath=no
9106 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9107 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00009108 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00009109 ;;
9110
9111# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00009112linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00009113 dynamic_linker=no
9114 ;;
9115
9116# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00009117linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00009118 version_type=linux
9119 need_lib_prefix=no
9120 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9122 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009123 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9124 shlibpath_var=LD_LIBRARY_PATH
9125 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00009126 # Some binutils ld are patched to set DT_RUNPATH
9127 save_LDFLAGS=$LDFLAGS
9128 save_libdir=$libdir
9129 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9130 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
drh710658c2012-01-16 13:00:05 +00009131 cat >conftest.$ac_ext <<_ACEOF
9132/* confdefs.h. */
9133_ACEOF
9134cat confdefs.h >>conftest.$ac_ext
9135cat >>conftest.$ac_ext <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +00009136/* end confdefs.h. */
9137
9138int
9139main ()
9140{
9141
9142 ;
9143 return 0;
9144}
9145_ACEOF
drh710658c2012-01-16 13:00:05 +00009146rm -f conftest.$ac_objext conftest$ac_exeext
9147if { (ac_try="$ac_link"
9148case "(($ac_try" in
9149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9150 *) ac_try_echo=$ac_try;;
9151esac
9152eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9153$as_echo "$ac_try_echo") >&5
9154 (eval "$ac_link") 2>conftest.er1
9155 ac_status=$?
9156 grep -v '^ *+' conftest.er1 >conftest.err
9157 rm -f conftest.er1
9158 cat conftest.err >&5
9159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } && {
9161 test -z "$ac_c_werror_flag" ||
9162 test ! -s conftest.err
9163 } && test -s conftest$ac_exeext && {
9164 test "$cross_compiling" = yes ||
9165 $as_test_x conftest$ac_exeext
9166 }; then
9167 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00009168 shlibpath_overrides_runpath=yes
9169fi
drh710658c2012-01-16 13:00:05 +00009170
9171else
9172 $as_echo "$as_me: failed program was:" >&5
9173sed 's/^/| /' conftest.$ac_ext >&5
9174
9175
mlcreech636a9952008-05-05 22:52:56 +00009176fi
drh710658c2012-01-16 13:00:05 +00009177
9178rm -rf conftest.dSYM
9179rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9180 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009181 LDFLAGS=$save_LDFLAGS
9182 libdir=$save_libdir
9183
drh71eb93e2001-09-28 01:34:43 +00009184 # This implies no fast_install, which is unacceptable.
9185 # Some rework will be needed to allow for fast_install
9186 # before this can be enabled.
9187 hardcode_into_libs=yes
9188
a.rottmann9bc8b932004-02-29 15:18:31 +00009189 # Append ld.so.conf contents to the search path
9190 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00009191 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 +00009192 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00009193 fi
9194
drh71eb93e2001-09-28 01:34:43 +00009195 # We used to test for /lib/ld.so.1 and disable shared libraries on
9196 # powerpc, because MkLinux only supported shared libraries with the
9197 # GNU dynamic linker. Since this was broken with cross compilers,
9198 # most powerpc-linux boxes support dynamic linking these days and
9199 # people can always --disable-shared, the test was removed, and we
9200 # assume the GNU/Linux dynamic linker is in use.
9201 dynamic_linker='GNU/Linux ld.so'
9202 ;;
9203
9204netbsd*)
9205 version_type=sunos
9206 need_lib_prefix=no
9207 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00009208 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9211 dynamic_linker='NetBSD (a.out) ld.so'
9212 else
a.rottmann9bc8b932004-02-29 15:18:31 +00009213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9214 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009215 dynamic_linker='NetBSD ld.elf_so'
9216 fi
9217 shlibpath_var=LD_LIBRARY_PATH
9218 shlibpath_overrides_runpath=yes
9219 hardcode_into_libs=yes
9220 ;;
9221
9222newsos6)
9223 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9225 shlibpath_var=LD_LIBRARY_PATH
9226 shlibpath_overrides_runpath=yes
9227 ;;
9228
mlcreech636a9952008-05-05 22:52:56 +00009229*nto* | *qnx*)
9230 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00009231 need_lib_prefix=no
9232 need_version=no
9233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9234 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009235 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009236 shlibpath_overrides_runpath=no
9237 hardcode_into_libs=yes
9238 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00009239 ;;
9240
drh71eb93e2001-09-28 01:34:43 +00009241openbsd*)
9242 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00009243 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00009244 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00009245 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9246 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00009247 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9248 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00009249 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00009250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9252 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009253 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 +00009254 case $host_os in
9255 openbsd2.[89] | openbsd2.[89].*)
9256 shlibpath_overrides_runpath=no
9257 ;;
9258 *)
9259 shlibpath_overrides_runpath=yes
9260 ;;
9261 esac
a.rottmann84e63352003-03-24 09:42:16 +00009262 else
9263 shlibpath_overrides_runpath=yes
9264 fi
drh71eb93e2001-09-28 01:34:43 +00009265 ;;
9266
9267os2*)
9268 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00009269 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00009270 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009271 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00009272 dynamic_linker='OS/2 ld.exe'
9273 shlibpath_var=LIBPATH
9274 ;;
9275
9276osf3* | osf4* | osf5*)
9277 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00009278 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009279 need_version=no
9280 soname_spec='${libname}${release}${shared_ext}$major'
9281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00009282 shlibpath_var=LD_LIBRARY_PATH
9283 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9284 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9285 ;;
9286
mlcreech636a9952008-05-05 22:52:56 +00009287rdos*)
9288 dynamic_linker=no
9289 ;;
9290
drh71eb93e2001-09-28 01:34:43 +00009291solaris*)
9292 version_type=linux
9293 need_lib_prefix=no
9294 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9296 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009297 shlibpath_var=LD_LIBRARY_PATH
9298 shlibpath_overrides_runpath=yes
9299 hardcode_into_libs=yes
9300 # ldd complains unless libraries are executable
9301 postinstall_cmds='chmod +x $lib'
9302 ;;
9303
9304sunos4*)
9305 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00009306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009307 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9308 shlibpath_var=LD_LIBRARY_PATH
9309 shlibpath_overrides_runpath=yes
9310 if test "$with_gnu_ld" = yes; then
9311 need_lib_prefix=no
9312 fi
9313 need_version=yes
9314 ;;
9315
vapier7f19c022007-02-17 14:46:31 +00009316sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00009317 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9319 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009320 shlibpath_var=LD_LIBRARY_PATH
9321 case $host_vendor in
9322 sni)
9323 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00009324 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00009325 runpath_var=LD_RUN_PATH
9326 ;;
9327 siemens)
9328 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00009329 ;;
9330 motorola)
9331 need_lib_prefix=no
9332 need_version=no
9333 shlibpath_overrides_runpath=no
9334 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9335 ;;
9336 esac
9337 ;;
9338
9339sysv4*MP*)
9340 if test -d /usr/nec ;then
9341 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009342 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9343 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00009344 shlibpath_var=LD_LIBRARY_PATH
9345 fi
9346 ;;
9347
vapier7f19c022007-02-17 14:46:31 +00009348sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9349 version_type=freebsd-elf
9350 need_lib_prefix=no
9351 need_version=no
9352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9353 soname_spec='${libname}${release}${shared_ext}$major'
9354 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009355 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00009356 hardcode_into_libs=yes
9357 if test "$with_gnu_ld" = yes; then
9358 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00009359 else
9360 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00009361 case $host_os in
9362 sco3.2v5*)
9363 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9364 ;;
9365 esac
9366 fi
9367 sys_lib_dlsearch_path_spec='/usr/lib'
9368 ;;
9369
mlcreech636a9952008-05-05 22:52:56 +00009370tpf*)
9371 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9372 version_type=linux
9373 need_lib_prefix=no
9374 need_version=no
vapier6acb2cf2009-01-28 04:46:28 +00009375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00009376 shlibpath_var=LD_LIBRARY_PATH
9377 shlibpath_overrides_runpath=no
9378 hardcode_into_libs=yes
9379 ;;
9380
a.rottmann9bc8b932004-02-29 15:18:31 +00009381uts4*)
9382 version_type=linux
9383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9384 soname_spec='${libname}${release}${shared_ext}$major'
9385 shlibpath_var=LD_LIBRARY_PATH
9386 ;;
9387
drh71eb93e2001-09-28 01:34:43 +00009388*)
9389 dynamic_linker=no
9390 ;;
9391esac
drh710658c2012-01-16 13:00:05 +00009392{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
drh8b727472009-01-19 18:18:40 +00009393$as_echo "$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009394test "$dynamic_linker" = no && can_build_shared=no
9395
vapier7f19c022007-02-17 14:46:31 +00009396variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9397if test "$GCC" = yes; then
9398 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9399fi
9400
mlcreech636a9952008-05-05 22:52:56 +00009401if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9402 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9403fi
9404if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9405 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9406fi
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
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
drh710658c2012-01-16 13:00:05 +00009494 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
drh8b727472009-01-19 18:18:40 +00009495$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009496hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00009497if test -n "$hardcode_libdir_flag_spec" ||
9498 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00009499 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00009500
mlcreech636a9952008-05-05 22:52:56 +00009501 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00009502 if test "$hardcode_direct" != no &&
9503 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9504 # have to relink, otherwise we might link with an installed library
9505 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00009506 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00009507 test "$hardcode_minus_L" != no; then
9508 # Linking always hardcodes the temporary library directory.
9509 hardcode_action=relink
9510 else
9511 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9512 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00009513 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009514else
9515 # We cannot hardcode anything, or else we can only hardcode existing
9516 # directories.
9517 hardcode_action=unsupported
9518fi
drh710658c2012-01-16 13:00:05 +00009519{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
drh8b727472009-01-19 18:18:40 +00009520$as_echo "$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009521
mlcreech636a9952008-05-05 22:52:56 +00009522if test "$hardcode_action" = relink ||
9523 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009524 # Fast installation is not supported
9525 enable_fast_install=no
9526elif test "$shlibpath_overrides_runpath" = yes ||
9527 test "$enable_shared" = no; then
9528 # Fast installation is not necessary
9529 enable_fast_install=needless
9530fi
9531
a.rottmann84e63352003-03-24 09:42:16 +00009532
mlcreech636a9952008-05-05 22:52:56 +00009533
9534
9535
9536
9537 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00009538 enable_dlopen=unknown
9539 enable_dlopen_self=unknown
9540 enable_dlopen_self_static=unknown
9541else
9542 lt_cv_dlopen=no
9543 lt_cv_dlopen_libs=
9544
9545 case $host_os in
9546 beos*)
9547 lt_cv_dlopen="load_add_on"
9548 lt_cv_dlopen_libs=
9549 lt_cv_dlopen_self=yes
9550 ;;
9551
vapier6acb2cf2009-01-28 04:46:28 +00009552 mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00009553 lt_cv_dlopen="LoadLibrary"
9554 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009555 ;;
drh71eb93e2001-09-28 01:34:43 +00009556
a.rottmann9bc8b932004-02-29 15:18:31 +00009557 cygwin*)
9558 lt_cv_dlopen="dlopen"
9559 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009560 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009561
9562 darwin*)
9563 # if libdl is installed we need to link against it
drh710658c2012-01-16 13:00:05 +00009564 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009565$as_echo_n "checking for dlopen in -ldl... " >&6; }
drh710658c2012-01-16 13:00:05 +00009566if test "${ac_cv_lib_dl_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009567 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009568else
9569 ac_check_lib_save_LIBS=$LIBS
9570LIBS="-ldl $LIBS"
drh710658c2012-01-16 13:00:05 +00009571cat >conftest.$ac_ext <<_ACEOF
9572/* confdefs.h. */
9573_ACEOF
9574cat confdefs.h >>conftest.$ac_ext
9575cat >>conftest.$ac_ext <<_ACEOF
a.rottmann9bc8b932004-02-29 15:18:31 +00009576/* end confdefs.h. */
9577
drh8b727472009-01-19 18:18:40 +00009578/* Override any GCC internal prototype to avoid an error.
9579 Use char because int might match the return type of a GCC
9580 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00009581#ifdef __cplusplus
9582extern "C"
9583#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00009584char dlopen ();
9585int
9586main ()
9587{
drh8b727472009-01-19 18:18:40 +00009588return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00009589 ;
9590 return 0;
9591}
9592_ACEOF
drh710658c2012-01-16 13:00:05 +00009593rm -f conftest.$ac_objext conftest$ac_exeext
9594if { (ac_try="$ac_link"
9595case "(($ac_try" in
9596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9597 *) ac_try_echo=$ac_try;;
9598esac
9599eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9600$as_echo "$ac_try_echo") >&5
9601 (eval "$ac_link") 2>conftest.er1
9602 ac_status=$?
9603 grep -v '^ *+' conftest.er1 >conftest.err
9604 rm -f conftest.er1
9605 cat conftest.err >&5
9606 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } && {
9608 test -z "$ac_c_werror_flag" ||
9609 test ! -s conftest.err
9610 } && test -s conftest$ac_exeext && {
9611 test "$cross_compiling" = yes ||
9612 $as_test_x conftest$ac_exeext
9613 }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009614 ac_cv_lib_dl_dlopen=yes
9615else
drh710658c2012-01-16 13:00:05 +00009616 $as_echo "$as_me: failed program was:" >&5
9617sed 's/^/| /' conftest.$ac_ext >&5
9618
9619 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009620fi
drh710658c2012-01-16 13:00:05 +00009621
9622rm -rf conftest.dSYM
9623rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9624 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009625LIBS=$ac_check_lib_save_LIBS
9626fi
drh710658c2012-01-16 13:00:05 +00009627{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009628$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drh710658c2012-01-16 13:00:05 +00009629if test $ac_cv_lib_dl_dlopen = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00009630 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9631else
9632
9633 lt_cv_dlopen="dyld"
9634 lt_cv_dlopen_libs=
9635 lt_cv_dlopen_self=yes
9636
9637fi
9638
mlcreech636a9952008-05-05 22:52:56 +00009639 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009640
drh71eb93e2001-09-28 01:34:43 +00009641 *)
drh710658c2012-01-16 13:00:05 +00009642 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9643$as_echo_n "checking for shl_load... " >&6; }
9644if test "${ac_cv_func_shl_load+set}" = set; then
9645 $as_echo_n "(cached) " >&6
9646else
9647 cat >conftest.$ac_ext <<_ACEOF
9648/* confdefs.h. */
9649_ACEOF
9650cat confdefs.h >>conftest.$ac_ext
9651cat >>conftest.$ac_ext <<_ACEOF
9652/* end confdefs.h. */
9653/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9655#define shl_load innocuous_shl_load
9656
9657/* System header to define __stub macros and hopefully few prototypes,
9658 which can conflict with char shl_load (); below.
9659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9660 <limits.h> exists even on freestanding compilers. */
9661
9662#ifdef __STDC__
9663# include <limits.h>
9664#else
9665# include <assert.h>
9666#endif
9667
9668#undef shl_load
9669
9670/* Override any GCC internal prototype to avoid an error.
9671 Use char because int might match the return type of a GCC
9672 builtin and then its argument prototype would still apply. */
9673#ifdef __cplusplus
9674extern "C"
9675#endif
9676char shl_load ();
9677/* The GNU C library defines this for functions which it implements
9678 to always fail with ENOSYS. Some functions are actually named
9679 something starting with __ and the normal name is an alias. */
9680#if defined __stub_shl_load || defined __stub___shl_load
9681choke me
9682#endif
9683
9684int
9685main ()
9686{
9687return shl_load ();
9688 ;
9689 return 0;
9690}
9691_ACEOF
9692rm -f conftest.$ac_objext conftest$ac_exeext
9693if { (ac_try="$ac_link"
9694case "(($ac_try" in
9695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9696 *) ac_try_echo=$ac_try;;
9697esac
9698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9699$as_echo "$ac_try_echo") >&5
9700 (eval "$ac_link") 2>conftest.er1
9701 ac_status=$?
9702 grep -v '^ *+' conftest.er1 >conftest.err
9703 rm -f conftest.er1
9704 cat conftest.err >&5
9705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9706 (exit $ac_status); } && {
9707 test -z "$ac_c_werror_flag" ||
9708 test ! -s conftest.err
9709 } && test -s conftest$ac_exeext && {
9710 test "$cross_compiling" = yes ||
9711 $as_test_x conftest$ac_exeext
9712 }; then
9713 ac_cv_func_shl_load=yes
9714else
9715 $as_echo "$as_me: failed program was:" >&5
9716sed 's/^/| /' conftest.$ac_ext >&5
9717
9718 ac_cv_func_shl_load=no
9719fi
9720
9721rm -rf conftest.dSYM
9722rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9723 conftest$ac_exeext conftest.$ac_ext
9724fi
9725{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9726$as_echo "$ac_cv_func_shl_load" >&6; }
9727if test $ac_cv_func_shl_load = yes; then
drh71eb93e2001-09-28 01:34:43 +00009728 lt_cv_dlopen="shl_load"
9729else
drh710658c2012-01-16 13:00:05 +00009730 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009731$as_echo_n "checking for shl_load in -ldld... " >&6; }
drh710658c2012-01-16 13:00:05 +00009732if test "${ac_cv_lib_dld_shl_load+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009733 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009734else
9735 ac_check_lib_save_LIBS=$LIBS
9736LIBS="-ldld $LIBS"
drh710658c2012-01-16 13:00:05 +00009737cat >conftest.$ac_ext <<_ACEOF
9738/* confdefs.h. */
9739_ACEOF
9740cat confdefs.h >>conftest.$ac_ext
9741cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009742/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009743
drh8b727472009-01-19 18:18:40 +00009744/* Override any GCC internal prototype to avoid an error.
9745 Use char because int might match the return type of a GCC
9746 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009747#ifdef __cplusplus
9748extern "C"
9749#endif
drh71eb93e2001-09-28 01:34:43 +00009750char shl_load ();
9751int
9752main ()
9753{
drh8b727472009-01-19 18:18:40 +00009754return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009755 ;
9756 return 0;
9757}
9758_ACEOF
drh710658c2012-01-16 13:00:05 +00009759rm -f conftest.$ac_objext conftest$ac_exeext
9760if { (ac_try="$ac_link"
9761case "(($ac_try" in
9762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9763 *) ac_try_echo=$ac_try;;
9764esac
9765eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9766$as_echo "$ac_try_echo") >&5
9767 (eval "$ac_link") 2>conftest.er1
9768 ac_status=$?
9769 grep -v '^ *+' conftest.er1 >conftest.err
9770 rm -f conftest.er1
9771 cat conftest.err >&5
9772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773 (exit $ac_status); } && {
9774 test -z "$ac_c_werror_flag" ||
9775 test ! -s conftest.err
9776 } && test -s conftest$ac_exeext && {
9777 test "$cross_compiling" = yes ||
9778 $as_test_x conftest$ac_exeext
9779 }; then
drh71eb93e2001-09-28 01:34:43 +00009780 ac_cv_lib_dld_shl_load=yes
9781else
drh710658c2012-01-16 13:00:05 +00009782 $as_echo "$as_me: failed program was:" >&5
9783sed 's/^/| /' conftest.$ac_ext >&5
9784
9785 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009786fi
drh710658c2012-01-16 13:00:05 +00009787
9788rm -rf conftest.dSYM
9789rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9790 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009791LIBS=$ac_check_lib_save_LIBS
9792fi
drh710658c2012-01-16 13:00:05 +00009793{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
drh8b727472009-01-19 18:18:40 +00009794$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
drh710658c2012-01-16 13:00:05 +00009795if test $ac_cv_lib_dld_shl_load = yes; then
mlcreech636a9952008-05-05 22:52:56 +00009796 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00009797else
drh710658c2012-01-16 13:00:05 +00009798 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
9799$as_echo_n "checking for dlopen... " >&6; }
9800if test "${ac_cv_func_dlopen+set}" = set; then
9801 $as_echo_n "(cached) " >&6
9802else
9803 cat >conftest.$ac_ext <<_ACEOF
9804/* confdefs.h. */
9805_ACEOF
9806cat confdefs.h >>conftest.$ac_ext
9807cat >>conftest.$ac_ext <<_ACEOF
9808/* end confdefs.h. */
9809/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9811#define dlopen innocuous_dlopen
9812
9813/* System header to define __stub macros and hopefully few prototypes,
9814 which can conflict with char dlopen (); below.
9815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9816 <limits.h> exists even on freestanding compilers. */
9817
9818#ifdef __STDC__
9819# include <limits.h>
9820#else
9821# include <assert.h>
9822#endif
9823
9824#undef dlopen
9825
9826/* Override any GCC internal prototype to avoid an error.
9827 Use char because int might match the return type of a GCC
9828 builtin and then its argument prototype would still apply. */
9829#ifdef __cplusplus
9830extern "C"
9831#endif
9832char dlopen ();
9833/* The GNU C library defines this for functions which it implements
9834 to always fail with ENOSYS. Some functions are actually named
9835 something starting with __ and the normal name is an alias. */
9836#if defined __stub_dlopen || defined __stub___dlopen
9837choke me
9838#endif
9839
9840int
9841main ()
9842{
9843return dlopen ();
9844 ;
9845 return 0;
9846}
9847_ACEOF
9848rm -f conftest.$ac_objext conftest$ac_exeext
9849if { (ac_try="$ac_link"
9850case "(($ac_try" in
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9853esac
9854eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9855$as_echo "$ac_try_echo") >&5
9856 (eval "$ac_link") 2>conftest.er1
9857 ac_status=$?
9858 grep -v '^ *+' conftest.er1 >conftest.err
9859 rm -f conftest.er1
9860 cat conftest.err >&5
9861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } && {
9863 test -z "$ac_c_werror_flag" ||
9864 test ! -s conftest.err
9865 } && test -s conftest$ac_exeext && {
9866 test "$cross_compiling" = yes ||
9867 $as_test_x conftest$ac_exeext
9868 }; then
9869 ac_cv_func_dlopen=yes
9870else
9871 $as_echo "$as_me: failed program was:" >&5
9872sed 's/^/| /' conftest.$ac_ext >&5
9873
9874 ac_cv_func_dlopen=no
9875fi
9876
9877rm -rf conftest.dSYM
9878rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9879 conftest$ac_exeext conftest.$ac_ext
9880fi
9881{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9882$as_echo "$ac_cv_func_dlopen" >&6; }
9883if test $ac_cv_func_dlopen = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009884 lt_cv_dlopen="dlopen"
9885else
drh710658c2012-01-16 13:00:05 +00009886 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009887$as_echo_n "checking for dlopen in -ldl... " >&6; }
drh710658c2012-01-16 13:00:05 +00009888if test "${ac_cv_lib_dl_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009889 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009890else
9891 ac_check_lib_save_LIBS=$LIBS
9892LIBS="-ldl $LIBS"
drh710658c2012-01-16 13:00:05 +00009893cat >conftest.$ac_ext <<_ACEOF
9894/* confdefs.h. */
9895_ACEOF
9896cat confdefs.h >>conftest.$ac_ext
9897cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009898/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009899
drh8b727472009-01-19 18:18:40 +00009900/* Override any GCC internal prototype to avoid an error.
9901 Use char because int might match the return type of a GCC
9902 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009903#ifdef __cplusplus
9904extern "C"
9905#endif
drh71eb93e2001-09-28 01:34:43 +00009906char dlopen ();
9907int
9908main ()
9909{
drh8b727472009-01-19 18:18:40 +00009910return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009911 ;
9912 return 0;
9913}
9914_ACEOF
drh710658c2012-01-16 13:00:05 +00009915rm -f conftest.$ac_objext conftest$ac_exeext
9916if { (ac_try="$ac_link"
9917case "(($ac_try" in
9918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9919 *) ac_try_echo=$ac_try;;
9920esac
9921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9922$as_echo "$ac_try_echo") >&5
9923 (eval "$ac_link") 2>conftest.er1
9924 ac_status=$?
9925 grep -v '^ *+' conftest.er1 >conftest.err
9926 rm -f conftest.er1
9927 cat conftest.err >&5
9928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); } && {
9930 test -z "$ac_c_werror_flag" ||
9931 test ! -s conftest.err
9932 } && test -s conftest$ac_exeext && {
9933 test "$cross_compiling" = yes ||
9934 $as_test_x conftest$ac_exeext
9935 }; then
drh71eb93e2001-09-28 01:34:43 +00009936 ac_cv_lib_dl_dlopen=yes
9937else
drh710658c2012-01-16 13:00:05 +00009938 $as_echo "$as_me: failed program was:" >&5
9939sed 's/^/| /' conftest.$ac_ext >&5
9940
9941 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009942fi
drh710658c2012-01-16 13:00:05 +00009943
9944rm -rf conftest.dSYM
9945rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9946 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009947LIBS=$ac_check_lib_save_LIBS
9948fi
drh710658c2012-01-16 13:00:05 +00009949{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009950$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drh710658c2012-01-16 13:00:05 +00009951if test $ac_cv_lib_dl_dlopen = yes; then
drh71eb93e2001-09-28 01:34:43 +00009952 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9953else
drh710658c2012-01-16 13:00:05 +00009954 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
drh8b727472009-01-19 18:18:40 +00009955$as_echo_n "checking for dlopen in -lsvld... " >&6; }
drh710658c2012-01-16 13:00:05 +00009956if test "${ac_cv_lib_svld_dlopen+set}" = set; then
drh8b727472009-01-19 18:18:40 +00009957 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009958else
9959 ac_check_lib_save_LIBS=$LIBS
9960LIBS="-lsvld $LIBS"
drh710658c2012-01-16 13:00:05 +00009961cat >conftest.$ac_ext <<_ACEOF
9962/* confdefs.h. */
9963_ACEOF
9964cat confdefs.h >>conftest.$ac_ext
9965cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +00009966/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009967
drh8b727472009-01-19 18:18:40 +00009968/* Override any GCC internal prototype to avoid an error.
9969 Use char because int might match the return type of a GCC
9970 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009971#ifdef __cplusplus
9972extern "C"
9973#endif
drh71eb93e2001-09-28 01:34:43 +00009974char dlopen ();
9975int
9976main ()
9977{
drh8b727472009-01-19 18:18:40 +00009978return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009979 ;
9980 return 0;
9981}
9982_ACEOF
drh710658c2012-01-16 13:00:05 +00009983rm -f conftest.$ac_objext conftest$ac_exeext
9984if { (ac_try="$ac_link"
9985case "(($ac_try" in
9986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9987 *) ac_try_echo=$ac_try;;
9988esac
9989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9990$as_echo "$ac_try_echo") >&5
9991 (eval "$ac_link") 2>conftest.er1
9992 ac_status=$?
9993 grep -v '^ *+' conftest.er1 >conftest.err
9994 rm -f conftest.er1
9995 cat conftest.err >&5
9996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); } && {
9998 test -z "$ac_c_werror_flag" ||
9999 test ! -s conftest.err
10000 } && test -s conftest$ac_exeext && {
10001 test "$cross_compiling" = yes ||
10002 $as_test_x conftest$ac_exeext
10003 }; then
drh71eb93e2001-09-28 01:34:43 +000010004 ac_cv_lib_svld_dlopen=yes
10005else
drh710658c2012-01-16 13:00:05 +000010006 $as_echo "$as_me: failed program was:" >&5
10007sed 's/^/| /' conftest.$ac_ext >&5
10008
10009 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +000010010fi
drh710658c2012-01-16 13:00:05 +000010011
10012rm -rf conftest.dSYM
10013rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10014 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +000010015LIBS=$ac_check_lib_save_LIBS
10016fi
drh710658c2012-01-16 13:00:05 +000010017{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
drh8b727472009-01-19 18:18:40 +000010018$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
drh710658c2012-01-16 13:00:05 +000010019if test $ac_cv_lib_svld_dlopen = yes; then
drh71eb93e2001-09-28 01:34:43 +000010020 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +000010021else
drh710658c2012-01-16 13:00:05 +000010022 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
drh8b727472009-01-19 18:18:40 +000010023$as_echo_n "checking for dld_link in -ldld... " >&6; }
drh710658c2012-01-16 13:00:05 +000010024if test "${ac_cv_lib_dld_dld_link+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010025 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000010026else
10027 ac_check_lib_save_LIBS=$LIBS
10028LIBS="-ldld $LIBS"
drh710658c2012-01-16 13:00:05 +000010029cat >conftest.$ac_ext <<_ACEOF
10030/* confdefs.h. */
10031_ACEOF
10032cat confdefs.h >>conftest.$ac_ext
10033cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000010034/* end confdefs.h. */
10035
drh8b727472009-01-19 18:18:40 +000010036/* Override any GCC internal prototype to avoid an error.
10037 Use char because int might match the return type of a GCC
10038 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +000010039#ifdef __cplusplus
10040extern "C"
10041#endif
a.rottmann84e63352003-03-24 09:42:16 +000010042char dld_link ();
10043int
10044main ()
10045{
drh8b727472009-01-19 18:18:40 +000010046return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +000010047 ;
10048 return 0;
10049}
10050_ACEOF
drh710658c2012-01-16 13:00:05 +000010051rm -f conftest.$ac_objext conftest$ac_exeext
10052if { (ac_try="$ac_link"
10053case "(($ac_try" in
10054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10055 *) ac_try_echo=$ac_try;;
10056esac
10057eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10058$as_echo "$ac_try_echo") >&5
10059 (eval "$ac_link") 2>conftest.er1
10060 ac_status=$?
10061 grep -v '^ *+' conftest.er1 >conftest.err
10062 rm -f conftest.er1
10063 cat conftest.err >&5
10064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10065 (exit $ac_status); } && {
10066 test -z "$ac_c_werror_flag" ||
10067 test ! -s conftest.err
10068 } && test -s conftest$ac_exeext && {
10069 test "$cross_compiling" = yes ||
10070 $as_test_x conftest$ac_exeext
10071 }; then
a.rottmann84e63352003-03-24 09:42:16 +000010072 ac_cv_lib_dld_dld_link=yes
10073else
drh710658c2012-01-16 13:00:05 +000010074 $as_echo "$as_me: failed program was:" >&5
10075sed 's/^/| /' conftest.$ac_ext >&5
10076
10077 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +000010078fi
drh710658c2012-01-16 13:00:05 +000010079
10080rm -rf conftest.dSYM
10081rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10082 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000010083LIBS=$ac_check_lib_save_LIBS
10084fi
drh710658c2012-01-16 13:00:05 +000010085{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
drh8b727472009-01-19 18:18:40 +000010086$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
drh710658c2012-01-16 13:00:05 +000010087if test $ac_cv_lib_dld_dld_link = yes; then
mlcreech636a9952008-05-05 22:52:56 +000010088 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +000010089fi
10090
drh71eb93e2001-09-28 01:34:43 +000010091
10092fi
10093
drh71eb93e2001-09-28 01:34:43 +000010094
10095fi
10096
a.rottmann84e63352003-03-24 09:42:16 +000010097
10098fi
10099
10100
10101fi
10102
10103
drh71eb93e2001-09-28 01:34:43 +000010104fi
10105
10106 ;;
10107 esac
10108
10109 if test "x$lt_cv_dlopen" != xno; then
10110 enable_dlopen=yes
10111 else
10112 enable_dlopen=no
10113 fi
10114
10115 case $lt_cv_dlopen in
10116 dlopen)
10117 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +000010118 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +000010119
10120 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +000010121 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +000010122
10123 save_LIBS="$LIBS"
10124 LIBS="$lt_cv_dlopen_libs $LIBS"
10125
drh710658c2012-01-16 13:00:05 +000010126 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +000010127$as_echo_n "checking whether a program can dlopen itself... " >&6; }
drh710658c2012-01-16 13:00:05 +000010128if test "${lt_cv_dlopen_self+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010129 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010130else
10131 if test "$cross_compiling" = yes; then :
10132 lt_cv_dlopen_self=cross
10133else
a.rottmann9bc8b932004-02-29 15:18:31 +000010134 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +000010135 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +000010136 cat > conftest.$ac_ext <<_LT_EOF
drhd881ce82015-03-31 17:01:52 +000010137#line 10137 "configure"
drh71eb93e2001-09-28 01:34:43 +000010138#include "confdefs.h"
10139
10140#if HAVE_DLFCN_H
10141#include <dlfcn.h>
10142#endif
10143
10144#include <stdio.h>
10145
10146#ifdef RTLD_GLOBAL
10147# define LT_DLGLOBAL RTLD_GLOBAL
10148#else
10149# ifdef DL_GLOBAL
10150# define LT_DLGLOBAL DL_GLOBAL
10151# else
10152# define LT_DLGLOBAL 0
10153# endif
10154#endif
10155
10156/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10157 find out it does not work in some platform. */
10158#ifndef LT_DLLAZY_OR_NOW
10159# ifdef RTLD_LAZY
10160# define LT_DLLAZY_OR_NOW RTLD_LAZY
10161# else
10162# ifdef DL_LAZY
10163# define LT_DLLAZY_OR_NOW DL_LAZY
10164# else
10165# ifdef RTLD_NOW
10166# define LT_DLLAZY_OR_NOW RTLD_NOW
10167# else
10168# ifdef DL_NOW
10169# define LT_DLLAZY_OR_NOW DL_NOW
10170# else
10171# define LT_DLLAZY_OR_NOW 0
10172# endif
10173# endif
10174# endif
10175# endif
10176#endif
10177
drh71eb93e2001-09-28 01:34:43 +000010178void fnord() { int i=42;}
10179int main ()
10180{
10181 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10182 int status = $lt_dlunknown;
10183
10184 if (self)
10185 {
10186 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10187 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10188 /* dlclose (self); */
10189 }
vapier7f19c022007-02-17 14:46:31 +000010190 else
10191 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +000010192
vapier6acb2cf2009-01-28 04:46:28 +000010193 return status;
drh71eb93e2001-09-28 01:34:43 +000010194}
mlcreech636a9952008-05-05 22:52:56 +000010195_LT_EOF
drh710658c2012-01-16 13:00:05 +000010196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +000010197 (eval $ac_link) 2>&5
10198 ac_status=$?
drh710658c2012-01-16 13:00:05 +000010199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +000010201 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000010202 lt_status=$?
10203 case x$lt_status in
10204 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10205 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +000010206 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +000010207 esac
10208 else :
10209 # compilation failed
10210 lt_cv_dlopen_self=no
10211 fi
10212fi
10213rm -fr conftest*
10214
a.rottmann84e63352003-03-24 09:42:16 +000010215
drh71eb93e2001-09-28 01:34:43 +000010216fi
drh710658c2012-01-16 13:00:05 +000010217{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
drh8b727472009-01-19 18:18:40 +000010218$as_echo "$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010219
10220 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +000010221 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drh710658c2012-01-16 13:00:05 +000010222 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +000010223$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
drh710658c2012-01-16 13:00:05 +000010224if test "${lt_cv_dlopen_self_static+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010225 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010226else
10227 if test "$cross_compiling" = yes; then :
10228 lt_cv_dlopen_self_static=cross
10229else
a.rottmann9bc8b932004-02-29 15:18:31 +000010230 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +000010231 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +000010232 cat > conftest.$ac_ext <<_LT_EOF
drhd881ce82015-03-31 17:01:52 +000010233#line 10233 "configure"
drh71eb93e2001-09-28 01:34:43 +000010234#include "confdefs.h"
10235
10236#if HAVE_DLFCN_H
10237#include <dlfcn.h>
10238#endif
10239
10240#include <stdio.h>
10241
10242#ifdef RTLD_GLOBAL
10243# define LT_DLGLOBAL RTLD_GLOBAL
10244#else
10245# ifdef DL_GLOBAL
10246# define LT_DLGLOBAL DL_GLOBAL
10247# else
10248# define LT_DLGLOBAL 0
10249# endif
10250#endif
10251
10252/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10253 find out it does not work in some platform. */
10254#ifndef LT_DLLAZY_OR_NOW
10255# ifdef RTLD_LAZY
10256# define LT_DLLAZY_OR_NOW RTLD_LAZY
10257# else
10258# ifdef DL_LAZY
10259# define LT_DLLAZY_OR_NOW DL_LAZY
10260# else
10261# ifdef RTLD_NOW
10262# define LT_DLLAZY_OR_NOW RTLD_NOW
10263# else
10264# ifdef DL_NOW
10265# define LT_DLLAZY_OR_NOW DL_NOW
10266# else
10267# define LT_DLLAZY_OR_NOW 0
10268# endif
10269# endif
10270# endif
10271# endif
10272#endif
10273
drh71eb93e2001-09-28 01:34:43 +000010274void fnord() { int i=42;}
10275int main ()
10276{
10277 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10278 int status = $lt_dlunknown;
10279
10280 if (self)
10281 {
10282 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10283 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10284 /* dlclose (self); */
10285 }
vapier7f19c022007-02-17 14:46:31 +000010286 else
10287 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +000010288
vapier6acb2cf2009-01-28 04:46:28 +000010289 return status;
drh71eb93e2001-09-28 01:34:43 +000010290}
mlcreech636a9952008-05-05 22:52:56 +000010291_LT_EOF
drh710658c2012-01-16 13:00:05 +000010292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
drh71eb93e2001-09-28 01:34:43 +000010293 (eval $ac_link) 2>&5
10294 ac_status=$?
drh710658c2012-01-16 13:00:05 +000010295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +000010297 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000010298 lt_status=$?
10299 case x$lt_status in
10300 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10301 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +000010302 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +000010303 esac
10304 else :
10305 # compilation failed
10306 lt_cv_dlopen_self_static=no
10307 fi
10308fi
10309rm -fr conftest*
10310
a.rottmann84e63352003-03-24 09:42:16 +000010311
drh71eb93e2001-09-28 01:34:43 +000010312fi
drh710658c2012-01-16 13:00:05 +000010313{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
drh8b727472009-01-19 18:18:40 +000010314$as_echo "$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010315 fi
10316
10317 CPPFLAGS="$save_CPPFLAGS"
10318 LDFLAGS="$save_LDFLAGS"
10319 LIBS="$save_LIBS"
10320 ;;
10321 esac
10322
10323 case $lt_cv_dlopen_self in
10324 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10325 *) enable_dlopen_self=unknown ;;
10326 esac
10327
10328 case $lt_cv_dlopen_self_static in
10329 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10330 *) enable_dlopen_self_static=unknown ;;
10331 esac
10332fi
10333
drh71eb93e2001-09-28 01:34:43 +000010334
drh71eb93e2001-09-28 01:34:43 +000010335
a.rottmann9bc8b932004-02-29 15:18:31 +000010336
a.rottmann9bc8b932004-02-29 15:18:31 +000010337
mlcreech636a9952008-05-05 22:52:56 +000010338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350striplib=
10351old_striplib=
drh710658c2012-01-16 13:00:05 +000010352{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
drh8b727472009-01-19 18:18:40 +000010353$as_echo_n "checking whether stripping libraries is possible... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010354if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10355 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10356 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
drh710658c2012-01-16 13:00:05 +000010357 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010358$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010359else
10360# FIXME - insert some real tests, host_os isn't really good enough
10361 case $host_os in
10362 darwin*)
10363 if test -n "$STRIP" ; then
10364 striplib="$STRIP -x"
10365 old_striplib="$STRIP -S"
drh710658c2012-01-16 13:00:05 +000010366 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010367$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010368 else
drh710658c2012-01-16 13:00:05 +000010369 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010370$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010371 fi
a.rottmann84e63352003-03-24 09:42:16 +000010372 ;;
mlcreech636a9952008-05-05 22:52:56 +000010373 *)
drh710658c2012-01-16 13:00:05 +000010374 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010375$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010376 ;;
10377 esac
mlcreech636a9952008-05-05 22:52:56 +000010378fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010379
a.rottmann9bc8b932004-02-29 15:18:31 +000010380
drh71eb93e2001-09-28 01:34:43 +000010381
drh71eb93e2001-09-28 01:34:43 +000010382
a.rottmann84e63352003-03-24 09:42:16 +000010383
drh71eb93e2001-09-28 01:34:43 +000010384
drh71eb93e2001-09-28 01:34:43 +000010385
a.rottmann9bc8b932004-02-29 15:18:31 +000010386
drh71eb93e2001-09-28 01:34:43 +000010387
drh71eb93e2001-09-28 01:34:43 +000010388
drh71eb93e2001-09-28 01:34:43 +000010389
drh71eb93e2001-09-28 01:34:43 +000010390
mlcreech636a9952008-05-05 22:52:56 +000010391 # Report which library types will actually be built
drh710658c2012-01-16 13:00:05 +000010392 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +000010393$as_echo_n "checking if libtool supports shared libraries... " >&6; }
drh710658c2012-01-16 13:00:05 +000010394 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
drh8b727472009-01-19 18:18:40 +000010395$as_echo "$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010396
drh710658c2012-01-16 13:00:05 +000010397 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
drh8b727472009-01-19 18:18:40 +000010398$as_echo_n "checking whether to build shared libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010399 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +000010400
mlcreech636a9952008-05-05 22:52:56 +000010401 # On AIX, shared libraries and static libraries use the same namespace, and
10402 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +000010403 case $host_os in
10404 aix3*)
vapier7f19c022007-02-17 14:46:31 +000010405 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +000010406 if test -n "$RANLIB"; then
10407 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10408 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +000010409 fi
10410 ;;
10411
mlcreech636a9952008-05-05 22:52:56 +000010412 aix[4-9]*)
10413 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10414 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +000010415 fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010416 ;;
10417 esac
drh710658c2012-01-16 13:00:05 +000010418 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
drh8b727472009-01-19 18:18:40 +000010419$as_echo "$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +000010420
drh710658c2012-01-16 13:00:05 +000010421 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
drh8b727472009-01-19 18:18:40 +000010422$as_echo_n "checking whether to build static libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010423 # Make sure either enable_shared or enable_static is yes.
10424 test "$enable_shared" = yes || enable_static=yes
drh710658c2012-01-16 13:00:05 +000010425 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
drh8b727472009-01-19 18:18:40 +000010426$as_echo "$enable_static" >&6; }
vapier7f19c022007-02-17 14:46:31 +000010427
a.rottmann9bc8b932004-02-29 15:18:31 +000010428
a.rottmann9bc8b932004-02-29 15:18:31 +000010429
a.rottmann9bc8b932004-02-29 15:18:31 +000010430
vapier7f19c022007-02-17 14:46:31 +000010431fi
a.rottmann9bc8b932004-02-29 15:18:31 +000010432ac_ext=c
10433ac_cpp='$CPP $CPPFLAGS'
10434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10436ac_compiler_gnu=$ac_cv_c_compiler_gnu
10437
10438CC="$lt_save_CC"
10439
a.rottmann9bc8b932004-02-29 15:18:31 +000010440
a.rottmann9bc8b932004-02-29 15:18:31 +000010441
10442
a.rottmann9bc8b932004-02-29 15:18:31 +000010443
a.rottmann9bc8b932004-02-29 15:18:31 +000010444
a.rottmann9bc8b932004-02-29 15:18:31 +000010445
a.rottmann9bc8b932004-02-29 15:18:31 +000010446
a.rottmann9bc8b932004-02-29 15:18:31 +000010447
a.rottmann9bc8b932004-02-29 15:18:31 +000010448
vapier7f19c022007-02-17 14:46:31 +000010449
a.rottmann9bc8b932004-02-29 15:18:31 +000010450
10451
drh8b727472009-01-19 18:18:40 +000010452 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +000010453
vapier7f19c022007-02-17 14:46:31 +000010454
10455
vapier7f19c022007-02-17 14:46:31 +000010456
mlcreech636a9952008-05-05 22:52:56 +000010457# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +000010458
10459
drh71eb93e2001-09-28 01:34:43 +000010460# Find a good install program. We prefer a C program (faster),
10461# so one script is as good as another. But avoid the broken or
10462# incompatible versions:
10463# SysV /etc/install, /usr/sbin/install
10464# SunOS /usr/etc/install
10465# IRIX /sbin/install
10466# AIX /bin/install
10467# AmigaOS /C/install, which installs bootblocks on floppy discs
10468# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
10469# AFS /usr/afsws/bin/install, which mishandles nonexistent args
10470# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +000010471# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +000010472# ./install, which can be erroneously created by make from ./install.sh.
drh8b727472009-01-19 18:18:40 +000010473# Reject install programs that cannot install multiple files.
drh710658c2012-01-16 13:00:05 +000010474{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
drh8b727472009-01-19 18:18:40 +000010475$as_echo_n "checking for a BSD-compatible install... " >&6; }
drh71eb93e2001-09-28 01:34:43 +000010476if test -z "$INSTALL"; then
drh710658c2012-01-16 13:00:05 +000010477if test "${ac_cv_path_install+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010478 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010479else
a.rottmann84e63352003-03-24 09:42:16 +000010480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10481for as_dir in $PATH
10482do
10483 IFS=$as_save_IFS
10484 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +000010485 # Account for people who put trailing slashes in PATH elements.
10486case $as_dir/ in
10487 ./ | .// | /cC/* | \
a.rottmann84e63352003-03-24 09:42:16 +000010488 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
drh710658c2012-01-16 13:00:05 +000010489 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
a.rottmann84e63352003-03-24 09:42:16 +000010490 /usr/ucb/* ) ;;
10491 *)
10492 # OSF1 and SCO ODT 3.0 have their own names for install.
10493 # Don't use installbsd from OSF since it installs stuff as root
10494 # by default.
10495 for ac_prog in ginstall scoinst install; do
10496 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000010497 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 +000010498 if test $ac_prog = install &&
10499 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10500 # AIX install. It has an incompatible calling convention.
10501 :
10502 elif test $ac_prog = install &&
10503 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
10504 # program-specific install script used by HP pwplus--don't use.
10505 :
10506 else
drh8b727472009-01-19 18:18:40 +000010507 rm -rf conftest.one conftest.two conftest.dir
10508 echo one > conftest.one
10509 echo two > conftest.two
10510 mkdir conftest.dir
10511 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
10512 test -s conftest.one && test -s conftest.two &&
10513 test -s conftest.dir/conftest.one &&
10514 test -s conftest.dir/conftest.two
10515 then
10516 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
10517 break 3
10518 fi
a.rottmann964dbb12004-02-26 19:47:42 +000010519 fi
10520 fi
drh71eb93e2001-09-28 01:34:43 +000010521 done
a.rottmann84e63352003-03-24 09:42:16 +000010522 done
10523 ;;
10524esac
a.rottmann84e63352003-03-24 09:42:16 +000010525
drh710658c2012-01-16 13:00:05 +000010526done
drh8b727472009-01-19 18:18:40 +000010527IFS=$as_save_IFS
10528
10529rm -rf conftest.one conftest.two conftest.dir
drh71eb93e2001-09-28 01:34:43 +000010530
10531fi
10532 if test "${ac_cv_path_install+set}" = set; then
10533 INSTALL=$ac_cv_path_install
10534 else
drh8b727472009-01-19 18:18:40 +000010535 # As a last resort, use the slow shell script. Don't cache a
10536 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +000010537 # break other packages using the cache if that directory is
drh8b727472009-01-19 18:18:40 +000010538 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +000010539 INSTALL=$ac_install_sh
10540 fi
10541fi
drh710658c2012-01-16 13:00:05 +000010542{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
drh8b727472009-01-19 18:18:40 +000010543$as_echo "$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010544
10545# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
10546# It thinks the first close brace ends the variable substitution.
10547test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
10548
10549test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
10550
10551test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
10552
drhf1878b42006-01-23 18:06:52 +000010553for ac_prog in gawk mawk nawk awk
10554do
10555 # Extract the first word of "$ac_prog", so it can be a program name with args.
10556set dummy $ac_prog; ac_word=$2
drh710658c2012-01-16 13:00:05 +000010557{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010558$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +000010559if test "${ac_cv_prog_AWK+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010560 $as_echo_n "(cached) " >&6
drhf1878b42006-01-23 18:06:52 +000010561else
10562 if test -n "$AWK"; then
10563 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10564else
10565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10566for as_dir in $PATH
10567do
10568 IFS=$as_save_IFS
10569 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +000010570 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000010571 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 +000010572 ac_cv_prog_AWK="$ac_prog"
drh710658c2012-01-16 13:00:05 +000010573 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
drhf1878b42006-01-23 18:06:52 +000010574 break 2
10575 fi
10576done
drh710658c2012-01-16 13:00:05 +000010577done
drh8b727472009-01-19 18:18:40 +000010578IFS=$as_save_IFS
drhf1878b42006-01-23 18:06:52 +000010579
10580fi
10581fi
10582AWK=$ac_cv_prog_AWK
10583if test -n "$AWK"; then
drh710658c2012-01-16 13:00:05 +000010584 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
drh8b727472009-01-19 18:18:40 +000010585$as_echo "$AWK" >&6; }
drhf1878b42006-01-23 18:06:52 +000010586else
drh710658c2012-01-16 13:00:05 +000010587 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010588$as_echo "no" >&6; }
drhf1878b42006-01-23 18:06:52 +000010589fi
10590
drh8b727472009-01-19 18:18:40 +000010591
drhf1878b42006-01-23 18:06:52 +000010592 test -n "$AWK" && break
10593done
10594
a.rottmann84e63352003-03-24 09:42:16 +000010595
drh75897232000-05-29 14:26:00 +000010596#########
mlcreech636a9952008-05-05 22:52:56 +000010597# Enable large file support (if special flags are necessary)
10598#
drh8b727472009-01-19 18:18:40 +000010599# Check whether --enable-largefile was given.
drh710658c2012-01-16 13:00:05 +000010600if test "${enable_largefile+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010601 enableval=$enable_largefile;
10602fi
mlcreech636a9952008-05-05 22:52:56 +000010603
10604if test "$enable_largefile" != no; then
10605
drh710658c2012-01-16 13:00:05 +000010606 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010607$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
drh710658c2012-01-16 13:00:05 +000010608if test "${ac_cv_sys_largefile_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010609 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +000010610else
mlcreech636a9952008-05-05 22:52:56 +000010611 ac_cv_sys_largefile_CC=no
10612 if test "$GCC" != yes; then
10613 ac_save_CC=$CC
10614 while :; do
drh8b727472009-01-19 18:18:40 +000010615 # IRIX 6.2 and later do not support large files by default,
10616 # so use the C compiler's -n32 option if that helps.
drh710658c2012-01-16 13:00:05 +000010617 cat >conftest.$ac_ext <<_ACEOF
10618/* confdefs.h. */
10619_ACEOF
10620cat confdefs.h >>conftest.$ac_ext
10621cat >>conftest.$ac_ext <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000010622/* end confdefs.h. */
10623#include <sys/types.h>
10624 /* Check that off_t can represent 2**63 - 1 correctly.
10625 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10626 since some C++ compilers masquerading as C compilers
10627 incorrectly reject 9223372036854775807. */
10628#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10629 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10630 && LARGE_OFF_T % 2147483647 == 1)
10631 ? 1 : -1];
10632int
10633main ()
10634{
10635
10636 ;
10637 return 0;
10638}
10639_ACEOF
drh710658c2012-01-16 13:00:05 +000010640 rm -f conftest.$ac_objext
10641if { (ac_try="$ac_compile"
10642case "(($ac_try" in
10643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10644 *) ac_try_echo=$ac_try;;
10645esac
10646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10647$as_echo "$ac_try_echo") >&5
10648 (eval "$ac_compile") 2>conftest.er1
10649 ac_status=$?
10650 grep -v '^ *+' conftest.er1 >conftest.err
10651 rm -f conftest.er1
10652 cat conftest.err >&5
10653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } && {
10655 test -z "$ac_c_werror_flag" ||
10656 test ! -s conftest.err
10657 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010658 break
drh710658c2012-01-16 13:00:05 +000010659else
10660 $as_echo "$as_me: failed program was:" >&5
10661sed 's/^/| /' conftest.$ac_ext >&5
10662
10663
mlcreech636a9952008-05-05 22:52:56 +000010664fi
drh710658c2012-01-16 13:00:05 +000010665
drh8b727472009-01-19 18:18:40 +000010666rm -f core conftest.err conftest.$ac_objext
10667 CC="$CC -n32"
drh710658c2012-01-16 13:00:05 +000010668 rm -f conftest.$ac_objext
10669if { (ac_try="$ac_compile"
10670case "(($ac_try" in
10671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672 *) ac_try_echo=$ac_try;;
10673esac
10674eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10675$as_echo "$ac_try_echo") >&5
10676 (eval "$ac_compile") 2>conftest.er1
10677 ac_status=$?
10678 grep -v '^ *+' conftest.er1 >conftest.err
10679 rm -f conftest.er1
10680 cat conftest.err >&5
10681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); } && {
10683 test -z "$ac_c_werror_flag" ||
10684 test ! -s conftest.err
10685 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010686 ac_cv_sys_largefile_CC=' -n32'; break
drh710658c2012-01-16 13:00:05 +000010687else
10688 $as_echo "$as_me: failed program was:" >&5
10689sed 's/^/| /' conftest.$ac_ext >&5
10690
10691
mlcreech636a9952008-05-05 22:52:56 +000010692fi
drh710658c2012-01-16 13:00:05 +000010693
drh8b727472009-01-19 18:18:40 +000010694rm -f core conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +000010695 break
10696 done
10697 CC=$ac_save_CC
10698 rm -f conftest.$ac_ext
10699 fi
10700fi
drh710658c2012-01-16 13:00:05 +000010701{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
drh8b727472009-01-19 18:18:40 +000010702$as_echo "$ac_cv_sys_largefile_CC" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010703 if test "$ac_cv_sys_largefile_CC" != no; then
10704 CC=$CC$ac_cv_sys_largefile_CC
10705 fi
10706
drh710658c2012-01-16 13:00:05 +000010707 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010708$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
drh710658c2012-01-16 13:00:05 +000010709if test "${ac_cv_sys_file_offset_bits+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010710 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010711else
10712 while :; do
drh710658c2012-01-16 13:00:05 +000010713 cat >conftest.$ac_ext <<_ACEOF
10714/* confdefs.h. */
10715_ACEOF
10716cat confdefs.h >>conftest.$ac_ext
10717cat >>conftest.$ac_ext <<_ACEOF
mlcreechb87057f2008-03-06 07:19:20 +000010718/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +000010719#include <sys/types.h>
10720 /* Check that off_t can represent 2**63 - 1 correctly.
10721 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10722 since some C++ compilers masquerading as C compilers
10723 incorrectly reject 9223372036854775807. */
10724#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10725 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10726 && LARGE_OFF_T % 2147483647 == 1)
10727 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +000010728int
10729main ()
10730{
mlcreech636a9952008-05-05 22:52:56 +000010731
mlcreechb87057f2008-03-06 07:19:20 +000010732 ;
10733 return 0;
10734}
10735_ACEOF
drh710658c2012-01-16 13:00:05 +000010736rm -f conftest.$ac_objext
10737if { (ac_try="$ac_compile"
10738case "(($ac_try" in
10739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10740 *) ac_try_echo=$ac_try;;
10741esac
10742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10743$as_echo "$ac_try_echo") >&5
10744 (eval "$ac_compile") 2>conftest.er1
10745 ac_status=$?
10746 grep -v '^ *+' conftest.er1 >conftest.err
10747 rm -f conftest.er1
10748 cat conftest.err >&5
10749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); } && {
10751 test -z "$ac_c_werror_flag" ||
10752 test ! -s conftest.err
10753 } && test -s conftest.$ac_objext; then
drh8b727472009-01-19 18:18:40 +000010754 ac_cv_sys_file_offset_bits=no; break
drh710658c2012-01-16 13:00:05 +000010755else
10756 $as_echo "$as_me: failed program was:" >&5
10757sed 's/^/| /' conftest.$ac_ext >&5
10758
10759
mlcreech636a9952008-05-05 22:52:56 +000010760fi
drh710658c2012-01-16 13:00:05 +000010761
drh8b727472009-01-19 18:18:40 +000010762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh710658c2012-01-16 13:00:05 +000010763 cat >conftest.$ac_ext <<_ACEOF
10764/* confdefs.h. */
10765_ACEOF
10766cat confdefs.h >>conftest.$ac_ext
10767cat >>conftest.$ac_ext <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000010768/* end confdefs.h. */
10769#define _FILE_OFFSET_BITS 64
10770#include <sys/types.h>
10771 /* Check that off_t can represent 2**63 - 1 correctly.
10772 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10773 since some C++ compilers masquerading as C compilers
10774 incorrectly reject 9223372036854775807. */
10775#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10776 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10777 && LARGE_OFF_T % 2147483647 == 1)
10778 ? 1 : -1];
10779int
10780main ()
10781{
10782
10783 ;
10784 return 0;
10785}
10786_ACEOF
drh710658c2012-01-16 13:00:05 +000010787rm -f conftest.$ac_objext
10788if { (ac_try="$ac_compile"
10789case "(($ac_try" in
10790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10792esac
10793eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10794$as_echo "$ac_try_echo") >&5
10795 (eval "$ac_compile") 2>conftest.er1
10796 ac_status=$?
10797 grep -v '^ *+' conftest.er1 >conftest.err
10798 rm -f conftest.er1
10799 cat conftest.err >&5
10800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } && {
10802 test -z "$ac_c_werror_flag" ||
10803 test ! -s conftest.err
10804 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010805 ac_cv_sys_file_offset_bits=64; break
drh710658c2012-01-16 13:00:05 +000010806else
10807 $as_echo "$as_me: failed program was:" >&5
10808sed 's/^/| /' conftest.$ac_ext >&5
10809
10810
mlcreech636a9952008-05-05 22:52:56 +000010811fi
drh710658c2012-01-16 13:00:05 +000010812
drh8b727472009-01-19 18:18:40 +000010813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10814 ac_cv_sys_file_offset_bits=unknown
mlcreech636a9952008-05-05 22:52:56 +000010815 break
10816done
10817fi
drh710658c2012-01-16 13:00:05 +000010818{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
drh8b727472009-01-19 18:18:40 +000010819$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10820case $ac_cv_sys_file_offset_bits in #(
10821 no | unknown) ;;
10822 *)
mlcreech636a9952008-05-05 22:52:56 +000010823cat >>confdefs.h <<_ACEOF
10824#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10825_ACEOF
drh8b727472009-01-19 18:18:40 +000010826;;
10827esac
10828rm -rf conftest*
10829 if test $ac_cv_sys_file_offset_bits = unknown; then
drh710658c2012-01-16 13:00:05 +000010830 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010831$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
drh710658c2012-01-16 13:00:05 +000010832if test "${ac_cv_sys_large_files+set}" = set; then
drh8b727472009-01-19 18:18:40 +000010833 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010834else
10835 while :; do
drh710658c2012-01-16 13:00:05 +000010836 cat >conftest.$ac_ext <<_ACEOF
10837/* confdefs.h. */
10838_ACEOF
10839cat confdefs.h >>conftest.$ac_ext
10840cat >>conftest.$ac_ext <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000010841/* end confdefs.h. */
10842#include <sys/types.h>
10843 /* Check that off_t can represent 2**63 - 1 correctly.
10844 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10845 since some C++ compilers masquerading as C compilers
10846 incorrectly reject 9223372036854775807. */
10847#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10848 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10849 && LARGE_OFF_T % 2147483647 == 1)
10850 ? 1 : -1];
10851int
10852main ()
10853{
10854
10855 ;
10856 return 0;
10857}
10858_ACEOF
drh710658c2012-01-16 13:00:05 +000010859rm -f conftest.$ac_objext
10860if { (ac_try="$ac_compile"
10861case "(($ac_try" in
10862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863 *) ac_try_echo=$ac_try;;
10864esac
10865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10866$as_echo "$ac_try_echo") >&5
10867 (eval "$ac_compile") 2>conftest.er1
10868 ac_status=$?
10869 grep -v '^ *+' conftest.er1 >conftest.err
10870 rm -f conftest.er1
10871 cat conftest.err >&5
10872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10873 (exit $ac_status); } && {
10874 test -z "$ac_c_werror_flag" ||
10875 test ! -s conftest.err
10876 } && test -s conftest.$ac_objext; then
drh8b727472009-01-19 18:18:40 +000010877 ac_cv_sys_large_files=no; break
drh710658c2012-01-16 13:00:05 +000010878else
10879 $as_echo "$as_me: failed program was:" >&5
10880sed 's/^/| /' conftest.$ac_ext >&5
10881
10882
mlcreech636a9952008-05-05 22:52:56 +000010883fi
drh710658c2012-01-16 13:00:05 +000010884
drh8b727472009-01-19 18:18:40 +000010885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh710658c2012-01-16 13:00:05 +000010886 cat >conftest.$ac_ext <<_ACEOF
10887/* confdefs.h. */
10888_ACEOF
10889cat confdefs.h >>conftest.$ac_ext
10890cat >>conftest.$ac_ext <<_ACEOF
mlcreech636a9952008-05-05 22:52:56 +000010891/* end confdefs.h. */
10892#define _LARGE_FILES 1
10893#include <sys/types.h>
10894 /* Check that off_t can represent 2**63 - 1 correctly.
10895 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10896 since some C++ compilers masquerading as C compilers
10897 incorrectly reject 9223372036854775807. */
10898#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10899 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10900 && LARGE_OFF_T % 2147483647 == 1)
10901 ? 1 : -1];
10902int
10903main ()
10904{
10905
10906 ;
10907 return 0;
10908}
10909_ACEOF
drh710658c2012-01-16 13:00:05 +000010910rm -f conftest.$ac_objext
10911if { (ac_try="$ac_compile"
10912case "(($ac_try" in
10913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10914 *) ac_try_echo=$ac_try;;
10915esac
10916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10917$as_echo "$ac_try_echo") >&5
10918 (eval "$ac_compile") 2>conftest.er1
10919 ac_status=$?
10920 grep -v '^ *+' conftest.er1 >conftest.err
10921 rm -f conftest.er1
10922 cat conftest.err >&5
10923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } && {
10925 test -z "$ac_c_werror_flag" ||
10926 test ! -s conftest.err
10927 } && test -s conftest.$ac_objext; then
mlcreech636a9952008-05-05 22:52:56 +000010928 ac_cv_sys_large_files=1; break
drh710658c2012-01-16 13:00:05 +000010929else
10930 $as_echo "$as_me: failed program was:" >&5
10931sed 's/^/| /' conftest.$ac_ext >&5
10932
10933
mlcreech636a9952008-05-05 22:52:56 +000010934fi
drh710658c2012-01-16 13:00:05 +000010935
drh8b727472009-01-19 18:18:40 +000010936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10937 ac_cv_sys_large_files=unknown
mlcreech636a9952008-05-05 22:52:56 +000010938 break
10939done
10940fi
drh710658c2012-01-16 13:00:05 +000010941{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
drh8b727472009-01-19 18:18:40 +000010942$as_echo "$ac_cv_sys_large_files" >&6; }
10943case $ac_cv_sys_large_files in #(
10944 no | unknown) ;;
10945 *)
mlcreech636a9952008-05-05 22:52:56 +000010946cat >>confdefs.h <<_ACEOF
10947#define _LARGE_FILES $ac_cv_sys_large_files
10948_ACEOF
drh8b727472009-01-19 18:18:40 +000010949;;
10950esac
10951rm -rf conftest*
10952 fi
mlcreech636a9952008-05-05 22:52:56 +000010953fi
10954
10955
10956#########
10957# Check for needed/wanted data types
drh710658c2012-01-16 13:00:05 +000010958{ $as_echo "$as_me:$LINENO: checking for int8_t" >&5
10959$as_echo_n "checking for int8_t... " >&6; }
10960if test "${ac_cv_type_int8_t+set}" = set; then
10961 $as_echo_n "(cached) " >&6
10962else
10963 ac_cv_type_int8_t=no
10964cat >conftest.$ac_ext <<_ACEOF
10965/* confdefs.h. */
10966_ACEOF
10967cat confdefs.h >>conftest.$ac_ext
10968cat >>conftest.$ac_ext <<_ACEOF
10969/* end confdefs.h. */
10970$ac_includes_default
10971int
10972main ()
10973{
10974if (sizeof (int8_t))
10975 return 0;
10976 ;
10977 return 0;
10978}
10979_ACEOF
10980rm -f conftest.$ac_objext
10981if { (ac_try="$ac_compile"
10982case "(($ac_try" in
10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984 *) ac_try_echo=$ac_try;;
10985esac
10986eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10987$as_echo "$ac_try_echo") >&5
10988 (eval "$ac_compile") 2>conftest.er1
10989 ac_status=$?
10990 grep -v '^ *+' conftest.er1 >conftest.err
10991 rm -f conftest.er1
10992 cat conftest.err >&5
10993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10994 (exit $ac_status); } && {
10995 test -z "$ac_c_werror_flag" ||
10996 test ! -s conftest.err
10997 } && test -s conftest.$ac_objext; then
10998 cat >conftest.$ac_ext <<_ACEOF
10999/* confdefs.h. */
11000_ACEOF
11001cat confdefs.h >>conftest.$ac_ext
11002cat >>conftest.$ac_ext <<_ACEOF
11003/* end confdefs.h. */
11004$ac_includes_default
11005int
11006main ()
11007{
11008if (sizeof ((int8_t)))
11009 return 0;
11010 ;
11011 return 0;
11012}
11013_ACEOF
11014rm -f conftest.$ac_objext
11015if { (ac_try="$ac_compile"
11016case "(($ac_try" in
11017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11018 *) ac_try_echo=$ac_try;;
11019esac
11020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11021$as_echo "$ac_try_echo") >&5
11022 (eval "$ac_compile") 2>conftest.er1
11023 ac_status=$?
11024 grep -v '^ *+' conftest.er1 >conftest.err
11025 rm -f conftest.er1
11026 cat conftest.err >&5
11027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); } && {
11029 test -z "$ac_c_werror_flag" ||
11030 test ! -s conftest.err
11031 } && test -s conftest.$ac_objext; then
11032 :
11033else
11034 $as_echo "$as_me: failed program was:" >&5
11035sed 's/^/| /' conftest.$ac_ext >&5
11036
11037 ac_cv_type_int8_t=yes
11038fi
11039
11040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11041else
11042 $as_echo "$as_me: failed program was:" >&5
11043sed 's/^/| /' conftest.$ac_ext >&5
11044
11045
11046fi
11047
11048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11049fi
11050{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int8_t" >&5
11051$as_echo "$ac_cv_type_int8_t" >&6; }
11052if test $ac_cv_type_int8_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011053
11054cat >>confdefs.h <<_ACEOF
11055#define HAVE_INT8_T 1
11056_ACEOF
11057
11058
11059fi
drh710658c2012-01-16 13:00:05 +000011060{ $as_echo "$as_me:$LINENO: checking for int16_t" >&5
11061$as_echo_n "checking for int16_t... " >&6; }
11062if test "${ac_cv_type_int16_t+set}" = set; then
11063 $as_echo_n "(cached) " >&6
11064else
11065 ac_cv_type_int16_t=no
11066cat >conftest.$ac_ext <<_ACEOF
11067/* confdefs.h. */
11068_ACEOF
11069cat confdefs.h >>conftest.$ac_ext
11070cat >>conftest.$ac_ext <<_ACEOF
11071/* end confdefs.h. */
11072$ac_includes_default
11073int
11074main ()
11075{
11076if (sizeof (int16_t))
11077 return 0;
11078 ;
11079 return 0;
11080}
11081_ACEOF
11082rm -f conftest.$ac_objext
11083if { (ac_try="$ac_compile"
11084case "(($ac_try" in
11085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11086 *) ac_try_echo=$ac_try;;
11087esac
11088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11089$as_echo "$ac_try_echo") >&5
11090 (eval "$ac_compile") 2>conftest.er1
11091 ac_status=$?
11092 grep -v '^ *+' conftest.er1 >conftest.err
11093 rm -f conftest.er1
11094 cat conftest.err >&5
11095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096 (exit $ac_status); } && {
11097 test -z "$ac_c_werror_flag" ||
11098 test ! -s conftest.err
11099 } && test -s conftest.$ac_objext; then
11100 cat >conftest.$ac_ext <<_ACEOF
11101/* confdefs.h. */
11102_ACEOF
11103cat confdefs.h >>conftest.$ac_ext
11104cat >>conftest.$ac_ext <<_ACEOF
11105/* end confdefs.h. */
11106$ac_includes_default
11107int
11108main ()
11109{
11110if (sizeof ((int16_t)))
11111 return 0;
11112 ;
11113 return 0;
11114}
11115_ACEOF
11116rm -f conftest.$ac_objext
11117if { (ac_try="$ac_compile"
11118case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11121esac
11122eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11123$as_echo "$ac_try_echo") >&5
11124 (eval "$ac_compile") 2>conftest.er1
11125 ac_status=$?
11126 grep -v '^ *+' conftest.er1 >conftest.err
11127 rm -f conftest.er1
11128 cat conftest.err >&5
11129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11130 (exit $ac_status); } && {
11131 test -z "$ac_c_werror_flag" ||
11132 test ! -s conftest.err
11133 } && test -s conftest.$ac_objext; then
11134 :
11135else
11136 $as_echo "$as_me: failed program was:" >&5
11137sed 's/^/| /' conftest.$ac_ext >&5
11138
11139 ac_cv_type_int16_t=yes
11140fi
11141
11142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11143else
11144 $as_echo "$as_me: failed program was:" >&5
11145sed 's/^/| /' conftest.$ac_ext >&5
11146
11147
11148fi
11149
11150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11151fi
11152{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
11153$as_echo "$ac_cv_type_int16_t" >&6; }
11154if test $ac_cv_type_int16_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011155
11156cat >>confdefs.h <<_ACEOF
11157#define HAVE_INT16_T 1
11158_ACEOF
11159
11160
11161fi
drh710658c2012-01-16 13:00:05 +000011162{ $as_echo "$as_me:$LINENO: checking for int32_t" >&5
11163$as_echo_n "checking for int32_t... " >&6; }
11164if test "${ac_cv_type_int32_t+set}" = set; then
11165 $as_echo_n "(cached) " >&6
11166else
11167 ac_cv_type_int32_t=no
11168cat >conftest.$ac_ext <<_ACEOF
11169/* confdefs.h. */
11170_ACEOF
11171cat confdefs.h >>conftest.$ac_ext
11172cat >>conftest.$ac_ext <<_ACEOF
11173/* end confdefs.h. */
11174$ac_includes_default
11175int
11176main ()
11177{
11178if (sizeof (int32_t))
11179 return 0;
11180 ;
11181 return 0;
11182}
11183_ACEOF
11184rm -f conftest.$ac_objext
11185if { (ac_try="$ac_compile"
11186case "(($ac_try" in
11187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11188 *) ac_try_echo=$ac_try;;
11189esac
11190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11191$as_echo "$ac_try_echo") >&5
11192 (eval "$ac_compile") 2>conftest.er1
11193 ac_status=$?
11194 grep -v '^ *+' conftest.er1 >conftest.err
11195 rm -f conftest.er1
11196 cat conftest.err >&5
11197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); } && {
11199 test -z "$ac_c_werror_flag" ||
11200 test ! -s conftest.err
11201 } && test -s conftest.$ac_objext; then
11202 cat >conftest.$ac_ext <<_ACEOF
11203/* confdefs.h. */
11204_ACEOF
11205cat confdefs.h >>conftest.$ac_ext
11206cat >>conftest.$ac_ext <<_ACEOF
11207/* end confdefs.h. */
11208$ac_includes_default
11209int
11210main ()
11211{
11212if (sizeof ((int32_t)))
11213 return 0;
11214 ;
11215 return 0;
11216}
11217_ACEOF
11218rm -f conftest.$ac_objext
11219if { (ac_try="$ac_compile"
11220case "(($ac_try" in
11221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222 *) ac_try_echo=$ac_try;;
11223esac
11224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11225$as_echo "$ac_try_echo") >&5
11226 (eval "$ac_compile") 2>conftest.er1
11227 ac_status=$?
11228 grep -v '^ *+' conftest.er1 >conftest.err
11229 rm -f conftest.er1
11230 cat conftest.err >&5
11231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232 (exit $ac_status); } && {
11233 test -z "$ac_c_werror_flag" ||
11234 test ! -s conftest.err
11235 } && test -s conftest.$ac_objext; then
11236 :
11237else
11238 $as_echo "$as_me: failed program was:" >&5
11239sed 's/^/| /' conftest.$ac_ext >&5
11240
11241 ac_cv_type_int32_t=yes
11242fi
11243
11244rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11245else
11246 $as_echo "$as_me: failed program was:" >&5
11247sed 's/^/| /' conftest.$ac_ext >&5
11248
11249
11250fi
11251
11252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11253fi
11254{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
11255$as_echo "$ac_cv_type_int32_t" >&6; }
11256if test $ac_cv_type_int32_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011257
11258cat >>confdefs.h <<_ACEOF
11259#define HAVE_INT32_T 1
11260_ACEOF
11261
11262
11263fi
drh710658c2012-01-16 13:00:05 +000011264{ $as_echo "$as_me:$LINENO: checking for int64_t" >&5
11265$as_echo_n "checking for int64_t... " >&6; }
11266if test "${ac_cv_type_int64_t+set}" = set; then
11267 $as_echo_n "(cached) " >&6
11268else
11269 ac_cv_type_int64_t=no
11270cat >conftest.$ac_ext <<_ACEOF
11271/* confdefs.h. */
11272_ACEOF
11273cat confdefs.h >>conftest.$ac_ext
11274cat >>conftest.$ac_ext <<_ACEOF
11275/* end confdefs.h. */
11276$ac_includes_default
11277int
11278main ()
11279{
11280if (sizeof (int64_t))
11281 return 0;
11282 ;
11283 return 0;
11284}
11285_ACEOF
11286rm -f conftest.$ac_objext
11287if { (ac_try="$ac_compile"
11288case "(($ac_try" in
11289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11290 *) ac_try_echo=$ac_try;;
11291esac
11292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11293$as_echo "$ac_try_echo") >&5
11294 (eval "$ac_compile") 2>conftest.er1
11295 ac_status=$?
11296 grep -v '^ *+' conftest.er1 >conftest.err
11297 rm -f conftest.er1
11298 cat conftest.err >&5
11299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11300 (exit $ac_status); } && {
11301 test -z "$ac_c_werror_flag" ||
11302 test ! -s conftest.err
11303 } && test -s conftest.$ac_objext; then
11304 cat >conftest.$ac_ext <<_ACEOF
11305/* confdefs.h. */
11306_ACEOF
11307cat confdefs.h >>conftest.$ac_ext
11308cat >>conftest.$ac_ext <<_ACEOF
11309/* end confdefs.h. */
11310$ac_includes_default
11311int
11312main ()
11313{
11314if (sizeof ((int64_t)))
11315 return 0;
11316 ;
11317 return 0;
11318}
11319_ACEOF
11320rm -f conftest.$ac_objext
11321if { (ac_try="$ac_compile"
11322case "(($ac_try" in
11323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11324 *) ac_try_echo=$ac_try;;
11325esac
11326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11327$as_echo "$ac_try_echo") >&5
11328 (eval "$ac_compile") 2>conftest.er1
11329 ac_status=$?
11330 grep -v '^ *+' conftest.er1 >conftest.err
11331 rm -f conftest.er1
11332 cat conftest.err >&5
11333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } && {
11335 test -z "$ac_c_werror_flag" ||
11336 test ! -s conftest.err
11337 } && test -s conftest.$ac_objext; then
11338 :
11339else
11340 $as_echo "$as_me: failed program was:" >&5
11341sed 's/^/| /' conftest.$ac_ext >&5
11342
11343 ac_cv_type_int64_t=yes
11344fi
11345
11346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11347else
11348 $as_echo "$as_me: failed program was:" >&5
11349sed 's/^/| /' conftest.$ac_ext >&5
11350
11351
11352fi
11353
11354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11355fi
11356{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
11357$as_echo "$ac_cv_type_int64_t" >&6; }
11358if test $ac_cv_type_int64_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011359
11360cat >>confdefs.h <<_ACEOF
11361#define HAVE_INT64_T 1
11362_ACEOF
11363
11364
11365fi
drh710658c2012-01-16 13:00:05 +000011366{ $as_echo "$as_me:$LINENO: checking for intptr_t" >&5
11367$as_echo_n "checking for intptr_t... " >&6; }
11368if test "${ac_cv_type_intptr_t+set}" = set; then
11369 $as_echo_n "(cached) " >&6
11370else
11371 ac_cv_type_intptr_t=no
11372cat >conftest.$ac_ext <<_ACEOF
11373/* confdefs.h. */
11374_ACEOF
11375cat confdefs.h >>conftest.$ac_ext
11376cat >>conftest.$ac_ext <<_ACEOF
11377/* end confdefs.h. */
11378$ac_includes_default
11379int
11380main ()
11381{
11382if (sizeof (intptr_t))
11383 return 0;
11384 ;
11385 return 0;
11386}
11387_ACEOF
11388rm -f conftest.$ac_objext
11389if { (ac_try="$ac_compile"
11390case "(($ac_try" in
11391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392 *) ac_try_echo=$ac_try;;
11393esac
11394eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11395$as_echo "$ac_try_echo") >&5
11396 (eval "$ac_compile") 2>conftest.er1
11397 ac_status=$?
11398 grep -v '^ *+' conftest.er1 >conftest.err
11399 rm -f conftest.er1
11400 cat conftest.err >&5
11401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); } && {
11403 test -z "$ac_c_werror_flag" ||
11404 test ! -s conftest.err
11405 } && test -s conftest.$ac_objext; then
11406 cat >conftest.$ac_ext <<_ACEOF
11407/* confdefs.h. */
11408_ACEOF
11409cat confdefs.h >>conftest.$ac_ext
11410cat >>conftest.$ac_ext <<_ACEOF
11411/* end confdefs.h. */
11412$ac_includes_default
11413int
11414main ()
11415{
11416if (sizeof ((intptr_t)))
11417 return 0;
11418 ;
11419 return 0;
11420}
11421_ACEOF
11422rm -f conftest.$ac_objext
11423if { (ac_try="$ac_compile"
11424case "(($ac_try" in
11425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11426 *) ac_try_echo=$ac_try;;
11427esac
11428eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11429$as_echo "$ac_try_echo") >&5
11430 (eval "$ac_compile") 2>conftest.er1
11431 ac_status=$?
11432 grep -v '^ *+' conftest.er1 >conftest.err
11433 rm -f conftest.er1
11434 cat conftest.err >&5
11435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } && {
11437 test -z "$ac_c_werror_flag" ||
11438 test ! -s conftest.err
11439 } && test -s conftest.$ac_objext; then
11440 :
11441else
11442 $as_echo "$as_me: failed program was:" >&5
11443sed 's/^/| /' conftest.$ac_ext >&5
11444
11445 ac_cv_type_intptr_t=yes
11446fi
11447
11448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11449else
11450 $as_echo "$as_me: failed program was:" >&5
11451sed 's/^/| /' conftest.$ac_ext >&5
11452
11453
11454fi
11455
11456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11457fi
11458{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
11459$as_echo "$ac_cv_type_intptr_t" >&6; }
11460if test $ac_cv_type_intptr_t = yes; then
danielk197733a14782008-08-04 14:50:05 +000011461
11462cat >>confdefs.h <<_ACEOF
11463#define HAVE_INTPTR_T 1
11464_ACEOF
11465
11466
11467fi
drh710658c2012-01-16 13:00:05 +000011468{ $as_echo "$as_me:$LINENO: checking for uint8_t" >&5
11469$as_echo_n "checking for uint8_t... " >&6; }
11470if test "${ac_cv_type_uint8_t+set}" = set; then
11471 $as_echo_n "(cached) " >&6
11472else
11473 ac_cv_type_uint8_t=no
11474cat >conftest.$ac_ext <<_ACEOF
11475/* confdefs.h. */
11476_ACEOF
11477cat confdefs.h >>conftest.$ac_ext
11478cat >>conftest.$ac_ext <<_ACEOF
11479/* end confdefs.h. */
11480$ac_includes_default
11481int
11482main ()
11483{
11484if (sizeof (uint8_t))
11485 return 0;
11486 ;
11487 return 0;
11488}
11489_ACEOF
11490rm -f conftest.$ac_objext
11491if { (ac_try="$ac_compile"
11492case "(($ac_try" in
11493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494 *) ac_try_echo=$ac_try;;
11495esac
11496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11497$as_echo "$ac_try_echo") >&5
11498 (eval "$ac_compile") 2>conftest.er1
11499 ac_status=$?
11500 grep -v '^ *+' conftest.er1 >conftest.err
11501 rm -f conftest.er1
11502 cat conftest.err >&5
11503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); } && {
11505 test -z "$ac_c_werror_flag" ||
11506 test ! -s conftest.err
11507 } && test -s conftest.$ac_objext; then
11508 cat >conftest.$ac_ext <<_ACEOF
11509/* confdefs.h. */
11510_ACEOF
11511cat confdefs.h >>conftest.$ac_ext
11512cat >>conftest.$ac_ext <<_ACEOF
11513/* end confdefs.h. */
11514$ac_includes_default
11515int
11516main ()
11517{
11518if (sizeof ((uint8_t)))
11519 return 0;
11520 ;
11521 return 0;
11522}
11523_ACEOF
11524rm -f conftest.$ac_objext
11525if { (ac_try="$ac_compile"
11526case "(($ac_try" in
11527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11528 *) ac_try_echo=$ac_try;;
11529esac
11530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11531$as_echo "$ac_try_echo") >&5
11532 (eval "$ac_compile") 2>conftest.er1
11533 ac_status=$?
11534 grep -v '^ *+' conftest.er1 >conftest.err
11535 rm -f conftest.er1
11536 cat conftest.err >&5
11537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } && {
11539 test -z "$ac_c_werror_flag" ||
11540 test ! -s conftest.err
11541 } && test -s conftest.$ac_objext; then
11542 :
11543else
11544 $as_echo "$as_me: failed program was:" >&5
11545sed 's/^/| /' conftest.$ac_ext >&5
11546
11547 ac_cv_type_uint8_t=yes
11548fi
11549
11550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11551else
11552 $as_echo "$as_me: failed program was:" >&5
11553sed 's/^/| /' conftest.$ac_ext >&5
11554
11555
11556fi
11557
11558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11559fi
11560{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
11561$as_echo "$ac_cv_type_uint8_t" >&6; }
11562if test $ac_cv_type_uint8_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011563
11564cat >>confdefs.h <<_ACEOF
11565#define HAVE_UINT8_T 1
11566_ACEOF
11567
11568
11569fi
drh710658c2012-01-16 13:00:05 +000011570{ $as_echo "$as_me:$LINENO: checking for uint16_t" >&5
11571$as_echo_n "checking for uint16_t... " >&6; }
11572if test "${ac_cv_type_uint16_t+set}" = set; then
11573 $as_echo_n "(cached) " >&6
11574else
11575 ac_cv_type_uint16_t=no
11576cat >conftest.$ac_ext <<_ACEOF
11577/* confdefs.h. */
11578_ACEOF
11579cat confdefs.h >>conftest.$ac_ext
11580cat >>conftest.$ac_ext <<_ACEOF
11581/* end confdefs.h. */
11582$ac_includes_default
11583int
11584main ()
11585{
11586if (sizeof (uint16_t))
11587 return 0;
11588 ;
11589 return 0;
11590}
11591_ACEOF
11592rm -f conftest.$ac_objext
11593if { (ac_try="$ac_compile"
11594case "(($ac_try" in
11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596 *) ac_try_echo=$ac_try;;
11597esac
11598eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11599$as_echo "$ac_try_echo") >&5
11600 (eval "$ac_compile") 2>conftest.er1
11601 ac_status=$?
11602 grep -v '^ *+' conftest.er1 >conftest.err
11603 rm -f conftest.er1
11604 cat conftest.err >&5
11605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606 (exit $ac_status); } && {
11607 test -z "$ac_c_werror_flag" ||
11608 test ! -s conftest.err
11609 } && test -s conftest.$ac_objext; then
11610 cat >conftest.$ac_ext <<_ACEOF
11611/* confdefs.h. */
11612_ACEOF
11613cat confdefs.h >>conftest.$ac_ext
11614cat >>conftest.$ac_ext <<_ACEOF
11615/* end confdefs.h. */
11616$ac_includes_default
11617int
11618main ()
11619{
11620if (sizeof ((uint16_t)))
11621 return 0;
11622 ;
11623 return 0;
11624}
11625_ACEOF
11626rm -f conftest.$ac_objext
11627if { (ac_try="$ac_compile"
11628case "(($ac_try" in
11629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11630 *) ac_try_echo=$ac_try;;
11631esac
11632eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11633$as_echo "$ac_try_echo") >&5
11634 (eval "$ac_compile") 2>conftest.er1
11635 ac_status=$?
11636 grep -v '^ *+' conftest.er1 >conftest.err
11637 rm -f conftest.er1
11638 cat conftest.err >&5
11639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); } && {
11641 test -z "$ac_c_werror_flag" ||
11642 test ! -s conftest.err
11643 } && test -s conftest.$ac_objext; then
11644 :
11645else
11646 $as_echo "$as_me: failed program was:" >&5
11647sed 's/^/| /' conftest.$ac_ext >&5
11648
11649 ac_cv_type_uint16_t=yes
11650fi
11651
11652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11653else
11654 $as_echo "$as_me: failed program was:" >&5
11655sed 's/^/| /' conftest.$ac_ext >&5
11656
11657
11658fi
11659
11660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11661fi
11662{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
11663$as_echo "$ac_cv_type_uint16_t" >&6; }
11664if test $ac_cv_type_uint16_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011665
11666cat >>confdefs.h <<_ACEOF
11667#define HAVE_UINT16_T 1
11668_ACEOF
11669
11670
11671fi
drh710658c2012-01-16 13:00:05 +000011672{ $as_echo "$as_me:$LINENO: checking for uint32_t" >&5
11673$as_echo_n "checking for uint32_t... " >&6; }
11674if test "${ac_cv_type_uint32_t+set}" = set; then
11675 $as_echo_n "(cached) " >&6
11676else
11677 ac_cv_type_uint32_t=no
11678cat >conftest.$ac_ext <<_ACEOF
11679/* confdefs.h. */
11680_ACEOF
11681cat confdefs.h >>conftest.$ac_ext
11682cat >>conftest.$ac_ext <<_ACEOF
11683/* end confdefs.h. */
11684$ac_includes_default
11685int
11686main ()
11687{
11688if (sizeof (uint32_t))
11689 return 0;
11690 ;
11691 return 0;
11692}
11693_ACEOF
11694rm -f conftest.$ac_objext
11695if { (ac_try="$ac_compile"
11696case "(($ac_try" in
11697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11698 *) ac_try_echo=$ac_try;;
11699esac
11700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11701$as_echo "$ac_try_echo") >&5
11702 (eval "$ac_compile") 2>conftest.er1
11703 ac_status=$?
11704 grep -v '^ *+' conftest.er1 >conftest.err
11705 rm -f conftest.er1
11706 cat conftest.err >&5
11707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); } && {
11709 test -z "$ac_c_werror_flag" ||
11710 test ! -s conftest.err
11711 } && test -s conftest.$ac_objext; then
11712 cat >conftest.$ac_ext <<_ACEOF
11713/* confdefs.h. */
11714_ACEOF
11715cat confdefs.h >>conftest.$ac_ext
11716cat >>conftest.$ac_ext <<_ACEOF
11717/* end confdefs.h. */
11718$ac_includes_default
11719int
11720main ()
11721{
11722if (sizeof ((uint32_t)))
11723 return 0;
11724 ;
11725 return 0;
11726}
11727_ACEOF
11728rm -f conftest.$ac_objext
11729if { (ac_try="$ac_compile"
11730case "(($ac_try" in
11731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11732 *) ac_try_echo=$ac_try;;
11733esac
11734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11735$as_echo "$ac_try_echo") >&5
11736 (eval "$ac_compile") 2>conftest.er1
11737 ac_status=$?
11738 grep -v '^ *+' conftest.er1 >conftest.err
11739 rm -f conftest.er1
11740 cat conftest.err >&5
11741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); } && {
11743 test -z "$ac_c_werror_flag" ||
11744 test ! -s conftest.err
11745 } && test -s conftest.$ac_objext; then
11746 :
11747else
11748 $as_echo "$as_me: failed program was:" >&5
11749sed 's/^/| /' conftest.$ac_ext >&5
11750
11751 ac_cv_type_uint32_t=yes
11752fi
11753
11754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11755else
11756 $as_echo "$as_me: failed program was:" >&5
11757sed 's/^/| /' conftest.$ac_ext >&5
11758
11759
11760fi
11761
11762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11763fi
11764{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
11765$as_echo "$ac_cv_type_uint32_t" >&6; }
11766if test $ac_cv_type_uint32_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011767
11768cat >>confdefs.h <<_ACEOF
11769#define HAVE_UINT32_T 1
11770_ACEOF
11771
11772
11773fi
drh710658c2012-01-16 13:00:05 +000011774{ $as_echo "$as_me:$LINENO: checking for uint64_t" >&5
11775$as_echo_n "checking for uint64_t... " >&6; }
11776if test "${ac_cv_type_uint64_t+set}" = set; then
11777 $as_echo_n "(cached) " >&6
11778else
11779 ac_cv_type_uint64_t=no
11780cat >conftest.$ac_ext <<_ACEOF
11781/* confdefs.h. */
11782_ACEOF
11783cat confdefs.h >>conftest.$ac_ext
11784cat >>conftest.$ac_ext <<_ACEOF
11785/* end confdefs.h. */
11786$ac_includes_default
11787int
11788main ()
11789{
11790if (sizeof (uint64_t))
11791 return 0;
11792 ;
11793 return 0;
11794}
11795_ACEOF
11796rm -f conftest.$ac_objext
11797if { (ac_try="$ac_compile"
11798case "(($ac_try" in
11799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11800 *) ac_try_echo=$ac_try;;
11801esac
11802eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11803$as_echo "$ac_try_echo") >&5
11804 (eval "$ac_compile") 2>conftest.er1
11805 ac_status=$?
11806 grep -v '^ *+' conftest.er1 >conftest.err
11807 rm -f conftest.er1
11808 cat conftest.err >&5
11809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } && {
11811 test -z "$ac_c_werror_flag" ||
11812 test ! -s conftest.err
11813 } && test -s conftest.$ac_objext; then
11814 cat >conftest.$ac_ext <<_ACEOF
11815/* confdefs.h. */
11816_ACEOF
11817cat confdefs.h >>conftest.$ac_ext
11818cat >>conftest.$ac_ext <<_ACEOF
11819/* end confdefs.h. */
11820$ac_includes_default
11821int
11822main ()
11823{
11824if (sizeof ((uint64_t)))
11825 return 0;
11826 ;
11827 return 0;
11828}
11829_ACEOF
11830rm -f conftest.$ac_objext
11831if { (ac_try="$ac_compile"
11832case "(($ac_try" in
11833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11834 *) ac_try_echo=$ac_try;;
11835esac
11836eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11837$as_echo "$ac_try_echo") >&5
11838 (eval "$ac_compile") 2>conftest.er1
11839 ac_status=$?
11840 grep -v '^ *+' conftest.er1 >conftest.err
11841 rm -f conftest.er1
11842 cat conftest.err >&5
11843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); } && {
11845 test -z "$ac_c_werror_flag" ||
11846 test ! -s conftest.err
11847 } && test -s conftest.$ac_objext; then
11848 :
11849else
11850 $as_echo "$as_me: failed program was:" >&5
11851sed 's/^/| /' conftest.$ac_ext >&5
11852
11853 ac_cv_type_uint64_t=yes
11854fi
11855
11856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11857else
11858 $as_echo "$as_me: failed program was:" >&5
11859sed 's/^/| /' conftest.$ac_ext >&5
11860
11861
11862fi
11863
11864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11865fi
11866{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
11867$as_echo "$ac_cv_type_uint64_t" >&6; }
11868if test $ac_cv_type_uint64_t = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000011869
11870cat >>confdefs.h <<_ACEOF
11871#define HAVE_UINT64_T 1
11872_ACEOF
11873
11874
11875fi
drh710658c2012-01-16 13:00:05 +000011876{ $as_echo "$as_me:$LINENO: checking for uintptr_t" >&5
11877$as_echo_n "checking for uintptr_t... " >&6; }
11878if test "${ac_cv_type_uintptr_t+set}" = set; then
11879 $as_echo_n "(cached) " >&6
11880else
11881 ac_cv_type_uintptr_t=no
11882cat >conftest.$ac_ext <<_ACEOF
11883/* confdefs.h. */
11884_ACEOF
11885cat confdefs.h >>conftest.$ac_ext
11886cat >>conftest.$ac_ext <<_ACEOF
11887/* end confdefs.h. */
11888$ac_includes_default
11889int
11890main ()
11891{
11892if (sizeof (uintptr_t))
11893 return 0;
11894 ;
11895 return 0;
11896}
11897_ACEOF
11898rm -f conftest.$ac_objext
11899if { (ac_try="$ac_compile"
11900case "(($ac_try" in
11901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11902 *) ac_try_echo=$ac_try;;
11903esac
11904eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11905$as_echo "$ac_try_echo") >&5
11906 (eval "$ac_compile") 2>conftest.er1
11907 ac_status=$?
11908 grep -v '^ *+' conftest.er1 >conftest.err
11909 rm -f conftest.er1
11910 cat conftest.err >&5
11911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } && {
11913 test -z "$ac_c_werror_flag" ||
11914 test ! -s conftest.err
11915 } && test -s conftest.$ac_objext; then
11916 cat >conftest.$ac_ext <<_ACEOF
11917/* confdefs.h. */
11918_ACEOF
11919cat confdefs.h >>conftest.$ac_ext
11920cat >>conftest.$ac_ext <<_ACEOF
11921/* end confdefs.h. */
11922$ac_includes_default
11923int
11924main ()
11925{
11926if (sizeof ((uintptr_t)))
11927 return 0;
11928 ;
11929 return 0;
11930}
11931_ACEOF
11932rm -f conftest.$ac_objext
11933if { (ac_try="$ac_compile"
11934case "(($ac_try" in
11935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11936 *) ac_try_echo=$ac_try;;
11937esac
11938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11939$as_echo "$ac_try_echo") >&5
11940 (eval "$ac_compile") 2>conftest.er1
11941 ac_status=$?
11942 grep -v '^ *+' conftest.er1 >conftest.err
11943 rm -f conftest.er1
11944 cat conftest.err >&5
11945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } && {
11947 test -z "$ac_c_werror_flag" ||
11948 test ! -s conftest.err
11949 } && test -s conftest.$ac_objext; then
11950 :
11951else
11952 $as_echo "$as_me: failed program was:" >&5
11953sed 's/^/| /' conftest.$ac_ext >&5
11954
11955 ac_cv_type_uintptr_t=yes
11956fi
11957
11958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11959else
11960 $as_echo "$as_me: failed program was:" >&5
11961sed 's/^/| /' conftest.$ac_ext >&5
11962
11963
11964fi
11965
11966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11967fi
11968{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5
11969$as_echo "$ac_cv_type_uintptr_t" >&6; }
11970if test $ac_cv_type_uintptr_t = yes; then
danielk197733a14782008-08-04 14:50:05 +000011971
11972cat >>confdefs.h <<_ACEOF
11973#define HAVE_UINTPTR_T 1
11974_ACEOF
11975
11976
11977fi
mlcreechb87057f2008-03-06 07:19:20 +000011978
11979
11980#########
11981# Check for needed/wanted headers
drh710658c2012-01-16 13:00:05 +000011982
11983
11984
11985
drh86c5a932012-02-08 12:13:28 +000011986
11987for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
drh710658c2012-01-16 13:00:05 +000011988do
11989as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11990if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11991 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11992$as_echo_n "checking for $ac_header... " >&6; }
11993if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11994 $as_echo_n "(cached) " >&6
11995fi
11996ac_res=`eval 'as_val=${'$as_ac_Header'}
11997 $as_echo "$as_val"'`
11998 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11999$as_echo "$ac_res" >&6; }
12000else
12001 # Is the header compilable?
12002{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12003$as_echo_n "checking $ac_header usability... " >&6; }
12004cat >conftest.$ac_ext <<_ACEOF
12005/* confdefs.h. */
12006_ACEOF
12007cat confdefs.h >>conftest.$ac_ext
12008cat >>conftest.$ac_ext <<_ACEOF
12009/* end confdefs.h. */
12010$ac_includes_default
12011#include <$ac_header>
12012_ACEOF
12013rm -f conftest.$ac_objext
12014if { (ac_try="$ac_compile"
12015case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12018esac
12019eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12020$as_echo "$ac_try_echo") >&5
12021 (eval "$ac_compile") 2>conftest.er1
12022 ac_status=$?
12023 grep -v '^ *+' conftest.er1 >conftest.err
12024 rm -f conftest.er1
12025 cat conftest.err >&5
12026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } && {
12028 test -z "$ac_c_werror_flag" ||
12029 test ! -s conftest.err
12030 } && test -s conftest.$ac_objext; then
12031 ac_header_compiler=yes
12032else
12033 $as_echo "$as_me: failed program was:" >&5
12034sed 's/^/| /' conftest.$ac_ext >&5
12035
12036 ac_header_compiler=no
12037fi
12038
12039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12040{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12041$as_echo "$ac_header_compiler" >&6; }
12042
12043# Is the header present?
12044{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12045$as_echo_n "checking $ac_header presence... " >&6; }
12046cat >conftest.$ac_ext <<_ACEOF
12047/* confdefs.h. */
12048_ACEOF
12049cat confdefs.h >>conftest.$ac_ext
12050cat >>conftest.$ac_ext <<_ACEOF
12051/* end confdefs.h. */
12052#include <$ac_header>
12053_ACEOF
12054if { (ac_try="$ac_cpp conftest.$ac_ext"
12055case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12058esac
12059eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12060$as_echo "$ac_try_echo") >&5
12061 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12062 ac_status=$?
12063 grep -v '^ *+' conftest.er1 >conftest.err
12064 rm -f conftest.er1
12065 cat conftest.err >&5
12066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } >/dev/null && {
12068 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12069 test ! -s conftest.err
12070 }; then
12071 ac_header_preproc=yes
12072else
12073 $as_echo "$as_me: failed program was:" >&5
12074sed 's/^/| /' conftest.$ac_ext >&5
12075
12076 ac_header_preproc=no
12077fi
12078
12079rm -f conftest.err conftest.$ac_ext
12080{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12081$as_echo "$ac_header_preproc" >&6; }
12082
12083# So? What about this header?
12084case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12085 yes:no: )
12086 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12087$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12088 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12089$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12090 ac_header_preproc=yes
12091 ;;
12092 no:yes:* )
12093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12094$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12095 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12096$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12097 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12098$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12099 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12100$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12101 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12102$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12103 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12104$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12105
12106 ;;
12107esac
12108{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12109$as_echo_n "checking for $ac_header... " >&6; }
12110if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12111 $as_echo_n "(cached) " >&6
12112else
12113 eval "$as_ac_Header=\$ac_header_preproc"
12114fi
12115ac_res=`eval 'as_val=${'$as_ac_Header'}
12116 $as_echo "$as_val"'`
12117 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12118$as_echo "$ac_res" >&6; }
12119
12120fi
12121if test `eval 'as_val=${'$as_ac_Header'}
12122 $as_echo "$as_val"'` = yes; then
mlcreechb87057f2008-03-06 07:19:20 +000012123 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000012124#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000012125_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000012126
mlcreechb87057f2008-03-06 07:19:20 +000012127fi
12128
12129done
12130
12131
12132#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000012133# Figure out whether or not we have these functions
12134#
drh710658c2012-01-16 13:00:05 +000012135
12136
12137
12138
12139
12140
12141
drh05c7e0b2015-01-10 14:27:17 +000012142
drh8567d402015-01-10 18:22:06 +000012143
drh39311122015-01-15 17:38:35 +000012144for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime
drh710658c2012-01-16 13:00:05 +000012145do
12146as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12147{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12148$as_echo_n "checking for $ac_func... " >&6; }
12149if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12150 $as_echo_n "(cached) " >&6
12151else
12152 cat >conftest.$ac_ext <<_ACEOF
12153/* confdefs.h. */
12154_ACEOF
12155cat confdefs.h >>conftest.$ac_ext
12156cat >>conftest.$ac_ext <<_ACEOF
12157/* end confdefs.h. */
12158/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12159 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12160#define $ac_func innocuous_$ac_func
12161
12162/* System header to define __stub macros and hopefully few prototypes,
12163 which can conflict with char $ac_func (); below.
12164 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12165 <limits.h> exists even on freestanding compilers. */
12166
12167#ifdef __STDC__
12168# include <limits.h>
12169#else
12170# include <assert.h>
12171#endif
12172
12173#undef $ac_func
12174
12175/* Override any GCC internal prototype to avoid an error.
12176 Use char because int might match the return type of a GCC
12177 builtin and then its argument prototype would still apply. */
12178#ifdef __cplusplus
12179extern "C"
12180#endif
12181char $ac_func ();
12182/* The GNU C library defines this for functions which it implements
12183 to always fail with ENOSYS. Some functions are actually named
12184 something starting with __ and the normal name is an alias. */
12185#if defined __stub_$ac_func || defined __stub___$ac_func
12186choke me
12187#endif
12188
12189int
12190main ()
12191{
12192return $ac_func ();
12193 ;
12194 return 0;
12195}
12196_ACEOF
12197rm -f conftest.$ac_objext conftest$ac_exeext
12198if { (ac_try="$ac_link"
12199case "(($ac_try" in
12200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12201 *) ac_try_echo=$ac_try;;
12202esac
12203eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12204$as_echo "$ac_try_echo") >&5
12205 (eval "$ac_link") 2>conftest.er1
12206 ac_status=$?
12207 grep -v '^ *+' conftest.er1 >conftest.err
12208 rm -f conftest.er1
12209 cat conftest.err >&5
12210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12211 (exit $ac_status); } && {
12212 test -z "$ac_c_werror_flag" ||
12213 test ! -s conftest.err
12214 } && test -s conftest$ac_exeext && {
12215 test "$cross_compiling" = yes ||
12216 $as_test_x conftest$ac_exeext
12217 }; then
12218 eval "$as_ac_var=yes"
12219else
12220 $as_echo "$as_me: failed program was:" >&5
12221sed 's/^/| /' conftest.$ac_ext >&5
12222
12223 eval "$as_ac_var=no"
12224fi
12225
12226rm -rf conftest.dSYM
12227rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12228 conftest$ac_exeext conftest.$ac_ext
12229fi
12230ac_res=`eval 'as_val=${'$as_ac_var'}
12231 $as_echo "$as_val"'`
12232 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12233$as_echo "$ac_res" >&6; }
12234if test `eval 'as_val=${'$as_ac_var'}
12235 $as_echo "$as_val"'` = yes; then
mlcreech5b0a9eb2008-03-09 01:38:09 +000012236 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000012237#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000012238_ACEOF
12239
12240fi
12241done
12242
12243
mlcreechab1c47b2008-03-09 02:51:10 +000012244#########
mlcreechf3868112008-03-11 18:03:30 +000012245# By default, we use the amalgamation (this may be changed below...)
12246#
12247USE_AMALGAMATION=1
12248
12249#########
mlcreechab1c47b2008-03-09 02:51:10 +000012250# See whether we can run specific tclsh versions known to work well;
12251# if not, then we fall back to plain tclsh.
12252# TODO: try other versions before falling back?
12253#
mistachkinfe27b082013-08-28 18:06:26 +000012254for ac_prog in tclsh8.6 tclsh8.5 tclsh
mlcreechab1c47b2008-03-09 02:51:10 +000012255do
12256 # Extract the first word of "$ac_prog", so it can be a program name with args.
12257set dummy $ac_prog; ac_word=$2
drh710658c2012-01-16 13:00:05 +000012258{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000012259$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +000012260if test "${ac_cv_prog_TCLSH_CMD+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012261 $as_echo_n "(cached) " >&6
mlcreechab1c47b2008-03-09 02:51:10 +000012262else
12263 if test -n "$TCLSH_CMD"; then
12264 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
12265else
12266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12267for as_dir in $PATH
12268do
12269 IFS=$as_save_IFS
12270 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +000012271 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000012272 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 +000012273 ac_cv_prog_TCLSH_CMD="$ac_prog"
drh710658c2012-01-16 13:00:05 +000012274 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000012275 break 2
12276 fi
12277done
drh710658c2012-01-16 13:00:05 +000012278done
drh8b727472009-01-19 18:18:40 +000012279IFS=$as_save_IFS
mlcreechab1c47b2008-03-09 02:51:10 +000012280
12281fi
12282fi
12283TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
12284if test -n "$TCLSH_CMD"; then
drh710658c2012-01-16 13:00:05 +000012285 { $as_echo "$as_me:$LINENO: result: $TCLSH_CMD" >&5
drh8b727472009-01-19 18:18:40 +000012286$as_echo "$TCLSH_CMD" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000012287else
drh710658c2012-01-16 13:00:05 +000012288 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000012289$as_echo "no" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000012290fi
12291
drh8b727472009-01-19 18:18:40 +000012292
mlcreechab1c47b2008-03-09 02:51:10 +000012293 test -n "$TCLSH_CMD" && break
12294done
mlcreechf3868112008-03-11 18:03:30 +000012295test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000012296
mlcreechf3868112008-03-11 18:03:30 +000012297if test "$TCLSH_CMD" = "none"; then
12298 # If we can't find a local tclsh, then building the amalgamation will fail.
12299 # We act as though --disable-amalgamation has been used.
12300 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
12301 USE_AMALGAMATION=0
12302 TCLSH_CMD="tclsh"
12303fi
mlcreechab1c47b2008-03-09 02:51:10 +000012304
12305
mlcreech5b0a9eb2008-03-09 01:38:09 +000012306
vapier6acb2cf2009-01-28 04:46:28 +000012307if test "x${TCLLIBDIR+set}" != "xset" ; then
12308 TCLLIBDIR='$(libdir)'
12309 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
12310 TCLLIBDIR=$i
12311 break
12312 done
12313 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
12314fi
12315
12316
mlcreech5b0a9eb2008-03-09 01:38:09 +000012317#########
drh75897232000-05-29 14:26:00 +000012318# Set up an appropriate program prefix
12319#
12320if test "$program_prefix" = "NONE"; then
12321 program_prefix=""
12322fi
12323
a.rottmann84e63352003-03-24 09:42:16 +000012324
drh4b2266a2004-11-27 15:52:16 +000012325VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
drh710658c2012-01-16 13:00:05 +000012326{ $as_echo "$as_me:$LINENO: Version set to $VERSION" >&5
vapier6acb2cf2009-01-28 04:46:28 +000012327$as_echo "$as_me: Version set to $VERSION" >&6;}
drh4b2266a2004-11-27 15:52:16 +000012328
12329RELEASE=`cat $srcdir/VERSION`
drh710658c2012-01-16 13:00:05 +000012330{ $as_echo "$as_me:$LINENO: Release set to $RELEASE" >&5
vapier6acb2cf2009-01-28 04:46:28 +000012331$as_echo "$as_me: Release set to $RELEASE" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000012332
vapier6acb2cf2009-01-28 04:46:28 +000012333VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000012334 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000012335 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
drh710658c2012-01-16 13:00:05 +000012336{ $as_echo "$as_me:$LINENO: Version number set to $VERSION_NUMBER" >&5
vapier6acb2cf2009-01-28 04:46:28 +000012337$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000012338
drh26d0e2a2005-07-06 13:51:27 +000012339
drh75897232000-05-29 14:26:00 +000012340#########
drh75897232000-05-29 14:26:00 +000012341# Locate a compiler for the build machine. This compiler should
12342# generate command-line programs that run on the build machine.
12343#
vapier7f19c022007-02-17 14:46:31 +000012344if test x"$cross_compiling" = xno; then
12345 BUILD_CC=$CC
12346 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000012347else
vapier7f19c022007-02-17 14:46:31 +000012348 if test "${BUILD_CC+set}" != set; then
12349 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000012350do
12351 # Extract the first word of "$ac_prog", so it can be a program name with args.
12352set dummy $ac_prog; ac_word=$2
drh710658c2012-01-16 13:00:05 +000012353{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000012354$as_echo_n "checking for $ac_word... " >&6; }
drh710658c2012-01-16 13:00:05 +000012355if test "${ac_cv_prog_BUILD_CC+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012356 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000012357else
vapier7f19c022007-02-17 14:46:31 +000012358 if test -n "$BUILD_CC"; then
12359 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000012360else
a.rottmann84e63352003-03-24 09:42:16 +000012361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362for as_dir in $PATH
12363do
12364 IFS=$as_save_IFS
12365 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +000012366 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +000012367 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 +000012368 ac_cv_prog_BUILD_CC="$ac_prog"
drh710658c2012-01-16 13:00:05 +000012369 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000012370 break 2
12371 fi
12372done
drh710658c2012-01-16 13:00:05 +000012373done
drh8b727472009-01-19 18:18:40 +000012374IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000012375
drh71eb93e2001-09-28 01:34:43 +000012376fi
12377fi
vapier7f19c022007-02-17 14:46:31 +000012378BUILD_CC=$ac_cv_prog_BUILD_CC
12379if test -n "$BUILD_CC"; then
drh710658c2012-01-16 13:00:05 +000012380 { $as_echo "$as_me:$LINENO: result: $BUILD_CC" >&5
drh8b727472009-01-19 18:18:40 +000012381$as_echo "$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000012382else
drh710658c2012-01-16 13:00:05 +000012383 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000012384$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000012385fi
drh75897232000-05-29 14:26:00 +000012386
drh8b727472009-01-19 18:18:40 +000012387
vapier7f19c022007-02-17 14:46:31 +000012388 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000012389done
drh75897232000-05-29 14:26:00 +000012390
vapier7f19c022007-02-17 14:46:31 +000012391 fi
12392 if test "${BUILD_CFLAGS+set}" != set; then
12393 BUILD_CFLAGS="-g"
12394 fi
drh71eb93e2001-09-28 01:34:43 +000012395fi
12396
a.rottmann84e63352003-03-24 09:42:16 +000012397
drh297ecf12001-04-05 15:57:13 +000012398##########
dougcurrie0f290bf2004-06-21 18:57:29 +000012399# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000012400#
drh8b727472009-01-19 18:18:40 +000012401# Check whether --enable-threadsafe was given.
drh710658c2012-01-16 13:00:05 +000012402if test "${enable_threadsafe+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012403 enableval=$enable_threadsafe;
drh297ecf12001-04-05 15:57:13 +000012404else
drh5a3032b2007-09-03 16:12:09 +000012405 enable_threadsafe=yes
drh8b727472009-01-19 18:18:40 +000012406fi
12407
drh710658c2012-01-16 13:00:05 +000012408{ $as_echo "$as_me:$LINENO: checking whether to support threadsafe operation" >&5
drh8b727472009-01-19 18:18:40 +000012409$as_echo_n "checking whether to support threadsafe operation... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000012410if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000012411 SQLITE_THREADSAFE=0
drh710658c2012-01-16 13:00:05 +000012412 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000012413$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012414else
drh5a3032b2007-09-03 16:12:09 +000012415 SQLITE_THREADSAFE=1
drh710658c2012-01-16 13:00:05 +000012416 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000012417$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012418fi
12419
a.rottmann964dbb12004-02-26 19:47:42 +000012420
drh5a3032b2007-09-03 16:12:09 +000012421if test "$SQLITE_THREADSAFE" = "1"; then
drh710658c2012-01-16 13:00:05 +000012422 { $as_echo "$as_me:$LINENO: checking for library containing pthread_create" >&5
drh8b727472009-01-19 18:18:40 +000012423$as_echo_n "checking for library containing pthread_create... " >&6; }
drh710658c2012-01-16 13:00:05 +000012424if test "${ac_cv_search_pthread_create+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012425 $as_echo_n "(cached) " >&6
dougcurrie65623c72004-09-20 14:57:23 +000012426else
mlcreechc658b0f2008-03-09 02:20:11 +000012427 ac_func_search_save_LIBS=$LIBS
drh710658c2012-01-16 13:00:05 +000012428cat >conftest.$ac_ext <<_ACEOF
12429/* confdefs.h. */
12430_ACEOF
12431cat confdefs.h >>conftest.$ac_ext
12432cat >>conftest.$ac_ext <<_ACEOF
dougcurrie65623c72004-09-20 14:57:23 +000012433/* end confdefs.h. */
12434
drh8b727472009-01-19 18:18:40 +000012435/* Override any GCC internal prototype to avoid an error.
12436 Use char because int might match the return type of a GCC
12437 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000012438#ifdef __cplusplus
12439extern "C"
12440#endif
dougcurrie65623c72004-09-20 14:57:23 +000012441char pthread_create ();
12442int
12443main ()
12444{
drh8b727472009-01-19 18:18:40 +000012445return pthread_create ();
dougcurrie65623c72004-09-20 14:57:23 +000012446 ;
12447 return 0;
12448}
12449_ACEOF
drh8b727472009-01-19 18:18:40 +000012450for ac_lib in '' pthread; do
12451 if test -z "$ac_lib"; then
12452 ac_res="none required"
12453 else
12454 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000012455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000012456 fi
drh710658c2012-01-16 13:00:05 +000012457 rm -f conftest.$ac_objext conftest$ac_exeext
12458if { (ac_try="$ac_link"
12459case "(($ac_try" in
12460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461 *) ac_try_echo=$ac_try;;
12462esac
12463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12464$as_echo "$ac_try_echo") >&5
12465 (eval "$ac_link") 2>conftest.er1
12466 ac_status=$?
12467 grep -v '^ *+' conftest.er1 >conftest.err
12468 rm -f conftest.er1
12469 cat conftest.err >&5
12470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); } && {
12472 test -z "$ac_c_werror_flag" ||
12473 test ! -s conftest.err
12474 } && test -s conftest$ac_exeext && {
12475 test "$cross_compiling" = yes ||
12476 $as_test_x conftest$ac_exeext
12477 }; then
drh8b727472009-01-19 18:18:40 +000012478 ac_cv_search_pthread_create=$ac_res
drh710658c2012-01-16 13:00:05 +000012479else
12480 $as_echo "$as_me: failed program was:" >&5
12481sed 's/^/| /' conftest.$ac_ext >&5
12482
12483
mlcreechc658b0f2008-03-09 02:20:11 +000012484fi
drh710658c2012-01-16 13:00:05 +000012485
12486rm -rf conftest.dSYM
12487rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12488 conftest$ac_exeext
12489 if test "${ac_cv_search_pthread_create+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012490 break
drh866108f2008-05-13 00:57:21 +000012491fi
drh8b727472009-01-19 18:18:40 +000012492done
drh710658c2012-01-16 13:00:05 +000012493if test "${ac_cv_search_pthread_create+set}" = set; then
12494 :
drh8b727472009-01-19 18:18:40 +000012495else
12496 ac_cv_search_pthread_create=no
12497fi
12498rm conftest.$ac_ext
mlcreechc658b0f2008-03-09 02:20:11 +000012499LIBS=$ac_func_search_save_LIBS
12500fi
drh710658c2012-01-16 13:00:05 +000012501{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_pthread_create" >&5
drh8b727472009-01-19 18:18:40 +000012502$as_echo "$ac_cv_search_pthread_create" >&6; }
12503ac_res=$ac_cv_search_pthread_create
drh710658c2012-01-16 13:00:05 +000012504if test "$ac_res" != no; then
drh8b727472009-01-19 18:18:40 +000012505 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000012506
dougcurrie65623c72004-09-20 14:57:23 +000012507fi
12508
mlcreechc658b0f2008-03-09 02:20:11 +000012509fi
dougcurrie65623c72004-09-20 14:57:23 +000012510
xdong28f79f72003-09-23 00:35:21 +000012511##########
12512# Do we want to support release
12513#
drh8b727472009-01-19 18:18:40 +000012514# Check whether --enable-releasemode was given.
drh710658c2012-01-16 13:00:05 +000012515if test "${enable_releasemode+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012516 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000012517else
12518 enable_releasemode=no
drh8b727472009-01-19 18:18:40 +000012519fi
12520
drh710658c2012-01-16 13:00:05 +000012521{ $as_echo "$as_me:$LINENO: checking whether to support shared library linked as release mode or not" >&5
drh8b727472009-01-19 18:18:40 +000012522$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
xdong28f79f72003-09-23 00:35:21 +000012523if test "$enable_releasemode" = "no"; then
12524 ALLOWRELEASE=""
drh710658c2012-01-16 13:00:05 +000012525 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000012526$as_echo "no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000012527else
drh0b47d342007-11-27 14:50:06 +000012528 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
drh710658c2012-01-16 13:00:05 +000012529 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000012530$as_echo "yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000012531fi
paulb0208cc2003-04-13 18:26:49 +000012532
a.rottmann964dbb12004-02-26 19:47:42 +000012533
paulb0208cc2003-04-13 18:26:49 +000012534##########
12535# Do we want temporary databases in memory
12536#
drh8b727472009-01-19 18:18:40 +000012537# Check whether --enable-tempstore was given.
drh710658c2012-01-16 13:00:05 +000012538if test "${enable_tempstore+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012539 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000012540else
drh54414bb2005-10-10 00:05:50 +000012541 enable_tempstore=no
drh8b727472009-01-19 18:18:40 +000012542fi
12543
drh710658c2012-01-16 13:00:05 +000012544{ $as_echo "$as_me:$LINENO: checking whether to use an in-ram database for temporary tables" >&5
drh8b727472009-01-19 18:18:40 +000012545$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000012546case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000012547 never )
paul2dc96f92003-04-20 11:46:34 +000012548 TEMP_STORE=0
drh710658c2012-01-16 13:00:05 +000012549 { $as_echo "$as_me:$LINENO: result: never" >&5
drh8b727472009-01-19 18:18:40 +000012550$as_echo "never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012551 ;;
12552 no )
paul2dc96f92003-04-20 11:46:34 +000012553 TEMP_STORE=1
drh710658c2012-01-16 13:00:05 +000012554 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000012555$as_echo "no" >&6; }
12556 ;;
12557 yes )
12558 TEMP_STORE=2
drh710658c2012-01-16 13:00:05 +000012559 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000012560$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012561 ;;
12562 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000012563 TEMP_STORE=3
drh710658c2012-01-16 13:00:05 +000012564 { $as_echo "$as_me:$LINENO: result: always" >&5
drh8b727472009-01-19 18:18:40 +000012565$as_echo "always" >&6; }
drh54414bb2005-10-10 00:05:50 +000012566 ;;
paulb0208cc2003-04-13 18:26:49 +000012567 * )
drh54414bb2005-10-10 00:05:50 +000012568 TEMP_STORE=1
drh710658c2012-01-16 13:00:05 +000012569 { $as_echo "$as_me:$LINENO: result: no" >&5
drh8b727472009-01-19 18:18:40 +000012570$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000012571 ;;
12572esac
12573
12574
12575
drh75897232000-05-29 14:26:00 +000012576###########
12577# Lots of things are different if we are compiling for Windows using
12578# the CYGWIN environment. So check for that special case and handle
12579# things accordingly.
12580#
drh710658c2012-01-16 13:00:05 +000012581{ $as_echo "$as_me:$LINENO: checking if executables have the .exe suffix" >&5
drh8b727472009-01-19 18:18:40 +000012582$as_echo_n "checking if executables have the .exe suffix... " >&6; }
drh75897232000-05-29 14:26:00 +000012583if test "$config_BUILD_EXEEXT" = ".exe"; then
12584 CYGWIN=yes
drh710658c2012-01-16 13:00:05 +000012585 { $as_echo "$as_me:$LINENO: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000012586$as_echo "yes" >&6; }
drh75897232000-05-29 14:26:00 +000012587else
drh710658c2012-01-16 13:00:05 +000012588 { $as_echo "$as_me:$LINENO: result: unknown" >&5
drh8b727472009-01-19 18:18:40 +000012589$as_echo "unknown" >&6; }
drh75897232000-05-29 14:26:00 +000012590fi
12591if test "$CYGWIN" != "yes"; then
drh710658c2012-01-16 13:00:05 +000012592 { $as_echo "$as_me:$LINENO: checking host system type" >&5
12593$as_echo_n "checking host system type... " >&6; }
12594if test "${ac_cv_host+set}" = set; then
12595 $as_echo_n "(cached) " >&6
12596else
12597 if test "x$host_alias" = x; then
12598 ac_cv_host=$ac_cv_build
12599else
12600 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
12601 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
12602$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
12603 { (exit 1); exit 1; }; }
12604fi
12605
12606fi
12607{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
12608$as_echo "$ac_cv_host" >&6; }
12609case $ac_cv_host in
12610*-*-*) ;;
12611*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
12612$as_echo "$as_me: error: invalid value of canonical host" >&2;}
12613 { (exit 1); exit 1; }; };;
12614esac
12615host=$ac_cv_host
12616ac_save_IFS=$IFS; IFS='-'
12617set x $ac_cv_host
12618shift
12619host_cpu=$1
12620host_vendor=$2
12621shift; shift
12622# Remember, the first character of IFS is used to create $*,
12623# except with old shells:
12624host_os=$*
12625IFS=$ac_save_IFS
12626case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
12627
a.rottmann84e63352003-03-24 09:42:16 +000012628
12629case $host_os in
drh71eb93e2001-09-28 01:34:43 +000012630 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000012631 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000012632esac
drh75897232000-05-29 14:26:00 +000012633
drh75897232000-05-29 14:26:00 +000012634fi
12635if test "$CYGWIN" = "yes"; then
12636 BUILD_EXEEXT=.exe
12637else
dougcurrie6194a5f2003-12-19 20:09:51 +000012638 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000012639fi
vapier7f19c022007-02-17 14:46:31 +000012640if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000012641 TARGET_EXEEXT=$BUILD_EXEEXT
12642else
12643 TARGET_EXEEXT=$config_TARGET_EXEEXT
12644fi
12645if test "$TARGET_EXEEXT" = ".exe"; then
mistachkinfe27b082013-08-28 18:06:26 +000012646 SQLITE_OS_UNIX=0
12647 SQLITE_OS_WIN=1
12648 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh75897232000-05-29 14:26:00 +000012649else
danielk197729bafea2008-06-26 10:41:19 +000012650 SQLITE_OS_UNIX=1
12651 SQLITE_OS_WIN=0
danielk197729bafea2008-06-26 10:41:19 +000012652 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000012653fi
drh75897232000-05-29 14:26:00 +000012654
a.rottmann84e63352003-03-24 09:42:16 +000012655
12656
12657
12658
12659
drh75897232000-05-29 14:26:00 +000012660##########
drh7b5717e2004-11-25 13:50:01 +000012661# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000012662#
drh7b5717e2004-11-25 13:50:01 +000012663# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
12664# macros in the in the tcl.m4 file of the standard TCL distribution.
12665# Those macros could not be used directly since we have to make some
12666# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000012667#
drh8b727472009-01-19 18:18:40 +000012668# Check whether --enable-tcl was given.
drh710658c2012-01-16 13:00:05 +000012669if test "${enable_tcl+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012670 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000012671else
drh7b5717e2004-11-25 13:50:01 +000012672 use_tcl=yes
drh8b727472009-01-19 18:18:40 +000012673fi
12674
drh7b5717e2004-11-25 13:50:01 +000012675if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000012676
drh8b727472009-01-19 18:18:40 +000012677# Check whether --with-tcl was given.
drh710658c2012-01-16 13:00:05 +000012678if test "${with_tcl+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012679 withval=$with_tcl; with_tclconfig=${withval}
12680fi
12681
drh710658c2012-01-16 13:00:05 +000012682 { $as_echo "$as_me:$LINENO: checking for Tcl configuration" >&5
drh8b727472009-01-19 18:18:40 +000012683$as_echo_n "checking for Tcl configuration... " >&6; }
drh710658c2012-01-16 13:00:05 +000012684 if test "${ac_cv_c_tclconfig+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012685 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000012686else
a.rottmann84e63352003-03-24 09:42:16 +000012687
drh7b5717e2004-11-25 13:50:01 +000012688 # First check to see if --with-tcl was specified.
12689 if test x"${with_tclconfig}" != x ; then
12690 if test -f "${with_tclconfig}/tclConfig.sh" ; then
12691 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
12692 else
drh710658c2012-01-16 13:00:05 +000012693 { { $as_echo "$as_me:$LINENO: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&5
12694$as_echo "$as_me: error: ${with_tclconfig} directory doesn't contain tclConfig.sh" >&2;}
12695 { (exit 1); exit 1; }; }
drh7b5717e2004-11-25 13:50:01 +000012696 fi
12697 fi
vapier6acb2cf2009-01-28 04:46:28 +000012698
12699 # Start autosearch by asking tclsh
drhe74f4652012-08-15 16:06:54 +000012700 if test x"${ac_cv_c_tclconfig}" = x ; then
12701 if test x"$cross_compiling" = xno; then
12702 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
12703 do
12704 if test -f "$i/tclConfig.sh" ; then
12705 ac_cv_c_tclconfig="$i"
12706 break
12707 fi
12708 done
12709 fi
vapier6acb2cf2009-01-28 04:46:28 +000012710 fi
12711
drh7b5717e2004-11-25 13:50:01 +000012712 # then check for a private Tcl installation
12713 if test x"${ac_cv_c_tclconfig}" = x ; then
12714 for i in \
12715 ../tcl \
12716 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12717 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
12718 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
12719 ../../tcl \
12720 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12721 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
12722 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
12723 ../../../tcl \
12724 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12725 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
12726 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
12727 do
12728 if test -f "$i/unix/tclConfig.sh" ; then
12729 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12730 break
12731 fi
12732 done
12733 fi
12734
12735 # check in a few common install locations
12736 if test x"${ac_cv_c_tclconfig}" = x ; then
12737 for i in \
12738 `ls -d ${libdir} 2>/dev/null` \
12739 `ls -d /usr/local/lib 2>/dev/null` \
12740 `ls -d /usr/contrib/lib 2>/dev/null` \
12741 `ls -d /usr/lib 2>/dev/null`
12742 do
12743 if test -f "$i/tclConfig.sh" ; then
12744 ac_cv_c_tclconfig=`(cd $i; pwd)`
12745 break
12746 fi
12747 done
12748 fi
12749
12750 # check in a few other private locations
12751 if test x"${ac_cv_c_tclconfig}" = x ; then
12752 for i in \
12753 ${srcdir}/../tcl \
12754 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
12755 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
12756 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
12757 do
12758 if test -f "$i/unix/tclConfig.sh" ; then
12759 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
12760 break
12761 fi
12762 done
12763 fi
12764
drh75897232000-05-29 14:26:00 +000012765fi
12766
drh7b5717e2004-11-25 13:50:01 +000012767
12768 if test x"${ac_cv_c_tclconfig}" = x ; then
12769 use_tcl=no
drh710658c2012-01-16 13:00:05 +000012770 { $as_echo "$as_me:$LINENO: WARNING: Can't find Tcl configuration definitions" >&5
drh8b727472009-01-19 18:18:40 +000012771$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
drh710658c2012-01-16 13:00:05 +000012772 { $as_echo "$as_me:$LINENO: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
drh8b727472009-01-19 18:18:40 +000012773$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
drh710658c2012-01-16 13:00:05 +000012774 { $as_echo "$as_me:$LINENO: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
drh8b727472009-01-19 18:18:40 +000012775$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000012776 else
12777 TCL_BIN_DIR=${ac_cv_c_tclconfig}
drh710658c2012-01-16 13:00:05 +000012778 { $as_echo "$as_me:$LINENO: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000012779$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000012780
drh710658c2012-01-16 13:00:05 +000012781 { $as_echo "$as_me:$LINENO: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000012782$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000012783 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
drh710658c2012-01-16 13:00:05 +000012784 { $as_echo "$as_me:$LINENO: result: loading" >&5
drh8b727472009-01-19 18:18:40 +000012785$as_echo "loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000012786 . $TCL_BIN_DIR/tclConfig.sh
12787 else
drh710658c2012-01-16 13:00:05 +000012788 { $as_echo "$as_me:$LINENO: result: file not found" >&5
drh8b727472009-01-19 18:18:40 +000012789$as_echo "file not found" >&6; }
drh75897232000-05-29 14:26:00 +000012790 fi
drh7b5717e2004-11-25 13:50:01 +000012791
12792 #
12793 # If the TCL_BIN_DIR is the build directory (not the install directory),
12794 # then set the common variable name to the value of the build variables.
12795 # For example, the variable TCL_LIB_SPEC will be set to the value
12796 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
12797 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
12798 # installed and uninstalled version of Tcl.
12799 #
12800
mlcreechab1c47b2008-03-09 02:51:10 +000012801 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000012802 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
12803 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
12804 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
12805 fi
12806
12807 #
12808 # eval is required to do the TCL_DBGX substitution
12809 #
12810
12811 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
12812 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
12813 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
12814
12815 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
12816 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
12817 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
drhd881ce82015-03-31 17:01:52 +000012831
drh7b5717e2004-11-25 13:50:01 +000012832 fi
drh75897232000-05-29 14:26:00 +000012833fi
drh7b5717e2004-11-25 13:50:01 +000012834if test "${use_tcl}" = "no" ; then
12835 HAVE_TCL=""
12836else
12837 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000012838fi
drh75897232000-05-29 14:26:00 +000012839
a.rottmann84e63352003-03-24 09:42:16 +000012840
drh75897232000-05-29 14:26:00 +000012841##########
12842# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000012843# that use "readline()" library.
12844#
vapier7f19c022007-02-17 14:46:31 +000012845TARGET_READLINE_LIBS=""
12846TARGET_READLINE_INC=""
12847TARGET_HAVE_READLINE=0
drh8b727472009-01-19 18:18:40 +000012848# Check whether --enable-readline was given.
drh710658c2012-01-16 13:00:05 +000012849if test "${enable_readline+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012850 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000012851else
vapier7f19c022007-02-17 14:46:31 +000012852 with_readline=auto
drh8b727472009-01-19 18:18:40 +000012853fi
12854
vapier7f19c022007-02-17 14:46:31 +000012855
12856if test x"$with_readline" != xno; then
12857 found="yes"
12858
12859
drh8b727472009-01-19 18:18:40 +000012860# Check whether --with-readline-lib was given.
drh710658c2012-01-16 13:00:05 +000012861if test "${with_readline_lib+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012862 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000012863else
12864 with_readline_lib="auto"
drh8b727472009-01-19 18:18:40 +000012865fi
12866
vapier7f19c022007-02-17 14:46:31 +000012867 if test "x$with_readline_lib" = xauto; then
12868 save_LIBS="$LIBS"
12869 LIBS=""
drh710658c2012-01-16 13:00:05 +000012870 { $as_echo "$as_me:$LINENO: checking for library containing tgetent" >&5
drh8b727472009-01-19 18:18:40 +000012871$as_echo_n "checking for library containing tgetent... " >&6; }
drh710658c2012-01-16 13:00:05 +000012872if test "${ac_cv_search_tgetent+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012873 $as_echo_n "(cached) " >&6
drh75897232000-05-29 14:26:00 +000012874else
drh71eb93e2001-09-28 01:34:43 +000012875 ac_func_search_save_LIBS=$LIBS
drh710658c2012-01-16 13:00:05 +000012876cat >conftest.$ac_ext <<_ACEOF
12877/* confdefs.h. */
12878_ACEOF
12879cat confdefs.h >>conftest.$ac_ext
12880cat >>conftest.$ac_ext <<_ACEOF
paul38372372003-04-22 08:04:49 +000012881/* end confdefs.h. */
12882
drh8b727472009-01-19 18:18:40 +000012883/* Override any GCC internal prototype to avoid an error.
12884 Use char because int might match the return type of a GCC
12885 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000012886#ifdef __cplusplus
12887extern "C"
12888#endif
paul38372372003-04-22 08:04:49 +000012889char tgetent ();
12890int
12891main ()
12892{
drh8b727472009-01-19 18:18:40 +000012893return tgetent ();
paul38372372003-04-22 08:04:49 +000012894 ;
12895 return 0;
12896}
12897_ACEOF
drh8b727472009-01-19 18:18:40 +000012898for ac_lib in '' readline ncurses curses termcap; do
12899 if test -z "$ac_lib"; then
12900 ac_res="none required"
12901 else
12902 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000012903 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000012904 fi
drh710658c2012-01-16 13:00:05 +000012905 rm -f conftest.$ac_objext conftest$ac_exeext
12906if { (ac_try="$ac_link"
12907case "(($ac_try" in
12908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12909 *) ac_try_echo=$ac_try;;
12910esac
12911eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12912$as_echo "$ac_try_echo") >&5
12913 (eval "$ac_link") 2>conftest.er1
12914 ac_status=$?
12915 grep -v '^ *+' conftest.er1 >conftest.err
12916 rm -f conftest.er1
12917 cat conftest.err >&5
12918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); } && {
12920 test -z "$ac_c_werror_flag" ||
12921 test ! -s conftest.err
12922 } && test -s conftest$ac_exeext && {
12923 test "$cross_compiling" = yes ||
12924 $as_test_x conftest$ac_exeext
12925 }; then
drh8b727472009-01-19 18:18:40 +000012926 ac_cv_search_tgetent=$ac_res
drh710658c2012-01-16 13:00:05 +000012927else
12928 $as_echo "$as_me: failed program was:" >&5
12929sed 's/^/| /' conftest.$ac_ext >&5
12930
12931
mlcreech94984912008-03-04 19:03:08 +000012932fi
drh710658c2012-01-16 13:00:05 +000012933
12934rm -rf conftest.dSYM
12935rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12936 conftest$ac_exeext
12937 if test "${ac_cv_search_tgetent+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012938 break
drh866108f2008-05-13 00:57:21 +000012939fi
drh8b727472009-01-19 18:18:40 +000012940done
drh710658c2012-01-16 13:00:05 +000012941if test "${ac_cv_search_tgetent+set}" = set; then
12942 :
drh8b727472009-01-19 18:18:40 +000012943else
12944 ac_cv_search_tgetent=no
12945fi
12946rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000012947LIBS=$ac_func_search_save_LIBS
12948fi
drh710658c2012-01-16 13:00:05 +000012949{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tgetent" >&5
drh8b727472009-01-19 18:18:40 +000012950$as_echo "$ac_cv_search_tgetent" >&6; }
12951ac_res=$ac_cv_search_tgetent
drh710658c2012-01-16 13:00:05 +000012952if test "$ac_res" != no; then
drh8b727472009-01-19 18:18:40 +000012953 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000012954 term_LIBS="$LIBS"
12955else
12956 term_LIBS=""
paul38372372003-04-22 08:04:49 +000012957fi
12958
drh710658c2012-01-16 13:00:05 +000012959 { $as_echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
drh8b727472009-01-19 18:18:40 +000012960$as_echo_n "checking for readline in -lreadline... " >&6; }
drh710658c2012-01-16 13:00:05 +000012961if test "${ac_cv_lib_readline_readline+set}" = set; then
drh8b727472009-01-19 18:18:40 +000012962 $as_echo_n "(cached) " >&6
paul38372372003-04-22 08:04:49 +000012963else
12964 ac_check_lib_save_LIBS=$LIBS
12965LIBS="-lreadline $LIBS"
drh710658c2012-01-16 13:00:05 +000012966cat >conftest.$ac_ext <<_ACEOF
12967/* confdefs.h. */
12968_ACEOF
12969cat confdefs.h >>conftest.$ac_ext
12970cat >>conftest.$ac_ext <<_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012971/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000012972
drh8b727472009-01-19 18:18:40 +000012973/* Override any GCC internal prototype to avoid an error.
12974 Use char because int might match the return type of a GCC
12975 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000012976#ifdef __cplusplus
12977extern "C"
12978#endif
drh71eb93e2001-09-28 01:34:43 +000012979char readline ();
12980int
12981main ()
12982{
drh8b727472009-01-19 18:18:40 +000012983return readline ();
drh71eb93e2001-09-28 01:34:43 +000012984 ;
12985 return 0;
12986}
12987_ACEOF
drh710658c2012-01-16 13:00:05 +000012988rm -f conftest.$ac_objext conftest$ac_exeext
12989if { (ac_try="$ac_link"
12990case "(($ac_try" in
12991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992 *) ac_try_echo=$ac_try;;
12993esac
12994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12995$as_echo "$ac_try_echo") >&5
12996 (eval "$ac_link") 2>conftest.er1
12997 ac_status=$?
12998 grep -v '^ *+' conftest.er1 >conftest.err
12999 rm -f conftest.er1
13000 cat conftest.err >&5
13001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); } && {
13003 test -z "$ac_c_werror_flag" ||
13004 test ! -s conftest.err
13005 } && test -s conftest$ac_exeext && {
13006 test "$cross_compiling" = yes ||
13007 $as_test_x conftest$ac_exeext
13008 }; then
paul38372372003-04-22 08:04:49 +000013009 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000013010else
drh710658c2012-01-16 13:00:05 +000013011 $as_echo "$as_me: failed program was:" >&5
13012sed 's/^/| /' conftest.$ac_ext >&5
13013
13014 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000013015fi
drh710658c2012-01-16 13:00:05 +000013016
13017rm -rf conftest.dSYM
13018rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13019 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000013020LIBS=$ac_check_lib_save_LIBS
13021fi
drh710658c2012-01-16 13:00:05 +000013022{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
drh8b727472009-01-19 18:18:40 +000013023$as_echo "$ac_cv_lib_readline_readline" >&6; }
drh710658c2012-01-16 13:00:05 +000013024if test $ac_cv_lib_readline_readline = yes; then
vapier7f19c022007-02-17 14:46:31 +000013025 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000013026else
vapier7f19c022007-02-17 14:46:31 +000013027 found="no"
13028fi
drhf1878b42006-01-23 18:06:52 +000013029
vapier7f19c022007-02-17 14:46:31 +000013030 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
13031 LIBS="$save_LIBS"
13032 else
13033 TARGET_READLINE_LIBS="$with_readline_lib"
13034 fi
13035
13036
drh8b727472009-01-19 18:18:40 +000013037# Check whether --with-readline-inc was given.
drh710658c2012-01-16 13:00:05 +000013038if test "${with_readline_inc+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013039 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000013040else
vapier7f19c022007-02-17 14:46:31 +000013041 with_readline_inc="auto"
drh8b727472009-01-19 18:18:40 +000013042fi
13043
vapier7f19c022007-02-17 14:46:31 +000013044 if test "x$with_readline_inc" = xauto; then
drh710658c2012-01-16 13:00:05 +000013045 if test "${ac_cv_header_readline_h+set}" = set; then
13046 { $as_echo "$as_me:$LINENO: checking for readline.h" >&5
13047$as_echo_n "checking for readline.h... " >&6; }
13048if test "${ac_cv_header_readline_h+set}" = set; then
13049 $as_echo_n "(cached) " >&6
13050fi
13051{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
13052$as_echo "$ac_cv_header_readline_h" >&6; }
13053else
13054 # Is the header compilable?
13055{ $as_echo "$as_me:$LINENO: checking readline.h usability" >&5
13056$as_echo_n "checking readline.h usability... " >&6; }
13057cat >conftest.$ac_ext <<_ACEOF
13058/* confdefs.h. */
13059_ACEOF
13060cat confdefs.h >>conftest.$ac_ext
13061cat >>conftest.$ac_ext <<_ACEOF
13062/* end confdefs.h. */
13063$ac_includes_default
13064#include <readline.h>
13065_ACEOF
13066rm -f conftest.$ac_objext
13067if { (ac_try="$ac_compile"
13068case "(($ac_try" in
13069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13070 *) ac_try_echo=$ac_try;;
13071esac
13072eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13073$as_echo "$ac_try_echo") >&5
13074 (eval "$ac_compile") 2>conftest.er1
13075 ac_status=$?
13076 grep -v '^ *+' conftest.er1 >conftest.err
13077 rm -f conftest.er1
13078 cat conftest.err >&5
13079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13080 (exit $ac_status); } && {
13081 test -z "$ac_c_werror_flag" ||
13082 test ! -s conftest.err
13083 } && test -s conftest.$ac_objext; then
13084 ac_header_compiler=yes
13085else
13086 $as_echo "$as_me: failed program was:" >&5
13087sed 's/^/| /' conftest.$ac_ext >&5
13088
13089 ac_header_compiler=no
13090fi
13091
13092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13093{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13094$as_echo "$ac_header_compiler" >&6; }
13095
13096# Is the header present?
13097{ $as_echo "$as_me:$LINENO: checking readline.h presence" >&5
13098$as_echo_n "checking readline.h presence... " >&6; }
13099cat >conftest.$ac_ext <<_ACEOF
13100/* confdefs.h. */
13101_ACEOF
13102cat confdefs.h >>conftest.$ac_ext
13103cat >>conftest.$ac_ext <<_ACEOF
13104/* end confdefs.h. */
13105#include <readline.h>
13106_ACEOF
13107if { (ac_try="$ac_cpp conftest.$ac_ext"
13108case "(($ac_try" in
13109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110 *) ac_try_echo=$ac_try;;
13111esac
13112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13113$as_echo "$ac_try_echo") >&5
13114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13115 ac_status=$?
13116 grep -v '^ *+' conftest.er1 >conftest.err
13117 rm -f conftest.er1
13118 cat conftest.err >&5
13119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); } >/dev/null && {
13121 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13122 test ! -s conftest.err
13123 }; then
13124 ac_header_preproc=yes
13125else
13126 $as_echo "$as_me: failed program was:" >&5
13127sed 's/^/| /' conftest.$ac_ext >&5
13128
13129 ac_header_preproc=no
13130fi
13131
13132rm -f conftest.err conftest.$ac_ext
13133{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13134$as_echo "$ac_header_preproc" >&6; }
13135
13136# So? What about this header?
13137case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13138 yes:no: )
13139 { $as_echo "$as_me:$LINENO: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
13140$as_echo "$as_me: WARNING: readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13141 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the compiler's result" >&5
13142$as_echo "$as_me: WARNING: readline.h: proceeding with the compiler's result" >&2;}
13143 ac_header_preproc=yes
13144 ;;
13145 no:yes:* )
13146 { $as_echo "$as_me:$LINENO: WARNING: readline.h: present but cannot be compiled" >&5
13147$as_echo "$as_me: WARNING: readline.h: present but cannot be compiled" >&2;}
13148 { $as_echo "$as_me:$LINENO: WARNING: readline.h: check for missing prerequisite headers?" >&5
13149$as_echo "$as_me: WARNING: readline.h: check for missing prerequisite headers?" >&2;}
13150 { $as_echo "$as_me:$LINENO: WARNING: readline.h: see the Autoconf documentation" >&5
13151$as_echo "$as_me: WARNING: readline.h: see the Autoconf documentation" >&2;}
13152 { $as_echo "$as_me:$LINENO: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&5
13153$as_echo "$as_me: WARNING: readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
13154 { $as_echo "$as_me:$LINENO: WARNING: readline.h: proceeding with the preprocessor's result" >&5
13155$as_echo "$as_me: WARNING: readline.h: proceeding with the preprocessor's result" >&2;}
13156 { $as_echo "$as_me:$LINENO: WARNING: readline.h: in the future, the compiler will take precedence" >&5
13157$as_echo "$as_me: WARNING: readline.h: in the future, the compiler will take precedence" >&2;}
13158
13159 ;;
13160esac
13161{ $as_echo "$as_me:$LINENO: checking for readline.h" >&5
13162$as_echo_n "checking for readline.h... " >&6; }
13163if test "${ac_cv_header_readline_h+set}" = set; then
13164 $as_echo_n "(cached) " >&6
13165else
13166 ac_cv_header_readline_h=$ac_header_preproc
13167fi
13168{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_readline_h" >&5
13169$as_echo "$ac_cv_header_readline_h" >&6; }
13170
13171fi
13172if test $ac_cv_header_readline_h = yes; then
vapier7f19c022007-02-17 14:46:31 +000013173 found="yes"
13174else
drh75897232000-05-29 14:26:00 +000013175
vapier7f19c022007-02-17 14:46:31 +000013176 found="no"
13177 if test "$cross_compiling" != yes; then
13178 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
13179 for subdir in include include/readline; do
drh8b727472009-01-19 18:18:40 +000013180 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
drh710658c2012-01-16 13:00:05 +000013181{ $as_echo "$as_me:$LINENO: checking for $dir/$subdir/readline.h" >&5
drh8b727472009-01-19 18:18:40 +000013182$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
drh710658c2012-01-16 13:00:05 +000013183if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
drh8b727472009-01-19 18:18:40 +000013184 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000013185else
13186 test "$cross_compiling" = yes &&
drh710658c2012-01-16 13:00:05 +000013187 { { $as_echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
13188$as_echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
13189 { (exit 1); exit 1; }; }
vapier7f19c022007-02-17 14:46:31 +000013190if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000013191 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000013192else
drh71eb93e2001-09-28 01:34:43 +000013193 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000013194fi
13195fi
drh710658c2012-01-16 13:00:05 +000013196ac_res=`eval 'as_val=${'$as_ac_File'}
13197 $as_echo "$as_val"'`
13198 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
drh8b727472009-01-19 18:18:40 +000013199$as_echo "$ac_res" >&6; }
drh710658c2012-01-16 13:00:05 +000013200if test `eval 'as_val=${'$as_ac_File'}
13201 $as_echo "$as_val"'` = yes; then
drh75897232000-05-29 14:26:00 +000013202 found=yes
drh75897232000-05-29 14:26:00 +000013203fi
13204
vapier7f19c022007-02-17 14:46:31 +000013205 if test "$found" = "yes"; then
13206 TARGET_READLINE_INC="-I$dir/$subdir"
13207 break
13208 fi
13209 done
13210 test "$found" = "yes" && break
13211 done
13212 fi
13213
13214fi
13215
13216
13217 else
13218 TARGET_READLINE_INC="$with_readline_inc"
13219 fi
13220
13221 if test x"$found" = xno; then
13222 TARGET_READLINE_LIBS=""
13223 TARGET_READLINE_INC=""
13224 TARGET_HAVE_READLINE=0
13225 else
13226 TARGET_HAVE_READLINE=1
13227 fi
13228fi
13229
13230
13231
13232
13233
13234##########
13235# Figure out what C libraries are required to compile programs
13236# that use "fdatasync()" function.
13237#
drh710658c2012-01-16 13:00:05 +000013238{ $as_echo "$as_me:$LINENO: checking for library containing fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000013239$as_echo_n "checking for library containing fdatasync... " >&6; }
drh710658c2012-01-16 13:00:05 +000013240if test "${ac_cv_search_fdatasync+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013241 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000013242else
vapier7f19c022007-02-17 14:46:31 +000013243 ac_func_search_save_LIBS=$LIBS
drh710658c2012-01-16 13:00:05 +000013244cat >conftest.$ac_ext <<_ACEOF
13245/* confdefs.h. */
13246_ACEOF
13247cat confdefs.h >>conftest.$ac_ext
13248cat >>conftest.$ac_ext <<_ACEOF
vapier7f19c022007-02-17 14:46:31 +000013249/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000013250
drh8b727472009-01-19 18:18:40 +000013251/* Override any GCC internal prototype to avoid an error.
13252 Use char because int might match the return type of a GCC
13253 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000013254#ifdef __cplusplus
13255extern "C"
13256#endif
13257char fdatasync ();
13258int
13259main ()
13260{
drh8b727472009-01-19 18:18:40 +000013261return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000013262 ;
13263 return 0;
13264}
13265_ACEOF
drh8b727472009-01-19 18:18:40 +000013266for ac_lib in '' rt; do
13267 if test -z "$ac_lib"; then
13268 ac_res="none required"
13269 else
13270 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000013271 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000013272 fi
drh710658c2012-01-16 13:00:05 +000013273 rm -f conftest.$ac_objext conftest$ac_exeext
13274if { (ac_try="$ac_link"
13275case "(($ac_try" in
13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13278esac
13279eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13280$as_echo "$ac_try_echo") >&5
13281 (eval "$ac_link") 2>conftest.er1
13282 ac_status=$?
13283 grep -v '^ *+' conftest.er1 >conftest.err
13284 rm -f conftest.er1
13285 cat conftest.err >&5
13286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13287 (exit $ac_status); } && {
13288 test -z "$ac_c_werror_flag" ||
13289 test ! -s conftest.err
13290 } && test -s conftest$ac_exeext && {
13291 test "$cross_compiling" = yes ||
13292 $as_test_x conftest$ac_exeext
13293 }; then
drh8b727472009-01-19 18:18:40 +000013294 ac_cv_search_fdatasync=$ac_res
drh710658c2012-01-16 13:00:05 +000013295else
13296 $as_echo "$as_me: failed program was:" >&5
13297sed 's/^/| /' conftest.$ac_ext >&5
13298
13299
mlcreech94984912008-03-04 19:03:08 +000013300fi
drh710658c2012-01-16 13:00:05 +000013301
13302rm -rf conftest.dSYM
13303rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13304 conftest$ac_exeext
13305 if test "${ac_cv_search_fdatasync+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013306 break
drh866108f2008-05-13 00:57:21 +000013307fi
drh8b727472009-01-19 18:18:40 +000013308done
drh710658c2012-01-16 13:00:05 +000013309if test "${ac_cv_search_fdatasync+set}" = set; then
13310 :
drh8b727472009-01-19 18:18:40 +000013311else
13312 ac_cv_search_fdatasync=no
13313fi
13314rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000013315LIBS=$ac_func_search_save_LIBS
13316fi
drh710658c2012-01-16 13:00:05 +000013317{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000013318$as_echo "$ac_cv_search_fdatasync" >&6; }
13319ac_res=$ac_cv_search_fdatasync
drh710658c2012-01-16 13:00:05 +000013320if test "$ac_res" != no; then
drh8b727472009-01-19 18:18:40 +000013321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000013322
vapier7f19c022007-02-17 14:46:31 +000013323fi
13324
a.rottmann84e63352003-03-24 09:42:16 +000013325
drh75897232000-05-29 14:26:00 +000013326#########
tpoindex9d9f76c2005-01-03 21:28:56 +000013327# check for debug enabled
drh8b727472009-01-19 18:18:40 +000013328# Check whether --enable-debug was given.
drh710658c2012-01-16 13:00:05 +000013329if test "${enable_debug+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013330 enableval=$enable_debug; use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000013331else
13332 use_debug=no
drh8b727472009-01-19 18:18:40 +000013333fi
13334
tpoindex9d9f76c2005-01-03 21:28:56 +000013335if test "${use_debug}" = "yes" ; then
drheae3a0d2006-03-03 20:37:52 +000013336 TARGET_DEBUG="-DSQLITE_DEBUG=1"
tpoindex9d9f76c2005-01-03 21:28:56 +000013337else
13338 TARGET_DEBUG="-DNDEBUG"
13339fi
13340
13341
13342#########
mlcreech94984912008-03-04 19:03:08 +000013343# See whether we should use the amalgamation to build
drh8b727472009-01-19 18:18:40 +000013344# Check whether --enable-amalgamation was given.
drh710658c2012-01-16 13:00:05 +000013345if test "${enable_amalgamation+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013346 enableval=$enable_amalgamation; use_amalgamation=$enableval
mlcreech94984912008-03-04 19:03:08 +000013347else
13348 use_amalgamation=yes
drh8b727472009-01-19 18:18:40 +000013349fi
13350
mlcreechf3868112008-03-11 18:03:30 +000013351if test "${use_amalgamation}" != "yes" ; then
mlcreech94984912008-03-04 19:03:08 +000013352 USE_AMALGAMATION=0
13353fi
13354
13355
13356#########
mlcreecha4edab02008-03-06 04:14:17 +000013357# See whether we should allow loadable extensions
drh8b727472009-01-19 18:18:40 +000013358# Check whether --enable-load-extension was given.
drh710658c2012-01-16 13:00:05 +000013359if test "${enable_load_extension+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013360 enableval=$enable_load_extension; use_loadextension=$enableval
mlcreecha4edab02008-03-06 04:14:17 +000013361else
drh05c7e0b2015-01-10 14:27:17 +000013362 use_loadextension=yes
drh8b727472009-01-19 18:18:40 +000013363fi
13364
mlcreecha4edab02008-03-06 04:14:17 +000013365if test "${use_loadextension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000013366 OPT_FEATURE_FLAGS=""
drh710658c2012-01-16 13:00:05 +000013367 { $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000013368$as_echo_n "checking for library containing dlopen... " >&6; }
drh710658c2012-01-16 13:00:05 +000013369if test "${ac_cv_search_dlopen+set}" = set; then
drhdbe4b882011-06-20 18:00:17 +000013370 $as_echo_n "(cached) " >&6
13371else
13372 ac_func_search_save_LIBS=$LIBS
drh710658c2012-01-16 13:00:05 +000013373cat >conftest.$ac_ext <<_ACEOF
13374/* confdefs.h. */
13375_ACEOF
13376cat confdefs.h >>conftest.$ac_ext
13377cat >>conftest.$ac_ext <<_ACEOF
drhdbe4b882011-06-20 18:00:17 +000013378/* end confdefs.h. */
13379
13380/* Override any GCC internal prototype to avoid an error.
13381 Use char because int might match the return type of a GCC
13382 builtin and then its argument prototype would still apply. */
13383#ifdef __cplusplus
13384extern "C"
13385#endif
13386char dlopen ();
13387int
13388main ()
13389{
13390return dlopen ();
13391 ;
13392 return 0;
13393}
13394_ACEOF
13395for ac_lib in '' dl; do
13396 if test -z "$ac_lib"; then
13397 ac_res="none required"
13398 else
13399 ac_res=-l$ac_lib
13400 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13401 fi
drh710658c2012-01-16 13:00:05 +000013402 rm -f conftest.$ac_objext conftest$ac_exeext
13403if { (ac_try="$ac_link"
13404case "(($ac_try" in
13405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406 *) ac_try_echo=$ac_try;;
13407esac
13408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13409$as_echo "$ac_try_echo") >&5
13410 (eval "$ac_link") 2>conftest.er1
13411 ac_status=$?
13412 grep -v '^ *+' conftest.er1 >conftest.err
13413 rm -f conftest.er1
13414 cat conftest.err >&5
13415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); } && {
13417 test -z "$ac_c_werror_flag" ||
13418 test ! -s conftest.err
13419 } && test -s conftest$ac_exeext && {
13420 test "$cross_compiling" = yes ||
13421 $as_test_x conftest$ac_exeext
13422 }; then
drhdbe4b882011-06-20 18:00:17 +000013423 ac_cv_search_dlopen=$ac_res
drh710658c2012-01-16 13:00:05 +000013424else
13425 $as_echo "$as_me: failed program was:" >&5
13426sed 's/^/| /' conftest.$ac_ext >&5
13427
13428
drhdbe4b882011-06-20 18:00:17 +000013429fi
drh710658c2012-01-16 13:00:05 +000013430
13431rm -rf conftest.dSYM
13432rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13433 conftest$ac_exeext
13434 if test "${ac_cv_search_dlopen+set}" = set; then
drhdbe4b882011-06-20 18:00:17 +000013435 break
13436fi
13437done
drh710658c2012-01-16 13:00:05 +000013438if test "${ac_cv_search_dlopen+set}" = set; then
13439 :
drhdbe4b882011-06-20 18:00:17 +000013440else
13441 ac_cv_search_dlopen=no
13442fi
13443rm conftest.$ac_ext
13444LIBS=$ac_func_search_save_LIBS
13445fi
drh710658c2012-01-16 13:00:05 +000013446{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000013447$as_echo "$ac_cv_search_dlopen" >&6; }
13448ac_res=$ac_cv_search_dlopen
drh710658c2012-01-16 13:00:05 +000013449if test "$ac_res" != no; then
drhdbe4b882011-06-20 18:00:17 +000013450 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13451
13452fi
13453
mlcreecha4edab02008-03-06 04:14:17 +000013454else
shanefbedede2008-07-22 05:05:01 +000013455 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000013456fi
13457
mlcreechaac7b932008-04-01 02:45:22 +000013458#########
shaneb1cd7302008-10-22 18:27:31 +000013459# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013460for option in $CFLAGS $CPPFLAGS
13461do
13462 case $option in
danielk197733a14782008-08-04 14:50:05 +000013463 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shaneb1cd7302008-10-22 18:27:31 +000013464 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013465 esac
13466done
13467
13468
danielk197733a14782008-08-04 14:50:05 +000013469
shaneb1cd7302008-10-22 18:27:31 +000013470# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013471ac_temp_CFLAGS=""
13472for option in $CFLAGS
13473do
13474 case $option in
13475 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000013476 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000013477 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013478 esac
13479done
13480CFLAGS=$ac_temp_CFLAGS
13481
13482
shaneb1cd7302008-10-22 18:27:31 +000013483# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013484ac_temp_CPPFLAGS=""
13485for option in $CPPFLAGS
13486do
13487 case $option in
13488 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000013489 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000013490 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013491 esac
13492done
13493CPPFLAGS=$ac_temp_CPPFLAGS
13494
danielk197733a14782008-08-04 14:50:05 +000013495
drh8b727472009-01-19 18:18:40 +000013496# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000013497ac_temp_BUILD_CFLAGS=""
13498for option in $BUILD_CFLAGS
13499do
13500 case $option in
13501 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000013502 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000013503 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000013504 esac
13505done
13506BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
13507
13508
13509#########
13510# See whether we should use GCOV
drh8b727472009-01-19 18:18:40 +000013511# Check whether --enable-gcov was given.
drh710658c2012-01-16 13:00:05 +000013512if test "${enable_gcov+set}" = set; then
drh8b727472009-01-19 18:18:40 +000013513 enableval=$enable_gcov; use_gcov=$enableval
mlcreechaac7b932008-04-01 02:45:22 +000013514else
13515 use_gcov=no
drh8b727472009-01-19 18:18:40 +000013516fi
13517
mlcreechaac7b932008-04-01 02:45:22 +000013518if test "${use_gcov}" = "yes" ; then
13519 USE_GCOV=1
13520else
13521 USE_GCOV=0
13522fi
13523
13524
danielk197733a14782008-08-04 14:50:05 +000013525
drh2dfbbca2000-07-28 14:32:48 +000013526#########
mlcreechb87057f2008-03-06 07:19:20 +000013527# Output the config header
drh8b727472009-01-19 18:18:40 +000013528ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000013529
13530
13531#########
drh75897232000-05-29 14:26:00 +000013532# Generate the output files.
13533#
mlcreechdf59c7c2008-03-06 07:51:15 +000013534
drh8b727472009-01-19 18:18:40 +000013535ac_config_files="$ac_config_files Makefile sqlite3.pc"
13536
drh71eb93e2001-09-28 01:34:43 +000013537cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000013538# This file is a shell script that caches the results of configure
13539# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000013540# scripts and configure runs, see configure's option --config-cache.
13541# It is not useful on other systems. If it contains results you don't
13542# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000013543#
drh71eb93e2001-09-28 01:34:43 +000013544# config.status only pays attention to the cache file if you give it
13545# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000013546#
a.rottmann84e63352003-03-24 09:42:16 +000013547# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000013548# loading this file, other *unset* `ac_cv_foo' will be assigned the
13549# following values.
13550
13551_ACEOF
13552
drh75897232000-05-29 14:26:00 +000013553# The following way of writing the cache mishandles newlines in values,
13554# but we know of no workaround that is simple, portable, and efficient.
drh8b727472009-01-19 18:18:40 +000013555# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000013556# Ultrix sh set writes to stderr and can't be redirected directly,
13557# and sets the high bit in the cache file unless we assign to the vars.
drh8b727472009-01-19 18:18:40 +000013558(
13559 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13560 eval ac_val=\$$ac_var
13561 case $ac_val in #(
13562 *${as_nl}*)
13563 case $ac_var in #(
drh710658c2012-01-16 13:00:05 +000013564 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13565$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
drh8b727472009-01-19 18:18:40 +000013566 esac
13567 case $ac_var in #(
13568 _ | IFS | as_nl) ;; #(
13569 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drh710658c2012-01-16 13:00:05 +000013570 *) $as_unset $ac_var ;;
drh8b727472009-01-19 18:18:40 +000013571 esac ;;
13572 esac
13573 done
13574
drh71eb93e2001-09-28 01:34:43 +000013575 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +000013576 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13577 *${as_nl}ac_space=\ *)
drh710658c2012-01-16 13:00:05 +000013578 # `set' does not quote correctly, so add quotes (double-quote
13579 # substitution turns \\\\ into \\, and sed turns \\ into \).
drh71eb93e2001-09-28 01:34:43 +000013580 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000013581 "s/'/'\\\\''/g;
13582 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh8b727472009-01-19 18:18:40 +000013583 ;; #(
drh71eb93e2001-09-28 01:34:43 +000013584 *)
13585 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh8b727472009-01-19 18:18:40 +000013586 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000013587 ;;
drh8b727472009-01-19 18:18:40 +000013588 esac |
13589 sort
13590) |
drh71eb93e2001-09-28 01:34:43 +000013591 sed '
drh8b727472009-01-19 18:18:40 +000013592 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000013593 t clear
drh8b727472009-01-19 18:18:40 +000013594 :clear
drh71eb93e2001-09-28 01:34:43 +000013595 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13596 t end
drh8b727472009-01-19 18:18:40 +000013597 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13598 :end' >>confcache
13599if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13600 if test -w "$cache_file"; then
drh710658c2012-01-16 13:00:05 +000013601 test "x$cache_file" != "x/dev/null" &&
13602 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000013603$as_echo "$as_me: updating cache $cache_file" >&6;}
drh710658c2012-01-16 13:00:05 +000013604 cat confcache >$cache_file
drh75897232000-05-29 14:26:00 +000013605 else
drh710658c2012-01-16 13:00:05 +000013606 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000013607$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000013608 fi
13609fi
13610rm -f confcache
13611
drh75897232000-05-29 14:26:00 +000013612test "x$prefix" = xNONE && prefix=$ac_default_prefix
13613# Let make expand exec_prefix.
13614test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13615
mlcreechb87057f2008-03-06 07:19:20 +000013616DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000013617
13618ac_libobjs=
13619ac_ltlibobjs=
13620for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13621 # 1. Remove the extension, and $U if already installed.
drh8b727472009-01-19 18:18:40 +000013622 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13623 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13624 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13625 # will be set to the directory where LIBOBJS objects are built.
drh710658c2012-01-16 13:00:05 +000013626 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13627 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000013628done
13629LIBOBJS=$ac_libobjs
13630
13631LTLIBOBJS=$ac_ltlibobjs
13632
13633
13634
drh710658c2012-01-16 13:00:05 +000013635: ${CONFIG_STATUS=./config.status}
drh8b727472009-01-19 18:18:40 +000013636ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000013637ac_clean_files_save=$ac_clean_files
13638ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drh710658c2012-01-16 13:00:05 +000013639{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
drh8b727472009-01-19 18:18:40 +000013640$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
drh710658c2012-01-16 13:00:05 +000013641cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013642#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000013643# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000013644# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000013645# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000013646# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000013647
drh71eb93e2001-09-28 01:34:43 +000013648debug=false
a.rottmann84e63352003-03-24 09:42:16 +000013649ac_cs_recheck=false
13650ac_cs_silent=false
dana9f39fd2011-08-12 16:34:42 +000013651SHELL=\${CONFIG_SHELL-$SHELL}
drh710658c2012-01-16 13:00:05 +000013652_ACEOF
13653
13654cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13655## --------------------- ##
13656## M4sh Initialization. ##
13657## --------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000013658
drh8b727472009-01-19 18:18:40 +000013659# Be more Bourne compatible
13660DUALCASE=1; export DUALCASE # for MKS sh
drh710658c2012-01-16 13:00:05 +000013661if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
drh71eb93e2001-09-28 01:34:43 +000013662 emulate sh
13663 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000013664 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000013665 # is contrary to our usage. Disable this feature.
13666 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000013667 setopt NO_GLOB_SUBST
13668else
drh710658c2012-01-16 13:00:05 +000013669 case `(set -o) 2>/dev/null` in
13670 *posix*) set -o posix ;;
drh8b727472009-01-19 18:18:40 +000013671esac
drh710658c2012-01-16 13:00:05 +000013672
a.rottmann84e63352003-03-24 09:42:16 +000013673fi
drh8b727472009-01-19 18:18:40 +000013674
13675
drh710658c2012-01-16 13:00:05 +000013676
13677
13678# PATH needs CR
13679# Avoid depending upon Character Ranges.
13680as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13681as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13682as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13683as_cr_digits='0123456789'
13684as_cr_alnum=$as_cr_Letters$as_cr_digits
13685
drh8b727472009-01-19 18:18:40 +000013686as_nl='
13687'
13688export as_nl
13689# Printing a long string crashes Solaris 7 /usr/bin/printf.
13690as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13691as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13692as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
drh710658c2012-01-16 13:00:05 +000013693if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
drh8b727472009-01-19 18:18:40 +000013694 as_echo='printf %s\n'
13695 as_echo_n='printf %s'
13696else
13697 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13698 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13699 as_echo_n='/usr/ucb/echo -n'
13700 else
13701 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13702 as_echo_n_body='eval
13703 arg=$1;
drh710658c2012-01-16 13:00:05 +000013704 case $arg in
drh8b727472009-01-19 18:18:40 +000013705 *"$as_nl"*)
13706 expr "X$arg" : "X\\(.*\\)$as_nl";
13707 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13708 esac;
13709 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13710 '
13711 export as_echo_n_body
13712 as_echo_n='sh -c $as_echo_n_body as_echo'
13713 fi
13714 export as_echo_body
13715 as_echo='sh -c $as_echo_body as_echo'
13716fi
13717
13718# The user is always right.
13719if test "${PATH_SEPARATOR+set}" != set; then
13720 PATH_SEPARATOR=:
13721 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13722 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13723 PATH_SEPARATOR=';'
13724 }
13725fi
a.rottmann84e63352003-03-24 09:42:16 +000013726
drh710658c2012-01-16 13:00:05 +000013727# Support unset when possible.
13728if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13729 as_unset=unset
13730else
13731 as_unset=false
13732fi
13733
mlcreech94984912008-03-04 19:03:08 +000013734
drh8b727472009-01-19 18:18:40 +000013735# IFS
13736# We need space, tab and new line, in precisely that order. Quoting is
13737# there to prevent editors from complaining about space-tab.
13738# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13739# splitting by setting IFS to empty value.)
13740IFS=" "" $as_nl"
13741
13742# Find who we are. Look in the path if we contain no directory separator.
drh710658c2012-01-16 13:00:05 +000013743case $0 in
drh8b727472009-01-19 18:18:40 +000013744 *[\\/]* ) as_myself=$0 ;;
13745 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13746for as_dir in $PATH
13747do
13748 IFS=$as_save_IFS
13749 test -z "$as_dir" && as_dir=.
drh710658c2012-01-16 13:00:05 +000013750 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13751done
drh8b727472009-01-19 18:18:40 +000013752IFS=$as_save_IFS
13753
13754 ;;
13755esac
13756# We did not find ourselves, most probably we were run as `sh COMMAND'
13757# in which case we are not to be found in the path.
13758if test "x$as_myself" = x; then
13759 as_myself=$0
13760fi
13761if test ! -f "$as_myself"; then
13762 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
drh710658c2012-01-16 13:00:05 +000013763 { (exit 1); exit 1; }
drh8b727472009-01-19 18:18:40 +000013764fi
13765
drh710658c2012-01-16 13:00:05 +000013766# Work around bugs in pre-3.0 UWIN ksh.
13767for as_var in ENV MAIL MAILPATH
13768do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
drh8b727472009-01-19 18:18:40 +000013769done
mlcreech94984912008-03-04 19:03:08 +000013770PS1='$ '
13771PS2='> '
13772PS4='+ '
13773
13774# NLS nuisances.
drh8b727472009-01-19 18:18:40 +000013775LC_ALL=C
13776export LC_ALL
13777LANGUAGE=C
13778export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000013779
drh710658c2012-01-16 13:00:05 +000013780# Required to use basename.
drh8b727472009-01-19 18:18:40 +000013781if expr a : '\(a\)' >/dev/null 2>&1 &&
13782 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +000013783 as_expr=expr
13784else
13785 as_expr=false
13786fi
13787
drh8b727472009-01-19 18:18:40 +000013788if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000013789 as_basename=basename
13790else
13791 as_basename=false
13792fi
13793
13794
drh710658c2012-01-16 13:00:05 +000013795# Name of the executable.
drh8b727472009-01-19 18:18:40 +000013796as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +000013797$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13798 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000013799 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13800$as_echo X/"$0" |
13801 sed '/^.*\/\([^/][^/]*\)\/*$/{
13802 s//\1/
13803 q
13804 }
13805 /^X\/\(\/\/\)$/{
13806 s//\1/
13807 q
13808 }
13809 /^X\/\(\/\).*/{
13810 s//\1/
13811 q
13812 }
13813 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000013814
drh710658c2012-01-16 13:00:05 +000013815# CDPATH.
13816$as_unset CDPATH
13817
13818
13819
13820 as_lineno_1=$LINENO
13821 as_lineno_2=$LINENO
13822 test "x$as_lineno_1" != "x$as_lineno_2" &&
13823 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13824
13825 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13826 # uniformly replaced by the line number. The first 'sed' inserts a
13827 # line-number line after each line using $LINENO; the second 'sed'
13828 # does the real work. The second script uses 'N' to pair each
13829 # line-number line with the line containing $LINENO, and appends
13830 # trailing '-' during substitution so that $LINENO is not a special
13831 # case at line end.
13832 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13833 # scripts with optimization help from Paolo Bonzini. Blame Lee
13834 # E. McMahon (1931-1989) for sed's syntax. :-)
13835 sed -n '
13836 p
13837 /[$]LINENO/=
13838 ' <$as_myself |
13839 sed '
13840 s/[$]LINENO.*/&-/
13841 t lineno
13842 b
13843 :lineno
13844 N
13845 :loop
13846 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13847 t loop
13848 s/-\n.*//
13849 ' >$as_me.lineno &&
13850 chmod +x "$as_me.lineno" ||
13851 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13852 { (exit 1); exit 1; }; }
13853
13854 # Don't try to exec as it changes $[0], causing all sort of problems
13855 # (the dirname of $[0] is not the place where we might find the
13856 # original and so on. Autoconf is especially sensitive to this).
13857 . "./$as_me.lineno"
13858 # Exit status is that of the last command.
13859 exit
13860}
13861
13862
13863if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13864 as_dirname=dirname
13865else
13866 as_dirname=false
13867fi
drh866108f2008-05-13 00:57:21 +000013868
drh8b727472009-01-19 18:18:40 +000013869ECHO_C= ECHO_N= ECHO_T=
drh710658c2012-01-16 13:00:05 +000013870case `echo -n x` in
drh8b727472009-01-19 18:18:40 +000013871-n*)
drh710658c2012-01-16 13:00:05 +000013872 case `echo 'x\c'` in
drh8b727472009-01-19 18:18:40 +000013873 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drh710658c2012-01-16 13:00:05 +000013874 *) ECHO_C='\c';;
drh8b727472009-01-19 18:18:40 +000013875 esac;;
13876*)
13877 ECHO_N='-n';;
13878esac
drh710658c2012-01-16 13:00:05 +000013879if expr a : '\(a\)' >/dev/null 2>&1 &&
13880 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13881 as_expr=expr
13882else
13883 as_expr=false
13884fi
drh71eb93e2001-09-28 01:34:43 +000013885
13886rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +000013887if test -d conf$$.dir; then
13888 rm -f conf$$.dir/conf$$.file
13889else
13890 rm -f conf$$.dir
13891 mkdir conf$$.dir 2>/dev/null
13892fi
13893if (echo >conf$$.file) 2>/dev/null; then
13894 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +000013895 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +000013896 # ... but there are two gotchas:
13897 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13898 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13899 # In both cases, we have to default to `cp -p'.
13900 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13901 as_ln_s='cp -p'
13902 elif ln conf$$.file conf$$ 2>/dev/null; then
13903 as_ln_s=ln
13904 else
13905 as_ln_s='cp -p'
mlcreech636a9952008-05-05 22:52:56 +000013906 fi
drh71eb93e2001-09-28 01:34:43 +000013907else
13908 as_ln_s='cp -p'
13909fi
drh8b727472009-01-19 18:18:40 +000013910rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13911rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000013912
a.rottmann84e63352003-03-24 09:42:16 +000013913if mkdir -p . 2>/dev/null; then
drh710658c2012-01-16 13:00:05 +000013914 as_mkdir_p=:
drh71eb93e2001-09-28 01:34:43 +000013915else
a.rottmann964dbb12004-02-26 19:47:42 +000013916 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000013917 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000013918fi
13919
drh8b727472009-01-19 18:18:40 +000013920if test -x / >/dev/null 2>&1; then
13921 as_test_x='test -x'
13922else
13923 if ls -dL / >/dev/null 2>&1; then
13924 as_ls_L_option=L
13925 else
13926 as_ls_L_option=
13927 fi
13928 as_test_x='
13929 eval sh -c '\''
13930 if test -d "$1"; then
13931 test -d "$1/.";
13932 else
drh710658c2012-01-16 13:00:05 +000013933 case $1 in
drh8b727472009-01-19 18:18:40 +000013934 -*)set "./$1";;
13935 esac;
drh710658c2012-01-16 13:00:05 +000013936 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
drh8b727472009-01-19 18:18:40 +000013937 ???[sx]*):;;*)false;;esac;fi
13938 '\'' sh
13939 '
13940fi
13941as_executable_p=$as_test_x
a.rottmann84e63352003-03-24 09:42:16 +000013942
13943# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000013944as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000013945
13946# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000013947as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000013948
drh71eb93e2001-09-28 01:34:43 +000013949
drh71eb93e2001-09-28 01:34:43 +000013950exec 6>&1
13951
drh710658c2012-01-16 13:00:05 +000013952# Save the log message, to keep $[0] and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000013953# report actual input values of CONFIG_FILES etc. instead of their
drh8b727472009-01-19 18:18:40 +000013954# values after options handling.
13955ac_log="
drh74f4d3e2015-03-09 10:40:48 +000013956This file was extended by sqlite $as_me 3.8.9, which was
drh710658c2012-01-16 13:00:05 +000013957generated by GNU Autoconf 2.62. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000013958
13959 CONFIG_FILES = $CONFIG_FILES
13960 CONFIG_HEADERS = $CONFIG_HEADERS
13961 CONFIG_LINKS = $CONFIG_LINKS
13962 CONFIG_COMMANDS = $CONFIG_COMMANDS
13963 $ $0 $@
13964
drh8b727472009-01-19 18:18:40 +000013965on `(hostname || uname -n) 2>/dev/null | sed 1q`
13966"
13967
drh71eb93e2001-09-28 01:34:43 +000013968_ACEOF
13969
drh8b727472009-01-19 18:18:40 +000013970cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013971# Files that config.status was made for.
drh8b727472009-01-19 18:18:40 +000013972config_files="$ac_config_files"
13973config_headers="$ac_config_headers"
13974config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000013975
drh8b727472009-01-19 18:18:40 +000013976_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013977
drh8b727472009-01-19 18:18:40 +000013978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013979ac_cs_usage="\
drh710658c2012-01-16 13:00:05 +000013980\`$as_me' instantiates files from templates according to the
13981current configuration.
drh71eb93e2001-09-28 01:34:43 +000013982
drh710658c2012-01-16 13:00:05 +000013983Usage: $0 [OPTIONS] [FILE]...
drh71eb93e2001-09-28 01:34:43 +000013984
13985 -h, --help print this help, then exit
drh8b727472009-01-19 18:18:40 +000013986 -V, --version print version number and configuration settings, then exit
drh710658c2012-01-16 13:00:05 +000013987 -q, --quiet do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000013988 -d, --debug don't remove temporary files
13989 --recheck update $as_me by reconfiguring in the same conditions
drh710658c2012-01-16 13:00:05 +000013990 --file=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000013991 instantiate the configuration file FILE
drh710658c2012-01-16 13:00:05 +000013992 --header=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000013993 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000013994
13995Configuration files:
13996$config_files
13997
mlcreechb87057f2008-03-06 07:19:20 +000013998Configuration headers:
13999$config_headers
14000
mlcreech636a9952008-05-05 22:52:56 +000014001Configuration commands:
14002$config_commands
14003
drh710658c2012-01-16 13:00:05 +000014004Report bugs to <bug-autoconf@gnu.org>."
drh8b727472009-01-19 18:18:40 +000014005
mlcreech94984912008-03-04 19:03:08 +000014006_ACEOF
drh8b727472009-01-19 18:18:40 +000014007cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh866108f2008-05-13 00:57:21 +000014008ac_cs_version="\\
drh74f4d3e2015-03-09 10:40:48 +000014009sqlite config.status 3.8.9
drh710658c2012-01-16 13:00:05 +000014010configured by $0, generated by GNU Autoconf 2.62,
14011 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
drh866108f2008-05-13 00:57:21 +000014012
drh710658c2012-01-16 13:00:05 +000014013Copyright (C) 2008 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000014014This config.status script is free software; the Free Software Foundation
14015gives unlimited permission to copy, distribute and modify it."
drh8b727472009-01-19 18:18:40 +000014016
14017ac_pwd='$ac_pwd'
14018srcdir='$srcdir'
14019INSTALL='$INSTALL'
14020AWK='$AWK'
14021test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000014022_ACEOF
drh71eb93e2001-09-28 01:34:43 +000014023
drh8b727472009-01-19 18:18:40 +000014024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14025# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000014026ac_need_defaults=:
14027while test $# != 0
14028do
14029 case $1 in
drh710658c2012-01-16 13:00:05 +000014030 --*=*)
drh8b727472009-01-19 18:18:40 +000014031 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14032 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000014033 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000014034 ;;
drh8b727472009-01-19 18:18:40 +000014035 *)
a.rottmann84e63352003-03-24 09:42:16 +000014036 ac_option=$1
14037 ac_optarg=$2
14038 ac_shift=shift
14039 ;;
drh75897232000-05-29 14:26:00 +000014040 esac
14041
a.rottmann84e63352003-03-24 09:42:16 +000014042 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000014043 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000014044 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000014045 ac_cs_recheck=: ;;
drh8b727472009-01-19 18:18:40 +000014046 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14047 $as_echo "$ac_cs_version"; exit ;;
14048 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000014049 debug=: ;;
14050 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000014051 $ac_shift
drh8b727472009-01-19 18:18:40 +000014052 case $ac_optarg in
14053 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14054 esac
drh710658c2012-01-16 13:00:05 +000014055 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000014056 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000014057 --header | --heade | --head | --hea )
14058 $ac_shift
drh8b727472009-01-19 18:18:40 +000014059 case $ac_optarg in
14060 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14061 esac
drh710658c2012-01-16 13:00:05 +000014062 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000014063 ac_need_defaults=false;;
drh8b727472009-01-19 18:18:40 +000014064 --he | --h)
14065 # Conflict between --help and --header
drh710658c2012-01-16 13:00:05 +000014066 { $as_echo "$as_me: error: ambiguous option: $1
14067Try \`$0 --help' for more information." >&2
14068 { (exit 1); exit 1; }; };;
drh8b727472009-01-19 18:18:40 +000014069 --help | --hel | -h )
14070 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000014071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14072 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14073 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000014074
drh71eb93e2001-09-28 01:34:43 +000014075 # This is an error.
drh710658c2012-01-16 13:00:05 +000014076 -*) { $as_echo "$as_me: error: unrecognized option: $1
14077Try \`$0 --help' for more information." >&2
14078 { (exit 1); exit 1; }; } ;;
drh71eb93e2001-09-28 01:34:43 +000014079
drh710658c2012-01-16 13:00:05 +000014080 *) ac_config_targets="$ac_config_targets $1"
drh8b727472009-01-19 18:18:40 +000014081 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000014082
14083 esac
14084 shift
14085done
14086
a.rottmann84e63352003-03-24 09:42:16 +000014087ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000014088
a.rottmann84e63352003-03-24 09:42:16 +000014089if $ac_cs_silent; then
14090 exec 6>/dev/null
14091 ac_configure_extra_args="$ac_configure_extra_args --silent"
14092fi
drh71eb93e2001-09-28 01:34:43 +000014093
14094_ACEOF
drh8b727472009-01-19 18:18:40 +000014095cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000014096if \$ac_cs_recheck; then
drh8b727472009-01-19 18:18:40 +000014097 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14098 shift
14099 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14100 CONFIG_SHELL='$SHELL'
14101 export CONFIG_SHELL
14102 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000014103fi
drh71eb93e2001-09-28 01:34:43 +000014104
a.rottmann84e63352003-03-24 09:42:16 +000014105_ACEOF
drh8b727472009-01-19 18:18:40 +000014106cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14107exec 5>>config.log
14108{
14109 echo
14110 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14111## Running $as_me. ##
14112_ASBOX
14113 $as_echo "$ac_log"
14114} >&5
a.rottmann84e63352003-03-24 09:42:16 +000014115
drh8b727472009-01-19 18:18:40 +000014116_ACEOF
14117cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech636a9952008-05-05 22:52:56 +000014118#
drh8b727472009-01-19 18:18:40 +000014119# INIT-COMMANDS
mlcreech636a9952008-05-05 22:52:56 +000014120#
14121
14122
14123# The HP-UX ksh and POSIX shell print the target directory to stdout
14124# if CDPATH is set.
14125(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14126
14127sed_quote_subst='$sed_quote_subst'
14128double_quote_subst='$double_quote_subst'
14129delay_variable_subst='$delay_variable_subst'
14130macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14131macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14132enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14133enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14134pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14135enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14136host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14137host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14138host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14139build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14140build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14141build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14142SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14143Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14144GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14145EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14146FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14147LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14148NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14149LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14150max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14151ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14152exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14153lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14154lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14155lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14156reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14157reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
vapier6acb2cf2009-01-28 04:46:28 +000014158OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
mlcreech636a9952008-05-05 22:52:56 +000014159deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14160file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14161AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14162AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14163STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14164RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14165old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14166old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14167old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14168CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14169CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14170compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14171GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14172lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14173lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14174lt_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"`'
14175lt_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"`'
14176objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14177SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14178ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14179MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14180lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14181lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14182lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14183lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14184lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14185need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14186DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14187NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14188LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14189OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14190OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14191libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14192shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14193extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14194archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14195enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14196export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14197whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14198compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14199old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14200old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14201archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14202archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14203module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14204module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14205with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14206allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14207no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14208hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14209hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14210hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14211hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14212hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14213hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14214hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14215hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14216inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14217link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14218fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14219always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14220export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14221exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14222include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14223prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14224file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14225variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14226need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14227need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14228version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14229runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14230shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14231shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14232libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14233library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14234soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14235postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14236postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14237finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14238finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14239hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14240sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14241sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14242hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14243enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14244enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14245enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14246old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14247striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14248
14249LTCC='$LTCC'
14250LTCFLAGS='$LTCFLAGS'
14251compiler='$compiler_DEFAULT'
14252
14253# Quote evaled strings.
14254for var in SED \
14255GREP \
14256EGREP \
14257FGREP \
14258LD \
14259NM \
14260LN_S \
14261lt_SP2NL \
14262lt_NL2SP \
14263reload_flag \
vapier6acb2cf2009-01-28 04:46:28 +000014264OBJDUMP \
mlcreech636a9952008-05-05 22:52:56 +000014265deplibs_check_method \
14266file_magic_cmd \
14267AR \
14268AR_FLAGS \
14269STRIP \
14270RANLIB \
14271CC \
14272CFLAGS \
14273compiler \
14274lt_cv_sys_global_symbol_pipe \
14275lt_cv_sys_global_symbol_to_cdecl \
14276lt_cv_sys_global_symbol_to_c_name_address \
14277lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14278SHELL \
14279ECHO \
14280lt_prog_compiler_no_builtin_flag \
14281lt_prog_compiler_wl \
14282lt_prog_compiler_pic \
14283lt_prog_compiler_static \
14284lt_cv_prog_compiler_c_o \
14285need_locks \
14286DSYMUTIL \
14287NMEDIT \
14288LIPO \
14289OTOOL \
14290OTOOL64 \
14291shrext_cmds \
14292export_dynamic_flag_spec \
14293whole_archive_flag_spec \
14294compiler_needs_object \
14295with_gnu_ld \
14296allow_undefined_flag \
14297no_undefined_flag \
14298hardcode_libdir_flag_spec \
14299hardcode_libdir_flag_spec_ld \
14300hardcode_libdir_separator \
14301fix_srcfile_path \
14302exclude_expsyms \
14303include_expsyms \
14304file_list_spec \
14305variables_saved_for_relink \
14306libname_spec \
14307library_names_spec \
14308soname_spec \
14309finish_eval \
14310old_striplib \
14311striplib; do
14312 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14313 *[\\\\\\\`\\"\\\$]*)
14314 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14315 ;;
14316 *)
14317 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14318 ;;
14319 esac
14320done
14321
14322# Double-quote double-evaled strings.
14323for var in reload_cmds \
14324old_postinstall_cmds \
14325old_postuninstall_cmds \
14326old_archive_cmds \
14327extract_expsyms_cmds \
14328old_archive_from_new_cmds \
14329old_archive_from_expsyms_cmds \
14330archive_cmds \
14331archive_expsym_cmds \
14332module_cmds \
14333module_expsym_cmds \
14334export_symbols_cmds \
14335prelink_cmds \
14336postinstall_cmds \
14337postuninstall_cmds \
14338finish_cmds \
14339sys_lib_search_path_spec \
14340sys_lib_dlsearch_path_spec; do
14341 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14342 *[\\\\\\\`\\"\\\$]*)
14343 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14344 ;;
14345 *)
14346 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14347 ;;
14348 esac
14349done
14350
14351# Fix-up fallback echo if it was mangled by the above quoting rules.
14352case \$lt_ECHO in
14353*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14354 ;;
14355esac
14356
14357ac_aux_dir='$ac_aux_dir'
14358xsi_shell='$xsi_shell'
14359lt_shell_append='$lt_shell_append'
14360
14361# See if we are running on zsh, and set the options which allow our
14362# commands through without removal of \ escapes INIT.
14363if test -n "\${ZSH_VERSION+set}" ; then
14364 setopt NO_GLOB_SUBST
14365fi
14366
14367
14368 PACKAGE='$PACKAGE'
14369 VERSION='$VERSION'
14370 TIMESTAMP='$TIMESTAMP'
14371 RM='$RM'
14372 ofile='$ofile'
14373
14374
14375
14376
mlcreech94984912008-03-04 19:03:08 +000014377_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000014378
drh8b727472009-01-19 18:18:40 +000014379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000014380
drh8b727472009-01-19 18:18:40 +000014381# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000014382for ac_config_target in $ac_config_targets
14383do
drh8b727472009-01-19 18:18:40 +000014384 case $ac_config_target in
14385 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14386 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14387 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14388 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
14389
drh710658c2012-01-16 13:00:05 +000014390 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14391$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14392 { (exit 1); exit 1; }; };;
drh71eb93e2001-09-28 01:34:43 +000014393 esac
14394done
14395
drh8b727472009-01-19 18:18:40 +000014396
drh71eb93e2001-09-28 01:34:43 +000014397# If the user did not use the arguments to specify the items to instantiate,
14398# then the envvar interface is used. Set only those that are not.
14399# We use the long form for the default assignment because of an extremely
14400# bizarre bug on SunOS 4.1.3.
14401if $ac_need_defaults; then
14402 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000014403 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000014404 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000014405fi
14406
a.rottmann84e63352003-03-24 09:42:16 +000014407# Have a temporary directory for convenience. Make it in the build tree
drh8b727472009-01-19 18:18:40 +000014408# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000014409# creating and moving files from /tmp can sometimes cause problems.
drh8b727472009-01-19 18:18:40 +000014410# Hook for its removal unless debugging.
14411# Note that there is a small window in which the directory will not be cleaned:
14412# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000014413$debug ||
14414{
drh710658c2012-01-16 13:00:05 +000014415 tmp=
drh8b727472009-01-19 18:18:40 +000014416 trap 'exit_status=$?
drh710658c2012-01-16 13:00:05 +000014417 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
drh8b727472009-01-19 18:18:40 +000014418' 0
drh710658c2012-01-16 13:00:05 +000014419 trap '{ (exit 1); exit 1; }' 1 2 13 15
drh71eb93e2001-09-28 01:34:43 +000014420}
drh71eb93e2001-09-28 01:34:43 +000014421# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000014422
drh71eb93e2001-09-28 01:34:43 +000014423{
drh8b727472009-01-19 18:18:40 +000014424 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drh710658c2012-01-16 13:00:05 +000014425 test -n "$tmp" && test -d "$tmp"
drh71eb93e2001-09-28 01:34:43 +000014426} ||
14427{
drh8b727472009-01-19 18:18:40 +000014428 tmp=./conf$$-$RANDOM
14429 (umask 077 && mkdir "$tmp")
drh710658c2012-01-16 13:00:05 +000014430} ||
14431{
14432 $as_echo "$as_me: cannot create a temporary directory in ." >&2
14433 { (exit 1); exit 1; }
14434}
drh71eb93e2001-09-28 01:34:43 +000014435
drh8b727472009-01-19 18:18:40 +000014436# Set up the scripts for CONFIG_FILES section.
14437# No need to generate them if there are no CONFIG_FILES.
14438# This happens for instance with `./config.status config.h'.
14439if test -n "$CONFIG_FILES"; then
14440
14441
drh710658c2012-01-16 13:00:05 +000014442ac_cr=' '
drh8b727472009-01-19 18:18:40 +000014443ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14444if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
drh0fe0c462011-09-22 00:56:38 +000014445 ac_cs_awk_cr='\\r'
drh8b727472009-01-19 18:18:40 +000014446else
14447 ac_cs_awk_cr=$ac_cr
14448fi
14449
drh710658c2012-01-16 13:00:05 +000014450echo 'BEGIN {' >"$tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000014451_ACEOF
drh71eb93e2001-09-28 01:34:43 +000014452
mlcreech94984912008-03-04 19:03:08 +000014453
drh8b727472009-01-19 18:18:40 +000014454{
14455 echo "cat >conf$$subs.awk <<_ACEOF" &&
14456 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14457 echo "_ACEOF"
14458} >conf$$subs.sh ||
drh710658c2012-01-16 13:00:05 +000014459 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14460$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14461 { (exit 1); exit 1; }; }
14462ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
drh8b727472009-01-19 18:18:40 +000014463ac_delim='%!_!# '
14464for ac_last_try in false false false false false :; do
14465 . ./conf$$subs.sh ||
drh710658c2012-01-16 13:00:05 +000014466 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14467$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14468 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +000014469
drh710658c2012-01-16 13:00:05 +000014470 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 +000014471 break
14472 elif $ac_last_try; then
drh710658c2012-01-16 13:00:05 +000014473 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14474$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14475 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000014476 else
14477 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000014478 fi
drh8b727472009-01-19 18:18:40 +000014479done
14480rm -f conf$$subs.sh
14481
14482cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh710658c2012-01-16 13:00:05 +000014483cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
drh8b727472009-01-19 18:18:40 +000014484_ACEOF
14485sed -n '
14486h
14487s/^/S["/; s/!.*/"]=/
14488p
14489g
14490s/^[^!]*!//
14491:repl
14492t repl
14493s/'"$ac_delim"'$//
14494t delim
14495:nl
14496h
drh710658c2012-01-16 13:00:05 +000014497s/\(.\{148\}\).*/\1/
drh8b727472009-01-19 18:18:40 +000014498t more1
14499s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14500p
14501n
14502b repl
14503:more1
14504s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14505p
14506g
14507s/.\{148\}//
14508t nl
14509:delim
14510h
drh710658c2012-01-16 13:00:05 +000014511s/\(.\{148\}\).*/\1/
drh8b727472009-01-19 18:18:40 +000014512t more2
14513s/["\\]/\\&/g; s/^/"/; s/$/"/
14514p
14515b
14516:more2
14517s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14518p
14519g
14520s/.\{148\}//
14521t delim
14522' <conf$$subs.awk | sed '
14523/^[^""]/{
14524 N
14525 s/\n//
14526}
14527' >>$CONFIG_STATUS || ac_write_fail=1
14528rm -f conf$$subs.awk
14529cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14530_ACAWK
drh710658c2012-01-16 13:00:05 +000014531cat >>"\$tmp/subs1.awk" <<_ACAWK &&
drh8b727472009-01-19 18:18:40 +000014532 for (key in S) S_is_set[key] = 1
14533 FS = ""
14534
14535}
14536{
14537 line = $ 0
14538 nfields = split(line, field, "@")
14539 substed = 0
14540 len = length(field[1])
14541 for (i = 2; i < nfields; i++) {
14542 key = field[i]
14543 keylen = length(key)
14544 if (S_is_set[key]) {
14545 value = S[key]
14546 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14547 len += length(value) + length(field[++i])
14548 substed = 1
14549 } else
14550 len += 1 + keylen
14551 }
14552
14553 print line
14554}
14555
14556_ACAWK
14557_ACEOF
14558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14559if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14560 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14561else
14562 cat
drh710658c2012-01-16 13:00:05 +000014563fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14564 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
14565$as_echo "$as_me: error: could not setup config files machinery" >&2;}
14566 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000014567_ACEOF
14568
drh710658c2012-01-16 13:00:05 +000014569# VPATH may cause trouble with some makes, so we remove $(srcdir),
14570# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
drh8b727472009-01-19 18:18:40 +000014571# trailing colons and then remove the whole line if VPATH becomes empty
14572# (actually we leave an empty line to preserve line numbers).
14573if test "x$srcdir" = x.; then
drh710658c2012-01-16 13:00:05 +000014574 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14575s/:*\$(srcdir):*/:/
14576s/:*\${srcdir}:*/:/
14577s/:*@srcdir@:*/:/
14578s/^\([^=]*=[ ]*\):*/\1/
drh8b727472009-01-19 18:18:40 +000014579s/:*$//
14580s/^[^=]*=[ ]*$//
14581}'
14582fi
14583
14584cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000014585fi # test -n "$CONFIG_FILES"
14586
drh8b727472009-01-19 18:18:40 +000014587# Set up the scripts for CONFIG_HEADERS section.
14588# No need to generate them if there are no CONFIG_HEADERS.
14589# This happens for instance with `./config.status Makefile'.
14590if test -n "$CONFIG_HEADERS"; then
drh710658c2012-01-16 13:00:05 +000014591cat >"$tmp/defines.awk" <<\_ACAWK ||
drh8b727472009-01-19 18:18:40 +000014592BEGIN {
mlcreech636a9952008-05-05 22:52:56 +000014593_ACEOF
drh8b727472009-01-19 18:18:40 +000014594
14595# Transform confdefs.h into an awk script `defines.awk', embedded as
14596# here-document in config.status, that substitutes the proper values into
14597# config.h.in to produce config.h.
14598
14599# Create a delimiter string that does not exist in confdefs.h, to ease
14600# handling of long lines.
14601ac_delim='%!_!# '
14602for ac_last_try in false false :; do
drh710658c2012-01-16 13:00:05 +000014603 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14604 if test -z "$ac_t"; then
drh8b727472009-01-19 18:18:40 +000014605 break
14606 elif $ac_last_try; then
drh710658c2012-01-16 13:00:05 +000014607 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
14608$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
14609 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000014610 else
14611 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14612 fi
14613done
14614
14615# For the awk script, D is an array of macro values keyed by name,
14616# likewise P contains macro parameters if any. Preserve backslash
14617# newline sequences.
14618
14619ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14620sed -n '
14621s/.\{148\}/&'"$ac_delim"'/g
14622t rset
14623:rset
14624s/^[ ]*#[ ]*define[ ][ ]*/ /
14625t def
14626d
14627:def
14628s/\\$//
14629t bsnl
14630s/["\\]/\\&/g
14631s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14632D["\1"]=" \3"/p
14633s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14634d
14635:bsnl
14636s/["\\]/\\&/g
14637s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14638D["\1"]=" \3\\\\\\n"\\/p
14639t cont
14640s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14641t cont
14642d
14643:cont
14644n
14645s/.\{148\}/&'"$ac_delim"'/g
14646t clear
14647:clear
14648s/\\$//
14649t bsnlc
14650s/["\\]/\\&/g; s/^/"/; s/$/"/p
14651d
14652:bsnlc
14653s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14654b cont
14655' <confdefs.h | sed '
14656s/'"$ac_delim"'/"\\\
14657"/g' >>$CONFIG_STATUS || ac_write_fail=1
14658
14659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14660 for (key in D) D_is_set[key] = 1
14661 FS = ""
14662}
14663/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14664 line = \$ 0
14665 split(line, arg, " ")
14666 if (arg[1] == "#") {
14667 defundef = arg[2]
14668 mac1 = arg[3]
14669 } else {
14670 defundef = substr(arg[1], 2)
14671 mac1 = arg[2]
14672 }
14673 split(mac1, mac2, "(") #)
14674 macro = mac2[1]
14675 if (D_is_set[macro]) {
14676 # Preserve the white space surrounding the "#".
drh710658c2012-01-16 13:00:05 +000014677 prefix = substr(line, 1, index(line, defundef) - 1)
drh8b727472009-01-19 18:18:40 +000014678 print prefix "define", macro P[macro] D[macro]
14679 next
14680 } else {
14681 # Replace #undef with comments. This is necessary, for example,
14682 # in the case of _POSIX_SOURCE, which is predefined and required
14683 # on some systems where configure will not decide to define it.
14684 if (defundef == "undef") {
drh710658c2012-01-16 13:00:05 +000014685 print "/*", line, "*/"
drh8b727472009-01-19 18:18:40 +000014686 next
14687 }
14688 }
14689}
14690{ print }
14691_ACAWK
14692_ACEOF
14693cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh710658c2012-01-16 13:00:05 +000014694 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
14695$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
14696 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000014697fi # test -n "$CONFIG_HEADERS"
14698
14699
14700eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14701shift
14702for ac_tag
14703do
14704 case $ac_tag in
14705 :[FHLC]) ac_mode=$ac_tag; continue;;
14706 esac
14707 case $ac_mode$ac_tag in
14708 :[FHL]*:*);;
drh710658c2012-01-16 13:00:05 +000014709 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14710$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14711 { (exit 1); exit 1; }; };;
drh8b727472009-01-19 18:18:40 +000014712 :[FH]-) ac_tag=-:-;;
14713 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14714 esac
14715 ac_save_IFS=$IFS
14716 IFS=:
14717 set x $ac_tag
14718 IFS=$ac_save_IFS
14719 shift
14720 ac_file=$1
14721 shift
14722
14723 case $ac_mode in
14724 :L) ac_source=$1;;
14725 :[FH])
14726 ac_file_inputs=
14727 for ac_f
14728 do
14729 case $ac_f in
drh710658c2012-01-16 13:00:05 +000014730 -) ac_f="$tmp/stdin";;
drh8b727472009-01-19 18:18:40 +000014731 *) # Look for the file first in the build tree, then in the source tree
14732 # (if the path is not absolute). The absolute path cannot be DOS-style,
14733 # because $ac_f cannot contain `:'.
14734 test -f "$ac_f" ||
14735 case $ac_f in
14736 [\\/$]*) false;;
14737 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14738 esac ||
drh710658c2012-01-16 13:00:05 +000014739 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14740$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14741 { (exit 1); exit 1; }; };;
drh8b727472009-01-19 18:18:40 +000014742 esac
14743 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
drh710658c2012-01-16 13:00:05 +000014744 ac_file_inputs="$ac_file_inputs '$ac_f'"
drh8b727472009-01-19 18:18:40 +000014745 done
14746
14747 # Let's still pretend it is `configure' which instantiates (i.e., don't
14748 # use $as_me), people would be surprised to read:
14749 # /* config.h. Generated by config.status. */
14750 configure_input='Generated from '`
14751 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14752 `' by configure.'
14753 if test x"$ac_file" != x-; then
14754 configure_input="$ac_file. $configure_input"
drh710658c2012-01-16 13:00:05 +000014755 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
drh8b727472009-01-19 18:18:40 +000014756$as_echo "$as_me: creating $ac_file" >&6;}
14757 fi
14758 # Neutralize special characters interpreted by sed in replacement strings.
14759 case $configure_input in #(
14760 *\&* | *\|* | *\\* )
14761 ac_sed_conf_input=`$as_echo "$configure_input" |
14762 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14763 *) ac_sed_conf_input=$configure_input;;
14764 esac
14765
14766 case $ac_tag in
drh710658c2012-01-16 13:00:05 +000014767 *:-:* | *:-) cat >"$tmp/stdin" \
14768 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14769$as_echo "$as_me: error: could not create $ac_file" >&2;}
14770 { (exit 1); exit 1; }; } ;;
drh8b727472009-01-19 18:18:40 +000014771 esac
14772 ;;
drh71eb93e2001-09-28 01:34:43 +000014773 esac
14774
drh8b727472009-01-19 18:18:40 +000014775 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000014776$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000014777 X"$ac_file" : 'X\(//\)[^/]' \| \
14778 X"$ac_file" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000014779 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14780$as_echo X"$ac_file" |
14781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14782 s//\1/
14783 q
14784 }
14785 /^X\(\/\/\)[^/].*/{
14786 s//\1/
14787 q
14788 }
14789 /^X\(\/\/\)$/{
14790 s//\1/
14791 q
14792 }
14793 /^X\(\/\).*/{
14794 s//\1/
14795 q
14796 }
14797 s/.*/./; q'`
drh710658c2012-01-16 13:00:05 +000014798 { as_dir="$ac_dir"
14799 case $as_dir in #(
14800 -*) as_dir=./$as_dir;;
14801 esac
14802 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14803 as_dirs=
14804 while :; do
14805 case $as_dir in #(
14806 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14807 *) as_qdir=$as_dir;;
14808 esac
14809 as_dirs="'$as_qdir' $as_dirs"
14810 as_dir=`$as_dirname -- "$as_dir" ||
14811$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14812 X"$as_dir" : 'X\(//\)[^/]' \| \
14813 X"$as_dir" : 'X\(//\)$' \| \
14814 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14815$as_echo X"$as_dir" |
14816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14817 s//\1/
14818 q
14819 }
14820 /^X\(\/\/\)[^/].*/{
14821 s//\1/
14822 q
14823 }
14824 /^X\(\/\/\)$/{
14825 s//\1/
14826 q
14827 }
14828 /^X\(\/\).*/{
14829 s//\1/
14830 q
14831 }
14832 s/.*/./; q'`
14833 test -d "$as_dir" && break
14834 done
14835 test -z "$as_dirs" || eval "mkdir $as_dirs"
14836 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14837$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
14838 { (exit 1); exit 1; }; }; }
a.rottmann84e63352003-03-24 09:42:16 +000014839 ac_builddir=.
14840
drh8b727472009-01-19 18:18:40 +000014841case "$ac_dir" in
14842.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14843*)
14844 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14845 # A ".." for each directory in $ac_dir_suffix.
14846 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14847 case $ac_top_builddir_sub in
14848 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14849 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14850 esac ;;
14851esac
14852ac_abs_top_builddir=$ac_pwd
14853ac_abs_builddir=$ac_pwd$ac_dir_suffix
14854# for backward compatibility:
14855ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000014856
14857case $srcdir in
drh8b727472009-01-19 18:18:40 +000014858 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000014859 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +000014860 ac_top_srcdir=$ac_top_builddir_sub
14861 ac_abs_top_srcdir=$ac_pwd ;;
14862 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000014863 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +000014864 ac_top_srcdir=$srcdir
14865 ac_abs_top_srcdir=$srcdir ;;
14866 *) # Relative name.
14867 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14868 ac_top_srcdir=$ac_top_build_prefix$srcdir
14869 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000014870esac
drh8b727472009-01-19 18:18:40 +000014871ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000014872
a.rottmann84e63352003-03-24 09:42:16 +000014873
drh8b727472009-01-19 18:18:40 +000014874 case $ac_mode in
14875 :F)
14876 #
14877 # CONFIG_FILE
14878 #
drh75897232000-05-29 14:26:00 +000014879
drh71eb93e2001-09-28 01:34:43 +000014880 case $INSTALL in
14881 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh8b727472009-01-19 18:18:40 +000014882 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000014883 esac
mlcreech94984912008-03-04 19:03:08 +000014884_ACEOF
drh8b727472009-01-19 18:18:40 +000014885
14886cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14887# If the template does not know about datarootdir, expand it.
14888# FIXME: This hack should be removed a few years after 2.60.
14889ac_datarootdir_hack=; ac_datarootdir_seen=
drh710658c2012-01-16 13:00:05 +000014890
drh8b727472009-01-19 18:18:40 +000014891ac_sed_dataroot='
14892/datarootdir/ {
14893 p
14894 q
14895}
14896/@datadir@/p
14897/@docdir@/p
14898/@infodir@/p
14899/@localedir@/p
drh710658c2012-01-16 13:00:05 +000014900/@mandir@/p
14901'
drh8b727472009-01-19 18:18:40 +000014902case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14903*datarootdir*) ac_datarootdir_seen=yes;;
14904*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
drh710658c2012-01-16 13:00:05 +000014905 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
drh8b727472009-01-19 18:18:40 +000014906$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14907_ACEOF
14908cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14909 ac_datarootdir_hack='
14910 s&@datadir@&$datadir&g
14911 s&@docdir@&$docdir&g
14912 s&@infodir@&$infodir&g
14913 s&@localedir@&$localedir&g
14914 s&@mandir@&$mandir&g
drh710658c2012-01-16 13:00:05 +000014915 s&\\\${datarootdir}&$datarootdir&g' ;;
drh8b727472009-01-19 18:18:40 +000014916esac
14917_ACEOF
14918
14919# Neutralize VPATH when `$srcdir' = `.'.
14920# Shell code in configure.ac might set extrasub.
14921# FIXME: do we really want to maintain this feature?
14922cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14923ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000014924$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000014925_ACEOF
drh8b727472009-01-19 18:18:40 +000014926cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000014927:t
14928/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh8b727472009-01-19 18:18:40 +000014929s|@configure_input@|$ac_sed_conf_input|;t t
14930s&@top_builddir@&$ac_top_builddir_sub&;t t
14931s&@top_build_prefix@&$ac_top_build_prefix&;t t
14932s&@srcdir@&$ac_srcdir&;t t
14933s&@abs_srcdir@&$ac_abs_srcdir&;t t
14934s&@top_srcdir@&$ac_top_srcdir&;t t
14935s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14936s&@builddir@&$ac_builddir&;t t
14937s&@abs_builddir@&$ac_abs_builddir&;t t
14938s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14939s&@INSTALL@&$ac_INSTALL&;t t
14940$ac_datarootdir_hack
14941"
drh710658c2012-01-16 13:00:05 +000014942eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14943 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14944$as_echo "$as_me: error: could not create $ac_file" >&2;}
14945 { (exit 1); exit 1; }; }
mlcreech94984912008-03-04 19:03:08 +000014946
drh8b727472009-01-19 18:18:40 +000014947test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
drh710658c2012-01-16 13:00:05 +000014948 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14949 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14950 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14951which seems to be undefined. Please make sure it is defined." >&5
drh8b727472009-01-19 18:18:40 +000014952$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
drh710658c2012-01-16 13:00:05 +000014953which seems to be undefined. Please make sure it is defined." >&2;}
drh866108f2008-05-13 00:57:21 +000014954
drh710658c2012-01-16 13:00:05 +000014955 rm -f "$tmp/stdin"
drh866108f2008-05-13 00:57:21 +000014956 case $ac_file in
drh710658c2012-01-16 13:00:05 +000014957 -) cat "$tmp/out" && rm -f "$tmp/out";;
14958 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
drh8b727472009-01-19 18:18:40 +000014959 esac \
drh710658c2012-01-16 13:00:05 +000014960 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14961$as_echo "$as_me: error: could not create $ac_file" >&2;}
14962 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000014963 ;;
14964 :H)
14965 #
14966 # CONFIG_HEADER
14967 #
drh866108f2008-05-13 00:57:21 +000014968 if test x"$ac_file" != x-; then
drh8b727472009-01-19 18:18:40 +000014969 {
14970 $as_echo "/* $configure_input */" \
drh710658c2012-01-16 13:00:05 +000014971 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14972 } >"$tmp/config.h" \
14973 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14974$as_echo "$as_me: error: could not create $ac_file" >&2;}
14975 { (exit 1); exit 1; }; }
14976 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14977 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
drh8b727472009-01-19 18:18:40 +000014978$as_echo "$as_me: $ac_file is unchanged" >&6;}
drh866108f2008-05-13 00:57:21 +000014979 else
drh8b727472009-01-19 18:18:40 +000014980 rm -f "$ac_file"
drh710658c2012-01-16 13:00:05 +000014981 mv "$tmp/config.h" "$ac_file" \
14982 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
14983$as_echo "$as_me: error: could not create $ac_file" >&2;}
14984 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +000014985 fi
14986 else
drh8b727472009-01-19 18:18:40 +000014987 $as_echo "/* $configure_input */" \
drh710658c2012-01-16 13:00:05 +000014988 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14989 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
14990$as_echo "$as_me: error: could not create -" >&2;}
14991 { (exit 1); exit 1; }; }
drh866108f2008-05-13 00:57:21 +000014992 fi
drh8b727472009-01-19 18:18:40 +000014993 ;;
drh866108f2008-05-13 00:57:21 +000014994
drh710658c2012-01-16 13:00:05 +000014995 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
drh8b727472009-01-19 18:18:40 +000014996$as_echo "$as_me: executing $ac_file commands" >&6;}
14997 ;;
14998 esac
drh866108f2008-05-13 00:57:21 +000014999
15000
drh8b727472009-01-19 18:18:40 +000015001 case $ac_file$ac_mode in
15002 "libtool":C)
mlcreech636a9952008-05-05 22:52:56 +000015003
15004 # See if we are running on zsh, and set the options which allow our
15005 # commands through without removal of \ escapes.
15006 if test -n "${ZSH_VERSION+set}" ; then
15007 setopt NO_GLOB_SUBST
15008 fi
15009
15010 cfgfile="${ofile}T"
15011 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15012 $RM "$cfgfile"
15013
15014 cat <<_LT_EOF >> "$cfgfile"
15015#! $SHELL
15016
15017# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15018# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15019# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15020# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15021#
15022# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15023# 2006, 2007, 2008 Free Software Foundation, Inc.
15024# Written by Gordon Matzigkeit, 1996
15025#
15026# This file is part of GNU Libtool.
15027#
15028# GNU Libtool is free software; you can redistribute it and/or
15029# modify it under the terms of the GNU General Public License as
15030# published by the Free Software Foundation; either version 2 of
15031# the License, or (at your option) any later version.
15032#
15033# As a special exception to the GNU General Public License,
15034# if you distribute this file as part of a program or library that
15035# is built using GNU Libtool, you may include this file under the
15036# same distribution terms that you use for the rest of that program.
15037#
15038# GNU Libtool is distributed in the hope that it will be useful,
15039# but WITHOUT ANY WARRANTY; without even the implied warranty of
15040# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15041# GNU General Public License for more details.
15042#
15043# You should have received a copy of the GNU General Public License
15044# along with GNU Libtool; see the file COPYING. If not, a copy
15045# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15046# obtained by writing to the Free Software Foundation, Inc.,
15047# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15048
15049
15050# The names of the tagged configurations supported by this script.
15051available_tags=""
15052
15053# ### BEGIN LIBTOOL CONFIG
15054
15055# Which release of libtool.m4 was used?
15056macro_version=$macro_version
15057macro_revision=$macro_revision
15058
15059# Whether or not to build shared libraries.
15060build_libtool_libs=$enable_shared
15061
15062# Whether or not to build static libraries.
15063build_old_libs=$enable_static
15064
15065# What type of objects to build.
15066pic_mode=$pic_mode
15067
15068# Whether or not to optimize for fast installation.
15069fast_install=$enable_fast_install
15070
15071# The host system.
15072host_alias=$host_alias
15073host=$host
15074host_os=$host_os
15075
15076# The build system.
15077build_alias=$build_alias
15078build=$build
15079build_os=$build_os
15080
15081# A sed program that does not truncate output.
15082SED=$lt_SED
15083
15084# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15085Xsed="\$SED -e 1s/^X//"
15086
15087# A grep program that handles long lines.
15088GREP=$lt_GREP
15089
15090# An ERE matcher.
15091EGREP=$lt_EGREP
15092
15093# A literal string matcher.
15094FGREP=$lt_FGREP
15095
15096# A BSD- or MS-compatible name lister.
15097NM=$lt_NM
15098
15099# Whether we need soft or hard links.
15100LN_S=$lt_LN_S
15101
15102# What is the maximum length of a command?
15103max_cmd_len=$max_cmd_len
15104
15105# Object file suffix (normally "o").
15106objext=$ac_objext
15107
15108# Executable file suffix (normally "").
15109exeext=$exeext
15110
15111# whether the shell understands "unset".
15112lt_unset=$lt_unset
15113
15114# turn spaces into newlines.
15115SP2NL=$lt_lt_SP2NL
15116
15117# turn newlines into spaces.
15118NL2SP=$lt_lt_NL2SP
15119
15120# How to create reloadable object files.
15121reload_flag=$lt_reload_flag
15122reload_cmds=$lt_reload_cmds
15123
vapier6acb2cf2009-01-28 04:46:28 +000015124# An object symbol dumper.
15125OBJDUMP=$lt_OBJDUMP
15126
mlcreech636a9952008-05-05 22:52:56 +000015127# Method to check whether dependent libraries are shared objects.
15128deplibs_check_method=$lt_deplibs_check_method
15129
15130# Command to use when deplibs_check_method == "file_magic".
15131file_magic_cmd=$lt_file_magic_cmd
15132
15133# The archiver.
15134AR=$lt_AR
15135AR_FLAGS=$lt_AR_FLAGS
15136
15137# A symbol stripping program.
15138STRIP=$lt_STRIP
15139
15140# Commands used to install an old-style archive.
15141RANLIB=$lt_RANLIB
15142old_postinstall_cmds=$lt_old_postinstall_cmds
15143old_postuninstall_cmds=$lt_old_postuninstall_cmds
15144
15145# A C compiler.
15146LTCC=$lt_CC
15147
15148# LTCC compiler flags.
15149LTCFLAGS=$lt_CFLAGS
15150
15151# Take the output of nm and produce a listing of raw symbols and C names.
15152global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15153
15154# Transform the output of nm in a proper C declaration.
15155global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15156
15157# Transform the output of nm in a C name address pair.
15158global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15159
15160# Transform the output of nm in a C name address pair when lib prefix is needed.
15161global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15162
15163# The name of the directory that contains temporary libtool files.
15164objdir=$objdir
15165
15166# Shell to use when invoking shell scripts.
15167SHELL=$lt_SHELL
15168
15169# An echo program that does not interpret backslashes.
15170ECHO=$lt_ECHO
15171
15172# Used to examine libraries when file_magic_cmd begins with "file".
15173MAGIC_CMD=$MAGIC_CMD
15174
15175# Must we lock files when doing compilation?
15176need_locks=$lt_need_locks
15177
15178# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15179DSYMUTIL=$lt_DSYMUTIL
15180
15181# Tool to change global to local symbols on Mac OS X.
15182NMEDIT=$lt_NMEDIT
15183
15184# Tool to manipulate fat objects and archives on Mac OS X.
15185LIPO=$lt_LIPO
15186
15187# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15188OTOOL=$lt_OTOOL
15189
15190# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15191OTOOL64=$lt_OTOOL64
15192
15193# Old archive suffix (normally "a").
15194libext=$libext
15195
15196# Shared library suffix (normally ".so").
15197shrext_cmds=$lt_shrext_cmds
15198
15199# The commands to extract the exported symbol list from a shared archive.
15200extract_expsyms_cmds=$lt_extract_expsyms_cmds
15201
15202# Variables whose values should be saved in libtool wrapper scripts and
15203# restored at link time.
15204variables_saved_for_relink=$lt_variables_saved_for_relink
15205
15206# Do we need the "lib" prefix for modules?
15207need_lib_prefix=$need_lib_prefix
15208
15209# Do we need a version for libraries?
15210need_version=$need_version
15211
15212# Library versioning type.
15213version_type=$version_type
15214
15215# Shared library runtime path variable.
15216runpath_var=$runpath_var
15217
15218# Shared library path variable.
15219shlibpath_var=$shlibpath_var
15220
15221# Is shlibpath searched before the hard-coded library search path?
15222shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15223
15224# Format of library name prefix.
15225libname_spec=$lt_libname_spec
15226
15227# List of archive names. First name is the real one, the rest are links.
15228# The last name is the one that the linker finds with -lNAME
15229library_names_spec=$lt_library_names_spec
15230
15231# The coded name of the library, if different from the real name.
15232soname_spec=$lt_soname_spec
15233
15234# Command to use after installation of a shared archive.
15235postinstall_cmds=$lt_postinstall_cmds
15236
15237# Command to use after uninstallation of a shared archive.
15238postuninstall_cmds=$lt_postuninstall_cmds
15239
15240# Commands used to finish a libtool library installation in a directory.
15241finish_cmds=$lt_finish_cmds
15242
15243# As "finish_cmds", except a single script fragment to be evaled but
15244# not shown.
15245finish_eval=$lt_finish_eval
15246
15247# Whether we should hardcode library paths into libraries.
15248hardcode_into_libs=$hardcode_into_libs
15249
15250# Compile-time system search path for libraries.
15251sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15252
15253# Run-time system search path for libraries.
15254sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15255
15256# Whether dlopen is supported.
15257dlopen_support=$enable_dlopen
15258
15259# Whether dlopen of programs is supported.
15260dlopen_self=$enable_dlopen_self
15261
15262# Whether dlopen of statically linked programs is supported.
15263dlopen_self_static=$enable_dlopen_self_static
15264
15265# Commands to strip libraries.
15266old_striplib=$lt_old_striplib
15267striplib=$lt_striplib
15268
15269
15270# The linker used to build libraries.
15271LD=$lt_LD
15272
15273# Commands used to build an old-style archive.
15274old_archive_cmds=$lt_old_archive_cmds
15275
15276# A language specific compiler.
15277CC=$lt_compiler
15278
15279# Is the compiler the GNU compiler?
15280with_gcc=$GCC
15281
15282# Compiler flag to turn off builtin functions.
15283no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15284
15285# How to pass a linker flag through the compiler.
15286wl=$lt_lt_prog_compiler_wl
15287
15288# Additional compiler flags for building library objects.
15289pic_flag=$lt_lt_prog_compiler_pic
15290
15291# Compiler flag to prevent dynamic linking.
15292link_static_flag=$lt_lt_prog_compiler_static
15293
15294# Does compiler simultaneously support -c and -o options?
15295compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15296
15297# Whether or not to add -lc for building shared libraries.
15298build_libtool_need_lc=$archive_cmds_need_lc
15299
15300# Whether or not to disallow shared libs when runtime libs are static.
15301allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15302
15303# Compiler flag to allow reflexive dlopens.
15304export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15305
15306# Compiler flag to generate shared objects directly from archives.
15307whole_archive_flag_spec=$lt_whole_archive_flag_spec
15308
15309# Whether the compiler copes with passing no objects directly.
15310compiler_needs_object=$lt_compiler_needs_object
15311
15312# Create an old-style archive from a shared archive.
15313old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15314
15315# Create a temporary old-style archive to link instead of a shared archive.
15316old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15317
15318# Commands used to build a shared archive.
15319archive_cmds=$lt_archive_cmds
15320archive_expsym_cmds=$lt_archive_expsym_cmds
15321
15322# Commands used to build a loadable module if different from building
15323# a shared archive.
15324module_cmds=$lt_module_cmds
15325module_expsym_cmds=$lt_module_expsym_cmds
15326
15327# Whether we are building with GNU ld or not.
15328with_gnu_ld=$lt_with_gnu_ld
15329
15330# Flag that allows shared libraries with undefined symbols to be built.
15331allow_undefined_flag=$lt_allow_undefined_flag
15332
15333# Flag that enforces no undefined symbols.
15334no_undefined_flag=$lt_no_undefined_flag
15335
15336# Flag to hardcode \$libdir into a binary during linking.
15337# This must work even if \$libdir does not exist
15338hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15339
15340# If ld is used when linking, flag to hardcode \$libdir into a binary
15341# during linking. This must work even if \$libdir does not exist.
15342hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15343
15344# Whether we need a single "-rpath" flag with a separated argument.
15345hardcode_libdir_separator=$lt_hardcode_libdir_separator
15346
15347# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15348# DIR into the resulting binary.
15349hardcode_direct=$hardcode_direct
15350
15351# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15352# DIR into the resulting binary and the resulting library dependency is
15353# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15354# library is relocated.
15355hardcode_direct_absolute=$hardcode_direct_absolute
15356
15357# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15358# into the resulting binary.
15359hardcode_minus_L=$hardcode_minus_L
15360
15361# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15362# into the resulting binary.
15363hardcode_shlibpath_var=$hardcode_shlibpath_var
15364
15365# Set to "yes" if building a shared library automatically hardcodes DIR
15366# into the library and all subsequent libraries and executables linked
15367# against it.
15368hardcode_automatic=$hardcode_automatic
15369
15370# Set to yes if linker adds runtime paths of dependent libraries
15371# to runtime path list.
15372inherit_rpath=$inherit_rpath
15373
15374# Whether libtool must link a program against all its dependency libraries.
15375link_all_deplibs=$link_all_deplibs
15376
15377# Fix the shell variable \$srcfile for the compiler.
15378fix_srcfile_path=$lt_fix_srcfile_path
15379
15380# Set to "yes" if exported symbols are required.
15381always_export_symbols=$always_export_symbols
15382
15383# The commands to list exported symbols.
15384export_symbols_cmds=$lt_export_symbols_cmds
15385
15386# Symbols that should not be listed in the preloaded symbols.
15387exclude_expsyms=$lt_exclude_expsyms
15388
15389# Symbols that must always be exported.
15390include_expsyms=$lt_include_expsyms
15391
15392# Commands necessary for linking programs (against libraries) with templates.
15393prelink_cmds=$lt_prelink_cmds
15394
15395# Specify filename containing input files.
15396file_list_spec=$lt_file_list_spec
15397
15398# How to hardcode a shared library path into an executable.
15399hardcode_action=$hardcode_action
15400
15401# ### END LIBTOOL CONFIG
15402
15403_LT_EOF
15404
15405 case $host_os in
15406 aix3*)
15407 cat <<\_LT_EOF >> "$cfgfile"
15408# AIX sometimes has problems with the GCC collect2 program. For some
15409# reason, if we set the COLLECT_NAMES environment variable, the problems
15410# vanish in a puff of smoke.
15411if test "X${COLLECT_NAMES+set}" != Xset; then
15412 COLLECT_NAMES=
15413 export COLLECT_NAMES
15414fi
15415_LT_EOF
15416 ;;
15417 esac
15418
15419
15420ltmain="$ac_aux_dir/ltmain.sh"
15421
15422
15423 # We use sed instead of cat because bash on DJGPP gets confused if
15424 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15425 # text mode, it properly converts lines to CR/LF. This bash problem
15426 # is reportedly fixed, but why not run on old versions too?
15427 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15428 || (rm -f "$cfgfile"; exit 1)
15429
15430 case $xsi_shell in
15431 yes)
15432 cat << \_LT_EOF >> "$cfgfile"
15433
15434# func_dirname file append nondir_replacement
15435# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15436# otherwise set result to NONDIR_REPLACEMENT.
15437func_dirname ()
15438{
15439 case ${1} in
15440 */*) func_dirname_result="${1%/*}${2}" ;;
15441 * ) func_dirname_result="${3}" ;;
15442 esac
15443}
15444
15445# func_basename file
15446func_basename ()
15447{
15448 func_basename_result="${1##*/}"
15449}
15450
15451# func_dirname_and_basename file append nondir_replacement
15452# perform func_basename and func_dirname in a single function
15453# call:
15454# dirname: Compute the dirname of FILE. If nonempty,
15455# add APPEND to the result, otherwise set result
15456# to NONDIR_REPLACEMENT.
15457# value returned in "$func_dirname_result"
15458# basename: Compute filename of FILE.
15459# value retuned in "$func_basename_result"
15460# Implementation must be kept synchronized with func_dirname
15461# and func_basename. For efficiency, we do not delegate to
15462# those functions but instead duplicate the functionality here.
15463func_dirname_and_basename ()
15464{
15465 case ${1} in
15466 */*) func_dirname_result="${1%/*}${2}" ;;
15467 * ) func_dirname_result="${3}" ;;
15468 esac
15469 func_basename_result="${1##*/}"
15470}
15471
15472# func_stripname prefix suffix name
15473# strip PREFIX and SUFFIX off of NAME.
15474# PREFIX and SUFFIX must not contain globbing or regex special
15475# characters, hashes, percent signs, but SUFFIX may contain a leading
15476# dot (in which case that matches only a dot).
15477func_stripname ()
15478{
15479 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15480 # positional parameters, so assign one to ordinary parameter first.
15481 func_stripname_result=${3}
15482 func_stripname_result=${func_stripname_result#"${1}"}
15483 func_stripname_result=${func_stripname_result%"${2}"}
15484}
15485
15486# func_opt_split
15487func_opt_split ()
15488{
15489 func_opt_split_opt=${1%%=*}
15490 func_opt_split_arg=${1#*=}
15491}
15492
15493# func_lo2o object
15494func_lo2o ()
15495{
15496 case ${1} in
15497 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15498 *) func_lo2o_result=${1} ;;
15499 esac
15500}
15501
15502# func_xform libobj-or-source
15503func_xform ()
15504{
15505 func_xform_result=${1%.*}.lo
15506}
15507
15508# func_arith arithmetic-term...
15509func_arith ()
15510{
15511 func_arith_result=$(( $* ))
15512}
15513
15514# func_len string
15515# STRING may not start with a hyphen.
15516func_len ()
15517{
15518 func_len_result=${#1}
15519}
15520
15521_LT_EOF
15522 ;;
15523 *) # Bourne compatible functions.
15524 cat << \_LT_EOF >> "$cfgfile"
15525
15526# func_dirname file append nondir_replacement
15527# Compute the dirname of FILE. If nonempty, add APPEND to the result,
15528# otherwise set result to NONDIR_REPLACEMENT.
15529func_dirname ()
15530{
15531 # Extract subdirectory from the argument.
15532 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15533 if test "X$func_dirname_result" = "X${1}"; then
15534 func_dirname_result="${3}"
15535 else
15536 func_dirname_result="$func_dirname_result${2}"
15537 fi
15538}
15539
15540# func_basename file
15541func_basename ()
15542{
15543 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15544}
15545
15546
15547# func_stripname prefix suffix name
15548# strip PREFIX and SUFFIX off of NAME.
15549# PREFIX and SUFFIX must not contain globbing or regex special
15550# characters, hashes, percent signs, but SUFFIX may contain a leading
15551# dot (in which case that matches only a dot).
15552# func_strip_suffix prefix name
15553func_stripname ()
15554{
15555 case ${2} in
15556 .*) func_stripname_result=`$ECHO "X${3}" \
15557 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15558 *) func_stripname_result=`$ECHO "X${3}" \
15559 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15560 esac
15561}
15562
15563# sed scripts:
15564my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15565my_sed_long_arg='1s/^-[^=]*=//'
15566
15567# func_opt_split
15568func_opt_split ()
15569{
15570 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15571 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15572}
15573
15574# func_lo2o object
15575func_lo2o ()
15576{
15577 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15578}
15579
15580# func_xform libobj-or-source
15581func_xform ()
15582{
15583 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15584}
15585
15586# func_arith arithmetic-term...
15587func_arith ()
15588{
15589 func_arith_result=`expr "$@"`
15590}
15591
15592# func_len string
15593# STRING may not start with a hyphen.
15594func_len ()
15595{
15596 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15597}
15598
15599_LT_EOF
15600esac
15601
15602case $lt_shell_append in
15603 yes)
15604 cat << \_LT_EOF >> "$cfgfile"
15605
15606# func_append var value
15607# Append VALUE to the end of shell variable VAR.
15608func_append ()
15609{
15610 eval "$1+=\$2"
15611}
15612_LT_EOF
15613 ;;
15614 *)
15615 cat << \_LT_EOF >> "$cfgfile"
15616
15617# func_append var value
15618# Append VALUE to the end of shell variable VAR.
15619func_append ()
15620{
15621 eval "$1=\$$1\$2"
15622}
15623
15624_LT_EOF
15625 ;;
15626 esac
15627
15628
15629 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15630 || (rm -f "$cfgfile"; exit 1)
15631
15632 mv -f "$cfgfile" "$ofile" ||
15633 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15634 chmod +x "$ofile"
15635
15636 ;;
mlcreech94984912008-03-04 19:03:08 +000015637
drh8b727472009-01-19 18:18:40 +000015638 esac
15639done # for ac_tag
15640
drh71eb93e2001-09-28 01:34:43 +000015641
drh710658c2012-01-16 13:00:05 +000015642{ (exit 0); exit 0; }
a.rottmann84e63352003-03-24 09:42:16 +000015643_ACEOF
drh710658c2012-01-16 13:00:05 +000015644chmod +x $CONFIG_STATUS
drh71eb93e2001-09-28 01:34:43 +000015645ac_clean_files=$ac_clean_files_save
15646
drh8b727472009-01-19 18:18:40 +000015647test $ac_write_fail = 0 ||
drh710658c2012-01-16 13:00:05 +000015648 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
15649$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
15650 { (exit 1); exit 1; }; }
drh8b727472009-01-19 18:18:40 +000015651
a.rottmann84e63352003-03-24 09:42:16 +000015652
drh71eb93e2001-09-28 01:34:43 +000015653# configure is writing to config.log, and then calls config.status.
15654# config.status does its own redirection, appending to config.log.
15655# Unfortunately, on DOS this fails, as config.log is still kept open
15656# by configure, so config.status won't be able to write to it; its
15657# output is simply discarded. So we exec the FD to /dev/null,
15658# effectively closing config.log, so it can be properly (re)opened and
15659# appended to by config.status. When coming back to configure, we
15660# need to make the FD available again.
15661if test "$no_create" != yes; then
15662 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000015663 ac_config_status_args=
15664 test "$silent" = yes &&
15665 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000015666 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000015667 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000015668 exec 5>>config.log
15669 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15670 # would make configure fail if this is the last instruction.
drh710658c2012-01-16 13:00:05 +000015671 $ac_cs_success || { (exit 1); exit 1; }
drh71eb93e2001-09-28 01:34:43 +000015672fi
drh8b727472009-01-19 18:18:40 +000015673if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
drh710658c2012-01-16 13:00:05 +000015674 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
15675$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
drh8b727472009-01-19 18:18:40 +000015676fi
drhbc7a22d2009-10-13 22:47:13 +000015677