blob: 90cb4d25e8fe5ed387595ad6f9c650a1c2219490 [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.
drh636f5052020-12-02 00:22:09 +00003# Generated by GNU Autoconf 2.69 for sqlite 3.35.0.
drh75897232000-05-29 14:26:00 +00004#
drhf922ca42015-05-14 15:39:18 +00005#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
drh75897232000-05-29 14:26:00 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
drhf922ca42015-05-14 15:39:18 +000011## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000014
drh8b727472009-01-19 18:18:40 +000015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
drhf922ca42015-05-14 15:39:18 +000017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
a.rottmann84e63352003-03-24 09:42:16 +000018 emulate sh
19 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000023 setopt NO_GLOB_SUBST
24else
drhf922ca42015-05-14 15:39:18 +000025 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
drh8b727472009-01-19 18:18:40 +000030esac
a.rottmann84e63352003-03-24 09:42:16 +000031fi
drh8b727472009-01-19 18:18:40 +000032
33
drh8b727472009-01-19 18:18:40 +000034as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
drhf922ca42015-05-14 15:39:18 +000041# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (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;
drhf922ca42015-05-14 15:39:18 +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
mlcreech94984912008-03-04 19:03:08 +000081
drh8b727472009-01-19 18:18:40 +000082# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
drhf922ca42015-05-14 15:39:18 +000090as_myself=
91case $0 in #((
drh8b727472009-01-19 18:18:40 +000092 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
drh8b727472009-01-19 18:18:40 +0000100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
drhf922ca42015-05-14 15:39:18 +0000111 exit 1
drh8b727472009-01-19 18:18:40 +0000112fi
113
drhf922ca42015-05-14 15:39:18 +0000114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
drh8b727472009-01-19 18:18:40 +0000121done
mlcreech94984912008-03-04 19:03:08 +0000122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
drh8b727472009-01-19 18:18:40 +0000127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +0000131
drhf922ca42015-05-14 15:39:18 +0000132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417} # as_fn_error
418
drh8b727472009-01-19 18:18:40 +0000419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +0000421 as_expr=expr
422else
423 as_expr=false
424fi
425
drh8b727472009-01-19 18:18:40 +0000426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +0000427 as_basename=basename
428else
429 as_basename=false
430fi
431
drhf922ca42015-05-14 15:39:18 +0000432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
mlcreech94984912008-03-04 19:03:08 +0000437
drh8b727472009-01-19 18:18:40 +0000438as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +0000439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +0000441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
drhf922ca42015-05-14 15:39:18 +0000457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
mlcreech94984912008-03-04 19:03:08 +0000463
464
drhf922ca42015-05-14 15:39:18 +0000465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
drh8b727472009-01-19 18:18:40 +0000470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
a.rottmann84e63352003-03-24 09:42:16 +0000474 sed '
drh8b727472009-01-19 18:18:40 +0000475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
a.rottmann84e63352003-03-24 09:42:16 +0000479 N
drh8b727472009-01-19 18:18:40 +0000480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
a.rottmann84e63352003-03-24 09:42:16 +0000482 t loop
drh8b727472009-01-19 18:18:40 +0000483 s/-\n.*//
a.rottmann84e63352003-03-24 09:42:16 +0000484 ' >$as_me.lineno &&
drh8b727472009-01-19 18:18:40 +0000485 chmod +x "$as_me.lineno" ||
drhf922ca42015-05-14 15:39:18 +0000486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
a.rottmann84e63352003-03-24 09:42:16 +0000487
drhf922ca42015-05-14 15:39:18 +0000488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
a.rottmann84e63352003-03-24 09:42:16 +0000492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
drh8b727472009-01-19 18:18:40 +0000494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
a.rottmann84e63352003-03-24 09:42:16 +0000496 # Exit status is that of the last command.
497 exit
498}
499
drh8b727472009-01-19 18:18:40 +0000500ECHO_C= ECHO_N= ECHO_T=
drhf922ca42015-05-14 15:39:18 +0000501case `echo -n x` in #(((((
drh8b727472009-01-19 18:18:40 +0000502-n*)
drhf922ca42015-05-14 15:39:18 +0000503 case `echo 'xy\c'` in
drh8b727472009-01-19 18:18:40 +0000504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drhf922ca42015-05-14 15:39:18 +0000505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
drh8b727472009-01-19 18:18:40 +0000508 esac;;
509*)
510 ECHO_N='-n';;
511esac
a.rottmann84e63352003-03-24 09:42:16 +0000512
513rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +0000514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +0000522 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +0000523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
drhf922ca42015-05-14 15:39:18 +0000526 # In both cases, we have to default to `cp -pR'.
drh8b727472009-01-19 18:18:40 +0000527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
drhf922ca42015-05-14 15:39:18 +0000528 as_ln_s='cp -pR'
drh8b727472009-01-19 18:18:40 +0000529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
drhf922ca42015-05-14 15:39:18 +0000532 as_ln_s='cp -pR'
mlcreech636a9952008-05-05 22:52:56 +0000533 fi
a.rottmann84e63352003-03-24 09:42:16 +0000534else
drhf922ca42015-05-14 15:39:18 +0000535 as_ln_s='cp -pR'
a.rottmann84e63352003-03-24 09:42:16 +0000536fi
drh8b727472009-01-19 18:18:40 +0000537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +0000539
540if mkdir -p . 2>/dev/null; then
drhf922ca42015-05-14 15:39:18 +0000541 as_mkdir_p='mkdir -p "$as_dir"'
a.rottmann84e63352003-03-24 09:42:16 +0000542else
a.rottmann964dbb12004-02-26 19:47:42 +0000543 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +0000544 as_mkdir_p=false
545fi
546
drhf922ca42015-05-14 15:39:18 +0000547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
a.rottmann84e63352003-03-24 09:42:16 +0000549
550# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +0000551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000552
553# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +0000554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +0000555
556
drh75897232000-05-29 14:26:00 +0000557
drh71eb93e2001-09-28 01:34:43 +0000558# Check that we are running under the correct shell.
559SHELL=${CONFIG_SHELL-/bin/sh}
560
mlcreech636a9952008-05-05 22:52:56 +0000561case X$lt_ECHO in
drh71eb93e2001-09-28 01:34:43 +0000562X*--fallback-echo)
563 # Remove one level of quotation (which was required for Make).
mlcreech636a9952008-05-05 22:52:56 +0000564 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
drh71eb93e2001-09-28 01:34:43 +0000565 ;;
566esac
567
mlcreech636a9952008-05-05 22:52:56 +0000568ECHO=${lt_ECHO-echo}
drh71eb93e2001-09-28 01:34:43 +0000569if test "X$1" = X--no-reexec; then
570 # Discard the --no-reexec flag, and continue.
571 shift
572elif test "X$1" = X--fallback-echo; then
573 # Avoid inline document here, it may be left over
574 :
mlcreech636a9952008-05-05 22:52:56 +0000575elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
576 # Yippee, $ECHO works!
drh71eb93e2001-09-28 01:34:43 +0000577 :
578else
579 # Restart under the correct shell.
580 exec $SHELL "$0" --no-reexec ${1+"$@"}
581fi
582
583if test "X$1" = X--fallback-echo; then
584 # used as fallback echo
585 shift
mlcreech636a9952008-05-05 22:52:56 +0000586 cat <<_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +0000587$*
mlcreech636a9952008-05-05 22:52:56 +0000588_LT_EOF
drh71eb93e2001-09-28 01:34:43 +0000589 exit 0
590fi
591
592# The HP-UX ksh and POSIX shell print the target directory to stdout
593# if CDPATH is set.
vapier7f19c022007-02-17 14:46:31 +0000594(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
drh71eb93e2001-09-28 01:34:43 +0000595
mlcreech636a9952008-05-05 22:52:56 +0000596if test -z "$lt_ECHO"; then
597 if test "X${echo_test_string+set}" != Xset; then
598 # find a string as large as possible, as long as the shell can cope with it
599 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
600 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
601 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
602 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
603 then
604 break
605 fi
606 done
607 fi
drh71eb93e2001-09-28 01:34:43 +0000608
mlcreech636a9952008-05-05 22:52:56 +0000609 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
610 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
611 test "X$echo_testing_string" = "X$echo_test_string"; then
612 :
613 else
614 # The Solaris, AIX, and Digital Unix default echo programs unquote
615 # backslashes. This makes it impossible to quote backslashes using
616 # echo "$something" | sed 's/\\/\\\\/g'
617 #
618 # So, first we look for a working echo in the user's PATH.
drh71eb93e2001-09-28 01:34:43 +0000619
mlcreech636a9952008-05-05 22:52:56 +0000620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621 for dir in $PATH /usr/ucb; do
622 IFS="$lt_save_ifs"
623 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
627 ECHO="$dir/echo"
628 break
629 fi
630 done
a.rottmann9bc8b932004-02-29 15:18:31 +0000631 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +0000632
mlcreech636a9952008-05-05 22:52:56 +0000633 if test "X$ECHO" = Xecho; then
634 # We didn't find a better echo, so look for alternatives.
635 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
636 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
637 test "X$echo_testing_string" = "X$echo_test_string"; then
638 # This shell has a builtin print -r that does the trick.
639 ECHO='print -r'
640 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
641 test "X$CONFIG_SHELL" != X/bin/ksh; then
642 # If we have ksh, try running configure again with it.
643 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644 export ORIGINAL_CONFIG_SHELL
645 CONFIG_SHELL=/bin/ksh
646 export CONFIG_SHELL
647 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
drh71eb93e2001-09-28 01:34:43 +0000648 else
mlcreech636a9952008-05-05 22:52:56 +0000649 # Try using printf.
650 ECHO='printf %s\n'
651 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
652 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
653 test "X$echo_testing_string" = "X$echo_test_string"; then
654 # Cool, printf works
655 :
656 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657 test "X$echo_testing_string" = 'X\t' &&
658 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659 test "X$echo_testing_string" = "X$echo_test_string"; then
660 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661 export CONFIG_SHELL
662 SHELL="$CONFIG_SHELL"
663 export SHELL
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
665 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666 test "X$echo_testing_string" = 'X\t' &&
667 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668 test "X$echo_testing_string" = "X$echo_test_string"; then
669 ECHO="$CONFIG_SHELL $0 --fallback-echo"
670 else
671 # maybe with a smaller string...
672 prev=:
drh71eb93e2001-09-28 01:34:43 +0000673
mlcreech636a9952008-05-05 22:52:56 +0000674 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
676 then
677 break
678 fi
679 prev="$cmd"
680 done
681
682 if test "$prev" != 'sed 50q "$0"'; then
683 echo_test_string=`eval $prev`
684 export echo_test_string
685 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686 else
687 # Oops. We lost completely, so just stick with echo.
688 ECHO=echo
drh71eb93e2001-09-28 01:34:43 +0000689 fi
mlcreech636a9952008-05-05 22:52:56 +0000690 fi
drh71eb93e2001-09-28 01:34:43 +0000691 fi
692 fi
693 fi
694fi
drh71eb93e2001-09-28 01:34:43 +0000695
696# Copy echo and quote the copy suitably for passing to libtool from
697# the Makefile, instead of quoting the original, which is used later.
mlcreech636a9952008-05-05 22:52:56 +0000698lt_ECHO=$ECHO
699if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
drh71eb93e2001-09-28 01:34:43 +0000701fi
702
drh71eb93e2001-09-28 01:34:43 +0000703
drh71eb93e2001-09-28 01:34:43 +0000704
a.rottmann9bc8b932004-02-29 15:18:31 +0000705
drhf922ca42015-05-14 15:39:18 +0000706test -n "$DJDIR" || exec 7<&0 </dev/null
707exec 6>&1
drh8b727472009-01-19 18:18:40 +0000708
drh71eb93e2001-09-28 01:34:43 +0000709# Name of the host.
drhf922ca42015-05-14 15:39:18 +0000710# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
drh71eb93e2001-09-28 01:34:43 +0000711# so uname gets run too.
712ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
713
drh71eb93e2001-09-28 01:34:43 +0000714#
715# Initializations.
716#
drh75897232000-05-29 14:26:00 +0000717ac_default_prefix=/usr/local
drh8b727472009-01-19 18:18:40 +0000718ac_clean_files=
a.rottmann84e63352003-03-24 09:42:16 +0000719ac_config_libobj_dir=.
drh8b727472009-01-19 18:18:40 +0000720LIBOBJS=
drh71eb93e2001-09-28 01:34:43 +0000721cross_compiling=no
722subdirs=
a.rottmann84e63352003-03-24 09:42:16 +0000723MFLAGS=
724MAKEFLAGS=
drh71eb93e2001-09-28 01:34:43 +0000725
a.rottmann84e63352003-03-24 09:42:16 +0000726# Identity of this package.
mlcreechb87057f2008-03-06 07:19:20 +0000727PACKAGE_NAME='sqlite'
728PACKAGE_TARNAME='sqlite'
drh636f5052020-12-02 00:22:09 +0000729PACKAGE_VERSION='3.35.0'
730PACKAGE_STRING='sqlite 3.35.0'
mlcreechb87057f2008-03-06 07:19:20 +0000731PACKAGE_BUGREPORT=''
drhf922ca42015-05-14 15:39:18 +0000732PACKAGE_URL=''
a.rottmann84e63352003-03-24 09:42:16 +0000733
a.rottmann84e63352003-03-24 09:42:16 +0000734# Factoring default headers for most tests.
735ac_includes_default="\
736#include <stdio.h>
drh8b727472009-01-19 18:18:40 +0000737#ifdef HAVE_SYS_TYPES_H
danielk197733a14782008-08-04 14:50:05 +0000738# include <sys/types.h>
739#endif
drh8b727472009-01-19 18:18:40 +0000740#ifdef HAVE_SYS_STAT_H
a.rottmann84e63352003-03-24 09:42:16 +0000741# include <sys/stat.h>
742#endif
drh8b727472009-01-19 18:18:40 +0000743#ifdef STDC_HEADERS
a.rottmann84e63352003-03-24 09:42:16 +0000744# include <stdlib.h>
745# include <stddef.h>
746#else
drh8b727472009-01-19 18:18:40 +0000747# ifdef HAVE_STDLIB_H
danielk197733a14782008-08-04 14:50:05 +0000748# include <stdlib.h>
749# endif
a.rottmann84e63352003-03-24 09:42:16 +0000750#endif
drh8b727472009-01-19 18:18:40 +0000751#ifdef HAVE_STRING_H
752# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
a.rottmann84e63352003-03-24 09:42:16 +0000753# include <memory.h>
754# endif
755# include <string.h>
756#endif
drh8b727472009-01-19 18:18:40 +0000757#ifdef HAVE_STRINGS_H
a.rottmann84e63352003-03-24 09:42:16 +0000758# include <strings.h>
759#endif
drh8b727472009-01-19 18:18:40 +0000760#ifdef HAVE_INTTYPES_H
a.rottmann84e63352003-03-24 09:42:16 +0000761# include <inttypes.h>
a.rottmann84e63352003-03-24 09:42:16 +0000762#endif
drh8b727472009-01-19 18:18:40 +0000763#ifdef HAVE_STDINT_H
764# include <stdint.h>
765#endif
766#ifdef HAVE_UNISTD_H
a.rottmann84e63352003-03-24 09:42:16 +0000767# include <unistd.h>
768#endif"
769
drhf922ca42015-05-14 15:39:18 +0000770ac_subst_vars='LTLIBOBJS
drh710658c2012-01-16 13:00:05 +0000771LIBOBJS
drhf922ca42015-05-14 15:39:18 +0000772BUILD_CFLAGS
773USE_GCOV
774OPT_FEATURE_FLAGS
drh56c93112017-11-24 16:55:48 +0000775HAVE_ZLIB
drhf922ca42015-05-14 15:39:18 +0000776USE_AMALGAMATION
777TARGET_DEBUG
drhe44b8352015-10-30 14:25:57 +0000778TARGET_HAVE_EDITLINE
drhf922ca42015-05-14 15:39:18 +0000779TARGET_HAVE_READLINE
780TARGET_READLINE_INC
781TARGET_READLINE_LIBS
782HAVE_TCL
783TCL_SHLIB_SUFFIX
784TCL_STUB_LIB_SPEC
785TCL_STUB_LIB_FLAG
786TCL_STUB_LIB_FILE
787TCL_LIB_SPEC
788TCL_LIB_FLAG
789TCL_LIB_FILE
790TCL_INCLUDE_SPEC
791TCL_SRC_DIR
792TCL_BIN_DIR
793TCL_VERSION
794TARGET_EXEEXT
795SQLITE_OS_WIN
796SQLITE_OS_UNIX
797BUILD_EXEEXT
798TEMP_STORE
799ALLOWRELEASE
800SQLITE_THREADSAFE
801BUILD_CC
drhf922ca42015-05-14 15:39:18 +0000802RELEASE
803VERSION
804program_prefix
805TCLLIBDIR
806TCLSH_CMD
drhf922ca42015-05-14 15:39:18 +0000807INSTALL_DATA
808INSTALL_SCRIPT
809INSTALL_PROGRAM
810CPP
811OTOOL64
812OTOOL
813LIPO
814NMEDIT
815DSYMUTIL
816lt_ECHO
817RANLIB
818STRIP
819AR
820OBJDUMP
821LN_S
822NM
823ac_ct_DUMPBIN
824DUMPBIN
825LD
826FGREP
827EGREP
828GREP
829SED
830OBJEXT
831EXEEXT
832ac_ct_CC
833CPPFLAGS
834LDFLAGS
835CFLAGS
836CC
837host_os
838host_vendor
839host_cpu
840host
841build_os
842build_vendor
843build_cpu
844build
845LIBTOOL
846target_alias
847host_alias
848build_alias
849LIBS
850ECHO_T
851ECHO_N
852ECHO_C
853DEFS
854mandir
855localedir
856libdir
857psdir
858pdfdir
859dvidir
860htmldir
861infodir
862docdir
863oldincludedir
864includedir
865localstatedir
866sharedstatedir
867sysconfdir
868datadir
869datarootdir
870libexecdir
871sbindir
872bindir
873program_transform_name
874prefix
875exec_prefix
876PACKAGE_URL
877PACKAGE_BUGREPORT
878PACKAGE_STRING
879PACKAGE_VERSION
880PACKAGE_TARNAME
881PACKAGE_NAME
882PATH_SEPARATOR
883SHELL'
a.rottmann84e63352003-03-24 09:42:16 +0000884ac_subst_files=''
drh8b727472009-01-19 18:18:40 +0000885ac_user_opts='
886enable_option_checking
887enable_shared
888enable_static
889with_pic
890enable_fast_install
891with_gnu_ld
892enable_libtool_lock
893enable_largefile
drh8b727472009-01-19 18:18:40 +0000894enable_threadsafe
drh8b727472009-01-19 18:18:40 +0000895enable_releasemode
896enable_tempstore
897enable_tcl
898with_tcl
drhe44b8352015-10-30 14:25:57 +0000899enable_editline
drh8b727472009-01-19 18:18:40 +0000900enable_readline
901with_readline_lib
902with_readline_inc
903enable_debug
904enable_amalgamation
905enable_load_extension
drhc530b9c2016-07-25 11:27:22 +0000906enable_memsys5
drh5d513ba2016-07-25 11:57:21 +0000907enable_memsys3
drh29368ea2019-12-28 13:17:11 +0000908enable_all
drhce1d9f52015-10-09 12:48:33 +0000909enable_fts3
910enable_fts4
911enable_fts5
912enable_json1
drh83bebdd2017-08-28 17:00:12 +0000913enable_update_limit
drh748b8fd2018-05-25 19:22:47 +0000914enable_geopoly
drhce1d9f52015-10-09 12:48:33 +0000915enable_rtree
drh5e18d402016-05-03 13:14:18 +0000916enable_session
drh8b727472009-01-19 18:18:40 +0000917enable_gcov
918'
919 ac_precious_vars='build_alias
920host_alias
921target_alias
922CC
923CFLAGS
924LDFLAGS
925LIBS
926CPPFLAGS
vapier6acb2cf2009-01-28 04:46:28 +0000927CPP
928TCLLIBDIR'
drh8b727472009-01-19 18:18:40 +0000929
drh75897232000-05-29 14:26:00 +0000930
931# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000932ac_init_help=
933ac_init_version=false
drh8b727472009-01-19 18:18:40 +0000934ac_unrecognized_opts=
935ac_unrecognized_sep=
drh75897232000-05-29 14:26:00 +0000936# The variables have the same names as the options, with
937# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000938cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000939exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000940no_create=
drh75897232000-05-29 14:26:00 +0000941no_recursion=
942prefix=NONE
943program_prefix=NONE
944program_suffix=NONE
945program_transform_name=s,x,x,
946silent=
947site=
948srcdir=
drh75897232000-05-29 14:26:00 +0000949verbose=
950x_includes=NONE
951x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000952
953# Installation directory options.
954# These are left unexpanded so users can "make install exec_prefix=/foo"
955# and all the variables that are supposed to be based on exec_prefix
956# by default will actually change.
957# Use braces instead of parens because sh, perl, etc. also accept them.
drh8b727472009-01-19 18:18:40 +0000958# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000959bindir='${exec_prefix}/bin'
960sbindir='${exec_prefix}/sbin'
961libexecdir='${exec_prefix}/libexec'
drh8b727472009-01-19 18:18:40 +0000962datarootdir='${prefix}/share'
963datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000964sysconfdir='${prefix}/etc'
965sharedstatedir='${prefix}/com'
966localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000967includedir='${prefix}/include'
968oldincludedir='/usr/include'
drh8b727472009-01-19 18:18:40 +0000969docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
970infodir='${datarootdir}/info'
971htmldir='${docdir}'
972dvidir='${docdir}'
973pdfdir='${docdir}'
974psdir='${docdir}'
975libdir='${exec_prefix}/lib'
976localedir='${datarootdir}/locale'
977mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000978
drh75897232000-05-29 14:26:00 +0000979ac_prev=
drh8b727472009-01-19 18:18:40 +0000980ac_dashdash=
drh75897232000-05-29 14:26:00 +0000981for ac_option
982do
drh75897232000-05-29 14:26:00 +0000983 # If the previous option needs an argument, assign it.
984 if test -n "$ac_prev"; then
drh8b727472009-01-19 18:18:40 +0000985 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000986 ac_prev=
987 continue
988 fi
989
drh8b727472009-01-19 18:18:40 +0000990 case $ac_option in
drhf922ca42015-05-14 15:39:18 +0000991 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
992 *=) ac_optarg= ;;
993 *) ac_optarg=yes ;;
drh8b727472009-01-19 18:18:40 +0000994 esac
drh75897232000-05-29 14:26:00 +0000995
996 # Accept the important Cygnus configure options, so we can diagnose typos.
997
drh8b727472009-01-19 18:18:40 +0000998 case $ac_dashdash$ac_option in
999 --)
1000 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +00001001
1002 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1003 ac_prev=bindir ;;
1004 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +00001005 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001006
1007 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +00001008 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +00001009 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +00001010 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001011
1012 -cache-file | --cache-file | --cache-fil | --cache-fi \
1013 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1014 ac_prev=cache_file ;;
1015 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1016 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +00001017 cache_file=$ac_optarg ;;
1018
1019 --config-cache | -C)
1020 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +00001021
drh8b727472009-01-19 18:18:40 +00001022 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +00001023 ac_prev=datadir ;;
drh8b727472009-01-19 18:18:40 +00001024 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +00001025 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001026
drh8b727472009-01-19 18:18:40 +00001027 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1028 | --dataroo | --dataro | --datar)
1029 ac_prev=datarootdir ;;
1030 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1031 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1032 datarootdir=$ac_optarg ;;
1033
drh75897232000-05-29 14:26:00 +00001034 -disable-* | --disable-*)
drh8b727472009-01-19 18:18:40 +00001035 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001036 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001038 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001039 ac_useropt_orig=$ac_useropt
1040 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1042 *"
1043"enable_$ac_useropt"
1044"*) ;;
1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1046 ac_unrecognized_sep=', ';;
1047 esac
1048 eval enable_$ac_useropt=no ;;
1049
1050 -docdir | --docdir | --docdi | --doc | --do)
1051 ac_prev=docdir ;;
1052 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1053 docdir=$ac_optarg ;;
1054
1055 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1056 ac_prev=dvidir ;;
1057 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1058 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001059
1060 -enable-* | --enable-*)
drh8b727472009-01-19 18:18:40 +00001061 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001062 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001064 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001065 ac_useropt_orig=$ac_useropt
1066 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067 case $ac_user_opts in
1068 *"
1069"enable_$ac_useropt"
1070"*) ;;
1071 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1072 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001073 esac
drh8b727472009-01-19 18:18:40 +00001074 eval enable_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001075
1076 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1077 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1078 | --exec | --exe | --ex)
1079 ac_prev=exec_prefix ;;
1080 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1081 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1082 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001083 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001084
1085 -gas | --gas | --ga | --g)
1086 # Obsolete; use --with-gas.
1087 with_gas=yes ;;
1088
drh71eb93e2001-09-28 01:34:43 +00001089 -help | --help | --hel | --he | -h)
1090 ac_init_help=long ;;
1091 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1092 ac_init_help=recursive ;;
1093 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1094 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001095
1096 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001097 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001098 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001099 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001100
drh8b727472009-01-19 18:18:40 +00001101 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1102 ac_prev=htmldir ;;
1103 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1104 | --ht=*)
1105 htmldir=$ac_optarg ;;
1106
drh75897232000-05-29 14:26:00 +00001107 -includedir | --includedir | --includedi | --included | --include \
1108 | --includ | --inclu | --incl | --inc)
1109 ac_prev=includedir ;;
1110 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1111 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001112 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001113
1114 -infodir | --infodir | --infodi | --infod | --info | --inf)
1115 ac_prev=infodir ;;
1116 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001117 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001118
1119 -libdir | --libdir | --libdi | --libd)
1120 ac_prev=libdir ;;
1121 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001122 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001123
1124 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1125 | --libexe | --libex | --libe)
1126 ac_prev=libexecdir ;;
1127 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1128 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001129 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001130
drh8b727472009-01-19 18:18:40 +00001131 -localedir | --localedir | --localedi | --localed | --locale)
1132 ac_prev=localedir ;;
1133 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1134 localedir=$ac_optarg ;;
1135
drh75897232000-05-29 14:26:00 +00001136 -localstatedir | --localstatedir | --localstatedi | --localstated \
drh8b727472009-01-19 18:18:40 +00001137 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001138 ac_prev=localstatedir ;;
1139 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh8b727472009-01-19 18:18:40 +00001140 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001141 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001142
1143 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1144 ac_prev=mandir ;;
1145 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001146 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001147
1148 -nfp | --nfp | --nf)
1149 # Obsolete; use --without-fp.
1150 with_fp=no ;;
1151
1152 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001153 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001154 no_create=yes ;;
1155
1156 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1157 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1158 no_recursion=yes ;;
1159
1160 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1161 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1162 | --oldin | --oldi | --old | --ol | --o)
1163 ac_prev=oldincludedir ;;
1164 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1165 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1166 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001167 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001168
1169 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1170 ac_prev=prefix ;;
1171 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001172 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001173
1174 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1175 | --program-pre | --program-pr | --program-p)
1176 ac_prev=program_prefix ;;
1177 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1178 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001179 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001180
1181 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1182 | --program-suf | --program-su | --program-s)
1183 ac_prev=program_suffix ;;
1184 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1185 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001186 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001187
1188 -program-transform-name | --program-transform-name \
1189 | --program-transform-nam | --program-transform-na \
1190 | --program-transform-n | --program-transform- \
1191 | --program-transform | --program-transfor \
1192 | --program-transfo | --program-transf \
1193 | --program-trans | --program-tran \
1194 | --progr-tra | --program-tr | --program-t)
1195 ac_prev=program_transform_name ;;
1196 -program-transform-name=* | --program-transform-name=* \
1197 | --program-transform-nam=* | --program-transform-na=* \
1198 | --program-transform-n=* | --program-transform-=* \
1199 | --program-transform=* | --program-transfor=* \
1200 | --program-transfo=* | --program-transf=* \
1201 | --program-trans=* | --program-tran=* \
1202 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001203 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001204
drh8b727472009-01-19 18:18:40 +00001205 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1206 ac_prev=pdfdir ;;
1207 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1208 pdfdir=$ac_optarg ;;
1209
1210 -psdir | --psdir | --psdi | --psd | --ps)
1211 ac_prev=psdir ;;
1212 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1213 psdir=$ac_optarg ;;
1214
drh75897232000-05-29 14:26:00 +00001215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1216 | -silent | --silent | --silen | --sile | --sil)
1217 silent=yes ;;
1218
1219 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1220 ac_prev=sbindir ;;
1221 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1222 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001223 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001224
1225 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1226 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1227 | --sharedst | --shareds | --shared | --share | --shar \
1228 | --sha | --sh)
1229 ac_prev=sharedstatedir ;;
1230 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1231 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1232 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1233 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001234 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001235
1236 -site | --site | --sit)
1237 ac_prev=site ;;
1238 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001239 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001240
1241 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1242 ac_prev=srcdir ;;
1243 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001244 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001245
1246 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1247 | --syscon | --sysco | --sysc | --sys | --sy)
1248 ac_prev=sysconfdir ;;
1249 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1250 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001251 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001252
1253 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001254 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001255 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001256 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001257
1258 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1259 verbose=yes ;;
1260
drh71eb93e2001-09-28 01:34:43 +00001261 -version | --version | --versio | --versi | --vers | -V)
1262 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001263
1264 -with-* | --with-*)
drh8b727472009-01-19 18:18:40 +00001265 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001266 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001267 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001268 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001269 ac_useropt_orig=$ac_useropt
1270 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1271 case $ac_user_opts in
1272 *"
1273"with_$ac_useropt"
1274"*) ;;
1275 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1276 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001277 esac
drh8b727472009-01-19 18:18:40 +00001278 eval with_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001279
1280 -without-* | --without-*)
drh8b727472009-01-19 18:18:40 +00001281 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001282 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001284 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1288 *"
1289"with_$ac_useropt"
1290"*) ;;
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1293 esac
1294 eval with_$ac_useropt=no ;;
drh75897232000-05-29 14:26:00 +00001295
1296 --x)
1297 # Obsolete; use --with-x.
1298 with_x=yes ;;
1299
1300 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1301 | --x-incl | --x-inc | --x-in | --x-i)
1302 ac_prev=x_includes ;;
1303 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1304 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001305 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001306
1307 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1308 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1309 ac_prev=x_libraries ;;
1310 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1311 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001312 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001313
drhf922ca42015-05-14 15:39:18 +00001314 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1315Try \`$0 --help' for more information"
drh75897232000-05-29 14:26:00 +00001316 ;;
1317
drh71eb93e2001-09-28 01:34:43 +00001318 *=*)
1319 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
drhf922ca42015-05-14 15:39:18 +00001321 case $ac_envvar in #(
1322 '' | [0-9]* | *[!_$as_cr_alnum]* )
1323 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1324 esac
drh8b727472009-01-19 18:18:40 +00001325 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001326 export $ac_envvar ;;
1327
drh75897232000-05-29 14:26:00 +00001328 *)
drh71eb93e2001-09-28 01:34:43 +00001329 # FIXME: should be removed in autoconf 3.0.
drh8b727472009-01-19 18:18:40 +00001330 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +00001331 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001332 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drhf922ca42015-05-14 15:39:18 +00001333 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
drh75897232000-05-29 14:26:00 +00001334 ;;
1335
1336 esac
1337done
1338
1339if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001340 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
drhf922ca42015-05-14 15:39:18 +00001341 as_fn_error $? "missing argument to $ac_option"
drh75897232000-05-29 14:26:00 +00001342fi
1343
drh8b727472009-01-19 18:18:40 +00001344if test -n "$ac_unrecognized_opts"; then
1345 case $enable_option_checking in
1346 no) ;;
drhf922ca42015-05-14 15:39:18 +00001347 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1348 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
mlcreech636a9952008-05-05 22:52:56 +00001349 esac
drh8b727472009-01-19 18:18:40 +00001350fi
drh866108f2008-05-13 00:57:21 +00001351
drh8b727472009-01-19 18:18:40 +00001352# Check all directory arguments for consistency.
1353for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1354 datadir sysconfdir sharedstatedir localstatedir includedir \
1355 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
drh6b236032019-04-19 22:01:10 +00001356 libdir localedir mandir
drh866108f2008-05-13 00:57:21 +00001357do
drh8b727472009-01-19 18:18:40 +00001358 eval ac_val=\$$ac_var
1359 # Remove trailing slashes.
drh71eb93e2001-09-28 01:34:43 +00001360 case $ac_val in
drh8b727472009-01-19 18:18:40 +00001361 */ )
1362 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1363 eval $ac_var=\$ac_val;;
drh75897232000-05-29 14:26:00 +00001364 esac
drh8b727472009-01-19 18:18:40 +00001365 # Be sure to have absolute directory names.
1366 case $ac_val in
1367 [\\/$]* | ?:[\\/]* ) continue;;
1368 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1369 esac
drhf922ca42015-05-14 15:39:18 +00001370 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
drh71eb93e2001-09-28 01:34:43 +00001371done
drh75897232000-05-29 14:26:00 +00001372
drh71eb93e2001-09-28 01:34:43 +00001373# There might be people who depend on the old broken behavior: `$host'
1374# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001375# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001376build=$build_alias
1377host=$host_alias
1378target=$target_alias
drh75897232000-05-29 14:26:00 +00001379
a.rottmann84e63352003-03-24 09:42:16 +00001380# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001381if test "x$host_alias" != x; then
1382 if test "x$build_alias" = x; then
1383 cross_compiling=maybe
drh71eb93e2001-09-28 01:34:43 +00001384 elif test "x$build_alias" != "x$host_alias"; then
1385 cross_compiling=yes
1386 fi
1387fi
1388
1389ac_tool_prefix=
1390test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391
1392test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001393
a.rottmann84e63352003-03-24 09:42:16 +00001394
drh8b727472009-01-19 18:18:40 +00001395ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396ac_ls_di=`ls -di .` &&
1397ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
drhf922ca42015-05-14 15:39:18 +00001398 as_fn_error $? "working directory cannot be determined"
drh8b727472009-01-19 18:18:40 +00001399test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
drhf922ca42015-05-14 15:39:18 +00001400 as_fn_error $? "pwd does not report name of working directory"
drh8b727472009-01-19 18:18:40 +00001401
1402
drh75897232000-05-29 14:26:00 +00001403# Find the source files, if location was not specified.
1404if test -z "$srcdir"; then
1405 ac_srcdir_defaulted=yes
drh8b727472009-01-19 18:18:40 +00001406 # Try the directory containing this script, then the parent directory.
1407 ac_confdir=`$as_dirname -- "$as_myself" ||
1408$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1409 X"$as_myself" : 'X\(//\)[^/]' \| \
1410 X"$as_myself" : 'X\(//\)$' \| \
1411 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1412$as_echo X"$as_myself" |
1413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1414 s//\1/
1415 q
1416 }
1417 /^X\(\/\/\)[^/].*/{
1418 s//\1/
1419 q
1420 }
1421 /^X\(\/\/\)$/{
1422 s//\1/
1423 q
1424 }
1425 /^X\(\/\).*/{
1426 s//\1/
1427 q
1428 }
1429 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001430 srcdir=$ac_confdir
drh8b727472009-01-19 18:18:40 +00001431 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001432 srcdir=..
1433 fi
1434else
1435 ac_srcdir_defaulted=no
1436fi
drh8b727472009-01-19 18:18:40 +00001437if test ! -r "$srcdir/$ac_unique_file"; then
1438 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
drhf922ca42015-05-14 15:39:18 +00001439 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
mlcreech94984912008-03-04 19:03:08 +00001440fi
drh8b727472009-01-19 18:18:40 +00001441ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1442ac_abs_confdir=`(
drhf922ca42015-05-14 15:39:18 +00001443 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
drh8b727472009-01-19 18:18:40 +00001444 pwd)`
1445# When building in place, set srcdir=.
1446if test "$ac_abs_confdir" = "$ac_pwd"; then
1447 srcdir=.
1448fi
1449# Remove unnecessary trailing slashes from srcdir.
1450# Double slashes in file names in object file debugging info
1451# mess up M-x gdb in Emacs.
1452case $srcdir in
1453*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1454esac
1455for ac_var in $ac_precious_vars; do
1456 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1457 eval ac_env_${ac_var}_value=\$${ac_var}
1458 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1459 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1460done
drh75897232000-05-29 14:26:00 +00001461
drh71eb93e2001-09-28 01:34:43 +00001462#
1463# Report the --help message.
1464#
1465if test "$ac_init_help" = "long"; then
1466 # Omit some internal or obsolete options to make the list less imposing.
1467 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001468 cat <<_ACEOF
drh636f5052020-12-02 00:22:09 +00001469\`configure' configures sqlite 3.35.0 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001470
1471Usage: $0 [OPTION]... [VAR=VALUE]...
1472
1473To assign environment variables (e.g., CC, CFLAGS...), specify them as
1474VAR=VALUE. See below for descriptions of some of the useful variables.
1475
1476Defaults for the options are specified in brackets.
1477
1478Configuration:
1479 -h, --help display this help and exit
1480 --help=short display options specific to this package
1481 --help=recursive display the short help of all the included packages
1482 -V, --version display version information and exit
drhf922ca42015-05-14 15:39:18 +00001483 -q, --quiet, --silent do not print \`checking ...' messages
drh71eb93e2001-09-28 01:34:43 +00001484 --cache-file=FILE cache test results in FILE [disabled]
1485 -C, --config-cache alias for \`--cache-file=config.cache'
1486 -n, --no-create do not create output files
1487 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1488
drh71eb93e2001-09-28 01:34:43 +00001489Installation directories:
1490 --prefix=PREFIX install architecture-independent files in PREFIX
drh8b727472009-01-19 18:18:40 +00001491 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001492 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh8b727472009-01-19 18:18:40 +00001493 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001494
1495By default, \`make install' will install all the files in
1496\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1497an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1498for instance \`--prefix=\$HOME'.
1499
1500For better control, use the options below.
1501
1502Fine tuning of the installation directories:
drh8b727472009-01-19 18:18:40 +00001503 --bindir=DIR user executables [EPREFIX/bin]
1504 --sbindir=DIR system admin executables [EPREFIX/sbin]
1505 --libexecdir=DIR program executables [EPREFIX/libexec]
1506 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1507 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1508 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1509 --libdir=DIR object code libraries [EPREFIX/lib]
1510 --includedir=DIR C header files [PREFIX/include]
1511 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1512 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1513 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1514 --infodir=DIR info documentation [DATAROOTDIR/info]
1515 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1516 --mandir=DIR man documentation [DATAROOTDIR/man]
1517 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1518 --htmldir=DIR html documentation [DOCDIR]
1519 --dvidir=DIR dvi documentation [DOCDIR]
1520 --pdfdir=DIR pdf documentation [DOCDIR]
1521 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001522_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001523
a.rottmann84e63352003-03-24 09:42:16 +00001524 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001525
1526System types:
1527 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001528 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1529_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001530fi
1531
1532if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001533 case $ac_init_help in
drh636f5052020-12-02 00:22:09 +00001534 short | recursive ) echo "Configuration of sqlite 3.35.0:";;
mlcreechb87057f2008-03-06 07:19:20 +00001535 esac
a.rottmann84e63352003-03-24 09:42:16 +00001536 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001537
1538Optional Features:
drh8b727472009-01-19 18:18:40 +00001539 --disable-option-checking ignore unrecognized --enable/--with options
drh71eb93e2001-09-28 01:34:43 +00001540 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1541 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh8b727472009-01-19 18:18:40 +00001542 --enable-shared[=PKGS] build shared libraries [default=yes]
1543 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001544 --enable-fast-install[=PKGS]
1545 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001546 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001547 --disable-largefile omit support for large files
drh05c7e0b2015-01-10 14:27:17 +00001548 --disable-threadsafe Disable mutexing
drh94e4f822006-02-15 02:00:25 +00001549 --enable-releasemode Support libtool link to release mode
1550 --enable-tempstore Use an in-ram database for temporary tables
1551 (never,no,yes,always)
1552 --disable-tcl do not build TCL extension
drhe44b8352015-10-30 14:25:57 +00001553 --enable-editline enable BSD editline support
1554 --disable-readline disable readline support
drh94e4f822006-02-15 02:00:25 +00001555 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001556 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001557 separately
drh05c7e0b2015-01-10 14:27:17 +00001558 --disable-load-extension
1559 Disable loading of external extensions
drhc530b9c2016-07-25 11:27:22 +00001560 --enable-memsys5 Enable MEMSYS5
drh5d513ba2016-07-25 11:57:21 +00001561 --enable-memsys3 Enable MEMSYS3
drh29368ea2019-12-28 13:17:11 +00001562 --enable-all Enable FTS4, FTS5, Geopoly, JSON, RTree, Sessions
drhce1d9f52015-10-09 12:48:33 +00001563 --enable-fts3 Enable the FTS3 extension
1564 --enable-fts4 Enable the FTS4 extension
1565 --enable-fts5 Enable the FTS5 extension
1566 --enable-json1 Enable the JSON1 extension
drh83bebdd2017-08-28 17:00:12 +00001567 --enable-update-limit Enable the UPDATE/DELETE LIMIT clause
drh748b8fd2018-05-25 19:22:47 +00001568 --enable-geopoly Enable the GEOPOLY extension
drhce1d9f52015-10-09 12:48:33 +00001569 --enable-rtree Enable the RTREE extension
drh5e18d402016-05-03 13:14:18 +00001570 --enable-session Enable the SESSION extension
mlcreechaac7b932008-04-01 02:45:22 +00001571 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001572
1573Optional Packages:
1574 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1575 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001576 --with-pic try to use only PIC/non-PIC objects [default=use
1577 both]
mlcreech636a9952008-05-05 22:52:56 +00001578 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh94e4f822006-02-15 02:00:25 +00001579 --with-tcl=DIR directory containing tcl configuration
1580 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001581 --with-readline-lib specify readline library
1582 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001583
1584Some influential environment variables:
1585 CC C compiler command
1586 CFLAGS C compiler flags
1587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1588 nonstandard directory <lib dir>
drh8b727472009-01-19 18:18:40 +00001589 LIBS libraries to pass to the linker, e.g. -l<library>
drhf922ca42015-05-14 15:39:18 +00001590 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
drh8b727472009-01-19 18:18:40 +00001591 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001592 CPP C preprocessor
vapier6acb2cf2009-01-28 04:46:28 +00001593 TCLLIBDIR Where to install tcl plugin
drh71eb93e2001-09-28 01:34:43 +00001594
1595Use these variables to override the choices made by `configure' or to help
1596it to find libraries and programs with nonstandard names/locations.
1597
drhf922ca42015-05-14 15:39:18 +00001598Report bugs to the package provider.
a.rottmann84e63352003-03-24 09:42:16 +00001599_ACEOF
drh8b727472009-01-19 18:18:40 +00001600ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001601fi
1602
1603if test "$ac_init_help" = "recursive"; then
1604 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001605 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh8b727472009-01-19 18:18:40 +00001606 test -d "$ac_dir" ||
1607 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1608 continue
a.rottmann84e63352003-03-24 09:42:16 +00001609 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001610
drh8b727472009-01-19 18:18:40 +00001611case "$ac_dir" in
1612.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613*)
1614 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1615 # A ".." for each directory in $ac_dir_suffix.
1616 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1617 case $ac_top_builddir_sub in
1618 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1620 esac ;;
1621esac
1622ac_abs_top_builddir=$ac_pwd
1623ac_abs_builddir=$ac_pwd$ac_dir_suffix
1624# for backward compatibility:
1625ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001626
a.rottmann84e63352003-03-24 09:42:16 +00001627case $srcdir in
drh8b727472009-01-19 18:18:40 +00001628 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001629 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +00001630 ac_top_srcdir=$ac_top_builddir_sub
1631 ac_abs_top_srcdir=$ac_pwd ;;
1632 [\\/]* | ?:[\\/]* ) # Absolute name.
drh866108f2008-05-13 00:57:21 +00001633 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +00001634 ac_top_srcdir=$srcdir
1635 ac_abs_top_srcdir=$srcdir ;;
1636 *) # Relative name.
1637 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1638 ac_top_srcdir=$ac_top_build_prefix$srcdir
1639 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
drh866108f2008-05-13 00:57:21 +00001640esac
drh8b727472009-01-19 18:18:40 +00001641ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
drh866108f2008-05-13 00:57:21 +00001642
drh8b727472009-01-19 18:18:40 +00001643 cd "$ac_dir" || { ac_status=$?; continue; }
1644 # Check for guested configure.
1645 if test -f "$ac_srcdir/configure.gnu"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1648 elif test -f "$ac_srcdir/configure"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure" --help=recursive
drh866108f2008-05-13 00:57:21 +00001651 else
drh8b727472009-01-19 18:18:40 +00001652 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1653 fi || ac_status=$?
1654 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001655 done
1656fi
1657
drh8b727472009-01-19 18:18:40 +00001658test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001659if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001660 cat <<\_ACEOF
drh636f5052020-12-02 00:22:09 +00001661sqlite configure 3.35.0
drhf922ca42015-05-14 15:39:18 +00001662generated by GNU Autoconf 2.69
drh71eb93e2001-09-28 01:34:43 +00001663
drhf922ca42015-05-14 15:39:18 +00001664Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001665This configure script is free software; the Free Software Foundation
1666gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001667_ACEOF
drh8b727472009-01-19 18:18:40 +00001668 exit
drh71eb93e2001-09-28 01:34:43 +00001669fi
drhf922ca42015-05-14 15:39:18 +00001670
1671## ------------------------ ##
1672## Autoconf initialization. ##
1673## ------------------------ ##
1674
1675# ac_fn_c_try_compile LINENO
1676# --------------------------
1677# Try to compile conftest.$ac_ext, and return whether this succeeded.
1678ac_fn_c_try_compile ()
1679{
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 rm -f conftest.$ac_objext
1682 if { { ac_try="$ac_compile"
1683case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686esac
1687eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688$as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_compile") 2>conftest.err
1690 ac_status=$?
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1695 fi
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } && {
1698 test -z "$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 } && test -s conftest.$ac_objext; then :
1701 ac_retval=0
1702else
1703 $as_echo "$as_me: failed program was:" >&5
1704sed 's/^/| /' conftest.$ac_ext >&5
1705
1706 ac_retval=1
1707fi
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1710
1711} # ac_fn_c_try_compile
1712
1713# ac_fn_c_try_link LINENO
1714# -----------------------
1715# Try to link conftest.$ac_ext, and return whether this succeeded.
1716ac_fn_c_try_link ()
1717{
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 rm -f conftest.$ac_objext conftest$ac_exeext
1720 if { { ac_try="$ac_link"
1721case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724esac
1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726$as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_link") 2>conftest.err
1728 ac_status=$?
1729 if test -s conftest.err; then
1730 grep -v '^ *+' conftest.err >conftest.er1
1731 cat conftest.er1 >&5
1732 mv -f conftest.er1 conftest.err
1733 fi
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && {
1736 test -z "$ac_c_werror_flag" ||
1737 test ! -s conftest.err
1738 } && test -s conftest$ac_exeext && {
1739 test "$cross_compiling" = yes ||
1740 test -x conftest$ac_exeext
1741 }; then :
1742 ac_retval=0
1743else
1744 $as_echo "$as_me: failed program was:" >&5
1745sed 's/^/| /' conftest.$ac_ext >&5
1746
1747 ac_retval=1
1748fi
1749 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1750 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1751 # interfere with the next link command; also delete a directory that is
1752 # left behind by Apple's compiler. We do this before executing the actions.
1753 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1755 as_fn_set_status $ac_retval
1756
1757} # ac_fn_c_try_link
1758
1759# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1760# -------------------------------------------------------
1761# Tests whether HEADER exists and can be compiled using the include files in
1762# INCLUDES, setting the cache variable VAR accordingly.
1763ac_fn_c_check_header_compile ()
1764{
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1767$as_echo_n "checking for $2... " >&6; }
1768if eval \${$3+:} false; then :
1769 $as_echo_n "(cached) " >&6
1770else
1771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1772/* end confdefs.h. */
1773$4
1774#include <$2>
1775_ACEOF
1776if ac_fn_c_try_compile "$LINENO"; then :
1777 eval "$3=yes"
1778else
1779 eval "$3=no"
1780fi
1781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1782fi
1783eval ac_res=\$$3
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1785$as_echo "$ac_res" >&6; }
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787
1788} # ac_fn_c_check_header_compile
1789
1790# ac_fn_c_try_cpp LINENO
1791# ----------------------
1792# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1793ac_fn_c_try_cpp ()
1794{
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 if { { ac_try="$ac_cpp conftest.$ac_ext"
1797case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800esac
1801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802$as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1804 ac_status=$?
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1809 fi
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } > conftest.i && {
1812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1813 test ! -s conftest.err
1814 }; then :
1815 ac_retval=0
1816else
1817 $as_echo "$as_me: failed program was:" >&5
1818sed 's/^/| /' conftest.$ac_ext >&5
1819
1820 ac_retval=1
1821fi
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 as_fn_set_status $ac_retval
1824
1825} # ac_fn_c_try_cpp
1826
1827# ac_fn_c_try_run LINENO
1828# ----------------------
1829# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1830# that executables *can* be run.
1831ac_fn_c_try_run ()
1832{
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 if { { ac_try="$ac_link"
1835case "(($ac_try" in
1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1838esac
1839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840$as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_link") 2>&5
1842 ac_status=$?
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1845 { { case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848esac
1849eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850$as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_try") 2>&5
1852 ac_status=$?
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; }; }; then :
1855 ac_retval=0
1856else
1857 $as_echo "$as_me: program exited with status $ac_status" >&5
1858 $as_echo "$as_me: failed program was:" >&5
1859sed 's/^/| /' conftest.$ac_ext >&5
1860
1861 ac_retval=$ac_status
1862fi
1863 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1864 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1865 as_fn_set_status $ac_retval
1866
1867} # ac_fn_c_try_run
1868
1869# ac_fn_c_check_func LINENO FUNC VAR
1870# ----------------------------------
1871# Tests whether FUNC exists, setting the cache variable VAR accordingly
1872ac_fn_c_check_func ()
1873{
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1876$as_echo_n "checking for $2... " >&6; }
1877if eval \${$3+:} false; then :
1878 $as_echo_n "(cached) " >&6
1879else
1880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881/* end confdefs.h. */
1882/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1884#define $2 innocuous_$2
1885
1886/* System header to define __stub macros and hopefully few prototypes,
1887 which can conflict with char $2 (); below.
1888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1889 <limits.h> exists even on freestanding compilers. */
1890
1891#ifdef __STDC__
1892# include <limits.h>
1893#else
1894# include <assert.h>
1895#endif
1896
1897#undef $2
1898
1899/* Override any GCC internal prototype to avoid an error.
1900 Use char because int might match the return type of a GCC
1901 builtin and then its argument prototype would still apply. */
1902#ifdef __cplusplus
1903extern "C"
1904#endif
1905char $2 ();
1906/* The GNU C library defines this for functions which it implements
1907 to always fail with ENOSYS. Some functions are actually named
1908 something starting with __ and the normal name is an alias. */
1909#if defined __stub_$2 || defined __stub___$2
1910choke me
1911#endif
1912
1913int
1914main ()
1915{
1916return $2 ();
1917 ;
1918 return 0;
1919}
1920_ACEOF
1921if ac_fn_c_try_link "$LINENO"; then :
1922 eval "$3=yes"
1923else
1924 eval "$3=no"
1925fi
1926rm -f core conftest.err conftest.$ac_objext \
1927 conftest$ac_exeext conftest.$ac_ext
1928fi
1929eval ac_res=\$$3
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931$as_echo "$ac_res" >&6; }
1932 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1933
1934} # ac_fn_c_check_func
1935
1936# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1937# -------------------------------------------
1938# Tests whether TYPE exists after having included INCLUDES, setting cache
1939# variable VAR accordingly.
1940ac_fn_c_check_type ()
1941{
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1944$as_echo_n "checking for $2... " >&6; }
1945if eval \${$3+:} false; then :
1946 $as_echo_n "(cached) " >&6
1947else
1948 eval "$3=no"
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950/* end confdefs.h. */
1951$4
1952int
1953main ()
1954{
1955if (sizeof ($2))
1956 return 0;
1957 ;
1958 return 0;
1959}
1960_ACEOF
1961if ac_fn_c_try_compile "$LINENO"; then :
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963/* end confdefs.h. */
1964$4
1965int
1966main ()
1967{
1968if (sizeof (($2)))
1969 return 0;
1970 ;
1971 return 0;
1972}
1973_ACEOF
1974if ac_fn_c_try_compile "$LINENO"; then :
1975
1976else
1977 eval "$3=yes"
1978fi
1979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980fi
1981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982fi
1983eval ac_res=\$$3
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985$as_echo "$ac_res" >&6; }
1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987
1988} # ac_fn_c_check_type
1989
1990# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1991# -------------------------------------------------------
1992# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1993# the include files in INCLUDES and setting the cache variable VAR
1994# accordingly.
1995ac_fn_c_check_header_mongrel ()
1996{
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 if eval \${$3+:} false; then :
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2000$as_echo_n "checking for $2... " >&6; }
2001if eval \${$3+:} false; then :
2002 $as_echo_n "(cached) " >&6
2003fi
2004eval ac_res=\$$3
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006$as_echo "$ac_res" >&6; }
2007else
2008 # Is the header compilable?
2009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2010$as_echo_n "checking $2 usability... " >&6; }
2011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012/* end confdefs.h. */
2013$4
2014#include <$2>
2015_ACEOF
2016if ac_fn_c_try_compile "$LINENO"; then :
2017 ac_header_compiler=yes
2018else
2019 ac_header_compiler=no
2020fi
2021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2023$as_echo "$ac_header_compiler" >&6; }
2024
2025# Is the header present?
2026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2027$as_echo_n "checking $2 presence... " >&6; }
2028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029/* end confdefs.h. */
2030#include <$2>
2031_ACEOF
2032if ac_fn_c_try_cpp "$LINENO"; then :
2033 ac_header_preproc=yes
2034else
2035 ac_header_preproc=no
2036fi
2037rm -f conftest.err conftest.i conftest.$ac_ext
2038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2039$as_echo "$ac_header_preproc" >&6; }
2040
2041# So? What about this header?
2042case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2043 yes:no: )
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2045$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2047$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2048 ;;
2049 no:yes:* )
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2051$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2053$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2055$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2057$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2059$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2060 ;;
2061esac
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063$as_echo_n "checking for $2... " >&6; }
2064if eval \${$3+:} false; then :
2065 $as_echo_n "(cached) " >&6
2066else
2067 eval "$3=\$ac_header_compiler"
2068fi
2069eval ac_res=\$$3
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071$as_echo "$ac_res" >&6; }
2072fi
2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074
2075} # ac_fn_c_check_header_mongrel
drh8b727472009-01-19 18:18:40 +00002076cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002077This file contains any messages produced by compilers while
2078running configure, to aid debugging if configure makes a mistake.
2079
drh636f5052020-12-02 00:22:09 +00002080It was created by sqlite $as_me 3.35.0, which was
drhf922ca42015-05-14 15:39:18 +00002081generated by GNU Autoconf 2.69. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00002082
2083 $ $0 $@
2084
a.rottmann84e63352003-03-24 09:42:16 +00002085_ACEOF
drh8b727472009-01-19 18:18:40 +00002086exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00002087{
2088cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002089## --------- ##
2090## Platform. ##
2091## --------- ##
drh71eb93e2001-09-28 01:34:43 +00002092
2093hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2094uname -m = `(uname -m) 2>/dev/null || echo unknown`
2095uname -r = `(uname -r) 2>/dev/null || echo unknown`
2096uname -s = `(uname -s) 2>/dev/null || echo unknown`
2097uname -v = `(uname -v) 2>/dev/null || echo unknown`
2098
2099/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2100/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2101
2102/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2103/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2104/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh8b727472009-01-19 18:18:40 +00002105/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00002106/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2107/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2108/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2109
drh71eb93e2001-09-28 01:34:43 +00002110_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002111
2112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113for as_dir in $PATH
2114do
2115 IFS=$as_save_IFS
2116 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002117 $as_echo "PATH: $as_dir"
2118 done
drh8b727472009-01-19 18:18:40 +00002119IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00002120
drh71eb93e2001-09-28 01:34:43 +00002121} >&5
2122
a.rottmann84e63352003-03-24 09:42:16 +00002123cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002124
a.rottmann84e63352003-03-24 09:42:16 +00002125
2126## ----------- ##
2127## Core tests. ##
2128## ----------- ##
2129
2130_ACEOF
2131
drh71eb93e2001-09-28 01:34:43 +00002132
2133# Keep a trace of the command line.
2134# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00002135# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00002136# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00002137# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00002138ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00002139ac_configure_args0=
2140ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00002141ac_must_keep_next=false
2142for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00002143do
a.rottmann84e63352003-03-24 09:42:16 +00002144 for ac_arg
2145 do
2146 case $ac_arg in
2147 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2149 | -silent | --silent | --silen | --sile | --sil)
2150 continue ;;
drh8b727472009-01-19 18:18:40 +00002151 *\'*)
2152 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002153 esac
2154 case $ac_pass in
drhf922ca42015-05-14 15:39:18 +00002155 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
a.rottmann84e63352003-03-24 09:42:16 +00002156 2)
drhf922ca42015-05-14 15:39:18 +00002157 as_fn_append ac_configure_args1 " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002158 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00002159 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00002160 else
a.rottmann964dbb12004-02-26 19:47:42 +00002161 case $ac_arg in
2162 *=* | --config-cache | -C | -disable-* | --disable-* \
2163 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2164 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2165 | -with-* | --with-* | -without-* | --without-* | --x)
2166 case "$ac_configure_args0 " in
2167 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2168 esac
2169 ;;
2170 -* ) ac_must_keep_next=true ;;
2171 esac
a.rottmann84e63352003-03-24 09:42:16 +00002172 fi
drhf922ca42015-05-14 15:39:18 +00002173 as_fn_append ac_configure_args " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002174 ;;
2175 esac
2176 done
drh71eb93e2001-09-28 01:34:43 +00002177done
drhf922ca42015-05-14 15:39:18 +00002178{ ac_configure_args0=; unset ac_configure_args0;}
2179{ ac_configure_args1=; unset ac_configure_args1;}
drh71eb93e2001-09-28 01:34:43 +00002180
2181# When interrupted or exit'd, cleanup temporary files, and complete
2182# config.log. We remove comments because anyway the quotes in there
2183# would cause problems or look ugly.
drh8b727472009-01-19 18:18:40 +00002184# WARNING: Use '\'' to represent an apostrophe within the trap.
2185# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00002186trap 'exit_status=$?
2187 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00002188 {
2189 echo
2190
drhf922ca42015-05-14 15:39:18 +00002191 $as_echo "## ---------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002192## Cache variables. ##
drhf922ca42015-05-14 15:39:18 +00002193## ---------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002194 echo
2195 # The following way of writing the cache mishandles newlines in values,
drh8b727472009-01-19 18:18:40 +00002196(
2197 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2198 eval ac_val=\$$ac_var
2199 case $ac_val in #(
2200 *${as_nl}*)
2201 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +00002202 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2203$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +00002204 esac
2205 case $ac_var in #(
2206 _ | IFS | as_nl) ;; #(
2207 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +00002208 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +00002209 esac ;;
2210 esac
2211 done
drh71eb93e2001-09-28 01:34:43 +00002212 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +00002213 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2214 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00002215 sed -n \
drh8b727472009-01-19 18:18:40 +00002216 "s/'\''/'\''\\\\'\'''\''/g;
2217 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2218 ;; #(
drh866108f2008-05-13 00:57:21 +00002219 *)
drh8b727472009-01-19 18:18:40 +00002220 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh866108f2008-05-13 00:57:21 +00002221 ;;
drh8b727472009-01-19 18:18:40 +00002222 esac |
2223 sort
2224)
a.rottmann84e63352003-03-24 09:42:16 +00002225 echo
2226
drhf922ca42015-05-14 15:39:18 +00002227 $as_echo "## ----------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002228## Output variables. ##
drhf922ca42015-05-14 15:39:18 +00002229## ----------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002230 echo
2231 for ac_var in $ac_subst_vars
2232 do
drh8b727472009-01-19 18:18:40 +00002233 eval ac_val=\$$ac_var
2234 case $ac_val in
2235 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2236 esac
2237 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002238 done | sort
2239 echo
2240
2241 if test -n "$ac_subst_files"; then
drhf922ca42015-05-14 15:39:18 +00002242 $as_echo "## ------------------- ##
drh8b727472009-01-19 18:18:40 +00002243## File substitutions. ##
drhf922ca42015-05-14 15:39:18 +00002244## ------------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002245 echo
2246 for ac_var in $ac_subst_files
2247 do
drh8b727472009-01-19 18:18:40 +00002248 eval ac_val=\$$ac_var
2249 case $ac_val in
2250 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2251 esac
2252 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002253 done | sort
2254 echo
2255 fi
2256
2257 if test -s confdefs.h; then
drhf922ca42015-05-14 15:39:18 +00002258 $as_echo "## ----------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002259## confdefs.h. ##
drhf922ca42015-05-14 15:39:18 +00002260## ----------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002261 echo
drh8b727472009-01-19 18:18:40 +00002262 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00002263 echo
2264 fi
2265 test "$ac_signal" != 0 &&
drh8b727472009-01-19 18:18:40 +00002266 $as_echo "$as_me: caught signal $ac_signal"
2267 $as_echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00002268 } >&5
drh8b727472009-01-19 18:18:40 +00002269 rm -f core *.core core.conftest.* &&
2270 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00002271 exit $exit_status
drh8b727472009-01-19 18:18:40 +00002272' 0
drh71eb93e2001-09-28 01:34:43 +00002273for ac_signal in 1 2 13 15; do
drhf922ca42015-05-14 15:39:18 +00002274 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
drh71eb93e2001-09-28 01:34:43 +00002275done
2276ac_signal=0
2277
2278# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh8b727472009-01-19 18:18:40 +00002279rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00002280
drhf922ca42015-05-14 15:39:18 +00002281$as_echo "/* confdefs.h */" > confdefs.h
2282
a.rottmann84e63352003-03-24 09:42:16 +00002283# Predefined preprocessor variables.
2284
2285cat >>confdefs.h <<_ACEOF
2286#define PACKAGE_NAME "$PACKAGE_NAME"
2287_ACEOF
2288
a.rottmann84e63352003-03-24 09:42:16 +00002289cat >>confdefs.h <<_ACEOF
2290#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2291_ACEOF
2292
a.rottmann84e63352003-03-24 09:42:16 +00002293cat >>confdefs.h <<_ACEOF
2294#define PACKAGE_VERSION "$PACKAGE_VERSION"
2295_ACEOF
2296
a.rottmann84e63352003-03-24 09:42:16 +00002297cat >>confdefs.h <<_ACEOF
2298#define PACKAGE_STRING "$PACKAGE_STRING"
2299_ACEOF
2300
dana9f39fd2011-08-12 16:34:42 +00002301cat >>confdefs.h <<_ACEOF
drh710658c2012-01-16 13:00:05 +00002302#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
dana9f39fd2011-08-12 16:34:42 +00002303_ACEOF
2304
drhf922ca42015-05-14 15:39:18 +00002305cat >>confdefs.h <<_ACEOF
2306#define PACKAGE_URL "$PACKAGE_URL"
2307_ACEOF
2308
a.rottmann84e63352003-03-24 09:42:16 +00002309
drh71eb93e2001-09-28 01:34:43 +00002310# Let the site file select an alternate cache file if it wants to.
drh8b727472009-01-19 18:18:40 +00002311# Prefer an explicitly selected file to automatically selected ones.
2312ac_site_file1=NONE
2313ac_site_file2=NONE
2314if test -n "$CONFIG_SITE"; then
drhf922ca42015-05-14 15:39:18 +00002315 # We do not want a PATH search for config.site.
2316 case $CONFIG_SITE in #((
2317 -*) ac_site_file1=./$CONFIG_SITE;;
2318 */*) ac_site_file1=$CONFIG_SITE;;
2319 *) ac_site_file1=./$CONFIG_SITE;;
2320 esac
drh8b727472009-01-19 18:18:40 +00002321elif test "x$prefix" != xNONE; then
2322 ac_site_file1=$prefix/share/config.site
2323 ac_site_file2=$prefix/etc/config.site
2324else
2325 ac_site_file1=$ac_default_prefix/share/config.site
2326 ac_site_file2=$ac_default_prefix/etc/config.site
drh75897232000-05-29 14:26:00 +00002327fi
drh8b727472009-01-19 18:18:40 +00002328for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2329do
2330 test "x$ac_site_file" = xNONE && continue
drhf922ca42015-05-14 15:39:18 +00002331 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
drh8b727472009-01-19 18:18:40 +00002333$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00002334 sed 's/^/| /' "$ac_site_file" >&5
drhf922ca42015-05-14 15:39:18 +00002335 . "$ac_site_file" \
2336 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2338as_fn_error $? "failed to load site script $ac_site_file
2339See \`config.log' for more details" "$LINENO" 5; }
drh75897232000-05-29 14:26:00 +00002340 fi
2341done
2342
2343if test -r "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +00002344 # Some versions of bash will fail to source /dev/null (special files
2345 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2346 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002348$as_echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002349 case $cache_file in
drh8b727472009-01-19 18:18:40 +00002350 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2351 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00002352 esac
2353 fi
drh75897232000-05-29 14:26:00 +00002354else
drhf922ca42015-05-14 15:39:18 +00002355 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002356$as_echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002357 >$cache_file
2358fi
2359
2360# Check that the precious variables saved in the cache have kept the same
2361# value.
2362ac_cache_corrupted=false
drh8b727472009-01-19 18:18:40 +00002363for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00002364 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2365 eval ac_new_set=\$ac_env_${ac_var}_set
drh8b727472009-01-19 18:18:40 +00002366 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2367 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00002368 case $ac_old_set,$ac_new_set in
2369 set,)
drhf922ca42015-05-14 15:39:18 +00002370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00002371$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002372 ac_cache_corrupted=: ;;
2373 ,set)
drhf922ca42015-05-14 15:39:18 +00002374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00002375$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002376 ac_cache_corrupted=: ;;
2377 ,);;
2378 *)
2379 if test "x$ac_old_val" != "x$ac_new_val"; then
drh8b727472009-01-19 18:18:40 +00002380 # differences in whitespace do not lead to failure.
2381 ac_old_val_w=`echo x $ac_old_val`
2382 ac_new_val_w=`echo x $ac_new_val`
2383 if test "$ac_old_val_w" != "$ac_new_val_w"; then
drhf922ca42015-05-14 15:39:18 +00002384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00002385$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2386 ac_cache_corrupted=:
2387 else
drhf922ca42015-05-14 15:39:18 +00002388 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00002389$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2390 eval $ac_var=\$ac_old_val
2391 fi
drhf922ca42015-05-14 15:39:18 +00002392 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
drh8b727472009-01-19 18:18:40 +00002393$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
drhf922ca42015-05-14 15:39:18 +00002394 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
drh8b727472009-01-19 18:18:40 +00002395$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002396 fi;;
2397 esac
a.rottmann84e63352003-03-24 09:42:16 +00002398 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00002399 if test "$ac_new_set" = set; then
2400 case $ac_new_val in
drh8b727472009-01-19 18:18:40 +00002401 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002402 *) ac_arg=$ac_var=$ac_new_val ;;
2403 esac
2404 case " $ac_configure_args " in
2405 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
drhf922ca42015-05-14 15:39:18 +00002406 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00002407 esac
2408 fi
2409done
2410if $ac_cache_corrupted; then
drhf922ca42015-05-14 15:39:18 +00002411 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
drh8b727472009-01-19 18:18:40 +00002414$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
drhf922ca42015-05-14 15:39:18 +00002415 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
drh75897232000-05-29 14:26:00 +00002416fi
drhf922ca42015-05-14 15:39:18 +00002417## -------------------- ##
2418## Main body of script. ##
2419## -------------------- ##
drh8b727472009-01-19 18:18:40 +00002420
drh75897232000-05-29 14:26:00 +00002421ac_ext=c
drh75897232000-05-29 14:26:00 +00002422ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00002423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2425ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00002426
a.rottmann84e63352003-03-24 09:42:16 +00002427
2428
drh04446102009-06-15 00:04:06 +00002429sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
vapierfaa68db2009-04-01 07:38:31 +00002430if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
drhf922ca42015-05-14 15:39:18 +00002431as_fn_error $? "configure script is out of date:
vapierfaa68db2009-04-01 07:38:31 +00002432 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2433 top level VERSION file = $sqlite_version_sanity_check
drhf922ca42015-05-14 15:39:18 +00002434please regen with autoconf" "$LINENO" 5
vapierfaa68db2009-04-01 07:38:31 +00002435fi
2436
drh75897232000-05-29 14:26:00 +00002437#########
drh71eb93e2001-09-28 01:34:43 +00002438# Programs needed
drh75897232000-05-29 14:26:00 +00002439#
mlcreech636a9952008-05-05 22:52:56 +00002440case `pwd` in
2441 *\ * | *\ *)
drhf922ca42015-05-14 15:39:18 +00002442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
drh8b727472009-01-19 18:18:40 +00002443$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00002444esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002445
mlcreech94984912008-03-04 19:03:08 +00002446
mlcreech636a9952008-05-05 22:52:56 +00002447
vapier6acb2cf2009-01-28 04:46:28 +00002448macro_version='2.2.6'
2449macro_revision='1.3012'
a.rottmann9bc8b932004-02-29 15:18:31 +00002450
mlcreech94984912008-03-04 19:03:08 +00002451
mlcreech94984912008-03-04 19:03:08 +00002452
a.rottmann9bc8b932004-02-29 15:18:31 +00002453
mlcreech636a9952008-05-05 22:52:56 +00002454
2455
2456
2457
2458
2459
2460
2461
2462
2463ltmain="$ac_aux_dir/ltmain.sh"
2464
drh71eb93e2001-09-28 01:34:43 +00002465ac_aux_dir=
drh8b727472009-01-19 18:18:40 +00002466for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
drh0fe0c462011-09-22 00:56:38 +00002467 if test -f "$ac_dir/install-sh"; then
2468 ac_aux_dir=$ac_dir
2469 ac_install_sh="$ac_aux_dir/install-sh -c"
2470 break
2471 elif test -f "$ac_dir/install.sh"; then
2472 ac_aux_dir=$ac_dir
2473 ac_install_sh="$ac_aux_dir/install.sh -c"
2474 break
2475 elif test -f "$ac_dir/shtool"; then
2476 ac_aux_dir=$ac_dir
2477 ac_install_sh="$ac_aux_dir/shtool install -c"
2478 break
2479 fi
drh71eb93e2001-09-28 01:34:43 +00002480done
2481if test -z "$ac_aux_dir"; then
drhf922ca42015-05-14 15:39:18 +00002482 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002483fi
drh8b727472009-01-19 18:18:40 +00002484
2485# These three variables are undocumented and unsupported,
2486# and are intended to be withdrawn in a future Autoconf release.
2487# They can cause serious problems if a builder's source tree is in a directory
2488# whose full name contains unusual characters.
2489ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2490ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2491ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2492
drh71eb93e2001-09-28 01:34:43 +00002493
2494# Make sure we can run config.sub.
drh8b727472009-01-19 18:18:40 +00002495$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
drhf922ca42015-05-14 15:39:18 +00002496 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002497
drhf922ca42015-05-14 15:39:18 +00002498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
drh8b727472009-01-19 18:18:40 +00002499$as_echo_n "checking build system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002500if ${ac_cv_build+:} false; then :
drh8b727472009-01-19 18:18:40 +00002501 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002502else
drh8b727472009-01-19 18:18:40 +00002503 ac_build_alias=$build_alias
2504test "x$ac_build_alias" = x &&
2505 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2506test "x$ac_build_alias" = x &&
drhf922ca42015-05-14 15:39:18 +00002507 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002508ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
drhf922ca42015-05-14 15:39:18 +00002509 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002510
2511fi
drhf922ca42015-05-14 15:39:18 +00002512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
drh8b727472009-01-19 18:18:40 +00002513$as_echo "$ac_cv_build" >&6; }
2514case $ac_cv_build in
2515*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002516*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002517esac
drh71eb93e2001-09-28 01:34:43 +00002518build=$ac_cv_build
drh8b727472009-01-19 18:18:40 +00002519ac_save_IFS=$IFS; IFS='-'
2520set x $ac_cv_build
2521shift
2522build_cpu=$1
2523build_vendor=$2
2524shift; shift
2525# Remember, the first character of IFS is used to create $*,
2526# except with old shells:
2527build_os=$*
2528IFS=$ac_save_IFS
2529case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002530
a.rottmann84e63352003-03-24 09:42:16 +00002531
drhf922ca42015-05-14 15:39:18 +00002532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
drh8b727472009-01-19 18:18:40 +00002533$as_echo_n "checking host system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002534if ${ac_cv_host+:} false; then :
drh8b727472009-01-19 18:18:40 +00002535 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002536else
drh8b727472009-01-19 18:18:40 +00002537 if test "x$host_alias" = x; then
2538 ac_cv_host=$ac_cv_build
2539else
2540 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
drhf922ca42015-05-14 15:39:18 +00002541 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002542fi
drh71eb93e2001-09-28 01:34:43 +00002543
2544fi
drhf922ca42015-05-14 15:39:18 +00002545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
drh8b727472009-01-19 18:18:40 +00002546$as_echo "$ac_cv_host" >&6; }
2547case $ac_cv_host in
2548*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002549*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002550esac
drh71eb93e2001-09-28 01:34:43 +00002551host=$ac_cv_host
drh8b727472009-01-19 18:18:40 +00002552ac_save_IFS=$IFS; IFS='-'
2553set x $ac_cv_host
2554shift
2555host_cpu=$1
2556host_vendor=$2
2557shift; shift
2558# Remember, the first character of IFS is used to create $*,
2559# except with old shells:
2560host_os=$*
2561IFS=$ac_save_IFS
2562case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002563
a.rottmann84e63352003-03-24 09:42:16 +00002564
drh71eb93e2001-09-28 01:34:43 +00002565ac_ext=c
2566ac_cpp='$CPP $CPPFLAGS'
2567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2569ac_compiler_gnu=$ac_cv_c_compiler_gnu
2570if test -n "$ac_tool_prefix"; then
2571 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2572set dummy ${ac_tool_prefix}gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002574$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002575if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002576 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002577else
2578 if test -n "$CC"; then
2579 ac_cv_prog_CC="$CC" # Let the user override the test.
2580else
a.rottmann84e63352003-03-24 09:42:16 +00002581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584 IFS=$as_save_IFS
2585 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002588 ac_cv_prog_CC="${ac_tool_prefix}gcc"
drhf922ca42015-05-14 15:39:18 +00002589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002590 break 2
2591 fi
2592done
drhf922ca42015-05-14 15:39:18 +00002593 done
drh8b727472009-01-19 18:18:40 +00002594IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002595
2596fi
2597fi
2598CC=$ac_cv_prog_CC
2599if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002601$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002602else
drhf922ca42015-05-14 15:39:18 +00002603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002604$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002605fi
2606
drh8b727472009-01-19 18:18:40 +00002607
drh71eb93e2001-09-28 01:34:43 +00002608fi
2609if test -z "$ac_cv_prog_CC"; then
2610 ac_ct_CC=$CC
2611 # Extract the first word of "gcc", so it can be a program name with args.
2612set dummy gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002614$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002615if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002616 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002617else
2618 if test -n "$ac_ct_CC"; then
2619 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2620else
a.rottmann84e63352003-03-24 09:42:16 +00002621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622for as_dir in $PATH
2623do
2624 IFS=$as_save_IFS
2625 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002626 for ac_exec_ext in '' $ac_executable_extensions; do
2627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002628 ac_cv_prog_ac_ct_CC="gcc"
drhf922ca42015-05-14 15:39:18 +00002629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002630 break 2
2631 fi
2632done
drhf922ca42015-05-14 15:39:18 +00002633 done
drh8b727472009-01-19 18:18:40 +00002634IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002635
2636fi
2637fi
2638ac_ct_CC=$ac_cv_prog_ac_ct_CC
2639if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002641$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002642else
drhf922ca42015-05-14 15:39:18 +00002643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002644$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002645fi
2646
drh8b727472009-01-19 18:18:40 +00002647 if test "x$ac_ct_CC" = x; then
2648 CC=""
2649 else
2650 case $cross_compiling:$ac_tool_warned in
2651yes:)
drhf922ca42015-05-14 15:39:18 +00002652{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2653$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002654ac_tool_warned=yes ;;
2655esac
2656 CC=$ac_ct_CC
2657 fi
drh71eb93e2001-09-28 01:34:43 +00002658else
2659 CC="$ac_cv_prog_CC"
2660fi
2661
2662if test -z "$CC"; then
drh8b727472009-01-19 18:18:40 +00002663 if test -n "$ac_tool_prefix"; then
2664 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002665set dummy ${ac_tool_prefix}cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002667$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002668if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002669 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002670else
2671 if test -n "$CC"; then
2672 ac_cv_prog_CC="$CC" # Let the user override the test.
2673else
a.rottmann84e63352003-03-24 09:42:16 +00002674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2675for as_dir in $PATH
2676do
2677 IFS=$as_save_IFS
2678 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002679 for ac_exec_ext in '' $ac_executable_extensions; do
2680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002681 ac_cv_prog_CC="${ac_tool_prefix}cc"
drhf922ca42015-05-14 15:39:18 +00002682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002683 break 2
2684 fi
2685done
drhf922ca42015-05-14 15:39:18 +00002686 done
drh8b727472009-01-19 18:18:40 +00002687IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002688
2689fi
2690fi
2691CC=$ac_cv_prog_CC
2692if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002694$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002695else
drhf922ca42015-05-14 15:39:18 +00002696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002697$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002698fi
2699
drh8b727472009-01-19 18:18:40 +00002700
a.rottmann84e63352003-03-24 09:42:16 +00002701 fi
drh71eb93e2001-09-28 01:34:43 +00002702fi
2703if test -z "$CC"; then
2704 # Extract the first word of "cc", so it can be a program name with args.
2705set dummy cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002707$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002708if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002709 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002710else
2711 if test -n "$CC"; then
2712 ac_cv_prog_CC="$CC" # Let the user override the test.
2713else
2714 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2716for as_dir in $PATH
2717do
2718 IFS=$as_save_IFS
2719 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002722 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2723 ac_prog_rejected=yes
2724 continue
2725 fi
2726 ac_cv_prog_CC="cc"
drhf922ca42015-05-14 15:39:18 +00002727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002728 break 2
2729 fi
2730done
drhf922ca42015-05-14 15:39:18 +00002731 done
drh8b727472009-01-19 18:18:40 +00002732IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002733
2734if test $ac_prog_rejected = yes; then
2735 # We found a bogon in the path, so make sure we never use it.
2736 set dummy $ac_cv_prog_CC
2737 shift
2738 if test $# != 0; then
2739 # We chose a different compiler from the bogus one.
2740 # However, it has the same basename, so the bogon will be chosen
2741 # first if we set CC to just the basename; use the full file name.
2742 shift
a.rottmann84e63352003-03-24 09:42:16 +00002743 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002744 fi
2745fi
2746fi
2747fi
2748CC=$ac_cv_prog_CC
2749if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002751$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002752else
drhf922ca42015-05-14 15:39:18 +00002753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002754$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002755fi
2756
drh8b727472009-01-19 18:18:40 +00002757
drh71eb93e2001-09-28 01:34:43 +00002758fi
2759if test -z "$CC"; then
2760 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00002761 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002762 do
2763 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2764set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002766$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002767if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002768 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002769else
2770 if test -n "$CC"; then
2771 ac_cv_prog_CC="$CC" # Let the user override the test.
2772else
a.rottmann84e63352003-03-24 09:42:16 +00002773as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774for as_dir in $PATH
2775do
2776 IFS=$as_save_IFS
2777 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002780 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002782 break 2
2783 fi
2784done
drhf922ca42015-05-14 15:39:18 +00002785 done
drh8b727472009-01-19 18:18:40 +00002786IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002787
2788fi
2789fi
2790CC=$ac_cv_prog_CC
2791if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002793$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002794else
drhf922ca42015-05-14 15:39:18 +00002795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002796$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002797fi
2798
drh8b727472009-01-19 18:18:40 +00002799
drh71eb93e2001-09-28 01:34:43 +00002800 test -n "$CC" && break
2801 done
2802fi
2803if test -z "$CC"; then
2804 ac_ct_CC=$CC
drh8b727472009-01-19 18:18:40 +00002805 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002806do
2807 # Extract the first word of "$ac_prog", so it can be a program name with args.
2808set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002810$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002811if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002812 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002813else
2814 if test -n "$ac_ct_CC"; then
2815 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2816else
a.rottmann84e63352003-03-24 09:42:16 +00002817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818for as_dir in $PATH
2819do
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002824 ac_cv_prog_ac_ct_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002826 break 2
2827 fi
2828done
drhf922ca42015-05-14 15:39:18 +00002829 done
drh8b727472009-01-19 18:18:40 +00002830IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002831
2832fi
2833fi
2834ac_ct_CC=$ac_cv_prog_ac_ct_CC
2835if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002837$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002838else
drhf922ca42015-05-14 15:39:18 +00002839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002840$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002841fi
2842
drh8b727472009-01-19 18:18:40 +00002843
drh71eb93e2001-09-28 01:34:43 +00002844 test -n "$ac_ct_CC" && break
2845done
2846
drh8b727472009-01-19 18:18:40 +00002847 if test "x$ac_ct_CC" = x; then
2848 CC=""
2849 else
2850 case $cross_compiling:$ac_tool_warned in
2851yes:)
drhf922ca42015-05-14 15:39:18 +00002852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002854ac_tool_warned=yes ;;
2855esac
2856 CC=$ac_ct_CC
2857 fi
drh71eb93e2001-09-28 01:34:43 +00002858fi
2859
2860fi
2861
a.rottmann84e63352003-03-24 09:42:16 +00002862
drhf922ca42015-05-14 15:39:18 +00002863test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2864$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2865as_fn_error $? "no acceptable C compiler found in \$PATH
2866See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00002867
2868# Provide some information about the compiler.
drhf922ca42015-05-14 15:39:18 +00002869$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
drh8b727472009-01-19 18:18:40 +00002870set X $ac_compile
2871ac_compiler=$2
drhf922ca42015-05-14 15:39:18 +00002872for ac_option in --version -v -V -qversion; do
2873 { { ac_try="$ac_compiler $ac_option >&5"
drh8b727472009-01-19 18:18:40 +00002874case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877esac
drhf922ca42015-05-14 15:39:18 +00002878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2879$as_echo "$ac_try_echo"; } >&5
2880 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
drh71eb93e2001-09-28 01:34:43 +00002881 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002882 if test -s conftest.err; then
2883 sed '10a\
2884... rest of stderr output deleted ...
2885 10q' conftest.err >conftest.er1
2886 cat conftest.er1 >&5
2887 fi
2888 rm -f conftest.er1 conftest.err
2889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2890 test $ac_status = 0; }
2891done
drh71eb93e2001-09-28 01:34:43 +00002892
drhf922ca42015-05-14 15:39:18 +00002893cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00002894/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002895
2896int
2897main ()
2898{
2899
2900 ;
2901 return 0;
2902}
2903_ACEOF
2904ac_clean_files_save=$ac_clean_files
drh8b727472009-01-19 18:18:40 +00002905ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002906# Try to create an executable without -o first, disregard a.out.
2907# It will help us diagnose broken compilers, and finding out an intuition
2908# of exeext.
drhf922ca42015-05-14 15:39:18 +00002909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2910$as_echo_n "checking whether the C compiler works... " >&6; }
drh8b727472009-01-19 18:18:40 +00002911ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
drh866108f2008-05-13 00:57:21 +00002912
drh8b727472009-01-19 18:18:40 +00002913# The possible output files:
2914ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2915
2916ac_rmfiles=
2917for ac_file in $ac_files
2918do
2919 case $ac_file in
2920 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2921 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2922 esac
2923done
2924rm -f $ac_rmfiles
2925
drhf922ca42015-05-14 15:39:18 +00002926if { { ac_try="$ac_link_default"
drh8b727472009-01-19 18:18:40 +00002927case "(($ac_try" in
2928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2929 *) ac_try_echo=$ac_try;;
2930esac
drhf922ca42015-05-14 15:39:18 +00002931eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2932$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00002933 (eval "$ac_link_default") 2>&5
2934 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2936 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00002937 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2938# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2939# in a Makefile. We should not override ac_cv_exeext if it was cached,
2940# so that the user can short-circuit this test for compilers unknown to
2941# Autoconf.
2942for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002943do
2944 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002945 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002947 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002948 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002949 # We found the default executable, but exeext='' is most
2950 # certainly right.
2951 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002952 *.* )
drhf922ca42015-05-14 15:39:18 +00002953 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
drh8b727472009-01-19 18:18:40 +00002954 then :; else
2955 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2956 fi
2957 # We set ac_cv_exeext here because the later test for it is not
2958 # safe: cross compilers may not add the suffix if given an `-o'
2959 # argument, so we may need to know it at that point already.
2960 # Even if this section looks crufty: it has the advantage of
2961 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002962 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002963 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002964 break;;
drh71eb93e2001-09-28 01:34:43 +00002965 esac
2966done
drh8b727472009-01-19 18:18:40 +00002967test "$ac_cv_exeext" = no && ac_cv_exeext=
2968
drh71eb93e2001-09-28 01:34:43 +00002969else
drh8b727472009-01-19 18:18:40 +00002970 ac_file=''
2971fi
drhf922ca42015-05-14 15:39:18 +00002972if test -z "$ac_file"; then :
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974$as_echo "no" >&6; }
2975$as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002976sed 's/^/| /' conftest.$ac_ext >&5
2977
drhf922ca42015-05-14 15:39:18 +00002978{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2979$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2980as_fn_error 77 "C compiler cannot create executables
2981See \`config.log' for more details" "$LINENO" 5; }
2982else
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh710658c2012-01-16 13:00:05 +00002984$as_echo "yes" >&6; }
drhf922ca42015-05-14 15:39:18 +00002985fi
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2987$as_echo_n "checking for C compiler default output file name... " >&6; }
2988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2989$as_echo "$ac_file" >&6; }
2990ac_exeext=$ac_cv_exeext
drh710658c2012-01-16 13:00:05 +00002991
drh8b727472009-01-19 18:18:40 +00002992rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002993ac_clean_files=$ac_clean_files_save
drhf922ca42015-05-14 15:39:18 +00002994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
drh8b727472009-01-19 18:18:40 +00002995$as_echo_n "checking for suffix of executables... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002996if { { ac_try="$ac_link"
drh8b727472009-01-19 18:18:40 +00002997case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000esac
drhf922ca42015-05-14 15:39:18 +00003001eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3002$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00003003 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00003004 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00003005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3006 test $ac_status = 0; }; then :
drh71eb93e2001-09-28 01:34:43 +00003007 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3008# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3009# work properly (i.e., refer to `conftest.exe'), while it won't with
3010# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00003011for ac_file in conftest.exe conftest conftest.*; do
3012 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00003013 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003014 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00003015 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00003016 break;;
drh71eb93e2001-09-28 01:34:43 +00003017 * ) break;;
3018 esac
3019done
3020else
drhf922ca42015-05-14 15:39:18 +00003021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3022$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3023as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3024See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003025fi
drhf922ca42015-05-14 15:39:18 +00003026rm -f conftest conftest$ac_cv_exeext
3027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
drh8b727472009-01-19 18:18:40 +00003028$as_echo "$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003029
3030rm -f conftest.$ac_ext
3031EXEEXT=$ac_cv_exeext
3032ac_exeext=$EXEEXT
drhf922ca42015-05-14 15:39:18 +00003033cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3034/* end confdefs.h. */
3035#include <stdio.h>
3036int
3037main ()
3038{
3039FILE *f = fopen ("conftest.out", "w");
3040 return ferror (f) || fclose (f) != 0;
3041
3042 ;
3043 return 0;
3044}
3045_ACEOF
3046ac_clean_files="$ac_clean_files conftest.out"
3047# Check that the compiler produces executables we can run. If not, either
3048# the compiler is broken, or we cross compile.
3049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3050$as_echo_n "checking whether we are cross compiling... " >&6; }
3051if test "$cross_compiling" != yes; then
3052 { { ac_try="$ac_link"
3053case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056esac
3057eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3058$as_echo "$ac_try_echo"; } >&5
3059 (eval "$ac_link") 2>&5
3060 ac_status=$?
3061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3062 test $ac_status = 0; }
3063 if { ac_try='./conftest$ac_cv_exeext'
3064 { { case "(($ac_try" in
3065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3066 *) ac_try_echo=$ac_try;;
3067esac
3068eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3069$as_echo "$ac_try_echo"; } >&5
3070 (eval "$ac_try") 2>&5
3071 ac_status=$?
3072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3073 test $ac_status = 0; }; }; then
3074 cross_compiling=no
3075 else
3076 if test "$cross_compiling" = maybe; then
3077 cross_compiling=yes
3078 else
3079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081as_fn_error $? "cannot run C compiled programs.
3082If you meant to cross compile, use \`--host'.
3083See \`config.log' for more details" "$LINENO" 5; }
3084 fi
3085 fi
3086fi
3087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3088$as_echo "$cross_compiling" >&6; }
3089
3090rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3091ac_clean_files=$ac_clean_files_save
3092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
drh8b727472009-01-19 18:18:40 +00003093$as_echo_n "checking for suffix of object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003094if ${ac_cv_objext+:} false; then :
drh8b727472009-01-19 18:18:40 +00003095 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003096else
drhf922ca42015-05-14 15:39:18 +00003097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003098/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003099
3100int
3101main ()
3102{
3103
3104 ;
3105 return 0;
3106}
3107_ACEOF
3108rm -f conftest.o conftest.obj
drhf922ca42015-05-14 15:39:18 +00003109if { { ac_try="$ac_compile"
drh8b727472009-01-19 18:18:40 +00003110case "(($ac_try" in
3111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3112 *) ac_try_echo=$ac_try;;
3113esac
drhf922ca42015-05-14 15:39:18 +00003114eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3115$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00003116 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00003117 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00003118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3119 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00003120 for ac_file in conftest.o conftest.obj conftest.*; do
3121 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00003122 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
drh71eb93e2001-09-28 01:34:43 +00003124 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3125 break;;
3126 esac
3127done
3128else
drh8b727472009-01-19 18:18:40 +00003129 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00003130sed 's/^/| /' conftest.$ac_ext >&5
3131
drhf922ca42015-05-14 15:39:18 +00003132{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3133$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3134as_fn_error $? "cannot compute suffix of object files: cannot compile
3135See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003136fi
drh71eb93e2001-09-28 01:34:43 +00003137rm -f conftest.$ac_cv_objext conftest.$ac_ext
3138fi
drhf922ca42015-05-14 15:39:18 +00003139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
drh8b727472009-01-19 18:18:40 +00003140$as_echo "$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003141OBJEXT=$ac_cv_objext
3142ac_objext=$OBJEXT
drhf922ca42015-05-14 15:39:18 +00003143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
drh8b727472009-01-19 18:18:40 +00003144$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003145if ${ac_cv_c_compiler_gnu+:} false; then :
drh8b727472009-01-19 18:18:40 +00003146 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003147else
drhf922ca42015-05-14 15:39:18 +00003148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003149/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003150
3151int
3152main ()
3153{
3154#ifndef __GNUC__
3155 choke me
3156#endif
3157
3158 ;
3159 return 0;
3160}
3161_ACEOF
drhf922ca42015-05-14 15:39:18 +00003162if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003163 ac_compiler_gnu=yes
3164else
drhf922ca42015-05-14 15:39:18 +00003165 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00003166fi
drh8b727472009-01-19 18:18:40 +00003167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003168ac_cv_c_compiler_gnu=$ac_compiler_gnu
3169
3170fi
drhf922ca42015-05-14 15:39:18 +00003171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
drh8b727472009-01-19 18:18:40 +00003172$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3173if test $ac_compiler_gnu = yes; then
3174 GCC=yes
3175else
3176 GCC=
3177fi
drh71eb93e2001-09-28 01:34:43 +00003178ac_test_CFLAGS=${CFLAGS+set}
3179ac_save_CFLAGS=$CFLAGS
drhf922ca42015-05-14 15:39:18 +00003180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
drh8b727472009-01-19 18:18:40 +00003181$as_echo_n "checking whether $CC accepts -g... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003182if ${ac_cv_prog_cc_g+:} false; then :
drh8b727472009-01-19 18:18:40 +00003183 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003184else
drh8b727472009-01-19 18:18:40 +00003185 ac_save_c_werror_flag=$ac_c_werror_flag
3186 ac_c_werror_flag=yes
3187 ac_cv_prog_cc_g=no
3188 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003190/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003191
3192int
3193main ()
3194{
3195
3196 ;
3197 return 0;
3198}
3199_ACEOF
drhf922ca42015-05-14 15:39:18 +00003200if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003201 ac_cv_prog_cc_g=yes
3202else
drhf922ca42015-05-14 15:39:18 +00003203 CFLAGS=""
3204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003205/* end confdefs.h. */
3206
3207int
3208main ()
3209{
3210
3211 ;
3212 return 0;
3213}
3214_ACEOF
drhf922ca42015-05-14 15:39:18 +00003215if ac_fn_c_try_compile "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00003216
drhf922ca42015-05-14 15:39:18 +00003217else
3218 ac_c_werror_flag=$ac_save_c_werror_flag
drh8b727472009-01-19 18:18:40 +00003219 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003221/* end confdefs.h. */
3222
3223int
3224main ()
3225{
3226
3227 ;
3228 return 0;
3229}
3230_ACEOF
drhf922ca42015-05-14 15:39:18 +00003231if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003232 ac_cv_prog_cc_g=yes
drh71eb93e2001-09-28 01:34:43 +00003233fi
drh8b727472009-01-19 18:18:40 +00003234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003235fi
drh8b727472009-01-19 18:18:40 +00003236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237fi
drh8b727472009-01-19 18:18:40 +00003238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239 ac_c_werror_flag=$ac_save_c_werror_flag
3240fi
drhf922ca42015-05-14 15:39:18 +00003241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
drh8b727472009-01-19 18:18:40 +00003242$as_echo "$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003243if test "$ac_test_CFLAGS" = set; then
3244 CFLAGS=$ac_save_CFLAGS
3245elif test $ac_cv_prog_cc_g = yes; then
3246 if test "$GCC" = yes; then
3247 CFLAGS="-g -O2"
3248 else
3249 CFLAGS="-g"
3250 fi
3251else
3252 if test "$GCC" = yes; then
3253 CFLAGS="-O2"
3254 else
3255 CFLAGS=
3256 fi
3257fi
drhf922ca42015-05-14 15:39:18 +00003258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
drh8b727472009-01-19 18:18:40 +00003259$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003260if ${ac_cv_prog_cc_c89+:} false; then :
drh8b727472009-01-19 18:18:40 +00003261 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00003262else
drh8b727472009-01-19 18:18:40 +00003263 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00003264ac_save_CC=$CC
drhf922ca42015-05-14 15:39:18 +00003265cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003266/* end confdefs.h. */
3267#include <stdarg.h>
3268#include <stdio.h>
drhf922ca42015-05-14 15:39:18 +00003269struct stat;
a.rottmann84e63352003-03-24 09:42:16 +00003270/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3271struct buf { int x; };
3272FILE * (*rcsopen) (struct buf *, struct stat *, int);
3273static char *e (p, i)
3274 char **p;
3275 int i;
3276{
3277 return p[i];
3278}
3279static char *f (char * (*g) (char **, int), char **p, ...)
3280{
3281 char *s;
3282 va_list v;
3283 va_start (v,p);
3284 s = g (p, va_arg (v,int));
3285 va_end (v);
3286 return s;
3287}
a.rottmann964dbb12004-02-26 19:47:42 +00003288
3289/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3290 function prototypes and stuff, but not '\xHH' hex character constants.
3291 These don't provoke an error unfortunately, instead are silently treated
drh8b727472009-01-19 18:18:40 +00003292 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00003293 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3294 array size at least. It's necessary to write '\x00'==0 to get something
drh8b727472009-01-19 18:18:40 +00003295 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00003296int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3297
drh8b727472009-01-19 18:18:40 +00003298/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3299 inside strings and character constants. */
3300#define FOO(x) 'x'
3301int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3302
a.rottmann84e63352003-03-24 09:42:16 +00003303int test (int i, double x);
3304struct s1 {int (*f) (int a);};
3305struct s2 {int (*f) (double a);};
3306int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3307int argc;
3308char **argv;
3309int
3310main ()
3311{
3312return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3313 ;
3314 return 0;
3315}
3316_ACEOF
drh8b727472009-01-19 18:18:40 +00003317for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3318 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003319do
3320 CC="$ac_save_CC $ac_arg"
drhf922ca42015-05-14 15:39:18 +00003321 if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003322 ac_cv_prog_cc_c89=$ac_arg
a.rottmann84e63352003-03-24 09:42:16 +00003323fi
drh8b727472009-01-19 18:18:40 +00003324rm -f core conftest.err conftest.$ac_objext
3325 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003326done
drh8b727472009-01-19 18:18:40 +00003327rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003328CC=$ac_save_CC
3329
3330fi
drh8b727472009-01-19 18:18:40 +00003331# AC_CACHE_VAL
3332case "x$ac_cv_prog_cc_c89" in
3333 x)
drhf922ca42015-05-14 15:39:18 +00003334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
drh8b727472009-01-19 18:18:40 +00003335$as_echo "none needed" >&6; } ;;
3336 xno)
drhf922ca42015-05-14 15:39:18 +00003337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
drh8b727472009-01-19 18:18:40 +00003338$as_echo "unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003339 *)
drh8b727472009-01-19 18:18:40 +00003340 CC="$CC $ac_cv_prog_cc_c89"
drhf922ca42015-05-14 15:39:18 +00003341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
drh8b727472009-01-19 18:18:40 +00003342$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003343esac
drhf922ca42015-05-14 15:39:18 +00003344if test "x$ac_cv_prog_cc_c89" != xno; then :
a.rottmann84e63352003-03-24 09:42:16 +00003345
drhf922ca42015-05-14 15:39:18 +00003346fi
a.rottmann84e63352003-03-24 09:42:16 +00003347
drh71eb93e2001-09-28 01:34:43 +00003348ac_ext=c
3349ac_cpp='$CPP $CPPFLAGS'
3350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352ac_compiler_gnu=$ac_cv_c_compiler_gnu
3353
drhf922ca42015-05-14 15:39:18 +00003354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
drh8b727472009-01-19 18:18:40 +00003355$as_echo_n "checking for a sed that does not truncate output... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003356if ${ac_cv_path_SED+:} false; then :
drh8b727472009-01-19 18:18:40 +00003357 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003358else
drh8b727472009-01-19 18:18:40 +00003359 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3360 for ac_i in 1 2 3 4 5 6 7; do
3361 ac_script="$ac_script$as_nl$ac_script"
3362 done
3363 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
drhf922ca42015-05-14 15:39:18 +00003364 { ac_script=; unset ac_script;}
drh8b727472009-01-19 18:18:40 +00003365 if test -z "$SED"; then
3366 ac_path_SED_found=false
3367 # Loop through the user's path and test for each of PROGNAME-LIST
3368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00003369for as_dir in $PATH
3370do
3371 IFS=$as_save_IFS
3372 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003373 for ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003374 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003375 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003376 as_fn_executable_p "$ac_path_SED" || continue
drh8b727472009-01-19 18:18:40 +00003377# Check for GNU ac_path_SED and select it if it is found.
3378 # Check for GNU $ac_path_SED
3379case `"$ac_path_SED" --version 2>&1` in
3380*GNU*)
3381 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3382*)
3383 ac_count=0
3384 $as_echo_n 0123456789 >"conftest.in"
3385 while :
3386 do
3387 cat "conftest.in" "conftest.in" >"conftest.tmp"
3388 mv "conftest.tmp" "conftest.in"
3389 cp "conftest.in" "conftest.nl"
3390 $as_echo '' >> "conftest.nl"
3391 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3392 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003393 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003394 if test $ac_count -gt ${ac_path_SED_max-0}; then
3395 # Best one so far, save it but keep looking for a better one
3396 ac_cv_path_SED="$ac_path_SED"
3397 ac_path_SED_max=$ac_count
3398 fi
3399 # 10*(2^10) chars as input seems more than enough
3400 test $ac_count -gt 10 && break
3401 done
3402 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3403esac
3404
3405 $ac_path_SED_found && break 3
a.rottmann9bc8b932004-02-29 15:18:31 +00003406 done
3407 done
drhf922ca42015-05-14 15:39:18 +00003408 done
mlcreech636a9952008-05-05 22:52:56 +00003409IFS=$as_save_IFS
drh8b727472009-01-19 18:18:40 +00003410 if test -z "$ac_cv_path_SED"; then
drhf922ca42015-05-14 15:39:18 +00003411 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
a.rottmann9bc8b932004-02-29 15:18:31 +00003412 fi
drh8b727472009-01-19 18:18:40 +00003413else
3414 ac_cv_path_SED=$SED
mlcreech636a9952008-05-05 22:52:56 +00003415fi
drh866108f2008-05-13 00:57:21 +00003416
drh8b727472009-01-19 18:18:40 +00003417fi
drhf922ca42015-05-14 15:39:18 +00003418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
drh8b727472009-01-19 18:18:40 +00003419$as_echo "$ac_cv_path_SED" >&6; }
3420 SED="$ac_cv_path_SED"
3421 rm -f conftest.sed
a.rottmann9bc8b932004-02-29 15:18:31 +00003422
mlcreech636a9952008-05-05 22:52:56 +00003423test -z "$SED" && SED=sed
3424Xsed="$SED -e 1s/^X//"
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
drhf922ca42015-05-14 15:39:18 +00003436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
drh8b727472009-01-19 18:18:40 +00003437$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003438if ${ac_cv_path_GREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003439 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003440else
drh8b727472009-01-19 18:18:40 +00003441 if test -z "$GREP"; then
3442 ac_path_GREP_found=false
3443 # Loop through the user's path and test for each of PROGNAME-LIST
3444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3445for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3446do
3447 IFS=$as_save_IFS
3448 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003449 for ac_prog in grep ggrep; do
drh8b727472009-01-19 18:18:40 +00003450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003452 as_fn_executable_p "$ac_path_GREP" || continue
drh8b727472009-01-19 18:18:40 +00003453# Check for GNU ac_path_GREP and select it if it is found.
3454 # Check for GNU $ac_path_GREP
3455case `"$ac_path_GREP" --version 2>&1` in
3456*GNU*)
3457 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3458*)
3459 ac_count=0
3460 $as_echo_n 0123456789 >"conftest.in"
3461 while :
3462 do
3463 cat "conftest.in" "conftest.in" >"conftest.tmp"
3464 mv "conftest.tmp" "conftest.in"
3465 cp "conftest.in" "conftest.nl"
3466 $as_echo 'GREP' >> "conftest.nl"
3467 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3468 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003469 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003470 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3471 # Best one so far, save it but keep looking for a better one
3472 ac_cv_path_GREP="$ac_path_GREP"
3473 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003474 fi
drh8b727472009-01-19 18:18:40 +00003475 # 10*(2^10) chars as input seems more than enough
3476 test $ac_count -gt 10 && break
3477 done
3478 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3479esac
3480
3481 $ac_path_GREP_found && break 3
3482 done
3483 done
drhf922ca42015-05-14 15:39:18 +00003484 done
drh8b727472009-01-19 18:18:40 +00003485IFS=$as_save_IFS
3486 if test -z "$ac_cv_path_GREP"; then
drhf922ca42015-05-14 15:39:18 +00003487 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003488 fi
3489else
3490 ac_cv_path_GREP=$GREP
mlcreech94984912008-03-04 19:03:08 +00003491fi
drh8b727472009-01-19 18:18:40 +00003492
3493fi
drhf922ca42015-05-14 15:39:18 +00003494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
drh8b727472009-01-19 18:18:40 +00003495$as_echo "$ac_cv_path_GREP" >&6; }
3496 GREP="$ac_cv_path_GREP"
mlcreech94984912008-03-04 19:03:08 +00003497
3498
drhf922ca42015-05-14 15:39:18 +00003499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
drh8b727472009-01-19 18:18:40 +00003500$as_echo_n "checking for egrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003501if ${ac_cv_path_EGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003502 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +00003503else
drh8b727472009-01-19 18:18:40 +00003504 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3505 then ac_cv_path_EGREP="$GREP -E"
3506 else
3507 if test -z "$EGREP"; then
3508 ac_path_EGREP_found=false
3509 # Loop through the user's path and test for each of PROGNAME-LIST
3510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3512do
3513 IFS=$as_save_IFS
3514 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003515 for ac_prog in egrep; do
drh8b727472009-01-19 18:18:40 +00003516 for ac_exec_ext in '' $ac_executable_extensions; do
3517 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003518 as_fn_executable_p "$ac_path_EGREP" || continue
drh8b727472009-01-19 18:18:40 +00003519# Check for GNU ac_path_EGREP and select it if it is found.
3520 # Check for GNU $ac_path_EGREP
3521case `"$ac_path_EGREP" --version 2>&1` in
3522*GNU*)
3523 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3524*)
3525 ac_count=0
3526 $as_echo_n 0123456789 >"conftest.in"
3527 while :
3528 do
3529 cat "conftest.in" "conftest.in" >"conftest.tmp"
3530 mv "conftest.tmp" "conftest.in"
3531 cp "conftest.in" "conftest.nl"
3532 $as_echo 'EGREP' >> "conftest.nl"
3533 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3534 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003535 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003536 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3537 # Best one so far, save it but keep looking for a better one
3538 ac_cv_path_EGREP="$ac_path_EGREP"
3539 ac_path_EGREP_max=$ac_count
mlcreech94984912008-03-04 19:03:08 +00003540 fi
drh8b727472009-01-19 18:18:40 +00003541 # 10*(2^10) chars as input seems more than enough
3542 test $ac_count -gt 10 && break
3543 done
3544 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3545esac
3546
3547 $ac_path_EGREP_found && break 3
3548 done
3549 done
drhf922ca42015-05-14 15:39:18 +00003550 done
drh8b727472009-01-19 18:18:40 +00003551IFS=$as_save_IFS
3552 if test -z "$ac_cv_path_EGREP"; then
drhf922ca42015-05-14 15:39:18 +00003553 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003554 fi
3555else
3556 ac_cv_path_EGREP=$EGREP
mlcreech94984912008-03-04 19:03:08 +00003557fi
drh8b727472009-01-19 18:18:40 +00003558
3559 fi
3560fi
drhf922ca42015-05-14 15:39:18 +00003561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
drh8b727472009-01-19 18:18:40 +00003562$as_echo "$ac_cv_path_EGREP" >&6; }
3563 EGREP="$ac_cv_path_EGREP"
3564
3565
drhf922ca42015-05-14 15:39:18 +00003566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
drh8b727472009-01-19 18:18:40 +00003567$as_echo_n "checking for fgrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003568if ${ac_cv_path_FGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003569 $as_echo_n "(cached) " >&6
3570else
3571 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3572 then ac_cv_path_FGREP="$GREP -F"
3573 else
3574 if test -z "$FGREP"; then
3575 ac_path_FGREP_found=false
3576 # Loop through the user's path and test for each of PROGNAME-LIST
3577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3579do
3580 IFS=$as_save_IFS
3581 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003582 for ac_prog in fgrep; do
drh8b727472009-01-19 18:18:40 +00003583 for ac_exec_ext in '' $ac_executable_extensions; do
3584 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003585 as_fn_executable_p "$ac_path_FGREP" || continue
drh8b727472009-01-19 18:18:40 +00003586# Check for GNU ac_path_FGREP and select it if it is found.
3587 # Check for GNU $ac_path_FGREP
3588case `"$ac_path_FGREP" --version 2>&1` in
3589*GNU*)
3590 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3591*)
3592 ac_count=0
3593 $as_echo_n 0123456789 >"conftest.in"
3594 while :
3595 do
3596 cat "conftest.in" "conftest.in" >"conftest.tmp"
3597 mv "conftest.tmp" "conftest.in"
3598 cp "conftest.in" "conftest.nl"
3599 $as_echo 'FGREP' >> "conftest.nl"
3600 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3601 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003602 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003603 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3604 # Best one so far, save it but keep looking for a better one
3605 ac_cv_path_FGREP="$ac_path_FGREP"
3606 ac_path_FGREP_max=$ac_count
3607 fi
3608 # 10*(2^10) chars as input seems more than enough
3609 test $ac_count -gt 10 && break
3610 done
3611 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3612esac
3613
3614 $ac_path_FGREP_found && break 3
3615 done
3616 done
drhf922ca42015-05-14 15:39:18 +00003617 done
drh8b727472009-01-19 18:18:40 +00003618IFS=$as_save_IFS
3619 if test -z "$ac_cv_path_FGREP"; then
drhf922ca42015-05-14 15:39:18 +00003620 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003621 fi
3622else
3623 ac_cv_path_FGREP=$FGREP
3624fi
3625
3626 fi
3627fi
drhf922ca42015-05-14 15:39:18 +00003628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
drh8b727472009-01-19 18:18:40 +00003629$as_echo "$ac_cv_path_FGREP" >&6; }
3630 FGREP="$ac_cv_path_FGREP"
mlcreech636a9952008-05-05 22:52:56 +00003631
3632
3633test -z "$GREP" && GREP=grep
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
a.rottmann9bc8b932004-02-29 15:18:31 +00003650
3651
a.rottmann84e63352003-03-24 09:42:16 +00003652
drh8b727472009-01-19 18:18:40 +00003653# Check whether --with-gnu-ld was given.
drhf922ca42015-05-14 15:39:18 +00003654if test "${with_gnu_ld+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003655 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003656else
3657 with_gnu_ld=no
drh8b727472009-01-19 18:18:40 +00003658fi
3659
drh71eb93e2001-09-28 01:34:43 +00003660ac_prog=ld
3661if test "$GCC" = yes; then
3662 # Check if gcc -print-prog-name=ld gives a path.
drhf922ca42015-05-14 15:39:18 +00003663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
drh8b727472009-01-19 18:18:40 +00003664$as_echo_n "checking for ld used by $CC... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003665 case $host in
3666 *-*-mingw*)
3667 # gcc leaves a trailing carriage return which upsets mingw
3668 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3669 *)
3670 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3671 esac
3672 case $ac_prog in
3673 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003674 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003675 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003676 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00003677 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3678 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3679 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003680 done
3681 test -z "$LD" && LD="$ac_prog"
3682 ;;
3683 "")
3684 # If it fails, then pretend we aren't using GCC.
3685 ac_prog=ld
3686 ;;
3687 *)
3688 # If it is relative, then search for the first ld in PATH.
3689 with_gnu_ld=unknown
3690 ;;
3691 esac
3692elif test "$with_gnu_ld" = yes; then
drhf922ca42015-05-14 15:39:18 +00003693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003694$as_echo_n "checking for GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003695else
drhf922ca42015-05-14 15:39:18 +00003696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003697$as_echo_n "checking for non-GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003698fi
drhf922ca42015-05-14 15:39:18 +00003699if ${lt_cv_path_LD+:} false; then :
drh8b727472009-01-19 18:18:40 +00003700 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003701else
3702 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003703 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003704 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003705 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003706 test -z "$ac_dir" && ac_dir=.
3707 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3708 lt_cv_path_LD="$ac_dir/$ac_prog"
3709 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003710 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003711 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003712 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3713 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003714 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003715 ;;
3716 *)
drh71eb93e2001-09-28 01:34:43 +00003717 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003718 ;;
3719 esac
drh71eb93e2001-09-28 01:34:43 +00003720 fi
3721 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003722 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003723else
3724 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3725fi
3726fi
3727
3728LD="$lt_cv_path_LD"
3729if test -n "$LD"; then
drhf922ca42015-05-14 15:39:18 +00003730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
drh8b727472009-01-19 18:18:40 +00003731$as_echo "$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003732else
drhf922ca42015-05-14 15:39:18 +00003733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003734$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003735fi
drhf922ca42015-05-14 15:39:18 +00003736test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003738$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003739if ${lt_cv_prog_gnu_ld+:} false; then :
drh8b727472009-01-19 18:18:40 +00003740 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003741else
vapier7f19c022007-02-17 14:46:31 +00003742 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003743case `$LD -v 2>&1 </dev/null` in
3744*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003745 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003746 ;;
3747*)
drh71eb93e2001-09-28 01:34:43 +00003748 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003749 ;;
3750esac
drh71eb93e2001-09-28 01:34:43 +00003751fi
drhf922ca42015-05-14 15:39:18 +00003752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
drh8b727472009-01-19 18:18:40 +00003753$as_echo "$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003754with_gnu_ld=$lt_cv_prog_gnu_ld
3755
a.rottmann84e63352003-03-24 09:42:16 +00003756
drh71eb93e2001-09-28 01:34:43 +00003757
mlcreech636a9952008-05-05 22:52:56 +00003758
3759
3760
3761
3762
3763
drhf922ca42015-05-14 15:39:18 +00003764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
drh8b727472009-01-19 18:18:40 +00003765$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003766if ${lt_cv_path_NM+:} false; then :
drh8b727472009-01-19 18:18:40 +00003767 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003768else
3769 if test -n "$NM"; then
3770 # Let the user override the test.
3771 lt_cv_path_NM="$NM"
3772else
vapier7f19c022007-02-17 14:46:31 +00003773 lt_nm_to_check="${ac_tool_prefix}nm"
3774 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3775 lt_nm_to_check="$lt_nm_to_check nm"
3776 fi
3777 for lt_tmp_nm in $lt_nm_to_check; do
3778 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3779 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3780 IFS="$lt_save_ifs"
3781 test -z "$ac_dir" && ac_dir=.
3782 tmp_nm="$ac_dir/$lt_tmp_nm"
3783 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3784 # Check to see if the nm accepts a BSD-compat flag.
3785 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3786 # nm: unknown option "B" ignored
3787 # Tru64's nm complains that /dev/null is an invalid object file
3788 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3789 */dev/null* | *'Invalid file or object type'*)
3790 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003791 break
3792 ;;
3793 *)
vapier7f19c022007-02-17 14:46:31 +00003794 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3795 */dev/null*)
3796 lt_cv_path_NM="$tmp_nm -p"
3797 break
3798 ;;
3799 *)
3800 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3801 continue # so that we can try to find one that supports BSD flags
3802 ;;
3803 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003804 ;;
3805 esac
vapier7f19c022007-02-17 14:46:31 +00003806 fi
3807 done
3808 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003809 done
mlcreech636a9952008-05-05 22:52:56 +00003810 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00003811fi
3812fi
drhf922ca42015-05-14 15:39:18 +00003813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
drh8b727472009-01-19 18:18:40 +00003814$as_echo "$lt_cv_path_NM" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003815if test "$lt_cv_path_NM" != "no"; then
3816 NM="$lt_cv_path_NM"
3817else
3818 # Didn't find any BSD compatible name lister, look for dumpbin.
3819 if test -n "$ac_tool_prefix"; then
3820 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3821 do
3822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3823set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003825$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003826if ${ac_cv_prog_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003827 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003828else
3829 if test -n "$DUMPBIN"; then
3830 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3831else
3832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3833for as_dir in $PATH
3834do
3835 IFS=$as_save_IFS
3836 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003839 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003841 break 2
3842 fi
3843done
drhf922ca42015-05-14 15:39:18 +00003844 done
drh8b727472009-01-19 18:18:40 +00003845IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00003846
mlcreech636a9952008-05-05 22:52:56 +00003847fi
3848fi
3849DUMPBIN=$ac_cv_prog_DUMPBIN
3850if test -n "$DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003852$as_echo "$DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003853else
drhf922ca42015-05-14 15:39:18 +00003854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003855$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003856fi
3857
drh8b727472009-01-19 18:18:40 +00003858
mlcreech636a9952008-05-05 22:52:56 +00003859 test -n "$DUMPBIN" && break
3860 done
3861fi
3862if test -z "$DUMPBIN"; then
3863 ac_ct_DUMPBIN=$DUMPBIN
3864 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3865do
3866 # Extract the first word of "$ac_prog", so it can be a program name with args.
3867set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003869$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003870if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003871 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003872else
3873 if test -n "$ac_ct_DUMPBIN"; then
3874 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3875else
3876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3877for as_dir in $PATH
3878do
3879 IFS=$as_save_IFS
3880 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003881 for ac_exec_ext in '' $ac_executable_extensions; do
3882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003883 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003885 break 2
3886 fi
3887done
drhf922ca42015-05-14 15:39:18 +00003888 done
drh8b727472009-01-19 18:18:40 +00003889IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003890
3891fi
3892fi
3893ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3894if test -n "$ac_ct_DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003896$as_echo "$ac_ct_DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003897else
drhf922ca42015-05-14 15:39:18 +00003898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003899$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003900fi
3901
drh8b727472009-01-19 18:18:40 +00003902
mlcreech636a9952008-05-05 22:52:56 +00003903 test -n "$ac_ct_DUMPBIN" && break
3904done
3905
drh8b727472009-01-19 18:18:40 +00003906 if test "x$ac_ct_DUMPBIN" = x; then
3907 DUMPBIN=":"
3908 else
3909 case $cross_compiling:$ac_tool_warned in
3910yes:)
drhf922ca42015-05-14 15:39:18 +00003911{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3912$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00003913ac_tool_warned=yes ;;
3914esac
3915 DUMPBIN=$ac_ct_DUMPBIN
3916 fi
mlcreech636a9952008-05-05 22:52:56 +00003917fi
3918
3919
3920 if test "$DUMPBIN" != ":"; then
3921 NM="$DUMPBIN"
3922 fi
3923fi
3924test -z "$NM" && NM=nm
3925
3926
3927
3928
3929
3930
drhf922ca42015-05-14 15:39:18 +00003931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
drh8b727472009-01-19 18:18:40 +00003932$as_echo_n "checking the name lister ($NM) interface... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003933if ${lt_cv_nm_interface+:} false; then :
drh8b727472009-01-19 18:18:40 +00003934 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003935else
3936 lt_cv_nm_interface="BSD nm"
3937 echo "int some_variable = 0;" > conftest.$ac_ext
drhef5b2d22020-11-24 13:14:15 +00003938 (eval echo "\"\$as_me:3938: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003939 (eval "$ac_compile" 2>conftest.err)
3940 cat conftest.err >&5
drhef5b2d22020-11-24 13:14:15 +00003941 (eval echo "\"\$as_me:3941: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003942 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3943 cat conftest.err >&5
drhef5b2d22020-11-24 13:14:15 +00003944 (eval echo "\"\$as_me:3944: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003945 cat conftest.out >&5
3946 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3947 lt_cv_nm_interface="MS dumpbin"
3948 fi
3949 rm -f conftest*
3950fi
drhf922ca42015-05-14 15:39:18 +00003951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
drh8b727472009-01-19 18:18:40 +00003952$as_echo "$lt_cv_nm_interface" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003953
drhf922ca42015-05-14 15:39:18 +00003954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
drh8b727472009-01-19 18:18:40 +00003955$as_echo_n "checking whether ln -s works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003956LN_S=$as_ln_s
3957if test "$LN_S" = "ln -s"; then
drhf922ca42015-05-14 15:39:18 +00003958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00003959$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003960else
drhf922ca42015-05-14 15:39:18 +00003961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
drh8b727472009-01-19 18:18:40 +00003962$as_echo "no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003963fi
3964
mlcreech636a9952008-05-05 22:52:56 +00003965# find the maximum length of command line arguments
drhf922ca42015-05-14 15:39:18 +00003966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
drh8b727472009-01-19 18:18:40 +00003967$as_echo_n "checking the maximum length of command line arguments... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003968if ${lt_cv_sys_max_cmd_len+:} false; then :
drh8b727472009-01-19 18:18:40 +00003969 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003970else
3971 i=0
3972 teststring="ABCD"
3973
3974 case $build_os in
3975 msdosdjgpp*)
3976 # On DJGPP, this test can blow up pretty badly due to problems in libc
3977 # (any single argument exceeding 2000 bytes causes a buffer overrun
3978 # during glob expansion). Even if it were fixed, the result of this
3979 # check would be larger than it should be.
3980 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3981 ;;
3982
3983 gnu*)
3984 # Under GNU Hurd, this test is not required because there is
3985 # no limit to the length of command line arguments.
3986 # Libtool will interpret -1 as no limit whatsoever
3987 lt_cv_sys_max_cmd_len=-1;
3988 ;;
3989
vapier6acb2cf2009-01-28 04:46:28 +00003990 cygwin* | mingw* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00003991 # On Win9x/ME, this test blows up -- it succeeds, but takes
3992 # about 5 minutes as the teststring grows exponentially.
3993 # Worse, since 9x/ME are not pre-emptively multitasking,
3994 # you end up with a "frozen" computer, even though with patience
3995 # the test eventually succeeds (with a max line length of 256k).
3996 # Instead, let's just punt: use the minimum linelength reported by
3997 # all of the supported platforms: 8192 (on NT/2K/XP).
3998 lt_cv_sys_max_cmd_len=8192;
3999 ;;
4000
4001 amigaos*)
4002 # On AmigaOS with pdksh, this test takes hours, literally.
4003 # So we just punt and use a minimum line length of 8192.
4004 lt_cv_sys_max_cmd_len=8192;
4005 ;;
4006
4007 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4008 # This has been around since 386BSD, at least. Likely further.
4009 if test -x /sbin/sysctl; then
4010 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4011 elif test -x /usr/sbin/sysctl; then
4012 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4013 else
4014 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4015 fi
4016 # And add a safety zone
4017 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4018 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4019 ;;
4020
4021 interix*)
4022 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4023 lt_cv_sys_max_cmd_len=196608
4024 ;;
4025
4026 osf*)
4027 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4028 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4029 # nice to cause kernel panics so lets avoid the loop below.
4030 # First set a reasonable default.
4031 lt_cv_sys_max_cmd_len=16384
4032 #
4033 if test -x /sbin/sysconfig; then
4034 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4035 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4036 esac
4037 fi
4038 ;;
4039 sco3.2v5*)
4040 lt_cv_sys_max_cmd_len=102400
4041 ;;
4042 sysv5* | sco5v6* | sysv4.2uw2*)
4043 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4044 if test -n "$kargmax"; then
4045 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4046 else
4047 lt_cv_sys_max_cmd_len=32768
4048 fi
4049 ;;
4050 *)
4051 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4052 if test -n "$lt_cv_sys_max_cmd_len"; then
4053 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4054 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4055 else
4056 # Make teststring a little bigger before we do anything with it.
4057 # a 1K string should be a reasonable start.
4058 for i in 1 2 3 4 5 6 7 8 ; do
4059 teststring=$teststring$teststring
4060 done
4061 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4062 # If test is not a shell built-in, we'll probably end up computing a
4063 # maximum length that is only half of the actual maximum length, but
4064 # we can't tell.
4065 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4066 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4067 test $i != 17 # 1/2 MB should be enough
4068 do
4069 i=`expr $i + 1`
4070 teststring=$teststring$teststring
4071 done
4072 # Only check the string length outside the loop.
4073 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4074 teststring=
4075 # Add a significant safety factor because C++ compilers can tack on
4076 # massive amounts of additional arguments before passing them to the
4077 # linker. It appears as though 1/2 is a usable value.
4078 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4079 fi
4080 ;;
4081 esac
4082
4083fi
4084
4085if test -n $lt_cv_sys_max_cmd_len ; then
drhf922ca42015-05-14 15:39:18 +00004086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
drh8b727472009-01-19 18:18:40 +00004087$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004088else
drhf922ca42015-05-14 15:39:18 +00004089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
drh8b727472009-01-19 18:18:40 +00004090$as_echo "none" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004091fi
4092max_cmd_len=$lt_cv_sys_max_cmd_len
4093
4094
4095
4096
4097
4098
4099: ${CP="cp -f"}
4100: ${MV="mv -f"}
4101: ${RM="rm -f"}
4102
drhf922ca42015-05-14 15:39:18 +00004103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
drh8b727472009-01-19 18:18:40 +00004104$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004105# Try some XSI features
4106xsi_shell=no
4107( _lt_dummy="a/b/c"
4108 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4109 = c,a/b,, \
4110 && eval 'test $(( 1 + 1 )) -eq 2 \
4111 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4112 && xsi_shell=yes
drhf922ca42015-05-14 15:39:18 +00004113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
drh8b727472009-01-19 18:18:40 +00004114$as_echo "$xsi_shell" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004115
4116
drhf922ca42015-05-14 15:39:18 +00004117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
drh8b727472009-01-19 18:18:40 +00004118$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004119lt_shell_append=no
4120( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4121 >/dev/null 2>&1 \
4122 && lt_shell_append=yes
drhf922ca42015-05-14 15:39:18 +00004123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
drh8b727472009-01-19 18:18:40 +00004124$as_echo "$lt_shell_append" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004125
4126
4127if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4128 lt_unset=unset
4129else
4130 lt_unset=false
4131fi
4132
4133
4134
4135
4136
4137# test EBCDIC or ASCII
4138case `echo X|tr X '\101'` in
4139 A) # ASCII based system
4140 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4141 lt_SP2NL='tr \040 \012'
4142 lt_NL2SP='tr \015\012 \040\040'
4143 ;;
4144 *) # EBCDIC based system
4145 lt_SP2NL='tr \100 \n'
4146 lt_NL2SP='tr \r\n \100\100'
4147 ;;
4148esac
4149
4150
4151
4152
4153
4154
4155
4156
4157
drhf922ca42015-05-14 15:39:18 +00004158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
drh8b727472009-01-19 18:18:40 +00004159$as_echo_n "checking for $LD option to reload object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004160if ${lt_cv_ld_reload_flag+:} false; then :
drh8b727472009-01-19 18:18:40 +00004161 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004162else
4163 lt_cv_ld_reload_flag='-r'
4164fi
drhf922ca42015-05-14 15:39:18 +00004165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
drh8b727472009-01-19 18:18:40 +00004166$as_echo "$lt_cv_ld_reload_flag" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004167reload_flag=$lt_cv_ld_reload_flag
4168case $reload_flag in
4169"" | " "*) ;;
4170*) reload_flag=" $reload_flag" ;;
4171esac
4172reload_cmds='$LD$reload_flag -o $output$reload_objs'
4173case $host_os in
4174 darwin*)
4175 if test "$GCC" = yes; then
4176 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4177 else
4178 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4179 fi
4180 ;;
4181esac
4182
4183
4184
4185
4186
4187
4188
4189
4190
vapier6acb2cf2009-01-28 04:46:28 +00004191if test -n "$ac_tool_prefix"; then
4192 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4193set dummy ${ac_tool_prefix}objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004195$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004196if ${ac_cv_prog_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004197 $as_echo_n "(cached) " >&6
4198else
4199 if test -n "$OBJDUMP"; then
4200 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4201else
4202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203for as_dir in $PATH
4204do
4205 IFS=$as_save_IFS
4206 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004207 for ac_exec_ext in '' $ac_executable_extensions; do
4208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004209 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
drhf922ca42015-05-14 15:39:18 +00004210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004211 break 2
4212 fi
4213done
drhf922ca42015-05-14 15:39:18 +00004214 done
vapier6acb2cf2009-01-28 04:46:28 +00004215IFS=$as_save_IFS
4216
4217fi
4218fi
4219OBJDUMP=$ac_cv_prog_OBJDUMP
4220if test -n "$OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004222$as_echo "$OBJDUMP" >&6; }
4223else
drhf922ca42015-05-14 15:39:18 +00004224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004225$as_echo "no" >&6; }
4226fi
4227
4228
4229fi
4230if test -z "$ac_cv_prog_OBJDUMP"; then
4231 ac_ct_OBJDUMP=$OBJDUMP
4232 # Extract the first word of "objdump", so it can be a program name with args.
4233set dummy objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004235$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004236if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004237 $as_echo_n "(cached) " >&6
4238else
4239 if test -n "$ac_ct_OBJDUMP"; then
4240 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4241else
4242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243for as_dir in $PATH
4244do
4245 IFS=$as_save_IFS
4246 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004247 for ac_exec_ext in '' $ac_executable_extensions; do
4248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004249 ac_cv_prog_ac_ct_OBJDUMP="objdump"
drhf922ca42015-05-14 15:39:18 +00004250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004251 break 2
4252 fi
4253done
drhf922ca42015-05-14 15:39:18 +00004254 done
vapier6acb2cf2009-01-28 04:46:28 +00004255IFS=$as_save_IFS
4256
4257fi
4258fi
4259ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4260if test -n "$ac_ct_OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004262$as_echo "$ac_ct_OBJDUMP" >&6; }
4263else
drhf922ca42015-05-14 15:39:18 +00004264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004265$as_echo "no" >&6; }
4266fi
4267
4268 if test "x$ac_ct_OBJDUMP" = x; then
4269 OBJDUMP="false"
4270 else
4271 case $cross_compiling:$ac_tool_warned in
4272yes:)
drhf922ca42015-05-14 15:39:18 +00004273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00004275ac_tool_warned=yes ;;
4276esac
4277 OBJDUMP=$ac_ct_OBJDUMP
4278 fi
4279else
4280 OBJDUMP="$ac_cv_prog_OBJDUMP"
4281fi
4282
4283test -z "$OBJDUMP" && OBJDUMP=objdump
4284
4285
4286
4287
4288
4289
4290
4291
mlcreech636a9952008-05-05 22:52:56 +00004292
drhf922ca42015-05-14 15:39:18 +00004293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
drh8b727472009-01-19 18:18:40 +00004294$as_echo_n "checking how to recognize dependent libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004295if ${lt_cv_deplibs_check_method+:} false; then :
drh8b727472009-01-19 18:18:40 +00004296 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00004297else
4298 lt_cv_file_magic_cmd='$MAGIC_CMD'
4299lt_cv_file_magic_test_file=
4300lt_cv_deplibs_check_method='unknown'
4301# Need to set the preceding variable on all platforms that support
4302# interlibrary dependencies.
4303# 'none' -- dependencies not supported.
4304# `unknown' -- same as none, but documents that we really don't know.
4305# 'pass_all' -- all dependencies passed with no checks.
4306# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00004307# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00004308# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00004309# If you have `file' or equivalent on your system and you're not sure
4310# whether `pass_all' will *always* work, you probably want this one.
4311
4312case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00004313aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00004314 lt_cv_deplibs_check_method=pass_all
4315 ;;
4316
4317beos*)
4318 lt_cv_deplibs_check_method=pass_all
4319 ;;
4320
vapier7f19c022007-02-17 14:46:31 +00004321bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00004322 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4323 lt_cv_file_magic_cmd='/usr/bin/file -L'
4324 lt_cv_file_magic_test_file=/shlib/libc.so
4325 ;;
4326
a.rottmann9bc8b932004-02-29 15:18:31 +00004327cygwin*)
vapier7f19c022007-02-17 14:46:31 +00004328 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00004329 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00004330 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00004331 ;;
4332
4333mingw* | pw32*)
4334 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00004335 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4336 # unless we find 'file', for example because we are cross-compiling.
4337 if ( file / ) >/dev/null 2>&1; then
4338 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4339 lt_cv_file_magic_cmd='func_win32_libid'
4340 else
4341 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4342 lt_cv_file_magic_cmd='$OBJDUMP -f'
4343 fi
drh71eb93e2001-09-28 01:34:43 +00004344 ;;
4345
vapier6acb2cf2009-01-28 04:46:28 +00004346cegcc)
4347 # use the weaker test based on 'objdump'. See mingw*.
4348 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4349 lt_cv_file_magic_cmd='$OBJDUMP -f'
4350 ;;
4351
drh71eb93e2001-09-28 01:34:43 +00004352darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004353 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004354 ;;
4355
mlcreech636a9952008-05-05 22:52:56 +00004356freebsd* | dragonfly*)
4357 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004358 case $host_cpu in
4359 i*86 )
4360 # Not sure whether the presence of OpenBSD here was a mistake.
4361 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00004362 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 +00004363 lt_cv_file_magic_cmd=/usr/bin/file
4364 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4365 ;;
4366 esac
4367 else
4368 lt_cv_deplibs_check_method=pass_all
4369 fi
4370 ;;
4371
4372gnu*)
4373 lt_cv_deplibs_check_method=pass_all
4374 ;;
4375
a.rottmann9bc8b932004-02-29 15:18:31 +00004376hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00004377 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00004378 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00004379 ia64*)
4380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4381 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4382 ;;
4383 hppa*64*)
4384 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]'
4385 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4386 ;;
4387 *)
4388 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4389 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4390 ;;
4391 esac
drh71eb93e2001-09-28 01:34:43 +00004392 ;;
4393
mlcreech636a9952008-05-05 22:52:56 +00004394interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00004395 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4397 ;;
4398
a.rottmann84e63352003-03-24 09:42:16 +00004399irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004400 case $LD in
4401 *-32|*"-32 ") libmagic=32-bit;;
4402 *-n32|*"-n32 ") libmagic=N32;;
4403 *-64|*"-64 ") libmagic=64-bit;;
4404 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00004405 esac
drh71eb93e2001-09-28 01:34:43 +00004406 lt_cv_deplibs_check_method=pass_all
4407 ;;
4408
4409# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00004410linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00004411 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004412 ;;
4413
vapier7f19c022007-02-17 14:46:31 +00004414netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004415 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004416 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004417 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004418 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004419 fi
4420 ;;
4421
4422newos6*)
4423 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4424 lt_cv_file_magic_cmd=/usr/bin/file
4425 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4426 ;;
4427
mlcreech636a9952008-05-05 22:52:56 +00004428*nto* | *qnx*)
4429 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00004430 ;;
4431
a.rottmann84e63352003-03-24 09:42:16 +00004432openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004433 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00004434 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004435 else
vapier7f19c022007-02-17 14:46:31 +00004436 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004437 fi
drh71eb93e2001-09-28 01:34:43 +00004438 ;;
4439
4440osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004441 lt_cv_deplibs_check_method=pass_all
4442 ;;
4443
mlcreech636a9952008-05-05 22:52:56 +00004444rdos*)
4445 lt_cv_deplibs_check_method=pass_all
4446 ;;
4447
drh71eb93e2001-09-28 01:34:43 +00004448solaris*)
4449 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00004450 ;;
4451
mlcreech636a9952008-05-05 22:52:56 +00004452sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4453 lt_cv_deplibs_check_method=pass_all
4454 ;;
4455
vapier7f19c022007-02-17 14:46:31 +00004456sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00004457 case $host_vendor in
4458 motorola)
4459 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]'
4460 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4461 ;;
4462 ncr)
4463 lt_cv_deplibs_check_method=pass_all
4464 ;;
4465 sequent)
4466 lt_cv_file_magic_cmd='/bin/file'
4467 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4468 ;;
4469 sni)
4470 lt_cv_file_magic_cmd='/bin/file'
4471 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4472 lt_cv_file_magic_test_file=/lib/libc.so
4473 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004474 siemens)
4475 lt_cv_deplibs_check_method=pass_all
4476 ;;
vapier7f19c022007-02-17 14:46:31 +00004477 pc)
4478 lt_cv_deplibs_check_method=pass_all
4479 ;;
drh71eb93e2001-09-28 01:34:43 +00004480 esac
4481 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004482
mlcreech636a9952008-05-05 22:52:56 +00004483tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004484 lt_cv_deplibs_check_method=pass_all
4485 ;;
drh71eb93e2001-09-28 01:34:43 +00004486esac
4487
4488fi
drhf922ca42015-05-14 15:39:18 +00004489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
drh8b727472009-01-19 18:18:40 +00004490$as_echo "$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004491file_magic_cmd=$lt_cv_file_magic_cmd
4492deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00004493test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00004494
drh71eb93e2001-09-28 01:34:43 +00004495
drh71eb93e2001-09-28 01:34:43 +00004496
drh71eb93e2001-09-28 01:34:43 +00004497
mlcreech636a9952008-05-05 22:52:56 +00004498
4499
4500
4501
4502
4503
4504
4505
4506if test -n "$ac_tool_prefix"; then
4507 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4508set dummy ${ac_tool_prefix}ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004510$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004511if ${ac_cv_prog_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004512 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004513else
4514 if test -n "$AR"; then
4515 ac_cv_prog_AR="$AR" # Let the user override the test.
4516else
4517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518for as_dir in $PATH
4519do
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004524 ac_cv_prog_AR="${ac_tool_prefix}ar"
drhf922ca42015-05-14 15:39:18 +00004525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004526 break 2
4527 fi
4528done
drhf922ca42015-05-14 15:39:18 +00004529 done
drh8b727472009-01-19 18:18:40 +00004530IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004531
4532fi
4533fi
4534AR=$ac_cv_prog_AR
4535if test -n "$AR"; then
drhf922ca42015-05-14 15:39:18 +00004536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
drh8b727472009-01-19 18:18:40 +00004537$as_echo "$AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004538else
drhf922ca42015-05-14 15:39:18 +00004539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004540$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004541fi
4542
drh8b727472009-01-19 18:18:40 +00004543
mlcreech636a9952008-05-05 22:52:56 +00004544fi
4545if test -z "$ac_cv_prog_AR"; then
4546 ac_ct_AR=$AR
4547 # Extract the first word of "ar", so it can be a program name with args.
4548set dummy ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004550$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004551if ${ac_cv_prog_ac_ct_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004552 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004553else
4554 if test -n "$ac_ct_AR"; then
4555 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4556else
4557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558for as_dir in $PATH
4559do
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004564 ac_cv_prog_ac_ct_AR="ar"
drhf922ca42015-05-14 15:39:18 +00004565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004566 break 2
4567 fi
4568done
drhf922ca42015-05-14 15:39:18 +00004569 done
drh8b727472009-01-19 18:18:40 +00004570IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004571
4572fi
4573fi
4574ac_ct_AR=$ac_cv_prog_ac_ct_AR
4575if test -n "$ac_ct_AR"; then
drhf922ca42015-05-14 15:39:18 +00004576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
drh8b727472009-01-19 18:18:40 +00004577$as_echo "$ac_ct_AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004578else
drhf922ca42015-05-14 15:39:18 +00004579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004580$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004581fi
4582
drh8b727472009-01-19 18:18:40 +00004583 if test "x$ac_ct_AR" = x; then
4584 AR="false"
4585 else
4586 case $cross_compiling:$ac_tool_warned in
4587yes:)
drhf922ca42015-05-14 15:39:18 +00004588{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4589$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004590ac_tool_warned=yes ;;
4591esac
4592 AR=$ac_ct_AR
4593 fi
mlcreech636a9952008-05-05 22:52:56 +00004594else
4595 AR="$ac_cv_prog_AR"
4596fi
4597
4598test -z "$AR" && AR=ar
4599test -z "$AR_FLAGS" && AR_FLAGS=cru
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611if test -n "$ac_tool_prefix"; then
4612 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4613set dummy ${ac_tool_prefix}strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004615$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004616if ${ac_cv_prog_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004617 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004618else
4619 if test -n "$STRIP"; then
4620 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4621else
4622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623for as_dir in $PATH
4624do
4625 IFS=$as_save_IFS
4626 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004627 for ac_exec_ext in '' $ac_executable_extensions; do
4628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004629 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
drhf922ca42015-05-14 15:39:18 +00004630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004631 break 2
4632 fi
4633done
drhf922ca42015-05-14 15:39:18 +00004634 done
drh8b727472009-01-19 18:18:40 +00004635IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004636
4637fi
4638fi
4639STRIP=$ac_cv_prog_STRIP
4640if test -n "$STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004642$as_echo "$STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004643else
drhf922ca42015-05-14 15:39:18 +00004644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004645$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004646fi
4647
drh8b727472009-01-19 18:18:40 +00004648
mlcreech636a9952008-05-05 22:52:56 +00004649fi
4650if test -z "$ac_cv_prog_STRIP"; then
4651 ac_ct_STRIP=$STRIP
4652 # Extract the first word of "strip", so it can be a program name with args.
4653set dummy strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004655$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004656if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004657 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004658else
4659 if test -n "$ac_ct_STRIP"; then
4660 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4661else
4662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4663for as_dir in $PATH
4664do
4665 IFS=$as_save_IFS
4666 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004667 for ac_exec_ext in '' $ac_executable_extensions; do
4668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004669 ac_cv_prog_ac_ct_STRIP="strip"
drhf922ca42015-05-14 15:39:18 +00004670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004671 break 2
4672 fi
4673done
drhf922ca42015-05-14 15:39:18 +00004674 done
drh8b727472009-01-19 18:18:40 +00004675IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004676
4677fi
4678fi
4679ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4680if test -n "$ac_ct_STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004682$as_echo "$ac_ct_STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004683else
drhf922ca42015-05-14 15:39:18 +00004684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004685$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004686fi
4687
drh8b727472009-01-19 18:18:40 +00004688 if test "x$ac_ct_STRIP" = x; then
4689 STRIP=":"
4690 else
4691 case $cross_compiling:$ac_tool_warned in
4692yes:)
drhf922ca42015-05-14 15:39:18 +00004693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004695ac_tool_warned=yes ;;
4696esac
4697 STRIP=$ac_ct_STRIP
4698 fi
mlcreech636a9952008-05-05 22:52:56 +00004699else
4700 STRIP="$ac_cv_prog_STRIP"
4701fi
4702
4703test -z "$STRIP" && STRIP=:
4704
4705
4706
4707
4708
4709
4710if test -n "$ac_tool_prefix"; then
4711 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4712set dummy ${ac_tool_prefix}ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004714$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004715if ${ac_cv_prog_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004716 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004717else
4718 if test -n "$RANLIB"; then
4719 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4720else
4721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4722for as_dir in $PATH
4723do
4724 IFS=$as_save_IFS
4725 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004726 for ac_exec_ext in '' $ac_executable_extensions; do
4727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004728 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
drhf922ca42015-05-14 15:39:18 +00004729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004730 break 2
4731 fi
4732done
drhf922ca42015-05-14 15:39:18 +00004733 done
drh8b727472009-01-19 18:18:40 +00004734IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004735
4736fi
4737fi
4738RANLIB=$ac_cv_prog_RANLIB
4739if test -n "$RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004741$as_echo "$RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004742else
drhf922ca42015-05-14 15:39:18 +00004743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004744$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004745fi
4746
drh8b727472009-01-19 18:18:40 +00004747
mlcreech636a9952008-05-05 22:52:56 +00004748fi
4749if test -z "$ac_cv_prog_RANLIB"; then
4750 ac_ct_RANLIB=$RANLIB
4751 # Extract the first word of "ranlib", so it can be a program name with args.
4752set dummy ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004754$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004755if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004756 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004757else
4758 if test -n "$ac_ct_RANLIB"; then
4759 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4760else
4761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4762for as_dir in $PATH
4763do
4764 IFS=$as_save_IFS
4765 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004768 ac_cv_prog_ac_ct_RANLIB="ranlib"
drhf922ca42015-05-14 15:39:18 +00004769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004770 break 2
4771 fi
4772done
drhf922ca42015-05-14 15:39:18 +00004773 done
drh8b727472009-01-19 18:18:40 +00004774IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004775
4776fi
4777fi
4778ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4779if test -n "$ac_ct_RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004781$as_echo "$ac_ct_RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004782else
drhf922ca42015-05-14 15:39:18 +00004783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004784$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004785fi
4786
drh8b727472009-01-19 18:18:40 +00004787 if test "x$ac_ct_RANLIB" = x; then
4788 RANLIB=":"
4789 else
4790 case $cross_compiling:$ac_tool_warned in
4791yes:)
drhf922ca42015-05-14 15:39:18 +00004792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004794ac_tool_warned=yes ;;
4795esac
4796 RANLIB=$ac_ct_RANLIB
4797 fi
mlcreech636a9952008-05-05 22:52:56 +00004798else
4799 RANLIB="$ac_cv_prog_RANLIB"
4800fi
4801
4802test -z "$RANLIB" && RANLIB=:
4803
4804
4805
4806
4807
4808
4809# Determine commands to create old-style static archives.
4810old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4811old_postinstall_cmds='chmod 644 $oldlib'
4812old_postuninstall_cmds=
4813
4814if test -n "$RANLIB"; then
4815 case $host_os in
4816 openbsd*)
4817 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4818 ;;
4819 *)
4820 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4821 ;;
4822 esac
4823 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4824fi
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
a.rottmann9bc8b932004-02-29 15:18:31 +00004859# If no C compiler was specified, use CC.
4860LTCC=${LTCC-"$CC"}
4861
vapier7f19c022007-02-17 14:46:31 +00004862# If no C compiler flags were specified, use CFLAGS.
4863LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4864
a.rottmann9bc8b932004-02-29 15:18:31 +00004865# Allow CC to be a program name with arguments.
4866compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00004867
drh71eb93e2001-09-28 01:34:43 +00004868
mlcreech636a9952008-05-05 22:52:56 +00004869# Check for command to grab the raw symbol name followed by C symbol from nm.
drhf922ca42015-05-14 15:39:18 +00004870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
drh8b727472009-01-19 18:18:40 +00004871$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004872if ${lt_cv_sys_global_symbol_pipe+:} false; then :
drh8b727472009-01-19 18:18:40 +00004873 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004874else
4875
4876# These are sane defaults that work on at least a few old systems.
4877# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4878
4879# Character class describing NM global symbol codes.
4880symcode='[BCDEGRST]'
4881
4882# Regexp to match symbols that can be accessed directly from C.
4883sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4884
4885# Define system-specific variables.
4886case $host_os in
4887aix*)
4888 symcode='[BCDT]'
4889 ;;
vapier6acb2cf2009-01-28 04:46:28 +00004890cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00004891 symcode='[ABCDGISTW]'
4892 ;;
4893hpux*)
4894 if test "$host_cpu" = ia64; then
4895 symcode='[ABCDEGRST]'
4896 fi
4897 ;;
4898irix* | nonstopux*)
4899 symcode='[BCDEGRST]'
4900 ;;
4901osf*)
4902 symcode='[BCDEGQRST]'
4903 ;;
4904solaris*)
4905 symcode='[BDRT]'
4906 ;;
4907sco3.2v5*)
4908 symcode='[DT]'
4909 ;;
4910sysv4.2uw2*)
4911 symcode='[DT]'
4912 ;;
4913sysv5* | sco5v6* | unixware* | OpenUNIX*)
4914 symcode='[ABDT]'
4915 ;;
4916sysv4)
4917 symcode='[DFNSTU]'
4918 ;;
4919esac
4920
4921# If we're using GNU nm, then use its standard symbol codes.
4922case `$NM -V 2>&1` in
4923*GNU* | *'with BFD'*)
4924 symcode='[ABCDGIRSTW]' ;;
4925esac
4926
4927# Transform an extracted symbol line into a proper C declaration.
4928# Some systems (esp. on ia64) link data and code symbols differently,
4929# so use this general approach.
4930lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4931
4932# Transform an extracted symbol line into symbol name and symbol address
4933lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4934lt_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'"
4935
4936# Handle CRLF in mingw tool chain
4937opt_cr=
4938case $build_os in
4939mingw*)
4940 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4941 ;;
4942esac
4943
4944# Try without a prefix underscore, then with it.
4945for ac_symprfx in "" "_"; do
4946
4947 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4948 symxfrm="\\1 $ac_symprfx\\2 \\2"
4949
4950 # Write the raw and C identifiers.
4951 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4952 # Fake it for dumpbin and say T for any non-static function
4953 # and D for any global variable.
4954 # Also find C++ and __fastcall symbols from MSVC++,
4955 # which start with @ or ?.
4956 lt_cv_sys_global_symbol_pipe="$AWK '"\
4957" {last_section=section; section=\$ 3};"\
4958" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4959" \$ 0!~/External *\|/{next};"\
4960" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4961" {if(hide[section]) next};"\
4962" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4963" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4964" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4965" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4966" ' prfx=^$ac_symprfx"
4967 else
4968 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4969 fi
4970
4971 # Check to see that the pipe works correctly.
4972 pipe_works=no
4973
4974 rm -f conftest*
4975 cat > conftest.$ac_ext <<_LT_EOF
4976#ifdef __cplusplus
4977extern "C" {
4978#endif
4979char nm_test_var;
4980void nm_test_func(void);
4981void nm_test_func(void){}
4982#ifdef __cplusplus
4983}
4984#endif
4985int main(){nm_test_var='a';nm_test_func();return(0);}
4986_LT_EOF
4987
drhf922ca42015-05-14 15:39:18 +00004988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00004989 (eval $ac_compile) 2>&5
4990 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00004991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4992 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00004993 # Now try to grab the symbols.
4994 nlist=conftest.nm
drhf922ca42015-05-14 15:39:18 +00004995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00004996 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4997 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00004998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4999 test $ac_status = 0; } && test -s "$nlist"; then
mlcreech636a9952008-05-05 22:52:56 +00005000 # Try sorting and uniquifying the output.
5001 if sort "$nlist" | uniq > "$nlist"T; then
5002 mv -f "$nlist"T "$nlist"
5003 else
5004 rm -f "$nlist"T
5005 fi
5006
5007 # Make sure that we snagged all the symbols we need.
5008 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5009 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5010 cat <<_LT_EOF > conftest.$ac_ext
5011#ifdef __cplusplus
5012extern "C" {
5013#endif
5014
5015_LT_EOF
5016 # Now generate the symbol file.
5017 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5018
5019 cat <<_LT_EOF >> conftest.$ac_ext
5020
5021/* The mapping between symbol names and symbols. */
5022const struct {
5023 const char *name;
5024 void *address;
5025}
5026lt__PROGRAM__LTX_preloaded_symbols[] =
5027{
5028 { "@PROGRAM@", (void *) 0 },
5029_LT_EOF
5030 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5031 cat <<\_LT_EOF >> conftest.$ac_ext
5032 {0, (void *) 0}
5033};
5034
5035/* This works around a problem in FreeBSD linker */
5036#ifdef FREEBSD_WORKAROUND
5037static const void *lt_preloaded_setup() {
5038 return lt__PROGRAM__LTX_preloaded_symbols;
5039}
5040#endif
5041
5042#ifdef __cplusplus
5043}
5044#endif
5045_LT_EOF
5046 # Now try linking the two files.
5047 mv conftest.$ac_objext conftstm.$ac_objext
5048 lt_save_LIBS="$LIBS"
5049 lt_save_CFLAGS="$CFLAGS"
5050 LIBS="conftstm.$ac_objext"
5051 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
drhf922ca42015-05-14 15:39:18 +00005052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00005053 (eval $ac_link) 2>&5
5054 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5056 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
mlcreech636a9952008-05-05 22:52:56 +00005057 pipe_works=yes
5058 fi
5059 LIBS="$lt_save_LIBS"
5060 CFLAGS="$lt_save_CFLAGS"
5061 else
5062 echo "cannot find nm_test_func in $nlist" >&5
5063 fi
5064 else
5065 echo "cannot find nm_test_var in $nlist" >&5
5066 fi
5067 else
5068 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5069 fi
5070 else
5071 echo "$progname: failed program was:" >&5
5072 cat conftest.$ac_ext >&5
5073 fi
5074 rm -rf conftest* conftst*
5075
5076 # Do not use the global_symbol_pipe unless it works.
5077 if test "$pipe_works" = yes; then
5078 break
5079 else
5080 lt_cv_sys_global_symbol_pipe=
5081 fi
5082done
5083
5084fi
5085
5086if test -z "$lt_cv_sys_global_symbol_pipe"; then
5087 lt_cv_sys_global_symbol_to_cdecl=
5088fi
5089if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
drhf922ca42015-05-14 15:39:18 +00005090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
drh8b727472009-01-19 18:18:40 +00005091$as_echo "failed" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005092else
drhf922ca42015-05-14 15:39:18 +00005093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
drh8b727472009-01-19 18:18:40 +00005094$as_echo "ok" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005095fi
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
drh8b727472009-01-19 18:18:40 +00005119# Check whether --enable-libtool-lock was given.
drhf922ca42015-05-14 15:39:18 +00005120if test "${enable_libtool_lock+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005121 enableval=$enable_libtool_lock;
5122fi
drh71eb93e2001-09-28 01:34:43 +00005123
a.rottmann9bc8b932004-02-29 15:18:31 +00005124test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00005125
a.rottmann9bc8b932004-02-29 15:18:31 +00005126# Some flags need to be propagated to the compiler or linker for good
5127# libtool support.
5128case $host in
5129ia64-*-hpux*)
5130 # Find out which ABI we are using.
5131 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00005133 (eval $ac_compile) 2>&5
5134 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5136 test $ac_status = 0; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005137 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00005138 *ELF-32*)
5139 HPUX_IA64_MODE="32"
5140 ;;
5141 *ELF-64*)
5142 HPUX_IA64_MODE="64"
5143 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005144 esac
5145 fi
5146 rm -rf conftest*
5147 ;;
5148*-*-irix6*)
5149 # Find out which ABI we are using.
drhef5b2d22020-11-24 13:14:15 +00005150 echo '#line 5150 "configure"' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005152 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00005153 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5155 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00005156 if test "$lt_cv_prog_gnu_ld" = yes; then
5157 case `/usr/bin/file conftest.$ac_objext` in
5158 *32-bit*)
5159 LD="${LD-ld} -melf32bsmip"
5160 ;;
5161 *N32*)
5162 LD="${LD-ld} -melf32bmipn32"
5163 ;;
5164 *64-bit*)
5165 LD="${LD-ld} -melf64bmip"
5166 ;;
5167 esac
5168 else
5169 case `/usr/bin/file conftest.$ac_objext` in
5170 *32-bit*)
5171 LD="${LD-ld} -32"
5172 ;;
5173 *N32*)
5174 LD="${LD-ld} -n32"
5175 ;;
5176 *64-bit*)
5177 LD="${LD-ld} -64"
5178 ;;
5179 esac
5180 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005181 fi
5182 rm -rf conftest*
5183 ;;
drh71eb93e2001-09-28 01:34:43 +00005184
mlcreech636a9952008-05-05 22:52:56 +00005185x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5186s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005187 # Find out which ABI we are using.
5188 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005189 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005190 (eval $ac_compile) 2>&5
5191 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5193 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005194 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00005195 *32-bit*)
5196 case $host in
5197 x86_64-*kfreebsd*-gnu)
5198 LD="${LD-ld} -m elf_i386_fbsd"
5199 ;;
5200 x86_64-*linux*)
5201 LD="${LD-ld} -m elf_i386"
5202 ;;
5203 ppc64-*linux*|powerpc64-*linux*)
5204 LD="${LD-ld} -m elf32ppclinux"
5205 ;;
5206 s390x-*linux*)
5207 LD="${LD-ld} -m elf_s390"
5208 ;;
5209 sparc64-*linux*)
5210 LD="${LD-ld} -m elf32_sparc"
5211 ;;
5212 esac
5213 ;;
5214 *64-bit*)
5215 case $host in
5216 x86_64-*kfreebsd*-gnu)
5217 LD="${LD-ld} -m elf_x86_64_fbsd"
5218 ;;
5219 x86_64-*linux*)
5220 LD="${LD-ld} -m elf_x86_64"
5221 ;;
5222 ppc*-*linux*|powerpc*-*linux*)
5223 LD="${LD-ld} -m elf64ppc"
5224 ;;
5225 s390*-*linux*|s390*-*tpf*)
5226 LD="${LD-ld} -m elf64_s390"
5227 ;;
5228 sparc*-*linux*)
5229 LD="${LD-ld} -m elf64_sparc"
5230 ;;
5231 esac
5232 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005233 esac
5234 fi
5235 rm -rf conftest*
5236 ;;
drh71eb93e2001-09-28 01:34:43 +00005237
a.rottmann9bc8b932004-02-29 15:18:31 +00005238*-*-sco3.2v5*)
5239 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5240 SAVE_CFLAGS="$CFLAGS"
5241 CFLAGS="$CFLAGS -belf"
drhf922ca42015-05-14 15:39:18 +00005242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
drh8b727472009-01-19 18:18:40 +00005243$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005244if ${lt_cv_cc_needs_belf+:} false; then :
drh8b727472009-01-19 18:18:40 +00005245 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005246else
5247 ac_ext=c
5248ac_cpp='$CPP $CPPFLAGS'
5249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5251ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00005252
drhf922ca42015-05-14 15:39:18 +00005253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005254/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00005255
a.rottmann9bc8b932004-02-29 15:18:31 +00005256int
5257main ()
drh71eb93e2001-09-28 01:34:43 +00005258{
drh71eb93e2001-09-28 01:34:43 +00005259
a.rottmann9bc8b932004-02-29 15:18:31 +00005260 ;
5261 return 0;
drh71eb93e2001-09-28 01:34:43 +00005262}
a.rottmann9bc8b932004-02-29 15:18:31 +00005263_ACEOF
drhf922ca42015-05-14 15:39:18 +00005264if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00005265 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00005266else
drhf922ca42015-05-14 15:39:18 +00005267 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00005268fi
drhf922ca42015-05-14 15:39:18 +00005269rm -f core conftest.err conftest.$ac_objext \
5270 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005271 ac_ext=c
5272ac_cpp='$CPP $CPPFLAGS'
5273ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5274ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5275ac_compiler_gnu=$ac_cv_c_compiler_gnu
5276
drh71eb93e2001-09-28 01:34:43 +00005277fi
drhf922ca42015-05-14 15:39:18 +00005278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
drh8b727472009-01-19 18:18:40 +00005279$as_echo "$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005280 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5281 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5282 CFLAGS="$SAVE_CFLAGS"
5283 fi
5284 ;;
vapier7f19c022007-02-17 14:46:31 +00005285sparc*-*solaris*)
5286 # Find out which ABI we are using.
5287 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
vapier7f19c022007-02-17 14:46:31 +00005289 (eval $ac_compile) 2>&5
5290 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5292 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005293 case `/usr/bin/file conftest.o` in
5294 *64-bit*)
5295 case $lt_cv_prog_gnu_ld in
5296 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00005297 *)
5298 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5299 LD="${LD-ld} -64"
5300 fi
5301 ;;
vapier7f19c022007-02-17 14:46:31 +00005302 esac
5303 ;;
5304 esac
5305 fi
5306 rm -rf conftest*
5307 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005308esac
5309
5310need_locks="$enable_libtool_lock"
5311
drh71eb93e2001-09-28 01:34:43 +00005312
mlcreech636a9952008-05-05 22:52:56 +00005313 case $host_os in
5314 rhapsody* | darwin*)
5315 if test -n "$ac_tool_prefix"; then
5316 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5317set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005319$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005320if ${ac_cv_prog_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005321 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005322else
5323 if test -n "$DSYMUTIL"; then
5324 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5325else
5326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5327for as_dir in $PATH
5328do
5329 IFS=$as_save_IFS
5330 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005333 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
drhf922ca42015-05-14 15:39:18 +00005334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005335 break 2
5336 fi
5337done
drhf922ca42015-05-14 15:39:18 +00005338 done
drh8b727472009-01-19 18:18:40 +00005339IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005340
5341fi
5342fi
5343DSYMUTIL=$ac_cv_prog_DSYMUTIL
5344if test -n "$DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005346$as_echo "$DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005347else
drhf922ca42015-05-14 15:39:18 +00005348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005349$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005350fi
5351
drh8b727472009-01-19 18:18:40 +00005352
mlcreech636a9952008-05-05 22:52:56 +00005353fi
5354if test -z "$ac_cv_prog_DSYMUTIL"; then
5355 ac_ct_DSYMUTIL=$DSYMUTIL
5356 # Extract the first word of "dsymutil", so it can be a program name with args.
5357set dummy dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005359$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005360if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005361 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005362else
5363 if test -n "$ac_ct_DSYMUTIL"; then
5364 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5365else
5366as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5367for as_dir in $PATH
5368do
5369 IFS=$as_save_IFS
5370 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005371 for ac_exec_ext in '' $ac_executable_extensions; do
5372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005373 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
drhf922ca42015-05-14 15:39:18 +00005374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005375 break 2
5376 fi
5377done
drhf922ca42015-05-14 15:39:18 +00005378 done
drh8b727472009-01-19 18:18:40 +00005379IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005380
5381fi
5382fi
5383ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5384if test -n "$ac_ct_DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005386$as_echo "$ac_ct_DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005387else
drhf922ca42015-05-14 15:39:18 +00005388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005389$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005390fi
5391
drh8b727472009-01-19 18:18:40 +00005392 if test "x$ac_ct_DSYMUTIL" = x; then
5393 DSYMUTIL=":"
5394 else
5395 case $cross_compiling:$ac_tool_warned in
5396yes:)
drhf922ca42015-05-14 15:39:18 +00005397{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5398$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005399ac_tool_warned=yes ;;
5400esac
5401 DSYMUTIL=$ac_ct_DSYMUTIL
5402 fi
mlcreech636a9952008-05-05 22:52:56 +00005403else
5404 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5405fi
5406
5407 if test -n "$ac_tool_prefix"; then
5408 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5409set dummy ${ac_tool_prefix}nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005411$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005412if ${ac_cv_prog_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005413 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005414else
5415 if test -n "$NMEDIT"; then
5416 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5417else
5418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419for as_dir in $PATH
5420do
5421 IFS=$as_save_IFS
5422 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005423 for ac_exec_ext in '' $ac_executable_extensions; do
5424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005425 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
drhf922ca42015-05-14 15:39:18 +00005426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005427 break 2
5428 fi
5429done
drhf922ca42015-05-14 15:39:18 +00005430 done
drh8b727472009-01-19 18:18:40 +00005431IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005432
5433fi
5434fi
5435NMEDIT=$ac_cv_prog_NMEDIT
5436if test -n "$NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005438$as_echo "$NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005439else
drhf922ca42015-05-14 15:39:18 +00005440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005441$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005442fi
5443
drh8b727472009-01-19 18:18:40 +00005444
mlcreech636a9952008-05-05 22:52:56 +00005445fi
5446if test -z "$ac_cv_prog_NMEDIT"; then
5447 ac_ct_NMEDIT=$NMEDIT
5448 # Extract the first word of "nmedit", so it can be a program name with args.
5449set dummy nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005451$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005452if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005453 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005454else
5455 if test -n "$ac_ct_NMEDIT"; then
5456 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5457else
5458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459for as_dir in $PATH
5460do
5461 IFS=$as_save_IFS
5462 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005463 for ac_exec_ext in '' $ac_executable_extensions; do
5464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005465 ac_cv_prog_ac_ct_NMEDIT="nmedit"
drhf922ca42015-05-14 15:39:18 +00005466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005467 break 2
5468 fi
5469done
drhf922ca42015-05-14 15:39:18 +00005470 done
drh8b727472009-01-19 18:18:40 +00005471IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005472
5473fi
5474fi
5475ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5476if test -n "$ac_ct_NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005478$as_echo "$ac_ct_NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005479else
drhf922ca42015-05-14 15:39:18 +00005480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005481$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005482fi
5483
drh8b727472009-01-19 18:18:40 +00005484 if test "x$ac_ct_NMEDIT" = x; then
5485 NMEDIT=":"
5486 else
5487 case $cross_compiling:$ac_tool_warned in
5488yes:)
drhf922ca42015-05-14 15:39:18 +00005489{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005491ac_tool_warned=yes ;;
5492esac
5493 NMEDIT=$ac_ct_NMEDIT
5494 fi
mlcreech636a9952008-05-05 22:52:56 +00005495else
5496 NMEDIT="$ac_cv_prog_NMEDIT"
5497fi
5498
5499 if test -n "$ac_tool_prefix"; then
5500 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5501set dummy ${ac_tool_prefix}lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005503$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005504if ${ac_cv_prog_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005505 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005506else
5507 if test -n "$LIPO"; then
5508 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5509else
5510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5511for as_dir in $PATH
5512do
5513 IFS=$as_save_IFS
5514 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005515 for ac_exec_ext in '' $ac_executable_extensions; do
5516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005517 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
drhf922ca42015-05-14 15:39:18 +00005518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005519 break 2
5520 fi
5521done
drhf922ca42015-05-14 15:39:18 +00005522 done
drh8b727472009-01-19 18:18:40 +00005523IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005524
5525fi
5526fi
5527LIPO=$ac_cv_prog_LIPO
5528if test -n "$LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005530$as_echo "$LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005531else
drhf922ca42015-05-14 15:39:18 +00005532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005533$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005534fi
5535
drh8b727472009-01-19 18:18:40 +00005536
mlcreech636a9952008-05-05 22:52:56 +00005537fi
5538if test -z "$ac_cv_prog_LIPO"; then
5539 ac_ct_LIPO=$LIPO
5540 # Extract the first word of "lipo", so it can be a program name with args.
5541set dummy lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005543$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005544if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005545 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005546else
5547 if test -n "$ac_ct_LIPO"; then
5548 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5549else
5550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5551for as_dir in $PATH
5552do
5553 IFS=$as_save_IFS
5554 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005557 ac_cv_prog_ac_ct_LIPO="lipo"
drhf922ca42015-05-14 15:39:18 +00005558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005559 break 2
5560 fi
5561done
drhf922ca42015-05-14 15:39:18 +00005562 done
drh8b727472009-01-19 18:18:40 +00005563IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005564
5565fi
5566fi
5567ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5568if test -n "$ac_ct_LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005570$as_echo "$ac_ct_LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005571else
drhf922ca42015-05-14 15:39:18 +00005572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005573$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005574fi
5575
drh8b727472009-01-19 18:18:40 +00005576 if test "x$ac_ct_LIPO" = x; then
5577 LIPO=":"
5578 else
5579 case $cross_compiling:$ac_tool_warned in
5580yes:)
drhf922ca42015-05-14 15:39:18 +00005581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005583ac_tool_warned=yes ;;
5584esac
5585 LIPO=$ac_ct_LIPO
5586 fi
mlcreech636a9952008-05-05 22:52:56 +00005587else
5588 LIPO="$ac_cv_prog_LIPO"
5589fi
5590
5591 if test -n "$ac_tool_prefix"; then
5592 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5593set dummy ${ac_tool_prefix}otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005595$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005596if ${ac_cv_prog_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005597 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005598else
5599 if test -n "$OTOOL"; then
5600 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5601else
5602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603for as_dir in $PATH
5604do
5605 IFS=$as_save_IFS
5606 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005609 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
drhf922ca42015-05-14 15:39:18 +00005610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005611 break 2
5612 fi
5613done
drhf922ca42015-05-14 15:39:18 +00005614 done
drh8b727472009-01-19 18:18:40 +00005615IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005616
5617fi
5618fi
5619OTOOL=$ac_cv_prog_OTOOL
5620if test -n "$OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005622$as_echo "$OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005623else
drhf922ca42015-05-14 15:39:18 +00005624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005625$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005626fi
5627
drh8b727472009-01-19 18:18:40 +00005628
mlcreech636a9952008-05-05 22:52:56 +00005629fi
5630if test -z "$ac_cv_prog_OTOOL"; then
5631 ac_ct_OTOOL=$OTOOL
5632 # Extract the first word of "otool", so it can be a program name with args.
5633set dummy otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005635$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005636if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005637 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005638else
5639 if test -n "$ac_ct_OTOOL"; then
5640 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5641else
5642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5643for as_dir in $PATH
5644do
5645 IFS=$as_save_IFS
5646 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005647 for ac_exec_ext in '' $ac_executable_extensions; do
5648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005649 ac_cv_prog_ac_ct_OTOOL="otool"
drhf922ca42015-05-14 15:39:18 +00005650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005651 break 2
5652 fi
5653done
drhf922ca42015-05-14 15:39:18 +00005654 done
drh8b727472009-01-19 18:18:40 +00005655IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005656
5657fi
5658fi
5659ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5660if test -n "$ac_ct_OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005662$as_echo "$ac_ct_OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005663else
drhf922ca42015-05-14 15:39:18 +00005664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005665$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005666fi
5667
drh8b727472009-01-19 18:18:40 +00005668 if test "x$ac_ct_OTOOL" = x; then
5669 OTOOL=":"
5670 else
5671 case $cross_compiling:$ac_tool_warned in
5672yes:)
drhf922ca42015-05-14 15:39:18 +00005673{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5674$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005675ac_tool_warned=yes ;;
5676esac
5677 OTOOL=$ac_ct_OTOOL
5678 fi
mlcreech636a9952008-05-05 22:52:56 +00005679else
5680 OTOOL="$ac_cv_prog_OTOOL"
5681fi
5682
5683 if test -n "$ac_tool_prefix"; then
5684 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5685set dummy ${ac_tool_prefix}otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005687$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005688if ${ac_cv_prog_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005689 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005690else
5691 if test -n "$OTOOL64"; then
5692 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5693else
5694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695for as_dir in $PATH
5696do
5697 IFS=$as_save_IFS
5698 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005701 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
drhf922ca42015-05-14 15:39:18 +00005702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005703 break 2
5704 fi
5705done
drhf922ca42015-05-14 15:39:18 +00005706 done
drh8b727472009-01-19 18:18:40 +00005707IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005708
5709fi
5710fi
5711OTOOL64=$ac_cv_prog_OTOOL64
5712if test -n "$OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005714$as_echo "$OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005715else
drhf922ca42015-05-14 15:39:18 +00005716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005717$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005718fi
5719
drh8b727472009-01-19 18:18:40 +00005720
mlcreech636a9952008-05-05 22:52:56 +00005721fi
5722if test -z "$ac_cv_prog_OTOOL64"; then
5723 ac_ct_OTOOL64=$OTOOL64
5724 # Extract the first word of "otool64", so it can be a program name with args.
5725set dummy otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005727$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005728if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005729 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005730else
5731 if test -n "$ac_ct_OTOOL64"; then
5732 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5733else
5734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735for as_dir in $PATH
5736do
5737 IFS=$as_save_IFS
5738 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005741 ac_cv_prog_ac_ct_OTOOL64="otool64"
drhf922ca42015-05-14 15:39:18 +00005742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005743 break 2
5744 fi
5745done
drhf922ca42015-05-14 15:39:18 +00005746 done
drh8b727472009-01-19 18:18:40 +00005747IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005748
5749fi
5750fi
5751ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5752if test -n "$ac_ct_OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005754$as_echo "$ac_ct_OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005755else
drhf922ca42015-05-14 15:39:18 +00005756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005757$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005758fi
5759
drh8b727472009-01-19 18:18:40 +00005760 if test "x$ac_ct_OTOOL64" = x; then
5761 OTOOL64=":"
5762 else
5763 case $cross_compiling:$ac_tool_warned in
5764yes:)
drhf922ca42015-05-14 15:39:18 +00005765{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005767ac_tool_warned=yes ;;
5768esac
5769 OTOOL64=$ac_ct_OTOOL64
5770 fi
mlcreech636a9952008-05-05 22:52:56 +00005771else
5772 OTOOL64="$ac_cv_prog_OTOOL64"
5773fi
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
drhf922ca42015-05-14 15:39:18 +00005801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005802$as_echo_n "checking for -single_module linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005803if ${lt_cv_apple_cc_single_mod+:} false; then :
drh8b727472009-01-19 18:18:40 +00005804 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005805else
5806 lt_cv_apple_cc_single_mod=no
5807 if test -z "${LT_MULTI_MODULE}"; then
5808 # By default we will add the -single_module flag. You can override
5809 # by either setting the environment variable LT_MULTI_MODULE
5810 # non-empty at configure time, or by adding -multi_module to the
5811 # link flags.
5812 rm -rf libconftest.dylib*
5813 echo "int foo(void){return 1;}" > conftest.c
5814 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5815-dynamiclib -Wl,-single_module conftest.c" >&5
5816 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5817 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5818 _lt_result=$?
5819 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5820 lt_cv_apple_cc_single_mod=yes
5821 else
5822 cat conftest.err >&5
5823 fi
5824 rm -rf libconftest.dylib*
5825 rm -f conftest.*
5826 fi
5827fi
drhf922ca42015-05-14 15:39:18 +00005828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
drh8b727472009-01-19 18:18:40 +00005829$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
drhf922ca42015-05-14 15:39:18 +00005830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005831$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005832if ${lt_cv_ld_exported_symbols_list+:} false; then :
drh8b727472009-01-19 18:18:40 +00005833 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005834else
5835 lt_cv_ld_exported_symbols_list=no
5836 save_LDFLAGS=$LDFLAGS
5837 echo "_main" > conftest.sym
5838 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
drhf922ca42015-05-14 15:39:18 +00005839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005840/* end confdefs.h. */
5841
5842int
5843main ()
5844{
5845
5846 ;
5847 return 0;
5848}
5849_ACEOF
drhf922ca42015-05-14 15:39:18 +00005850if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00005851 lt_cv_ld_exported_symbols_list=yes
5852else
drhf922ca42015-05-14 15:39:18 +00005853 lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00005854fi
drhf922ca42015-05-14 15:39:18 +00005855rm -f core conftest.err conftest.$ac_objext \
5856 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005857 LDFLAGS="$save_LDFLAGS"
5858
5859fi
drhf922ca42015-05-14 15:39:18 +00005860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
drh8b727472009-01-19 18:18:40 +00005861$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005862 case $host_os in
5863 rhapsody* | darwin1.[012])
5864 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5865 darwin1.*)
5866 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5867 darwin*) # darwin 5.x on
5868 # if running on 10.5 or later, the deployment target defaults
5869 # to the OS version, if on x86, and 10.4, the deployment
5870 # target defaults to 10.4. Don't you love it?
5871 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5872 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5873 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5874 10.[012]*)
5875 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5876 10.*)
5877 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5878 esac
5879 ;;
5880 esac
5881 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5882 _lt_dar_single_mod='$single_module'
5883 fi
5884 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5885 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5886 else
5887 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5888 fi
5889 if test "$DSYMUTIL" != ":"; then
5890 _lt_dsymutil='~$DSYMUTIL $lib || :'
5891 else
5892 _lt_dsymutil=
5893 fi
5894 ;;
5895 esac
5896
a.rottmann84e63352003-03-24 09:42:16 +00005897ac_ext=c
5898ac_cpp='$CPP $CPPFLAGS'
5899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5901ac_compiler_gnu=$ac_cv_c_compiler_gnu
drhf922ca42015-05-14 15:39:18 +00005902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
drh8b727472009-01-19 18:18:40 +00005903$as_echo_n "checking how to run the C preprocessor... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005904# On Suns, sometimes $CPP names a directory.
5905if test -n "$CPP" && test -d "$CPP"; then
5906 CPP=
5907fi
5908if test -z "$CPP"; then
drhf922ca42015-05-14 15:39:18 +00005909 if ${ac_cv_prog_CPP+:} false; then :
drh8b727472009-01-19 18:18:40 +00005910 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00005911else
a.rottmann84e63352003-03-24 09:42:16 +00005912 # Double quotes because CPP needs to be expanded
5913 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5914 do
5915 ac_preproc_ok=false
5916for ac_c_preproc_warn_flag in '' yes
5917do
5918 # Use a header file that comes with gcc, so configuring glibc
5919 # with a fresh cross-compiler works.
5920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5921 # <limits.h> exists even on freestanding compilers.
5922 # On the NeXT, cc -E runs the code through the compiler's parser,
5923 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005925/* end confdefs.h. */
5926#ifdef __STDC__
5927# include <limits.h>
5928#else
5929# include <assert.h>
5930#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005931 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005932_ACEOF
drhf922ca42015-05-14 15:39:18 +00005933if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005934
drhf922ca42015-05-14 15:39:18 +00005935else
a.rottmann84e63352003-03-24 09:42:16 +00005936 # Broken: fails on valid input.
5937continue
5938fi
drhf922ca42015-05-14 15:39:18 +00005939rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005940
drh8b727472009-01-19 18:18:40 +00005941 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005942 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00005943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005944/* end confdefs.h. */
5945#include <ac_nonexistent.h>
5946_ACEOF
drhf922ca42015-05-14 15:39:18 +00005947if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005948 # Broken: success on invalid input.
5949continue
5950else
a.rottmann84e63352003-03-24 09:42:16 +00005951 # Passes both tests.
5952ac_preproc_ok=:
5953break
5954fi
drhf922ca42015-05-14 15:39:18 +00005955rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005956
5957done
5958# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00005959rm -f conftest.i conftest.err conftest.$ac_ext
5960if $ac_preproc_ok; then :
a.rottmann84e63352003-03-24 09:42:16 +00005961 break
5962fi
5963
5964 done
5965 ac_cv_prog_CPP=$CPP
5966
5967fi
5968 CPP=$ac_cv_prog_CPP
5969else
5970 ac_cv_prog_CPP=$CPP
5971fi
drhf922ca42015-05-14 15:39:18 +00005972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
drh8b727472009-01-19 18:18:40 +00005973$as_echo "$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005974ac_preproc_ok=false
5975for ac_c_preproc_warn_flag in '' yes
5976do
5977 # Use a header file that comes with gcc, so configuring glibc
5978 # with a fresh cross-compiler works.
5979 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5980 # <limits.h> exists even on freestanding compilers.
5981 # On the NeXT, cc -E runs the code through the compiler's parser,
5982 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005984/* end confdefs.h. */
5985#ifdef __STDC__
5986# include <limits.h>
5987#else
5988# include <assert.h>
5989#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005990 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005991_ACEOF
drhf922ca42015-05-14 15:39:18 +00005992if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005993
drhf922ca42015-05-14 15:39:18 +00005994else
a.rottmann84e63352003-03-24 09:42:16 +00005995 # Broken: fails on valid input.
5996continue
5997fi
drhf922ca42015-05-14 15:39:18 +00005998rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005999
drh8b727472009-01-19 18:18:40 +00006000 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00006001 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00006002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006003/* end confdefs.h. */
6004#include <ac_nonexistent.h>
6005_ACEOF
drhf922ca42015-05-14 15:39:18 +00006006if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006007 # Broken: success on invalid input.
6008continue
6009else
a.rottmann84e63352003-03-24 09:42:16 +00006010 # Passes both tests.
6011ac_preproc_ok=:
6012break
6013fi
drhf922ca42015-05-14 15:39:18 +00006014rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006015
6016done
6017# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00006018rm -f conftest.i conftest.err conftest.$ac_ext
6019if $ac_preproc_ok; then :
6020
a.rottmann84e63352003-03-24 09:42:16 +00006021else
drhf922ca42015-05-14 15:39:18 +00006022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6023$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6024as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6025See \`config.log' for more details" "$LINENO" 5; }
a.rottmann84e63352003-03-24 09:42:16 +00006026fi
6027
6028ac_ext=c
6029ac_cpp='$CPP $CPPFLAGS'
6030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6032ac_compiler_gnu=$ac_cv_c_compiler_gnu
6033
6034
drhf922ca42015-05-14 15:39:18 +00006035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
drh8b727472009-01-19 18:18:40 +00006036$as_echo_n "checking for ANSI C header files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006037if ${ac_cv_header_stdc+:} false; then :
drh8b727472009-01-19 18:18:40 +00006038 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006039else
drhf922ca42015-05-14 15:39:18 +00006040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006041/* end confdefs.h. */
6042#include <stdlib.h>
6043#include <stdarg.h>
6044#include <string.h>
6045#include <float.h>
6046
6047int
6048main ()
6049{
6050
6051 ;
6052 return 0;
6053}
6054_ACEOF
drhf922ca42015-05-14 15:39:18 +00006055if ac_fn_c_try_compile "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006056 ac_cv_header_stdc=yes
6057else
drhf922ca42015-05-14 15:39:18 +00006058 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006059fi
drh8b727472009-01-19 18:18:40 +00006060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006061
6062if test $ac_cv_header_stdc = yes; then
6063 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006065/* end confdefs.h. */
6066#include <string.h>
6067
6068_ACEOF
6069if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006070 $EGREP "memchr" >/dev/null 2>&1; then :
6071
a.rottmann84e63352003-03-24 09:42:16 +00006072else
6073 ac_cv_header_stdc=no
6074fi
6075rm -f conftest*
6076
6077fi
6078
6079if test $ac_cv_header_stdc = yes; then
6080 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006082/* end confdefs.h. */
6083#include <stdlib.h>
6084
6085_ACEOF
6086if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006087 $EGREP "free" >/dev/null 2>&1; then :
6088
a.rottmann84e63352003-03-24 09:42:16 +00006089else
6090 ac_cv_header_stdc=no
6091fi
6092rm -f conftest*
6093
6094fi
6095
6096if test $ac_cv_header_stdc = yes; then
6097 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
drhf922ca42015-05-14 15:39:18 +00006098 if test "$cross_compiling" = yes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006099 :
6100else
drhf922ca42015-05-14 15:39:18 +00006101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006102/* end confdefs.h. */
6103#include <ctype.h>
drh8b727472009-01-19 18:18:40 +00006104#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00006105#if ((' ' & 0x0FF) == 0x020)
6106# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6107# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6108#else
6109# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00006110 (('a' <= (c) && (c) <= 'i') \
6111 || ('j' <= (c) && (c) <= 'r') \
6112 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00006113# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6114#endif
6115
6116#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6117int
6118main ()
6119{
6120 int i;
6121 for (i = 0; i < 256; i++)
6122 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00006123 || toupper (i) != TOUPPER (i))
drh8b727472009-01-19 18:18:40 +00006124 return 2;
6125 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00006126}
6127_ACEOF
drhf922ca42015-05-14 15:39:18 +00006128if ac_fn_c_try_run "$LINENO"; then :
6129
a.rottmann84e63352003-03-24 09:42:16 +00006130else
drhf922ca42015-05-14 15:39:18 +00006131 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006132fi
drhf922ca42015-05-14 15:39:18 +00006133rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6134 conftest.$ac_objext conftest.beam conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00006135fi
6136
a.rottmann84e63352003-03-24 09:42:16 +00006137fi
6138fi
drhf922ca42015-05-14 15:39:18 +00006139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
drh8b727472009-01-19 18:18:40 +00006140$as_echo "$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006141if test $ac_cv_header_stdc = yes; then
6142
drhf922ca42015-05-14 15:39:18 +00006143$as_echo "#define STDC_HEADERS 1" >>confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00006144
6145fi
6146
6147# On IRIX 5.3, sys/types and inttypes.h are conflicting.
a.rottmann84e63352003-03-24 09:42:16 +00006148for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00006149 inttypes.h stdint.h unistd.h
drhf922ca42015-05-14 15:39:18 +00006150do :
6151 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6152ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6153"
6154if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006155 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006156#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006157_ACEOF
6158
6159fi
6160
6161done
6162
6163
a.rottmann84e63352003-03-24 09:42:16 +00006164for ac_header in dlfcn.h
drhf922ca42015-05-14 15:39:18 +00006165do :
6166 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6167"
6168if test "x$ac_cv_header_dlfcn_h" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006169 cat >>confdefs.h <<_ACEOF
drhf922ca42015-05-14 15:39:18 +00006170#define HAVE_DLFCN_H 1
a.rottmann84e63352003-03-24 09:42:16 +00006171_ACEOF
6172
6173fi
6174
drh71eb93e2001-09-28 01:34:43 +00006175done
6176
drh71eb93e2001-09-28 01:34:43 +00006177
drh71eb93e2001-09-28 01:34:43 +00006178
mlcreech636a9952008-05-05 22:52:56 +00006179# Set options
mlcreech94984912008-03-04 19:03:08 +00006180
drh71eb93e2001-09-28 01:34:43 +00006181
drh71eb93e2001-09-28 01:34:43 +00006182
mlcreech636a9952008-05-05 22:52:56 +00006183 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00006184
a.rottmann9bc8b932004-02-29 15:18:31 +00006185
mlcreech636a9952008-05-05 22:52:56 +00006186 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006187
a.rottmann9bc8b932004-02-29 15:18:31 +00006188
drh8b727472009-01-19 18:18:40 +00006189 # Check whether --enable-shared was given.
drhf922ca42015-05-14 15:39:18 +00006190if test "${enable_shared+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006191 enableval=$enable_shared; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006192 case $enableval in
6193 yes) enable_shared=yes ;;
6194 no) enable_shared=no ;;
6195 *)
6196 enable_shared=no
6197 # Look at the argument we got. We use all the common list separators.
6198 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6199 for pkg in $enableval; do
6200 IFS="$lt_save_ifs"
6201 if test "X$pkg" = "X$p"; then
6202 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006203 fi
mlcreech636a9952008-05-05 22:52:56 +00006204 done
6205 IFS="$lt_save_ifs"
6206 ;;
6207 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006208else
mlcreech636a9952008-05-05 22:52:56 +00006209 enable_shared=yes
drh8b727472009-01-19 18:18:40 +00006210fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006211
mlcreech636a9952008-05-05 22:52:56 +00006212
6213
6214
6215
6216
6217
6218
drh8b727472009-01-19 18:18:40 +00006219
6220 # Check whether --enable-static was given.
drhf922ca42015-05-14 15:39:18 +00006221if test "${enable_static+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006222 enableval=$enable_static; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006223 case $enableval in
6224 yes) enable_static=yes ;;
6225 no) enable_static=no ;;
6226 *)
6227 enable_static=no
6228 # Look at the argument we got. We use all the common list separators.
6229 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6230 for pkg in $enableval; do
6231 IFS="$lt_save_ifs"
6232 if test "X$pkg" = "X$p"; then
6233 enable_static=yes
6234 fi
6235 done
6236 IFS="$lt_save_ifs"
6237 ;;
6238 esac
6239else
6240 enable_static=yes
drh8b727472009-01-19 18:18:40 +00006241fi
mlcreech636a9952008-05-05 22:52:56 +00006242
6243
6244
6245
6246
6247
6248
6249
6250
drh8b727472009-01-19 18:18:40 +00006251
6252# Check whether --with-pic was given.
drhf922ca42015-05-14 15:39:18 +00006253if test "${with_pic+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006254 withval=$with_pic; pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00006255else
6256 pic_mode=default
drh8b727472009-01-19 18:18:40 +00006257fi
6258
mlcreech636a9952008-05-05 22:52:56 +00006259
6260test -z "$pic_mode" && pic_mode=default
6261
6262
6263
6264
6265
6266
6267
drh8b727472009-01-19 18:18:40 +00006268 # Check whether --enable-fast-install was given.
drhf922ca42015-05-14 15:39:18 +00006269if test "${enable_fast_install+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006270 enableval=$enable_fast_install; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006271 case $enableval in
6272 yes) enable_fast_install=yes ;;
6273 no) enable_fast_install=no ;;
6274 *)
6275 enable_fast_install=no
6276 # Look at the argument we got. We use all the common list separators.
6277 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6278 for pkg in $enableval; do
6279 IFS="$lt_save_ifs"
6280 if test "X$pkg" = "X$p"; then
6281 enable_fast_install=yes
6282 fi
6283 done
6284 IFS="$lt_save_ifs"
6285 ;;
6286 esac
6287else
6288 enable_fast_install=yes
drh8b727472009-01-19 18:18:40 +00006289fi
6290
mlcreech636a9952008-05-05 22:52:56 +00006291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301# This can be used to rebuild libtool when needed
6302LIBTOOL_DEPS="$ltmain"
6303
6304# Always use our own libtool.
6305LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331test -z "$LN_S" && LN_S="ln -s"
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346if test -n "${ZSH_VERSION+set}" ; then
6347 setopt NO_GLOB_SUBST
6348fi
6349
drhf922ca42015-05-14 15:39:18 +00006350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
drh8b727472009-01-19 18:18:40 +00006351$as_echo_n "checking for objdir... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006352if ${lt_cv_objdir+:} false; then :
drh8b727472009-01-19 18:18:40 +00006353 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006354else
6355 rm -f .libs 2>/dev/null
6356mkdir .libs 2>/dev/null
6357if test -d .libs; then
6358 lt_cv_objdir=.libs
6359else
6360 # MS-DOS does not allow filenames that begin with a dot.
6361 lt_cv_objdir=_libs
6362fi
6363rmdir .libs 2>/dev/null
6364fi
drhf922ca42015-05-14 15:39:18 +00006365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
drh8b727472009-01-19 18:18:40 +00006366$as_echo "$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006367objdir=$lt_cv_objdir
6368
6369
6370
6371
6372
mlcreech636a9952008-05-05 22:52:56 +00006373cat >>confdefs.h <<_ACEOF
6374#define LT_OBJDIR "$lt_cv_objdir/"
6375_ACEOF
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
a.rottmann9bc8b932004-02-29 15:18:31 +00006393case $host_os in
6394aix3*)
6395 # AIX sometimes has problems with the GCC collect2 program. For some
6396 # reason, if we set the COLLECT_NAMES environment variable, the problems
6397 # vanish in a puff of smoke.
6398 if test "X${COLLECT_NAMES+set}" != Xset; then
6399 COLLECT_NAMES=
6400 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00006401 fi
6402 ;;
6403esac
6404
a.rottmann9bc8b932004-02-29 15:18:31 +00006405# Sed substitution that helps us do robust quoting. It backslashifies
6406# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00006407sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006408
6409# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00006410double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006411
6412# Sed substitution to delay expansion of an escaped shell variable in a
6413# double_quote_subst'ed string.
6414delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6415
mlcreech636a9952008-05-05 22:52:56 +00006416# Sed substitution to delay expansion of an escaped single quote.
6417delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6418
a.rottmann9bc8b932004-02-29 15:18:31 +00006419# Sed substitution to avoid accidental globbing in evaled expressions
6420no_glob_subst='s/\*/\\\*/g'
6421
a.rottmann9bc8b932004-02-29 15:18:31 +00006422# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00006423ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00006424can_build_shared=yes
6425
vapier7f19c022007-02-17 14:46:31 +00006426# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00006427# which needs '.lib').
6428libext=a
mlcreech636a9952008-05-05 22:52:56 +00006429
a.rottmann9bc8b932004-02-29 15:18:31 +00006430with_gnu_ld="$lt_cv_prog_gnu_ld"
6431
a.rottmann84e63352003-03-24 09:42:16 +00006432old_CC="$CC"
6433old_CFLAGS="$CFLAGS"
6434
6435# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00006436test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006437test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006438test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006439test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00006440test -z "$ac_objext" && ac_objext=o
6441
vapier7f19c022007-02-17 14:46:31 +00006442for cc_temp in $compiler""; do
6443 case $cc_temp in
6444 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6445 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6446 \-*) ;;
6447 *) break;;
6448 esac
6449done
mlcreech636a9952008-05-05 22:52:56 +00006450cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00006451
6452
a.rottmann9bc8b932004-02-29 15:18:31 +00006453# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00006454test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00006455case $deplibs_check_method in
6456file_magic*)
6457 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
drhf922ca42015-05-14 15:39:18 +00006458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
drh8b727472009-01-19 18:18:40 +00006459$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006460if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006461 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006462else
a.rottmann9bc8b932004-02-29 15:18:31 +00006463 case $MAGIC_CMD in
6464[\\/*] | ?:[\\/]*)
6465 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6466 ;;
6467*)
6468 lt_save_MAGIC_CMD="$MAGIC_CMD"
6469 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6470 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6471 for ac_dir in $ac_dummy; do
6472 IFS="$lt_save_ifs"
6473 test -z "$ac_dir" && ac_dir=.
6474 if test -f $ac_dir/${ac_tool_prefix}file; then
6475 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6476 if test -n "$file_magic_test_file"; then
6477 case $deplibs_check_method in
6478 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006479 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006480 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6481 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6482 $EGREP "$file_magic_regex" > /dev/null; then
6483 :
6484 else
mlcreech636a9952008-05-05 22:52:56 +00006485 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006486
a.rottmann9bc8b932004-02-29 15:18:31 +00006487*** Warning: the command libtool uses to detect shared libraries,
6488*** $file_magic_cmd, produces output that libtool cannot recognize.
6489*** The result is that libtool may fail to recognize shared libraries
6490*** as such. This will affect the creation of libtool libraries that
6491*** depend on shared libraries, but programs linked with such libtool
6492*** libraries will work regardless of this problem. Nevertheless, you
6493*** may want to report the problem to your system manager and/or to
6494*** bug-libtool@gnu.org
6495
mlcreech636a9952008-05-05 22:52:56 +00006496_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006497 fi ;;
6498 esac
6499 fi
6500 break
6501 fi
6502 done
6503 IFS="$lt_save_ifs"
6504 MAGIC_CMD="$lt_save_MAGIC_CMD"
6505 ;;
6506esac
6507fi
6508
6509MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6510if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006512$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006513else
drhf922ca42015-05-14 15:39:18 +00006514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006515$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006516fi
6517
mlcreech636a9952008-05-05 22:52:56 +00006518
6519
6520
6521
a.rottmann9bc8b932004-02-29 15:18:31 +00006522if test -z "$lt_cv_path_MAGIC_CMD"; then
6523 if test -n "$ac_tool_prefix"; then
drhf922ca42015-05-14 15:39:18 +00006524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
drh8b727472009-01-19 18:18:40 +00006525$as_echo_n "checking for file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006526if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006527 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006528else
6529 case $MAGIC_CMD in
6530[\\/*] | ?:[\\/]*)
6531 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6532 ;;
6533*)
6534 lt_save_MAGIC_CMD="$MAGIC_CMD"
6535 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6536 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6537 for ac_dir in $ac_dummy; do
6538 IFS="$lt_save_ifs"
6539 test -z "$ac_dir" && ac_dir=.
6540 if test -f $ac_dir/file; then
6541 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6542 if test -n "$file_magic_test_file"; then
6543 case $deplibs_check_method in
6544 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006545 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006546 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6547 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6548 $EGREP "$file_magic_regex" > /dev/null; then
6549 :
6550 else
mlcreech636a9952008-05-05 22:52:56 +00006551 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006552
6553*** Warning: the command libtool uses to detect shared libraries,
6554*** $file_magic_cmd, produces output that libtool cannot recognize.
6555*** The result is that libtool may fail to recognize shared libraries
6556*** as such. This will affect the creation of libtool libraries that
6557*** depend on shared libraries, but programs linked with such libtool
6558*** libraries will work regardless of this problem. Nevertheless, you
6559*** may want to report the problem to your system manager and/or to
6560*** bug-libtool@gnu.org
6561
mlcreech636a9952008-05-05 22:52:56 +00006562_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006563 fi ;;
6564 esac
6565 fi
6566 break
6567 fi
6568 done
6569 IFS="$lt_save_ifs"
6570 MAGIC_CMD="$lt_save_MAGIC_CMD"
6571 ;;
6572esac
6573fi
6574
6575MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6576if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006578$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006579else
drhf922ca42015-05-14 15:39:18 +00006580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006581$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006582fi
6583
mlcreech636a9952008-05-05 22:52:56 +00006584
a.rottmann9bc8b932004-02-29 15:18:31 +00006585 else
6586 MAGIC_CMD=:
6587 fi
6588fi
6589
6590 fi
6591 ;;
6592esac
6593
a.rottmann9bc8b932004-02-29 15:18:31 +00006594# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00006595
a.rottmann9bc8b932004-02-29 15:18:31 +00006596lt_save_CC="$CC"
6597ac_ext=c
6598ac_cpp='$CPP $CPPFLAGS'
6599ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6600ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6601ac_compiler_gnu=$ac_cv_c_compiler_gnu
6602
6603
6604# Source file extension for C test sources.
6605ac_ext=c
6606
6607# Object file extension for compiled C test sources.
6608objext=o
6609objext=$objext
6610
6611# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00006612lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00006613
6614# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00006615lt_simple_link_test_code='int main(){return(0);}'
6616
6617
6618
6619
6620
a.rottmann9bc8b932004-02-29 15:18:31 +00006621
6622
6623# If no C compiler was specified, use CC.
6624LTCC=${LTCC-"$CC"}
6625
vapier7f19c022007-02-17 14:46:31 +00006626# If no C compiler flags were specified, use CFLAGS.
6627LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6628
a.rottmann9bc8b932004-02-29 15:18:31 +00006629# Allow CC to be a program name with arguments.
6630compiler=$CC
6631
mlcreech636a9952008-05-05 22:52:56 +00006632# Save the default compiler, since it gets overwritten when the other
6633# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6634compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00006635
vapier7f19c022007-02-17 14:46:31 +00006636# save warnings/boilerplate of simple test code
6637ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006638echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006639eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6640_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006641$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006642
vapier7f19c022007-02-17 14:46:31 +00006643ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006644echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006645eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6646_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006647$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006648
6649
mlcreech636a9952008-05-05 22:52:56 +00006650if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006651
6652lt_prog_compiler_no_builtin_flag=
6653
6654if test "$GCC" = yes; then
6655 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6656
drhf922ca42015-05-14 15:39:18 +00006657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006658$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006659if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
drh8b727472009-01-19 18:18:40 +00006660 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006661else
6662 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00006663 ac_outfile=conftest.$ac_objext
6664 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006665 lt_compiler_flag="-fno-rtti -fno-exceptions"
6666 # Insert the option either (1) after the last *FLAGS variable, or
6667 # (2) before a word containing "conftest.", or (3) at the end.
6668 # Note that $ac_compile itself does not contain backslashes and begins
6669 # with a dollar sign (not a hyphen), so the echo should work correctly.
6670 # The option is referenced via a variable to avoid confusing sed.
6671 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006672 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006673 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6674 -e 's:$: $lt_compiler_flag:'`
drhef5b2d22020-11-24 13:14:15 +00006675 (eval echo "\"\$as_me:6675: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006676 (eval "$lt_compile" 2>conftest.err)
6677 ac_status=$?
6678 cat conftest.err >&5
drhef5b2d22020-11-24 13:14:15 +00006679 echo "$as_me:6679: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006680 if (exit $ac_status) && test -s "$ac_outfile"; then
6681 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006682 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006683 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006684 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6685 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006686 lt_cv_prog_compiler_rtti_exceptions=yes
6687 fi
6688 fi
mlcreech636a9952008-05-05 22:52:56 +00006689 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006690
6691fi
drhf922ca42015-05-14 15:39:18 +00006692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006693$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006694
6695if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6696 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6697else
6698 :
6699fi
6700
6701fi
6702
mlcreech636a9952008-05-05 22:52:56 +00006703
6704
6705
6706
6707
6708 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00006709lt_prog_compiler_pic=
6710lt_prog_compiler_static=
6711
drhf922ca42015-05-14 15:39:18 +00006712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
drh8b727472009-01-19 18:18:40 +00006713$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006714
drh71eb93e2001-09-28 01:34:43 +00006715 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006716 lt_prog_compiler_wl='-Wl,'
6717 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006718
6719 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006720 aix*)
6721 # All AIX code is PIC.
6722 if test "$host_cpu" = ia64; then
6723 # AIX 5 now supports IA64 processor
6724 lt_prog_compiler_static='-Bstatic'
6725 fi
drh71eb93e2001-09-28 01:34:43 +00006726 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006727
drh71eb93e2001-09-28 01:34:43 +00006728 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006729 case $host_cpu in
6730 powerpc)
6731 # see comment about AmigaOS4 .so support
6732 lt_prog_compiler_pic='-fPIC'
6733 ;;
6734 m68k)
6735 # FIXME: we need at least 68020 code to build shared libraries, but
6736 # adding the `-m68020' flag to GCC prevents building anything better,
6737 # like `-m68040'.
6738 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6739 ;;
6740 esac
drh71eb93e2001-09-28 01:34:43 +00006741 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006742
mlcreech636a9952008-05-05 22:52:56 +00006743 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006744 # PIC is the default for these OSes.
6745 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006746
vapier6acb2cf2009-01-28 04:46:28 +00006747 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006748 # This hack is so that the source file can tell whether it is being
6749 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00006750 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6751 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00006752 lt_prog_compiler_pic='-DDLL_EXPORT'
6753 ;;
6754
drh71eb93e2001-09-28 01:34:43 +00006755 darwin* | rhapsody*)
6756 # PIC is the default on this platform
6757 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006758 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006759 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006760
a.rottmann9bc8b932004-02-29 15:18:31 +00006761 hpux*)
vapier6acb2cf2009-01-28 04:46:28 +00006762 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6763 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6764 # sets the default TLS model and affects inlining.
vapier7f19c022007-02-17 14:46:31 +00006765 case $host_cpu in
vapier6acb2cf2009-01-28 04:46:28 +00006766 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006767 # +Z the default
6768 ;;
6769 *)
6770 lt_prog_compiler_pic='-fPIC'
6771 ;;
6772 esac
6773 ;;
6774
mlcreech636a9952008-05-05 22:52:56 +00006775 interix[3-9]*)
6776 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6777 # Instead, we relocate shared libraries at runtime.
6778 ;;
6779
6780 msdosdjgpp*)
6781 # Just because we use GCC doesn't mean we suddenly get shared libraries
6782 # on systems that don't support them.
6783 lt_prog_compiler_can_build_shared=no
6784 enable_shared=no
6785 ;;
6786
6787 *nto* | *qnx*)
6788 # QNX uses GNU C++, but need to define -shared option too, otherwise
6789 # it will coredump.
6790 lt_prog_compiler_pic='-fPIC -shared'
6791 ;;
6792
6793 sysv4*MP*)
6794 if test -d /usr/nec; then
6795 lt_prog_compiler_pic=-Kconform_pic
6796 fi
6797 ;;
6798
drh71eb93e2001-09-28 01:34:43 +00006799 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006800 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006801 ;;
6802 esac
6803 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006804 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006805 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006806 aix*)
6807 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006808 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006809 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006810 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006811 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006812 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006813 fi
6814 ;;
6815
vapier6acb2cf2009-01-28 04:46:28 +00006816 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006817 # This hack is so that the source file can tell whether it is being
6818 # built for inclusion in a dll (and should export symbols for example).
6819 lt_prog_compiler_pic='-DDLL_EXPORT'
6820 ;;
6821
a.rottmann84e63352003-03-24 09:42:16 +00006822 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006823 lt_prog_compiler_wl='-Wl,'
6824 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6825 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006826 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006827 hppa*64*|ia64*)
6828 # +Z the default
6829 ;;
6830 *)
6831 lt_prog_compiler_pic='+Z'
6832 ;;
6833 esac
6834 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6835 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006836 ;;
6837
6838 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006839 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006840 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006841 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006842 ;;
6843
mlcreech636a9952008-05-05 22:52:56 +00006844 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00006845 case $cc_basename in
vapier6acb2cf2009-01-28 04:46:28 +00006846 # old Intel for x86_64 which still supported -KPIC.
6847 ecc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006848 lt_prog_compiler_wl='-Wl,'
6849 lt_prog_compiler_pic='-KPIC'
6850 lt_prog_compiler_static='-static'
6851 ;;
vapier6acb2cf2009-01-28 04:46:28 +00006852 # icc used to be incompatible with GCC.
6853 # ICC 10 doesn't accept -KPIC any more.
6854 icc* | ifort*)
6855 lt_prog_compiler_wl='-Wl,'
6856 lt_prog_compiler_pic='-fPIC'
6857 lt_prog_compiler_static='-static'
6858 ;;
6859 # Lahey Fortran 8.1.
6860 lf95*)
6861 lt_prog_compiler_wl='-Wl,'
6862 lt_prog_compiler_pic='--shared'
6863 lt_prog_compiler_static='--static'
6864 ;;
vapier7f19c022007-02-17 14:46:31 +00006865 pgcc* | pgf77* | pgf90* | pgf95*)
6866 # Portland Group compilers (*not* the Pentium gcc compiler,
6867 # which looks to be a dead project)
6868 lt_prog_compiler_wl='-Wl,'
6869 lt_prog_compiler_pic='-fpic'
6870 lt_prog_compiler_static='-Bstatic'
6871 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006872 ccc*)
6873 lt_prog_compiler_wl='-Wl,'
6874 # All Alpha code is PIC.
6875 lt_prog_compiler_static='-non_shared'
6876 ;;
mlcreech636a9952008-05-05 22:52:56 +00006877 xl*)
6878 # IBM XL C 8.0/Fortran 10.1 on PPC
6879 lt_prog_compiler_wl='-Wl,'
6880 lt_prog_compiler_pic='-qpic'
6881 lt_prog_compiler_static='-qstaticlink'
6882 ;;
6883 *)
6884 case `$CC -V 2>&1 | sed 5q` in
6885 *Sun\ C*)
6886 # Sun C 5.9
6887 lt_prog_compiler_pic='-KPIC'
6888 lt_prog_compiler_static='-Bstatic'
6889 lt_prog_compiler_wl='-Wl,'
6890 ;;
6891 *Sun\ F*)
6892 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6893 lt_prog_compiler_pic='-KPIC'
6894 lt_prog_compiler_static='-Bstatic'
6895 lt_prog_compiler_wl=''
6896 ;;
6897 esac
6898 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006899 esac
drh71eb93e2001-09-28 01:34:43 +00006900 ;;
6901
mlcreech636a9952008-05-05 22:52:56 +00006902 newsos6)
6903 lt_prog_compiler_pic='-KPIC'
6904 lt_prog_compiler_static='-Bstatic'
6905 ;;
6906
6907 *nto* | *qnx*)
6908 # QNX uses GNU C++, but need to define -shared option too, otherwise
6909 # it will coredump.
6910 lt_prog_compiler_pic='-fPIC -shared'
6911 ;;
6912
drh71eb93e2001-09-28 01:34:43 +00006913 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006914 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006915 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00006916 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006917 ;;
6918
mlcreech636a9952008-05-05 22:52:56 +00006919 rdos*)
6920 lt_prog_compiler_static='-non_shared'
6921 ;;
6922
drh71eb93e2001-09-28 01:34:43 +00006923 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006924 lt_prog_compiler_pic='-KPIC'
6925 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00006926 case $cc_basename in
6927 f77* | f90* | f95*)
6928 lt_prog_compiler_wl='-Qoption ld ';;
6929 *)
6930 lt_prog_compiler_wl='-Wl,';;
6931 esac
drh71eb93e2001-09-28 01:34:43 +00006932 ;;
6933
6934 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006935 lt_prog_compiler_wl='-Qoption ld '
6936 lt_prog_compiler_pic='-PIC'
6937 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006938 ;;
6939
vapier7f19c022007-02-17 14:46:31 +00006940 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006941 lt_prog_compiler_wl='-Wl,'
6942 lt_prog_compiler_pic='-KPIC'
6943 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006944 ;;
6945
6946 sysv4*MP*)
6947 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00006948 lt_prog_compiler_pic='-Kconform_pic'
6949 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006950 fi
6951 ;;
6952
vapier7f19c022007-02-17 14:46:31 +00006953 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6954 lt_prog_compiler_wl='-Wl,'
6955 lt_prog_compiler_pic='-KPIC'
6956 lt_prog_compiler_static='-Bstatic'
6957 ;;
6958
6959 unicos*)
6960 lt_prog_compiler_wl='-Wl,'
6961 lt_prog_compiler_can_build_shared=no
6962 ;;
6963
a.rottmann9bc8b932004-02-29 15:18:31 +00006964 uts4*)
6965 lt_prog_compiler_pic='-pic'
6966 lt_prog_compiler_static='-Bstatic'
6967 ;;
6968
drh71eb93e2001-09-28 01:34:43 +00006969 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006970 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006971 ;;
6972 esac
6973 fi
6974
mlcreech636a9952008-05-05 22:52:56 +00006975case $host_os in
6976 # For platforms which do not support PIC, -DPIC is meaningless:
6977 *djgpp*)
6978 lt_prog_compiler_pic=
6979 ;;
6980 *)
6981 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6982 ;;
6983esac
drhf922ca42015-05-14 15:39:18 +00006984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
drh8b727472009-01-19 18:18:40 +00006985$as_echo "$lt_prog_compiler_pic" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00006986
6987
6988
6989
6990
drh71eb93e2001-09-28 01:34:43 +00006991
a.rottmann9bc8b932004-02-29 15:18:31 +00006992#
6993# Check to make sure the PIC flag actually works.
6994#
6995if test -n "$lt_prog_compiler_pic"; then
drhf922ca42015-05-14 15:39:18 +00006996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
drh8b727472009-01-19 18:18:40 +00006997$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006998if ${lt_cv_prog_compiler_pic_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00006999 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007000else
mlcreech636a9952008-05-05 22:52:56 +00007001 lt_cv_prog_compiler_pic_works=no
7002 ac_outfile=conftest.$ac_objext
7003 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007004 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7005 # Insert the option either (1) after the last *FLAGS variable, or
7006 # (2) before a word containing "conftest.", or (3) at the end.
7007 # Note that $ac_compile itself does not contain backslashes and begins
7008 # with a dollar sign (not a hyphen), so the echo should work correctly.
7009 # The option is referenced via a variable to avoid confusing sed.
7010 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007011 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007012 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7013 -e 's:$: $lt_compiler_flag:'`
drhef5b2d22020-11-24 13:14:15 +00007014 (eval echo "\"\$as_me:7014: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007015 (eval "$lt_compile" 2>conftest.err)
7016 ac_status=$?
7017 cat conftest.err >&5
drhef5b2d22020-11-24 13:14:15 +00007018 echo "$as_me:7018: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007019 if (exit $ac_status) && test -s "$ac_outfile"; then
7020 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00007021 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00007022 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007023 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7024 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007025 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007026 fi
7027 fi
mlcreech636a9952008-05-05 22:52:56 +00007028 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007029
a.rottmann9bc8b932004-02-29 15:18:31 +00007030fi
drhf922ca42015-05-14 15:39:18 +00007031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
drh8b727472009-01-19 18:18:40 +00007032$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007033
mlcreech636a9952008-05-05 22:52:56 +00007034if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007035 case $lt_prog_compiler_pic in
7036 "" | " "*) ;;
7037 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7038 esac
drh71eb93e2001-09-28 01:34:43 +00007039else
a.rottmann9bc8b932004-02-29 15:18:31 +00007040 lt_prog_compiler_pic=
7041 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00007042fi
7043
a.rottmann84e63352003-03-24 09:42:16 +00007044fi
mlcreech636a9952008-05-05 22:52:56 +00007045
7046
7047
7048
7049
a.rottmann84e63352003-03-24 09:42:16 +00007050
vapier7f19c022007-02-17 14:46:31 +00007051#
7052# Check to make sure the static flag actually works.
7053#
7054wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00007055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
drh8b727472009-01-19 18:18:40 +00007056$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007057if ${lt_cv_prog_compiler_static_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00007058 $as_echo_n "(cached) " >&6
vapier7f19c022007-02-17 14:46:31 +00007059else
mlcreech636a9952008-05-05 22:52:56 +00007060 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00007061 save_LDFLAGS="$LDFLAGS"
7062 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00007063 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00007064 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7065 # The linker can only warn and ignore the option if not recognized
7066 # So say no if there are warnings
7067 if test -s conftest.err; then
7068 # Append any errors to the config.log.
7069 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00007070 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007071 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7072 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007073 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007074 fi
7075 else
mlcreech636a9952008-05-05 22:52:56 +00007076 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007077 fi
7078 fi
mlcreech636a9952008-05-05 22:52:56 +00007079 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00007080 LDFLAGS="$save_LDFLAGS"
7081
7082fi
drhf922ca42015-05-14 15:39:18 +00007083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
drh8b727472009-01-19 18:18:40 +00007084$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00007085
mlcreech636a9952008-05-05 22:52:56 +00007086if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00007087 :
7088else
7089 lt_prog_compiler_static=
7090fi
7091
7092
mlcreech636a9952008-05-05 22:52:56 +00007093
7094
7095
7096
7097
drhf922ca42015-05-14 15:39:18 +00007098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007099$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007100if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007101 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007102else
a.rottmann9bc8b932004-02-29 15:18:31 +00007103 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00007104 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007105 mkdir conftest
7106 cd conftest
7107 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00007108 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007109
a.rottmann9bc8b932004-02-29 15:18:31 +00007110 lt_compiler_flag="-o out/conftest2.$ac_objext"
7111 # Insert the option either (1) after the last *FLAGS variable, or
7112 # (2) before a word containing "conftest.", or (3) at the end.
7113 # Note that $ac_compile itself does not contain backslashes and begins
7114 # with a dollar sign (not a hyphen), so the echo should work correctly.
7115 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007116 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007117 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7118 -e 's:$: $lt_compiler_flag:'`
drhef5b2d22020-11-24 13:14:15 +00007119 (eval echo "\"\$as_me:7119: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007120 (eval "$lt_compile" 2>out/conftest.err)
7121 ac_status=$?
7122 cat out/conftest.err >&5
drhef5b2d22020-11-24 13:14:15 +00007123 echo "$as_me:7123: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007124 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7125 then
7126 # The compiler can only warn and ignore the option if not recognized
7127 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00007128 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007129 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7130 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007131 lt_cv_prog_compiler_c_o=yes
7132 fi
7133 fi
vapier7f19c022007-02-17 14:46:31 +00007134 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00007135 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00007136 # SGI C++ compiler will create directory out/ii_files/ for
7137 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00007138 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7139 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00007140 cd ..
mlcreech636a9952008-05-05 22:52:56 +00007141 $RM -r conftest
7142 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007143
7144fi
drhf922ca42015-05-14 15:39:18 +00007145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007146$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007147
7148
7149
7150
7151
7152
drhf922ca42015-05-14 15:39:18 +00007153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007154$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007155if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007156 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00007157else
7158 lt_cv_prog_compiler_c_o=no
7159 $RM -r conftest 2>/dev/null
7160 mkdir conftest
7161 cd conftest
7162 mkdir out
7163 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7164
7165 lt_compiler_flag="-o out/conftest2.$ac_objext"
7166 # Insert the option either (1) after the last *FLAGS variable, or
7167 # (2) before a word containing "conftest.", or (3) at the end.
7168 # Note that $ac_compile itself does not contain backslashes and begins
7169 # with a dollar sign (not a hyphen), so the echo should work correctly.
7170 lt_compile=`echo "$ac_compile" | $SED \
7171 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7172 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7173 -e 's:$: $lt_compiler_flag:'`
drhef5b2d22020-11-24 13:14:15 +00007174 (eval echo "\"\$as_me:7174: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00007175 (eval "$lt_compile" 2>out/conftest.err)
7176 ac_status=$?
7177 cat out/conftest.err >&5
drhef5b2d22020-11-24 13:14:15 +00007178 echo "$as_me:7178: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00007179 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7180 then
7181 # The compiler can only warn and ignore the option if not recognized
7182 # So say no if there are warnings
7183 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7184 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7185 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7186 lt_cv_prog_compiler_c_o=yes
7187 fi
7188 fi
7189 chmod u+w . 2>&5
7190 $RM conftest*
7191 # SGI C++ compiler will create directory out/ii_files/ for
7192 # template instantiation
7193 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7194 $RM out/* && rmdir out
7195 cd ..
7196 $RM -r conftest
7197 $RM conftest*
7198
7199fi
drhf922ca42015-05-14 15:39:18 +00007200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007201$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007202
7203
drh71eb93e2001-09-28 01:34:43 +00007204
a.rottmann84e63352003-03-24 09:42:16 +00007205
drh71eb93e2001-09-28 01:34:43 +00007206hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00007207if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00007208 # do not overwrite the value of need_locks provided by the user
drhf922ca42015-05-14 15:39:18 +00007209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
drh8b727472009-01-19 18:18:40 +00007210$as_echo_n "checking if we can lock with hard links... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00007211 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00007212 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007213 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7214 touch conftest.a
7215 ln conftest.a conftest.b 2>&5 || hard_links=no
7216 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drhf922ca42015-05-14 15:39:18 +00007217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
drh8b727472009-01-19 18:18:40 +00007218$as_echo "$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007219 if test "$hard_links" = no; then
drhf922ca42015-05-14 15:39:18 +00007220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
drh8b727472009-01-19 18:18:40 +00007221$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00007222 need_locks=warn
7223 fi
7224else
7225 need_locks=no
7226fi
7227
mlcreech636a9952008-05-05 22:52:56 +00007228
7229
7230
7231
7232
drhf922ca42015-05-14 15:39:18 +00007233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00007234$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007235
7236 runpath_var=
7237 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007238 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007239 archive_cmds=
7240 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007241 compiler_needs_object=no
7242 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007243 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00007244 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7245 hardcode_automatic=no
7246 hardcode_direct=no
7247 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007248 hardcode_libdir_flag_spec=
7249 hardcode_libdir_flag_spec_ld=
7250 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007251 hardcode_minus_L=no
7252 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007253 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007254 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00007255 module_cmds=
7256 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007257 old_archive_from_new_cmds=
7258 old_archive_from_expsyms_cmds=
7259 thread_safe_flag_spec=
7260 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007261 # include_expsyms should be a list of space-separated symbols to be *always*
7262 # included in the symbol list
7263 include_expsyms=
7264 # exclude_expsyms can be an extended regexp of symbols to exclude
7265 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7266 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7267 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00007268 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00007269 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7270 # platforms (ab)use it in PIC code, but their linkers get confused if
7271 # the symbol is explicitly referenced. Since portable code cannot
7272 # rely on this symbol name, it's probably fine to never include it in
7273 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00007274 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00007275 extract_expsyms_cmds=
7276
7277 case $host_os in
vapier6acb2cf2009-01-28 04:46:28 +00007278 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007279 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7280 # When not using gcc, we currently assume that we are using
7281 # Microsoft Visual C++.
7282 if test "$GCC" != yes; then
7283 with_gnu_ld=no
7284 fi
7285 ;;
vapier7f19c022007-02-17 14:46:31 +00007286 interix*)
7287 # we just hope/assume this is gcc and not c89 (= MSVC++)
7288 with_gnu_ld=yes
7289 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007290 openbsd*)
7291 with_gnu_ld=no
7292 ;;
7293 esac
7294
7295 ld_shlibs=yes
7296 if test "$with_gnu_ld" = yes; then
7297 # If archive_cmds runs LD, not CC, wlarc should be empty
7298 wlarc='${wl}'
7299
vapier7f19c022007-02-17 14:46:31 +00007300 # Set some defaults for GNU ld with shared library support. These
7301 # are reset later if shared libraries are not supported. Putting them
7302 # here allows them to be overridden if necessary.
7303 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00007304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00007305 export_dynamic_flag_spec='${wl}--export-dynamic'
7306 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00007307 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7308 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7309 else
7310 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00007311 fi
7312 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00007313 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00007314 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7315 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7316 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7317 *\ 2.11.*) ;; # other 2.11 versions
7318 *) supports_anon_versioning=yes ;;
7319 esac
7320
a.rottmann9bc8b932004-02-29 15:18:31 +00007321 # See if GNU ld supports shared libraries.
7322 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007323 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007324 # On AIX/PPC, the GNU linker is very broken
7325 if test "$host_cpu" != ia64; then
7326 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007327 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007328
7329*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7330*** to be unable to reliably create shared libraries on AIX.
7331*** Therefore, libtool is disabling shared libraries support. If you
7332*** really care for shared libraries, you may want to modify your PATH
7333*** so that a non-GNU linker is found, and then restart.
7334
mlcreech636a9952008-05-05 22:52:56 +00007335_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007336 fi
7337 ;;
7338
7339 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007340 case $host_cpu in
7341 powerpc)
7342 # see comment about AmigaOS4 .so support
7343 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7344 archive_expsym_cmds=''
7345 ;;
7346 m68k)
7347 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)'
7348 hardcode_libdir_flag_spec='-L$libdir'
7349 hardcode_minus_L=yes
7350 ;;
7351 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007352 ;;
7353
7354 beos*)
mlcreech636a9952008-05-05 22:52:56 +00007355 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007356 allow_undefined_flag=unsupported
7357 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7358 # support --undefined. This deserves some investigation. FIXME
7359 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7360 else
7361 ld_shlibs=no
7362 fi
7363 ;;
7364
vapier6acb2cf2009-01-28 04:46:28 +00007365 cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00007366 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00007367 # as there is no search path for DLLs.
7368 hardcode_libdir_flag_spec='-L$libdir'
7369 allow_undefined_flag=unsupported
7370 always_export_symbols=no
7371 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00007372 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 +00007373
mlcreech636a9952008-05-05 22:52:56 +00007374 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00007375 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 +00007376 # If the export-symbols file already is a .def file (1st line
7377 # is EXPORTS), use it as is; otherwise, prepend...
7378 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7379 cp $export_symbols $output_objdir/$soname.def;
7380 else
7381 echo EXPORTS > $output_objdir/$soname.def;
7382 cat $export_symbols >> $output_objdir/$soname.def;
7383 fi~
vapier7f19c022007-02-17 14:46:31 +00007384 $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 +00007385 else
7386 ld_shlibs=no
7387 fi
7388 ;;
7389
mlcreech636a9952008-05-05 22:52:56 +00007390 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007391 hardcode_direct=no
7392 hardcode_shlibpath_var=no
7393 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7394 export_dynamic_flag_spec='${wl}-E'
7395 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7396 # Instead, shared libraries are loaded at an image base (0x10000000 by
7397 # default) and relocated if they conflict, which is a slow very memory
7398 # consuming and fragmenting process. To avoid this, we pick a random,
7399 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7400 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7401 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7402 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'
7403 ;;
7404
mlcreech636a9952008-05-05 22:52:56 +00007405 gnu* | linux* | tpf* | k*bsd*-gnu)
7406 tmp_diet=no
7407 if test "$host_os" = linux-dietlibc; then
7408 case $cc_basename in
7409 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7410 esac
7411 fi
7412 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7413 && test "$tmp_diet" = no
7414 then
vapier7f19c022007-02-17 14:46:31 +00007415 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00007416 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007417 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00007418 pgcc*) # Portland Group C compiler
7419 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 +00007420 tmp_addflag=' $pic_flag'
7421 ;;
7422 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00007423 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 +00007424 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00007425 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00007426 tmp_addflag=' -i_dynamic' ;;
7427 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7428 tmp_addflag=' -i_dynamic -nofor_main' ;;
7429 ifc* | ifort*) # Intel Fortran compiler
7430 tmp_addflag=' -nofor_main' ;;
vapier6acb2cf2009-01-28 04:46:28 +00007431 lf95*) # Lahey Fortran 8.1
7432 whole_archive_flag_spec=
7433 tmp_sharedflag='--shared' ;;
mlcreech636a9952008-05-05 22:52:56 +00007434 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7435 tmp_sharedflag='-qmkshrobj'
7436 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00007437 esac
mlcreech636a9952008-05-05 22:52:56 +00007438 case `$CC -V 2>&1 | sed 5q` in
7439 *Sun\ C*) # Sun C 5.9
7440 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'
7441 compiler_needs_object=yes
7442 tmp_sharedflag='-G' ;;
7443 *Sun\ F*) # Sun Fortran 8.3
7444 tmp_sharedflag='-G' ;;
7445 esac
7446 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007447
mlcreech636a9952008-05-05 22:52:56 +00007448 if test "x$supports_anon_versioning" = xyes; then
7449 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7450 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7451 echo "local: *; };" >> $output_objdir/$libname.ver~
7452 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7453 fi
7454
7455 case $cc_basename in
7456 xlf*)
7457 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7458 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7459 hardcode_libdir_flag_spec=
7460 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7461 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7462 if test "x$supports_anon_versioning" = xyes; then
7463 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7464 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7465 echo "local: *; };" >> $output_objdir/$libname.ver~
7466 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7467 fi
7468 ;;
7469 esac
vapier7f19c022007-02-17 14:46:31 +00007470 else
mlcreech636a9952008-05-05 22:52:56 +00007471 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00007472 fi
7473 ;;
7474
7475 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007476 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007477 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7478 wlarc=
7479 else
7480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7481 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7482 fi
7483 ;;
7484
vapier7f19c022007-02-17 14:46:31 +00007485 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007486 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007487 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007488 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007489
7490*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7491*** create shared libraries on Solaris systems. Therefore, libtool
7492*** is disabling shared libraries support. We urge you to upgrade GNU
7493*** binutils to release 2.9.1 or newer. Another option is to modify
7494*** your PATH or compiler configuration so that the native linker is
7495*** used, and then restart.
7496
mlcreech636a9952008-05-05 22:52:56 +00007497_LT_EOF
7498 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007499 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7500 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7501 else
7502 ld_shlibs=no
7503 fi
7504 ;;
7505
vapier7f19c022007-02-17 14:46:31 +00007506 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7507 case `$LD -v 2>&1` in
7508 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7509 ld_shlibs=no
7510 cat <<_LT_EOF 1>&2
7511
7512*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7513*** reliably create shared libraries on SCO systems. Therefore, libtool
7514*** is disabling shared libraries support. We urge you to upgrade GNU
7515*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7516*** your PATH or compiler configuration so that the native linker is
7517*** used, and then restart.
7518
7519_LT_EOF
7520 ;;
7521 *)
mlcreech636a9952008-05-05 22:52:56 +00007522 # For security reasons, it is highly recommended that you always
7523 # use absolute paths for naming shared libraries, and exclude the
7524 # DT_RUNPATH tag from executables and libraries. But doing so
7525 # requires that you compile everything twice, which is a pain.
7526 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7527 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7528 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7529 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 +00007530 else
7531 ld_shlibs=no
7532 fi
7533 ;;
7534 esac
7535 ;;
7536
a.rottmann9bc8b932004-02-29 15:18:31 +00007537 sunos4*)
7538 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7539 wlarc=
7540 hardcode_direct=yes
7541 hardcode_shlibpath_var=no
7542 ;;
7543
a.rottmann9bc8b932004-02-29 15:18:31 +00007544 *)
mlcreech636a9952008-05-05 22:52:56 +00007545 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007546 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7547 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7548 else
7549 ld_shlibs=no
7550 fi
7551 ;;
7552 esac
7553
vapier7f19c022007-02-17 14:46:31 +00007554 if test "$ld_shlibs" = no; then
7555 runpath_var=
7556 hardcode_libdir_flag_spec=
7557 export_dynamic_flag_spec=
7558 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007559 fi
7560 else
7561 # PORTME fill in a description of your system's linker (not GNU ld)
7562 case $host_os in
7563 aix3*)
7564 allow_undefined_flag=unsupported
7565 always_export_symbols=yes
7566 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'
7567 # Note: this linker hardcodes the directories in LIBPATH if there
7568 # are no directories specified by -L.
7569 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007570 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007571 # Neither direct hardcoding nor static linking is supported with a
7572 # broken collect2.
7573 hardcode_direct=unsupported
7574 fi
7575 ;;
7576
mlcreech636a9952008-05-05 22:52:56 +00007577 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007578 if test "$host_cpu" = ia64; then
7579 # On IA64, the linker does run time linking by default, so we don't
7580 # have to do anything special.
7581 aix_use_runtimelinking=no
7582 exp_sym_flag='-Bexport'
7583 no_entry_flag=""
7584 else
7585 # If we're using GNU nm, then we don't want the "-C" option.
7586 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00007587 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7588 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 +00007589 else
mlcreech636a9952008-05-05 22:52:56 +00007590 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 +00007591 fi
7592 aix_use_runtimelinking=no
7593
7594 # Test if we are trying to use run time linking or normal
7595 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7596 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00007597 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007598 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00007599 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7600 aix_use_runtimelinking=yes
7601 break
7602 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007603 done
vapier7f19c022007-02-17 14:46:31 +00007604 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007605 esac
7606
7607 exp_sym_flag='-bexport'
7608 no_entry_flag='-bnoentry'
7609 fi
7610
7611 # When large executables or shared objects are built, AIX ld can
7612 # have problems creating the table of contents. If linking a library
7613 # or program results in "error TOC overflow" add -mminimal-toc to
7614 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7615 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7616
7617 archive_cmds=''
7618 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007619 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007620 hardcode_libdir_separator=':'
7621 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00007622 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00007623
7624 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007625 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007626 # We only want to do this on AIX 4.2 and lower, the check
7627 # below for broken collect2 doesn't work under 4.3+
7628 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00007629 if test -f "$collect2name" &&
7630 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007631 then
mlcreech636a9952008-05-05 22:52:56 +00007632 # We have reworked collect2
7633 :
a.rottmann9bc8b932004-02-29 15:18:31 +00007634 else
mlcreech636a9952008-05-05 22:52:56 +00007635 # We have old collect2
7636 hardcode_direct=unsupported
7637 # It fails to find uninstalled libraries when the uninstalled
7638 # path is not listed in the libpath. Setting hardcode_minus_L
7639 # to unsupported forces relinking
7640 hardcode_minus_L=yes
7641 hardcode_libdir_flag_spec='-L$libdir'
7642 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007643 fi
vapier7f19c022007-02-17 14:46:31 +00007644 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007645 esac
7646 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007647 if test "$aix_use_runtimelinking" = yes; then
7648 shared_flag="$shared_flag "'${wl}-G'
7649 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007650 else
7651 # not using gcc
7652 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00007653 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7654 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00007655 shared_flag='-G'
7656 else
vapier7f19c022007-02-17 14:46:31 +00007657 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007658 shared_flag='${wl}-G'
7659 else
7660 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007661 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007662 fi
7663 fi
7664
vapier6acb2cf2009-01-28 04:46:28 +00007665 export_dynamic_flag_spec='${wl}-bexpall'
a.rottmann9bc8b932004-02-29 15:18:31 +00007666 # It seems that -bexpall does not export symbols beginning with
7667 # underscore (_), so it is better to generate a list of symbols to export.
7668 always_export_symbols=yes
7669 if test "$aix_use_runtimelinking" = yes; then
7670 # Warning - without using the other runtime loading flags (-brtl),
7671 # -berok will link without error, but may produce a broken library.
7672 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00007673 # Determine the default libpath from the value encoded in an
7674 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007676/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007677
a.rottmann84e63352003-03-24 09:42:16 +00007678int
7679main ()
7680{
a.rottmann9bc8b932004-02-29 15:18:31 +00007681
a.rottmann84e63352003-03-24 09:42:16 +00007682 ;
7683 return 0;
7684}
7685_ACEOF
drhf922ca42015-05-14 15:39:18 +00007686if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007687
mlcreech636a9952008-05-05 22:52:56 +00007688lt_aix_libpath_sed='
7689 /Import File Strings/,/^$/ {
7690 /^0/ {
7691 s/^0 *\(.*\)$/\1/
7692 p
7693 }
7694 }'
7695aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007696# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007697if test -z "$aix_libpath"; then
7698 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7699fi
a.rottmann84e63352003-03-24 09:42:16 +00007700fi
drhf922ca42015-05-14 15:39:18 +00007701rm -f core conftest.err conftest.$ac_objext \
7702 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007703if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007704
mlcreech636a9952008-05-05 22:52:56 +00007705 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7706 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"
7707 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007708 if test "$host_cpu" = ia64; then
7709 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7710 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007711 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 +00007712 else
mlcreech636a9952008-05-05 22:52:56 +00007713 # Determine the default libpath from the value encoded in an
7714 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007716/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007717
a.rottmann9bc8b932004-02-29 15:18:31 +00007718int
7719main ()
7720{
a.rottmann84e63352003-03-24 09:42:16 +00007721
a.rottmann9bc8b932004-02-29 15:18:31 +00007722 ;
7723 return 0;
7724}
7725_ACEOF
drhf922ca42015-05-14 15:39:18 +00007726if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007727
mlcreech636a9952008-05-05 22:52:56 +00007728lt_aix_libpath_sed='
7729 /Import File Strings/,/^$/ {
7730 /^0/ {
7731 s/^0 *\(.*\)$/\1/
7732 p
7733 }
7734 }'
7735aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007736# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007737if test -z "$aix_libpath"; then
7738 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7739fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007740fi
drhf922ca42015-05-14 15:39:18 +00007741rm -f core conftest.err conftest.$ac_objext \
7742 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007743if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007744
a.rottmann9bc8b932004-02-29 15:18:31 +00007745 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7746 # Warning - without using the other run time loading flags,
7747 # -berok will link without error, but may produce a broken library.
7748 no_undefined_flag=' ${wl}-bernotok'
7749 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007750 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007751 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007752 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007753 # This is similar to how AIX traditionally builds its shared libraries.
7754 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 +00007755 fi
7756 fi
a.rottmann84e63352003-03-24 09:42:16 +00007757 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007758
7759 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007760 case $host_cpu in
7761 powerpc)
7762 # see comment about AmigaOS4 .so support
7763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7764 archive_expsym_cmds=''
7765 ;;
7766 m68k)
7767 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)'
7768 hardcode_libdir_flag_spec='-L$libdir'
7769 hardcode_minus_L=yes
7770 ;;
7771 esac
a.rottmann84e63352003-03-24 09:42:16 +00007772 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007773
vapier7f19c022007-02-17 14:46:31 +00007774 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007775 export_dynamic_flag_spec=-rdynamic
7776 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007777
vapier6acb2cf2009-01-28 04:46:28 +00007778 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007779 # When not using gcc, we currently assume that we are using
7780 # Microsoft Visual C++.
7781 # hardcode_libdir_flag_spec is actually meaningless, as there is
7782 # no search path for DLLs.
7783 hardcode_libdir_flag_spec=' '
7784 allow_undefined_flag=unsupported
7785 # Tell ltmain to make .lib files, not .a files.
7786 libext=lib
7787 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00007788 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00007789 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00007790 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 +00007791 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00007792 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00007793 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00007794 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00007795 fix_srcfile_path='`cygpath -w "$srcfile"`'
7796 enable_shared_with_static_runtimes=yes
7797 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007798
a.rottmann9bc8b932004-02-29 15:18:31 +00007799 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00007800
7801
7802 archive_cmds_need_lc=no
7803 hardcode_direct=no
7804 hardcode_automatic=yes
7805 hardcode_shlibpath_var=unsupported
7806 whole_archive_flag_spec=''
7807 link_all_deplibs=yes
7808 allow_undefined_flag="$_lt_dar_allow_undefined"
vapier6acb2cf2009-01-28 04:46:28 +00007809 case $cc_basename in
7810 ifort*) _lt_dar_can_shared=yes ;;
7811 *) _lt_dar_can_shared=$GCC ;;
7812 esac
7813 if test "$_lt_dar_can_shared" = "yes"; then
mlcreech636a9952008-05-05 22:52:56 +00007814 output_verbose_link_cmd=echo
7815 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7816 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7817 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}"
7818 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}"
7819
7820 else
7821 ld_shlibs=no
7822 fi
7823
a.rottmann9bc8b932004-02-29 15:18:31 +00007824 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007825
a.rottmann9bc8b932004-02-29 15:18:31 +00007826 dgux*)
7827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7828 hardcode_libdir_flag_spec='-L$libdir'
7829 hardcode_shlibpath_var=no
7830 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007831
a.rottmann9bc8b932004-02-29 15:18:31 +00007832 freebsd1*)
7833 ld_shlibs=no
7834 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007835
a.rottmann9bc8b932004-02-29 15:18:31 +00007836 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7837 # support. Future versions do this automatically, but an explicit c++rt0.o
7838 # does not break anything, and helps significantly (at the cost of a little
7839 # extra space).
7840 freebsd2.2*)
7841 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7842 hardcode_libdir_flag_spec='-R$libdir'
7843 hardcode_direct=yes
7844 hardcode_shlibpath_var=no
7845 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007846
a.rottmann9bc8b932004-02-29 15:18:31 +00007847 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7848 freebsd2*)
7849 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7850 hardcode_direct=yes
7851 hardcode_minus_L=yes
7852 hardcode_shlibpath_var=no
7853 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007854
a.rottmann9bc8b932004-02-29 15:18:31 +00007855 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00007856 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007857 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7858 hardcode_libdir_flag_spec='-R$libdir'
7859 hardcode_direct=yes
7860 hardcode_shlibpath_var=no
7861 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007862
a.rottmann9bc8b932004-02-29 15:18:31 +00007863 hpux9*)
7864 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007865 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 +00007866 else
mlcreech636a9952008-05-05 22:52:56 +00007867 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 +00007868 fi
7869 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7870 hardcode_libdir_separator=:
7871 hardcode_direct=yes
7872
7873 # hardcode_minus_L: Not really in the search PATH,
7874 # but as the default location of the library.
7875 hardcode_minus_L=yes
7876 export_dynamic_flag_spec='${wl}-E'
7877 ;;
7878
vapier7f19c022007-02-17 14:46:31 +00007879 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007880 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007881 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7882 else
7883 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7884 fi
7885 if test "$with_gnu_ld" = no; then
7886 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00007887 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00007888 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00007889 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007890 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00007891 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00007892 # hardcode_minus_L: Not really in the search PATH,
7893 # but as the default location of the library.
7894 hardcode_minus_L=yes
7895 fi
7896 ;;
7897
7898 hpux11*)
7899 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7900 case $host_cpu in
7901 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007902 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7903 ;;
vapier7f19c022007-02-17 14:46:31 +00007904 ia64*)
vapier6acb2cf2009-01-28 04:46:28 +00007905 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00007906 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007907 *)
7908 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7909 ;;
7910 esac
7911 else
vapier7f19c022007-02-17 14:46:31 +00007912 case $host_cpu in
7913 hppa*64*)
7914 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7915 ;;
7916 ia64*)
7917 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007918 ;;
7919 *)
vapier7f19c022007-02-17 14:46:31 +00007920 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 +00007921 ;;
7922 esac
7923 fi
7924 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007925 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7926 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00007927
vapier7f19c022007-02-17 14:46:31 +00007928 case $host_cpu in
7929 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00007930 hardcode_direct=no
7931 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007932 ;;
7933 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007934 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007935 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007936 export_dynamic_flag_spec='${wl}-E'
7937
7938 # hardcode_minus_L: Not really in the search PATH,
7939 # but as the default location of the library.
7940 hardcode_minus_L=yes
7941 ;;
7942 esac
7943 fi
7944 ;;
7945
7946 irix5* | irix6* | nonstopux*)
7947 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007948 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'
7949 # Try to use the -exported_symbol ld option, if it does not
7950 # work, assume that -exports_file does not work either and
7951 # implicitly export all symbols.
7952 save_LDFLAGS="$LDFLAGS"
7953 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
drhf922ca42015-05-14 15:39:18 +00007954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7955/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +00007956int foo(void) {}
7957_ACEOF
drhf922ca42015-05-14 15:39:18 +00007958if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00007959 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'
7960
mlcreech636a9952008-05-05 22:52:56 +00007961fi
drhf922ca42015-05-14 15:39:18 +00007962rm -f core conftest.err conftest.$ac_objext \
7963 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00007964 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00007965 else
mlcreech636a9952008-05-05 22:52:56 +00007966 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'
7967 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 +00007968 fi
mlcreech636a9952008-05-05 22:52:56 +00007969 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00007970 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7971 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00007972 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007973 link_all_deplibs=yes
7974 ;;
7975
vapier7f19c022007-02-17 14:46:31 +00007976 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007977 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007978 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7979 else
7980 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7981 fi
7982 hardcode_libdir_flag_spec='-R$libdir'
7983 hardcode_direct=yes
7984 hardcode_shlibpath_var=no
7985 ;;
7986
7987 newsos6)
7988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7989 hardcode_direct=yes
7990 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7991 hardcode_libdir_separator=:
7992 hardcode_shlibpath_var=no
7993 ;;
7994
mlcreech636a9952008-05-05 22:52:56 +00007995 *nto* | *qnx*)
7996 ;;
7997
a.rottmann9bc8b932004-02-29 15:18:31 +00007998 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007999 if test -f /usr/libexec/ld.so; then
8000 hardcode_direct=yes
8001 hardcode_shlibpath_var=no
8002 hardcode_direct_absolute=yes
8003 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8004 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8005 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8006 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8007 export_dynamic_flag_spec='${wl}-E'
8008 else
8009 case $host_os in
8010 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8011 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8012 hardcode_libdir_flag_spec='-R$libdir'
8013 ;;
8014 *)
8015 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8016 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8017 ;;
8018 esac
8019 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008020 else
mlcreech636a9952008-05-05 22:52:56 +00008021 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008022 fi
8023 ;;
8024
8025 os2*)
8026 hardcode_libdir_flag_spec='-L$libdir'
8027 hardcode_minus_L=yes
8028 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00008029 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'
8030 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00008031 ;;
8032
8033 osf3*)
8034 if test "$GCC" = yes; then
8035 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008036 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 +00008037 else
8038 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008039 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 +00008040 fi
mlcreech636a9952008-05-05 22:52:56 +00008041 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008042 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8043 hardcode_libdir_separator=:
8044 ;;
8045
8046 osf4* | osf5*) # as osf3* with the addition of -msym flag
8047 if test "$GCC" = yes; then
8048 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008049 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 +00008050 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8051 else
8052 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008053 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'
8054 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~
8055 $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 +00008056
8057 # Both c and cxx compiler support -rpath directly
8058 hardcode_libdir_flag_spec='-rpath $libdir'
8059 fi
mlcreech636a9952008-05-05 22:52:56 +00008060 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008061 hardcode_libdir_separator=:
8062 ;;
8063
a.rottmann9bc8b932004-02-29 15:18:31 +00008064 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00008065 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008066 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008067 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00008068 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8069 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8070 $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 +00008071 else
mlcreech636a9952008-05-05 22:52:56 +00008072 case `$CC -V 2>&1` in
8073 *"Compilers 5.0"*)
8074 wlarc=''
8075 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8076 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8077 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8078 ;;
8079 *)
8080 wlarc='${wl}'
8081 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8082 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8083 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8084 ;;
8085 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008086 fi
8087 hardcode_libdir_flag_spec='-R$libdir'
8088 hardcode_shlibpath_var=no
8089 case $host_os in
8090 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00008091 *)
mlcreech636a9952008-05-05 22:52:56 +00008092 # The compiler driver will combine and reorder linker options,
8093 # but understands `-z linker_flag'. GCC discards it without `$wl',
8094 # but is careful enough not to reorder.
8095 # Supported since Solaris 2.6 (maybe 2.5.1?)
8096 if test "$GCC" = yes; then
8097 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8098 else
8099 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8100 fi
8101 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008102 esac
8103 link_all_deplibs=yes
8104 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008105
a.rottmann9bc8b932004-02-29 15:18:31 +00008106 sunos4*)
8107 if test "x$host_vendor" = xsequent; then
8108 # Use $CC to link under sequent, because it throws in some extra .o
8109 # files that make .init and .fini sections work.
8110 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8111 else
8112 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8113 fi
8114 hardcode_libdir_flag_spec='-L$libdir'
8115 hardcode_direct=yes
8116 hardcode_minus_L=yes
8117 hardcode_shlibpath_var=no
8118 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008119
a.rottmann9bc8b932004-02-29 15:18:31 +00008120 sysv4)
8121 case $host_vendor in
8122 sni)
8123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8124 hardcode_direct=yes # is this really true???
8125 ;;
8126 siemens)
8127 ## LD is ld it makes a PLAMLIB
8128 ## CC just makes a GrossModule.
8129 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8130 reload_cmds='$CC -r -o $output$reload_objs'
8131 hardcode_direct=no
8132 ;;
8133 motorola)
8134 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8135 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8136 ;;
8137 esac
8138 runpath_var='LD_RUN_PATH'
8139 hardcode_shlibpath_var=no
8140 ;;
8141
8142 sysv4.3*)
8143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8144 hardcode_shlibpath_var=no
8145 export_dynamic_flag_spec='-Bexport'
8146 ;;
8147
8148 sysv4*MP*)
8149 if test -d /usr/nec; then
8150 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8151 hardcode_shlibpath_var=no
8152 runpath_var=LD_RUN_PATH
8153 hardcode_runpath_var=yes
8154 ld_shlibs=yes
8155 fi
8156 ;;
8157
mlcreech636a9952008-05-05 22:52:56 +00008158 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00008159 no_undefined_flag='${wl}-z,text'
8160 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008161 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00008162 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00008163
a.rottmann9bc8b932004-02-29 15:18:31 +00008164 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008165 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8166 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 +00008167 else
vapier7f19c022007-02-17 14:46:31 +00008168 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8169 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 +00008170 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008171 ;;
8172
vapier7f19c022007-02-17 14:46:31 +00008173 sysv5* | sco3.2v5* | sco5v6*)
8174 # Note: We can NOT use -z defs as we might desire, because we do not
8175 # link with -lc, and that would cause any symbols used from libc to
8176 # always be unresolved, which means just about no library would
8177 # ever link correctly. If we're not using GNU ld we use -z text
8178 # though, which does catch some bad symbols but isn't as heavy-handed
8179 # as -z defs.
8180 no_undefined_flag='${wl}-z,text'
8181 allow_undefined_flag='${wl}-z,nodefs'
8182 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008183 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00008184 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00008185 hardcode_libdir_separator=':'
8186 link_all_deplibs=yes
8187 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00008188 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00008189
8190 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008191 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8192 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008193 else
mlcreech636a9952008-05-05 22:52:56 +00008194 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8195 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008196 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008197 ;;
8198
8199 uts4*)
8200 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8201 hardcode_libdir_flag_spec='-L$libdir'
8202 hardcode_shlibpath_var=no
8203 ;;
8204
8205 *)
8206 ld_shlibs=no
8207 ;;
8208 esac
mlcreech636a9952008-05-05 22:52:56 +00008209
8210 if test x$host_vendor = xsni; then
8211 case $host in
8212 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8213 export_dynamic_flag_spec='${wl}-Blargedynsym'
8214 ;;
8215 esac
8216 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008217 fi
8218
drhf922ca42015-05-14 15:39:18 +00008219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
drh8b727472009-01-19 18:18:40 +00008220$as_echo "$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008221test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00008222
mlcreech636a9952008-05-05 22:52:56 +00008223with_gnu_ld=$with_gnu_ld
8224
8225
danielk197733a14782008-08-04 14:50:05 +00008226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
a.rottmann9bc8b932004-02-29 15:18:31 +00008239#
8240# Do we need to explicitly link libc?
8241#
8242case "x$archive_cmds_need_lc" in
8243x|xyes)
8244 # Assume -lc should be added
8245 archive_cmds_need_lc=yes
8246
8247 if test "$enable_shared" = yes && test "$GCC" = yes; then
8248 case $archive_cmds in
8249 *'~'*)
8250 # FIXME: we may have to deal with multi-command sequences.
8251 ;;
8252 '$CC '*)
8253 # Test whether the compiler implicitly links with -lc since on some
8254 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8255 # to ld, don't add -lc before -lgcc.
drhf922ca42015-05-14 15:39:18 +00008256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
drh8b727472009-01-19 18:18:40 +00008257$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008258 $RM conftest*
8259 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00008260
drhf922ca42015-05-14 15:39:18 +00008261 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008262 (eval $ac_compile) 2>&5
8263 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8265 test $ac_status = 0; } 2>conftest.err; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008266 soname=conftest
8267 lib=conftest
8268 libobjs=conftest.$ac_objext
8269 deplibs=
8270 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00008271 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00008272 compiler_flags=-v
8273 linker_flags=-v
8274 verstring=
8275 output_objdir=.
8276 libname=conftest
8277 lt_save_allow_undefined_flag=$allow_undefined_flag
8278 allow_undefined_flag=
drhf922ca42015-05-14 15:39:18 +00008279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00008280 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008281 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8283 test $ac_status = 0; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008284 then
8285 archive_cmds_need_lc=no
8286 else
8287 archive_cmds_need_lc=yes
8288 fi
8289 allow_undefined_flag=$lt_save_allow_undefined_flag
8290 else
8291 cat conftest.err 1>&5
8292 fi
mlcreech636a9952008-05-05 22:52:56 +00008293 $RM conftest*
drhf922ca42015-05-14 15:39:18 +00008294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
drh8b727472009-01-19 18:18:40 +00008295$as_echo "$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008296 ;;
8297 esac
drh71eb93e2001-09-28 01:34:43 +00008298 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008299 ;;
8300esac
drh71eb93e2001-09-28 01:34:43 +00008301
mlcreech636a9952008-05-05 22:52:56 +00008302
danielk197733a14782008-08-04 14:50:05 +00008303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
drhf922ca42015-05-14 15:39:18 +00008458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
drh8b727472009-01-19 18:18:40 +00008459$as_echo_n "checking dynamic linker characteristics... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008460
8461if test "$GCC" = yes; then
8462 case $host_os in
8463 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8464 *) lt_awk_arg="/^libraries:/" ;;
8465 esac
8466 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8467 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8468 # if the path contains ";" then we assume it to be the separator
8469 # otherwise default to the standard path separator (i.e. ":") - it is
8470 # assumed that no part of a normal pathname contains ";" but that should
8471 # okay in the real world where ";" in dirpaths is itself problematic.
8472 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8473 else
8474 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8475 fi
8476 # Ok, now we have the path, separated by spaces, we can step through it
8477 # and add multilib dir if necessary.
8478 lt_tmp_lt_search_path_spec=
8479 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8480 for lt_sys_path in $lt_search_path_spec; do
8481 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8482 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8483 else
8484 test -d "$lt_sys_path" && \
8485 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8486 fi
8487 done
8488 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8489BEGIN {RS=" "; FS="/|\n";} {
8490 lt_foo="";
8491 lt_count=0;
8492 for (lt_i = NF; lt_i > 0; lt_i--) {
8493 if ($lt_i != "" && $lt_i != ".") {
8494 if ($lt_i == "..") {
8495 lt_count++;
8496 } else {
8497 if (lt_count == 0) {
8498 lt_foo="/" $lt_i lt_foo;
8499 } else {
8500 lt_count--;
8501 }
8502 }
8503 }
8504 }
8505 if (lt_foo != "") { lt_freq[lt_foo]++; }
8506 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8507}'`
8508 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8509else
8510 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8511fi
drh71eb93e2001-09-28 01:34:43 +00008512library_names_spec=
8513libname_spec='lib$name'
8514soname_spec=
vapier7f19c022007-02-17 14:46:31 +00008515shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00008516postinstall_cmds=
8517postuninstall_cmds=
8518finish_cmds=
8519finish_eval=
8520shlibpath_var=
8521shlibpath_overrides_runpath=unknown
8522version_type=none
8523dynamic_linker="$host_os ld.so"
8524sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008525need_lib_prefix=unknown
8526hardcode_into_libs=no
8527
8528# when you set need_version to no, make sure it does not cause -set_version
8529# flags to be left without arguments
8530need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00008531
8532case $host_os in
8533aix3*)
8534 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008535 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008536 shlibpath_var=LIBPATH
8537
a.rottmann9bc8b932004-02-29 15:18:31 +00008538 # AIX 3 has no versioning support, so we append a major version to the name.
8539 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008540 ;;
8541
mlcreech636a9952008-05-05 22:52:56 +00008542aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00008543 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00008544 need_lib_prefix=no
8545 need_version=no
8546 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008547 if test "$host_cpu" = ia64; then
8548 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00008549 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008550 shlibpath_var=LD_LIBRARY_PATH
8551 else
8552 # With GCC up to 2.95.x, collect2 would create an import file
8553 # for dependence libraries. The import file would start with
8554 # the line `#! .'. This would cause the generated library to
8555 # depend on `.', always an invalid library. This was fixed in
8556 # development snapshots of GCC prior to 3.0.
8557 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008558 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008559 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8560 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00008561 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008562 :
8563 else
8564 can_build_shared=no
8565 fi
8566 ;;
drh71eb93e2001-09-28 01:34:43 +00008567 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008568 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8569 # soname into executable. Probably we can add versioning support to
8570 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00008571 if test "$aix_use_runtimelinking" = yes; then
8572 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8573 # instead of lib<name>.a to let people know that these are not
8574 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008576 else
8577 # We preserve .a as extension for shared libraries through AIX4.2
8578 # and later when we are not doing run time linking.
8579 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008580 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008581 fi
8582 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00008583 fi
8584 ;;
8585
8586amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00008587 case $host_cpu in
8588 powerpc)
8589 # Since July 2007 AmigaOS4 officially supports .so libraries.
8590 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8592 ;;
8593 m68k)
8594 library_names_spec='$libname.ixlibrary $libname.a'
8595 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8596 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'
8597 ;;
8598 esac
drh71eb93e2001-09-28 01:34:43 +00008599 ;;
8600
8601beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008602 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008603 dynamic_linker="$host_os ld.so"
8604 shlibpath_var=LIBRARY_PATH
8605 ;;
8606
vapier7f19c022007-02-17 14:46:31 +00008607bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00008608 version_type=linux
8609 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8611 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008612 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8613 shlibpath_var=LD_LIBRARY_PATH
8614 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8615 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8616 # the default ld.so.conf also contains /usr/contrib/lib and
8617 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8618 # libtool to hard-code these into programs
8619 ;;
8620
vapier6acb2cf2009-01-28 04:46:28 +00008621cygwin* | mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008622 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00008623 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008624 need_version=no
8625 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008626
drh71eb93e2001-09-28 01:34:43 +00008627 case $GCC,$host_os in
vapier6acb2cf2009-01-28 04:46:28 +00008628 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008629 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008630 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8631 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00008632 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008633 dldir=$destdir/`dirname \$dlpath`~
8634 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00008635 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00008636 chmod a+x \$dldir/$dlname~
8637 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8638 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8639 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00008640 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008641 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00008642 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00008643 shlibpath_overrides_runpath=yes
8644
8645 case $host_os in
8646 cygwin*)
8647 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8648 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8649 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8650 ;;
vapier6acb2cf2009-01-28 04:46:28 +00008651 mingw* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008652 # MinGW DLLs use traditional 'lib' prefix
8653 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00008654 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8655 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008656 # It is most probably a Windows format PATH printed by
8657 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8658 # path with ; separators, and with drive letters. We can handle the
8659 # drive letters (cygwin fileutils understands them), so leave them,
8660 # especially as we might pass files found there to a mingw objdump,
8661 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00008662 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00008663 else
mlcreech636a9952008-05-05 22:52:56 +00008664 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00008665 fi
8666 ;;
8667 pw32*)
8668 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00008669 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 +00008670 ;;
8671 esac
drh71eb93e2001-09-28 01:34:43 +00008672 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008673
drh71eb93e2001-09-28 01:34:43 +00008674 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008675 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008676 ;;
8677 esac
8678 dynamic_linker='Win32 ld.exe'
8679 # FIXME: first we should search . and the directory the executable is in
8680 shlibpath_var=PATH
8681 ;;
8682
8683darwin* | rhapsody*)
8684 dynamic_linker="$host_os dyld"
8685 version_type=darwin
8686 need_lib_prefix=no
8687 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008688 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00008689 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008690 shlibpath_overrides_runpath=yes
8691 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008692 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00008693
8694 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008695 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8696 ;;
8697
8698dgux*)
8699 version_type=linux
8700 need_lib_prefix=no
8701 need_version=no
8702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8703 soname_spec='${libname}${release}${shared_ext}$major'
8704 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008705 ;;
8706
a.rottmann84e63352003-03-24 09:42:16 +00008707freebsd1*)
8708 dynamic_linker=no
8709 ;;
8710
vapier7f19c022007-02-17 14:46:31 +00008711freebsd* | dragonfly*)
8712 # DragonFly does not have aout. When/if they implement a new
8713 # versioning mechanism, adjust this.
8714 if test -x /usr/bin/objformat; then
8715 objformat=`/usr/bin/objformat`
8716 else
8717 case $host_os in
8718 freebsd[123]*) objformat=aout ;;
8719 *) objformat=elf ;;
8720 esac
8721 fi
8722 # Handle Gentoo/FreeBSD as it was Linux
8723 case $host_vendor in
8724 gentoo)
8725 version_type=linux ;;
8726 *)
8727 version_type=freebsd-$objformat ;;
8728 esac
8729
drh71eb93e2001-09-28 01:34:43 +00008730 case $version_type in
8731 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008733 need_version=no
8734 need_lib_prefix=no
8735 ;;
8736 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008737 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008738 need_version=yes
8739 ;;
vapier7f19c022007-02-17 14:46:31 +00008740 linux)
8741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8742 soname_spec='${libname}${release}${shared_ext}$major'
8743 need_lib_prefix=no
8744 need_version=no
8745 ;;
drh71eb93e2001-09-28 01:34:43 +00008746 esac
8747 shlibpath_var=LD_LIBRARY_PATH
8748 case $host_os in
8749 freebsd2*)
8750 shlibpath_overrides_runpath=yes
8751 ;;
vapier7f19c022007-02-17 14:46:31 +00008752 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008753 shlibpath_overrides_runpath=yes
8754 hardcode_into_libs=yes
8755 ;;
vapier7f19c022007-02-17 14:46:31 +00008756 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8757 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00008758 shlibpath_overrides_runpath=no
8759 hardcode_into_libs=yes
8760 ;;
mlcreech636a9952008-05-05 22:52:56 +00008761 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00008762 shlibpath_overrides_runpath=yes
8763 hardcode_into_libs=yes
8764 ;;
drh71eb93e2001-09-28 01:34:43 +00008765 esac
8766 ;;
8767
8768gnu*)
8769 version_type=linux
8770 need_lib_prefix=no
8771 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8773 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008774 shlibpath_var=LD_LIBRARY_PATH
8775 hardcode_into_libs=yes
8776 ;;
8777
8778hpux9* | hpux10* | hpux11*)
8779 # Give a soname corresponding to the major version so that dld.sl refuses to
8780 # link against other versions.
8781 version_type=sunos
8782 need_lib_prefix=no
8783 need_version=no
vapier7f19c022007-02-17 14:46:31 +00008784 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00008785 ia64*)
vapier7f19c022007-02-17 14:46:31 +00008786 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00008787 hardcode_into_libs=yes
8788 dynamic_linker="$host_os dld.so"
8789 shlibpath_var=LD_LIBRARY_PATH
8790 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8792 soname_spec='${libname}${release}${shared_ext}$major'
8793 if test "X$HPUX_IA64_MODE" = X32; then
8794 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8795 else
8796 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8797 fi
8798 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8799 ;;
mlcreech636a9952008-05-05 22:52:56 +00008800 hppa*64*)
8801 shrext_cmds='.sl'
8802 hardcode_into_libs=yes
8803 dynamic_linker="$host_os dld.sl"
8804 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8805 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8807 soname_spec='${libname}${release}${shared_ext}$major'
8808 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8809 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8810 ;;
8811 *)
vapier7f19c022007-02-17 14:46:31 +00008812 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00008813 dynamic_linker="$host_os dld.sl"
8814 shlibpath_var=SHLIB_PATH
8815 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8817 soname_spec='${libname}${release}${shared_ext}$major'
8818 ;;
8819 esac
drh71eb93e2001-09-28 01:34:43 +00008820 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8821 postinstall_cmds='chmod 555 $lib'
8822 ;;
8823
mlcreech636a9952008-05-05 22:52:56 +00008824interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00008825 version_type=linux
8826 need_lib_prefix=no
8827 need_version=no
8828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8829 soname_spec='${libname}${release}${shared_ext}$major'
8830 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8831 shlibpath_var=LD_LIBRARY_PATH
8832 shlibpath_overrides_runpath=no
8833 hardcode_into_libs=yes
8834 ;;
8835
a.rottmann84e63352003-03-24 09:42:16 +00008836irix5* | irix6* | nonstopux*)
8837 case $host_os in
8838 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008839 *)
8840 if test "$lt_cv_prog_gnu_ld" = yes; then
8841 version_type=linux
8842 else
8843 version_type=irix
8844 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00008845 esac
drh71eb93e2001-09-28 01:34:43 +00008846 need_lib_prefix=no
8847 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008848 soname_spec='${libname}${release}${shared_ext}$major'
8849 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 +00008850 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008851 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00008852 libsuff= shlibsuff=
8853 ;;
8854 *)
8855 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00008856 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8857 libsuff= shlibsuff= libmagic=32-bit;;
8858 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8859 libsuff=32 shlibsuff=N32 libmagic=N32;;
8860 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8861 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00008862 *) libsuff= shlibsuff= libmagic=never-match;;
8863 esac
8864 ;;
8865 esac
8866 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8867 shlibpath_overrides_runpath=no
8868 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8869 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00008870 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008871 ;;
8872
8873# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00008874linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00008875 dynamic_linker=no
8876 ;;
8877
8878# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00008879linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00008880 version_type=linux
8881 need_lib_prefix=no
8882 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8884 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008885 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8886 shlibpath_var=LD_LIBRARY_PATH
8887 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00008888 # Some binutils ld are patched to set DT_RUNPATH
8889 save_LDFLAGS=$LDFLAGS
8890 save_libdir=$libdir
8891 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8892 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
drhf922ca42015-05-14 15:39:18 +00008893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008894/* end confdefs.h. */
8895
8896int
8897main ()
8898{
8899
8900 ;
8901 return 0;
8902}
8903_ACEOF
drhf922ca42015-05-14 15:39:18 +00008904if ac_fn_c_try_link "$LINENO"; then :
8905 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
mlcreech636a9952008-05-05 22:52:56 +00008906 shlibpath_overrides_runpath=yes
8907fi
mlcreech636a9952008-05-05 22:52:56 +00008908fi
drhf922ca42015-05-14 15:39:18 +00008909rm -f core conftest.err conftest.$ac_objext \
8910 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008911 LDFLAGS=$save_LDFLAGS
8912 libdir=$save_libdir
8913
drh71eb93e2001-09-28 01:34:43 +00008914 # This implies no fast_install, which is unacceptable.
8915 # Some rework will be needed to allow for fast_install
8916 # before this can be enabled.
8917 hardcode_into_libs=yes
8918
a.rottmann9bc8b932004-02-29 15:18:31 +00008919 # Append ld.so.conf contents to the search path
8920 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00008921 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 +00008922 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00008923 fi
8924
drh71eb93e2001-09-28 01:34:43 +00008925 # We used to test for /lib/ld.so.1 and disable shared libraries on
8926 # powerpc, because MkLinux only supported shared libraries with the
8927 # GNU dynamic linker. Since this was broken with cross compilers,
8928 # most powerpc-linux boxes support dynamic linking these days and
8929 # people can always --disable-shared, the test was removed, and we
8930 # assume the GNU/Linux dynamic linker is in use.
8931 dynamic_linker='GNU/Linux ld.so'
8932 ;;
8933
8934netbsd*)
8935 version_type=sunos
8936 need_lib_prefix=no
8937 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008938 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008940 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8941 dynamic_linker='NetBSD (a.out) ld.so'
8942 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8944 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008945 dynamic_linker='NetBSD ld.elf_so'
8946 fi
8947 shlibpath_var=LD_LIBRARY_PATH
8948 shlibpath_overrides_runpath=yes
8949 hardcode_into_libs=yes
8950 ;;
8951
8952newsos6)
8953 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8955 shlibpath_var=LD_LIBRARY_PATH
8956 shlibpath_overrides_runpath=yes
8957 ;;
8958
mlcreech636a9952008-05-05 22:52:56 +00008959*nto* | *qnx*)
8960 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00008961 need_lib_prefix=no
8962 need_version=no
8963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8964 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008965 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008966 shlibpath_overrides_runpath=no
8967 hardcode_into_libs=yes
8968 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00008969 ;;
8970
drh71eb93e2001-09-28 01:34:43 +00008971openbsd*)
8972 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00008973 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00008974 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00008975 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8976 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00008977 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8978 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00008979 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8981 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8982 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008983 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 +00008984 case $host_os in
8985 openbsd2.[89] | openbsd2.[89].*)
8986 shlibpath_overrides_runpath=no
8987 ;;
8988 *)
8989 shlibpath_overrides_runpath=yes
8990 ;;
8991 esac
a.rottmann84e63352003-03-24 09:42:16 +00008992 else
8993 shlibpath_overrides_runpath=yes
8994 fi
drh71eb93e2001-09-28 01:34:43 +00008995 ;;
8996
8997os2*)
8998 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00008999 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00009000 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009001 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00009002 dynamic_linker='OS/2 ld.exe'
9003 shlibpath_var=LIBPATH
9004 ;;
9005
9006osf3* | osf4* | osf5*)
9007 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00009008 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009009 need_version=no
9010 soname_spec='${libname}${release}${shared_ext}$major'
9011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00009012 shlibpath_var=LD_LIBRARY_PATH
9013 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9014 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9015 ;;
9016
mlcreech636a9952008-05-05 22:52:56 +00009017rdos*)
9018 dynamic_linker=no
9019 ;;
9020
drh71eb93e2001-09-28 01:34:43 +00009021solaris*)
9022 version_type=linux
9023 need_lib_prefix=no
9024 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9026 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009027 shlibpath_var=LD_LIBRARY_PATH
9028 shlibpath_overrides_runpath=yes
9029 hardcode_into_libs=yes
9030 # ldd complains unless libraries are executable
9031 postinstall_cmds='chmod +x $lib'
9032 ;;
9033
9034sunos4*)
9035 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00009036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009037 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9038 shlibpath_var=LD_LIBRARY_PATH
9039 shlibpath_overrides_runpath=yes
9040 if test "$with_gnu_ld" = yes; then
9041 need_lib_prefix=no
9042 fi
9043 need_version=yes
9044 ;;
9045
vapier7f19c022007-02-17 14:46:31 +00009046sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00009047 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9049 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009050 shlibpath_var=LD_LIBRARY_PATH
9051 case $host_vendor in
9052 sni)
9053 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00009054 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00009055 runpath_var=LD_RUN_PATH
9056 ;;
9057 siemens)
9058 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00009059 ;;
9060 motorola)
9061 need_lib_prefix=no
9062 need_version=no
9063 shlibpath_overrides_runpath=no
9064 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9065 ;;
9066 esac
9067 ;;
9068
9069sysv4*MP*)
9070 if test -d /usr/nec ;then
9071 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009072 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9073 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00009074 shlibpath_var=LD_LIBRARY_PATH
9075 fi
9076 ;;
9077
vapier7f19c022007-02-17 14:46:31 +00009078sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9079 version_type=freebsd-elf
9080 need_lib_prefix=no
9081 need_version=no
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009085 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00009086 hardcode_into_libs=yes
9087 if test "$with_gnu_ld" = yes; then
9088 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00009089 else
9090 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00009091 case $host_os in
9092 sco3.2v5*)
9093 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9094 ;;
9095 esac
9096 fi
9097 sys_lib_dlsearch_path_spec='/usr/lib'
9098 ;;
9099
mlcreech636a9952008-05-05 22:52:56 +00009100tpf*)
9101 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9102 version_type=linux
9103 need_lib_prefix=no
9104 need_version=no
vapier6acb2cf2009-01-28 04:46:28 +00009105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00009106 shlibpath_var=LD_LIBRARY_PATH
9107 shlibpath_overrides_runpath=no
9108 hardcode_into_libs=yes
9109 ;;
9110
a.rottmann9bc8b932004-02-29 15:18:31 +00009111uts4*)
9112 version_type=linux
9113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9114 soname_spec='${libname}${release}${shared_ext}$major'
9115 shlibpath_var=LD_LIBRARY_PATH
9116 ;;
9117
drh71eb93e2001-09-28 01:34:43 +00009118*)
9119 dynamic_linker=no
9120 ;;
9121esac
drhf922ca42015-05-14 15:39:18 +00009122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
drh8b727472009-01-19 18:18:40 +00009123$as_echo "$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009124test "$dynamic_linker" = no && can_build_shared=no
9125
vapier7f19c022007-02-17 14:46:31 +00009126variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9127if test "$GCC" = yes; then
9128 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9129fi
9130
mlcreech636a9952008-05-05 22:52:56 +00009131if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9132 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9133fi
9134if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9135 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9136fi
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
drhf922ca42015-05-14 15:39:18 +00009224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
drh8b727472009-01-19 18:18:40 +00009225$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009226hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00009227if test -n "$hardcode_libdir_flag_spec" ||
9228 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00009229 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00009230
mlcreech636a9952008-05-05 22:52:56 +00009231 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00009232 if test "$hardcode_direct" != no &&
9233 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9234 # have to relink, otherwise we might link with an installed library
9235 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00009236 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00009237 test "$hardcode_minus_L" != no; then
9238 # Linking always hardcodes the temporary library directory.
9239 hardcode_action=relink
9240 else
9241 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9242 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00009243 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009244else
9245 # We cannot hardcode anything, or else we can only hardcode existing
9246 # directories.
9247 hardcode_action=unsupported
9248fi
drhf922ca42015-05-14 15:39:18 +00009249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
drh8b727472009-01-19 18:18:40 +00009250$as_echo "$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009251
mlcreech636a9952008-05-05 22:52:56 +00009252if test "$hardcode_action" = relink ||
9253 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009254 # Fast installation is not supported
9255 enable_fast_install=no
9256elif test "$shlibpath_overrides_runpath" = yes ||
9257 test "$enable_shared" = no; then
9258 # Fast installation is not necessary
9259 enable_fast_install=needless
9260fi
9261
a.rottmann84e63352003-03-24 09:42:16 +00009262
mlcreech636a9952008-05-05 22:52:56 +00009263
9264
9265
9266
9267 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00009268 enable_dlopen=unknown
9269 enable_dlopen_self=unknown
9270 enable_dlopen_self_static=unknown
9271else
9272 lt_cv_dlopen=no
9273 lt_cv_dlopen_libs=
9274
9275 case $host_os in
9276 beos*)
9277 lt_cv_dlopen="load_add_on"
9278 lt_cv_dlopen_libs=
9279 lt_cv_dlopen_self=yes
9280 ;;
9281
vapier6acb2cf2009-01-28 04:46:28 +00009282 mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00009283 lt_cv_dlopen="LoadLibrary"
9284 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009285 ;;
drh71eb93e2001-09-28 01:34:43 +00009286
a.rottmann9bc8b932004-02-29 15:18:31 +00009287 cygwin*)
9288 lt_cv_dlopen="dlopen"
9289 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009290 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009291
9292 darwin*)
9293 # if libdl is installed we need to link against it
drhf922ca42015-05-14 15:39:18 +00009294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009295$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009296if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009297 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009298else
9299 ac_check_lib_save_LIBS=$LIBS
9300LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009302/* end confdefs.h. */
9303
drh8b727472009-01-19 18:18:40 +00009304/* Override any GCC internal prototype to avoid an error.
9305 Use char because int might match the return type of a GCC
9306 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00009307#ifdef __cplusplus
9308extern "C"
9309#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00009310char dlopen ();
9311int
9312main ()
9313{
drh8b727472009-01-19 18:18:40 +00009314return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00009315 ;
9316 return 0;
9317}
9318_ACEOF
drhf922ca42015-05-14 15:39:18 +00009319if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009320 ac_cv_lib_dl_dlopen=yes
9321else
drhf922ca42015-05-14 15:39:18 +00009322 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009323fi
drhf922ca42015-05-14 15:39:18 +00009324rm -f core conftest.err conftest.$ac_objext \
9325 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009326LIBS=$ac_check_lib_save_LIBS
9327fi
drhf922ca42015-05-14 15:39:18 +00009328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009329$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009330if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009331 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9332else
9333
9334 lt_cv_dlopen="dyld"
9335 lt_cv_dlopen_libs=
9336 lt_cv_dlopen_self=yes
9337
9338fi
9339
mlcreech636a9952008-05-05 22:52:56 +00009340 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009341
drh71eb93e2001-09-28 01:34:43 +00009342 *)
drhf922ca42015-05-14 15:39:18 +00009343 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9344if test "x$ac_cv_func_shl_load" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009345 lt_cv_dlopen="shl_load"
9346else
drhf922ca42015-05-14 15:39:18 +00009347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009348$as_echo_n "checking for shl_load in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009349if ${ac_cv_lib_dld_shl_load+:} false; then :
drh8b727472009-01-19 18:18:40 +00009350 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009351else
9352 ac_check_lib_save_LIBS=$LIBS
9353LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009355/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009356
drh8b727472009-01-19 18:18:40 +00009357/* Override any GCC internal prototype to avoid an error.
9358 Use char because int might match the return type of a GCC
9359 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009360#ifdef __cplusplus
9361extern "C"
9362#endif
drh71eb93e2001-09-28 01:34:43 +00009363char shl_load ();
9364int
9365main ()
9366{
drh8b727472009-01-19 18:18:40 +00009367return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009368 ;
9369 return 0;
9370}
9371_ACEOF
drhf922ca42015-05-14 15:39:18 +00009372if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009373 ac_cv_lib_dld_shl_load=yes
9374else
drhf922ca42015-05-14 15:39:18 +00009375 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009376fi
drhf922ca42015-05-14 15:39:18 +00009377rm -f core conftest.err conftest.$ac_objext \
9378 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009379LIBS=$ac_check_lib_save_LIBS
9380fi
drhf922ca42015-05-14 15:39:18 +00009381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
drh8b727472009-01-19 18:18:40 +00009382$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
drhf922ca42015-05-14 15:39:18 +00009383if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009384 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00009385else
drhf922ca42015-05-14 15:39:18 +00009386 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9387if test "x$ac_cv_func_dlopen" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00009388 lt_cv_dlopen="dlopen"
9389else
drhf922ca42015-05-14 15:39:18 +00009390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009391$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009392if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009393 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009394else
9395 ac_check_lib_save_LIBS=$LIBS
9396LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009397cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009398/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009399
drh8b727472009-01-19 18:18:40 +00009400/* Override any GCC internal prototype to avoid an error.
9401 Use char because int might match the return type of a GCC
9402 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009403#ifdef __cplusplus
9404extern "C"
9405#endif
drh71eb93e2001-09-28 01:34:43 +00009406char dlopen ();
9407int
9408main ()
9409{
drh8b727472009-01-19 18:18:40 +00009410return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009411 ;
9412 return 0;
9413}
9414_ACEOF
drhf922ca42015-05-14 15:39:18 +00009415if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009416 ac_cv_lib_dl_dlopen=yes
9417else
drhf922ca42015-05-14 15:39:18 +00009418 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009419fi
drhf922ca42015-05-14 15:39:18 +00009420rm -f core conftest.err conftest.$ac_objext \
9421 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009422LIBS=$ac_check_lib_save_LIBS
9423fi
drhf922ca42015-05-14 15:39:18 +00009424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009425$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009426if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009427 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9428else
drhf922ca42015-05-14 15:39:18 +00009429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
drh8b727472009-01-19 18:18:40 +00009430$as_echo_n "checking for dlopen in -lsvld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009431if ${ac_cv_lib_svld_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009432 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009433else
9434 ac_check_lib_save_LIBS=$LIBS
9435LIBS="-lsvld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009436cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009437/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009438
drh8b727472009-01-19 18:18:40 +00009439/* Override any GCC internal prototype to avoid an error.
9440 Use char because int might match the return type of a GCC
9441 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009442#ifdef __cplusplus
9443extern "C"
9444#endif
drh71eb93e2001-09-28 01:34:43 +00009445char dlopen ();
9446int
9447main ()
9448{
drh8b727472009-01-19 18:18:40 +00009449return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009450 ;
9451 return 0;
9452}
9453_ACEOF
drhf922ca42015-05-14 15:39:18 +00009454if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009455 ac_cv_lib_svld_dlopen=yes
9456else
drhf922ca42015-05-14 15:39:18 +00009457 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009458fi
drhf922ca42015-05-14 15:39:18 +00009459rm -f core conftest.err conftest.$ac_objext \
9460 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009461LIBS=$ac_check_lib_save_LIBS
9462fi
drhf922ca42015-05-14 15:39:18 +00009463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009464$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009465if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009466 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00009467else
drhf922ca42015-05-14 15:39:18 +00009468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009469$as_echo_n "checking for dld_link in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009470if ${ac_cv_lib_dld_dld_link+:} false; then :
drh8b727472009-01-19 18:18:40 +00009471 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00009472else
9473 ac_check_lib_save_LIBS=$LIBS
9474LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009476/* end confdefs.h. */
9477
drh8b727472009-01-19 18:18:40 +00009478/* Override any GCC internal prototype to avoid an error.
9479 Use char because int might match the return type of a GCC
9480 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00009481#ifdef __cplusplus
9482extern "C"
9483#endif
a.rottmann84e63352003-03-24 09:42:16 +00009484char dld_link ();
9485int
9486main ()
9487{
drh8b727472009-01-19 18:18:40 +00009488return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +00009489 ;
9490 return 0;
9491}
9492_ACEOF
drhf922ca42015-05-14 15:39:18 +00009493if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00009494 ac_cv_lib_dld_dld_link=yes
9495else
drhf922ca42015-05-14 15:39:18 +00009496 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00009497fi
drhf922ca42015-05-14 15:39:18 +00009498rm -f core conftest.err conftest.$ac_objext \
9499 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009500LIBS=$ac_check_lib_save_LIBS
9501fi
drhf922ca42015-05-14 15:39:18 +00009502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
drh8b727472009-01-19 18:18:40 +00009503$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
drhf922ca42015-05-14 15:39:18 +00009504if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009505 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +00009506fi
9507
drh71eb93e2001-09-28 01:34:43 +00009508
9509fi
9510
drh71eb93e2001-09-28 01:34:43 +00009511
9512fi
9513
a.rottmann84e63352003-03-24 09:42:16 +00009514
9515fi
9516
9517
9518fi
9519
9520
drh71eb93e2001-09-28 01:34:43 +00009521fi
9522
9523 ;;
9524 esac
9525
9526 if test "x$lt_cv_dlopen" != xno; then
9527 enable_dlopen=yes
9528 else
9529 enable_dlopen=no
9530 fi
9531
9532 case $lt_cv_dlopen in
9533 dlopen)
9534 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00009535 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00009536
9537 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +00009538 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +00009539
9540 save_LIBS="$LIBS"
9541 LIBS="$lt_cv_dlopen_libs $LIBS"
9542
drhf922ca42015-05-14 15:39:18 +00009543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009544$as_echo_n "checking whether a program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009545if ${lt_cv_dlopen_self+:} false; then :
drh8b727472009-01-19 18:18:40 +00009546 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009547else
9548 if test "$cross_compiling" = yes; then :
9549 lt_cv_dlopen_self=cross
9550else
a.rottmann9bc8b932004-02-29 15:18:31 +00009551 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009552 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009553 cat > conftest.$ac_ext <<_LT_EOF
drhef5b2d22020-11-24 13:14:15 +00009554#line 9554 "configure"
drh71eb93e2001-09-28 01:34:43 +00009555#include "confdefs.h"
9556
9557#if HAVE_DLFCN_H
9558#include <dlfcn.h>
9559#endif
9560
9561#include <stdio.h>
9562
9563#ifdef RTLD_GLOBAL
9564# define LT_DLGLOBAL RTLD_GLOBAL
9565#else
9566# ifdef DL_GLOBAL
9567# define LT_DLGLOBAL DL_GLOBAL
9568# else
9569# define LT_DLGLOBAL 0
9570# endif
9571#endif
9572
9573/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9574 find out it does not work in some platform. */
9575#ifndef LT_DLLAZY_OR_NOW
9576# ifdef RTLD_LAZY
9577# define LT_DLLAZY_OR_NOW RTLD_LAZY
9578# else
9579# ifdef DL_LAZY
9580# define LT_DLLAZY_OR_NOW DL_LAZY
9581# else
9582# ifdef RTLD_NOW
9583# define LT_DLLAZY_OR_NOW RTLD_NOW
9584# else
9585# ifdef DL_NOW
9586# define LT_DLLAZY_OR_NOW DL_NOW
9587# else
9588# define LT_DLLAZY_OR_NOW 0
9589# endif
9590# endif
9591# endif
9592# endif
9593#endif
9594
drh71eb93e2001-09-28 01:34:43 +00009595void fnord() { int i=42;}
9596int main ()
9597{
9598 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9599 int status = $lt_dlunknown;
9600
9601 if (self)
9602 {
9603 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9604 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9605 /* dlclose (self); */
9606 }
vapier7f19c022007-02-17 14:46:31 +00009607 else
9608 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009609
vapier6acb2cf2009-01-28 04:46:28 +00009610 return status;
drh71eb93e2001-09-28 01:34:43 +00009611}
mlcreech636a9952008-05-05 22:52:56 +00009612_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009614 (eval $ac_link) 2>&5
9615 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9617 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009618 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009619 lt_status=$?
9620 case x$lt_status in
9621 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9622 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009623 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +00009624 esac
9625 else :
9626 # compilation failed
9627 lt_cv_dlopen_self=no
9628 fi
9629fi
9630rm -fr conftest*
9631
a.rottmann84e63352003-03-24 09:42:16 +00009632
drh71eb93e2001-09-28 01:34:43 +00009633fi
drhf922ca42015-05-14 15:39:18 +00009634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
drh8b727472009-01-19 18:18:40 +00009635$as_echo "$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009636
9637 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00009638 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00009639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009640$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009641if ${lt_cv_dlopen_self_static+:} false; then :
drh8b727472009-01-19 18:18:40 +00009642 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009643else
9644 if test "$cross_compiling" = yes; then :
9645 lt_cv_dlopen_self_static=cross
9646else
a.rottmann9bc8b932004-02-29 15:18:31 +00009647 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009648 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009649 cat > conftest.$ac_ext <<_LT_EOF
drhef5b2d22020-11-24 13:14:15 +00009650#line 9650 "configure"
drh71eb93e2001-09-28 01:34:43 +00009651#include "confdefs.h"
9652
9653#if HAVE_DLFCN_H
9654#include <dlfcn.h>
9655#endif
9656
9657#include <stdio.h>
9658
9659#ifdef RTLD_GLOBAL
9660# define LT_DLGLOBAL RTLD_GLOBAL
9661#else
9662# ifdef DL_GLOBAL
9663# define LT_DLGLOBAL DL_GLOBAL
9664# else
9665# define LT_DLGLOBAL 0
9666# endif
9667#endif
9668
9669/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9670 find out it does not work in some platform. */
9671#ifndef LT_DLLAZY_OR_NOW
9672# ifdef RTLD_LAZY
9673# define LT_DLLAZY_OR_NOW RTLD_LAZY
9674# else
9675# ifdef DL_LAZY
9676# define LT_DLLAZY_OR_NOW DL_LAZY
9677# else
9678# ifdef RTLD_NOW
9679# define LT_DLLAZY_OR_NOW RTLD_NOW
9680# else
9681# ifdef DL_NOW
9682# define LT_DLLAZY_OR_NOW DL_NOW
9683# else
9684# define LT_DLLAZY_OR_NOW 0
9685# endif
9686# endif
9687# endif
9688# endif
9689#endif
9690
drh71eb93e2001-09-28 01:34:43 +00009691void fnord() { int i=42;}
9692int main ()
9693{
9694 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9695 int status = $lt_dlunknown;
9696
9697 if (self)
9698 {
9699 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9700 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9701 /* dlclose (self); */
9702 }
vapier7f19c022007-02-17 14:46:31 +00009703 else
9704 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009705
vapier6acb2cf2009-01-28 04:46:28 +00009706 return status;
drh71eb93e2001-09-28 01:34:43 +00009707}
mlcreech636a9952008-05-05 22:52:56 +00009708_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009710 (eval $ac_link) 2>&5
9711 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9713 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009714 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009715 lt_status=$?
9716 case x$lt_status in
9717 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9718 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009719 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +00009720 esac
9721 else :
9722 # compilation failed
9723 lt_cv_dlopen_self_static=no
9724 fi
9725fi
9726rm -fr conftest*
9727
a.rottmann84e63352003-03-24 09:42:16 +00009728
drh71eb93e2001-09-28 01:34:43 +00009729fi
drhf922ca42015-05-14 15:39:18 +00009730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
drh8b727472009-01-19 18:18:40 +00009731$as_echo "$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009732 fi
9733
9734 CPPFLAGS="$save_CPPFLAGS"
9735 LDFLAGS="$save_LDFLAGS"
9736 LIBS="$save_LIBS"
9737 ;;
9738 esac
9739
9740 case $lt_cv_dlopen_self in
9741 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9742 *) enable_dlopen_self=unknown ;;
9743 esac
9744
9745 case $lt_cv_dlopen_self_static in
9746 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9747 *) enable_dlopen_self_static=unknown ;;
9748 esac
9749fi
9750
drh71eb93e2001-09-28 01:34:43 +00009751
drh71eb93e2001-09-28 01:34:43 +00009752
a.rottmann9bc8b932004-02-29 15:18:31 +00009753
a.rottmann9bc8b932004-02-29 15:18:31 +00009754
mlcreech636a9952008-05-05 22:52:56 +00009755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767striplib=
9768old_striplib=
drhf922ca42015-05-14 15:39:18 +00009769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
drh8b727472009-01-19 18:18:40 +00009770$as_echo_n "checking whether stripping libraries is possible... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009771if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9772 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9773 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
drhf922ca42015-05-14 15:39:18 +00009774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009775$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009776else
9777# FIXME - insert some real tests, host_os isn't really good enough
9778 case $host_os in
9779 darwin*)
9780 if test -n "$STRIP" ; then
9781 striplib="$STRIP -x"
9782 old_striplib="$STRIP -S"
drhf922ca42015-05-14 15:39:18 +00009783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009784$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009785 else
drhf922ca42015-05-14 15:39:18 +00009786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009787$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009788 fi
a.rottmann84e63352003-03-24 09:42:16 +00009789 ;;
mlcreech636a9952008-05-05 22:52:56 +00009790 *)
drhf922ca42015-05-14 15:39:18 +00009791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009792$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009793 ;;
9794 esac
mlcreech636a9952008-05-05 22:52:56 +00009795fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009796
a.rottmann9bc8b932004-02-29 15:18:31 +00009797
drh71eb93e2001-09-28 01:34:43 +00009798
drh71eb93e2001-09-28 01:34:43 +00009799
a.rottmann84e63352003-03-24 09:42:16 +00009800
drh71eb93e2001-09-28 01:34:43 +00009801
drh71eb93e2001-09-28 01:34:43 +00009802
a.rottmann9bc8b932004-02-29 15:18:31 +00009803
drh71eb93e2001-09-28 01:34:43 +00009804
drh71eb93e2001-09-28 01:34:43 +00009805
drh71eb93e2001-09-28 01:34:43 +00009806
drh71eb93e2001-09-28 01:34:43 +00009807
mlcreech636a9952008-05-05 22:52:56 +00009808 # Report which library types will actually be built
drhf922ca42015-05-14 15:39:18 +00009809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009810$as_echo_n "checking if libtool supports shared libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
drh8b727472009-01-19 18:18:40 +00009812$as_echo "$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009813
drhf922ca42015-05-14 15:39:18 +00009814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009815$as_echo_n "checking whether to build shared libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009816 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009817
mlcreech636a9952008-05-05 22:52:56 +00009818 # On AIX, shared libraries and static libraries use the same namespace, and
9819 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +00009820 case $host_os in
9821 aix3*)
vapier7f19c022007-02-17 14:46:31 +00009822 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +00009823 if test -n "$RANLIB"; then
9824 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9825 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +00009826 fi
9827 ;;
9828
mlcreech636a9952008-05-05 22:52:56 +00009829 aix[4-9]*)
9830 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9831 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009832 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009833 ;;
9834 esac
drhf922ca42015-05-14 15:39:18 +00009835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
drh8b727472009-01-19 18:18:40 +00009836$as_echo "$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009837
drhf922ca42015-05-14 15:39:18 +00009838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
drh8b727472009-01-19 18:18:40 +00009839$as_echo_n "checking whether to build static libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009840 # Make sure either enable_shared or enable_static is yes.
9841 test "$enable_shared" = yes || enable_static=yes
drhf922ca42015-05-14 15:39:18 +00009842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
drh8b727472009-01-19 18:18:40 +00009843$as_echo "$enable_static" >&6; }
vapier7f19c022007-02-17 14:46:31 +00009844
a.rottmann9bc8b932004-02-29 15:18:31 +00009845
a.rottmann9bc8b932004-02-29 15:18:31 +00009846
a.rottmann9bc8b932004-02-29 15:18:31 +00009847
vapier7f19c022007-02-17 14:46:31 +00009848fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009849ac_ext=c
9850ac_cpp='$CPP $CPPFLAGS'
9851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9853ac_compiler_gnu=$ac_cv_c_compiler_gnu
9854
9855CC="$lt_save_CC"
9856
a.rottmann9bc8b932004-02-29 15:18:31 +00009857
a.rottmann9bc8b932004-02-29 15:18:31 +00009858
9859
a.rottmann9bc8b932004-02-29 15:18:31 +00009860
a.rottmann9bc8b932004-02-29 15:18:31 +00009861
a.rottmann9bc8b932004-02-29 15:18:31 +00009862
a.rottmann9bc8b932004-02-29 15:18:31 +00009863
a.rottmann9bc8b932004-02-29 15:18:31 +00009864
a.rottmann9bc8b932004-02-29 15:18:31 +00009865
vapier7f19c022007-02-17 14:46:31 +00009866
a.rottmann9bc8b932004-02-29 15:18:31 +00009867
9868
drh8b727472009-01-19 18:18:40 +00009869 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +00009870
vapier7f19c022007-02-17 14:46:31 +00009871
9872
vapier7f19c022007-02-17 14:46:31 +00009873
mlcreech636a9952008-05-05 22:52:56 +00009874# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +00009875
9876
drh71eb93e2001-09-28 01:34:43 +00009877# Find a good install program. We prefer a C program (faster),
9878# so one script is as good as another. But avoid the broken or
9879# incompatible versions:
9880# SysV /etc/install, /usr/sbin/install
9881# SunOS /usr/etc/install
9882# IRIX /sbin/install
9883# AIX /bin/install
9884# AmigaOS /C/install, which installs bootblocks on floppy discs
9885# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9886# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9887# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +00009888# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +00009889# ./install, which can be erroneously created by make from ./install.sh.
drh8b727472009-01-19 18:18:40 +00009890# Reject install programs that cannot install multiple files.
drhf922ca42015-05-14 15:39:18 +00009891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
drh8b727472009-01-19 18:18:40 +00009892$as_echo_n "checking for a BSD-compatible install... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009893if test -z "$INSTALL"; then
drhf922ca42015-05-14 15:39:18 +00009894if ${ac_cv_path_install+:} false; then :
drh8b727472009-01-19 18:18:40 +00009895 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009896else
a.rottmann84e63352003-03-24 09:42:16 +00009897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9898for as_dir in $PATH
9899do
9900 IFS=$as_save_IFS
9901 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00009902 # Account for people who put trailing slashes in PATH elements.
9903case $as_dir/ in #((
9904 ./ | .// | /[cC]/* | \
a.rottmann84e63352003-03-24 09:42:16 +00009905 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
drhf922ca42015-05-14 15:39:18 +00009906 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
a.rottmann84e63352003-03-24 09:42:16 +00009907 /usr/ucb/* ) ;;
9908 *)
9909 # OSF1 and SCO ODT 3.0 have their own names for install.
9910 # Don't use installbsd from OSF since it installs stuff as root
9911 # by default.
9912 for ac_prog in ginstall scoinst install; do
9913 for ac_exec_ext in '' $ac_executable_extensions; do
drhf922ca42015-05-14 15:39:18 +00009914 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
a.rottmann964dbb12004-02-26 19:47:42 +00009915 if test $ac_prog = install &&
9916 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9917 # AIX install. It has an incompatible calling convention.
9918 :
9919 elif test $ac_prog = install &&
9920 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9921 # program-specific install script used by HP pwplus--don't use.
9922 :
9923 else
drh8b727472009-01-19 18:18:40 +00009924 rm -rf conftest.one conftest.two conftest.dir
9925 echo one > conftest.one
9926 echo two > conftest.two
9927 mkdir conftest.dir
9928 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9929 test -s conftest.one && test -s conftest.two &&
9930 test -s conftest.dir/conftest.one &&
9931 test -s conftest.dir/conftest.two
9932 then
9933 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9934 break 3
9935 fi
a.rottmann964dbb12004-02-26 19:47:42 +00009936 fi
9937 fi
drh71eb93e2001-09-28 01:34:43 +00009938 done
a.rottmann84e63352003-03-24 09:42:16 +00009939 done
9940 ;;
9941esac
a.rottmann84e63352003-03-24 09:42:16 +00009942
drhf922ca42015-05-14 15:39:18 +00009943 done
drh8b727472009-01-19 18:18:40 +00009944IFS=$as_save_IFS
9945
9946rm -rf conftest.one conftest.two conftest.dir
drh71eb93e2001-09-28 01:34:43 +00009947
9948fi
9949 if test "${ac_cv_path_install+set}" = set; then
9950 INSTALL=$ac_cv_path_install
9951 else
drh8b727472009-01-19 18:18:40 +00009952 # As a last resort, use the slow shell script. Don't cache a
9953 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +00009954 # break other packages using the cache if that directory is
drh8b727472009-01-19 18:18:40 +00009955 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +00009956 INSTALL=$ac_install_sh
9957 fi
9958fi
drhf922ca42015-05-14 15:39:18 +00009959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
drh8b727472009-01-19 18:18:40 +00009960$as_echo "$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009961
9962# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9963# It thinks the first close brace ends the variable substitution.
9964test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9965
9966test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9967
9968test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9969
a.rottmann84e63352003-03-24 09:42:16 +00009970
drh75897232000-05-29 14:26:00 +00009971#########
mlcreech636a9952008-05-05 22:52:56 +00009972# Enable large file support (if special flags are necessary)
9973#
drh8b727472009-01-19 18:18:40 +00009974# Check whether --enable-largefile was given.
drhf922ca42015-05-14 15:39:18 +00009975if test "${enable_largefile+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00009976 enableval=$enable_largefile;
9977fi
mlcreech636a9952008-05-05 22:52:56 +00009978
9979if test "$enable_largefile" != no; then
9980
drhf922ca42015-05-14 15:39:18 +00009981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
drh8b727472009-01-19 18:18:40 +00009982$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009983if ${ac_cv_sys_largefile_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00009984 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +00009985else
mlcreech636a9952008-05-05 22:52:56 +00009986 ac_cv_sys_largefile_CC=no
9987 if test "$GCC" != yes; then
9988 ac_save_CC=$CC
9989 while :; do
drh8b727472009-01-19 18:18:40 +00009990 # IRIX 6.2 and later do not support large files by default,
9991 # so use the C compiler's -n32 option if that helps.
drhf922ca42015-05-14 15:39:18 +00009992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009993/* end confdefs.h. */
9994#include <sys/types.h>
9995 /* Check that off_t can represent 2**63 - 1 correctly.
9996 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9997 since some C++ compilers masquerading as C compilers
9998 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +00009999#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010000 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10001 && LARGE_OFF_T % 2147483647 == 1)
10002 ? 1 : -1];
10003int
10004main ()
10005{
10006
10007 ;
10008 return 0;
10009}
10010_ACEOF
drhf922ca42015-05-14 15:39:18 +000010011 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010012 break
mlcreech636a9952008-05-05 22:52:56 +000010013fi
drh8b727472009-01-19 18:18:40 +000010014rm -f core conftest.err conftest.$ac_objext
10015 CC="$CC -n32"
drhf922ca42015-05-14 15:39:18 +000010016 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010017 ac_cv_sys_largefile_CC=' -n32'; break
mlcreech636a9952008-05-05 22:52:56 +000010018fi
drh8b727472009-01-19 18:18:40 +000010019rm -f core conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +000010020 break
10021 done
10022 CC=$ac_save_CC
10023 rm -f conftest.$ac_ext
10024 fi
10025fi
drhf922ca42015-05-14 15:39:18 +000010026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
drh8b727472009-01-19 18:18:40 +000010027$as_echo "$ac_cv_sys_largefile_CC" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010028 if test "$ac_cv_sys_largefile_CC" != no; then
10029 CC=$CC$ac_cv_sys_largefile_CC
10030 fi
10031
drhf922ca42015-05-14 15:39:18 +000010032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010033$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010034if ${ac_cv_sys_file_offset_bits+:} false; then :
drh8b727472009-01-19 18:18:40 +000010035 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010036else
10037 while :; do
drhf922ca42015-05-14 15:39:18 +000010038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010039/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +000010040#include <sys/types.h>
10041 /* Check that off_t can represent 2**63 - 1 correctly.
10042 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10043 since some C++ compilers masquerading as C compilers
10044 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010045#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010046 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10047 && LARGE_OFF_T % 2147483647 == 1)
10048 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +000010049int
10050main ()
10051{
mlcreech636a9952008-05-05 22:52:56 +000010052
mlcreechb87057f2008-03-06 07:19:20 +000010053 ;
10054 return 0;
10055}
10056_ACEOF
drhf922ca42015-05-14 15:39:18 +000010057if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010058 ac_cv_sys_file_offset_bits=no; break
mlcreech636a9952008-05-05 22:52:56 +000010059fi
drh8b727472009-01-19 18:18:40 +000010060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010062/* end confdefs.h. */
10063#define _FILE_OFFSET_BITS 64
10064#include <sys/types.h>
10065 /* Check that off_t can represent 2**63 - 1 correctly.
10066 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10067 since some C++ compilers masquerading as C compilers
10068 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010069#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010070 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10071 && LARGE_OFF_T % 2147483647 == 1)
10072 ? 1 : -1];
10073int
10074main ()
10075{
10076
10077 ;
10078 return 0;
10079}
10080_ACEOF
drhf922ca42015-05-14 15:39:18 +000010081if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010082 ac_cv_sys_file_offset_bits=64; break
mlcreech636a9952008-05-05 22:52:56 +000010083fi
drh8b727472009-01-19 18:18:40 +000010084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10085 ac_cv_sys_file_offset_bits=unknown
mlcreech636a9952008-05-05 22:52:56 +000010086 break
10087done
10088fi
drhf922ca42015-05-14 15:39:18 +000010089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
drh8b727472009-01-19 18:18:40 +000010090$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10091case $ac_cv_sys_file_offset_bits in #(
10092 no | unknown) ;;
10093 *)
mlcreech636a9952008-05-05 22:52:56 +000010094cat >>confdefs.h <<_ACEOF
10095#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10096_ACEOF
drh8b727472009-01-19 18:18:40 +000010097;;
10098esac
10099rm -rf conftest*
10100 if test $ac_cv_sys_file_offset_bits = unknown; then
drhf922ca42015-05-14 15:39:18 +000010101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010102$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010103if ${ac_cv_sys_large_files+:} false; then :
drh8b727472009-01-19 18:18:40 +000010104 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010105else
10106 while :; do
drhf922ca42015-05-14 15:39:18 +000010107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010108/* end confdefs.h. */
10109#include <sys/types.h>
10110 /* Check that off_t can represent 2**63 - 1 correctly.
10111 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10112 since some C++ compilers masquerading as C compilers
10113 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010114#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010115 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10116 && LARGE_OFF_T % 2147483647 == 1)
10117 ? 1 : -1];
10118int
10119main ()
10120{
10121
10122 ;
10123 return 0;
10124}
10125_ACEOF
drhf922ca42015-05-14 15:39:18 +000010126if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010127 ac_cv_sys_large_files=no; break
mlcreech636a9952008-05-05 22:52:56 +000010128fi
drh8b727472009-01-19 18:18:40 +000010129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010131/* end confdefs.h. */
10132#define _LARGE_FILES 1
10133#include <sys/types.h>
10134 /* Check that off_t can represent 2**63 - 1 correctly.
10135 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10136 since some C++ compilers masquerading as C compilers
10137 incorrectly reject 9223372036854775807. */
drh6b236032019-04-19 22:01:10 +000010138#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
mlcreech636a9952008-05-05 22:52:56 +000010139 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10140 && LARGE_OFF_T % 2147483647 == 1)
10141 ? 1 : -1];
10142int
10143main ()
10144{
10145
10146 ;
10147 return 0;
10148}
10149_ACEOF
drhf922ca42015-05-14 15:39:18 +000010150if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010151 ac_cv_sys_large_files=1; break
mlcreech636a9952008-05-05 22:52:56 +000010152fi
drh8b727472009-01-19 18:18:40 +000010153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10154 ac_cv_sys_large_files=unknown
mlcreech636a9952008-05-05 22:52:56 +000010155 break
10156done
10157fi
drhf922ca42015-05-14 15:39:18 +000010158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
drh8b727472009-01-19 18:18:40 +000010159$as_echo "$ac_cv_sys_large_files" >&6; }
10160case $ac_cv_sys_large_files in #(
10161 no | unknown) ;;
10162 *)
mlcreech636a9952008-05-05 22:52:56 +000010163cat >>confdefs.h <<_ACEOF
10164#define _LARGE_FILES $ac_cv_sys_large_files
10165_ACEOF
drh8b727472009-01-19 18:18:40 +000010166;;
10167esac
10168rm -rf conftest*
10169 fi
drhf922ca42015-05-14 15:39:18 +000010170
10171
mlcreech636a9952008-05-05 22:52:56 +000010172fi
10173
10174
10175#########
10176# Check for needed/wanted data types
drhf922ca42015-05-14 15:39:18 +000010177ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10178if test "x$ac_cv_type_int8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010179
10180cat >>confdefs.h <<_ACEOF
10181#define HAVE_INT8_T 1
10182_ACEOF
10183
10184
10185fi
drhf922ca42015-05-14 15:39:18 +000010186ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10187if test "x$ac_cv_type_int16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010188
10189cat >>confdefs.h <<_ACEOF
10190#define HAVE_INT16_T 1
10191_ACEOF
10192
10193
10194fi
drhf922ca42015-05-14 15:39:18 +000010195ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10196if test "x$ac_cv_type_int32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010197
10198cat >>confdefs.h <<_ACEOF
10199#define HAVE_INT32_T 1
10200_ACEOF
10201
10202
10203fi
drhf922ca42015-05-14 15:39:18 +000010204ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10205if test "x$ac_cv_type_int64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010206
10207cat >>confdefs.h <<_ACEOF
10208#define HAVE_INT64_T 1
10209_ACEOF
10210
10211
10212fi
drhf922ca42015-05-14 15:39:18 +000010213ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10214if test "x$ac_cv_type_intptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010215
10216cat >>confdefs.h <<_ACEOF
10217#define HAVE_INTPTR_T 1
10218_ACEOF
10219
10220
10221fi
drhf922ca42015-05-14 15:39:18 +000010222ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10223if test "x$ac_cv_type_uint8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010224
10225cat >>confdefs.h <<_ACEOF
10226#define HAVE_UINT8_T 1
10227_ACEOF
10228
10229
10230fi
drhf922ca42015-05-14 15:39:18 +000010231ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10232if test "x$ac_cv_type_uint16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010233
10234cat >>confdefs.h <<_ACEOF
10235#define HAVE_UINT16_T 1
10236_ACEOF
10237
10238
10239fi
drhf922ca42015-05-14 15:39:18 +000010240ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10241if test "x$ac_cv_type_uint32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010242
10243cat >>confdefs.h <<_ACEOF
10244#define HAVE_UINT32_T 1
10245_ACEOF
10246
10247
10248fi
drhf922ca42015-05-14 15:39:18 +000010249ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10250if test "x$ac_cv_type_uint64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010251
10252cat >>confdefs.h <<_ACEOF
10253#define HAVE_UINT64_T 1
10254_ACEOF
10255
10256
10257fi
drhf922ca42015-05-14 15:39:18 +000010258ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10259if test "x$ac_cv_type_uintptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010260
10261cat >>confdefs.h <<_ACEOF
10262#define HAVE_UINTPTR_T 1
10263_ACEOF
10264
10265
10266fi
mlcreechb87057f2008-03-06 07:19:20 +000010267
10268
10269#########
10270# Check for needed/wanted headers
drh86c5a932012-02-08 12:13:28 +000010271for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
drhf922ca42015-05-14 15:39:18 +000010272do :
10273 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10274ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10275if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
mlcreechb87057f2008-03-06 07:19:20 +000010276 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010277#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000010278_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000010279
mlcreechb87057f2008-03-06 07:19:20 +000010280fi
10281
10282done
10283
10284
10285#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000010286# Figure out whether or not we have these functions
10287#
drhe32a2562016-03-04 02:38:00 +000010288for ac_func in fdatasync gmtime_r isnan localtime_r localtime_s malloc_usable_size strchrnul usleep utime pread pread64 pwrite pwrite64
drhf922ca42015-05-14 15:39:18 +000010289do :
10290 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10291ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10292if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
mlcreech5b0a9eb2008-03-09 01:38:09 +000010293 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010294#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000010295_ACEOF
10296
10297fi
10298done
10299
10300
mlcreechab1c47b2008-03-09 02:51:10 +000010301#########
mlcreechf3868112008-03-11 18:03:30 +000010302# By default, we use the amalgamation (this may be changed below...)
10303#
10304USE_AMALGAMATION=1
10305
10306#########
mlcreechab1c47b2008-03-09 02:51:10 +000010307# See whether we can run specific tclsh versions known to work well;
10308# if not, then we fall back to plain tclsh.
10309# TODO: try other versions before falling back?
10310#
drh0b11bcb2017-09-22 00:24:44 +000010311for ac_prog in tclsh8.7 tclsh8.6 tclsh8.5 tclsh
mlcreechab1c47b2008-03-09 02:51:10 +000010312do
10313 # Extract the first word of "$ac_prog", so it can be a program name with args.
10314set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010316$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010317if ${ac_cv_prog_TCLSH_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +000010318 $as_echo_n "(cached) " >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010319else
10320 if test -n "$TCLSH_CMD"; then
10321 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10322else
10323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10324for as_dir in $PATH
10325do
10326 IFS=$as_save_IFS
10327 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010328 for ac_exec_ext in '' $ac_executable_extensions; do
10329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreechab1c47b2008-03-09 02:51:10 +000010330 ac_cv_prog_TCLSH_CMD="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000010332 break 2
10333 fi
10334done
drhf922ca42015-05-14 15:39:18 +000010335 done
drh8b727472009-01-19 18:18:40 +000010336IFS=$as_save_IFS
mlcreechab1c47b2008-03-09 02:51:10 +000010337
10338fi
10339fi
10340TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10341if test -n "$TCLSH_CMD"; then
drhf922ca42015-05-14 15:39:18 +000010342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
drh8b727472009-01-19 18:18:40 +000010343$as_echo "$TCLSH_CMD" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010344else
drhf922ca42015-05-14 15:39:18 +000010345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010346$as_echo "no" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010347fi
10348
drh8b727472009-01-19 18:18:40 +000010349
mlcreechab1c47b2008-03-09 02:51:10 +000010350 test -n "$TCLSH_CMD" && break
10351done
mlcreechf3868112008-03-11 18:03:30 +000010352test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000010353
mlcreechf3868112008-03-11 18:03:30 +000010354if test "$TCLSH_CMD" = "none"; then
10355 # If we can't find a local tclsh, then building the amalgamation will fail.
10356 # We act as though --disable-amalgamation has been used.
10357 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10358 USE_AMALGAMATION=0
10359 TCLSH_CMD="tclsh"
10360fi
mlcreechab1c47b2008-03-09 02:51:10 +000010361
10362
mlcreech5b0a9eb2008-03-09 01:38:09 +000010363
vapier6acb2cf2009-01-28 04:46:28 +000010364if test "x${TCLLIBDIR+set}" != "xset" ; then
10365 TCLLIBDIR='$(libdir)'
10366 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10367 TCLLIBDIR=$i
10368 break
10369 done
10370 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10371fi
10372
10373
mlcreech5b0a9eb2008-03-09 01:38:09 +000010374#########
drh75897232000-05-29 14:26:00 +000010375# Set up an appropriate program prefix
10376#
10377if test "$program_prefix" = "NONE"; then
10378 program_prefix=""
10379fi
10380
a.rottmann84e63352003-03-24 09:42:16 +000010381
drh4b2266a2004-11-27 15:52:16 +000010382VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
drhf922ca42015-05-14 15:39:18 +000010383{ $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010384$as_echo "$as_me: Version set to $VERSION" >&6;}
drh4b2266a2004-11-27 15:52:16 +000010385
10386RELEASE=`cat $srcdir/VERSION`
drhf922ca42015-05-14 15:39:18 +000010387{ $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010388$as_echo "$as_me: Release set to $RELEASE" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010389
drh26d0e2a2005-07-06 13:51:27 +000010390
drh75897232000-05-29 14:26:00 +000010391#########
drh75897232000-05-29 14:26:00 +000010392# Locate a compiler for the build machine. This compiler should
10393# generate command-line programs that run on the build machine.
10394#
vapier7f19c022007-02-17 14:46:31 +000010395if test x"$cross_compiling" = xno; then
10396 BUILD_CC=$CC
10397 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000010398else
vapier7f19c022007-02-17 14:46:31 +000010399 if test "${BUILD_CC+set}" != set; then
10400 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000010401do
10402 # Extract the first word of "$ac_prog", so it can be a program name with args.
10403set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010405$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010406if ${ac_cv_prog_BUILD_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +000010407 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010408else
vapier7f19c022007-02-17 14:46:31 +000010409 if test -n "$BUILD_CC"; then
10410 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000010411else
a.rottmann84e63352003-03-24 09:42:16 +000010412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10413for as_dir in $PATH
10414do
10415 IFS=$as_save_IFS
10416 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010417 for ac_exec_ext in '' $ac_executable_extensions; do
10418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier7f19c022007-02-17 14:46:31 +000010419 ac_cv_prog_BUILD_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000010421 break 2
10422 fi
10423done
drhf922ca42015-05-14 15:39:18 +000010424 done
drh8b727472009-01-19 18:18:40 +000010425IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000010426
drh71eb93e2001-09-28 01:34:43 +000010427fi
10428fi
vapier7f19c022007-02-17 14:46:31 +000010429BUILD_CC=$ac_cv_prog_BUILD_CC
10430if test -n "$BUILD_CC"; then
drhf922ca42015-05-14 15:39:18 +000010431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
drh8b727472009-01-19 18:18:40 +000010432$as_echo "$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010433else
drhf922ca42015-05-14 15:39:18 +000010434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010435$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010436fi
drh75897232000-05-29 14:26:00 +000010437
drh8b727472009-01-19 18:18:40 +000010438
vapier7f19c022007-02-17 14:46:31 +000010439 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000010440done
drh75897232000-05-29 14:26:00 +000010441
vapier7f19c022007-02-17 14:46:31 +000010442 fi
10443 if test "${BUILD_CFLAGS+set}" != set; then
10444 BUILD_CFLAGS="-g"
10445 fi
drh71eb93e2001-09-28 01:34:43 +000010446fi
10447
a.rottmann84e63352003-03-24 09:42:16 +000010448
drh297ecf12001-04-05 15:57:13 +000010449##########
dougcurrie0f290bf2004-06-21 18:57:29 +000010450# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000010451#
drh8b727472009-01-19 18:18:40 +000010452# Check whether --enable-threadsafe was given.
drhf922ca42015-05-14 15:39:18 +000010453if test "${enable_threadsafe+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010454 enableval=$enable_threadsafe;
drh8b727472009-01-19 18:18:40 +000010455fi
10456
drhf922ca42015-05-14 15:39:18 +000010457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
drh8b727472009-01-19 18:18:40 +000010458$as_echo_n "checking whether to support threadsafe operation... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010459if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000010460 SQLITE_THREADSAFE=0
drhf922ca42015-05-14 15:39:18 +000010461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010462$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010463else
drh5a3032b2007-09-03 16:12:09 +000010464 SQLITE_THREADSAFE=1
drhf922ca42015-05-14 15:39:18 +000010465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010466$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010467fi
10468
a.rottmann964dbb12004-02-26 19:47:42 +000010469
drh5a3032b2007-09-03 16:12:09 +000010470if test "$SQLITE_THREADSAFE" = "1"; then
drhba60fbb2016-01-28 02:47:32 +000010471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10472$as_echo_n "checking for library containing pthread_create... " >&6; }
10473if ${ac_cv_search_pthread_create+:} false; then :
10474 $as_echo_n "(cached) " >&6
10475else
10476 ac_func_search_save_LIBS=$LIBS
10477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10478/* end confdefs.h. */
10479
10480/* Override any GCC internal prototype to avoid an error.
10481 Use char because int might match the return type of a GCC
10482 builtin and then its argument prototype would still apply. */
10483#ifdef __cplusplus
10484extern "C"
10485#endif
10486char pthread_create ();
10487int
10488main ()
10489{
10490return pthread_create ();
10491 ;
10492 return 0;
10493}
10494_ACEOF
10495for ac_lib in '' pthread; do
10496 if test -z "$ac_lib"; then
10497 ac_res="none required"
10498 else
10499 ac_res=-l$ac_lib
10500 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10501 fi
10502 if ac_fn_c_try_link "$LINENO"; then :
10503 ac_cv_search_pthread_create=$ac_res
10504fi
10505rm -f core conftest.err conftest.$ac_objext \
10506 conftest$ac_exeext
10507 if ${ac_cv_search_pthread_create+:} false; then :
10508 break
10509fi
10510done
10511if ${ac_cv_search_pthread_create+:} false; then :
10512
10513else
10514 ac_cv_search_pthread_create=no
10515fi
10516rm conftest.$ac_ext
10517LIBS=$ac_func_search_save_LIBS
10518fi
10519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10520$as_echo "$ac_cv_search_pthread_create" >&6; }
10521ac_res=$ac_cv_search_pthread_create
10522if test "$ac_res" != no; then :
10523 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10524
10525fi
10526
drh13c808a2016-01-13 21:23:48 +000010527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
10528$as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
10529if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drh8b727472009-01-19 18:18:40 +000010530 $as_echo_n "(cached) " >&6
dougcurrie65623c72004-09-20 14:57:23 +000010531else
mlcreechc658b0f2008-03-09 02:20:11 +000010532 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000010533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dougcurrie65623c72004-09-20 14:57:23 +000010534/* end confdefs.h. */
10535
drh8b727472009-01-19 18:18:40 +000010536/* Override any GCC internal prototype to avoid an error.
10537 Use char because int might match the return type of a GCC
10538 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000010539#ifdef __cplusplus
10540extern "C"
10541#endif
drh13c808a2016-01-13 21:23:48 +000010542char pthread_mutexattr_init ();
dougcurrie65623c72004-09-20 14:57:23 +000010543int
10544main ()
10545{
drh13c808a2016-01-13 21:23:48 +000010546return pthread_mutexattr_init ();
dougcurrie65623c72004-09-20 14:57:23 +000010547 ;
10548 return 0;
10549}
10550_ACEOF
drh8b727472009-01-19 18:18:40 +000010551for ac_lib in '' pthread; do
10552 if test -z "$ac_lib"; then
10553 ac_res="none required"
10554 else
10555 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000010556 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000010557 fi
drhf922ca42015-05-14 15:39:18 +000010558 if ac_fn_c_try_link "$LINENO"; then :
drh13c808a2016-01-13 21:23:48 +000010559 ac_cv_search_pthread_mutexattr_init=$ac_res
mlcreechc658b0f2008-03-09 02:20:11 +000010560fi
drhf922ca42015-05-14 15:39:18 +000010561rm -f core conftest.err conftest.$ac_objext \
10562 conftest$ac_exeext
drh13c808a2016-01-13 21:23:48 +000010563 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drh8b727472009-01-19 18:18:40 +000010564 break
drh866108f2008-05-13 00:57:21 +000010565fi
drh8b727472009-01-19 18:18:40 +000010566done
drh13c808a2016-01-13 21:23:48 +000010567if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drhf922ca42015-05-14 15:39:18 +000010568
drh8b727472009-01-19 18:18:40 +000010569else
drh13c808a2016-01-13 21:23:48 +000010570 ac_cv_search_pthread_mutexattr_init=no
drh8b727472009-01-19 18:18:40 +000010571fi
10572rm conftest.$ac_ext
mlcreechc658b0f2008-03-09 02:20:11 +000010573LIBS=$ac_func_search_save_LIBS
10574fi
drh13c808a2016-01-13 21:23:48 +000010575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
10576$as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
10577ac_res=$ac_cv_search_pthread_mutexattr_init
drhf922ca42015-05-14 15:39:18 +000010578if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000010579 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000010580
dougcurrie65623c72004-09-20 14:57:23 +000010581fi
10582
mlcreechc658b0f2008-03-09 02:20:11 +000010583fi
dougcurrie65623c72004-09-20 14:57:23 +000010584
xdong28f79f72003-09-23 00:35:21 +000010585##########
10586# Do we want to support release
10587#
drh8b727472009-01-19 18:18:40 +000010588# Check whether --enable-releasemode was given.
drhf922ca42015-05-14 15:39:18 +000010589if test "${enable_releasemode+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010590 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000010591else
10592 enable_releasemode=no
drh8b727472009-01-19 18:18:40 +000010593fi
10594
drhf922ca42015-05-14 15:39:18 +000010595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support shared library linked as release mode or not" >&5
drh8b727472009-01-19 18:18:40 +000010596$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
xdong28f79f72003-09-23 00:35:21 +000010597if test "$enable_releasemode" = "no"; then
10598 ALLOWRELEASE=""
drhf922ca42015-05-14 15:39:18 +000010599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010600$as_echo "no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010601else
drh0b47d342007-11-27 14:50:06 +000010602 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
drhf922ca42015-05-14 15:39:18 +000010603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010604$as_echo "yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010605fi
paulb0208cc2003-04-13 18:26:49 +000010606
a.rottmann964dbb12004-02-26 19:47:42 +000010607
paulb0208cc2003-04-13 18:26:49 +000010608##########
10609# Do we want temporary databases in memory
10610#
drh8b727472009-01-19 18:18:40 +000010611# Check whether --enable-tempstore was given.
drhf922ca42015-05-14 15:39:18 +000010612if test "${enable_tempstore+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010613 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000010614else
drh54414bb2005-10-10 00:05:50 +000010615 enable_tempstore=no
drh8b727472009-01-19 18:18:40 +000010616fi
10617
drhf922ca42015-05-14 15:39:18 +000010618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use an in-ram database for temporary tables" >&5
drh8b727472009-01-19 18:18:40 +000010619$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010620case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000010621 never )
paul2dc96f92003-04-20 11:46:34 +000010622 TEMP_STORE=0
drhf922ca42015-05-14 15:39:18 +000010623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
drh8b727472009-01-19 18:18:40 +000010624$as_echo "never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010625 ;;
10626 no )
paul2dc96f92003-04-20 11:46:34 +000010627 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010629$as_echo "no" >&6; }
10630 ;;
10631 yes )
10632 TEMP_STORE=2
drhf922ca42015-05-14 15:39:18 +000010633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010634$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010635 ;;
10636 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000010637 TEMP_STORE=3
drhf922ca42015-05-14 15:39:18 +000010638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
drh8b727472009-01-19 18:18:40 +000010639$as_echo "always" >&6; }
drh54414bb2005-10-10 00:05:50 +000010640 ;;
paulb0208cc2003-04-13 18:26:49 +000010641 * )
drh54414bb2005-10-10 00:05:50 +000010642 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010644$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010645 ;;
10646esac
10647
10648
10649
drh75897232000-05-29 14:26:00 +000010650###########
10651# Lots of things are different if we are compiling for Windows using
10652# the CYGWIN environment. So check for that special case and handle
10653# things accordingly.
10654#
drhf922ca42015-05-14 15:39:18 +000010655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
drh8b727472009-01-19 18:18:40 +000010656$as_echo_n "checking if executables have the .exe suffix... " >&6; }
drh75897232000-05-29 14:26:00 +000010657if test "$config_BUILD_EXEEXT" = ".exe"; then
10658 CYGWIN=yes
drhf922ca42015-05-14 15:39:18 +000010659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010660$as_echo "yes" >&6; }
drh75897232000-05-29 14:26:00 +000010661else
drhf922ca42015-05-14 15:39:18 +000010662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
drh8b727472009-01-19 18:18:40 +000010663$as_echo "unknown" >&6; }
drh75897232000-05-29 14:26:00 +000010664fi
10665if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000010666
10667case $host_os in
drh71eb93e2001-09-28 01:34:43 +000010668 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000010669 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000010670esac
drh75897232000-05-29 14:26:00 +000010671
drh75897232000-05-29 14:26:00 +000010672fi
10673if test "$CYGWIN" = "yes"; then
10674 BUILD_EXEEXT=.exe
10675else
dougcurrie6194a5f2003-12-19 20:09:51 +000010676 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000010677fi
vapier7f19c022007-02-17 14:46:31 +000010678if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000010679 TARGET_EXEEXT=$BUILD_EXEEXT
10680else
10681 TARGET_EXEEXT=$config_TARGET_EXEEXT
10682fi
10683if test "$TARGET_EXEEXT" = ".exe"; then
mistachkinfe27b082013-08-28 18:06:26 +000010684 SQLITE_OS_UNIX=0
10685 SQLITE_OS_WIN=1
10686 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh75897232000-05-29 14:26:00 +000010687else
danielk197729bafea2008-06-26 10:41:19 +000010688 SQLITE_OS_UNIX=1
10689 SQLITE_OS_WIN=0
danielk197729bafea2008-06-26 10:41:19 +000010690 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000010691fi
drh75897232000-05-29 14:26:00 +000010692
a.rottmann84e63352003-03-24 09:42:16 +000010693
10694
10695
10696
10697
drh75897232000-05-29 14:26:00 +000010698##########
drh7b5717e2004-11-25 13:50:01 +000010699# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000010700#
drh7b5717e2004-11-25 13:50:01 +000010701# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10702# macros in the in the tcl.m4 file of the standard TCL distribution.
10703# Those macros could not be used directly since we have to make some
10704# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000010705#
drh8b727472009-01-19 18:18:40 +000010706# Check whether --enable-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010707if test "${enable_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010708 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000010709else
drh7b5717e2004-11-25 13:50:01 +000010710 use_tcl=yes
drh8b727472009-01-19 18:18:40 +000010711fi
10712
drh7b5717e2004-11-25 13:50:01 +000010713if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000010714
drh8b727472009-01-19 18:18:40 +000010715# Check whether --with-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010716if test "${with_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010717 withval=$with_tcl; with_tclconfig=${withval}
10718fi
10719
drhf922ca42015-05-14 15:39:18 +000010720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
drh8b727472009-01-19 18:18:40 +000010721$as_echo_n "checking for Tcl configuration... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010722 if ${ac_cv_c_tclconfig+:} false; then :
drh8b727472009-01-19 18:18:40 +000010723 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000010724else
a.rottmann84e63352003-03-24 09:42:16 +000010725
drh7b5717e2004-11-25 13:50:01 +000010726 # First check to see if --with-tcl was specified.
10727 if test x"${with_tclconfig}" != x ; then
10728 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10729 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10730 else
drhf922ca42015-05-14 15:39:18 +000010731 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
drh7b5717e2004-11-25 13:50:01 +000010732 fi
10733 fi
vapier6acb2cf2009-01-28 04:46:28 +000010734
10735 # Start autosearch by asking tclsh
drhe74f4652012-08-15 16:06:54 +000010736 if test x"${ac_cv_c_tclconfig}" = x ; then
10737 if test x"$cross_compiling" = xno; then
10738 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10739 do
10740 if test -f "$i/tclConfig.sh" ; then
10741 ac_cv_c_tclconfig="$i"
10742 break
10743 fi
10744 done
10745 fi
vapier6acb2cf2009-01-28 04:46:28 +000010746 fi
10747
drhf960a642015-05-30 22:57:49 +000010748 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
10749 # So try again after applying corrections.
10750 if test x"${ac_cv_c_tclconfig}" = x ; then
10751 if test x"$cross_compiling" = xno; then
10752 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
10753 do
10754 if test -f "$i/tclConfig.sh" ; then
10755 ac_cv_c_tclconfig="$i"
10756 break
10757 fi
10758 done
10759 fi
10760 fi
10761
drh68314742016-05-23 00:10:58 +000010762 # Recent versions of Xcode on Macs hid the tclConfig.sh file
10763 # in a strange place.
10764 if test x"${ac_cv_c_tclconfig}" = x ; then
10765 if test x"$cross_compiling" = xno; then
10766 for i in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.sdk/usr/lib
10767 do
10768 if test -f "$i/tclConfig.sh" ; then
10769 ac_cv_c_tclconfig="$i"
10770 break
10771 fi
10772 done
10773 fi
10774 fi
10775
drh7b5717e2004-11-25 13:50:01 +000010776 # then check for a private Tcl installation
10777 if test x"${ac_cv_c_tclconfig}" = x ; then
10778 for i in \
10779 ../tcl \
10780 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10781 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10782 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10783 ../../tcl \
10784 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10785 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10786 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10787 ../../../tcl \
10788 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10789 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10790 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10791 do
10792 if test -f "$i/unix/tclConfig.sh" ; then
10793 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10794 break
10795 fi
10796 done
10797 fi
10798
10799 # check in a few common install locations
10800 if test x"${ac_cv_c_tclconfig}" = x ; then
10801 for i in \
10802 `ls -d ${libdir} 2>/dev/null` \
10803 `ls -d /usr/local/lib 2>/dev/null` \
10804 `ls -d /usr/contrib/lib 2>/dev/null` \
10805 `ls -d /usr/lib 2>/dev/null`
10806 do
10807 if test -f "$i/tclConfig.sh" ; then
10808 ac_cv_c_tclconfig=`(cd $i; pwd)`
10809 break
10810 fi
10811 done
10812 fi
10813
10814 # check in a few other private locations
10815 if test x"${ac_cv_c_tclconfig}" = x ; then
10816 for i in \
10817 ${srcdir}/../tcl \
10818 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10819 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10820 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10821 do
10822 if test -f "$i/unix/tclConfig.sh" ; then
10823 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10824 break
10825 fi
10826 done
10827 fi
10828
drh75897232000-05-29 14:26:00 +000010829fi
10830
drh7b5717e2004-11-25 13:50:01 +000010831
10832 if test x"${ac_cv_c_tclconfig}" = x ; then
10833 use_tcl=no
drhf922ca42015-05-14 15:39:18 +000010834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
drh8b727472009-01-19 18:18:40 +000010835$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
drhf922ca42015-05-14 15:39:18 +000010836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
drh8b727472009-01-19 18:18:40 +000010837$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
drhf922ca42015-05-14 15:39:18 +000010838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
drh8b727472009-01-19 18:18:40 +000010839$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000010840 else
10841 TCL_BIN_DIR=${ac_cv_c_tclconfig}
drhf922ca42015-05-14 15:39:18 +000010842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010843$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010844
drhf922ca42015-05-14 15:39:18 +000010845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010846$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000010847 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
drhf922ca42015-05-14 15:39:18 +000010848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
drh8b727472009-01-19 18:18:40 +000010849$as_echo "loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010850 . $TCL_BIN_DIR/tclConfig.sh
10851 else
drhf922ca42015-05-14 15:39:18 +000010852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
drh8b727472009-01-19 18:18:40 +000010853$as_echo "file not found" >&6; }
drh75897232000-05-29 14:26:00 +000010854 fi
drh7b5717e2004-11-25 13:50:01 +000010855
10856 #
10857 # If the TCL_BIN_DIR is the build directory (not the install directory),
10858 # then set the common variable name to the value of the build variables.
10859 # For example, the variable TCL_LIB_SPEC will be set to the value
10860 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10861 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10862 # installed and uninstalled version of Tcl.
10863 #
10864
mlcreechab1c47b2008-03-09 02:51:10 +000010865 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000010866 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10867 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10868 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10869 fi
10870
10871 #
10872 # eval is required to do the TCL_DBGX substitution
10873 #
10874
10875 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10876 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10877 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10878
10879 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10880 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10881 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
drhd881ce82015-03-31 17:01:52 +000010895
drh7b5717e2004-11-25 13:50:01 +000010896 fi
drh75897232000-05-29 14:26:00 +000010897fi
drh7b5717e2004-11-25 13:50:01 +000010898if test "${use_tcl}" = "no" ; then
10899 HAVE_TCL=""
10900else
10901 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000010902fi
drh75897232000-05-29 14:26:00 +000010903
a.rottmann84e63352003-03-24 09:42:16 +000010904
drh75897232000-05-29 14:26:00 +000010905##########
10906# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000010907# that use "readline()" library.
10908#
vapier7f19c022007-02-17 14:46:31 +000010909TARGET_READLINE_LIBS=""
10910TARGET_READLINE_INC=""
10911TARGET_HAVE_READLINE=0
drhe44b8352015-10-30 14:25:57 +000010912TARGET_HAVE_EDITLINE=0
10913# Check whether --enable-editline was given.
10914if test "${enable_editline+set}" = set; then :
10915 enableval=$enable_editline; with_editline=$enableval
10916else
10917 with_editline=auto
10918fi
10919
drh8b727472009-01-19 18:18:40 +000010920# Check whether --enable-readline was given.
drhf922ca42015-05-14 15:39:18 +000010921if test "${enable_readline+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010922 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000010923else
vapier7f19c022007-02-17 14:46:31 +000010924 with_readline=auto
drh8b727472009-01-19 18:18:40 +000010925fi
10926
vapier7f19c022007-02-17 14:46:31 +000010927
drhe44b8352015-10-30 14:25:57 +000010928if test x"$with_editline" != xno; then
10929 sLIBS=$LIBS
10930 LIBS=""
10931 TARGET_HAVE_EDITLINE=1
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
10933$as_echo_n "checking for library containing readline... " >&6; }
10934if ${ac_cv_search_readline+:} false; then :
10935 $as_echo_n "(cached) " >&6
10936else
10937 ac_func_search_save_LIBS=$LIBS
10938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10939/* end confdefs.h. */
10940
10941/* Override any GCC internal prototype to avoid an error.
10942 Use char because int might match the return type of a GCC
10943 builtin and then its argument prototype would still apply. */
10944#ifdef __cplusplus
10945extern "C"
10946#endif
10947char readline ();
10948int
10949main ()
10950{
10951return readline ();
10952 ;
10953 return 0;
10954}
10955_ACEOF
10956for ac_lib in '' edit; do
10957 if test -z "$ac_lib"; then
10958 ac_res="none required"
10959 else
10960 ac_res=-l$ac_lib
10961 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10962 fi
10963 if ac_fn_c_try_link "$LINENO"; then :
10964 ac_cv_search_readline=$ac_res
10965fi
10966rm -f core conftest.err conftest.$ac_objext \
10967 conftest$ac_exeext
10968 if ${ac_cv_search_readline+:} false; then :
10969 break
10970fi
10971done
10972if ${ac_cv_search_readline+:} false; then :
10973
10974else
10975 ac_cv_search_readline=no
10976fi
10977rm conftest.$ac_ext
10978LIBS=$ac_func_search_save_LIBS
10979fi
10980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
10981$as_echo "$ac_cv_search_readline" >&6; }
10982ac_res=$ac_cv_search_readline
10983if test "$ac_res" != no; then :
10984 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10985 with_readline=no
10986else
10987 TARGET_HAVE_EDITLINE=0
10988fi
10989
10990 TARGET_READLINE_LIBS=$LIBS
10991 LIBS=$sLIBS
10992fi
vapier7f19c022007-02-17 14:46:31 +000010993if test x"$with_readline" != xno; then
10994 found="yes"
10995
10996
drh8b727472009-01-19 18:18:40 +000010997# Check whether --with-readline-lib was given.
drhf922ca42015-05-14 15:39:18 +000010998if test "${with_readline_lib+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010999 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000011000else
11001 with_readline_lib="auto"
drh8b727472009-01-19 18:18:40 +000011002fi
11003
vapier7f19c022007-02-17 14:46:31 +000011004 if test "x$with_readline_lib" = xauto; then
11005 save_LIBS="$LIBS"
11006 LIBS=""
drhf922ca42015-05-14 15:39:18 +000011007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
drh8b727472009-01-19 18:18:40 +000011008$as_echo_n "checking for library containing tgetent... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011009if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000011010 $as_echo_n "(cached) " >&6
drh75897232000-05-29 14:26:00 +000011011else
drh71eb93e2001-09-28 01:34:43 +000011012 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011014/* end confdefs.h. */
11015
drh8b727472009-01-19 18:18:40 +000011016/* Override any GCC internal prototype to avoid an error.
11017 Use char because int might match the return type of a GCC
11018 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000011019#ifdef __cplusplus
11020extern "C"
11021#endif
paul38372372003-04-22 08:04:49 +000011022char tgetent ();
11023int
11024main ()
11025{
drh8b727472009-01-19 18:18:40 +000011026return tgetent ();
paul38372372003-04-22 08:04:49 +000011027 ;
11028 return 0;
11029}
11030_ACEOF
drh8b727472009-01-19 18:18:40 +000011031for ac_lib in '' readline ncurses curses termcap; do
11032 if test -z "$ac_lib"; then
11033 ac_res="none required"
11034 else
11035 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011036 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011037 fi
drhf922ca42015-05-14 15:39:18 +000011038 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011039 ac_cv_search_tgetent=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011040fi
drhf922ca42015-05-14 15:39:18 +000011041rm -f core conftest.err conftest.$ac_objext \
11042 conftest$ac_exeext
11043 if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000011044 break
drh866108f2008-05-13 00:57:21 +000011045fi
drh8b727472009-01-19 18:18:40 +000011046done
drhf922ca42015-05-14 15:39:18 +000011047if ${ac_cv_search_tgetent+:} false; then :
11048
drh8b727472009-01-19 18:18:40 +000011049else
11050 ac_cv_search_tgetent=no
11051fi
11052rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011053LIBS=$ac_func_search_save_LIBS
11054fi
drhf922ca42015-05-14 15:39:18 +000011055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
drh8b727472009-01-19 18:18:40 +000011056$as_echo "$ac_cv_search_tgetent" >&6; }
11057ac_res=$ac_cv_search_tgetent
drhf922ca42015-05-14 15:39:18 +000011058if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011059 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000011060 term_LIBS="$LIBS"
11061else
11062 term_LIBS=""
paul38372372003-04-22 08:04:49 +000011063fi
11064
drhf922ca42015-05-14 15:39:18 +000011065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
drh8b727472009-01-19 18:18:40 +000011066$as_echo_n "checking for readline in -lreadline... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011067if ${ac_cv_lib_readline_readline+:} false; then :
drh8b727472009-01-19 18:18:40 +000011068 $as_echo_n "(cached) " >&6
paul38372372003-04-22 08:04:49 +000011069else
11070 ac_check_lib_save_LIBS=$LIBS
11071LIBS="-lreadline $LIBS"
drhf922ca42015-05-14 15:39:18 +000011072cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000011073/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011074
drh8b727472009-01-19 18:18:40 +000011075/* Override any GCC internal prototype to avoid an error.
11076 Use char because int might match the return type of a GCC
11077 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000011078#ifdef __cplusplus
11079extern "C"
11080#endif
drh71eb93e2001-09-28 01:34:43 +000011081char readline ();
11082int
11083main ()
11084{
drh8b727472009-01-19 18:18:40 +000011085return readline ();
drh71eb93e2001-09-28 01:34:43 +000011086 ;
11087 return 0;
11088}
11089_ACEOF
drhf922ca42015-05-14 15:39:18 +000011090if ac_fn_c_try_link "$LINENO"; then :
paul38372372003-04-22 08:04:49 +000011091 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000011092else
drhf922ca42015-05-14 15:39:18 +000011093 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000011094fi
drhf922ca42015-05-14 15:39:18 +000011095rm -f core conftest.err conftest.$ac_objext \
11096 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011097LIBS=$ac_check_lib_save_LIBS
11098fi
drhf922ca42015-05-14 15:39:18 +000011099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
drh8b727472009-01-19 18:18:40 +000011100$as_echo "$ac_cv_lib_readline_readline" >&6; }
drhf922ca42015-05-14 15:39:18 +000011101if test "x$ac_cv_lib_readline_readline" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011102 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000011103else
vapier7f19c022007-02-17 14:46:31 +000011104 found="no"
11105fi
drhf1878b42006-01-23 18:06:52 +000011106
vapier7f19c022007-02-17 14:46:31 +000011107 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11108 LIBS="$save_LIBS"
11109 else
11110 TARGET_READLINE_LIBS="$with_readline_lib"
11111 fi
11112
11113
drh8b727472009-01-19 18:18:40 +000011114# Check whether --with-readline-inc was given.
drhf922ca42015-05-14 15:39:18 +000011115if test "${with_readline_inc+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011116 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000011117else
vapier7f19c022007-02-17 14:46:31 +000011118 with_readline_inc="auto"
drh8b727472009-01-19 18:18:40 +000011119fi
11120
vapier7f19c022007-02-17 14:46:31 +000011121 if test "x$with_readline_inc" = xauto; then
drhf922ca42015-05-14 15:39:18 +000011122 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
11123if test "x$ac_cv_header_readline_h" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011124 found="yes"
11125else
drh75897232000-05-29 14:26:00 +000011126
vapier7f19c022007-02-17 14:46:31 +000011127 found="no"
11128 if test "$cross_compiling" != yes; then
11129 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11130 for subdir in include include/readline; do
drh8b727472009-01-19 18:18:40 +000011131 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
drhf922ca42015-05-14 15:39:18 +000011132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
drh8b727472009-01-19 18:18:40 +000011133$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011134if eval \${$as_ac_File+:} false; then :
drh8b727472009-01-19 18:18:40 +000011135 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011136else
11137 test "$cross_compiling" = yes &&
drhf922ca42015-05-14 15:39:18 +000011138 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
vapier7f19c022007-02-17 14:46:31 +000011139if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000011140 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000011141else
drh71eb93e2001-09-28 01:34:43 +000011142 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000011143fi
11144fi
drhf922ca42015-05-14 15:39:18 +000011145eval ac_res=\$$as_ac_File
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
drh8b727472009-01-19 18:18:40 +000011147$as_echo "$ac_res" >&6; }
drhf922ca42015-05-14 15:39:18 +000011148if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
drh75897232000-05-29 14:26:00 +000011149 found=yes
drh75897232000-05-29 14:26:00 +000011150fi
11151
vapier7f19c022007-02-17 14:46:31 +000011152 if test "$found" = "yes"; then
11153 TARGET_READLINE_INC="-I$dir/$subdir"
11154 break
11155 fi
11156 done
11157 test "$found" = "yes" && break
11158 done
11159 fi
11160
11161fi
11162
11163
11164 else
11165 TARGET_READLINE_INC="$with_readline_inc"
11166 fi
11167
11168 if test x"$found" = xno; then
11169 TARGET_READLINE_LIBS=""
11170 TARGET_READLINE_INC=""
11171 TARGET_HAVE_READLINE=0
11172 else
11173 TARGET_HAVE_READLINE=1
11174 fi
11175fi
11176
11177
11178
11179
11180
drhe44b8352015-10-30 14:25:57 +000011181
vapier7f19c022007-02-17 14:46:31 +000011182##########
11183# Figure out what C libraries are required to compile programs
11184# that use "fdatasync()" function.
11185#
drhf922ca42015-05-14 15:39:18 +000011186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011187$as_echo_n "checking for library containing fdatasync... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011188if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011189 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011190else
vapier7f19c022007-02-17 14:46:31 +000011191 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011193/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011194
drh8b727472009-01-19 18:18:40 +000011195/* Override any GCC internal prototype to avoid an error.
11196 Use char because int might match the return type of a GCC
11197 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000011198#ifdef __cplusplus
11199extern "C"
11200#endif
11201char fdatasync ();
11202int
11203main ()
11204{
drh8b727472009-01-19 18:18:40 +000011205return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000011206 ;
11207 return 0;
11208}
11209_ACEOF
drh8b727472009-01-19 18:18:40 +000011210for ac_lib in '' rt; do
11211 if test -z "$ac_lib"; then
11212 ac_res="none required"
11213 else
11214 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011216 fi
drhf922ca42015-05-14 15:39:18 +000011217 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011218 ac_cv_search_fdatasync=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011219fi
drhf922ca42015-05-14 15:39:18 +000011220rm -f core conftest.err conftest.$ac_objext \
11221 conftest$ac_exeext
11222 if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011223 break
drh866108f2008-05-13 00:57:21 +000011224fi
drh8b727472009-01-19 18:18:40 +000011225done
drhf922ca42015-05-14 15:39:18 +000011226if ${ac_cv_search_fdatasync+:} false; then :
11227
drh8b727472009-01-19 18:18:40 +000011228else
11229 ac_cv_search_fdatasync=no
11230fi
11231rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011232LIBS=$ac_func_search_save_LIBS
11233fi
drhf922ca42015-05-14 15:39:18 +000011234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011235$as_echo "$ac_cv_search_fdatasync" >&6; }
11236ac_res=$ac_cv_search_fdatasync
drhf922ca42015-05-14 15:39:18 +000011237if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011238 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000011239
vapier7f19c022007-02-17 14:46:31 +000011240fi
11241
a.rottmann84e63352003-03-24 09:42:16 +000011242
drh75897232000-05-29 14:26:00 +000011243#########
tpoindex9d9f76c2005-01-03 21:28:56 +000011244# check for debug enabled
drh8b727472009-01-19 18:18:40 +000011245# Check whether --enable-debug was given.
drhf922ca42015-05-14 15:39:18 +000011246if test "${enable_debug+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011247 enableval=$enable_debug;
drh8b727472009-01-19 18:18:40 +000011248fi
11249
drh8fa622d2018-06-11 19:47:14 +000011250if test "${enable_debug}" = "yes" ; then
drh32d0eba2017-04-05 10:54:14 +000011251 TARGET_DEBUG="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0"
tpoindex9d9f76c2005-01-03 21:28:56 +000011252else
11253 TARGET_DEBUG="-DNDEBUG"
11254fi
11255
11256
11257#########
mlcreech94984912008-03-04 19:03:08 +000011258# See whether we should use the amalgamation to build
drh8b727472009-01-19 18:18:40 +000011259# Check whether --enable-amalgamation was given.
drhf922ca42015-05-14 15:39:18 +000011260if test "${enable_amalgamation+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011261 enableval=$enable_amalgamation;
drh8b727472009-01-19 18:18:40 +000011262fi
11263
danb13d5c22020-07-07 19:24:34 +000011264if test "${enable_amalgamation}" = "no" ; then
mlcreech94984912008-03-04 19:03:08 +000011265 USE_AMALGAMATION=0
11266fi
11267
11268
11269#########
drh56c93112017-11-24 16:55:48 +000011270# Look for zlib. Only needed by extensions and by the sqlite3.exe shell
11271for ac_header in zlib.h
11272do :
11273 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
11274if test "x$ac_cv_header_zlib_h" = xyes; then :
11275 cat >>confdefs.h <<_ACEOF
11276#define HAVE_ZLIB_H 1
11277_ACEOF
11278
11279fi
11280
11281done
11282
11283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
11284$as_echo_n "checking for library containing deflate... " >&6; }
11285if ${ac_cv_search_deflate+:} false; then :
11286 $as_echo_n "(cached) " >&6
11287else
11288 ac_func_search_save_LIBS=$LIBS
11289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11290/* end confdefs.h. */
11291
11292/* Override any GCC internal prototype to avoid an error.
11293 Use char because int might match the return type of a GCC
11294 builtin and then its argument prototype would still apply. */
11295#ifdef __cplusplus
11296extern "C"
11297#endif
11298char deflate ();
11299int
11300main ()
11301{
11302return deflate ();
11303 ;
11304 return 0;
11305}
11306_ACEOF
11307for ac_lib in '' z; do
11308 if test -z "$ac_lib"; then
11309 ac_res="none required"
11310 else
11311 ac_res=-l$ac_lib
11312 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11313 fi
11314 if ac_fn_c_try_link "$LINENO"; then :
11315 ac_cv_search_deflate=$ac_res
11316fi
11317rm -f core conftest.err conftest.$ac_objext \
11318 conftest$ac_exeext
11319 if ${ac_cv_search_deflate+:} false; then :
11320 break
11321fi
11322done
11323if ${ac_cv_search_deflate+:} false; then :
11324
11325else
11326 ac_cv_search_deflate=no
11327fi
11328rm conftest.$ac_ext
11329LIBS=$ac_func_search_save_LIBS
11330fi
11331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
11332$as_echo "$ac_cv_search_deflate" >&6; }
11333ac_res=$ac_cv_search_deflate
11334if test "$ac_res" != no; then :
11335 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11336 HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1"
11337else
11338 HAVE_ZLIB=""
11339fi
11340
11341
11342
11343#########
mlcreecha4edab02008-03-06 04:14:17 +000011344# See whether we should allow loadable extensions
drh8b727472009-01-19 18:18:40 +000011345# Check whether --enable-load-extension was given.
drhf922ca42015-05-14 15:39:18 +000011346if test "${enable_load_extension+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011347 enableval=$enable_load_extension;
mlcreecha4edab02008-03-06 04:14:17 +000011348else
drh8fa622d2018-06-11 19:47:14 +000011349 enable_load_extension=yes
drh8b727472009-01-19 18:18:40 +000011350fi
11351
drh8fa622d2018-06-11 19:47:14 +000011352if test "${enable_load_extension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000011353 OPT_FEATURE_FLAGS=""
drhf922ca42015-05-14 15:39:18 +000011354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011355$as_echo_n "checking for library containing dlopen... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011356if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011357 $as_echo_n "(cached) " >&6
11358else
11359 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011360cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drhdbe4b882011-06-20 18:00:17 +000011361/* end confdefs.h. */
11362
11363/* Override any GCC internal prototype to avoid an error.
11364 Use char because int might match the return type of a GCC
11365 builtin and then its argument prototype would still apply. */
11366#ifdef __cplusplus
11367extern "C"
11368#endif
11369char dlopen ();
11370int
11371main ()
11372{
11373return dlopen ();
11374 ;
11375 return 0;
11376}
11377_ACEOF
11378for ac_lib in '' dl; do
11379 if test -z "$ac_lib"; then
11380 ac_res="none required"
11381 else
11382 ac_res=-l$ac_lib
11383 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11384 fi
drhf922ca42015-05-14 15:39:18 +000011385 if ac_fn_c_try_link "$LINENO"; then :
drhdbe4b882011-06-20 18:00:17 +000011386 ac_cv_search_dlopen=$ac_res
drhdbe4b882011-06-20 18:00:17 +000011387fi
drhf922ca42015-05-14 15:39:18 +000011388rm -f core conftest.err conftest.$ac_objext \
11389 conftest$ac_exeext
11390 if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011391 break
11392fi
11393done
drhf922ca42015-05-14 15:39:18 +000011394if ${ac_cv_search_dlopen+:} false; then :
11395
drhdbe4b882011-06-20 18:00:17 +000011396else
11397 ac_cv_search_dlopen=no
11398fi
11399rm conftest.$ac_ext
11400LIBS=$ac_func_search_save_LIBS
11401fi
drhf922ca42015-05-14 15:39:18 +000011402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011403$as_echo "$ac_cv_search_dlopen" >&6; }
11404ac_res=$ac_cv_search_dlopen
drhf922ca42015-05-14 15:39:18 +000011405if test "$ac_res" != no; then :
drhdbe4b882011-06-20 18:00:17 +000011406 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11407
11408fi
11409
mlcreecha4edab02008-03-06 04:14:17 +000011410else
shanefbedede2008-07-22 05:05:01 +000011411 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000011412fi
11413
drhc530b9c2016-07-25 11:27:22 +000011414##########
11415# Do we want to support memsys3 and/or memsys5
11416#
drhc530b9c2016-07-25 11:27:22 +000011417# Check whether --enable-memsys5 was given.
11418if test "${enable_memsys5+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011419 enableval=$enable_memsys5;
drhc530b9c2016-07-25 11:27:22 +000011420fi
11421
11422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5
11423$as_echo_n "checking whether to support MEMSYS5... " >&6; }
drh26197d12016-07-25 11:32:09 +000011424if test "${enable_memsys5}" = "yes"; then
drh8c9ed052017-05-29 17:43:06 +000011425 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5"
drhc530b9c2016-07-25 11:27:22 +000011426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11427$as_echo "yes" >&6; }
11428else
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11430$as_echo "no" >&6; }
11431fi
drh5d513ba2016-07-25 11:57:21 +000011432# Check whether --enable-memsys3 was given.
11433if test "${enable_memsys3+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011434 enableval=$enable_memsys3;
drh5d513ba2016-07-25 11:57:21 +000011435fi
11436
11437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5
11438$as_echo_n "checking whether to support MEMSYS3... " >&6; }
11439if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then
drh8c9ed052017-05-29 17:43:06 +000011440 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3"
drh5d513ba2016-07-25 11:57:21 +000011441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11442$as_echo "yes" >&6; }
11443else
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11445$as_echo "no" >&6; }
11446fi
drhc530b9c2016-07-25 11:27:22 +000011447
drh29368ea2019-12-28 13:17:11 +000011448########
11449# The --enable-extensions argument is short-hand to enable
11450# multiple extensions.
11451# Check whether --enable-all was given.
11452if test "${enable_all+set}" = set; then :
11453 enableval=$enable_all;
11454fi
11455
11456
mlcreechaac7b932008-04-01 02:45:22 +000011457#########
drhce1d9f52015-10-09 12:48:33 +000011458# See whether we should enable Full Text Search extensions
11459# Check whether --enable-fts3 was given.
11460if test "${enable_fts3+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011461 enableval=$enable_fts3;
drhce1d9f52015-10-09 12:48:33 +000011462fi
11463
11464if test "${enable_fts3}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011465 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3"
drhce1d9f52015-10-09 12:48:33 +000011466fi
11467# Check whether --enable-fts4 was given.
11468if test "${enable_fts4+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011469 enableval=$enable_fts4;
drhce1d9f52015-10-09 12:48:33 +000011470fi
11471
drh29368ea2019-12-28 13:17:11 +000011472if test "${enable_fts4}" = "yes" -o "${enable_all}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011473 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4"
drhce1d9f52015-10-09 12:48:33 +000011474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11475$as_echo_n "checking for library containing log... " >&6; }
11476if ${ac_cv_search_log+:} false; then :
11477 $as_echo_n "(cached) " >&6
11478else
11479 ac_func_search_save_LIBS=$LIBS
11480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481/* end confdefs.h. */
11482
11483/* Override any GCC internal prototype to avoid an error.
11484 Use char because int might match the return type of a GCC
11485 builtin and then its argument prototype would still apply. */
11486#ifdef __cplusplus
11487extern "C"
11488#endif
11489char log ();
11490int
11491main ()
11492{
11493return log ();
11494 ;
11495 return 0;
11496}
11497_ACEOF
11498for ac_lib in '' m; do
11499 if test -z "$ac_lib"; then
11500 ac_res="none required"
11501 else
11502 ac_res=-l$ac_lib
11503 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11504 fi
11505 if ac_fn_c_try_link "$LINENO"; then :
11506 ac_cv_search_log=$ac_res
11507fi
11508rm -f core conftest.err conftest.$ac_objext \
11509 conftest$ac_exeext
11510 if ${ac_cv_search_log+:} false; then :
11511 break
11512fi
11513done
11514if ${ac_cv_search_log+:} false; then :
11515
11516else
11517 ac_cv_search_log=no
11518fi
11519rm conftest.$ac_ext
11520LIBS=$ac_func_search_save_LIBS
11521fi
11522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11523$as_echo "$ac_cv_search_log" >&6; }
11524ac_res=$ac_cv_search_log
11525if test "$ac_res" != no; then :
11526 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11527
11528fi
11529
11530fi
11531# Check whether --enable-fts5 was given.
11532if test "${enable_fts5+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011533 enableval=$enable_fts5;
drhce1d9f52015-10-09 12:48:33 +000011534fi
11535
drh29368ea2019-12-28 13:17:11 +000011536if test "${enable_fts5}" = "yes" -o "${enable_all}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011537 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5"
drhce1d9f52015-10-09 12:48:33 +000011538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11539$as_echo_n "checking for library containing log... " >&6; }
11540if ${ac_cv_search_log+:} false; then :
11541 $as_echo_n "(cached) " >&6
11542else
11543 ac_func_search_save_LIBS=$LIBS
11544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11545/* end confdefs.h. */
11546
11547/* Override any GCC internal prototype to avoid an error.
11548 Use char because int might match the return type of a GCC
11549 builtin and then its argument prototype would still apply. */
11550#ifdef __cplusplus
11551extern "C"
11552#endif
11553char log ();
11554int
11555main ()
11556{
11557return log ();
11558 ;
11559 return 0;
11560}
11561_ACEOF
11562for ac_lib in '' m; do
11563 if test -z "$ac_lib"; then
11564 ac_res="none required"
11565 else
11566 ac_res=-l$ac_lib
11567 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11568 fi
11569 if ac_fn_c_try_link "$LINENO"; then :
11570 ac_cv_search_log=$ac_res
11571fi
11572rm -f core conftest.err conftest.$ac_objext \
11573 conftest$ac_exeext
11574 if ${ac_cv_search_log+:} false; then :
11575 break
11576fi
11577done
11578if ${ac_cv_search_log+:} false; then :
11579
11580else
11581 ac_cv_search_log=no
11582fi
11583rm conftest.$ac_ext
11584LIBS=$ac_func_search_save_LIBS
11585fi
11586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11587$as_echo "$ac_cv_search_log" >&6; }
11588ac_res=$ac_cv_search_log
11589if test "$ac_res" != no; then :
11590 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11591
11592fi
11593
11594fi
11595
11596#########
11597# See whether we should enable JSON1
11598# Check whether --enable-json1 was given.
11599if test "${enable_json1+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011600 enableval=$enable_json1;
drhce1d9f52015-10-09 12:48:33 +000011601fi
11602
drh29368ea2019-12-28 13:17:11 +000011603if test "${enable_json1}" = "yes" -o "${enable_all}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011604 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_JSON1"
drhce1d9f52015-10-09 12:48:33 +000011605fi
11606
11607#########
drh83bebdd2017-08-28 17:00:12 +000011608# See whether we should enable the LIMIT clause on UPDATE and DELETE
11609# statements.
11610# Check whether --enable-update-limit was given.
11611if test "${enable_update_limit+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011612 enableval=$enable_update_limit;
drh83bebdd2017-08-28 17:00:12 +000011613fi
11614
drhb13c3a32020-06-15 14:38:57 +000011615if test "${enable_update_limit}" = "yes" ; then
drh83bebdd2017-08-28 17:00:12 +000011616 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT"
11617fi
11618
11619#########
drh748b8fd2018-05-25 19:22:47 +000011620# See whether we should enable GEOPOLY
11621# Check whether --enable-geopoly was given.
11622if test "${enable_geopoly+set}" = set; then :
11623 enableval=$enable_geopoly; enable_geopoly=yes
11624else
11625 enable_geopoly=no
11626fi
11627
drh29368ea2019-12-28 13:17:11 +000011628if test "${enable_geopoly}" = "yes" -o "${enable_all}" = "yes" ; then
drh748b8fd2018-05-25 19:22:47 +000011629 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_GEOPOLY"
11630 enable_rtree=yes
11631fi
11632
11633#########
drhce1d9f52015-10-09 12:48:33 +000011634# See whether we should enable RTREE
11635# Check whether --enable-rtree was given.
11636if test "${enable_rtree+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011637 enableval=$enable_rtree;
drhce1d9f52015-10-09 12:48:33 +000011638fi
11639
11640if test "${enable_rtree}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011641 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE"
drhce1d9f52015-10-09 12:48:33 +000011642fi
11643
11644#########
drh5e18d402016-05-03 13:14:18 +000011645# See whether we should enable the SESSION extension
11646# Check whether --enable-session was given.
11647if test "${enable_session+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011648 enableval=$enable_session;
drh5e18d402016-05-03 13:14:18 +000011649fi
11650
drh29368ea2019-12-28 13:17:11 +000011651if test "${enable_session}" = "yes" -o "${enable_all}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011652 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION"
11653 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK"
drh5e18d402016-05-03 13:14:18 +000011654fi
11655
11656#########
drh8c9ed052017-05-29 17:43:06 +000011657# attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter
shanefbedede2008-07-22 05:05:01 +000011658for option in $CFLAGS $CPPFLAGS
11659do
11660 case $option in
danielk197733a14782008-08-04 14:50:05 +000011661 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shaneb1cd7302008-10-22 18:27:31 +000011662 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011663 esac
11664done
11665
11666
danielk197733a14782008-08-04 14:50:05 +000011667
shaneb1cd7302008-10-22 18:27:31 +000011668# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011669ac_temp_CFLAGS=""
11670for option in $CFLAGS
11671do
11672 case $option in
11673 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011674 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011675 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011676 esac
11677done
11678CFLAGS=$ac_temp_CFLAGS
11679
11680
shaneb1cd7302008-10-22 18:27:31 +000011681# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011682ac_temp_CPPFLAGS=""
11683for option in $CPPFLAGS
11684do
11685 case $option in
11686 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011687 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011688 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011689 esac
11690done
11691CPPFLAGS=$ac_temp_CPPFLAGS
11692
danielk197733a14782008-08-04 14:50:05 +000011693
drh8b727472009-01-19 18:18:40 +000011694# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011695ac_temp_BUILD_CFLAGS=""
11696for option in $BUILD_CFLAGS
11697do
11698 case $option in
11699 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011700 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011701 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011702 esac
11703done
11704BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11705
11706
11707#########
11708# See whether we should use GCOV
drh8b727472009-01-19 18:18:40 +000011709# Check whether --enable-gcov was given.
drhf922ca42015-05-14 15:39:18 +000011710if test "${enable_gcov+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011711 enableval=$enable_gcov;
drh8b727472009-01-19 18:18:40 +000011712fi
11713
mlcreechaac7b932008-04-01 02:45:22 +000011714if test "${use_gcov}" = "yes" ; then
11715 USE_GCOV=1
11716else
11717 USE_GCOV=0
11718fi
11719
11720
danielk197733a14782008-08-04 14:50:05 +000011721
drh2dfbbca2000-07-28 14:32:48 +000011722#########
mlcreechb87057f2008-03-06 07:19:20 +000011723# Output the config header
drh8b727472009-01-19 18:18:40 +000011724ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000011725
11726
11727#########
drh75897232000-05-29 14:26:00 +000011728# Generate the output files.
11729#
mlcreechdf59c7c2008-03-06 07:51:15 +000011730
drh8b727472009-01-19 18:18:40 +000011731ac_config_files="$ac_config_files Makefile sqlite3.pc"
11732
drh71eb93e2001-09-28 01:34:43 +000011733cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000011734# This file is a shell script that caches the results of configure
11735# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000011736# scripts and configure runs, see configure's option --config-cache.
11737# It is not useful on other systems. If it contains results you don't
11738# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000011739#
drh71eb93e2001-09-28 01:34:43 +000011740# config.status only pays attention to the cache file if you give it
11741# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000011742#
a.rottmann84e63352003-03-24 09:42:16 +000011743# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000011744# loading this file, other *unset* `ac_cv_foo' will be assigned the
11745# following values.
11746
11747_ACEOF
11748
drh75897232000-05-29 14:26:00 +000011749# The following way of writing the cache mishandles newlines in values,
11750# but we know of no workaround that is simple, portable, and efficient.
drh8b727472009-01-19 18:18:40 +000011751# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000011752# Ultrix sh set writes to stderr and can't be redirected directly,
11753# and sets the high bit in the cache file unless we assign to the vars.
drh8b727472009-01-19 18:18:40 +000011754(
11755 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11756 eval ac_val=\$$ac_var
11757 case $ac_val in #(
11758 *${as_nl}*)
11759 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +000011760 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11761$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +000011762 esac
11763 case $ac_var in #(
11764 _ | IFS | as_nl) ;; #(
11765 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +000011766 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +000011767 esac ;;
11768 esac
11769 done
11770
drh71eb93e2001-09-28 01:34:43 +000011771 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +000011772 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11773 *${as_nl}ac_space=\ *)
drhf922ca42015-05-14 15:39:18 +000011774 # `set' does not quote correctly, so add quotes: double-quote
11775 # substitution turns \\\\ into \\, and sed turns \\ into \.
drh71eb93e2001-09-28 01:34:43 +000011776 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000011777 "s/'/'\\\\''/g;
11778 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh8b727472009-01-19 18:18:40 +000011779 ;; #(
drh71eb93e2001-09-28 01:34:43 +000011780 *)
11781 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh8b727472009-01-19 18:18:40 +000011782 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000011783 ;;
drh8b727472009-01-19 18:18:40 +000011784 esac |
11785 sort
11786) |
drh71eb93e2001-09-28 01:34:43 +000011787 sed '
drh8b727472009-01-19 18:18:40 +000011788 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000011789 t clear
drh8b727472009-01-19 18:18:40 +000011790 :clear
drh71eb93e2001-09-28 01:34:43 +000011791 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11792 t end
drh8b727472009-01-19 18:18:40 +000011793 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11794 :end' >>confcache
11795if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11796 if test -w "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +000011797 if test "x$cache_file" != "x/dev/null"; then
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011799$as_echo "$as_me: updating cache $cache_file" >&6;}
drhf922ca42015-05-14 15:39:18 +000011800 if test ! -f "$cache_file" || test -h "$cache_file"; then
11801 cat confcache >"$cache_file"
11802 else
11803 case $cache_file in #(
11804 */* | ?:*)
11805 mv -f confcache "$cache_file"$$ &&
11806 mv -f "$cache_file"$$ "$cache_file" ;; #(
11807 *)
11808 mv -f confcache "$cache_file" ;;
11809 esac
11810 fi
11811 fi
drh75897232000-05-29 14:26:00 +000011812 else
drhf922ca42015-05-14 15:39:18 +000011813 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011814$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000011815 fi
11816fi
11817rm -f confcache
11818
drh75897232000-05-29 14:26:00 +000011819test "x$prefix" = xNONE && prefix=$ac_default_prefix
11820# Let make expand exec_prefix.
11821test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11822
mlcreechb87057f2008-03-06 07:19:20 +000011823DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000011824
11825ac_libobjs=
11826ac_ltlibobjs=
drhf922ca42015-05-14 15:39:18 +000011827U=
a.rottmann84e63352003-03-24 09:42:16 +000011828for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11829 # 1. Remove the extension, and $U if already installed.
drh8b727472009-01-19 18:18:40 +000011830 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11831 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11832 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11833 # will be set to the directory where LIBOBJS objects are built.
drhf922ca42015-05-14 15:39:18 +000011834 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11835 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000011836done
11837LIBOBJS=$ac_libobjs
11838
11839LTLIBOBJS=$ac_ltlibobjs
11840
11841
11842
drhf922ca42015-05-14 15:39:18 +000011843: "${CONFIG_STATUS=./config.status}"
drh8b727472009-01-19 18:18:40 +000011844ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000011845ac_clean_files_save=$ac_clean_files
11846ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drhf922ca42015-05-14 15:39:18 +000011847{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
drh8b727472009-01-19 18:18:40 +000011848$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
drhf922ca42015-05-14 15:39:18 +000011849as_write_fail=0
11850cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011851#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000011852# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000011853# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000011854# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000011855# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000011856
drh71eb93e2001-09-28 01:34:43 +000011857debug=false
a.rottmann84e63352003-03-24 09:42:16 +000011858ac_cs_recheck=false
11859ac_cs_silent=false
drh710658c2012-01-16 13:00:05 +000011860
drhf922ca42015-05-14 15:39:18 +000011861SHELL=\${CONFIG_SHELL-$SHELL}
11862export SHELL
11863_ASEOF
11864cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11865## -------------------- ##
11866## M4sh Initialization. ##
11867## -------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000011868
drh8b727472009-01-19 18:18:40 +000011869# Be more Bourne compatible
11870DUALCASE=1; export DUALCASE # for MKS sh
drhf922ca42015-05-14 15:39:18 +000011871if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
drh71eb93e2001-09-28 01:34:43 +000011872 emulate sh
11873 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000011874 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000011875 # is contrary to our usage. Disable this feature.
11876 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000011877 setopt NO_GLOB_SUBST
11878else
drhf922ca42015-05-14 15:39:18 +000011879 case `(set -o) 2>/dev/null` in #(
11880 *posix*) :
11881 set -o posix ;; #(
11882 *) :
11883 ;;
drh8b727472009-01-19 18:18:40 +000011884esac
a.rottmann84e63352003-03-24 09:42:16 +000011885fi
drh8b727472009-01-19 18:18:40 +000011886
11887
drh8b727472009-01-19 18:18:40 +000011888as_nl='
11889'
11890export as_nl
11891# Printing a long string crashes Solaris 7 /usr/bin/printf.
11892as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11893as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11894as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
drhf922ca42015-05-14 15:39:18 +000011895# Prefer a ksh shell builtin over an external printf program on Solaris,
11896# but without wasting forks for bash or zsh.
11897if test -z "$BASH_VERSION$ZSH_VERSION" \
11898 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11899 as_echo='print -r --'
11900 as_echo_n='print -rn --'
11901elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
drh8b727472009-01-19 18:18:40 +000011902 as_echo='printf %s\n'
11903 as_echo_n='printf %s'
11904else
11905 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11906 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11907 as_echo_n='/usr/ucb/echo -n'
11908 else
11909 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11910 as_echo_n_body='eval
11911 arg=$1;
drhf922ca42015-05-14 15:39:18 +000011912 case $arg in #(
drh8b727472009-01-19 18:18:40 +000011913 *"$as_nl"*)
11914 expr "X$arg" : "X\\(.*\\)$as_nl";
11915 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11916 esac;
11917 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11918 '
11919 export as_echo_n_body
11920 as_echo_n='sh -c $as_echo_n_body as_echo'
11921 fi
11922 export as_echo_body
11923 as_echo='sh -c $as_echo_body as_echo'
11924fi
11925
11926# The user is always right.
11927if test "${PATH_SEPARATOR+set}" != set; then
11928 PATH_SEPARATOR=:
11929 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11930 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11931 PATH_SEPARATOR=';'
11932 }
11933fi
a.rottmann84e63352003-03-24 09:42:16 +000011934
mlcreech94984912008-03-04 19:03:08 +000011935
drh8b727472009-01-19 18:18:40 +000011936# IFS
11937# We need space, tab and new line, in precisely that order. Quoting is
11938# there to prevent editors from complaining about space-tab.
11939# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11940# splitting by setting IFS to empty value.)
11941IFS=" "" $as_nl"
11942
11943# Find who we are. Look in the path if we contain no directory separator.
drhf922ca42015-05-14 15:39:18 +000011944as_myself=
11945case $0 in #((
drh8b727472009-01-19 18:18:40 +000011946 *[\\/]* ) as_myself=$0 ;;
11947 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11948for as_dir in $PATH
11949do
11950 IFS=$as_save_IFS
11951 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000011952 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11953 done
drh8b727472009-01-19 18:18:40 +000011954IFS=$as_save_IFS
11955
11956 ;;
11957esac
11958# We did not find ourselves, most probably we were run as `sh COMMAND'
11959# in which case we are not to be found in the path.
11960if test "x$as_myself" = x; then
11961 as_myself=$0
11962fi
11963if test ! -f "$as_myself"; then
11964 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
drhf922ca42015-05-14 15:39:18 +000011965 exit 1
drh8b727472009-01-19 18:18:40 +000011966fi
11967
drhf922ca42015-05-14 15:39:18 +000011968# Unset variables that we do not need and which cause bugs (e.g. in
11969# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11970# suppresses any "Segmentation fault" message there. '((' could
11971# trigger a bug in pdksh 5.2.14.
11972for as_var in BASH_ENV ENV MAIL MAILPATH
11973do eval test x\${$as_var+set} = xset \
11974 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
drh8b727472009-01-19 18:18:40 +000011975done
mlcreech94984912008-03-04 19:03:08 +000011976PS1='$ '
11977PS2='> '
11978PS4='+ '
11979
11980# NLS nuisances.
drh8b727472009-01-19 18:18:40 +000011981LC_ALL=C
11982export LC_ALL
11983LANGUAGE=C
11984export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000011985
drhf922ca42015-05-14 15:39:18 +000011986# CDPATH.
11987(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11988
11989
11990# as_fn_error STATUS ERROR [LINENO LOG_FD]
11991# ----------------------------------------
11992# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11993# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11994# script with STATUS, using 1 if that was 0.
11995as_fn_error ()
11996{
11997 as_status=$1; test $as_status -eq 0 && as_status=1
11998 if test "$4"; then
11999 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12000 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12001 fi
12002 $as_echo "$as_me: error: $2" >&2
12003 as_fn_exit $as_status
12004} # as_fn_error
12005
12006
12007# as_fn_set_status STATUS
12008# -----------------------
12009# Set $? to STATUS, without forking.
12010as_fn_set_status ()
12011{
12012 return $1
12013} # as_fn_set_status
12014
12015# as_fn_exit STATUS
12016# -----------------
12017# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12018as_fn_exit ()
12019{
12020 set +e
12021 as_fn_set_status $1
12022 exit $1
12023} # as_fn_exit
12024
12025# as_fn_unset VAR
12026# ---------------
12027# Portably unset VAR.
12028as_fn_unset ()
12029{
12030 { eval $1=; unset $1;}
12031}
12032as_unset=as_fn_unset
12033# as_fn_append VAR VALUE
12034# ----------------------
12035# Append the text in VALUE to the end of the definition contained in VAR. Take
12036# advantage of any shell optimizations that allow amortized linear growth over
12037# repeated appends, instead of the typical quadratic growth present in naive
12038# implementations.
12039if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12040 eval 'as_fn_append ()
12041 {
12042 eval $1+=\$2
12043 }'
12044else
12045 as_fn_append ()
12046 {
12047 eval $1=\$$1\$2
12048 }
12049fi # as_fn_append
12050
12051# as_fn_arith ARG...
12052# ------------------
12053# Perform arithmetic evaluation on the ARGs, and store the result in the
12054# global $as_val. Take advantage of shells that can avoid forks. The arguments
12055# must be portable across $(()) and expr.
12056if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12057 eval 'as_fn_arith ()
12058 {
12059 as_val=$(( $* ))
12060 }'
12061else
12062 as_fn_arith ()
12063 {
12064 as_val=`expr "$@" || test $? -eq 1`
12065 }
12066fi # as_fn_arith
12067
12068
drh8b727472009-01-19 18:18:40 +000012069if expr a : '\(a\)' >/dev/null 2>&1 &&
12070 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +000012071 as_expr=expr
12072else
12073 as_expr=false
12074fi
12075
drh8b727472009-01-19 18:18:40 +000012076if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000012077 as_basename=basename
12078else
12079 as_basename=false
12080fi
12081
drhf922ca42015-05-14 15:39:18 +000012082if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12083 as_dirname=dirname
12084else
12085 as_dirname=false
12086fi
mlcreech94984912008-03-04 19:03:08 +000012087
drh8b727472009-01-19 18:18:40 +000012088as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +000012089$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12090 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000012091 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12092$as_echo X/"$0" |
12093 sed '/^.*\/\([^/][^/]*\)\/*$/{
12094 s//\1/
12095 q
12096 }
12097 /^X\/\(\/\/\)$/{
12098 s//\1/
12099 q
12100 }
12101 /^X\/\(\/\).*/{
12102 s//\1/
12103 q
12104 }
12105 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000012106
drhf922ca42015-05-14 15:39:18 +000012107# Avoid depending upon Character Ranges.
12108as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12109as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12110as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12111as_cr_digits='0123456789'
12112as_cr_alnum=$as_cr_Letters$as_cr_digits
drh866108f2008-05-13 00:57:21 +000012113
drh8b727472009-01-19 18:18:40 +000012114ECHO_C= ECHO_N= ECHO_T=
drhf922ca42015-05-14 15:39:18 +000012115case `echo -n x` in #(((((
drh8b727472009-01-19 18:18:40 +000012116-n*)
drhf922ca42015-05-14 15:39:18 +000012117 case `echo 'xy\c'` in
drh8b727472009-01-19 18:18:40 +000012118 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drhf922ca42015-05-14 15:39:18 +000012119 xy) ECHO_C='\c';;
12120 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12121 ECHO_T=' ';;
drh8b727472009-01-19 18:18:40 +000012122 esac;;
12123*)
12124 ECHO_N='-n';;
12125esac
drh71eb93e2001-09-28 01:34:43 +000012126
12127rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +000012128if test -d conf$$.dir; then
12129 rm -f conf$$.dir/conf$$.file
12130else
12131 rm -f conf$$.dir
12132 mkdir conf$$.dir 2>/dev/null
12133fi
12134if (echo >conf$$.file) 2>/dev/null; then
12135 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +000012136 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +000012137 # ... but there are two gotchas:
12138 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12139 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
drhf922ca42015-05-14 15:39:18 +000012140 # In both cases, we have to default to `cp -pR'.
drh8b727472009-01-19 18:18:40 +000012141 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
drhf922ca42015-05-14 15:39:18 +000012142 as_ln_s='cp -pR'
drh8b727472009-01-19 18:18:40 +000012143 elif ln conf$$.file conf$$ 2>/dev/null; then
12144 as_ln_s=ln
12145 else
drhf922ca42015-05-14 15:39:18 +000012146 as_ln_s='cp -pR'
mlcreech636a9952008-05-05 22:52:56 +000012147 fi
drh71eb93e2001-09-28 01:34:43 +000012148else
drhf922ca42015-05-14 15:39:18 +000012149 as_ln_s='cp -pR'
drh71eb93e2001-09-28 01:34:43 +000012150fi
drh8b727472009-01-19 18:18:40 +000012151rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12152rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000012153
drhf922ca42015-05-14 15:39:18 +000012154
12155# as_fn_mkdir_p
12156# -------------
12157# Create "$as_dir" as a directory, including parents if necessary.
12158as_fn_mkdir_p ()
12159{
12160
12161 case $as_dir in #(
12162 -*) as_dir=./$as_dir;;
12163 esac
12164 test -d "$as_dir" || eval $as_mkdir_p || {
12165 as_dirs=
12166 while :; do
12167 case $as_dir in #(
12168 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12169 *) as_qdir=$as_dir;;
12170 esac
12171 as_dirs="'$as_qdir' $as_dirs"
12172 as_dir=`$as_dirname -- "$as_dir" ||
12173$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12174 X"$as_dir" : 'X\(//\)[^/]' \| \
12175 X"$as_dir" : 'X\(//\)$' \| \
12176 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12177$as_echo X"$as_dir" |
12178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12179 s//\1/
12180 q
12181 }
12182 /^X\(\/\/\)[^/].*/{
12183 s//\1/
12184 q
12185 }
12186 /^X\(\/\/\)$/{
12187 s//\1/
12188 q
12189 }
12190 /^X\(\/\).*/{
12191 s//\1/
12192 q
12193 }
12194 s/.*/./; q'`
12195 test -d "$as_dir" && break
12196 done
12197 test -z "$as_dirs" || eval "mkdir $as_dirs"
12198 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12199
12200
12201} # as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000012202if mkdir -p . 2>/dev/null; then
drhf922ca42015-05-14 15:39:18 +000012203 as_mkdir_p='mkdir -p "$as_dir"'
drh71eb93e2001-09-28 01:34:43 +000012204else
a.rottmann964dbb12004-02-26 19:47:42 +000012205 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000012206 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000012207fi
12208
drhf922ca42015-05-14 15:39:18 +000012209
12210# as_fn_executable_p FILE
12211# -----------------------
12212# Test if FILE is an executable regular file.
12213as_fn_executable_p ()
12214{
12215 test -f "$1" && test -x "$1"
12216} # as_fn_executable_p
12217as_test_x='test -x'
12218as_executable_p=as_fn_executable_p
a.rottmann84e63352003-03-24 09:42:16 +000012219
12220# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000012221as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012222
12223# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000012224as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012225
drh71eb93e2001-09-28 01:34:43 +000012226
drh71eb93e2001-09-28 01:34:43 +000012227exec 6>&1
drhf922ca42015-05-14 15:39:18 +000012228## ----------------------------------- ##
12229## Main body of $CONFIG_STATUS script. ##
12230## ----------------------------------- ##
12231_ASEOF
12232test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012233
drhf922ca42015-05-14 15:39:18 +000012234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12235# Save the log message, to keep $0 and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000012236# report actual input values of CONFIG_FILES etc. instead of their
drh8b727472009-01-19 18:18:40 +000012237# values after options handling.
12238ac_log="
drh636f5052020-12-02 00:22:09 +000012239This file was extended by sqlite $as_me 3.35.0, which was
drhf922ca42015-05-14 15:39:18 +000012240generated by GNU Autoconf 2.69. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000012241
12242 CONFIG_FILES = $CONFIG_FILES
12243 CONFIG_HEADERS = $CONFIG_HEADERS
12244 CONFIG_LINKS = $CONFIG_LINKS
12245 CONFIG_COMMANDS = $CONFIG_COMMANDS
12246 $ $0 $@
12247
drh8b727472009-01-19 18:18:40 +000012248on `(hostname || uname -n) 2>/dev/null | sed 1q`
12249"
12250
drh71eb93e2001-09-28 01:34:43 +000012251_ACEOF
12252
drhf922ca42015-05-14 15:39:18 +000012253case $ac_config_files in *"
12254"*) set x $ac_config_files; shift; ac_config_files=$*;;
12255esac
12256
12257case $ac_config_headers in *"
12258"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12259esac
12260
12261
drh8b727472009-01-19 18:18:40 +000012262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012263# Files that config.status was made for.
drh8b727472009-01-19 18:18:40 +000012264config_files="$ac_config_files"
12265config_headers="$ac_config_headers"
12266config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000012267
drh8b727472009-01-19 18:18:40 +000012268_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012269
drh8b727472009-01-19 18:18:40 +000012270cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012271ac_cs_usage="\
drhf922ca42015-05-14 15:39:18 +000012272\`$as_me' instantiates files and other configuration actions
12273from templates according to the current configuration. Unless the files
12274and actions are specified as TAGs, all are instantiated by default.
drh71eb93e2001-09-28 01:34:43 +000012275
drhf922ca42015-05-14 15:39:18 +000012276Usage: $0 [OPTION]... [TAG]...
drh71eb93e2001-09-28 01:34:43 +000012277
12278 -h, --help print this help, then exit
drh8b727472009-01-19 18:18:40 +000012279 -V, --version print version number and configuration settings, then exit
drhf922ca42015-05-14 15:39:18 +000012280 --config print configuration, then exit
12281 -q, --quiet, --silent
12282 do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000012283 -d, --debug don't remove temporary files
12284 --recheck update $as_me by reconfiguring in the same conditions
drhf922ca42015-05-14 15:39:18 +000012285 --file=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012286 instantiate the configuration file FILE
drhf922ca42015-05-14 15:39:18 +000012287 --header=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012288 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000012289
12290Configuration files:
12291$config_files
12292
mlcreechb87057f2008-03-06 07:19:20 +000012293Configuration headers:
12294$config_headers
12295
mlcreech636a9952008-05-05 22:52:56 +000012296Configuration commands:
12297$config_commands
12298
drhf922ca42015-05-14 15:39:18 +000012299Report bugs to the package provider."
drh8b727472009-01-19 18:18:40 +000012300
mlcreech94984912008-03-04 19:03:08 +000012301_ACEOF
drh8b727472009-01-19 18:18:40 +000012302cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012303ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
drh866108f2008-05-13 00:57:21 +000012304ac_cs_version="\\
drh636f5052020-12-02 00:22:09 +000012305sqlite config.status 3.35.0
drhf922ca42015-05-14 15:39:18 +000012306configured by $0, generated by GNU Autoconf 2.69,
12307 with options \\"\$ac_cs_config\\"
drh866108f2008-05-13 00:57:21 +000012308
drhf922ca42015-05-14 15:39:18 +000012309Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000012310This config.status script is free software; the Free Software Foundation
12311gives unlimited permission to copy, distribute and modify it."
drh8b727472009-01-19 18:18:40 +000012312
12313ac_pwd='$ac_pwd'
12314srcdir='$srcdir'
12315INSTALL='$INSTALL'
drh8b727472009-01-19 18:18:40 +000012316test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000012317_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012318
drh8b727472009-01-19 18:18:40 +000012319cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12320# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000012321ac_need_defaults=:
12322while test $# != 0
12323do
12324 case $1 in
drhf922ca42015-05-14 15:39:18 +000012325 --*=?*)
drh8b727472009-01-19 18:18:40 +000012326 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12327 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000012328 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000012329 ;;
drhf922ca42015-05-14 15:39:18 +000012330 --*=)
12331 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12332 ac_optarg=
12333 ac_shift=:
12334 ;;
drh8b727472009-01-19 18:18:40 +000012335 *)
a.rottmann84e63352003-03-24 09:42:16 +000012336 ac_option=$1
12337 ac_optarg=$2
12338 ac_shift=shift
12339 ;;
drh75897232000-05-29 14:26:00 +000012340 esac
12341
a.rottmann84e63352003-03-24 09:42:16 +000012342 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000012343 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000012344 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000012345 ac_cs_recheck=: ;;
drh8b727472009-01-19 18:18:40 +000012346 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12347 $as_echo "$ac_cs_version"; exit ;;
drhf922ca42015-05-14 15:39:18 +000012348 --config | --confi | --conf | --con | --co | --c )
12349 $as_echo "$ac_cs_config"; exit ;;
drh8b727472009-01-19 18:18:40 +000012350 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000012351 debug=: ;;
12352 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000012353 $ac_shift
drh8b727472009-01-19 18:18:40 +000012354 case $ac_optarg in
12355 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
drhf922ca42015-05-14 15:39:18 +000012356 '') as_fn_error $? "missing file argument" ;;
drh8b727472009-01-19 18:18:40 +000012357 esac
drhf922ca42015-05-14 15:39:18 +000012358 as_fn_append CONFIG_FILES " '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000012359 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000012360 --header | --heade | --head | --hea )
12361 $ac_shift
drh8b727472009-01-19 18:18:40 +000012362 case $ac_optarg in
12363 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12364 esac
drhf922ca42015-05-14 15:39:18 +000012365 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000012366 ac_need_defaults=false;;
drh8b727472009-01-19 18:18:40 +000012367 --he | --h)
12368 # Conflict between --help and --header
drhf922ca42015-05-14 15:39:18 +000012369 as_fn_error $? "ambiguous option: \`$1'
12370Try \`$0 --help' for more information.";;
drh8b727472009-01-19 18:18:40 +000012371 --help | --hel | -h )
12372 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000012373 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12374 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12375 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000012376
drh71eb93e2001-09-28 01:34:43 +000012377 # This is an error.
drhf922ca42015-05-14 15:39:18 +000012378 -*) as_fn_error $? "unrecognized option: \`$1'
12379Try \`$0 --help' for more information." ;;
drh71eb93e2001-09-28 01:34:43 +000012380
drhf922ca42015-05-14 15:39:18 +000012381 *) as_fn_append ac_config_targets " $1"
drh8b727472009-01-19 18:18:40 +000012382 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000012383
12384 esac
12385 shift
12386done
12387
a.rottmann84e63352003-03-24 09:42:16 +000012388ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000012389
a.rottmann84e63352003-03-24 09:42:16 +000012390if $ac_cs_silent; then
12391 exec 6>/dev/null
12392 ac_configure_extra_args="$ac_configure_extra_args --silent"
12393fi
drh71eb93e2001-09-28 01:34:43 +000012394
12395_ACEOF
drh8b727472009-01-19 18:18:40 +000012396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000012397if \$ac_cs_recheck; then
drhf922ca42015-05-14 15:39:18 +000012398 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
drh8b727472009-01-19 18:18:40 +000012399 shift
12400 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12401 CONFIG_SHELL='$SHELL'
12402 export CONFIG_SHELL
12403 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000012404fi
drh71eb93e2001-09-28 01:34:43 +000012405
a.rottmann84e63352003-03-24 09:42:16 +000012406_ACEOF
drh8b727472009-01-19 18:18:40 +000012407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12408exec 5>>config.log
12409{
12410 echo
12411 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12412## Running $as_me. ##
12413_ASBOX
12414 $as_echo "$ac_log"
12415} >&5
a.rottmann84e63352003-03-24 09:42:16 +000012416
drh8b727472009-01-19 18:18:40 +000012417_ACEOF
12418cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech636a9952008-05-05 22:52:56 +000012419#
drh8b727472009-01-19 18:18:40 +000012420# INIT-COMMANDS
mlcreech636a9952008-05-05 22:52:56 +000012421#
12422
12423
12424# The HP-UX ksh and POSIX shell print the target directory to stdout
12425# if CDPATH is set.
12426(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12427
12428sed_quote_subst='$sed_quote_subst'
12429double_quote_subst='$double_quote_subst'
12430delay_variable_subst='$delay_variable_subst'
12431macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12432macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12433enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12434enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12435pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12436enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12437host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12438host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12439host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12440build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12441build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12442build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12443SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12444Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12445GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12446EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12447FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12448LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12449NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12450LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12451max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12452ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12453exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12454lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12455lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12456lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12457reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12458reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
vapier6acb2cf2009-01-28 04:46:28 +000012459OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
mlcreech636a9952008-05-05 22:52:56 +000012460deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12461file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12462AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12463AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12464STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12465RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12466old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12467old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12468old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12469CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12470CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12471compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12472GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12473lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12474lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12475lt_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"`'
12476lt_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"`'
12477objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12478SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12479ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12480MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12481lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12482lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12483lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12484lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12485lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12486need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12487DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12488NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12489LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12490OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12491OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12492libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12493shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12494extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12495archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12496enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12497export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12498whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12499compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12500old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12501old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12502archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12503archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12504module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12505module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12506with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12507allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12508no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12509hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12510hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12511hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12512hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12513hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12514hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12515hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12516hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12517inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12518link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12519fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12520always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12521export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12522exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12523include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12524prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12525file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12526variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12527need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12528need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12529version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12530runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12531shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12532shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12533libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12534library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12535soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12536postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12537postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12538finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12539finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12540hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12541sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12542sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12543hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12544enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12545enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12546enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12547old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12548striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12549
12550LTCC='$LTCC'
12551LTCFLAGS='$LTCFLAGS'
12552compiler='$compiler_DEFAULT'
12553
12554# Quote evaled strings.
12555for var in SED \
12556GREP \
12557EGREP \
12558FGREP \
12559LD \
12560NM \
12561LN_S \
12562lt_SP2NL \
12563lt_NL2SP \
12564reload_flag \
vapier6acb2cf2009-01-28 04:46:28 +000012565OBJDUMP \
mlcreech636a9952008-05-05 22:52:56 +000012566deplibs_check_method \
12567file_magic_cmd \
12568AR \
12569AR_FLAGS \
12570STRIP \
12571RANLIB \
12572CC \
12573CFLAGS \
12574compiler \
12575lt_cv_sys_global_symbol_pipe \
12576lt_cv_sys_global_symbol_to_cdecl \
12577lt_cv_sys_global_symbol_to_c_name_address \
12578lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12579SHELL \
12580ECHO \
12581lt_prog_compiler_no_builtin_flag \
12582lt_prog_compiler_wl \
12583lt_prog_compiler_pic \
12584lt_prog_compiler_static \
12585lt_cv_prog_compiler_c_o \
12586need_locks \
12587DSYMUTIL \
12588NMEDIT \
12589LIPO \
12590OTOOL \
12591OTOOL64 \
12592shrext_cmds \
12593export_dynamic_flag_spec \
12594whole_archive_flag_spec \
12595compiler_needs_object \
12596with_gnu_ld \
12597allow_undefined_flag \
12598no_undefined_flag \
12599hardcode_libdir_flag_spec \
12600hardcode_libdir_flag_spec_ld \
12601hardcode_libdir_separator \
12602fix_srcfile_path \
12603exclude_expsyms \
12604include_expsyms \
12605file_list_spec \
12606variables_saved_for_relink \
12607libname_spec \
12608library_names_spec \
12609soname_spec \
12610finish_eval \
12611old_striplib \
12612striplib; do
12613 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12614 *[\\\\\\\`\\"\\\$]*)
12615 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12616 ;;
12617 *)
12618 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12619 ;;
12620 esac
12621done
12622
12623# Double-quote double-evaled strings.
12624for var in reload_cmds \
12625old_postinstall_cmds \
12626old_postuninstall_cmds \
12627old_archive_cmds \
12628extract_expsyms_cmds \
12629old_archive_from_new_cmds \
12630old_archive_from_expsyms_cmds \
12631archive_cmds \
12632archive_expsym_cmds \
12633module_cmds \
12634module_expsym_cmds \
12635export_symbols_cmds \
12636prelink_cmds \
12637postinstall_cmds \
12638postuninstall_cmds \
12639finish_cmds \
12640sys_lib_search_path_spec \
12641sys_lib_dlsearch_path_spec; do
12642 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12643 *[\\\\\\\`\\"\\\$]*)
12644 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12645 ;;
12646 *)
12647 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12648 ;;
12649 esac
12650done
12651
12652# Fix-up fallback echo if it was mangled by the above quoting rules.
12653case \$lt_ECHO in
12654*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12655 ;;
12656esac
12657
12658ac_aux_dir='$ac_aux_dir'
12659xsi_shell='$xsi_shell'
12660lt_shell_append='$lt_shell_append'
12661
12662# See if we are running on zsh, and set the options which allow our
12663# commands through without removal of \ escapes INIT.
12664if test -n "\${ZSH_VERSION+set}" ; then
12665 setopt NO_GLOB_SUBST
12666fi
12667
12668
12669 PACKAGE='$PACKAGE'
12670 VERSION='$VERSION'
12671 TIMESTAMP='$TIMESTAMP'
12672 RM='$RM'
12673 ofile='$ofile'
12674
12675
12676
12677
mlcreech94984912008-03-04 19:03:08 +000012678_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012679
drh8b727472009-01-19 18:18:40 +000012680cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000012681
drh8b727472009-01-19 18:18:40 +000012682# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000012683for ac_config_target in $ac_config_targets
12684do
drh8b727472009-01-19 18:18:40 +000012685 case $ac_config_target in
12686 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12687 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12688 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12689 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12690
drhf922ca42015-05-14 15:39:18 +000012691 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
drh71eb93e2001-09-28 01:34:43 +000012692 esac
12693done
12694
drh8b727472009-01-19 18:18:40 +000012695
drh71eb93e2001-09-28 01:34:43 +000012696# If the user did not use the arguments to specify the items to instantiate,
12697# then the envvar interface is used. Set only those that are not.
12698# We use the long form for the default assignment because of an extremely
12699# bizarre bug on SunOS 4.1.3.
12700if $ac_need_defaults; then
12701 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000012702 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000012703 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000012704fi
12705
a.rottmann84e63352003-03-24 09:42:16 +000012706# Have a temporary directory for convenience. Make it in the build tree
drh8b727472009-01-19 18:18:40 +000012707# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000012708# creating and moving files from /tmp can sometimes cause problems.
drh8b727472009-01-19 18:18:40 +000012709# Hook for its removal unless debugging.
12710# Note that there is a small window in which the directory will not be cleaned:
12711# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000012712$debug ||
12713{
drhf922ca42015-05-14 15:39:18 +000012714 tmp= ac_tmp=
drh8b727472009-01-19 18:18:40 +000012715 trap 'exit_status=$?
drhf922ca42015-05-14 15:39:18 +000012716 : "${ac_tmp:=$tmp}"
12717 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
drh8b727472009-01-19 18:18:40 +000012718' 0
drhf922ca42015-05-14 15:39:18 +000012719 trap 'as_fn_exit 1' 1 2 13 15
drh71eb93e2001-09-28 01:34:43 +000012720}
drh71eb93e2001-09-28 01:34:43 +000012721# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000012722
drh71eb93e2001-09-28 01:34:43 +000012723{
drh8b727472009-01-19 18:18:40 +000012724 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drhf922ca42015-05-14 15:39:18 +000012725 test -d "$tmp"
drh71eb93e2001-09-28 01:34:43 +000012726} ||
12727{
drh8b727472009-01-19 18:18:40 +000012728 tmp=./conf$$-$RANDOM
12729 (umask 077 && mkdir "$tmp")
drhf922ca42015-05-14 15:39:18 +000012730} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12731ac_tmp=$tmp
drh71eb93e2001-09-28 01:34:43 +000012732
drh8b727472009-01-19 18:18:40 +000012733# Set up the scripts for CONFIG_FILES section.
12734# No need to generate them if there are no CONFIG_FILES.
12735# This happens for instance with `./config.status config.h'.
12736if test -n "$CONFIG_FILES"; then
12737
12738
drhf922ca42015-05-14 15:39:18 +000012739ac_cr=`echo X | tr X '\015'`
12740# On cygwin, bash can eat \r inside `` if the user requested igncr.
12741# But we know of no other shell where ac_cr would be empty at this
12742# point, so we can use a bashism as a fallback.
12743if test "x$ac_cr" = x; then
12744 eval ac_cr=\$\'\\r\'
12745fi
drh8b727472009-01-19 18:18:40 +000012746ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12747if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
drh0fe0c462011-09-22 00:56:38 +000012748 ac_cs_awk_cr='\\r'
drh8b727472009-01-19 18:18:40 +000012749else
12750 ac_cs_awk_cr=$ac_cr
12751fi
12752
drhf922ca42015-05-14 15:39:18 +000012753echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000012754_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012755
mlcreech94984912008-03-04 19:03:08 +000012756
drh8b727472009-01-19 18:18:40 +000012757{
12758 echo "cat >conf$$subs.awk <<_ACEOF" &&
12759 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12760 echo "_ACEOF"
12761} >conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012762 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12763ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
drh8b727472009-01-19 18:18:40 +000012764ac_delim='%!_!# '
12765for ac_last_try in false false false false false :; do
12766 . ./conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012767 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000012768
drhf922ca42015-05-14 15:39:18 +000012769 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12770 if test $ac_delim_n = $ac_delim_num; then
drh8b727472009-01-19 18:18:40 +000012771 break
12772 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012773 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012774 else
12775 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000012776 fi
drh8b727472009-01-19 18:18:40 +000012777done
12778rm -f conf$$subs.sh
12779
12780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012781cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012782_ACEOF
12783sed -n '
12784h
12785s/^/S["/; s/!.*/"]=/
12786p
12787g
12788s/^[^!]*!//
12789:repl
12790t repl
12791s/'"$ac_delim"'$//
12792t delim
12793:nl
12794h
drhf922ca42015-05-14 15:39:18 +000012795s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012796t more1
12797s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12798p
12799n
12800b repl
12801:more1
12802s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12803p
12804g
12805s/.\{148\}//
12806t nl
12807:delim
12808h
drhf922ca42015-05-14 15:39:18 +000012809s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012810t more2
12811s/["\\]/\\&/g; s/^/"/; s/$/"/
12812p
12813b
12814:more2
12815s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12816p
12817g
12818s/.\{148\}//
12819t delim
12820' <conf$$subs.awk | sed '
12821/^[^""]/{
12822 N
12823 s/\n//
12824}
12825' >>$CONFIG_STATUS || ac_write_fail=1
12826rm -f conf$$subs.awk
12827cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12828_ACAWK
drhf922ca42015-05-14 15:39:18 +000012829cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012830 for (key in S) S_is_set[key] = 1
12831 FS = ""
12832
12833}
12834{
12835 line = $ 0
12836 nfields = split(line, field, "@")
12837 substed = 0
12838 len = length(field[1])
12839 for (i = 2; i < nfields; i++) {
12840 key = field[i]
12841 keylen = length(key)
12842 if (S_is_set[key]) {
12843 value = S[key]
12844 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12845 len += length(value) + length(field[++i])
12846 substed = 1
12847 } else
12848 len += 1 + keylen
12849 }
12850
12851 print line
12852}
12853
12854_ACAWK
12855_ACEOF
12856cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12857if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12858 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12859else
12860 cat
drhf922ca42015-05-14 15:39:18 +000012861fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12862 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012863_ACEOF
12864
drhf922ca42015-05-14 15:39:18 +000012865# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12866# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
drh8b727472009-01-19 18:18:40 +000012867# trailing colons and then remove the whole line if VPATH becomes empty
12868# (actually we leave an empty line to preserve line numbers).
12869if test "x$srcdir" = x.; then
drhf922ca42015-05-14 15:39:18 +000012870 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12871h
12872s///
12873s/^/:/
12874s/[ ]*$/:/
12875s/:\$(srcdir):/:/g
12876s/:\${srcdir}:/:/g
12877s/:@srcdir@:/:/g
12878s/^:*//
drh8b727472009-01-19 18:18:40 +000012879s/:*$//
drhf922ca42015-05-14 15:39:18 +000012880x
12881s/\(=[ ]*\).*/\1/
12882G
12883s/\n//
drh8b727472009-01-19 18:18:40 +000012884s/^[^=]*=[ ]*$//
12885}'
12886fi
12887
12888cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012889fi # test -n "$CONFIG_FILES"
12890
drh8b727472009-01-19 18:18:40 +000012891# Set up the scripts for CONFIG_HEADERS section.
12892# No need to generate them if there are no CONFIG_HEADERS.
12893# This happens for instance with `./config.status Makefile'.
12894if test -n "$CONFIG_HEADERS"; then
drhf922ca42015-05-14 15:39:18 +000012895cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
drh8b727472009-01-19 18:18:40 +000012896BEGIN {
mlcreech636a9952008-05-05 22:52:56 +000012897_ACEOF
drh8b727472009-01-19 18:18:40 +000012898
12899# Transform confdefs.h into an awk script `defines.awk', embedded as
12900# here-document in config.status, that substitutes the proper values into
12901# config.h.in to produce config.h.
12902
12903# Create a delimiter string that does not exist in confdefs.h, to ease
12904# handling of long lines.
12905ac_delim='%!_!# '
12906for ac_last_try in false false :; do
drhf922ca42015-05-14 15:39:18 +000012907 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12908 if test -z "$ac_tt"; then
drh8b727472009-01-19 18:18:40 +000012909 break
12910 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012911 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012912 else
12913 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12914 fi
12915done
12916
12917# For the awk script, D is an array of macro values keyed by name,
12918# likewise P contains macro parameters if any. Preserve backslash
12919# newline sequences.
12920
12921ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12922sed -n '
12923s/.\{148\}/&'"$ac_delim"'/g
12924t rset
12925:rset
12926s/^[ ]*#[ ]*define[ ][ ]*/ /
12927t def
12928d
12929:def
12930s/\\$//
12931t bsnl
12932s/["\\]/\\&/g
12933s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12934D["\1"]=" \3"/p
12935s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12936d
12937:bsnl
12938s/["\\]/\\&/g
12939s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12940D["\1"]=" \3\\\\\\n"\\/p
12941t cont
12942s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12943t cont
12944d
12945:cont
12946n
12947s/.\{148\}/&'"$ac_delim"'/g
12948t clear
12949:clear
12950s/\\$//
12951t bsnlc
12952s/["\\]/\\&/g; s/^/"/; s/$/"/p
12953d
12954:bsnlc
12955s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12956b cont
12957' <confdefs.h | sed '
12958s/'"$ac_delim"'/"\\\
12959"/g' >>$CONFIG_STATUS || ac_write_fail=1
12960
12961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12962 for (key in D) D_is_set[key] = 1
12963 FS = ""
12964}
12965/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12966 line = \$ 0
12967 split(line, arg, " ")
12968 if (arg[1] == "#") {
12969 defundef = arg[2]
12970 mac1 = arg[3]
12971 } else {
12972 defundef = substr(arg[1], 2)
12973 mac1 = arg[2]
12974 }
12975 split(mac1, mac2, "(") #)
12976 macro = mac2[1]
drhf922ca42015-05-14 15:39:18 +000012977 prefix = substr(line, 1, index(line, defundef) - 1)
drh8b727472009-01-19 18:18:40 +000012978 if (D_is_set[macro]) {
12979 # Preserve the white space surrounding the "#".
drh8b727472009-01-19 18:18:40 +000012980 print prefix "define", macro P[macro] D[macro]
12981 next
12982 } else {
12983 # Replace #undef with comments. This is necessary, for example,
12984 # in the case of _POSIX_SOURCE, which is predefined and required
12985 # on some systems where configure will not decide to define it.
12986 if (defundef == "undef") {
drhf922ca42015-05-14 15:39:18 +000012987 print "/*", prefix defundef, macro, "*/"
drh8b727472009-01-19 18:18:40 +000012988 next
12989 }
12990 }
12991}
12992{ print }
12993_ACAWK
12994_ACEOF
12995cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012996 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012997fi # test -n "$CONFIG_HEADERS"
12998
12999
13000eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13001shift
13002for ac_tag
13003do
13004 case $ac_tag in
13005 :[FHLC]) ac_mode=$ac_tag; continue;;
13006 esac
13007 case $ac_mode$ac_tag in
13008 :[FHL]*:*);;
drhf922ca42015-05-14 15:39:18 +000013009 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000013010 :[FH]-) ac_tag=-:-;;
13011 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13012 esac
13013 ac_save_IFS=$IFS
13014 IFS=:
13015 set x $ac_tag
13016 IFS=$ac_save_IFS
13017 shift
13018 ac_file=$1
13019 shift
13020
13021 case $ac_mode in
13022 :L) ac_source=$1;;
13023 :[FH])
13024 ac_file_inputs=
13025 for ac_f
13026 do
13027 case $ac_f in
drhf922ca42015-05-14 15:39:18 +000013028 -) ac_f="$ac_tmp/stdin";;
drh8b727472009-01-19 18:18:40 +000013029 *) # Look for the file first in the build tree, then in the source tree
13030 # (if the path is not absolute). The absolute path cannot be DOS-style,
13031 # because $ac_f cannot contain `:'.
13032 test -f "$ac_f" ||
13033 case $ac_f in
13034 [\\/$]*) false;;
13035 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13036 esac ||
drhf922ca42015-05-14 15:39:18 +000013037 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000013038 esac
13039 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
drhf922ca42015-05-14 15:39:18 +000013040 as_fn_append ac_file_inputs " '$ac_f'"
drh8b727472009-01-19 18:18:40 +000013041 done
13042
13043 # Let's still pretend it is `configure' which instantiates (i.e., don't
13044 # use $as_me), people would be surprised to read:
13045 # /* config.h. Generated by config.status. */
13046 configure_input='Generated from '`
13047 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13048 `' by configure.'
13049 if test x"$ac_file" != x-; then
13050 configure_input="$ac_file. $configure_input"
drhf922ca42015-05-14 15:39:18 +000013051 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
drh8b727472009-01-19 18:18:40 +000013052$as_echo "$as_me: creating $ac_file" >&6;}
13053 fi
13054 # Neutralize special characters interpreted by sed in replacement strings.
13055 case $configure_input in #(
13056 *\&* | *\|* | *\\* )
13057 ac_sed_conf_input=`$as_echo "$configure_input" |
13058 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13059 *) ac_sed_conf_input=$configure_input;;
13060 esac
13061
13062 case $ac_tag in
drhf922ca42015-05-14 15:39:18 +000013063 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13064 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
drh8b727472009-01-19 18:18:40 +000013065 esac
13066 ;;
drh71eb93e2001-09-28 01:34:43 +000013067 esac
13068
drh8b727472009-01-19 18:18:40 +000013069 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000013070$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000013071 X"$ac_file" : 'X\(//\)[^/]' \| \
13072 X"$ac_file" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000013073 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13074$as_echo X"$ac_file" |
13075 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13076 s//\1/
13077 q
13078 }
13079 /^X\(\/\/\)[^/].*/{
13080 s//\1/
13081 q
13082 }
13083 /^X\(\/\/\)$/{
13084 s//\1/
13085 q
13086 }
13087 /^X\(\/\).*/{
13088 s//\1/
13089 q
13090 }
13091 s/.*/./; q'`
drhf922ca42015-05-14 15:39:18 +000013092 as_dir="$ac_dir"; as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000013093 ac_builddir=.
13094
drh8b727472009-01-19 18:18:40 +000013095case "$ac_dir" in
13096.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13097*)
13098 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13099 # A ".." for each directory in $ac_dir_suffix.
13100 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13101 case $ac_top_builddir_sub in
13102 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13103 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13104 esac ;;
13105esac
13106ac_abs_top_builddir=$ac_pwd
13107ac_abs_builddir=$ac_pwd$ac_dir_suffix
13108# for backward compatibility:
13109ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000013110
13111case $srcdir in
drh8b727472009-01-19 18:18:40 +000013112 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000013113 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +000013114 ac_top_srcdir=$ac_top_builddir_sub
13115 ac_abs_top_srcdir=$ac_pwd ;;
13116 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000013117 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +000013118 ac_top_srcdir=$srcdir
13119 ac_abs_top_srcdir=$srcdir ;;
13120 *) # Relative name.
13121 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13122 ac_top_srcdir=$ac_top_build_prefix$srcdir
13123 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000013124esac
drh8b727472009-01-19 18:18:40 +000013125ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000013126
a.rottmann84e63352003-03-24 09:42:16 +000013127
drh8b727472009-01-19 18:18:40 +000013128 case $ac_mode in
13129 :F)
13130 #
13131 # CONFIG_FILE
13132 #
drh75897232000-05-29 14:26:00 +000013133
drh71eb93e2001-09-28 01:34:43 +000013134 case $INSTALL in
13135 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh8b727472009-01-19 18:18:40 +000013136 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000013137 esac
mlcreech94984912008-03-04 19:03:08 +000013138_ACEOF
drh8b727472009-01-19 18:18:40 +000013139
13140cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13141# If the template does not know about datarootdir, expand it.
13142# FIXME: This hack should be removed a few years after 2.60.
13143ac_datarootdir_hack=; ac_datarootdir_seen=
drh8b727472009-01-19 18:18:40 +000013144ac_sed_dataroot='
13145/datarootdir/ {
13146 p
13147 q
13148}
13149/@datadir@/p
13150/@docdir@/p
13151/@infodir@/p
13152/@localedir@/p
drhf922ca42015-05-14 15:39:18 +000013153/@mandir@/p'
drh8b727472009-01-19 18:18:40 +000013154case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13155*datarootdir*) ac_datarootdir_seen=yes;;
13156*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
drhf922ca42015-05-14 15:39:18 +000013157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
drh8b727472009-01-19 18:18:40 +000013158$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13159_ACEOF
13160cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13161 ac_datarootdir_hack='
13162 s&@datadir@&$datadir&g
13163 s&@docdir@&$docdir&g
13164 s&@infodir@&$infodir&g
13165 s&@localedir@&$localedir&g
13166 s&@mandir@&$mandir&g
drhf922ca42015-05-14 15:39:18 +000013167 s&\\\${datarootdir}&$datarootdir&g' ;;
drh8b727472009-01-19 18:18:40 +000013168esac
13169_ACEOF
13170
13171# Neutralize VPATH when `$srcdir' = `.'.
13172# Shell code in configure.ac might set extrasub.
13173# FIXME: do we really want to maintain this feature?
13174cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13175ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000013176$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000013177_ACEOF
drh8b727472009-01-19 18:18:40 +000013178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013179:t
13180/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh8b727472009-01-19 18:18:40 +000013181s|@configure_input@|$ac_sed_conf_input|;t t
13182s&@top_builddir@&$ac_top_builddir_sub&;t t
13183s&@top_build_prefix@&$ac_top_build_prefix&;t t
13184s&@srcdir@&$ac_srcdir&;t t
13185s&@abs_srcdir@&$ac_abs_srcdir&;t t
13186s&@top_srcdir@&$ac_top_srcdir&;t t
13187s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13188s&@builddir@&$ac_builddir&;t t
13189s&@abs_builddir@&$ac_abs_builddir&;t t
13190s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13191s&@INSTALL@&$ac_INSTALL&;t t
13192$ac_datarootdir_hack
13193"
drhf922ca42015-05-14 15:39:18 +000013194eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13195 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000013196
drh8b727472009-01-19 18:18:40 +000013197test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
drhf922ca42015-05-14 15:39:18 +000013198 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13199 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13200 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13202which seems to be undefined. Please make sure it is defined" >&5
drh8b727472009-01-19 18:18:40 +000013203$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
drhf922ca42015-05-14 15:39:18 +000013204which seems to be undefined. Please make sure it is defined" >&2;}
drh866108f2008-05-13 00:57:21 +000013205
drhf922ca42015-05-14 15:39:18 +000013206 rm -f "$ac_tmp/stdin"
drh866108f2008-05-13 00:57:21 +000013207 case $ac_file in
drhf922ca42015-05-14 15:39:18 +000013208 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13209 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
drh8b727472009-01-19 18:18:40 +000013210 esac \
drhf922ca42015-05-14 15:39:18 +000013211 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013212 ;;
13213 :H)
13214 #
13215 # CONFIG_HEADER
13216 #
drh866108f2008-05-13 00:57:21 +000013217 if test x"$ac_file" != x-; then
drh8b727472009-01-19 18:18:40 +000013218 {
13219 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000013220 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13221 } >"$ac_tmp/config.h" \
13222 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13223 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
drh8b727472009-01-19 18:18:40 +000013225$as_echo "$as_me: $ac_file is unchanged" >&6;}
drh866108f2008-05-13 00:57:21 +000013226 else
drh8b727472009-01-19 18:18:40 +000013227 rm -f "$ac_file"
drhf922ca42015-05-14 15:39:18 +000013228 mv "$ac_tmp/config.h" "$ac_file" \
13229 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000013230 fi
13231 else
drh8b727472009-01-19 18:18:40 +000013232 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000013233 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13234 || as_fn_error $? "could not create -" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000013235 fi
drh8b727472009-01-19 18:18:40 +000013236 ;;
drh866108f2008-05-13 00:57:21 +000013237
drhf922ca42015-05-14 15:39:18 +000013238 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
drh8b727472009-01-19 18:18:40 +000013239$as_echo "$as_me: executing $ac_file commands" >&6;}
13240 ;;
13241 esac
drh866108f2008-05-13 00:57:21 +000013242
13243
drh8b727472009-01-19 18:18:40 +000013244 case $ac_file$ac_mode in
13245 "libtool":C)
mlcreech636a9952008-05-05 22:52:56 +000013246
13247 # See if we are running on zsh, and set the options which allow our
13248 # commands through without removal of \ escapes.
13249 if test -n "${ZSH_VERSION+set}" ; then
13250 setopt NO_GLOB_SUBST
13251 fi
13252
13253 cfgfile="${ofile}T"
13254 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13255 $RM "$cfgfile"
13256
13257 cat <<_LT_EOF >> "$cfgfile"
13258#! $SHELL
13259
13260# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13261# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13262# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13263# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13264#
13265# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13266# 2006, 2007, 2008 Free Software Foundation, Inc.
13267# Written by Gordon Matzigkeit, 1996
13268#
13269# This file is part of GNU Libtool.
13270#
13271# GNU Libtool is free software; you can redistribute it and/or
13272# modify it under the terms of the GNU General Public License as
13273# published by the Free Software Foundation; either version 2 of
13274# the License, or (at your option) any later version.
13275#
13276# As a special exception to the GNU General Public License,
13277# if you distribute this file as part of a program or library that
13278# is built using GNU Libtool, you may include this file under the
13279# same distribution terms that you use for the rest of that program.
13280#
13281# GNU Libtool is distributed in the hope that it will be useful,
13282# but WITHOUT ANY WARRANTY; without even the implied warranty of
13283# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13284# GNU General Public License for more details.
13285#
13286# You should have received a copy of the GNU General Public License
13287# along with GNU Libtool; see the file COPYING. If not, a copy
13288# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13289# obtained by writing to the Free Software Foundation, Inc.,
13290# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13291
13292
13293# The names of the tagged configurations supported by this script.
13294available_tags=""
13295
13296# ### BEGIN LIBTOOL CONFIG
13297
13298# Which release of libtool.m4 was used?
13299macro_version=$macro_version
13300macro_revision=$macro_revision
13301
13302# Whether or not to build shared libraries.
13303build_libtool_libs=$enable_shared
13304
13305# Whether or not to build static libraries.
13306build_old_libs=$enable_static
13307
13308# What type of objects to build.
13309pic_mode=$pic_mode
13310
13311# Whether or not to optimize for fast installation.
13312fast_install=$enable_fast_install
13313
13314# The host system.
13315host_alias=$host_alias
13316host=$host
13317host_os=$host_os
13318
13319# The build system.
13320build_alias=$build_alias
13321build=$build
13322build_os=$build_os
13323
13324# A sed program that does not truncate output.
13325SED=$lt_SED
13326
13327# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13328Xsed="\$SED -e 1s/^X//"
13329
13330# A grep program that handles long lines.
13331GREP=$lt_GREP
13332
13333# An ERE matcher.
13334EGREP=$lt_EGREP
13335
13336# A literal string matcher.
13337FGREP=$lt_FGREP
13338
13339# A BSD- or MS-compatible name lister.
13340NM=$lt_NM
13341
13342# Whether we need soft or hard links.
13343LN_S=$lt_LN_S
13344
13345# What is the maximum length of a command?
13346max_cmd_len=$max_cmd_len
13347
13348# Object file suffix (normally "o").
13349objext=$ac_objext
13350
13351# Executable file suffix (normally "").
13352exeext=$exeext
13353
13354# whether the shell understands "unset".
13355lt_unset=$lt_unset
13356
13357# turn spaces into newlines.
13358SP2NL=$lt_lt_SP2NL
13359
13360# turn newlines into spaces.
13361NL2SP=$lt_lt_NL2SP
13362
13363# How to create reloadable object files.
13364reload_flag=$lt_reload_flag
13365reload_cmds=$lt_reload_cmds
13366
vapier6acb2cf2009-01-28 04:46:28 +000013367# An object symbol dumper.
13368OBJDUMP=$lt_OBJDUMP
13369
mlcreech636a9952008-05-05 22:52:56 +000013370# Method to check whether dependent libraries are shared objects.
13371deplibs_check_method=$lt_deplibs_check_method
13372
13373# Command to use when deplibs_check_method == "file_magic".
13374file_magic_cmd=$lt_file_magic_cmd
13375
13376# The archiver.
13377AR=$lt_AR
13378AR_FLAGS=$lt_AR_FLAGS
13379
13380# A symbol stripping program.
13381STRIP=$lt_STRIP
13382
13383# Commands used to install an old-style archive.
13384RANLIB=$lt_RANLIB
13385old_postinstall_cmds=$lt_old_postinstall_cmds
13386old_postuninstall_cmds=$lt_old_postuninstall_cmds
13387
13388# A C compiler.
13389LTCC=$lt_CC
13390
13391# LTCC compiler flags.
13392LTCFLAGS=$lt_CFLAGS
13393
13394# Take the output of nm and produce a listing of raw symbols and C names.
13395global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13396
13397# Transform the output of nm in a proper C declaration.
13398global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13399
13400# Transform the output of nm in a C name address pair.
13401global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13402
13403# Transform the output of nm in a C name address pair when lib prefix is needed.
13404global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13405
13406# The name of the directory that contains temporary libtool files.
13407objdir=$objdir
13408
13409# Shell to use when invoking shell scripts.
13410SHELL=$lt_SHELL
13411
13412# An echo program that does not interpret backslashes.
13413ECHO=$lt_ECHO
13414
13415# Used to examine libraries when file_magic_cmd begins with "file".
13416MAGIC_CMD=$MAGIC_CMD
13417
13418# Must we lock files when doing compilation?
13419need_locks=$lt_need_locks
13420
13421# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13422DSYMUTIL=$lt_DSYMUTIL
13423
13424# Tool to change global to local symbols on Mac OS X.
13425NMEDIT=$lt_NMEDIT
13426
13427# Tool to manipulate fat objects and archives on Mac OS X.
13428LIPO=$lt_LIPO
13429
13430# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13431OTOOL=$lt_OTOOL
13432
13433# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13434OTOOL64=$lt_OTOOL64
13435
13436# Old archive suffix (normally "a").
13437libext=$libext
13438
13439# Shared library suffix (normally ".so").
13440shrext_cmds=$lt_shrext_cmds
13441
13442# The commands to extract the exported symbol list from a shared archive.
13443extract_expsyms_cmds=$lt_extract_expsyms_cmds
13444
13445# Variables whose values should be saved in libtool wrapper scripts and
13446# restored at link time.
13447variables_saved_for_relink=$lt_variables_saved_for_relink
13448
13449# Do we need the "lib" prefix for modules?
13450need_lib_prefix=$need_lib_prefix
13451
13452# Do we need a version for libraries?
13453need_version=$need_version
13454
13455# Library versioning type.
13456version_type=$version_type
13457
13458# Shared library runtime path variable.
13459runpath_var=$runpath_var
13460
13461# Shared library path variable.
13462shlibpath_var=$shlibpath_var
13463
13464# Is shlibpath searched before the hard-coded library search path?
13465shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13466
13467# Format of library name prefix.
13468libname_spec=$lt_libname_spec
13469
13470# List of archive names. First name is the real one, the rest are links.
13471# The last name is the one that the linker finds with -lNAME
13472library_names_spec=$lt_library_names_spec
13473
13474# The coded name of the library, if different from the real name.
13475soname_spec=$lt_soname_spec
13476
13477# Command to use after installation of a shared archive.
13478postinstall_cmds=$lt_postinstall_cmds
13479
13480# Command to use after uninstallation of a shared archive.
13481postuninstall_cmds=$lt_postuninstall_cmds
13482
13483# Commands used to finish a libtool library installation in a directory.
13484finish_cmds=$lt_finish_cmds
13485
13486# As "finish_cmds", except a single script fragment to be evaled but
13487# not shown.
13488finish_eval=$lt_finish_eval
13489
13490# Whether we should hardcode library paths into libraries.
13491hardcode_into_libs=$hardcode_into_libs
13492
13493# Compile-time system search path for libraries.
13494sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13495
13496# Run-time system search path for libraries.
13497sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13498
13499# Whether dlopen is supported.
13500dlopen_support=$enable_dlopen
13501
13502# Whether dlopen of programs is supported.
13503dlopen_self=$enable_dlopen_self
13504
13505# Whether dlopen of statically linked programs is supported.
13506dlopen_self_static=$enable_dlopen_self_static
13507
13508# Commands to strip libraries.
13509old_striplib=$lt_old_striplib
13510striplib=$lt_striplib
13511
13512
13513# The linker used to build libraries.
13514LD=$lt_LD
13515
13516# Commands used to build an old-style archive.
13517old_archive_cmds=$lt_old_archive_cmds
13518
13519# A language specific compiler.
13520CC=$lt_compiler
13521
13522# Is the compiler the GNU compiler?
13523with_gcc=$GCC
13524
13525# Compiler flag to turn off builtin functions.
13526no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13527
13528# How to pass a linker flag through the compiler.
13529wl=$lt_lt_prog_compiler_wl
13530
13531# Additional compiler flags for building library objects.
13532pic_flag=$lt_lt_prog_compiler_pic
13533
13534# Compiler flag to prevent dynamic linking.
13535link_static_flag=$lt_lt_prog_compiler_static
13536
13537# Does compiler simultaneously support -c and -o options?
13538compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13539
13540# Whether or not to add -lc for building shared libraries.
13541build_libtool_need_lc=$archive_cmds_need_lc
13542
13543# Whether or not to disallow shared libs when runtime libs are static.
13544allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13545
13546# Compiler flag to allow reflexive dlopens.
13547export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13548
13549# Compiler flag to generate shared objects directly from archives.
13550whole_archive_flag_spec=$lt_whole_archive_flag_spec
13551
13552# Whether the compiler copes with passing no objects directly.
13553compiler_needs_object=$lt_compiler_needs_object
13554
13555# Create an old-style archive from a shared archive.
13556old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13557
13558# Create a temporary old-style archive to link instead of a shared archive.
13559old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13560
13561# Commands used to build a shared archive.
13562archive_cmds=$lt_archive_cmds
13563archive_expsym_cmds=$lt_archive_expsym_cmds
13564
13565# Commands used to build a loadable module if different from building
13566# a shared archive.
13567module_cmds=$lt_module_cmds
13568module_expsym_cmds=$lt_module_expsym_cmds
13569
13570# Whether we are building with GNU ld or not.
13571with_gnu_ld=$lt_with_gnu_ld
13572
13573# Flag that allows shared libraries with undefined symbols to be built.
13574allow_undefined_flag=$lt_allow_undefined_flag
13575
13576# Flag that enforces no undefined symbols.
13577no_undefined_flag=$lt_no_undefined_flag
13578
13579# Flag to hardcode \$libdir into a binary during linking.
13580# This must work even if \$libdir does not exist
13581hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13582
13583# If ld is used when linking, flag to hardcode \$libdir into a binary
13584# during linking. This must work even if \$libdir does not exist.
13585hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13586
13587# Whether we need a single "-rpath" flag with a separated argument.
13588hardcode_libdir_separator=$lt_hardcode_libdir_separator
13589
13590# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13591# DIR into the resulting binary.
13592hardcode_direct=$hardcode_direct
13593
13594# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13595# DIR into the resulting binary and the resulting library dependency is
13596# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13597# library is relocated.
13598hardcode_direct_absolute=$hardcode_direct_absolute
13599
13600# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13601# into the resulting binary.
13602hardcode_minus_L=$hardcode_minus_L
13603
13604# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13605# into the resulting binary.
13606hardcode_shlibpath_var=$hardcode_shlibpath_var
13607
13608# Set to "yes" if building a shared library automatically hardcodes DIR
13609# into the library and all subsequent libraries and executables linked
13610# against it.
13611hardcode_automatic=$hardcode_automatic
13612
13613# Set to yes if linker adds runtime paths of dependent libraries
13614# to runtime path list.
13615inherit_rpath=$inherit_rpath
13616
13617# Whether libtool must link a program against all its dependency libraries.
13618link_all_deplibs=$link_all_deplibs
13619
13620# Fix the shell variable \$srcfile for the compiler.
13621fix_srcfile_path=$lt_fix_srcfile_path
13622
13623# Set to "yes" if exported symbols are required.
13624always_export_symbols=$always_export_symbols
13625
13626# The commands to list exported symbols.
13627export_symbols_cmds=$lt_export_symbols_cmds
13628
13629# Symbols that should not be listed in the preloaded symbols.
13630exclude_expsyms=$lt_exclude_expsyms
13631
13632# Symbols that must always be exported.
13633include_expsyms=$lt_include_expsyms
13634
13635# Commands necessary for linking programs (against libraries) with templates.
13636prelink_cmds=$lt_prelink_cmds
13637
13638# Specify filename containing input files.
13639file_list_spec=$lt_file_list_spec
13640
13641# How to hardcode a shared library path into an executable.
13642hardcode_action=$hardcode_action
13643
13644# ### END LIBTOOL CONFIG
13645
13646_LT_EOF
13647
13648 case $host_os in
13649 aix3*)
13650 cat <<\_LT_EOF >> "$cfgfile"
13651# AIX sometimes has problems with the GCC collect2 program. For some
13652# reason, if we set the COLLECT_NAMES environment variable, the problems
13653# vanish in a puff of smoke.
13654if test "X${COLLECT_NAMES+set}" != Xset; then
13655 COLLECT_NAMES=
13656 export COLLECT_NAMES
13657fi
13658_LT_EOF
13659 ;;
13660 esac
13661
13662
13663ltmain="$ac_aux_dir/ltmain.sh"
13664
13665
13666 # We use sed instead of cat because bash on DJGPP gets confused if
13667 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13668 # text mode, it properly converts lines to CR/LF. This bash problem
13669 # is reportedly fixed, but why not run on old versions too?
13670 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13671 || (rm -f "$cfgfile"; exit 1)
13672
13673 case $xsi_shell in
13674 yes)
13675 cat << \_LT_EOF >> "$cfgfile"
13676
13677# func_dirname file append nondir_replacement
13678# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13679# otherwise set result to NONDIR_REPLACEMENT.
13680func_dirname ()
13681{
13682 case ${1} in
13683 */*) func_dirname_result="${1%/*}${2}" ;;
13684 * ) func_dirname_result="${3}" ;;
13685 esac
13686}
13687
13688# func_basename file
13689func_basename ()
13690{
13691 func_basename_result="${1##*/}"
13692}
13693
13694# func_dirname_and_basename file append nondir_replacement
13695# perform func_basename and func_dirname in a single function
13696# call:
13697# dirname: Compute the dirname of FILE. If nonempty,
13698# add APPEND to the result, otherwise set result
13699# to NONDIR_REPLACEMENT.
13700# value returned in "$func_dirname_result"
13701# basename: Compute filename of FILE.
13702# value retuned in "$func_basename_result"
13703# Implementation must be kept synchronized with func_dirname
13704# and func_basename. For efficiency, we do not delegate to
13705# those functions but instead duplicate the functionality here.
13706func_dirname_and_basename ()
13707{
13708 case ${1} in
13709 */*) func_dirname_result="${1%/*}${2}" ;;
13710 * ) func_dirname_result="${3}" ;;
13711 esac
13712 func_basename_result="${1##*/}"
13713}
13714
13715# func_stripname prefix suffix name
13716# strip PREFIX and SUFFIX off of NAME.
13717# PREFIX and SUFFIX must not contain globbing or regex special
13718# characters, hashes, percent signs, but SUFFIX may contain a leading
13719# dot (in which case that matches only a dot).
13720func_stripname ()
13721{
13722 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13723 # positional parameters, so assign one to ordinary parameter first.
13724 func_stripname_result=${3}
13725 func_stripname_result=${func_stripname_result#"${1}"}
13726 func_stripname_result=${func_stripname_result%"${2}"}
13727}
13728
13729# func_opt_split
13730func_opt_split ()
13731{
13732 func_opt_split_opt=${1%%=*}
13733 func_opt_split_arg=${1#*=}
13734}
13735
13736# func_lo2o object
13737func_lo2o ()
13738{
13739 case ${1} in
13740 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13741 *) func_lo2o_result=${1} ;;
13742 esac
13743}
13744
13745# func_xform libobj-or-source
13746func_xform ()
13747{
13748 func_xform_result=${1%.*}.lo
13749}
13750
13751# func_arith arithmetic-term...
13752func_arith ()
13753{
13754 func_arith_result=$(( $* ))
13755}
13756
13757# func_len string
13758# STRING may not start with a hyphen.
13759func_len ()
13760{
13761 func_len_result=${#1}
13762}
13763
13764_LT_EOF
13765 ;;
13766 *) # Bourne compatible functions.
13767 cat << \_LT_EOF >> "$cfgfile"
13768
13769# func_dirname file append nondir_replacement
13770# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13771# otherwise set result to NONDIR_REPLACEMENT.
13772func_dirname ()
13773{
13774 # Extract subdirectory from the argument.
13775 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13776 if test "X$func_dirname_result" = "X${1}"; then
13777 func_dirname_result="${3}"
13778 else
13779 func_dirname_result="$func_dirname_result${2}"
13780 fi
13781}
13782
13783# func_basename file
13784func_basename ()
13785{
13786 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13787}
13788
13789
13790# func_stripname prefix suffix name
13791# strip PREFIX and SUFFIX off of NAME.
13792# PREFIX and SUFFIX must not contain globbing or regex special
13793# characters, hashes, percent signs, but SUFFIX may contain a leading
13794# dot (in which case that matches only a dot).
13795# func_strip_suffix prefix name
13796func_stripname ()
13797{
13798 case ${2} in
13799 .*) func_stripname_result=`$ECHO "X${3}" \
13800 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13801 *) func_stripname_result=`$ECHO "X${3}" \
13802 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13803 esac
13804}
13805
13806# sed scripts:
13807my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13808my_sed_long_arg='1s/^-[^=]*=//'
13809
13810# func_opt_split
13811func_opt_split ()
13812{
13813 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13814 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13815}
13816
13817# func_lo2o object
13818func_lo2o ()
13819{
13820 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13821}
13822
13823# func_xform libobj-or-source
13824func_xform ()
13825{
13826 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13827}
13828
13829# func_arith arithmetic-term...
13830func_arith ()
13831{
13832 func_arith_result=`expr "$@"`
13833}
13834
13835# func_len string
13836# STRING may not start with a hyphen.
13837func_len ()
13838{
13839 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13840}
13841
13842_LT_EOF
13843esac
13844
13845case $lt_shell_append in
13846 yes)
13847 cat << \_LT_EOF >> "$cfgfile"
13848
13849# func_append var value
13850# Append VALUE to the end of shell variable VAR.
13851func_append ()
13852{
13853 eval "$1+=\$2"
13854}
13855_LT_EOF
13856 ;;
13857 *)
13858 cat << \_LT_EOF >> "$cfgfile"
13859
13860# func_append var value
13861# Append VALUE to the end of shell variable VAR.
13862func_append ()
13863{
13864 eval "$1=\$$1\$2"
13865}
13866
13867_LT_EOF
13868 ;;
13869 esac
13870
13871
13872 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13873 || (rm -f "$cfgfile"; exit 1)
13874
13875 mv -f "$cfgfile" "$ofile" ||
13876 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13877 chmod +x "$ofile"
13878
13879 ;;
mlcreech94984912008-03-04 19:03:08 +000013880
drh8b727472009-01-19 18:18:40 +000013881 esac
13882done # for ac_tag
13883
drh71eb93e2001-09-28 01:34:43 +000013884
drhf922ca42015-05-14 15:39:18 +000013885as_fn_exit 0
a.rottmann84e63352003-03-24 09:42:16 +000013886_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013887ac_clean_files=$ac_clean_files_save
13888
drh8b727472009-01-19 18:18:40 +000013889test $ac_write_fail = 0 ||
drhf922ca42015-05-14 15:39:18 +000013890 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013891
a.rottmann84e63352003-03-24 09:42:16 +000013892
drh71eb93e2001-09-28 01:34:43 +000013893# configure is writing to config.log, and then calls config.status.
13894# config.status does its own redirection, appending to config.log.
13895# Unfortunately, on DOS this fails, as config.log is still kept open
13896# by configure, so config.status won't be able to write to it; its
13897# output is simply discarded. So we exec the FD to /dev/null,
13898# effectively closing config.log, so it can be properly (re)opened and
13899# appended to by config.status. When coming back to configure, we
13900# need to make the FD available again.
13901if test "$no_create" != yes; then
13902 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000013903 ac_config_status_args=
13904 test "$silent" = yes &&
13905 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000013906 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000013907 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000013908 exec 5>>config.log
13909 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13910 # would make configure fail if this is the last instruction.
drhf922ca42015-05-14 15:39:18 +000013911 $ac_cs_success || as_fn_exit 1
drh71eb93e2001-09-28 01:34:43 +000013912fi
drh8b727472009-01-19 18:18:40 +000013913if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
drhf922ca42015-05-14 15:39:18 +000013914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13915$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
drh8b727472009-01-19 18:18:40 +000013916fi
drh63a49ce2017-01-02 19:10:14 +000013917