blob: 8e735c6b12116180845739a2046ab92e8537d1ba [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.
drhb68db312017-10-28 20:54:51 +00003# Generated by GNU Autoconf 2.69 for sqlite 3.22.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'
drhb68db312017-10-28 20:54:51 +0000729PACKAGE_VERSION='3.22.0'
730PACKAGE_STRING='sqlite 3.22.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
802VERSION_NUMBER
803RELEASE
804VERSION
805program_prefix
806TCLLIBDIR
807TCLSH_CMD
drhf922ca42015-05-14 15:39:18 +0000808INSTALL_DATA
809INSTALL_SCRIPT
810INSTALL_PROGRAM
811CPP
812OTOOL64
813OTOOL
814LIPO
815NMEDIT
816DSYMUTIL
817lt_ECHO
818RANLIB
819STRIP
820AR
821OBJDUMP
822LN_S
823NM
824ac_ct_DUMPBIN
825DUMPBIN
826LD
827FGREP
828EGREP
829GREP
830SED
831OBJEXT
832EXEEXT
833ac_ct_CC
834CPPFLAGS
835LDFLAGS
836CFLAGS
837CC
838host_os
839host_vendor
840host_cpu
841host
842build_os
843build_vendor
844build_cpu
845build
846LIBTOOL
847target_alias
848host_alias
849build_alias
850LIBS
851ECHO_T
852ECHO_N
853ECHO_C
854DEFS
855mandir
856localedir
857libdir
858psdir
859pdfdir
860dvidir
861htmldir
862infodir
863docdir
864oldincludedir
865includedir
866localstatedir
867sharedstatedir
868sysconfdir
869datadir
870datarootdir
871libexecdir
872sbindir
873bindir
874program_transform_name
875prefix
876exec_prefix
877PACKAGE_URL
878PACKAGE_BUGREPORT
879PACKAGE_STRING
880PACKAGE_VERSION
881PACKAGE_TARNAME
882PACKAGE_NAME
883PATH_SEPARATOR
884SHELL'
a.rottmann84e63352003-03-24 09:42:16 +0000885ac_subst_files=''
drh8b727472009-01-19 18:18:40 +0000886ac_user_opts='
887enable_option_checking
888enable_shared
889enable_static
890with_pic
891enable_fast_install
892with_gnu_ld
893enable_libtool_lock
894enable_largefile
drh8b727472009-01-19 18:18:40 +0000895enable_threadsafe
drh8b727472009-01-19 18:18:40 +0000896enable_releasemode
897enable_tempstore
898enable_tcl
899with_tcl
drhe44b8352015-10-30 14:25:57 +0000900enable_editline
drh8b727472009-01-19 18:18:40 +0000901enable_readline
902with_readline_lib
903with_readline_inc
904enable_debug
905enable_amalgamation
906enable_load_extension
drhc530b9c2016-07-25 11:27:22 +0000907enable_memsys5
drh5d513ba2016-07-25 11:57:21 +0000908enable_memsys3
drhce1d9f52015-10-09 12:48:33 +0000909enable_fts3
910enable_fts4
911enable_fts5
912enable_json1
drh83bebdd2017-08-28 17:00:12 +0000913enable_update_limit
drhce1d9f52015-10-09 12:48:33 +0000914enable_rtree
drh5e18d402016-05-03 13:14:18 +0000915enable_session
drh8b727472009-01-19 18:18:40 +0000916enable_gcov
917'
918 ac_precious_vars='build_alias
919host_alias
920target_alias
921CC
922CFLAGS
923LDFLAGS
924LIBS
925CPPFLAGS
vapier6acb2cf2009-01-28 04:46:28 +0000926CPP
927TCLLIBDIR'
drh8b727472009-01-19 18:18:40 +0000928
drh75897232000-05-29 14:26:00 +0000929
930# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000931ac_init_help=
932ac_init_version=false
drh8b727472009-01-19 18:18:40 +0000933ac_unrecognized_opts=
934ac_unrecognized_sep=
drh75897232000-05-29 14:26:00 +0000935# The variables have the same names as the options, with
936# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000937cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000938exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000939no_create=
drh75897232000-05-29 14:26:00 +0000940no_recursion=
941prefix=NONE
942program_prefix=NONE
943program_suffix=NONE
944program_transform_name=s,x,x,
945silent=
946site=
947srcdir=
drh75897232000-05-29 14:26:00 +0000948verbose=
949x_includes=NONE
950x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000951
952# Installation directory options.
953# These are left unexpanded so users can "make install exec_prefix=/foo"
954# and all the variables that are supposed to be based on exec_prefix
955# by default will actually change.
956# Use braces instead of parens because sh, perl, etc. also accept them.
drh8b727472009-01-19 18:18:40 +0000957# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000958bindir='${exec_prefix}/bin'
959sbindir='${exec_prefix}/sbin'
960libexecdir='${exec_prefix}/libexec'
drh8b727472009-01-19 18:18:40 +0000961datarootdir='${prefix}/share'
962datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000963sysconfdir='${prefix}/etc'
964sharedstatedir='${prefix}/com'
965localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000966includedir='${prefix}/include'
967oldincludedir='/usr/include'
drh8b727472009-01-19 18:18:40 +0000968docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
969infodir='${datarootdir}/info'
970htmldir='${docdir}'
971dvidir='${docdir}'
972pdfdir='${docdir}'
973psdir='${docdir}'
974libdir='${exec_prefix}/lib'
975localedir='${datarootdir}/locale'
976mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000977
drh75897232000-05-29 14:26:00 +0000978ac_prev=
drh8b727472009-01-19 18:18:40 +0000979ac_dashdash=
drh75897232000-05-29 14:26:00 +0000980for ac_option
981do
drh75897232000-05-29 14:26:00 +0000982 # If the previous option needs an argument, assign it.
983 if test -n "$ac_prev"; then
drh8b727472009-01-19 18:18:40 +0000984 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000985 ac_prev=
986 continue
987 fi
988
drh8b727472009-01-19 18:18:40 +0000989 case $ac_option in
drhf922ca42015-05-14 15:39:18 +0000990 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
991 *=) ac_optarg= ;;
992 *) ac_optarg=yes ;;
drh8b727472009-01-19 18:18:40 +0000993 esac
drh75897232000-05-29 14:26:00 +0000994
995 # Accept the important Cygnus configure options, so we can diagnose typos.
996
drh8b727472009-01-19 18:18:40 +0000997 case $ac_dashdash$ac_option in
998 --)
999 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +00001000
1001 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1002 ac_prev=bindir ;;
1003 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +00001004 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001005
1006 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +00001007 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +00001008 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +00001009 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001010
1011 -cache-file | --cache-file | --cache-fil | --cache-fi \
1012 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1013 ac_prev=cache_file ;;
1014 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1015 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +00001016 cache_file=$ac_optarg ;;
1017
1018 --config-cache | -C)
1019 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +00001020
drh8b727472009-01-19 18:18:40 +00001021 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +00001022 ac_prev=datadir ;;
drh8b727472009-01-19 18:18:40 +00001023 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +00001024 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001025
drh8b727472009-01-19 18:18:40 +00001026 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1027 | --dataroo | --dataro | --datar)
1028 ac_prev=datarootdir ;;
1029 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1030 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1031 datarootdir=$ac_optarg ;;
1032
drh75897232000-05-29 14:26:00 +00001033 -disable-* | --disable-*)
drh8b727472009-01-19 18:18:40 +00001034 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001035 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001036 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001037 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001038 ac_useropt_orig=$ac_useropt
1039 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1040 case $ac_user_opts in
1041 *"
1042"enable_$ac_useropt"
1043"*) ;;
1044 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1045 ac_unrecognized_sep=', ';;
1046 esac
1047 eval enable_$ac_useropt=no ;;
1048
1049 -docdir | --docdir | --docdi | --doc | --do)
1050 ac_prev=docdir ;;
1051 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1052 docdir=$ac_optarg ;;
1053
1054 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1055 ac_prev=dvidir ;;
1056 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1057 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001058
1059 -enable-* | --enable-*)
drh8b727472009-01-19 18:18:40 +00001060 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001061 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001062 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001063 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001064 ac_useropt_orig=$ac_useropt
1065 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1066 case $ac_user_opts in
1067 *"
1068"enable_$ac_useropt"
1069"*) ;;
1070 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1071 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001072 esac
drh8b727472009-01-19 18:18:40 +00001073 eval enable_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001074
1075 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1076 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1077 | --exec | --exe | --ex)
1078 ac_prev=exec_prefix ;;
1079 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1080 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1081 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001082 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001083
1084 -gas | --gas | --ga | --g)
1085 # Obsolete; use --with-gas.
1086 with_gas=yes ;;
1087
drh71eb93e2001-09-28 01:34:43 +00001088 -help | --help | --hel | --he | -h)
1089 ac_init_help=long ;;
1090 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1091 ac_init_help=recursive ;;
1092 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1093 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001094
1095 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001096 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001097 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001098 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001099
drh8b727472009-01-19 18:18:40 +00001100 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1101 ac_prev=htmldir ;;
1102 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1103 | --ht=*)
1104 htmldir=$ac_optarg ;;
1105
drh75897232000-05-29 14:26:00 +00001106 -includedir | --includedir | --includedi | --included | --include \
1107 | --includ | --inclu | --incl | --inc)
1108 ac_prev=includedir ;;
1109 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1110 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001111 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001112
1113 -infodir | --infodir | --infodi | --infod | --info | --inf)
1114 ac_prev=infodir ;;
1115 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001116 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001117
1118 -libdir | --libdir | --libdi | --libd)
1119 ac_prev=libdir ;;
1120 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001121 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001122
1123 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1124 | --libexe | --libex | --libe)
1125 ac_prev=libexecdir ;;
1126 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1127 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001128 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001129
drh8b727472009-01-19 18:18:40 +00001130 -localedir | --localedir | --localedi | --localed | --locale)
1131 ac_prev=localedir ;;
1132 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1133 localedir=$ac_optarg ;;
1134
drh75897232000-05-29 14:26:00 +00001135 -localstatedir | --localstatedir | --localstatedi | --localstated \
drh8b727472009-01-19 18:18:40 +00001136 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001137 ac_prev=localstatedir ;;
1138 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh8b727472009-01-19 18:18:40 +00001139 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001140 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001141
1142 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1143 ac_prev=mandir ;;
1144 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001145 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001146
1147 -nfp | --nfp | --nf)
1148 # Obsolete; use --without-fp.
1149 with_fp=no ;;
1150
1151 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001152 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001153 no_create=yes ;;
1154
1155 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1156 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1157 no_recursion=yes ;;
1158
1159 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1160 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1161 | --oldin | --oldi | --old | --ol | --o)
1162 ac_prev=oldincludedir ;;
1163 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1164 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1165 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001166 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001167
1168 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1169 ac_prev=prefix ;;
1170 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001171 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001172
1173 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1174 | --program-pre | --program-pr | --program-p)
1175 ac_prev=program_prefix ;;
1176 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1177 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001178 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001179
1180 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1181 | --program-suf | --program-su | --program-s)
1182 ac_prev=program_suffix ;;
1183 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1184 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001185 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001186
1187 -program-transform-name | --program-transform-name \
1188 | --program-transform-nam | --program-transform-na \
1189 | --program-transform-n | --program-transform- \
1190 | --program-transform | --program-transfor \
1191 | --program-transfo | --program-transf \
1192 | --program-trans | --program-tran \
1193 | --progr-tra | --program-tr | --program-t)
1194 ac_prev=program_transform_name ;;
1195 -program-transform-name=* | --program-transform-name=* \
1196 | --program-transform-nam=* | --program-transform-na=* \
1197 | --program-transform-n=* | --program-transform-=* \
1198 | --program-transform=* | --program-transfor=* \
1199 | --program-transfo=* | --program-transf=* \
1200 | --program-trans=* | --program-tran=* \
1201 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001202 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001203
drh8b727472009-01-19 18:18:40 +00001204 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1205 ac_prev=pdfdir ;;
1206 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1207 pdfdir=$ac_optarg ;;
1208
1209 -psdir | --psdir | --psdi | --psd | --ps)
1210 ac_prev=psdir ;;
1211 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1212 psdir=$ac_optarg ;;
1213
drh75897232000-05-29 14:26:00 +00001214 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1215 | -silent | --silent | --silen | --sile | --sil)
1216 silent=yes ;;
1217
1218 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1219 ac_prev=sbindir ;;
1220 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1221 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001222 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001223
1224 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1225 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1226 | --sharedst | --shareds | --shared | --share | --shar \
1227 | --sha | --sh)
1228 ac_prev=sharedstatedir ;;
1229 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1230 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1231 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1232 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001233 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001234
1235 -site | --site | --sit)
1236 ac_prev=site ;;
1237 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001238 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001239
1240 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1241 ac_prev=srcdir ;;
1242 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001243 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001244
1245 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1246 | --syscon | --sysco | --sysc | --sys | --sy)
1247 ac_prev=sysconfdir ;;
1248 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1249 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001250 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001251
1252 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001253 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001254 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001255 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001256
1257 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1258 verbose=yes ;;
1259
drh71eb93e2001-09-28 01:34:43 +00001260 -version | --version | --versio | --versi | --vers | -V)
1261 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001262
1263 -with-* | --with-*)
drh8b727472009-01-19 18:18:40 +00001264 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001265 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001267 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001268 ac_useropt_orig=$ac_useropt
1269 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1271 *"
1272"with_$ac_useropt"
1273"*) ;;
1274 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1275 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001276 esac
drh8b727472009-01-19 18:18:40 +00001277 eval with_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001278
1279 -without-* | --without-*)
drh8b727472009-01-19 18:18:40 +00001280 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001281 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001282 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001283 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001284 ac_useropt_orig=$ac_useropt
1285 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1286 case $ac_user_opts in
1287 *"
1288"with_$ac_useropt"
1289"*) ;;
1290 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1291 ac_unrecognized_sep=', ';;
1292 esac
1293 eval with_$ac_useropt=no ;;
drh75897232000-05-29 14:26:00 +00001294
1295 --x)
1296 # Obsolete; use --with-x.
1297 with_x=yes ;;
1298
1299 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1300 | --x-incl | --x-inc | --x-in | --x-i)
1301 ac_prev=x_includes ;;
1302 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1303 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001304 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001305
1306 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1307 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1308 ac_prev=x_libraries ;;
1309 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1310 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001311 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001312
drhf922ca42015-05-14 15:39:18 +00001313 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1314Try \`$0 --help' for more information"
drh75897232000-05-29 14:26:00 +00001315 ;;
1316
drh71eb93e2001-09-28 01:34:43 +00001317 *=*)
1318 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1319 # Reject names that are not valid shell variable names.
drhf922ca42015-05-14 15:39:18 +00001320 case $ac_envvar in #(
1321 '' | [0-9]* | *[!_$as_cr_alnum]* )
1322 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1323 esac
drh8b727472009-01-19 18:18:40 +00001324 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001325 export $ac_envvar ;;
1326
drh75897232000-05-29 14:26:00 +00001327 *)
drh71eb93e2001-09-28 01:34:43 +00001328 # FIXME: should be removed in autoconf 3.0.
drh8b727472009-01-19 18:18:40 +00001329 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +00001330 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001331 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drhf922ca42015-05-14 15:39:18 +00001332 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
drh75897232000-05-29 14:26:00 +00001333 ;;
1334
1335 esac
1336done
1337
1338if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001339 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
drhf922ca42015-05-14 15:39:18 +00001340 as_fn_error $? "missing argument to $ac_option"
drh75897232000-05-29 14:26:00 +00001341fi
1342
drh8b727472009-01-19 18:18:40 +00001343if test -n "$ac_unrecognized_opts"; then
1344 case $enable_option_checking in
1345 no) ;;
drhf922ca42015-05-14 15:39:18 +00001346 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1347 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
mlcreech636a9952008-05-05 22:52:56 +00001348 esac
drh8b727472009-01-19 18:18:40 +00001349fi
drh866108f2008-05-13 00:57:21 +00001350
drh8b727472009-01-19 18:18:40 +00001351# Check all directory arguments for consistency.
1352for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1353 datadir sysconfdir sharedstatedir localstatedir includedir \
1354 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1355 libdir localedir mandir
drh866108f2008-05-13 00:57:21 +00001356do
drh8b727472009-01-19 18:18:40 +00001357 eval ac_val=\$$ac_var
1358 # Remove trailing slashes.
drh71eb93e2001-09-28 01:34:43 +00001359 case $ac_val in
drh8b727472009-01-19 18:18:40 +00001360 */ )
1361 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1362 eval $ac_var=\$ac_val;;
drh75897232000-05-29 14:26:00 +00001363 esac
drh8b727472009-01-19 18:18:40 +00001364 # Be sure to have absolute directory names.
1365 case $ac_val in
1366 [\\/$]* | ?:[\\/]* ) continue;;
1367 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1368 esac
drhf922ca42015-05-14 15:39:18 +00001369 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
drh71eb93e2001-09-28 01:34:43 +00001370done
drh75897232000-05-29 14:26:00 +00001371
drh71eb93e2001-09-28 01:34:43 +00001372# There might be people who depend on the old broken behavior: `$host'
1373# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001374# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001375build=$build_alias
1376host=$host_alias
1377target=$target_alias
drh75897232000-05-29 14:26:00 +00001378
a.rottmann84e63352003-03-24 09:42:16 +00001379# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001380if test "x$host_alias" != x; then
1381 if test "x$build_alias" = x; then
1382 cross_compiling=maybe
drh71eb93e2001-09-28 01:34:43 +00001383 elif test "x$build_alias" != "x$host_alias"; then
1384 cross_compiling=yes
1385 fi
1386fi
1387
1388ac_tool_prefix=
1389test -n "$host_alias" && ac_tool_prefix=$host_alias-
1390
1391test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001392
a.rottmann84e63352003-03-24 09:42:16 +00001393
drh8b727472009-01-19 18:18:40 +00001394ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395ac_ls_di=`ls -di .` &&
1396ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
drhf922ca42015-05-14 15:39:18 +00001397 as_fn_error $? "working directory cannot be determined"
drh8b727472009-01-19 18:18:40 +00001398test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
drhf922ca42015-05-14 15:39:18 +00001399 as_fn_error $? "pwd does not report name of working directory"
drh8b727472009-01-19 18:18:40 +00001400
1401
drh75897232000-05-29 14:26:00 +00001402# Find the source files, if location was not specified.
1403if test -z "$srcdir"; then
1404 ac_srcdir_defaulted=yes
drh8b727472009-01-19 18:18:40 +00001405 # Try the directory containing this script, then the parent directory.
1406 ac_confdir=`$as_dirname -- "$as_myself" ||
1407$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1408 X"$as_myself" : 'X\(//\)[^/]' \| \
1409 X"$as_myself" : 'X\(//\)$' \| \
1410 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1411$as_echo X"$as_myself" |
1412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1413 s//\1/
1414 q
1415 }
1416 /^X\(\/\/\)[^/].*/{
1417 s//\1/
1418 q
1419 }
1420 /^X\(\/\/\)$/{
1421 s//\1/
1422 q
1423 }
1424 /^X\(\/\).*/{
1425 s//\1/
1426 q
1427 }
1428 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001429 srcdir=$ac_confdir
drh8b727472009-01-19 18:18:40 +00001430 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001431 srcdir=..
1432 fi
1433else
1434 ac_srcdir_defaulted=no
1435fi
drh8b727472009-01-19 18:18:40 +00001436if test ! -r "$srcdir/$ac_unique_file"; then
1437 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
drhf922ca42015-05-14 15:39:18 +00001438 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
mlcreech94984912008-03-04 19:03:08 +00001439fi
drh8b727472009-01-19 18:18:40 +00001440ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1441ac_abs_confdir=`(
drhf922ca42015-05-14 15:39:18 +00001442 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
drh8b727472009-01-19 18:18:40 +00001443 pwd)`
1444# When building in place, set srcdir=.
1445if test "$ac_abs_confdir" = "$ac_pwd"; then
1446 srcdir=.
1447fi
1448# Remove unnecessary trailing slashes from srcdir.
1449# Double slashes in file names in object file debugging info
1450# mess up M-x gdb in Emacs.
1451case $srcdir in
1452*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1453esac
1454for ac_var in $ac_precious_vars; do
1455 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1456 eval ac_env_${ac_var}_value=\$${ac_var}
1457 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1458 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1459done
drh75897232000-05-29 14:26:00 +00001460
drh71eb93e2001-09-28 01:34:43 +00001461#
1462# Report the --help message.
1463#
1464if test "$ac_init_help" = "long"; then
1465 # Omit some internal or obsolete options to make the list less imposing.
1466 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001467 cat <<_ACEOF
drhb68db312017-10-28 20:54:51 +00001468\`configure' configures sqlite 3.22.0 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001469
1470Usage: $0 [OPTION]... [VAR=VALUE]...
1471
1472To assign environment variables (e.g., CC, CFLAGS...), specify them as
1473VAR=VALUE. See below for descriptions of some of the useful variables.
1474
1475Defaults for the options are specified in brackets.
1476
1477Configuration:
1478 -h, --help display this help and exit
1479 --help=short display options specific to this package
1480 --help=recursive display the short help of all the included packages
1481 -V, --version display version information and exit
drhf922ca42015-05-14 15:39:18 +00001482 -q, --quiet, --silent do not print \`checking ...' messages
drh71eb93e2001-09-28 01:34:43 +00001483 --cache-file=FILE cache test results in FILE [disabled]
1484 -C, --config-cache alias for \`--cache-file=config.cache'
1485 -n, --no-create do not create output files
1486 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1487
drh71eb93e2001-09-28 01:34:43 +00001488Installation directories:
1489 --prefix=PREFIX install architecture-independent files in PREFIX
drh8b727472009-01-19 18:18:40 +00001490 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001491 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh8b727472009-01-19 18:18:40 +00001492 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001493
1494By default, \`make install' will install all the files in
1495\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1496an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1497for instance \`--prefix=\$HOME'.
1498
1499For better control, use the options below.
1500
1501Fine tuning of the installation directories:
drh8b727472009-01-19 18:18:40 +00001502 --bindir=DIR user executables [EPREFIX/bin]
1503 --sbindir=DIR system admin executables [EPREFIX/sbin]
1504 --libexecdir=DIR program executables [EPREFIX/libexec]
1505 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1506 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1507 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1508 --libdir=DIR object code libraries [EPREFIX/lib]
1509 --includedir=DIR C header files [PREFIX/include]
1510 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1511 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1512 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1513 --infodir=DIR info documentation [DATAROOTDIR/info]
1514 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1515 --mandir=DIR man documentation [DATAROOTDIR/man]
1516 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1517 --htmldir=DIR html documentation [DOCDIR]
1518 --dvidir=DIR dvi documentation [DOCDIR]
1519 --pdfdir=DIR pdf documentation [DOCDIR]
1520 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001521_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001522
a.rottmann84e63352003-03-24 09:42:16 +00001523 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001524
1525System types:
1526 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001527 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1528_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001529fi
1530
1531if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001532 case $ac_init_help in
drhb68db312017-10-28 20:54:51 +00001533 short | recursive ) echo "Configuration of sqlite 3.22.0:";;
mlcreechb87057f2008-03-06 07:19:20 +00001534 esac
a.rottmann84e63352003-03-24 09:42:16 +00001535 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001536
1537Optional Features:
drh8b727472009-01-19 18:18:40 +00001538 --disable-option-checking ignore unrecognized --enable/--with options
drh71eb93e2001-09-28 01:34:43 +00001539 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1540 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh8b727472009-01-19 18:18:40 +00001541 --enable-shared[=PKGS] build shared libraries [default=yes]
1542 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001543 --enable-fast-install[=PKGS]
1544 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001545 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001546 --disable-largefile omit support for large files
drh05c7e0b2015-01-10 14:27:17 +00001547 --disable-threadsafe Disable mutexing
drh94e4f822006-02-15 02:00:25 +00001548 --enable-releasemode Support libtool link to release mode
1549 --enable-tempstore Use an in-ram database for temporary tables
1550 (never,no,yes,always)
1551 --disable-tcl do not build TCL extension
drhe44b8352015-10-30 14:25:57 +00001552 --enable-editline enable BSD editline support
1553 --disable-readline disable readline support
drh94e4f822006-02-15 02:00:25 +00001554 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001555 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001556 separately
drh05c7e0b2015-01-10 14:27:17 +00001557 --disable-load-extension
1558 Disable loading of external extensions
drhc530b9c2016-07-25 11:27:22 +00001559 --enable-memsys5 Enable MEMSYS5
drh5d513ba2016-07-25 11:57:21 +00001560 --enable-memsys3 Enable MEMSYS3
drhce1d9f52015-10-09 12:48:33 +00001561 --enable-fts3 Enable the FTS3 extension
1562 --enable-fts4 Enable the FTS4 extension
1563 --enable-fts5 Enable the FTS5 extension
1564 --enable-json1 Enable the JSON1 extension
drh83bebdd2017-08-28 17:00:12 +00001565 --enable-update-limit Enable the UPDATE/DELETE LIMIT clause
drhce1d9f52015-10-09 12:48:33 +00001566 --enable-rtree Enable the RTREE extension
drh5e18d402016-05-03 13:14:18 +00001567 --enable-session Enable the SESSION extension
mlcreechaac7b932008-04-01 02:45:22 +00001568 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001569
1570Optional Packages:
1571 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1572 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001573 --with-pic try to use only PIC/non-PIC objects [default=use
1574 both]
mlcreech636a9952008-05-05 22:52:56 +00001575 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh94e4f822006-02-15 02:00:25 +00001576 --with-tcl=DIR directory containing tcl configuration
1577 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001578 --with-readline-lib specify readline library
1579 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001580
1581Some influential environment variables:
1582 CC C compiler command
1583 CFLAGS C compiler flags
1584 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1585 nonstandard directory <lib dir>
drh8b727472009-01-19 18:18:40 +00001586 LIBS libraries to pass to the linker, e.g. -l<library>
drhf922ca42015-05-14 15:39:18 +00001587 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
drh8b727472009-01-19 18:18:40 +00001588 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001589 CPP C preprocessor
vapier6acb2cf2009-01-28 04:46:28 +00001590 TCLLIBDIR Where to install tcl plugin
drh71eb93e2001-09-28 01:34:43 +00001591
1592Use these variables to override the choices made by `configure' or to help
1593it to find libraries and programs with nonstandard names/locations.
1594
drhf922ca42015-05-14 15:39:18 +00001595Report bugs to the package provider.
a.rottmann84e63352003-03-24 09:42:16 +00001596_ACEOF
drh8b727472009-01-19 18:18:40 +00001597ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001598fi
1599
1600if test "$ac_init_help" = "recursive"; then
1601 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001602 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh8b727472009-01-19 18:18:40 +00001603 test -d "$ac_dir" ||
1604 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1605 continue
a.rottmann84e63352003-03-24 09:42:16 +00001606 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001607
drh8b727472009-01-19 18:18:40 +00001608case "$ac_dir" in
1609.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610*)
1611 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1612 # A ".." for each directory in $ac_dir_suffix.
1613 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1614 case $ac_top_builddir_sub in
1615 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617 esac ;;
1618esac
1619ac_abs_top_builddir=$ac_pwd
1620ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621# for backward compatibility:
1622ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001623
a.rottmann84e63352003-03-24 09:42:16 +00001624case $srcdir in
drh8b727472009-01-19 18:18:40 +00001625 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001626 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +00001627 ac_top_srcdir=$ac_top_builddir_sub
1628 ac_abs_top_srcdir=$ac_pwd ;;
1629 [\\/]* | ?:[\\/]* ) # Absolute name.
drh866108f2008-05-13 00:57:21 +00001630 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +00001631 ac_top_srcdir=$srcdir
1632 ac_abs_top_srcdir=$srcdir ;;
1633 *) # Relative name.
1634 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635 ac_top_srcdir=$ac_top_build_prefix$srcdir
1636 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
drh866108f2008-05-13 00:57:21 +00001637esac
drh8b727472009-01-19 18:18:40 +00001638ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
drh866108f2008-05-13 00:57:21 +00001639
drh8b727472009-01-19 18:18:40 +00001640 cd "$ac_dir" || { ac_status=$?; continue; }
1641 # Check for guested configure.
1642 if test -f "$ac_srcdir/configure.gnu"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645 elif test -f "$ac_srcdir/configure"; then
1646 echo &&
1647 $SHELL "$ac_srcdir/configure" --help=recursive
drh866108f2008-05-13 00:57:21 +00001648 else
drh8b727472009-01-19 18:18:40 +00001649 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1650 fi || ac_status=$?
1651 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001652 done
1653fi
1654
drh8b727472009-01-19 18:18:40 +00001655test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001656if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001657 cat <<\_ACEOF
drhb68db312017-10-28 20:54:51 +00001658sqlite configure 3.22.0
drhf922ca42015-05-14 15:39:18 +00001659generated by GNU Autoconf 2.69
drh71eb93e2001-09-28 01:34:43 +00001660
drhf922ca42015-05-14 15:39:18 +00001661Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001662This configure script is free software; the Free Software Foundation
1663gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001664_ACEOF
drh8b727472009-01-19 18:18:40 +00001665 exit
drh71eb93e2001-09-28 01:34:43 +00001666fi
drhf922ca42015-05-14 15:39:18 +00001667
1668## ------------------------ ##
1669## Autoconf initialization. ##
1670## ------------------------ ##
1671
1672# ac_fn_c_try_compile LINENO
1673# --------------------------
1674# Try to compile conftest.$ac_ext, and return whether this succeeded.
1675ac_fn_c_try_compile ()
1676{
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 rm -f conftest.$ac_objext
1679 if { { ac_try="$ac_compile"
1680case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683esac
1684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685$as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_compile") 2>conftest.err
1687 ac_status=$?
1688 if test -s conftest.err; then
1689 grep -v '^ *+' conftest.err >conftest.er1
1690 cat conftest.er1 >&5
1691 mv -f conftest.er1 conftest.err
1692 fi
1693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1694 test $ac_status = 0; } && {
1695 test -z "$ac_c_werror_flag" ||
1696 test ! -s conftest.err
1697 } && test -s conftest.$ac_objext; then :
1698 ac_retval=0
1699else
1700 $as_echo "$as_me: failed program was:" >&5
1701sed 's/^/| /' conftest.$ac_ext >&5
1702
1703 ac_retval=1
1704fi
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1707
1708} # ac_fn_c_try_compile
1709
1710# ac_fn_c_try_link LINENO
1711# -----------------------
1712# Try to link conftest.$ac_ext, and return whether this succeeded.
1713ac_fn_c_try_link ()
1714{
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 rm -f conftest.$ac_objext conftest$ac_exeext
1717 if { { ac_try="$ac_link"
1718case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721esac
1722eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723$as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_link") 2>conftest.err
1725 ac_status=$?
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1730 fi
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && {
1733 test -z "$ac_c_werror_flag" ||
1734 test ! -s conftest.err
1735 } && test -s conftest$ac_exeext && {
1736 test "$cross_compiling" = yes ||
1737 test -x conftest$ac_exeext
1738 }; then :
1739 ac_retval=0
1740else
1741 $as_echo "$as_me: failed program was:" >&5
1742sed 's/^/| /' conftest.$ac_ext >&5
1743
1744 ac_retval=1
1745fi
1746 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1747 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1748 # interfere with the next link command; also delete a directory that is
1749 # left behind by Apple's compiler. We do this before executing the actions.
1750 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 as_fn_set_status $ac_retval
1753
1754} # ac_fn_c_try_link
1755
1756# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1757# -------------------------------------------------------
1758# Tests whether HEADER exists and can be compiled using the include files in
1759# INCLUDES, setting the cache variable VAR accordingly.
1760ac_fn_c_check_header_compile ()
1761{
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764$as_echo_n "checking for $2... " >&6; }
1765if eval \${$3+:} false; then :
1766 $as_echo_n "(cached) " >&6
1767else
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769/* end confdefs.h. */
1770$4
1771#include <$2>
1772_ACEOF
1773if ac_fn_c_try_compile "$LINENO"; then :
1774 eval "$3=yes"
1775else
1776 eval "$3=no"
1777fi
1778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1779fi
1780eval ac_res=\$$3
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1782$as_echo "$ac_res" >&6; }
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784
1785} # ac_fn_c_check_header_compile
1786
1787# ac_fn_c_try_cpp LINENO
1788# ----------------------
1789# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1790ac_fn_c_try_cpp ()
1791{
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 if { { ac_try="$ac_cpp conftest.$ac_ext"
1794case "(($ac_try" in
1795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1796 *) ac_try_echo=$ac_try;;
1797esac
1798eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1799$as_echo "$ac_try_echo"; } >&5
1800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1801 ac_status=$?
1802 if test -s conftest.err; then
1803 grep -v '^ *+' conftest.err >conftest.er1
1804 cat conftest.er1 >&5
1805 mv -f conftest.er1 conftest.err
1806 fi
1807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808 test $ac_status = 0; } > conftest.i && {
1809 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1810 test ! -s conftest.err
1811 }; then :
1812 ac_retval=0
1813else
1814 $as_echo "$as_me: failed program was:" >&5
1815sed 's/^/| /' conftest.$ac_ext >&5
1816
1817 ac_retval=1
1818fi
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820 as_fn_set_status $ac_retval
1821
1822} # ac_fn_c_try_cpp
1823
1824# ac_fn_c_try_run LINENO
1825# ----------------------
1826# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1827# that executables *can* be run.
1828ac_fn_c_try_run ()
1829{
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 if { { ac_try="$ac_link"
1832case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835esac
1836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837$as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_link") 2>&5
1839 ac_status=$?
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1842 { { case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845esac
1846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847$as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_try") 2>&5
1849 ac_status=$?
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; }; }; then :
1852 ac_retval=0
1853else
1854 $as_echo "$as_me: program exited with status $ac_status" >&5
1855 $as_echo "$as_me: failed program was:" >&5
1856sed 's/^/| /' conftest.$ac_ext >&5
1857
1858 ac_retval=$ac_status
1859fi
1860 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862 as_fn_set_status $ac_retval
1863
1864} # ac_fn_c_try_run
1865
1866# ac_fn_c_check_func LINENO FUNC VAR
1867# ----------------------------------
1868# Tests whether FUNC exists, setting the cache variable VAR accordingly
1869ac_fn_c_check_func ()
1870{
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873$as_echo_n "checking for $2... " >&6; }
1874if eval \${$3+:} false; then :
1875 $as_echo_n "(cached) " >&6
1876else
1877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1878/* end confdefs.h. */
1879/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1881#define $2 innocuous_$2
1882
1883/* System header to define __stub macros and hopefully few prototypes,
1884 which can conflict with char $2 (); below.
1885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1886 <limits.h> exists even on freestanding compilers. */
1887
1888#ifdef __STDC__
1889# include <limits.h>
1890#else
1891# include <assert.h>
1892#endif
1893
1894#undef $2
1895
1896/* Override any GCC internal prototype to avoid an error.
1897 Use char because int might match the return type of a GCC
1898 builtin and then its argument prototype would still apply. */
1899#ifdef __cplusplus
1900extern "C"
1901#endif
1902char $2 ();
1903/* The GNU C library defines this for functions which it implements
1904 to always fail with ENOSYS. Some functions are actually named
1905 something starting with __ and the normal name is an alias. */
1906#if defined __stub_$2 || defined __stub___$2
1907choke me
1908#endif
1909
1910int
1911main ()
1912{
1913return $2 ();
1914 ;
1915 return 0;
1916}
1917_ACEOF
1918if ac_fn_c_try_link "$LINENO"; then :
1919 eval "$3=yes"
1920else
1921 eval "$3=no"
1922fi
1923rm -f core conftest.err conftest.$ac_objext \
1924 conftest$ac_exeext conftest.$ac_ext
1925fi
1926eval ac_res=\$$3
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928$as_echo "$ac_res" >&6; }
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930
1931} # ac_fn_c_check_func
1932
1933# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1934# -------------------------------------------
1935# Tests whether TYPE exists after having included INCLUDES, setting cache
1936# variable VAR accordingly.
1937ac_fn_c_check_type ()
1938{
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1941$as_echo_n "checking for $2... " >&6; }
1942if eval \${$3+:} false; then :
1943 $as_echo_n "(cached) " >&6
1944else
1945 eval "$3=no"
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947/* end confdefs.h. */
1948$4
1949int
1950main ()
1951{
1952if (sizeof ($2))
1953 return 0;
1954 ;
1955 return 0;
1956}
1957_ACEOF
1958if ac_fn_c_try_compile "$LINENO"; then :
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960/* end confdefs.h. */
1961$4
1962int
1963main ()
1964{
1965if (sizeof (($2)))
1966 return 0;
1967 ;
1968 return 0;
1969}
1970_ACEOF
1971if ac_fn_c_try_compile "$LINENO"; then :
1972
1973else
1974 eval "$3=yes"
1975fi
1976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977fi
1978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979fi
1980eval ac_res=\$$3
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982$as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984
1985} # ac_fn_c_check_type
1986
1987# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1988# -------------------------------------------------------
1989# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1990# the include files in INCLUDES and setting the cache variable VAR
1991# accordingly.
1992ac_fn_c_check_header_mongrel ()
1993{
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 if eval \${$3+:} false; then :
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997$as_echo_n "checking for $2... " >&6; }
1998if eval \${$3+:} false; then :
1999 $as_echo_n "(cached) " >&6
2000fi
2001eval ac_res=\$$3
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003$as_echo "$ac_res" >&6; }
2004else
2005 # Is the header compilable?
2006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2007$as_echo_n "checking $2 usability... " >&6; }
2008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009/* end confdefs.h. */
2010$4
2011#include <$2>
2012_ACEOF
2013if ac_fn_c_try_compile "$LINENO"; then :
2014 ac_header_compiler=yes
2015else
2016 ac_header_compiler=no
2017fi
2018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2020$as_echo "$ac_header_compiler" >&6; }
2021
2022# Is the header present?
2023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2024$as_echo_n "checking $2 presence... " >&6; }
2025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026/* end confdefs.h. */
2027#include <$2>
2028_ACEOF
2029if ac_fn_c_try_cpp "$LINENO"; then :
2030 ac_header_preproc=yes
2031else
2032 ac_header_preproc=no
2033fi
2034rm -f conftest.err conftest.i conftest.$ac_ext
2035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2036$as_echo "$ac_header_preproc" >&6; }
2037
2038# So? What about this header?
2039case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2040 yes:no: )
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2042$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2044$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2045 ;;
2046 no:yes:* )
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2048$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2050$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2052$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2054$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2056$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2057 ;;
2058esac
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060$as_echo_n "checking for $2... " >&6; }
2061if eval \${$3+:} false; then :
2062 $as_echo_n "(cached) " >&6
2063else
2064 eval "$3=\$ac_header_compiler"
2065fi
2066eval ac_res=\$$3
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068$as_echo "$ac_res" >&6; }
2069fi
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071
2072} # ac_fn_c_check_header_mongrel
drh8b727472009-01-19 18:18:40 +00002073cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002074This file contains any messages produced by compilers while
2075running configure, to aid debugging if configure makes a mistake.
2076
drhb68db312017-10-28 20:54:51 +00002077It was created by sqlite $as_me 3.22.0, which was
drhf922ca42015-05-14 15:39:18 +00002078generated by GNU Autoconf 2.69. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00002079
2080 $ $0 $@
2081
a.rottmann84e63352003-03-24 09:42:16 +00002082_ACEOF
drh8b727472009-01-19 18:18:40 +00002083exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00002084{
2085cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002086## --------- ##
2087## Platform. ##
2088## --------- ##
drh71eb93e2001-09-28 01:34:43 +00002089
2090hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2091uname -m = `(uname -m) 2>/dev/null || echo unknown`
2092uname -r = `(uname -r) 2>/dev/null || echo unknown`
2093uname -s = `(uname -s) 2>/dev/null || echo unknown`
2094uname -v = `(uname -v) 2>/dev/null || echo unknown`
2095
2096/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2097/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2098
2099/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2100/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2101/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh8b727472009-01-19 18:18:40 +00002102/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00002103/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2104/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2105/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2106
drh71eb93e2001-09-28 01:34:43 +00002107_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002108
2109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110for as_dir in $PATH
2111do
2112 IFS=$as_save_IFS
2113 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002114 $as_echo "PATH: $as_dir"
2115 done
drh8b727472009-01-19 18:18:40 +00002116IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00002117
drh71eb93e2001-09-28 01:34:43 +00002118} >&5
2119
a.rottmann84e63352003-03-24 09:42:16 +00002120cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002121
a.rottmann84e63352003-03-24 09:42:16 +00002122
2123## ----------- ##
2124## Core tests. ##
2125## ----------- ##
2126
2127_ACEOF
2128
drh71eb93e2001-09-28 01:34:43 +00002129
2130# Keep a trace of the command line.
2131# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00002132# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00002133# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00002134# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00002135ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00002136ac_configure_args0=
2137ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00002138ac_must_keep_next=false
2139for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00002140do
a.rottmann84e63352003-03-24 09:42:16 +00002141 for ac_arg
2142 do
2143 case $ac_arg in
2144 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2146 | -silent | --silent | --silen | --sile | --sil)
2147 continue ;;
drh8b727472009-01-19 18:18:40 +00002148 *\'*)
2149 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002150 esac
2151 case $ac_pass in
drhf922ca42015-05-14 15:39:18 +00002152 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
a.rottmann84e63352003-03-24 09:42:16 +00002153 2)
drhf922ca42015-05-14 15:39:18 +00002154 as_fn_append ac_configure_args1 " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002155 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00002156 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00002157 else
a.rottmann964dbb12004-02-26 19:47:42 +00002158 case $ac_arg in
2159 *=* | --config-cache | -C | -disable-* | --disable-* \
2160 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2161 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2162 | -with-* | --with-* | -without-* | --without-* | --x)
2163 case "$ac_configure_args0 " in
2164 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2165 esac
2166 ;;
2167 -* ) ac_must_keep_next=true ;;
2168 esac
a.rottmann84e63352003-03-24 09:42:16 +00002169 fi
drhf922ca42015-05-14 15:39:18 +00002170 as_fn_append ac_configure_args " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002171 ;;
2172 esac
2173 done
drh71eb93e2001-09-28 01:34:43 +00002174done
drhf922ca42015-05-14 15:39:18 +00002175{ ac_configure_args0=; unset ac_configure_args0;}
2176{ ac_configure_args1=; unset ac_configure_args1;}
drh71eb93e2001-09-28 01:34:43 +00002177
2178# When interrupted or exit'd, cleanup temporary files, and complete
2179# config.log. We remove comments because anyway the quotes in there
2180# would cause problems or look ugly.
drh8b727472009-01-19 18:18:40 +00002181# WARNING: Use '\'' to represent an apostrophe within the trap.
2182# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00002183trap 'exit_status=$?
2184 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00002185 {
2186 echo
2187
drhf922ca42015-05-14 15:39:18 +00002188 $as_echo "## ---------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002189## Cache variables. ##
drhf922ca42015-05-14 15:39:18 +00002190## ---------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002191 echo
2192 # The following way of writing the cache mishandles newlines in values,
drh8b727472009-01-19 18:18:40 +00002193(
2194 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2195 eval ac_val=\$$ac_var
2196 case $ac_val in #(
2197 *${as_nl}*)
2198 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +00002199 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2200$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +00002201 esac
2202 case $ac_var in #(
2203 _ | IFS | as_nl) ;; #(
2204 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +00002205 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +00002206 esac ;;
2207 esac
2208 done
drh71eb93e2001-09-28 01:34:43 +00002209 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +00002210 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2211 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00002212 sed -n \
drh8b727472009-01-19 18:18:40 +00002213 "s/'\''/'\''\\\\'\'''\''/g;
2214 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2215 ;; #(
drh866108f2008-05-13 00:57:21 +00002216 *)
drh8b727472009-01-19 18:18:40 +00002217 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh866108f2008-05-13 00:57:21 +00002218 ;;
drh8b727472009-01-19 18:18:40 +00002219 esac |
2220 sort
2221)
a.rottmann84e63352003-03-24 09:42:16 +00002222 echo
2223
drhf922ca42015-05-14 15:39:18 +00002224 $as_echo "## ----------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002225## Output variables. ##
drhf922ca42015-05-14 15:39:18 +00002226## ----------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002227 echo
2228 for ac_var in $ac_subst_vars
2229 do
drh8b727472009-01-19 18:18:40 +00002230 eval ac_val=\$$ac_var
2231 case $ac_val in
2232 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2233 esac
2234 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002235 done | sort
2236 echo
2237
2238 if test -n "$ac_subst_files"; then
drhf922ca42015-05-14 15:39:18 +00002239 $as_echo "## ------------------- ##
drh8b727472009-01-19 18:18:40 +00002240## File substitutions. ##
drhf922ca42015-05-14 15:39:18 +00002241## ------------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002242 echo
2243 for ac_var in $ac_subst_files
2244 do
drh8b727472009-01-19 18:18:40 +00002245 eval ac_val=\$$ac_var
2246 case $ac_val in
2247 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2248 esac
2249 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002250 done | sort
2251 echo
2252 fi
2253
2254 if test -s confdefs.h; then
drhf922ca42015-05-14 15:39:18 +00002255 $as_echo "## ----------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002256## confdefs.h. ##
drhf922ca42015-05-14 15:39:18 +00002257## ----------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002258 echo
drh8b727472009-01-19 18:18:40 +00002259 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00002260 echo
2261 fi
2262 test "$ac_signal" != 0 &&
drh8b727472009-01-19 18:18:40 +00002263 $as_echo "$as_me: caught signal $ac_signal"
2264 $as_echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00002265 } >&5
drh8b727472009-01-19 18:18:40 +00002266 rm -f core *.core core.conftest.* &&
2267 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00002268 exit $exit_status
drh8b727472009-01-19 18:18:40 +00002269' 0
drh71eb93e2001-09-28 01:34:43 +00002270for ac_signal in 1 2 13 15; do
drhf922ca42015-05-14 15:39:18 +00002271 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
drh71eb93e2001-09-28 01:34:43 +00002272done
2273ac_signal=0
2274
2275# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh8b727472009-01-19 18:18:40 +00002276rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00002277
drhf922ca42015-05-14 15:39:18 +00002278$as_echo "/* confdefs.h */" > confdefs.h
2279
a.rottmann84e63352003-03-24 09:42:16 +00002280# Predefined preprocessor variables.
2281
2282cat >>confdefs.h <<_ACEOF
2283#define PACKAGE_NAME "$PACKAGE_NAME"
2284_ACEOF
2285
a.rottmann84e63352003-03-24 09:42:16 +00002286cat >>confdefs.h <<_ACEOF
2287#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2288_ACEOF
2289
a.rottmann84e63352003-03-24 09:42:16 +00002290cat >>confdefs.h <<_ACEOF
2291#define PACKAGE_VERSION "$PACKAGE_VERSION"
2292_ACEOF
2293
a.rottmann84e63352003-03-24 09:42:16 +00002294cat >>confdefs.h <<_ACEOF
2295#define PACKAGE_STRING "$PACKAGE_STRING"
2296_ACEOF
2297
dana9f39fd2011-08-12 16:34:42 +00002298cat >>confdefs.h <<_ACEOF
drh710658c2012-01-16 13:00:05 +00002299#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
dana9f39fd2011-08-12 16:34:42 +00002300_ACEOF
2301
drhf922ca42015-05-14 15:39:18 +00002302cat >>confdefs.h <<_ACEOF
2303#define PACKAGE_URL "$PACKAGE_URL"
2304_ACEOF
2305
a.rottmann84e63352003-03-24 09:42:16 +00002306
drh71eb93e2001-09-28 01:34:43 +00002307# Let the site file select an alternate cache file if it wants to.
drh8b727472009-01-19 18:18:40 +00002308# Prefer an explicitly selected file to automatically selected ones.
2309ac_site_file1=NONE
2310ac_site_file2=NONE
2311if test -n "$CONFIG_SITE"; then
drhf922ca42015-05-14 15:39:18 +00002312 # We do not want a PATH search for config.site.
2313 case $CONFIG_SITE in #((
2314 -*) ac_site_file1=./$CONFIG_SITE;;
2315 */*) ac_site_file1=$CONFIG_SITE;;
2316 *) ac_site_file1=./$CONFIG_SITE;;
2317 esac
drh8b727472009-01-19 18:18:40 +00002318elif test "x$prefix" != xNONE; then
2319 ac_site_file1=$prefix/share/config.site
2320 ac_site_file2=$prefix/etc/config.site
2321else
2322 ac_site_file1=$ac_default_prefix/share/config.site
2323 ac_site_file2=$ac_default_prefix/etc/config.site
drh75897232000-05-29 14:26:00 +00002324fi
drh8b727472009-01-19 18:18:40 +00002325for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2326do
2327 test "x$ac_site_file" = xNONE && continue
drhf922ca42015-05-14 15:39:18 +00002328 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
drh8b727472009-01-19 18:18:40 +00002330$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00002331 sed 's/^/| /' "$ac_site_file" >&5
drhf922ca42015-05-14 15:39:18 +00002332 . "$ac_site_file" \
2333 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2335as_fn_error $? "failed to load site script $ac_site_file
2336See \`config.log' for more details" "$LINENO" 5; }
drh75897232000-05-29 14:26:00 +00002337 fi
2338done
2339
2340if test -r "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +00002341 # Some versions of bash will fail to source /dev/null (special files
2342 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2343 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002345$as_echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002346 case $cache_file in
drh8b727472009-01-19 18:18:40 +00002347 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2348 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00002349 esac
2350 fi
drh75897232000-05-29 14:26:00 +00002351else
drhf922ca42015-05-14 15:39:18 +00002352 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002353$as_echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002354 >$cache_file
2355fi
2356
2357# Check that the precious variables saved in the cache have kept the same
2358# value.
2359ac_cache_corrupted=false
drh8b727472009-01-19 18:18:40 +00002360for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00002361 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2362 eval ac_new_set=\$ac_env_${ac_var}_set
drh8b727472009-01-19 18:18:40 +00002363 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2364 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00002365 case $ac_old_set,$ac_new_set in
2366 set,)
drhf922ca42015-05-14 15:39:18 +00002367 { $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 +00002368$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002369 ac_cache_corrupted=: ;;
2370 ,set)
drhf922ca42015-05-14 15:39:18 +00002371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00002372$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002373 ac_cache_corrupted=: ;;
2374 ,);;
2375 *)
2376 if test "x$ac_old_val" != "x$ac_new_val"; then
drh8b727472009-01-19 18:18:40 +00002377 # differences in whitespace do not lead to failure.
2378 ac_old_val_w=`echo x $ac_old_val`
2379 ac_new_val_w=`echo x $ac_new_val`
2380 if test "$ac_old_val_w" != "$ac_new_val_w"; then
drhf922ca42015-05-14 15:39:18 +00002381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00002382$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2383 ac_cache_corrupted=:
2384 else
drhf922ca42015-05-14 15:39:18 +00002385 { $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 +00002386$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2387 eval $ac_var=\$ac_old_val
2388 fi
drhf922ca42015-05-14 15:39:18 +00002389 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
drh8b727472009-01-19 18:18:40 +00002390$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
drhf922ca42015-05-14 15:39:18 +00002391 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
drh8b727472009-01-19 18:18:40 +00002392$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002393 fi;;
2394 esac
a.rottmann84e63352003-03-24 09:42:16 +00002395 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00002396 if test "$ac_new_set" = set; then
2397 case $ac_new_val in
drh8b727472009-01-19 18:18:40 +00002398 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002399 *) ac_arg=$ac_var=$ac_new_val ;;
2400 esac
2401 case " $ac_configure_args " in
2402 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
drhf922ca42015-05-14 15:39:18 +00002403 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00002404 esac
2405 fi
2406done
2407if $ac_cache_corrupted; then
drhf922ca42015-05-14 15:39:18 +00002408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2409$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
drh8b727472009-01-19 18:18:40 +00002411$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
drhf922ca42015-05-14 15:39:18 +00002412 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
drh75897232000-05-29 14:26:00 +00002413fi
drhf922ca42015-05-14 15:39:18 +00002414## -------------------- ##
2415## Main body of script. ##
2416## -------------------- ##
drh8b727472009-01-19 18:18:40 +00002417
drh75897232000-05-29 14:26:00 +00002418ac_ext=c
drh75897232000-05-29 14:26:00 +00002419ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00002420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2422ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00002423
a.rottmann84e63352003-03-24 09:42:16 +00002424
2425
drh04446102009-06-15 00:04:06 +00002426sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
vapierfaa68db2009-04-01 07:38:31 +00002427if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
drhf922ca42015-05-14 15:39:18 +00002428as_fn_error $? "configure script is out of date:
vapierfaa68db2009-04-01 07:38:31 +00002429 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2430 top level VERSION file = $sqlite_version_sanity_check
drhf922ca42015-05-14 15:39:18 +00002431please regen with autoconf" "$LINENO" 5
vapierfaa68db2009-04-01 07:38:31 +00002432fi
2433
drh75897232000-05-29 14:26:00 +00002434#########
drh71eb93e2001-09-28 01:34:43 +00002435# Programs needed
drh75897232000-05-29 14:26:00 +00002436#
mlcreech636a9952008-05-05 22:52:56 +00002437case `pwd` in
2438 *\ * | *\ *)
drhf922ca42015-05-14 15:39:18 +00002439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
drh8b727472009-01-19 18:18:40 +00002440$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00002441esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002442
mlcreech94984912008-03-04 19:03:08 +00002443
mlcreech636a9952008-05-05 22:52:56 +00002444
vapier6acb2cf2009-01-28 04:46:28 +00002445macro_version='2.2.6'
2446macro_revision='1.3012'
a.rottmann9bc8b932004-02-29 15:18:31 +00002447
mlcreech94984912008-03-04 19:03:08 +00002448
mlcreech94984912008-03-04 19:03:08 +00002449
a.rottmann9bc8b932004-02-29 15:18:31 +00002450
mlcreech636a9952008-05-05 22:52:56 +00002451
2452
2453
2454
2455
2456
2457
2458
2459
2460ltmain="$ac_aux_dir/ltmain.sh"
2461
drh71eb93e2001-09-28 01:34:43 +00002462ac_aux_dir=
drh8b727472009-01-19 18:18:40 +00002463for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
drh0fe0c462011-09-22 00:56:38 +00002464 if test -f "$ac_dir/install-sh"; then
2465 ac_aux_dir=$ac_dir
2466 ac_install_sh="$ac_aux_dir/install-sh -c"
2467 break
2468 elif test -f "$ac_dir/install.sh"; then
2469 ac_aux_dir=$ac_dir
2470 ac_install_sh="$ac_aux_dir/install.sh -c"
2471 break
2472 elif test -f "$ac_dir/shtool"; then
2473 ac_aux_dir=$ac_dir
2474 ac_install_sh="$ac_aux_dir/shtool install -c"
2475 break
2476 fi
drh71eb93e2001-09-28 01:34:43 +00002477done
2478if test -z "$ac_aux_dir"; then
drhf922ca42015-05-14 15:39:18 +00002479 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002480fi
drh8b727472009-01-19 18:18:40 +00002481
2482# These three variables are undocumented and unsupported,
2483# and are intended to be withdrawn in a future Autoconf release.
2484# They can cause serious problems if a builder's source tree is in a directory
2485# whose full name contains unusual characters.
2486ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2487ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2488ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2489
drh71eb93e2001-09-28 01:34:43 +00002490
2491# Make sure we can run config.sub.
drh8b727472009-01-19 18:18:40 +00002492$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
drhf922ca42015-05-14 15:39:18 +00002493 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002494
drhf922ca42015-05-14 15:39:18 +00002495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
drh8b727472009-01-19 18:18:40 +00002496$as_echo_n "checking build system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002497if ${ac_cv_build+:} false; then :
drh8b727472009-01-19 18:18:40 +00002498 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002499else
drh8b727472009-01-19 18:18:40 +00002500 ac_build_alias=$build_alias
2501test "x$ac_build_alias" = x &&
2502 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2503test "x$ac_build_alias" = x &&
drhf922ca42015-05-14 15:39:18 +00002504 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002505ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
drhf922ca42015-05-14 15:39:18 +00002506 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002507
2508fi
drhf922ca42015-05-14 15:39:18 +00002509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
drh8b727472009-01-19 18:18:40 +00002510$as_echo "$ac_cv_build" >&6; }
2511case $ac_cv_build in
2512*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002513*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002514esac
drh71eb93e2001-09-28 01:34:43 +00002515build=$ac_cv_build
drh8b727472009-01-19 18:18:40 +00002516ac_save_IFS=$IFS; IFS='-'
2517set x $ac_cv_build
2518shift
2519build_cpu=$1
2520build_vendor=$2
2521shift; shift
2522# Remember, the first character of IFS is used to create $*,
2523# except with old shells:
2524build_os=$*
2525IFS=$ac_save_IFS
2526case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002527
a.rottmann84e63352003-03-24 09:42:16 +00002528
drhf922ca42015-05-14 15:39:18 +00002529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
drh8b727472009-01-19 18:18:40 +00002530$as_echo_n "checking host system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002531if ${ac_cv_host+:} false; then :
drh8b727472009-01-19 18:18:40 +00002532 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002533else
drh8b727472009-01-19 18:18:40 +00002534 if test "x$host_alias" = x; then
2535 ac_cv_host=$ac_cv_build
2536else
2537 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
drhf922ca42015-05-14 15:39:18 +00002538 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002539fi
drh71eb93e2001-09-28 01:34:43 +00002540
2541fi
drhf922ca42015-05-14 15:39:18 +00002542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
drh8b727472009-01-19 18:18:40 +00002543$as_echo "$ac_cv_host" >&6; }
2544case $ac_cv_host in
2545*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002546*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002547esac
drh71eb93e2001-09-28 01:34:43 +00002548host=$ac_cv_host
drh8b727472009-01-19 18:18:40 +00002549ac_save_IFS=$IFS; IFS='-'
2550set x $ac_cv_host
2551shift
2552host_cpu=$1
2553host_vendor=$2
2554shift; shift
2555# Remember, the first character of IFS is used to create $*,
2556# except with old shells:
2557host_os=$*
2558IFS=$ac_save_IFS
2559case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002560
a.rottmann84e63352003-03-24 09:42:16 +00002561
drh71eb93e2001-09-28 01:34:43 +00002562ac_ext=c
2563ac_cpp='$CPP $CPPFLAGS'
2564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2566ac_compiler_gnu=$ac_cv_c_compiler_gnu
2567if test -n "$ac_tool_prefix"; then
2568 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2569set dummy ${ac_tool_prefix}gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002571$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002572if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002573 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002574else
2575 if test -n "$CC"; then
2576 ac_cv_prog_CC="$CC" # Let the user override the test.
2577else
a.rottmann84e63352003-03-24 09:42:16 +00002578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579for as_dir in $PATH
2580do
2581 IFS=$as_save_IFS
2582 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002583 for ac_exec_ext in '' $ac_executable_extensions; do
2584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002585 ac_cv_prog_CC="${ac_tool_prefix}gcc"
drhf922ca42015-05-14 15:39:18 +00002586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002587 break 2
2588 fi
2589done
drhf922ca42015-05-14 15:39:18 +00002590 done
drh8b727472009-01-19 18:18:40 +00002591IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002592
2593fi
2594fi
2595CC=$ac_cv_prog_CC
2596if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002598$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002599else
drhf922ca42015-05-14 15:39:18 +00002600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002601$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002602fi
2603
drh8b727472009-01-19 18:18:40 +00002604
drh71eb93e2001-09-28 01:34:43 +00002605fi
2606if test -z "$ac_cv_prog_CC"; then
2607 ac_ct_CC=$CC
2608 # Extract the first word of "gcc", so it can be a program name with args.
2609set dummy gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002611$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002612if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002613 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002614else
2615 if test -n "$ac_ct_CC"; then
2616 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2617else
a.rottmann84e63352003-03-24 09:42:16 +00002618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619for as_dir in $PATH
2620do
2621 IFS=$as_save_IFS
2622 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002625 ac_cv_prog_ac_ct_CC="gcc"
drhf922ca42015-05-14 15:39:18 +00002626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002627 break 2
2628 fi
2629done
drhf922ca42015-05-14 15:39:18 +00002630 done
drh8b727472009-01-19 18:18:40 +00002631IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002632
2633fi
2634fi
2635ac_ct_CC=$ac_cv_prog_ac_ct_CC
2636if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002638$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002639else
drhf922ca42015-05-14 15:39:18 +00002640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002641$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002642fi
2643
drh8b727472009-01-19 18:18:40 +00002644 if test "x$ac_ct_CC" = x; then
2645 CC=""
2646 else
2647 case $cross_compiling:$ac_tool_warned in
2648yes:)
drhf922ca42015-05-14 15:39:18 +00002649{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2650$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002651ac_tool_warned=yes ;;
2652esac
2653 CC=$ac_ct_CC
2654 fi
drh71eb93e2001-09-28 01:34:43 +00002655else
2656 CC="$ac_cv_prog_CC"
2657fi
2658
2659if test -z "$CC"; then
drh8b727472009-01-19 18:18:40 +00002660 if test -n "$ac_tool_prefix"; then
2661 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002662set dummy ${ac_tool_prefix}cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002664$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002665if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002666 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002667else
2668 if test -n "$CC"; then
2669 ac_cv_prog_CC="$CC" # Let the user override the test.
2670else
a.rottmann84e63352003-03-24 09:42:16 +00002671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672for as_dir in $PATH
2673do
2674 IFS=$as_save_IFS
2675 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002676 for ac_exec_ext in '' $ac_executable_extensions; do
2677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002678 ac_cv_prog_CC="${ac_tool_prefix}cc"
drhf922ca42015-05-14 15:39:18 +00002679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002680 break 2
2681 fi
2682done
drhf922ca42015-05-14 15:39:18 +00002683 done
drh8b727472009-01-19 18:18:40 +00002684IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002685
2686fi
2687fi
2688CC=$ac_cv_prog_CC
2689if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002691$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002692else
drhf922ca42015-05-14 15:39:18 +00002693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002694$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002695fi
2696
drh8b727472009-01-19 18:18:40 +00002697
a.rottmann84e63352003-03-24 09:42:16 +00002698 fi
drh71eb93e2001-09-28 01:34:43 +00002699fi
2700if test -z "$CC"; then
2701 # Extract the first word of "cc", so it can be a program name with args.
2702set dummy cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002704$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002705if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002706 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002707else
2708 if test -n "$CC"; then
2709 ac_cv_prog_CC="$CC" # Let the user override the test.
2710else
2711 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713for as_dir in $PATH
2714do
2715 IFS=$as_save_IFS
2716 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002719 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2720 ac_prog_rejected=yes
2721 continue
2722 fi
2723 ac_cv_prog_CC="cc"
drhf922ca42015-05-14 15:39:18 +00002724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002725 break 2
2726 fi
2727done
drhf922ca42015-05-14 15:39:18 +00002728 done
drh8b727472009-01-19 18:18:40 +00002729IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002730
2731if test $ac_prog_rejected = yes; then
2732 # We found a bogon in the path, so make sure we never use it.
2733 set dummy $ac_cv_prog_CC
2734 shift
2735 if test $# != 0; then
2736 # We chose a different compiler from the bogus one.
2737 # However, it has the same basename, so the bogon will be chosen
2738 # first if we set CC to just the basename; use the full file name.
2739 shift
a.rottmann84e63352003-03-24 09:42:16 +00002740 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002741 fi
2742fi
2743fi
2744fi
2745CC=$ac_cv_prog_CC
2746if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002748$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002749else
drhf922ca42015-05-14 15:39:18 +00002750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002751$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002752fi
2753
drh8b727472009-01-19 18:18:40 +00002754
drh71eb93e2001-09-28 01:34:43 +00002755fi
2756if test -z "$CC"; then
2757 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00002758 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002759 do
2760 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2761set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002763$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002764if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002765 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002766else
2767 if test -n "$CC"; then
2768 ac_cv_prog_CC="$CC" # Let the user override the test.
2769else
a.rottmann84e63352003-03-24 09:42:16 +00002770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771for as_dir in $PATH
2772do
2773 IFS=$as_save_IFS
2774 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002777 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002779 break 2
2780 fi
2781done
drhf922ca42015-05-14 15:39:18 +00002782 done
drh8b727472009-01-19 18:18:40 +00002783IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002784
2785fi
2786fi
2787CC=$ac_cv_prog_CC
2788if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002790$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002791else
drhf922ca42015-05-14 15:39:18 +00002792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002793$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002794fi
2795
drh8b727472009-01-19 18:18:40 +00002796
drh71eb93e2001-09-28 01:34:43 +00002797 test -n "$CC" && break
2798 done
2799fi
2800if test -z "$CC"; then
2801 ac_ct_CC=$CC
drh8b727472009-01-19 18:18:40 +00002802 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002803do
2804 # Extract the first word of "$ac_prog", so it can be a program name with args.
2805set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002807$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002808if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002809 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002810else
2811 if test -n "$ac_ct_CC"; then
2812 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2813else
a.rottmann84e63352003-03-24 09:42:16 +00002814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815for as_dir in $PATH
2816do
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002821 ac_cv_prog_ac_ct_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002823 break 2
2824 fi
2825done
drhf922ca42015-05-14 15:39:18 +00002826 done
drh8b727472009-01-19 18:18:40 +00002827IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002828
2829fi
2830fi
2831ac_ct_CC=$ac_cv_prog_ac_ct_CC
2832if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002834$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002835else
drhf922ca42015-05-14 15:39:18 +00002836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002837$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002838fi
2839
drh8b727472009-01-19 18:18:40 +00002840
drh71eb93e2001-09-28 01:34:43 +00002841 test -n "$ac_ct_CC" && break
2842done
2843
drh8b727472009-01-19 18:18:40 +00002844 if test "x$ac_ct_CC" = x; then
2845 CC=""
2846 else
2847 case $cross_compiling:$ac_tool_warned in
2848yes:)
drhf922ca42015-05-14 15:39:18 +00002849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002851ac_tool_warned=yes ;;
2852esac
2853 CC=$ac_ct_CC
2854 fi
drh71eb93e2001-09-28 01:34:43 +00002855fi
2856
2857fi
2858
a.rottmann84e63352003-03-24 09:42:16 +00002859
drhf922ca42015-05-14 15:39:18 +00002860test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2861$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2862as_fn_error $? "no acceptable C compiler found in \$PATH
2863See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00002864
2865# Provide some information about the compiler.
drhf922ca42015-05-14 15:39:18 +00002866$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
drh8b727472009-01-19 18:18:40 +00002867set X $ac_compile
2868ac_compiler=$2
drhf922ca42015-05-14 15:39:18 +00002869for ac_option in --version -v -V -qversion; do
2870 { { ac_try="$ac_compiler $ac_option >&5"
drh8b727472009-01-19 18:18:40 +00002871case "(($ac_try" in
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2874esac
drhf922ca42015-05-14 15:39:18 +00002875eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2876$as_echo "$ac_try_echo"; } >&5
2877 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
drh71eb93e2001-09-28 01:34:43 +00002878 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002879 if test -s conftest.err; then
2880 sed '10a\
2881... rest of stderr output deleted ...
2882 10q' conftest.err >conftest.er1
2883 cat conftest.er1 >&5
2884 fi
2885 rm -f conftest.er1 conftest.err
2886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2887 test $ac_status = 0; }
2888done
drh71eb93e2001-09-28 01:34:43 +00002889
drhf922ca42015-05-14 15:39:18 +00002890cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00002891/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002892
2893int
2894main ()
2895{
2896
2897 ;
2898 return 0;
2899}
2900_ACEOF
2901ac_clean_files_save=$ac_clean_files
drh8b727472009-01-19 18:18:40 +00002902ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002903# Try to create an executable without -o first, disregard a.out.
2904# It will help us diagnose broken compilers, and finding out an intuition
2905# of exeext.
drhf922ca42015-05-14 15:39:18 +00002906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2907$as_echo_n "checking whether the C compiler works... " >&6; }
drh8b727472009-01-19 18:18:40 +00002908ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
drh866108f2008-05-13 00:57:21 +00002909
drh8b727472009-01-19 18:18:40 +00002910# The possible output files:
2911ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2912
2913ac_rmfiles=
2914for ac_file in $ac_files
2915do
2916 case $ac_file in
2917 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2918 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2919 esac
2920done
2921rm -f $ac_rmfiles
2922
drhf922ca42015-05-14 15:39:18 +00002923if { { ac_try="$ac_link_default"
drh8b727472009-01-19 18:18:40 +00002924case "(($ac_try" in
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2927esac
drhf922ca42015-05-14 15:39:18 +00002928eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2929$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00002930 (eval "$ac_link_default") 2>&5
2931 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2933 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00002934 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2935# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2936# in a Makefile. We should not override ac_cv_exeext if it was cached,
2937# so that the user can short-circuit this test for compilers unknown to
2938# Autoconf.
2939for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002940do
2941 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002942 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002944 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002945 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002946 # We found the default executable, but exeext='' is most
2947 # certainly right.
2948 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002949 *.* )
drhf922ca42015-05-14 15:39:18 +00002950 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
drh8b727472009-01-19 18:18:40 +00002951 then :; else
2952 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2953 fi
2954 # We set ac_cv_exeext here because the later test for it is not
2955 # safe: cross compilers may not add the suffix if given an `-o'
2956 # argument, so we may need to know it at that point already.
2957 # Even if this section looks crufty: it has the advantage of
2958 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002959 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002960 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002961 break;;
drh71eb93e2001-09-28 01:34:43 +00002962 esac
2963done
drh8b727472009-01-19 18:18:40 +00002964test "$ac_cv_exeext" = no && ac_cv_exeext=
2965
drh71eb93e2001-09-28 01:34:43 +00002966else
drh8b727472009-01-19 18:18:40 +00002967 ac_file=''
2968fi
drhf922ca42015-05-14 15:39:18 +00002969if test -z "$ac_file"; then :
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2971$as_echo "no" >&6; }
2972$as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002973sed 's/^/| /' conftest.$ac_ext >&5
2974
drhf922ca42015-05-14 15:39:18 +00002975{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2976$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2977as_fn_error 77 "C compiler cannot create executables
2978See \`config.log' for more details" "$LINENO" 5; }
2979else
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh710658c2012-01-16 13:00:05 +00002981$as_echo "yes" >&6; }
drhf922ca42015-05-14 15:39:18 +00002982fi
2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2984$as_echo_n "checking for C compiler default output file name... " >&6; }
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2986$as_echo "$ac_file" >&6; }
2987ac_exeext=$ac_cv_exeext
drh710658c2012-01-16 13:00:05 +00002988
drh8b727472009-01-19 18:18:40 +00002989rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002990ac_clean_files=$ac_clean_files_save
drhf922ca42015-05-14 15:39:18 +00002991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
drh8b727472009-01-19 18:18:40 +00002992$as_echo_n "checking for suffix of executables... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002993if { { ac_try="$ac_link"
drh8b727472009-01-19 18:18:40 +00002994case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2997esac
drhf922ca42015-05-14 15:39:18 +00002998eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2999$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00003000 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00003001 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00003002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3003 test $ac_status = 0; }; then :
drh71eb93e2001-09-28 01:34:43 +00003004 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3005# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3006# work properly (i.e., refer to `conftest.exe'), while it won't with
3007# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00003008for ac_file in conftest.exe conftest conftest.*; do
3009 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00003010 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003011 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00003012 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00003013 break;;
drh71eb93e2001-09-28 01:34:43 +00003014 * ) break;;
3015 esac
3016done
3017else
drhf922ca42015-05-14 15:39:18 +00003018 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3019$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3020as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3021See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003022fi
drhf922ca42015-05-14 15:39:18 +00003023rm -f conftest conftest$ac_cv_exeext
3024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
drh8b727472009-01-19 18:18:40 +00003025$as_echo "$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003026
3027rm -f conftest.$ac_ext
3028EXEEXT=$ac_cv_exeext
3029ac_exeext=$EXEEXT
drhf922ca42015-05-14 15:39:18 +00003030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3031/* end confdefs.h. */
3032#include <stdio.h>
3033int
3034main ()
3035{
3036FILE *f = fopen ("conftest.out", "w");
3037 return ferror (f) || fclose (f) != 0;
3038
3039 ;
3040 return 0;
3041}
3042_ACEOF
3043ac_clean_files="$ac_clean_files conftest.out"
3044# Check that the compiler produces executables we can run. If not, either
3045# the compiler is broken, or we cross compile.
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3047$as_echo_n "checking whether we are cross compiling... " >&6; }
3048if test "$cross_compiling" != yes; then
3049 { { ac_try="$ac_link"
3050case "(($ac_try" in
3051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3052 *) ac_try_echo=$ac_try;;
3053esac
3054eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3055$as_echo "$ac_try_echo"; } >&5
3056 (eval "$ac_link") 2>&5
3057 ac_status=$?
3058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3059 test $ac_status = 0; }
3060 if { ac_try='./conftest$ac_cv_exeext'
3061 { { case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3064esac
3065eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3066$as_echo "$ac_try_echo"; } >&5
3067 (eval "$ac_try") 2>&5
3068 ac_status=$?
3069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3070 test $ac_status = 0; }; }; then
3071 cross_compiling=no
3072 else
3073 if test "$cross_compiling" = maybe; then
3074 cross_compiling=yes
3075 else
3076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3077$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3078as_fn_error $? "cannot run C compiled programs.
3079If you meant to cross compile, use \`--host'.
3080See \`config.log' for more details" "$LINENO" 5; }
3081 fi
3082 fi
3083fi
3084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3085$as_echo "$cross_compiling" >&6; }
3086
3087rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3088ac_clean_files=$ac_clean_files_save
3089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
drh8b727472009-01-19 18:18:40 +00003090$as_echo_n "checking for suffix of object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003091if ${ac_cv_objext+:} false; then :
drh8b727472009-01-19 18:18:40 +00003092 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003093else
drhf922ca42015-05-14 15:39:18 +00003094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003095/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003096
3097int
3098main ()
3099{
3100
3101 ;
3102 return 0;
3103}
3104_ACEOF
3105rm -f conftest.o conftest.obj
drhf922ca42015-05-14 15:39:18 +00003106if { { ac_try="$ac_compile"
drh8b727472009-01-19 18:18:40 +00003107case "(($ac_try" in
3108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3109 *) ac_try_echo=$ac_try;;
3110esac
drhf922ca42015-05-14 15:39:18 +00003111eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3112$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00003113 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00003114 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00003115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3116 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00003117 for ac_file in conftest.o conftest.obj conftest.*; do
3118 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00003119 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
drh71eb93e2001-09-28 01:34:43 +00003121 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3122 break;;
3123 esac
3124done
3125else
drh8b727472009-01-19 18:18:40 +00003126 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00003127sed 's/^/| /' conftest.$ac_ext >&5
3128
drhf922ca42015-05-14 15:39:18 +00003129{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3130$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3131as_fn_error $? "cannot compute suffix of object files: cannot compile
3132See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003133fi
drh71eb93e2001-09-28 01:34:43 +00003134rm -f conftest.$ac_cv_objext conftest.$ac_ext
3135fi
drhf922ca42015-05-14 15:39:18 +00003136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
drh8b727472009-01-19 18:18:40 +00003137$as_echo "$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003138OBJEXT=$ac_cv_objext
3139ac_objext=$OBJEXT
drhf922ca42015-05-14 15:39:18 +00003140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
drh8b727472009-01-19 18:18:40 +00003141$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003142if ${ac_cv_c_compiler_gnu+:} false; then :
drh8b727472009-01-19 18:18:40 +00003143 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003144else
drhf922ca42015-05-14 15:39:18 +00003145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003146/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003147
3148int
3149main ()
3150{
3151#ifndef __GNUC__
3152 choke me
3153#endif
3154
3155 ;
3156 return 0;
3157}
3158_ACEOF
drhf922ca42015-05-14 15:39:18 +00003159if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003160 ac_compiler_gnu=yes
3161else
drhf922ca42015-05-14 15:39:18 +00003162 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00003163fi
drh8b727472009-01-19 18:18:40 +00003164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003165ac_cv_c_compiler_gnu=$ac_compiler_gnu
3166
3167fi
drhf922ca42015-05-14 15:39:18 +00003168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
drh8b727472009-01-19 18:18:40 +00003169$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3170if test $ac_compiler_gnu = yes; then
3171 GCC=yes
3172else
3173 GCC=
3174fi
drh71eb93e2001-09-28 01:34:43 +00003175ac_test_CFLAGS=${CFLAGS+set}
3176ac_save_CFLAGS=$CFLAGS
drhf922ca42015-05-14 15:39:18 +00003177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
drh8b727472009-01-19 18:18:40 +00003178$as_echo_n "checking whether $CC accepts -g... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003179if ${ac_cv_prog_cc_g+:} false; then :
drh8b727472009-01-19 18:18:40 +00003180 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003181else
drh8b727472009-01-19 18:18:40 +00003182 ac_save_c_werror_flag=$ac_c_werror_flag
3183 ac_c_werror_flag=yes
3184 ac_cv_prog_cc_g=no
3185 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003187/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003188
3189int
3190main ()
3191{
3192
3193 ;
3194 return 0;
3195}
3196_ACEOF
drhf922ca42015-05-14 15:39:18 +00003197if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003198 ac_cv_prog_cc_g=yes
3199else
drhf922ca42015-05-14 15:39:18 +00003200 CFLAGS=""
3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003202/* end confdefs.h. */
3203
3204int
3205main ()
3206{
3207
3208 ;
3209 return 0;
3210}
3211_ACEOF
drhf922ca42015-05-14 15:39:18 +00003212if ac_fn_c_try_compile "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00003213
drhf922ca42015-05-14 15:39:18 +00003214else
3215 ac_c_werror_flag=$ac_save_c_werror_flag
drh8b727472009-01-19 18:18:40 +00003216 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003218/* end confdefs.h. */
3219
3220int
3221main ()
3222{
3223
3224 ;
3225 return 0;
3226}
3227_ACEOF
drhf922ca42015-05-14 15:39:18 +00003228if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003229 ac_cv_prog_cc_g=yes
drh71eb93e2001-09-28 01:34:43 +00003230fi
drh8b727472009-01-19 18:18:40 +00003231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003232fi
drh8b727472009-01-19 18:18:40 +00003233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234fi
drh8b727472009-01-19 18:18:40 +00003235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236 ac_c_werror_flag=$ac_save_c_werror_flag
3237fi
drhf922ca42015-05-14 15:39:18 +00003238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
drh8b727472009-01-19 18:18:40 +00003239$as_echo "$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003240if test "$ac_test_CFLAGS" = set; then
3241 CFLAGS=$ac_save_CFLAGS
3242elif test $ac_cv_prog_cc_g = yes; then
3243 if test "$GCC" = yes; then
3244 CFLAGS="-g -O2"
3245 else
3246 CFLAGS="-g"
3247 fi
3248else
3249 if test "$GCC" = yes; then
3250 CFLAGS="-O2"
3251 else
3252 CFLAGS=
3253 fi
3254fi
drhf922ca42015-05-14 15:39:18 +00003255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
drh8b727472009-01-19 18:18:40 +00003256$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003257if ${ac_cv_prog_cc_c89+:} false; then :
drh8b727472009-01-19 18:18:40 +00003258 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00003259else
drh8b727472009-01-19 18:18:40 +00003260 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00003261ac_save_CC=$CC
drhf922ca42015-05-14 15:39:18 +00003262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003263/* end confdefs.h. */
3264#include <stdarg.h>
3265#include <stdio.h>
drhf922ca42015-05-14 15:39:18 +00003266struct stat;
a.rottmann84e63352003-03-24 09:42:16 +00003267/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3268struct buf { int x; };
3269FILE * (*rcsopen) (struct buf *, struct stat *, int);
3270static char *e (p, i)
3271 char **p;
3272 int i;
3273{
3274 return p[i];
3275}
3276static char *f (char * (*g) (char **, int), char **p, ...)
3277{
3278 char *s;
3279 va_list v;
3280 va_start (v,p);
3281 s = g (p, va_arg (v,int));
3282 va_end (v);
3283 return s;
3284}
a.rottmann964dbb12004-02-26 19:47:42 +00003285
3286/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3287 function prototypes and stuff, but not '\xHH' hex character constants.
3288 These don't provoke an error unfortunately, instead are silently treated
drh8b727472009-01-19 18:18:40 +00003289 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00003290 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3291 array size at least. It's necessary to write '\x00'==0 to get something
drh8b727472009-01-19 18:18:40 +00003292 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00003293int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3294
drh8b727472009-01-19 18:18:40 +00003295/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3296 inside strings and character constants. */
3297#define FOO(x) 'x'
3298int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3299
a.rottmann84e63352003-03-24 09:42:16 +00003300int test (int i, double x);
3301struct s1 {int (*f) (int a);};
3302struct s2 {int (*f) (double a);};
3303int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3304int argc;
3305char **argv;
3306int
3307main ()
3308{
3309return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3310 ;
3311 return 0;
3312}
3313_ACEOF
drh8b727472009-01-19 18:18:40 +00003314for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3315 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003316do
3317 CC="$ac_save_CC $ac_arg"
drhf922ca42015-05-14 15:39:18 +00003318 if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003319 ac_cv_prog_cc_c89=$ac_arg
a.rottmann84e63352003-03-24 09:42:16 +00003320fi
drh8b727472009-01-19 18:18:40 +00003321rm -f core conftest.err conftest.$ac_objext
3322 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003323done
drh8b727472009-01-19 18:18:40 +00003324rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003325CC=$ac_save_CC
3326
3327fi
drh8b727472009-01-19 18:18:40 +00003328# AC_CACHE_VAL
3329case "x$ac_cv_prog_cc_c89" in
3330 x)
drhf922ca42015-05-14 15:39:18 +00003331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
drh8b727472009-01-19 18:18:40 +00003332$as_echo "none needed" >&6; } ;;
3333 xno)
drhf922ca42015-05-14 15:39:18 +00003334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
drh8b727472009-01-19 18:18:40 +00003335$as_echo "unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003336 *)
drh8b727472009-01-19 18:18:40 +00003337 CC="$CC $ac_cv_prog_cc_c89"
drhf922ca42015-05-14 15:39:18 +00003338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
drh8b727472009-01-19 18:18:40 +00003339$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003340esac
drhf922ca42015-05-14 15:39:18 +00003341if test "x$ac_cv_prog_cc_c89" != xno; then :
a.rottmann84e63352003-03-24 09:42:16 +00003342
drhf922ca42015-05-14 15:39:18 +00003343fi
a.rottmann84e63352003-03-24 09:42:16 +00003344
drh71eb93e2001-09-28 01:34:43 +00003345ac_ext=c
3346ac_cpp='$CPP $CPPFLAGS'
3347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3349ac_compiler_gnu=$ac_cv_c_compiler_gnu
3350
drhf922ca42015-05-14 15:39:18 +00003351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
drh8b727472009-01-19 18:18:40 +00003352$as_echo_n "checking for a sed that does not truncate output... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003353if ${ac_cv_path_SED+:} false; then :
drh8b727472009-01-19 18:18:40 +00003354 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003355else
drh8b727472009-01-19 18:18:40 +00003356 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3357 for ac_i in 1 2 3 4 5 6 7; do
3358 ac_script="$ac_script$as_nl$ac_script"
3359 done
3360 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
drhf922ca42015-05-14 15:39:18 +00003361 { ac_script=; unset ac_script;}
drh8b727472009-01-19 18:18:40 +00003362 if test -z "$SED"; then
3363 ac_path_SED_found=false
3364 # Loop through the user's path and test for each of PROGNAME-LIST
3365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00003366for as_dir in $PATH
3367do
3368 IFS=$as_save_IFS
3369 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003370 for ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003371 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003372 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003373 as_fn_executable_p "$ac_path_SED" || continue
drh8b727472009-01-19 18:18:40 +00003374# Check for GNU ac_path_SED and select it if it is found.
3375 # Check for GNU $ac_path_SED
3376case `"$ac_path_SED" --version 2>&1` in
3377*GNU*)
3378 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3379*)
3380 ac_count=0
3381 $as_echo_n 0123456789 >"conftest.in"
3382 while :
3383 do
3384 cat "conftest.in" "conftest.in" >"conftest.tmp"
3385 mv "conftest.tmp" "conftest.in"
3386 cp "conftest.in" "conftest.nl"
3387 $as_echo '' >> "conftest.nl"
3388 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3389 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003390 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003391 if test $ac_count -gt ${ac_path_SED_max-0}; then
3392 # Best one so far, save it but keep looking for a better one
3393 ac_cv_path_SED="$ac_path_SED"
3394 ac_path_SED_max=$ac_count
3395 fi
3396 # 10*(2^10) chars as input seems more than enough
3397 test $ac_count -gt 10 && break
3398 done
3399 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3400esac
3401
3402 $ac_path_SED_found && break 3
a.rottmann9bc8b932004-02-29 15:18:31 +00003403 done
3404 done
drhf922ca42015-05-14 15:39:18 +00003405 done
mlcreech636a9952008-05-05 22:52:56 +00003406IFS=$as_save_IFS
drh8b727472009-01-19 18:18:40 +00003407 if test -z "$ac_cv_path_SED"; then
drhf922ca42015-05-14 15:39:18 +00003408 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
a.rottmann9bc8b932004-02-29 15:18:31 +00003409 fi
drh8b727472009-01-19 18:18:40 +00003410else
3411 ac_cv_path_SED=$SED
mlcreech636a9952008-05-05 22:52:56 +00003412fi
drh866108f2008-05-13 00:57:21 +00003413
drh8b727472009-01-19 18:18:40 +00003414fi
drhf922ca42015-05-14 15:39:18 +00003415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
drh8b727472009-01-19 18:18:40 +00003416$as_echo "$ac_cv_path_SED" >&6; }
3417 SED="$ac_cv_path_SED"
3418 rm -f conftest.sed
a.rottmann9bc8b932004-02-29 15:18:31 +00003419
mlcreech636a9952008-05-05 22:52:56 +00003420test -z "$SED" && SED=sed
3421Xsed="$SED -e 1s/^X//"
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
drhf922ca42015-05-14 15:39:18 +00003433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
drh8b727472009-01-19 18:18:40 +00003434$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003435if ${ac_cv_path_GREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003436 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003437else
drh8b727472009-01-19 18:18:40 +00003438 if test -z "$GREP"; then
3439 ac_path_GREP_found=false
3440 # Loop through the user's path and test for each of PROGNAME-LIST
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3443do
3444 IFS=$as_save_IFS
3445 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003446 for ac_prog in grep ggrep; do
drh8b727472009-01-19 18:18:40 +00003447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003449 as_fn_executable_p "$ac_path_GREP" || continue
drh8b727472009-01-19 18:18:40 +00003450# Check for GNU ac_path_GREP and select it if it is found.
3451 # Check for GNU $ac_path_GREP
3452case `"$ac_path_GREP" --version 2>&1` in
3453*GNU*)
3454 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3455*)
3456 ac_count=0
3457 $as_echo_n 0123456789 >"conftest.in"
3458 while :
3459 do
3460 cat "conftest.in" "conftest.in" >"conftest.tmp"
3461 mv "conftest.tmp" "conftest.in"
3462 cp "conftest.in" "conftest.nl"
3463 $as_echo 'GREP' >> "conftest.nl"
3464 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3465 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003466 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003467 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3468 # Best one so far, save it but keep looking for a better one
3469 ac_cv_path_GREP="$ac_path_GREP"
3470 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003471 fi
drh8b727472009-01-19 18:18:40 +00003472 # 10*(2^10) chars as input seems more than enough
3473 test $ac_count -gt 10 && break
3474 done
3475 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3476esac
3477
3478 $ac_path_GREP_found && break 3
3479 done
3480 done
drhf922ca42015-05-14 15:39:18 +00003481 done
drh8b727472009-01-19 18:18:40 +00003482IFS=$as_save_IFS
3483 if test -z "$ac_cv_path_GREP"; then
drhf922ca42015-05-14 15:39:18 +00003484 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003485 fi
3486else
3487 ac_cv_path_GREP=$GREP
mlcreech94984912008-03-04 19:03:08 +00003488fi
drh8b727472009-01-19 18:18:40 +00003489
3490fi
drhf922ca42015-05-14 15:39:18 +00003491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
drh8b727472009-01-19 18:18:40 +00003492$as_echo "$ac_cv_path_GREP" >&6; }
3493 GREP="$ac_cv_path_GREP"
mlcreech94984912008-03-04 19:03:08 +00003494
3495
drhf922ca42015-05-14 15:39:18 +00003496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
drh8b727472009-01-19 18:18:40 +00003497$as_echo_n "checking for egrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003498if ${ac_cv_path_EGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003499 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +00003500else
drh8b727472009-01-19 18:18:40 +00003501 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3502 then ac_cv_path_EGREP="$GREP -E"
3503 else
3504 if test -z "$EGREP"; then
3505 ac_path_EGREP_found=false
3506 # Loop through the user's path and test for each of PROGNAME-LIST
3507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3508for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3509do
3510 IFS=$as_save_IFS
3511 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003512 for ac_prog in egrep; do
drh8b727472009-01-19 18:18:40 +00003513 for ac_exec_ext in '' $ac_executable_extensions; do
3514 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003515 as_fn_executable_p "$ac_path_EGREP" || continue
drh8b727472009-01-19 18:18:40 +00003516# Check for GNU ac_path_EGREP and select it if it is found.
3517 # Check for GNU $ac_path_EGREP
3518case `"$ac_path_EGREP" --version 2>&1` in
3519*GNU*)
3520 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3521*)
3522 ac_count=0
3523 $as_echo_n 0123456789 >"conftest.in"
3524 while :
3525 do
3526 cat "conftest.in" "conftest.in" >"conftest.tmp"
3527 mv "conftest.tmp" "conftest.in"
3528 cp "conftest.in" "conftest.nl"
3529 $as_echo 'EGREP' >> "conftest.nl"
3530 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3531 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003532 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003533 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3534 # Best one so far, save it but keep looking for a better one
3535 ac_cv_path_EGREP="$ac_path_EGREP"
3536 ac_path_EGREP_max=$ac_count
mlcreech94984912008-03-04 19:03:08 +00003537 fi
drh8b727472009-01-19 18:18:40 +00003538 # 10*(2^10) chars as input seems more than enough
3539 test $ac_count -gt 10 && break
3540 done
3541 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3542esac
3543
3544 $ac_path_EGREP_found && break 3
3545 done
3546 done
drhf922ca42015-05-14 15:39:18 +00003547 done
drh8b727472009-01-19 18:18:40 +00003548IFS=$as_save_IFS
3549 if test -z "$ac_cv_path_EGREP"; then
drhf922ca42015-05-14 15:39:18 +00003550 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003551 fi
3552else
3553 ac_cv_path_EGREP=$EGREP
mlcreech94984912008-03-04 19:03:08 +00003554fi
drh8b727472009-01-19 18:18:40 +00003555
3556 fi
3557fi
drhf922ca42015-05-14 15:39:18 +00003558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
drh8b727472009-01-19 18:18:40 +00003559$as_echo "$ac_cv_path_EGREP" >&6; }
3560 EGREP="$ac_cv_path_EGREP"
3561
3562
drhf922ca42015-05-14 15:39:18 +00003563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
drh8b727472009-01-19 18:18:40 +00003564$as_echo_n "checking for fgrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003565if ${ac_cv_path_FGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003566 $as_echo_n "(cached) " >&6
3567else
3568 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3569 then ac_cv_path_FGREP="$GREP -F"
3570 else
3571 if test -z "$FGREP"; then
3572 ac_path_FGREP_found=false
3573 # Loop through the user's path and test for each of PROGNAME-LIST
3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3576do
3577 IFS=$as_save_IFS
3578 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003579 for ac_prog in fgrep; do
drh8b727472009-01-19 18:18:40 +00003580 for ac_exec_ext in '' $ac_executable_extensions; do
3581 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003582 as_fn_executable_p "$ac_path_FGREP" || continue
drh8b727472009-01-19 18:18:40 +00003583# Check for GNU ac_path_FGREP and select it if it is found.
3584 # Check for GNU $ac_path_FGREP
3585case `"$ac_path_FGREP" --version 2>&1` in
3586*GNU*)
3587 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3588*)
3589 ac_count=0
3590 $as_echo_n 0123456789 >"conftest.in"
3591 while :
3592 do
3593 cat "conftest.in" "conftest.in" >"conftest.tmp"
3594 mv "conftest.tmp" "conftest.in"
3595 cp "conftest.in" "conftest.nl"
3596 $as_echo 'FGREP' >> "conftest.nl"
3597 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3598 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003599 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003600 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3601 # Best one so far, save it but keep looking for a better one
3602 ac_cv_path_FGREP="$ac_path_FGREP"
3603 ac_path_FGREP_max=$ac_count
3604 fi
3605 # 10*(2^10) chars as input seems more than enough
3606 test $ac_count -gt 10 && break
3607 done
3608 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3609esac
3610
3611 $ac_path_FGREP_found && break 3
3612 done
3613 done
drhf922ca42015-05-14 15:39:18 +00003614 done
drh8b727472009-01-19 18:18:40 +00003615IFS=$as_save_IFS
3616 if test -z "$ac_cv_path_FGREP"; then
drhf922ca42015-05-14 15:39:18 +00003617 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003618 fi
3619else
3620 ac_cv_path_FGREP=$FGREP
3621fi
3622
3623 fi
3624fi
drhf922ca42015-05-14 15:39:18 +00003625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
drh8b727472009-01-19 18:18:40 +00003626$as_echo "$ac_cv_path_FGREP" >&6; }
3627 FGREP="$ac_cv_path_FGREP"
mlcreech636a9952008-05-05 22:52:56 +00003628
3629
3630test -z "$GREP" && GREP=grep
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
a.rottmann9bc8b932004-02-29 15:18:31 +00003647
3648
a.rottmann84e63352003-03-24 09:42:16 +00003649
drh8b727472009-01-19 18:18:40 +00003650# Check whether --with-gnu-ld was given.
drhf922ca42015-05-14 15:39:18 +00003651if test "${with_gnu_ld+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003652 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003653else
3654 with_gnu_ld=no
drh8b727472009-01-19 18:18:40 +00003655fi
3656
drh71eb93e2001-09-28 01:34:43 +00003657ac_prog=ld
3658if test "$GCC" = yes; then
3659 # Check if gcc -print-prog-name=ld gives a path.
drhf922ca42015-05-14 15:39:18 +00003660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
drh8b727472009-01-19 18:18:40 +00003661$as_echo_n "checking for ld used by $CC... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003662 case $host in
3663 *-*-mingw*)
3664 # gcc leaves a trailing carriage return which upsets mingw
3665 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3666 *)
3667 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3668 esac
3669 case $ac_prog in
3670 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003671 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003672 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003673 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00003674 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3675 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3676 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003677 done
3678 test -z "$LD" && LD="$ac_prog"
3679 ;;
3680 "")
3681 # If it fails, then pretend we aren't using GCC.
3682 ac_prog=ld
3683 ;;
3684 *)
3685 # If it is relative, then search for the first ld in PATH.
3686 with_gnu_ld=unknown
3687 ;;
3688 esac
3689elif test "$with_gnu_ld" = yes; then
drhf922ca42015-05-14 15:39:18 +00003690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003691$as_echo_n "checking for GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003692else
drhf922ca42015-05-14 15:39:18 +00003693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003694$as_echo_n "checking for non-GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003695fi
drhf922ca42015-05-14 15:39:18 +00003696if ${lt_cv_path_LD+:} false; then :
drh8b727472009-01-19 18:18:40 +00003697 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003698else
3699 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003700 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003701 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003702 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003703 test -z "$ac_dir" && ac_dir=.
3704 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3705 lt_cv_path_LD="$ac_dir/$ac_prog"
3706 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003707 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003708 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003709 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3710 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003711 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003712 ;;
3713 *)
drh71eb93e2001-09-28 01:34:43 +00003714 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003715 ;;
3716 esac
drh71eb93e2001-09-28 01:34:43 +00003717 fi
3718 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003719 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003720else
3721 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3722fi
3723fi
3724
3725LD="$lt_cv_path_LD"
3726if test -n "$LD"; then
drhf922ca42015-05-14 15:39:18 +00003727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
drh8b727472009-01-19 18:18:40 +00003728$as_echo "$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003729else
drhf922ca42015-05-14 15:39:18 +00003730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003731$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003732fi
drhf922ca42015-05-14 15:39:18 +00003733test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003735$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003736if ${lt_cv_prog_gnu_ld+:} false; then :
drh8b727472009-01-19 18:18:40 +00003737 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003738else
vapier7f19c022007-02-17 14:46:31 +00003739 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003740case `$LD -v 2>&1 </dev/null` in
3741*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003742 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003743 ;;
3744*)
drh71eb93e2001-09-28 01:34:43 +00003745 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003746 ;;
3747esac
drh71eb93e2001-09-28 01:34:43 +00003748fi
drhf922ca42015-05-14 15:39:18 +00003749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
drh8b727472009-01-19 18:18:40 +00003750$as_echo "$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003751with_gnu_ld=$lt_cv_prog_gnu_ld
3752
a.rottmann84e63352003-03-24 09:42:16 +00003753
drh71eb93e2001-09-28 01:34:43 +00003754
mlcreech636a9952008-05-05 22:52:56 +00003755
3756
3757
3758
3759
3760
drhf922ca42015-05-14 15:39:18 +00003761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
drh8b727472009-01-19 18:18:40 +00003762$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003763if ${lt_cv_path_NM+:} false; then :
drh8b727472009-01-19 18:18:40 +00003764 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003765else
3766 if test -n "$NM"; then
3767 # Let the user override the test.
3768 lt_cv_path_NM="$NM"
3769else
vapier7f19c022007-02-17 14:46:31 +00003770 lt_nm_to_check="${ac_tool_prefix}nm"
3771 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3772 lt_nm_to_check="$lt_nm_to_check nm"
3773 fi
3774 for lt_tmp_nm in $lt_nm_to_check; do
3775 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3776 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3777 IFS="$lt_save_ifs"
3778 test -z "$ac_dir" && ac_dir=.
3779 tmp_nm="$ac_dir/$lt_tmp_nm"
3780 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3781 # Check to see if the nm accepts a BSD-compat flag.
3782 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3783 # nm: unknown option "B" ignored
3784 # Tru64's nm complains that /dev/null is an invalid object file
3785 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3786 */dev/null* | *'Invalid file or object type'*)
3787 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003788 break
3789 ;;
3790 *)
vapier7f19c022007-02-17 14:46:31 +00003791 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3792 */dev/null*)
3793 lt_cv_path_NM="$tmp_nm -p"
3794 break
3795 ;;
3796 *)
3797 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3798 continue # so that we can try to find one that supports BSD flags
3799 ;;
3800 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003801 ;;
3802 esac
vapier7f19c022007-02-17 14:46:31 +00003803 fi
3804 done
3805 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003806 done
mlcreech636a9952008-05-05 22:52:56 +00003807 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00003808fi
3809fi
drhf922ca42015-05-14 15:39:18 +00003810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
drh8b727472009-01-19 18:18:40 +00003811$as_echo "$lt_cv_path_NM" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003812if test "$lt_cv_path_NM" != "no"; then
3813 NM="$lt_cv_path_NM"
3814else
3815 # Didn't find any BSD compatible name lister, look for dumpbin.
3816 if test -n "$ac_tool_prefix"; then
3817 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3818 do
3819 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3820set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003822$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003823if ${ac_cv_prog_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003824 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003825else
3826 if test -n "$DUMPBIN"; then
3827 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3828else
3829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3830for as_dir in $PATH
3831do
3832 IFS=$as_save_IFS
3833 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003834 for ac_exec_ext in '' $ac_executable_extensions; do
3835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003836 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003838 break 2
3839 fi
3840done
drhf922ca42015-05-14 15:39:18 +00003841 done
drh8b727472009-01-19 18:18:40 +00003842IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00003843
mlcreech636a9952008-05-05 22:52:56 +00003844fi
3845fi
3846DUMPBIN=$ac_cv_prog_DUMPBIN
3847if test -n "$DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003849$as_echo "$DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003850else
drhf922ca42015-05-14 15:39:18 +00003851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003852$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003853fi
3854
drh8b727472009-01-19 18:18:40 +00003855
mlcreech636a9952008-05-05 22:52:56 +00003856 test -n "$DUMPBIN" && break
3857 done
3858fi
3859if test -z "$DUMPBIN"; then
3860 ac_ct_DUMPBIN=$DUMPBIN
3861 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3862do
3863 # Extract the first word of "$ac_prog", so it can be a program name with args.
3864set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003866$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003867if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003868 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003869else
3870 if test -n "$ac_ct_DUMPBIN"; then
3871 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3872else
3873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3874for as_dir in $PATH
3875do
3876 IFS=$as_save_IFS
3877 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003878 for ac_exec_ext in '' $ac_executable_extensions; do
3879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003880 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003882 break 2
3883 fi
3884done
drhf922ca42015-05-14 15:39:18 +00003885 done
drh8b727472009-01-19 18:18:40 +00003886IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003887
3888fi
3889fi
3890ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3891if test -n "$ac_ct_DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003893$as_echo "$ac_ct_DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003894else
drhf922ca42015-05-14 15:39:18 +00003895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003896$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003897fi
3898
drh8b727472009-01-19 18:18:40 +00003899
mlcreech636a9952008-05-05 22:52:56 +00003900 test -n "$ac_ct_DUMPBIN" && break
3901done
3902
drh8b727472009-01-19 18:18:40 +00003903 if test "x$ac_ct_DUMPBIN" = x; then
3904 DUMPBIN=":"
3905 else
3906 case $cross_compiling:$ac_tool_warned in
3907yes:)
drhf922ca42015-05-14 15:39:18 +00003908{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3909$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00003910ac_tool_warned=yes ;;
3911esac
3912 DUMPBIN=$ac_ct_DUMPBIN
3913 fi
mlcreech636a9952008-05-05 22:52:56 +00003914fi
3915
3916
3917 if test "$DUMPBIN" != ":"; then
3918 NM="$DUMPBIN"
3919 fi
3920fi
3921test -z "$NM" && NM=nm
3922
3923
3924
3925
3926
3927
drhf922ca42015-05-14 15:39:18 +00003928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
drh8b727472009-01-19 18:18:40 +00003929$as_echo_n "checking the name lister ($NM) interface... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003930if ${lt_cv_nm_interface+:} false; then :
drh8b727472009-01-19 18:18:40 +00003931 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003932else
3933 lt_cv_nm_interface="BSD nm"
3934 echo "int some_variable = 0;" > conftest.$ac_ext
drh56c93112017-11-24 16:55:48 +00003935 (eval echo "\"\$as_me:3935: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003936 (eval "$ac_compile" 2>conftest.err)
3937 cat conftest.err >&5
drh56c93112017-11-24 16:55:48 +00003938 (eval echo "\"\$as_me:3938: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003939 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3940 cat conftest.err >&5
drh56c93112017-11-24 16:55:48 +00003941 (eval echo "\"\$as_me:3941: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003942 cat conftest.out >&5
3943 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3944 lt_cv_nm_interface="MS dumpbin"
3945 fi
3946 rm -f conftest*
3947fi
drhf922ca42015-05-14 15:39:18 +00003948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
drh8b727472009-01-19 18:18:40 +00003949$as_echo "$lt_cv_nm_interface" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003950
drhf922ca42015-05-14 15:39:18 +00003951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
drh8b727472009-01-19 18:18:40 +00003952$as_echo_n "checking whether ln -s works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003953LN_S=$as_ln_s
3954if test "$LN_S" = "ln -s"; then
drhf922ca42015-05-14 15:39:18 +00003955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00003956$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003957else
drhf922ca42015-05-14 15:39:18 +00003958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
drh8b727472009-01-19 18:18:40 +00003959$as_echo "no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003960fi
3961
mlcreech636a9952008-05-05 22:52:56 +00003962# find the maximum length of command line arguments
drhf922ca42015-05-14 15:39:18 +00003963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
drh8b727472009-01-19 18:18:40 +00003964$as_echo_n "checking the maximum length of command line arguments... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003965if ${lt_cv_sys_max_cmd_len+:} false; then :
drh8b727472009-01-19 18:18:40 +00003966 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003967else
3968 i=0
3969 teststring="ABCD"
3970
3971 case $build_os in
3972 msdosdjgpp*)
3973 # On DJGPP, this test can blow up pretty badly due to problems in libc
3974 # (any single argument exceeding 2000 bytes causes a buffer overrun
3975 # during glob expansion). Even if it were fixed, the result of this
3976 # check would be larger than it should be.
3977 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3978 ;;
3979
3980 gnu*)
3981 # Under GNU Hurd, this test is not required because there is
3982 # no limit to the length of command line arguments.
3983 # Libtool will interpret -1 as no limit whatsoever
3984 lt_cv_sys_max_cmd_len=-1;
3985 ;;
3986
vapier6acb2cf2009-01-28 04:46:28 +00003987 cygwin* | mingw* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00003988 # On Win9x/ME, this test blows up -- it succeeds, but takes
3989 # about 5 minutes as the teststring grows exponentially.
3990 # Worse, since 9x/ME are not pre-emptively multitasking,
3991 # you end up with a "frozen" computer, even though with patience
3992 # the test eventually succeeds (with a max line length of 256k).
3993 # Instead, let's just punt: use the minimum linelength reported by
3994 # all of the supported platforms: 8192 (on NT/2K/XP).
3995 lt_cv_sys_max_cmd_len=8192;
3996 ;;
3997
3998 amigaos*)
3999 # On AmigaOS with pdksh, this test takes hours, literally.
4000 # So we just punt and use a minimum line length of 8192.
4001 lt_cv_sys_max_cmd_len=8192;
4002 ;;
4003
4004 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4005 # This has been around since 386BSD, at least. Likely further.
4006 if test -x /sbin/sysctl; then
4007 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4008 elif test -x /usr/sbin/sysctl; then
4009 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4010 else
4011 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4012 fi
4013 # And add a safety zone
4014 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4015 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4016 ;;
4017
4018 interix*)
4019 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4020 lt_cv_sys_max_cmd_len=196608
4021 ;;
4022
4023 osf*)
4024 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4025 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4026 # nice to cause kernel panics so lets avoid the loop below.
4027 # First set a reasonable default.
4028 lt_cv_sys_max_cmd_len=16384
4029 #
4030 if test -x /sbin/sysconfig; then
4031 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4032 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4033 esac
4034 fi
4035 ;;
4036 sco3.2v5*)
4037 lt_cv_sys_max_cmd_len=102400
4038 ;;
4039 sysv5* | sco5v6* | sysv4.2uw2*)
4040 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4041 if test -n "$kargmax"; then
4042 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4043 else
4044 lt_cv_sys_max_cmd_len=32768
4045 fi
4046 ;;
4047 *)
4048 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4049 if test -n "$lt_cv_sys_max_cmd_len"; then
4050 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4051 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4052 else
4053 # Make teststring a little bigger before we do anything with it.
4054 # a 1K string should be a reasonable start.
4055 for i in 1 2 3 4 5 6 7 8 ; do
4056 teststring=$teststring$teststring
4057 done
4058 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4059 # If test is not a shell built-in, we'll probably end up computing a
4060 # maximum length that is only half of the actual maximum length, but
4061 # we can't tell.
4062 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4063 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4064 test $i != 17 # 1/2 MB should be enough
4065 do
4066 i=`expr $i + 1`
4067 teststring=$teststring$teststring
4068 done
4069 # Only check the string length outside the loop.
4070 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4071 teststring=
4072 # Add a significant safety factor because C++ compilers can tack on
4073 # massive amounts of additional arguments before passing them to the
4074 # linker. It appears as though 1/2 is a usable value.
4075 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4076 fi
4077 ;;
4078 esac
4079
4080fi
4081
4082if test -n $lt_cv_sys_max_cmd_len ; then
drhf922ca42015-05-14 15:39:18 +00004083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
drh8b727472009-01-19 18:18:40 +00004084$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004085else
drhf922ca42015-05-14 15:39:18 +00004086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
drh8b727472009-01-19 18:18:40 +00004087$as_echo "none" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004088fi
4089max_cmd_len=$lt_cv_sys_max_cmd_len
4090
4091
4092
4093
4094
4095
4096: ${CP="cp -f"}
4097: ${MV="mv -f"}
4098: ${RM="rm -f"}
4099
drhf922ca42015-05-14 15:39:18 +00004100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
drh8b727472009-01-19 18:18:40 +00004101$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004102# Try some XSI features
4103xsi_shell=no
4104( _lt_dummy="a/b/c"
4105 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4106 = c,a/b,, \
4107 && eval 'test $(( 1 + 1 )) -eq 2 \
4108 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4109 && xsi_shell=yes
drhf922ca42015-05-14 15:39:18 +00004110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
drh8b727472009-01-19 18:18:40 +00004111$as_echo "$xsi_shell" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004112
4113
drhf922ca42015-05-14 15:39:18 +00004114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
drh8b727472009-01-19 18:18:40 +00004115$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004116lt_shell_append=no
4117( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4118 >/dev/null 2>&1 \
4119 && lt_shell_append=yes
drhf922ca42015-05-14 15:39:18 +00004120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
drh8b727472009-01-19 18:18:40 +00004121$as_echo "$lt_shell_append" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004122
4123
4124if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4125 lt_unset=unset
4126else
4127 lt_unset=false
4128fi
4129
4130
4131
4132
4133
4134# test EBCDIC or ASCII
4135case `echo X|tr X '\101'` in
4136 A) # ASCII based system
4137 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4138 lt_SP2NL='tr \040 \012'
4139 lt_NL2SP='tr \015\012 \040\040'
4140 ;;
4141 *) # EBCDIC based system
4142 lt_SP2NL='tr \100 \n'
4143 lt_NL2SP='tr \r\n \100\100'
4144 ;;
4145esac
4146
4147
4148
4149
4150
4151
4152
4153
4154
drhf922ca42015-05-14 15:39:18 +00004155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
drh8b727472009-01-19 18:18:40 +00004156$as_echo_n "checking for $LD option to reload object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004157if ${lt_cv_ld_reload_flag+:} false; then :
drh8b727472009-01-19 18:18:40 +00004158 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004159else
4160 lt_cv_ld_reload_flag='-r'
4161fi
drhf922ca42015-05-14 15:39:18 +00004162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
drh8b727472009-01-19 18:18:40 +00004163$as_echo "$lt_cv_ld_reload_flag" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004164reload_flag=$lt_cv_ld_reload_flag
4165case $reload_flag in
4166"" | " "*) ;;
4167*) reload_flag=" $reload_flag" ;;
4168esac
4169reload_cmds='$LD$reload_flag -o $output$reload_objs'
4170case $host_os in
4171 darwin*)
4172 if test "$GCC" = yes; then
4173 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4174 else
4175 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4176 fi
4177 ;;
4178esac
4179
4180
4181
4182
4183
4184
4185
4186
4187
vapier6acb2cf2009-01-28 04:46:28 +00004188if test -n "$ac_tool_prefix"; then
4189 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4190set dummy ${ac_tool_prefix}objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004192$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004193if ${ac_cv_prog_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004194 $as_echo_n "(cached) " >&6
4195else
4196 if test -n "$OBJDUMP"; then
4197 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4198else
4199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4200for as_dir in $PATH
4201do
4202 IFS=$as_save_IFS
4203 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004204 for ac_exec_ext in '' $ac_executable_extensions; do
4205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004206 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
drhf922ca42015-05-14 15:39:18 +00004207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004208 break 2
4209 fi
4210done
drhf922ca42015-05-14 15:39:18 +00004211 done
vapier6acb2cf2009-01-28 04:46:28 +00004212IFS=$as_save_IFS
4213
4214fi
4215fi
4216OBJDUMP=$ac_cv_prog_OBJDUMP
4217if test -n "$OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004219$as_echo "$OBJDUMP" >&6; }
4220else
drhf922ca42015-05-14 15:39:18 +00004221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004222$as_echo "no" >&6; }
4223fi
4224
4225
4226fi
4227if test -z "$ac_cv_prog_OBJDUMP"; then
4228 ac_ct_OBJDUMP=$OBJDUMP
4229 # Extract the first word of "objdump", so it can be a program name with args.
4230set dummy objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004232$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004233if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004234 $as_echo_n "(cached) " >&6
4235else
4236 if test -n "$ac_ct_OBJDUMP"; then
4237 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4238else
4239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240for as_dir in $PATH
4241do
4242 IFS=$as_save_IFS
4243 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004246 ac_cv_prog_ac_ct_OBJDUMP="objdump"
drhf922ca42015-05-14 15:39:18 +00004247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004248 break 2
4249 fi
4250done
drhf922ca42015-05-14 15:39:18 +00004251 done
vapier6acb2cf2009-01-28 04:46:28 +00004252IFS=$as_save_IFS
4253
4254fi
4255fi
4256ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4257if test -n "$ac_ct_OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004259$as_echo "$ac_ct_OBJDUMP" >&6; }
4260else
drhf922ca42015-05-14 15:39:18 +00004261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004262$as_echo "no" >&6; }
4263fi
4264
4265 if test "x$ac_ct_OBJDUMP" = x; then
4266 OBJDUMP="false"
4267 else
4268 case $cross_compiling:$ac_tool_warned in
4269yes:)
drhf922ca42015-05-14 15:39:18 +00004270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00004272ac_tool_warned=yes ;;
4273esac
4274 OBJDUMP=$ac_ct_OBJDUMP
4275 fi
4276else
4277 OBJDUMP="$ac_cv_prog_OBJDUMP"
4278fi
4279
4280test -z "$OBJDUMP" && OBJDUMP=objdump
4281
4282
4283
4284
4285
4286
4287
4288
mlcreech636a9952008-05-05 22:52:56 +00004289
drhf922ca42015-05-14 15:39:18 +00004290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
drh8b727472009-01-19 18:18:40 +00004291$as_echo_n "checking how to recognize dependent libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004292if ${lt_cv_deplibs_check_method+:} false; then :
drh8b727472009-01-19 18:18:40 +00004293 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00004294else
4295 lt_cv_file_magic_cmd='$MAGIC_CMD'
4296lt_cv_file_magic_test_file=
4297lt_cv_deplibs_check_method='unknown'
4298# Need to set the preceding variable on all platforms that support
4299# interlibrary dependencies.
4300# 'none' -- dependencies not supported.
4301# `unknown' -- same as none, but documents that we really don't know.
4302# 'pass_all' -- all dependencies passed with no checks.
4303# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00004304# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00004305# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00004306# If you have `file' or equivalent on your system and you're not sure
4307# whether `pass_all' will *always* work, you probably want this one.
4308
4309case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00004310aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00004311 lt_cv_deplibs_check_method=pass_all
4312 ;;
4313
4314beos*)
4315 lt_cv_deplibs_check_method=pass_all
4316 ;;
4317
vapier7f19c022007-02-17 14:46:31 +00004318bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00004319 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4320 lt_cv_file_magic_cmd='/usr/bin/file -L'
4321 lt_cv_file_magic_test_file=/shlib/libc.so
4322 ;;
4323
a.rottmann9bc8b932004-02-29 15:18:31 +00004324cygwin*)
vapier7f19c022007-02-17 14:46:31 +00004325 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00004326 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00004327 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00004328 ;;
4329
4330mingw* | pw32*)
4331 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00004332 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4333 # unless we find 'file', for example because we are cross-compiling.
4334 if ( file / ) >/dev/null 2>&1; then
4335 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4336 lt_cv_file_magic_cmd='func_win32_libid'
4337 else
4338 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4339 lt_cv_file_magic_cmd='$OBJDUMP -f'
4340 fi
drh71eb93e2001-09-28 01:34:43 +00004341 ;;
4342
vapier6acb2cf2009-01-28 04:46:28 +00004343cegcc)
4344 # use the weaker test based on 'objdump'. See mingw*.
4345 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4346 lt_cv_file_magic_cmd='$OBJDUMP -f'
4347 ;;
4348
drh71eb93e2001-09-28 01:34:43 +00004349darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004350 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004351 ;;
4352
mlcreech636a9952008-05-05 22:52:56 +00004353freebsd* | dragonfly*)
4354 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004355 case $host_cpu in
4356 i*86 )
4357 # Not sure whether the presence of OpenBSD here was a mistake.
4358 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00004359 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 +00004360 lt_cv_file_magic_cmd=/usr/bin/file
4361 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4362 ;;
4363 esac
4364 else
4365 lt_cv_deplibs_check_method=pass_all
4366 fi
4367 ;;
4368
4369gnu*)
4370 lt_cv_deplibs_check_method=pass_all
4371 ;;
4372
a.rottmann9bc8b932004-02-29 15:18:31 +00004373hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00004374 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00004375 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00004376 ia64*)
4377 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4378 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4379 ;;
4380 hppa*64*)
4381 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]'
4382 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4383 ;;
4384 *)
4385 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4386 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4387 ;;
4388 esac
drh71eb93e2001-09-28 01:34:43 +00004389 ;;
4390
mlcreech636a9952008-05-05 22:52:56 +00004391interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00004392 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4393 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4394 ;;
4395
a.rottmann84e63352003-03-24 09:42:16 +00004396irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004397 case $LD in
4398 *-32|*"-32 ") libmagic=32-bit;;
4399 *-n32|*"-n32 ") libmagic=N32;;
4400 *-64|*"-64 ") libmagic=64-bit;;
4401 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00004402 esac
drh71eb93e2001-09-28 01:34:43 +00004403 lt_cv_deplibs_check_method=pass_all
4404 ;;
4405
4406# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00004407linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00004408 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004409 ;;
4410
vapier7f19c022007-02-17 14:46:31 +00004411netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004412 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004413 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004414 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004415 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004416 fi
4417 ;;
4418
4419newos6*)
4420 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4421 lt_cv_file_magic_cmd=/usr/bin/file
4422 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4423 ;;
4424
mlcreech636a9952008-05-05 22:52:56 +00004425*nto* | *qnx*)
4426 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00004427 ;;
4428
a.rottmann84e63352003-03-24 09:42:16 +00004429openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004430 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00004431 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004432 else
vapier7f19c022007-02-17 14:46:31 +00004433 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004434 fi
drh71eb93e2001-09-28 01:34:43 +00004435 ;;
4436
4437osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004438 lt_cv_deplibs_check_method=pass_all
4439 ;;
4440
mlcreech636a9952008-05-05 22:52:56 +00004441rdos*)
4442 lt_cv_deplibs_check_method=pass_all
4443 ;;
4444
drh71eb93e2001-09-28 01:34:43 +00004445solaris*)
4446 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00004447 ;;
4448
mlcreech636a9952008-05-05 22:52:56 +00004449sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4450 lt_cv_deplibs_check_method=pass_all
4451 ;;
4452
vapier7f19c022007-02-17 14:46:31 +00004453sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00004454 case $host_vendor in
4455 motorola)
4456 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]'
4457 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4458 ;;
4459 ncr)
4460 lt_cv_deplibs_check_method=pass_all
4461 ;;
4462 sequent)
4463 lt_cv_file_magic_cmd='/bin/file'
4464 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4465 ;;
4466 sni)
4467 lt_cv_file_magic_cmd='/bin/file'
4468 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4469 lt_cv_file_magic_test_file=/lib/libc.so
4470 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004471 siemens)
4472 lt_cv_deplibs_check_method=pass_all
4473 ;;
vapier7f19c022007-02-17 14:46:31 +00004474 pc)
4475 lt_cv_deplibs_check_method=pass_all
4476 ;;
drh71eb93e2001-09-28 01:34:43 +00004477 esac
4478 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004479
mlcreech636a9952008-05-05 22:52:56 +00004480tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004481 lt_cv_deplibs_check_method=pass_all
4482 ;;
drh71eb93e2001-09-28 01:34:43 +00004483esac
4484
4485fi
drhf922ca42015-05-14 15:39:18 +00004486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
drh8b727472009-01-19 18:18:40 +00004487$as_echo "$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004488file_magic_cmd=$lt_cv_file_magic_cmd
4489deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00004490test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00004491
drh71eb93e2001-09-28 01:34:43 +00004492
drh71eb93e2001-09-28 01:34:43 +00004493
drh71eb93e2001-09-28 01:34:43 +00004494
mlcreech636a9952008-05-05 22:52:56 +00004495
4496
4497
4498
4499
4500
4501
4502
4503if test -n "$ac_tool_prefix"; then
4504 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4505set dummy ${ac_tool_prefix}ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004507$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004508if ${ac_cv_prog_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004509 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004510else
4511 if test -n "$AR"; then
4512 ac_cv_prog_AR="$AR" # Let the user override the test.
4513else
4514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515for as_dir in $PATH
4516do
4517 IFS=$as_save_IFS
4518 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004519 for ac_exec_ext in '' $ac_executable_extensions; do
4520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004521 ac_cv_prog_AR="${ac_tool_prefix}ar"
drhf922ca42015-05-14 15:39:18 +00004522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004523 break 2
4524 fi
4525done
drhf922ca42015-05-14 15:39:18 +00004526 done
drh8b727472009-01-19 18:18:40 +00004527IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004528
4529fi
4530fi
4531AR=$ac_cv_prog_AR
4532if test -n "$AR"; then
drhf922ca42015-05-14 15:39:18 +00004533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
drh8b727472009-01-19 18:18:40 +00004534$as_echo "$AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004535else
drhf922ca42015-05-14 15:39:18 +00004536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004537$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004538fi
4539
drh8b727472009-01-19 18:18:40 +00004540
mlcreech636a9952008-05-05 22:52:56 +00004541fi
4542if test -z "$ac_cv_prog_AR"; then
4543 ac_ct_AR=$AR
4544 # Extract the first word of "ar", so it can be a program name with args.
4545set dummy ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004547$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004548if ${ac_cv_prog_ac_ct_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004549 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004550else
4551 if test -n "$ac_ct_AR"; then
4552 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4553else
4554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4555for as_dir in $PATH
4556do
4557 IFS=$as_save_IFS
4558 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004559 for ac_exec_ext in '' $ac_executable_extensions; do
4560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004561 ac_cv_prog_ac_ct_AR="ar"
drhf922ca42015-05-14 15:39:18 +00004562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004563 break 2
4564 fi
4565done
drhf922ca42015-05-14 15:39:18 +00004566 done
drh8b727472009-01-19 18:18:40 +00004567IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004568
4569fi
4570fi
4571ac_ct_AR=$ac_cv_prog_ac_ct_AR
4572if test -n "$ac_ct_AR"; then
drhf922ca42015-05-14 15:39:18 +00004573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
drh8b727472009-01-19 18:18:40 +00004574$as_echo "$ac_ct_AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004575else
drhf922ca42015-05-14 15:39:18 +00004576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004577$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004578fi
4579
drh8b727472009-01-19 18:18:40 +00004580 if test "x$ac_ct_AR" = x; then
4581 AR="false"
4582 else
4583 case $cross_compiling:$ac_tool_warned in
4584yes:)
drhf922ca42015-05-14 15:39:18 +00004585{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004587ac_tool_warned=yes ;;
4588esac
4589 AR=$ac_ct_AR
4590 fi
mlcreech636a9952008-05-05 22:52:56 +00004591else
4592 AR="$ac_cv_prog_AR"
4593fi
4594
4595test -z "$AR" && AR=ar
4596test -z "$AR_FLAGS" && AR_FLAGS=cru
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608if test -n "$ac_tool_prefix"; then
4609 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4610set dummy ${ac_tool_prefix}strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004612$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004613if ${ac_cv_prog_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004614 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004615else
4616 if test -n "$STRIP"; then
4617 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4618else
4619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620for as_dir in $PATH
4621do
4622 IFS=$as_save_IFS
4623 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004624 for ac_exec_ext in '' $ac_executable_extensions; do
4625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004626 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
drhf922ca42015-05-14 15:39:18 +00004627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004628 break 2
4629 fi
4630done
drhf922ca42015-05-14 15:39:18 +00004631 done
drh8b727472009-01-19 18:18:40 +00004632IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004633
4634fi
4635fi
4636STRIP=$ac_cv_prog_STRIP
4637if test -n "$STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004639$as_echo "$STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004640else
drhf922ca42015-05-14 15:39:18 +00004641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004642$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004643fi
4644
drh8b727472009-01-19 18:18:40 +00004645
mlcreech636a9952008-05-05 22:52:56 +00004646fi
4647if test -z "$ac_cv_prog_STRIP"; then
4648 ac_ct_STRIP=$STRIP
4649 # Extract the first word of "strip", so it can be a program name with args.
4650set dummy strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004652$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004653if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004654 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004655else
4656 if test -n "$ac_ct_STRIP"; then
4657 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4658else
4659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660for as_dir in $PATH
4661do
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004666 ac_cv_prog_ac_ct_STRIP="strip"
drhf922ca42015-05-14 15:39:18 +00004667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004668 break 2
4669 fi
4670done
drhf922ca42015-05-14 15:39:18 +00004671 done
drh8b727472009-01-19 18:18:40 +00004672IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004673
4674fi
4675fi
4676ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4677if test -n "$ac_ct_STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004679$as_echo "$ac_ct_STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004680else
drhf922ca42015-05-14 15:39:18 +00004681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004682$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004683fi
4684
drh8b727472009-01-19 18:18:40 +00004685 if test "x$ac_ct_STRIP" = x; then
4686 STRIP=":"
4687 else
4688 case $cross_compiling:$ac_tool_warned in
4689yes:)
drhf922ca42015-05-14 15:39:18 +00004690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004692ac_tool_warned=yes ;;
4693esac
4694 STRIP=$ac_ct_STRIP
4695 fi
mlcreech636a9952008-05-05 22:52:56 +00004696else
4697 STRIP="$ac_cv_prog_STRIP"
4698fi
4699
4700test -z "$STRIP" && STRIP=:
4701
4702
4703
4704
4705
4706
4707if test -n "$ac_tool_prefix"; then
4708 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4709set dummy ${ac_tool_prefix}ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004711$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004712if ${ac_cv_prog_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004713 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004714else
4715 if test -n "$RANLIB"; then
4716 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4717else
4718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719for as_dir in $PATH
4720do
4721 IFS=$as_save_IFS
4722 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004725 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
drhf922ca42015-05-14 15:39:18 +00004726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004727 break 2
4728 fi
4729done
drhf922ca42015-05-14 15:39:18 +00004730 done
drh8b727472009-01-19 18:18:40 +00004731IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004732
4733fi
4734fi
4735RANLIB=$ac_cv_prog_RANLIB
4736if test -n "$RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004738$as_echo "$RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004739else
drhf922ca42015-05-14 15:39:18 +00004740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004741$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004742fi
4743
drh8b727472009-01-19 18:18:40 +00004744
mlcreech636a9952008-05-05 22:52:56 +00004745fi
4746if test -z "$ac_cv_prog_RANLIB"; then
4747 ac_ct_RANLIB=$RANLIB
4748 # Extract the first word of "ranlib", so it can be a program name with args.
4749set dummy ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004751$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004752if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004753 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004754else
4755 if test -n "$ac_ct_RANLIB"; then
4756 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4757else
4758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759for as_dir in $PATH
4760do
4761 IFS=$as_save_IFS
4762 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004765 ac_cv_prog_ac_ct_RANLIB="ranlib"
drhf922ca42015-05-14 15:39:18 +00004766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004767 break 2
4768 fi
4769done
drhf922ca42015-05-14 15:39:18 +00004770 done
drh8b727472009-01-19 18:18:40 +00004771IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004772
4773fi
4774fi
4775ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4776if test -n "$ac_ct_RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004778$as_echo "$ac_ct_RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004779else
drhf922ca42015-05-14 15:39:18 +00004780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004781$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004782fi
4783
drh8b727472009-01-19 18:18:40 +00004784 if test "x$ac_ct_RANLIB" = x; then
4785 RANLIB=":"
4786 else
4787 case $cross_compiling:$ac_tool_warned in
4788yes:)
drhf922ca42015-05-14 15:39:18 +00004789{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004791ac_tool_warned=yes ;;
4792esac
4793 RANLIB=$ac_ct_RANLIB
4794 fi
mlcreech636a9952008-05-05 22:52:56 +00004795else
4796 RANLIB="$ac_cv_prog_RANLIB"
4797fi
4798
4799test -z "$RANLIB" && RANLIB=:
4800
4801
4802
4803
4804
4805
4806# Determine commands to create old-style static archives.
4807old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4808old_postinstall_cmds='chmod 644 $oldlib'
4809old_postuninstall_cmds=
4810
4811if test -n "$RANLIB"; then
4812 case $host_os in
4813 openbsd*)
4814 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4815 ;;
4816 *)
4817 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4818 ;;
4819 esac
4820 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4821fi
4822
4823
4824
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
a.rottmann9bc8b932004-02-29 15:18:31 +00004856# If no C compiler was specified, use CC.
4857LTCC=${LTCC-"$CC"}
4858
vapier7f19c022007-02-17 14:46:31 +00004859# If no C compiler flags were specified, use CFLAGS.
4860LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4861
a.rottmann9bc8b932004-02-29 15:18:31 +00004862# Allow CC to be a program name with arguments.
4863compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00004864
drh71eb93e2001-09-28 01:34:43 +00004865
mlcreech636a9952008-05-05 22:52:56 +00004866# Check for command to grab the raw symbol name followed by C symbol from nm.
drhf922ca42015-05-14 15:39:18 +00004867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
drh8b727472009-01-19 18:18:40 +00004868$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004869if ${lt_cv_sys_global_symbol_pipe+:} false; then :
drh8b727472009-01-19 18:18:40 +00004870 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004871else
4872
4873# These are sane defaults that work on at least a few old systems.
4874# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4875
4876# Character class describing NM global symbol codes.
4877symcode='[BCDEGRST]'
4878
4879# Regexp to match symbols that can be accessed directly from C.
4880sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4881
4882# Define system-specific variables.
4883case $host_os in
4884aix*)
4885 symcode='[BCDT]'
4886 ;;
vapier6acb2cf2009-01-28 04:46:28 +00004887cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00004888 symcode='[ABCDGISTW]'
4889 ;;
4890hpux*)
4891 if test "$host_cpu" = ia64; then
4892 symcode='[ABCDEGRST]'
4893 fi
4894 ;;
4895irix* | nonstopux*)
4896 symcode='[BCDEGRST]'
4897 ;;
4898osf*)
4899 symcode='[BCDEGQRST]'
4900 ;;
4901solaris*)
4902 symcode='[BDRT]'
4903 ;;
4904sco3.2v5*)
4905 symcode='[DT]'
4906 ;;
4907sysv4.2uw2*)
4908 symcode='[DT]'
4909 ;;
4910sysv5* | sco5v6* | unixware* | OpenUNIX*)
4911 symcode='[ABDT]'
4912 ;;
4913sysv4)
4914 symcode='[DFNSTU]'
4915 ;;
4916esac
4917
4918# If we're using GNU nm, then use its standard symbol codes.
4919case `$NM -V 2>&1` in
4920*GNU* | *'with BFD'*)
4921 symcode='[ABCDGIRSTW]' ;;
4922esac
4923
4924# Transform an extracted symbol line into a proper C declaration.
4925# Some systems (esp. on ia64) link data and code symbols differently,
4926# so use this general approach.
4927lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4928
4929# Transform an extracted symbol line into symbol name and symbol address
4930lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4931lt_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'"
4932
4933# Handle CRLF in mingw tool chain
4934opt_cr=
4935case $build_os in
4936mingw*)
4937 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4938 ;;
4939esac
4940
4941# Try without a prefix underscore, then with it.
4942for ac_symprfx in "" "_"; do
4943
4944 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4945 symxfrm="\\1 $ac_symprfx\\2 \\2"
4946
4947 # Write the raw and C identifiers.
4948 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4949 # Fake it for dumpbin and say T for any non-static function
4950 # and D for any global variable.
4951 # Also find C++ and __fastcall symbols from MSVC++,
4952 # which start with @ or ?.
4953 lt_cv_sys_global_symbol_pipe="$AWK '"\
4954" {last_section=section; section=\$ 3};"\
4955" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4956" \$ 0!~/External *\|/{next};"\
4957" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4958" {if(hide[section]) next};"\
4959" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4960" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4961" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4962" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4963" ' prfx=^$ac_symprfx"
4964 else
4965 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4966 fi
4967
4968 # Check to see that the pipe works correctly.
4969 pipe_works=no
4970
4971 rm -f conftest*
4972 cat > conftest.$ac_ext <<_LT_EOF
4973#ifdef __cplusplus
4974extern "C" {
4975#endif
4976char nm_test_var;
4977void nm_test_func(void);
4978void nm_test_func(void){}
4979#ifdef __cplusplus
4980}
4981#endif
4982int main(){nm_test_var='a';nm_test_func();return(0);}
4983_LT_EOF
4984
drhf922ca42015-05-14 15:39:18 +00004985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00004986 (eval $ac_compile) 2>&5
4987 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00004988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4989 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00004990 # Now try to grab the symbols.
4991 nlist=conftest.nm
drhf922ca42015-05-14 15:39:18 +00004992 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 +00004993 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4994 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00004995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4996 test $ac_status = 0; } && test -s "$nlist"; then
mlcreech636a9952008-05-05 22:52:56 +00004997 # Try sorting and uniquifying the output.
4998 if sort "$nlist" | uniq > "$nlist"T; then
4999 mv -f "$nlist"T "$nlist"
5000 else
5001 rm -f "$nlist"T
5002 fi
5003
5004 # Make sure that we snagged all the symbols we need.
5005 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5006 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5007 cat <<_LT_EOF > conftest.$ac_ext
5008#ifdef __cplusplus
5009extern "C" {
5010#endif
5011
5012_LT_EOF
5013 # Now generate the symbol file.
5014 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5015
5016 cat <<_LT_EOF >> conftest.$ac_ext
5017
5018/* The mapping between symbol names and symbols. */
5019const struct {
5020 const char *name;
5021 void *address;
5022}
5023lt__PROGRAM__LTX_preloaded_symbols[] =
5024{
5025 { "@PROGRAM@", (void *) 0 },
5026_LT_EOF
5027 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5028 cat <<\_LT_EOF >> conftest.$ac_ext
5029 {0, (void *) 0}
5030};
5031
5032/* This works around a problem in FreeBSD linker */
5033#ifdef FREEBSD_WORKAROUND
5034static const void *lt_preloaded_setup() {
5035 return lt__PROGRAM__LTX_preloaded_symbols;
5036}
5037#endif
5038
5039#ifdef __cplusplus
5040}
5041#endif
5042_LT_EOF
5043 # Now try linking the two files.
5044 mv conftest.$ac_objext conftstm.$ac_objext
5045 lt_save_LIBS="$LIBS"
5046 lt_save_CFLAGS="$CFLAGS"
5047 LIBS="conftstm.$ac_objext"
5048 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
drhf922ca42015-05-14 15:39:18 +00005049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00005050 (eval $ac_link) 2>&5
5051 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5053 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
mlcreech636a9952008-05-05 22:52:56 +00005054 pipe_works=yes
5055 fi
5056 LIBS="$lt_save_LIBS"
5057 CFLAGS="$lt_save_CFLAGS"
5058 else
5059 echo "cannot find nm_test_func in $nlist" >&5
5060 fi
5061 else
5062 echo "cannot find nm_test_var in $nlist" >&5
5063 fi
5064 else
5065 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5066 fi
5067 else
5068 echo "$progname: failed program was:" >&5
5069 cat conftest.$ac_ext >&5
5070 fi
5071 rm -rf conftest* conftst*
5072
5073 # Do not use the global_symbol_pipe unless it works.
5074 if test "$pipe_works" = yes; then
5075 break
5076 else
5077 lt_cv_sys_global_symbol_pipe=
5078 fi
5079done
5080
5081fi
5082
5083if test -z "$lt_cv_sys_global_symbol_pipe"; then
5084 lt_cv_sys_global_symbol_to_cdecl=
5085fi
5086if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
drhf922ca42015-05-14 15:39:18 +00005087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
drh8b727472009-01-19 18:18:40 +00005088$as_echo "failed" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005089else
drhf922ca42015-05-14 15:39:18 +00005090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
drh8b727472009-01-19 18:18:40 +00005091$as_echo "ok" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005092fi
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
drh8b727472009-01-19 18:18:40 +00005116# Check whether --enable-libtool-lock was given.
drhf922ca42015-05-14 15:39:18 +00005117if test "${enable_libtool_lock+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005118 enableval=$enable_libtool_lock;
5119fi
drh71eb93e2001-09-28 01:34:43 +00005120
a.rottmann9bc8b932004-02-29 15:18:31 +00005121test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00005122
a.rottmann9bc8b932004-02-29 15:18:31 +00005123# Some flags need to be propagated to the compiler or linker for good
5124# libtool support.
5125case $host in
5126ia64-*-hpux*)
5127 # Find out which ABI we are using.
5128 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00005130 (eval $ac_compile) 2>&5
5131 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5133 test $ac_status = 0; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005134 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00005135 *ELF-32*)
5136 HPUX_IA64_MODE="32"
5137 ;;
5138 *ELF-64*)
5139 HPUX_IA64_MODE="64"
5140 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005141 esac
5142 fi
5143 rm -rf conftest*
5144 ;;
5145*-*-irix6*)
5146 # Find out which ABI we are using.
drh56c93112017-11-24 16:55:48 +00005147 echo '#line 5147 "configure"' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005149 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00005150 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5152 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00005153 if test "$lt_cv_prog_gnu_ld" = yes; then
5154 case `/usr/bin/file conftest.$ac_objext` in
5155 *32-bit*)
5156 LD="${LD-ld} -melf32bsmip"
5157 ;;
5158 *N32*)
5159 LD="${LD-ld} -melf32bmipn32"
5160 ;;
5161 *64-bit*)
5162 LD="${LD-ld} -melf64bmip"
5163 ;;
5164 esac
5165 else
5166 case `/usr/bin/file conftest.$ac_objext` in
5167 *32-bit*)
5168 LD="${LD-ld} -32"
5169 ;;
5170 *N32*)
5171 LD="${LD-ld} -n32"
5172 ;;
5173 *64-bit*)
5174 LD="${LD-ld} -64"
5175 ;;
5176 esac
5177 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005178 fi
5179 rm -rf conftest*
5180 ;;
drh71eb93e2001-09-28 01:34:43 +00005181
mlcreech636a9952008-05-05 22:52:56 +00005182x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5183s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005184 # Find out which ABI we are using.
5185 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005187 (eval $ac_compile) 2>&5
5188 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5190 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005191 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00005192 *32-bit*)
5193 case $host in
5194 x86_64-*kfreebsd*-gnu)
5195 LD="${LD-ld} -m elf_i386_fbsd"
5196 ;;
5197 x86_64-*linux*)
5198 LD="${LD-ld} -m elf_i386"
5199 ;;
5200 ppc64-*linux*|powerpc64-*linux*)
5201 LD="${LD-ld} -m elf32ppclinux"
5202 ;;
5203 s390x-*linux*)
5204 LD="${LD-ld} -m elf_s390"
5205 ;;
5206 sparc64-*linux*)
5207 LD="${LD-ld} -m elf32_sparc"
5208 ;;
5209 esac
5210 ;;
5211 *64-bit*)
5212 case $host in
5213 x86_64-*kfreebsd*-gnu)
5214 LD="${LD-ld} -m elf_x86_64_fbsd"
5215 ;;
5216 x86_64-*linux*)
5217 LD="${LD-ld} -m elf_x86_64"
5218 ;;
5219 ppc*-*linux*|powerpc*-*linux*)
5220 LD="${LD-ld} -m elf64ppc"
5221 ;;
5222 s390*-*linux*|s390*-*tpf*)
5223 LD="${LD-ld} -m elf64_s390"
5224 ;;
5225 sparc*-*linux*)
5226 LD="${LD-ld} -m elf64_sparc"
5227 ;;
5228 esac
5229 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005230 esac
5231 fi
5232 rm -rf conftest*
5233 ;;
drh71eb93e2001-09-28 01:34:43 +00005234
a.rottmann9bc8b932004-02-29 15:18:31 +00005235*-*-sco3.2v5*)
5236 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5237 SAVE_CFLAGS="$CFLAGS"
5238 CFLAGS="$CFLAGS -belf"
drhf922ca42015-05-14 15:39:18 +00005239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
drh8b727472009-01-19 18:18:40 +00005240$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005241if ${lt_cv_cc_needs_belf+:} false; then :
drh8b727472009-01-19 18:18:40 +00005242 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005243else
5244 ac_ext=c
5245ac_cpp='$CPP $CPPFLAGS'
5246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5248ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00005249
drhf922ca42015-05-14 15:39:18 +00005250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005251/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00005252
a.rottmann9bc8b932004-02-29 15:18:31 +00005253int
5254main ()
drh71eb93e2001-09-28 01:34:43 +00005255{
drh71eb93e2001-09-28 01:34:43 +00005256
a.rottmann9bc8b932004-02-29 15:18:31 +00005257 ;
5258 return 0;
drh71eb93e2001-09-28 01:34:43 +00005259}
a.rottmann9bc8b932004-02-29 15:18:31 +00005260_ACEOF
drhf922ca42015-05-14 15:39:18 +00005261if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00005262 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00005263else
drhf922ca42015-05-14 15:39:18 +00005264 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00005265fi
drhf922ca42015-05-14 15:39:18 +00005266rm -f core conftest.err conftest.$ac_objext \
5267 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005268 ac_ext=c
5269ac_cpp='$CPP $CPPFLAGS'
5270ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5271ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5272ac_compiler_gnu=$ac_cv_c_compiler_gnu
5273
drh71eb93e2001-09-28 01:34:43 +00005274fi
drhf922ca42015-05-14 15:39:18 +00005275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
drh8b727472009-01-19 18:18:40 +00005276$as_echo "$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005277 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5278 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5279 CFLAGS="$SAVE_CFLAGS"
5280 fi
5281 ;;
vapier7f19c022007-02-17 14:46:31 +00005282sparc*-*solaris*)
5283 # Find out which ABI we are using.
5284 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
vapier7f19c022007-02-17 14:46:31 +00005286 (eval $ac_compile) 2>&5
5287 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5289 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005290 case `/usr/bin/file conftest.o` in
5291 *64-bit*)
5292 case $lt_cv_prog_gnu_ld in
5293 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00005294 *)
5295 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5296 LD="${LD-ld} -64"
5297 fi
5298 ;;
vapier7f19c022007-02-17 14:46:31 +00005299 esac
5300 ;;
5301 esac
5302 fi
5303 rm -rf conftest*
5304 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005305esac
5306
5307need_locks="$enable_libtool_lock"
5308
drh71eb93e2001-09-28 01:34:43 +00005309
mlcreech636a9952008-05-05 22:52:56 +00005310 case $host_os in
5311 rhapsody* | darwin*)
5312 if test -n "$ac_tool_prefix"; then
5313 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5314set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005316$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005317if ${ac_cv_prog_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005318 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005319else
5320 if test -n "$DSYMUTIL"; then
5321 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5322else
5323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324for as_dir in $PATH
5325do
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005330 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
drhf922ca42015-05-14 15:39:18 +00005331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005332 break 2
5333 fi
5334done
drhf922ca42015-05-14 15:39:18 +00005335 done
drh8b727472009-01-19 18:18:40 +00005336IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005337
5338fi
5339fi
5340DSYMUTIL=$ac_cv_prog_DSYMUTIL
5341if test -n "$DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005343$as_echo "$DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005344else
drhf922ca42015-05-14 15:39:18 +00005345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005346$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005347fi
5348
drh8b727472009-01-19 18:18:40 +00005349
mlcreech636a9952008-05-05 22:52:56 +00005350fi
5351if test -z "$ac_cv_prog_DSYMUTIL"; then
5352 ac_ct_DSYMUTIL=$DSYMUTIL
5353 # Extract the first word of "dsymutil", so it can be a program name with args.
5354set dummy dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005356$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005357if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005358 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005359else
5360 if test -n "$ac_ct_DSYMUTIL"; then
5361 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5362else
5363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364for as_dir in $PATH
5365do
5366 IFS=$as_save_IFS
5367 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005368 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005370 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
drhf922ca42015-05-14 15:39:18 +00005371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005372 break 2
5373 fi
5374done
drhf922ca42015-05-14 15:39:18 +00005375 done
drh8b727472009-01-19 18:18:40 +00005376IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005377
5378fi
5379fi
5380ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5381if test -n "$ac_ct_DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005383$as_echo "$ac_ct_DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005384else
drhf922ca42015-05-14 15:39:18 +00005385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005386$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005387fi
5388
drh8b727472009-01-19 18:18:40 +00005389 if test "x$ac_ct_DSYMUTIL" = x; then
5390 DSYMUTIL=":"
5391 else
5392 case $cross_compiling:$ac_tool_warned in
5393yes:)
drhf922ca42015-05-14 15:39:18 +00005394{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5395$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005396ac_tool_warned=yes ;;
5397esac
5398 DSYMUTIL=$ac_ct_DSYMUTIL
5399 fi
mlcreech636a9952008-05-05 22:52:56 +00005400else
5401 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5402fi
5403
5404 if test -n "$ac_tool_prefix"; then
5405 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5406set dummy ${ac_tool_prefix}nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005408$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005409if ${ac_cv_prog_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005410 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005411else
5412 if test -n "$NMEDIT"; then
5413 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5414else
5415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416for as_dir in $PATH
5417do
5418 IFS=$as_save_IFS
5419 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005420 for ac_exec_ext in '' $ac_executable_extensions; do
5421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005422 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
drhf922ca42015-05-14 15:39:18 +00005423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005424 break 2
5425 fi
5426done
drhf922ca42015-05-14 15:39:18 +00005427 done
drh8b727472009-01-19 18:18:40 +00005428IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005429
5430fi
5431fi
5432NMEDIT=$ac_cv_prog_NMEDIT
5433if test -n "$NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005435$as_echo "$NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005436else
drhf922ca42015-05-14 15:39:18 +00005437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005438$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005439fi
5440
drh8b727472009-01-19 18:18:40 +00005441
mlcreech636a9952008-05-05 22:52:56 +00005442fi
5443if test -z "$ac_cv_prog_NMEDIT"; then
5444 ac_ct_NMEDIT=$NMEDIT
5445 # Extract the first word of "nmedit", so it can be a program name with args.
5446set dummy nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005448$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005449if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005450 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005451else
5452 if test -n "$ac_ct_NMEDIT"; then
5453 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5454else
5455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5456for as_dir in $PATH
5457do
5458 IFS=$as_save_IFS
5459 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005462 ac_cv_prog_ac_ct_NMEDIT="nmedit"
drhf922ca42015-05-14 15:39:18 +00005463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005464 break 2
5465 fi
5466done
drhf922ca42015-05-14 15:39:18 +00005467 done
drh8b727472009-01-19 18:18:40 +00005468IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005469
5470fi
5471fi
5472ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5473if test -n "$ac_ct_NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005475$as_echo "$ac_ct_NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005476else
drhf922ca42015-05-14 15:39:18 +00005477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005478$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005479fi
5480
drh8b727472009-01-19 18:18:40 +00005481 if test "x$ac_ct_NMEDIT" = x; then
5482 NMEDIT=":"
5483 else
5484 case $cross_compiling:$ac_tool_warned in
5485yes:)
drhf922ca42015-05-14 15:39:18 +00005486{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5487$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005488ac_tool_warned=yes ;;
5489esac
5490 NMEDIT=$ac_ct_NMEDIT
5491 fi
mlcreech636a9952008-05-05 22:52:56 +00005492else
5493 NMEDIT="$ac_cv_prog_NMEDIT"
5494fi
5495
5496 if test -n "$ac_tool_prefix"; then
5497 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5498set dummy ${ac_tool_prefix}lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005500$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005501if ${ac_cv_prog_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005502 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005503else
5504 if test -n "$LIPO"; then
5505 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5506else
5507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508for as_dir in $PATH
5509do
5510 IFS=$as_save_IFS
5511 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005514 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
drhf922ca42015-05-14 15:39:18 +00005515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005516 break 2
5517 fi
5518done
drhf922ca42015-05-14 15:39:18 +00005519 done
drh8b727472009-01-19 18:18:40 +00005520IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005521
5522fi
5523fi
5524LIPO=$ac_cv_prog_LIPO
5525if test -n "$LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005527$as_echo "$LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005528else
drhf922ca42015-05-14 15:39:18 +00005529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005530$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005531fi
5532
drh8b727472009-01-19 18:18:40 +00005533
mlcreech636a9952008-05-05 22:52:56 +00005534fi
5535if test -z "$ac_cv_prog_LIPO"; then
5536 ac_ct_LIPO=$LIPO
5537 # Extract the first word of "lipo", so it can be a program name with args.
5538set dummy lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005540$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005541if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005542 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005543else
5544 if test -n "$ac_ct_LIPO"; then
5545 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5546else
5547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548for as_dir in $PATH
5549do
5550 IFS=$as_save_IFS
5551 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005554 ac_cv_prog_ac_ct_LIPO="lipo"
drhf922ca42015-05-14 15:39:18 +00005555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005556 break 2
5557 fi
5558done
drhf922ca42015-05-14 15:39:18 +00005559 done
drh8b727472009-01-19 18:18:40 +00005560IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005561
5562fi
5563fi
5564ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5565if test -n "$ac_ct_LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005567$as_echo "$ac_ct_LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005568else
drhf922ca42015-05-14 15:39:18 +00005569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005570$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005571fi
5572
drh8b727472009-01-19 18:18:40 +00005573 if test "x$ac_ct_LIPO" = x; then
5574 LIPO=":"
5575 else
5576 case $cross_compiling:$ac_tool_warned in
5577yes:)
drhf922ca42015-05-14 15:39:18 +00005578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005580ac_tool_warned=yes ;;
5581esac
5582 LIPO=$ac_ct_LIPO
5583 fi
mlcreech636a9952008-05-05 22:52:56 +00005584else
5585 LIPO="$ac_cv_prog_LIPO"
5586fi
5587
5588 if test -n "$ac_tool_prefix"; then
5589 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5590set dummy ${ac_tool_prefix}otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005592$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005593if ${ac_cv_prog_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005594 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005595else
5596 if test -n "$OTOOL"; then
5597 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5598else
5599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600for as_dir in $PATH
5601do
5602 IFS=$as_save_IFS
5603 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005604 for ac_exec_ext in '' $ac_executable_extensions; do
5605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005606 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
drhf922ca42015-05-14 15:39:18 +00005607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005608 break 2
5609 fi
5610done
drhf922ca42015-05-14 15:39:18 +00005611 done
drh8b727472009-01-19 18:18:40 +00005612IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005613
5614fi
5615fi
5616OTOOL=$ac_cv_prog_OTOOL
5617if test -n "$OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005619$as_echo "$OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005620else
drhf922ca42015-05-14 15:39:18 +00005621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005622$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005623fi
5624
drh8b727472009-01-19 18:18:40 +00005625
mlcreech636a9952008-05-05 22:52:56 +00005626fi
5627if test -z "$ac_cv_prog_OTOOL"; then
5628 ac_ct_OTOOL=$OTOOL
5629 # Extract the first word of "otool", so it can be a program name with args.
5630set dummy otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005632$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005633if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005634 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005635else
5636 if test -n "$ac_ct_OTOOL"; then
5637 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5638else
5639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5640for as_dir in $PATH
5641do
5642 IFS=$as_save_IFS
5643 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005644 for ac_exec_ext in '' $ac_executable_extensions; do
5645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005646 ac_cv_prog_ac_ct_OTOOL="otool"
drhf922ca42015-05-14 15:39:18 +00005647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005648 break 2
5649 fi
5650done
drhf922ca42015-05-14 15:39:18 +00005651 done
drh8b727472009-01-19 18:18:40 +00005652IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005653
5654fi
5655fi
5656ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5657if test -n "$ac_ct_OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005659$as_echo "$ac_ct_OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005660else
drhf922ca42015-05-14 15:39:18 +00005661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005662$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005663fi
5664
drh8b727472009-01-19 18:18:40 +00005665 if test "x$ac_ct_OTOOL" = x; then
5666 OTOOL=":"
5667 else
5668 case $cross_compiling:$ac_tool_warned in
5669yes:)
drhf922ca42015-05-14 15:39:18 +00005670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005672ac_tool_warned=yes ;;
5673esac
5674 OTOOL=$ac_ct_OTOOL
5675 fi
mlcreech636a9952008-05-05 22:52:56 +00005676else
5677 OTOOL="$ac_cv_prog_OTOOL"
5678fi
5679
5680 if test -n "$ac_tool_prefix"; then
5681 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5682set dummy ${ac_tool_prefix}otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005684$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005685if ${ac_cv_prog_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005686 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005687else
5688 if test -n "$OTOOL64"; then
5689 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5690else
5691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692for as_dir in $PATH
5693do
5694 IFS=$as_save_IFS
5695 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005698 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
drhf922ca42015-05-14 15:39:18 +00005699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005700 break 2
5701 fi
5702done
drhf922ca42015-05-14 15:39:18 +00005703 done
drh8b727472009-01-19 18:18:40 +00005704IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005705
5706fi
5707fi
5708OTOOL64=$ac_cv_prog_OTOOL64
5709if test -n "$OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005711$as_echo "$OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005712else
drhf922ca42015-05-14 15:39:18 +00005713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005714$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005715fi
5716
drh8b727472009-01-19 18:18:40 +00005717
mlcreech636a9952008-05-05 22:52:56 +00005718fi
5719if test -z "$ac_cv_prog_OTOOL64"; then
5720 ac_ct_OTOOL64=$OTOOL64
5721 # Extract the first word of "otool64", so it can be a program name with args.
5722set dummy otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005724$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005725if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005726 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005727else
5728 if test -n "$ac_ct_OTOOL64"; then
5729 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5730else
5731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732for as_dir in $PATH
5733do
5734 IFS=$as_save_IFS
5735 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005736 for ac_exec_ext in '' $ac_executable_extensions; do
5737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005738 ac_cv_prog_ac_ct_OTOOL64="otool64"
drhf922ca42015-05-14 15:39:18 +00005739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005740 break 2
5741 fi
5742done
drhf922ca42015-05-14 15:39:18 +00005743 done
drh8b727472009-01-19 18:18:40 +00005744IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005745
5746fi
5747fi
5748ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5749if test -n "$ac_ct_OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005751$as_echo "$ac_ct_OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005752else
drhf922ca42015-05-14 15:39:18 +00005753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005754$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005755fi
5756
drh8b727472009-01-19 18:18:40 +00005757 if test "x$ac_ct_OTOOL64" = x; then
5758 OTOOL64=":"
5759 else
5760 case $cross_compiling:$ac_tool_warned in
5761yes:)
drhf922ca42015-05-14 15:39:18 +00005762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005764ac_tool_warned=yes ;;
5765esac
5766 OTOOL64=$ac_ct_OTOOL64
5767 fi
mlcreech636a9952008-05-05 22:52:56 +00005768else
5769 OTOOL64="$ac_cv_prog_OTOOL64"
5770fi
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
drhf922ca42015-05-14 15:39:18 +00005798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005799$as_echo_n "checking for -single_module linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005800if ${lt_cv_apple_cc_single_mod+:} false; then :
drh8b727472009-01-19 18:18:40 +00005801 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005802else
5803 lt_cv_apple_cc_single_mod=no
5804 if test -z "${LT_MULTI_MODULE}"; then
5805 # By default we will add the -single_module flag. You can override
5806 # by either setting the environment variable LT_MULTI_MODULE
5807 # non-empty at configure time, or by adding -multi_module to the
5808 # link flags.
5809 rm -rf libconftest.dylib*
5810 echo "int foo(void){return 1;}" > conftest.c
5811 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5812-dynamiclib -Wl,-single_module conftest.c" >&5
5813 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5814 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5815 _lt_result=$?
5816 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5817 lt_cv_apple_cc_single_mod=yes
5818 else
5819 cat conftest.err >&5
5820 fi
5821 rm -rf libconftest.dylib*
5822 rm -f conftest.*
5823 fi
5824fi
drhf922ca42015-05-14 15:39:18 +00005825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
drh8b727472009-01-19 18:18:40 +00005826$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
drhf922ca42015-05-14 15:39:18 +00005827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005828$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005829if ${lt_cv_ld_exported_symbols_list+:} false; then :
drh8b727472009-01-19 18:18:40 +00005830 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005831else
5832 lt_cv_ld_exported_symbols_list=no
5833 save_LDFLAGS=$LDFLAGS
5834 echo "_main" > conftest.sym
5835 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
drhf922ca42015-05-14 15:39:18 +00005836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005837/* end confdefs.h. */
5838
5839int
5840main ()
5841{
5842
5843 ;
5844 return 0;
5845}
5846_ACEOF
drhf922ca42015-05-14 15:39:18 +00005847if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00005848 lt_cv_ld_exported_symbols_list=yes
5849else
drhf922ca42015-05-14 15:39:18 +00005850 lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00005851fi
drhf922ca42015-05-14 15:39:18 +00005852rm -f core conftest.err conftest.$ac_objext \
5853 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005854 LDFLAGS="$save_LDFLAGS"
5855
5856fi
drhf922ca42015-05-14 15:39:18 +00005857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
drh8b727472009-01-19 18:18:40 +00005858$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005859 case $host_os in
5860 rhapsody* | darwin1.[012])
5861 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5862 darwin1.*)
5863 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5864 darwin*) # darwin 5.x on
5865 # if running on 10.5 or later, the deployment target defaults
5866 # to the OS version, if on x86, and 10.4, the deployment
5867 # target defaults to 10.4. Don't you love it?
5868 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5869 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5870 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5871 10.[012]*)
5872 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5873 10.*)
5874 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5875 esac
5876 ;;
5877 esac
5878 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5879 _lt_dar_single_mod='$single_module'
5880 fi
5881 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5882 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5883 else
5884 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5885 fi
5886 if test "$DSYMUTIL" != ":"; then
5887 _lt_dsymutil='~$DSYMUTIL $lib || :'
5888 else
5889 _lt_dsymutil=
5890 fi
5891 ;;
5892 esac
5893
a.rottmann84e63352003-03-24 09:42:16 +00005894ac_ext=c
5895ac_cpp='$CPP $CPPFLAGS'
5896ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5897ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5898ac_compiler_gnu=$ac_cv_c_compiler_gnu
drhf922ca42015-05-14 15:39:18 +00005899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
drh8b727472009-01-19 18:18:40 +00005900$as_echo_n "checking how to run the C preprocessor... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005901# On Suns, sometimes $CPP names a directory.
5902if test -n "$CPP" && test -d "$CPP"; then
5903 CPP=
5904fi
5905if test -z "$CPP"; then
drhf922ca42015-05-14 15:39:18 +00005906 if ${ac_cv_prog_CPP+:} false; then :
drh8b727472009-01-19 18:18:40 +00005907 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00005908else
a.rottmann84e63352003-03-24 09:42:16 +00005909 # Double quotes because CPP needs to be expanded
5910 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5911 do
5912 ac_preproc_ok=false
5913for ac_c_preproc_warn_flag in '' yes
5914do
5915 # Use a header file that comes with gcc, so configuring glibc
5916 # with a fresh cross-compiler works.
5917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5918 # <limits.h> exists even on freestanding compilers.
5919 # On the NeXT, cc -E runs the code through the compiler's parser,
5920 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005922/* end confdefs.h. */
5923#ifdef __STDC__
5924# include <limits.h>
5925#else
5926# include <assert.h>
5927#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005928 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005929_ACEOF
drhf922ca42015-05-14 15:39:18 +00005930if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005931
drhf922ca42015-05-14 15:39:18 +00005932else
a.rottmann84e63352003-03-24 09:42:16 +00005933 # Broken: fails on valid input.
5934continue
5935fi
drhf922ca42015-05-14 15:39:18 +00005936rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005937
drh8b727472009-01-19 18:18:40 +00005938 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005939 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00005940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005941/* end confdefs.h. */
5942#include <ac_nonexistent.h>
5943_ACEOF
drhf922ca42015-05-14 15:39:18 +00005944if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005945 # Broken: success on invalid input.
5946continue
5947else
a.rottmann84e63352003-03-24 09:42:16 +00005948 # Passes both tests.
5949ac_preproc_ok=:
5950break
5951fi
drhf922ca42015-05-14 15:39:18 +00005952rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005953
5954done
5955# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00005956rm -f conftest.i conftest.err conftest.$ac_ext
5957if $ac_preproc_ok; then :
a.rottmann84e63352003-03-24 09:42:16 +00005958 break
5959fi
5960
5961 done
5962 ac_cv_prog_CPP=$CPP
5963
5964fi
5965 CPP=$ac_cv_prog_CPP
5966else
5967 ac_cv_prog_CPP=$CPP
5968fi
drhf922ca42015-05-14 15:39:18 +00005969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
drh8b727472009-01-19 18:18:40 +00005970$as_echo "$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005971ac_preproc_ok=false
5972for ac_c_preproc_warn_flag in '' yes
5973do
5974 # Use a header file that comes with gcc, so configuring glibc
5975 # with a fresh cross-compiler works.
5976 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5977 # <limits.h> exists even on freestanding compilers.
5978 # On the NeXT, cc -E runs the code through the compiler's parser,
5979 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005981/* end confdefs.h. */
5982#ifdef __STDC__
5983# include <limits.h>
5984#else
5985# include <assert.h>
5986#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005987 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005988_ACEOF
drhf922ca42015-05-14 15:39:18 +00005989if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005990
drhf922ca42015-05-14 15:39:18 +00005991else
a.rottmann84e63352003-03-24 09:42:16 +00005992 # Broken: fails on valid input.
5993continue
5994fi
drhf922ca42015-05-14 15:39:18 +00005995rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005996
drh8b727472009-01-19 18:18:40 +00005997 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005998 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00005999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006000/* end confdefs.h. */
6001#include <ac_nonexistent.h>
6002_ACEOF
drhf922ca42015-05-14 15:39:18 +00006003if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006004 # Broken: success on invalid input.
6005continue
6006else
a.rottmann84e63352003-03-24 09:42:16 +00006007 # Passes both tests.
6008ac_preproc_ok=:
6009break
6010fi
drhf922ca42015-05-14 15:39:18 +00006011rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006012
6013done
6014# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00006015rm -f conftest.i conftest.err conftest.$ac_ext
6016if $ac_preproc_ok; then :
6017
a.rottmann84e63352003-03-24 09:42:16 +00006018else
drhf922ca42015-05-14 15:39:18 +00006019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6021as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6022See \`config.log' for more details" "$LINENO" 5; }
a.rottmann84e63352003-03-24 09:42:16 +00006023fi
6024
6025ac_ext=c
6026ac_cpp='$CPP $CPPFLAGS'
6027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6029ac_compiler_gnu=$ac_cv_c_compiler_gnu
6030
6031
drhf922ca42015-05-14 15:39:18 +00006032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
drh8b727472009-01-19 18:18:40 +00006033$as_echo_n "checking for ANSI C header files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006034if ${ac_cv_header_stdc+:} false; then :
drh8b727472009-01-19 18:18:40 +00006035 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006036else
drhf922ca42015-05-14 15:39:18 +00006037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006038/* end confdefs.h. */
6039#include <stdlib.h>
6040#include <stdarg.h>
6041#include <string.h>
6042#include <float.h>
6043
6044int
6045main ()
6046{
6047
6048 ;
6049 return 0;
6050}
6051_ACEOF
drhf922ca42015-05-14 15:39:18 +00006052if ac_fn_c_try_compile "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006053 ac_cv_header_stdc=yes
6054else
drhf922ca42015-05-14 15:39:18 +00006055 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006056fi
drh8b727472009-01-19 18:18:40 +00006057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006058
6059if test $ac_cv_header_stdc = yes; then
6060 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006062/* end confdefs.h. */
6063#include <string.h>
6064
6065_ACEOF
6066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006067 $EGREP "memchr" >/dev/null 2>&1; then :
6068
a.rottmann84e63352003-03-24 09:42:16 +00006069else
6070 ac_cv_header_stdc=no
6071fi
6072rm -f conftest*
6073
6074fi
6075
6076if test $ac_cv_header_stdc = yes; then
6077 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006079/* end confdefs.h. */
6080#include <stdlib.h>
6081
6082_ACEOF
6083if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006084 $EGREP "free" >/dev/null 2>&1; then :
6085
a.rottmann84e63352003-03-24 09:42:16 +00006086else
6087 ac_cv_header_stdc=no
6088fi
6089rm -f conftest*
6090
6091fi
6092
6093if test $ac_cv_header_stdc = yes; then
6094 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
drhf922ca42015-05-14 15:39:18 +00006095 if test "$cross_compiling" = yes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006096 :
6097else
drhf922ca42015-05-14 15:39:18 +00006098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006099/* end confdefs.h. */
6100#include <ctype.h>
drh8b727472009-01-19 18:18:40 +00006101#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00006102#if ((' ' & 0x0FF) == 0x020)
6103# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6104# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6105#else
6106# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00006107 (('a' <= (c) && (c) <= 'i') \
6108 || ('j' <= (c) && (c) <= 'r') \
6109 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00006110# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6111#endif
6112
6113#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6114int
6115main ()
6116{
6117 int i;
6118 for (i = 0; i < 256; i++)
6119 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00006120 || toupper (i) != TOUPPER (i))
drh8b727472009-01-19 18:18:40 +00006121 return 2;
6122 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00006123}
6124_ACEOF
drhf922ca42015-05-14 15:39:18 +00006125if ac_fn_c_try_run "$LINENO"; then :
6126
a.rottmann84e63352003-03-24 09:42:16 +00006127else
drhf922ca42015-05-14 15:39:18 +00006128 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006129fi
drhf922ca42015-05-14 15:39:18 +00006130rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6131 conftest.$ac_objext conftest.beam conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00006132fi
6133
a.rottmann84e63352003-03-24 09:42:16 +00006134fi
6135fi
drhf922ca42015-05-14 15:39:18 +00006136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
drh8b727472009-01-19 18:18:40 +00006137$as_echo "$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006138if test $ac_cv_header_stdc = yes; then
6139
drhf922ca42015-05-14 15:39:18 +00006140$as_echo "#define STDC_HEADERS 1" >>confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00006141
6142fi
6143
6144# On IRIX 5.3, sys/types and inttypes.h are conflicting.
a.rottmann84e63352003-03-24 09:42:16 +00006145for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00006146 inttypes.h stdint.h unistd.h
drhf922ca42015-05-14 15:39:18 +00006147do :
6148 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6149ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6150"
6151if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006152 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006153#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006154_ACEOF
6155
6156fi
6157
6158done
6159
6160
a.rottmann84e63352003-03-24 09:42:16 +00006161for ac_header in dlfcn.h
drhf922ca42015-05-14 15:39:18 +00006162do :
6163 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6164"
6165if test "x$ac_cv_header_dlfcn_h" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006166 cat >>confdefs.h <<_ACEOF
drhf922ca42015-05-14 15:39:18 +00006167#define HAVE_DLFCN_H 1
a.rottmann84e63352003-03-24 09:42:16 +00006168_ACEOF
6169
6170fi
6171
drh71eb93e2001-09-28 01:34:43 +00006172done
6173
drh71eb93e2001-09-28 01:34:43 +00006174
drh71eb93e2001-09-28 01:34:43 +00006175
mlcreech636a9952008-05-05 22:52:56 +00006176# Set options
mlcreech94984912008-03-04 19:03:08 +00006177
drh71eb93e2001-09-28 01:34:43 +00006178
drh71eb93e2001-09-28 01:34:43 +00006179
mlcreech636a9952008-05-05 22:52:56 +00006180 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00006181
a.rottmann9bc8b932004-02-29 15:18:31 +00006182
mlcreech636a9952008-05-05 22:52:56 +00006183 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006184
a.rottmann9bc8b932004-02-29 15:18:31 +00006185
drh8b727472009-01-19 18:18:40 +00006186 # Check whether --enable-shared was given.
drhf922ca42015-05-14 15:39:18 +00006187if test "${enable_shared+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006188 enableval=$enable_shared; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006189 case $enableval in
6190 yes) enable_shared=yes ;;
6191 no) enable_shared=no ;;
6192 *)
6193 enable_shared=no
6194 # Look at the argument we got. We use all the common list separators.
6195 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6196 for pkg in $enableval; do
6197 IFS="$lt_save_ifs"
6198 if test "X$pkg" = "X$p"; then
6199 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006200 fi
mlcreech636a9952008-05-05 22:52:56 +00006201 done
6202 IFS="$lt_save_ifs"
6203 ;;
6204 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006205else
mlcreech636a9952008-05-05 22:52:56 +00006206 enable_shared=yes
drh8b727472009-01-19 18:18:40 +00006207fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006208
mlcreech636a9952008-05-05 22:52:56 +00006209
6210
6211
6212
6213
6214
6215
drh8b727472009-01-19 18:18:40 +00006216
6217 # Check whether --enable-static was given.
drhf922ca42015-05-14 15:39:18 +00006218if test "${enable_static+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006219 enableval=$enable_static; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006220 case $enableval in
6221 yes) enable_static=yes ;;
6222 no) enable_static=no ;;
6223 *)
6224 enable_static=no
6225 # Look at the argument we got. We use all the common list separators.
6226 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6227 for pkg in $enableval; do
6228 IFS="$lt_save_ifs"
6229 if test "X$pkg" = "X$p"; then
6230 enable_static=yes
6231 fi
6232 done
6233 IFS="$lt_save_ifs"
6234 ;;
6235 esac
6236else
6237 enable_static=yes
drh8b727472009-01-19 18:18:40 +00006238fi
mlcreech636a9952008-05-05 22:52:56 +00006239
6240
6241
6242
6243
6244
6245
6246
6247
drh8b727472009-01-19 18:18:40 +00006248
6249# Check whether --with-pic was given.
drhf922ca42015-05-14 15:39:18 +00006250if test "${with_pic+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006251 withval=$with_pic; pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00006252else
6253 pic_mode=default
drh8b727472009-01-19 18:18:40 +00006254fi
6255
mlcreech636a9952008-05-05 22:52:56 +00006256
6257test -z "$pic_mode" && pic_mode=default
6258
6259
6260
6261
6262
6263
6264
drh8b727472009-01-19 18:18:40 +00006265 # Check whether --enable-fast-install was given.
drhf922ca42015-05-14 15:39:18 +00006266if test "${enable_fast_install+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006267 enableval=$enable_fast_install; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006268 case $enableval in
6269 yes) enable_fast_install=yes ;;
6270 no) enable_fast_install=no ;;
6271 *)
6272 enable_fast_install=no
6273 # Look at the argument we got. We use all the common list separators.
6274 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6275 for pkg in $enableval; do
6276 IFS="$lt_save_ifs"
6277 if test "X$pkg" = "X$p"; then
6278 enable_fast_install=yes
6279 fi
6280 done
6281 IFS="$lt_save_ifs"
6282 ;;
6283 esac
6284else
6285 enable_fast_install=yes
drh8b727472009-01-19 18:18:40 +00006286fi
6287
mlcreech636a9952008-05-05 22:52:56 +00006288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298# This can be used to rebuild libtool when needed
6299LIBTOOL_DEPS="$ltmain"
6300
6301# Always use our own libtool.
6302LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328test -z "$LN_S" && LN_S="ln -s"
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343if test -n "${ZSH_VERSION+set}" ; then
6344 setopt NO_GLOB_SUBST
6345fi
6346
drhf922ca42015-05-14 15:39:18 +00006347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
drh8b727472009-01-19 18:18:40 +00006348$as_echo_n "checking for objdir... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006349if ${lt_cv_objdir+:} false; then :
drh8b727472009-01-19 18:18:40 +00006350 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006351else
6352 rm -f .libs 2>/dev/null
6353mkdir .libs 2>/dev/null
6354if test -d .libs; then
6355 lt_cv_objdir=.libs
6356else
6357 # MS-DOS does not allow filenames that begin with a dot.
6358 lt_cv_objdir=_libs
6359fi
6360rmdir .libs 2>/dev/null
6361fi
drhf922ca42015-05-14 15:39:18 +00006362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
drh8b727472009-01-19 18:18:40 +00006363$as_echo "$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006364objdir=$lt_cv_objdir
6365
6366
6367
6368
6369
mlcreech636a9952008-05-05 22:52:56 +00006370cat >>confdefs.h <<_ACEOF
6371#define LT_OBJDIR "$lt_cv_objdir/"
6372_ACEOF
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
a.rottmann9bc8b932004-02-29 15:18:31 +00006390case $host_os in
6391aix3*)
6392 # AIX sometimes has problems with the GCC collect2 program. For some
6393 # reason, if we set the COLLECT_NAMES environment variable, the problems
6394 # vanish in a puff of smoke.
6395 if test "X${COLLECT_NAMES+set}" != Xset; then
6396 COLLECT_NAMES=
6397 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00006398 fi
6399 ;;
6400esac
6401
a.rottmann9bc8b932004-02-29 15:18:31 +00006402# Sed substitution that helps us do robust quoting. It backslashifies
6403# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00006404sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006405
6406# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00006407double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006408
6409# Sed substitution to delay expansion of an escaped shell variable in a
6410# double_quote_subst'ed string.
6411delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6412
mlcreech636a9952008-05-05 22:52:56 +00006413# Sed substitution to delay expansion of an escaped single quote.
6414delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6415
a.rottmann9bc8b932004-02-29 15:18:31 +00006416# Sed substitution to avoid accidental globbing in evaled expressions
6417no_glob_subst='s/\*/\\\*/g'
6418
a.rottmann9bc8b932004-02-29 15:18:31 +00006419# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00006420ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00006421can_build_shared=yes
6422
vapier7f19c022007-02-17 14:46:31 +00006423# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00006424# which needs '.lib').
6425libext=a
mlcreech636a9952008-05-05 22:52:56 +00006426
a.rottmann9bc8b932004-02-29 15:18:31 +00006427with_gnu_ld="$lt_cv_prog_gnu_ld"
6428
a.rottmann84e63352003-03-24 09:42:16 +00006429old_CC="$CC"
6430old_CFLAGS="$CFLAGS"
6431
6432# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00006433test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006434test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006435test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006436test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00006437test -z "$ac_objext" && ac_objext=o
6438
vapier7f19c022007-02-17 14:46:31 +00006439for cc_temp in $compiler""; do
6440 case $cc_temp in
6441 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6442 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6443 \-*) ;;
6444 *) break;;
6445 esac
6446done
mlcreech636a9952008-05-05 22:52:56 +00006447cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00006448
6449
a.rottmann9bc8b932004-02-29 15:18:31 +00006450# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00006451test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00006452case $deplibs_check_method in
6453file_magic*)
6454 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
drhf922ca42015-05-14 15:39:18 +00006455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
drh8b727472009-01-19 18:18:40 +00006456$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006457if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006458 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006459else
a.rottmann9bc8b932004-02-29 15:18:31 +00006460 case $MAGIC_CMD in
6461[\\/*] | ?:[\\/]*)
6462 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6463 ;;
6464*)
6465 lt_save_MAGIC_CMD="$MAGIC_CMD"
6466 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6467 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6468 for ac_dir in $ac_dummy; do
6469 IFS="$lt_save_ifs"
6470 test -z "$ac_dir" && ac_dir=.
6471 if test -f $ac_dir/${ac_tool_prefix}file; then
6472 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6473 if test -n "$file_magic_test_file"; then
6474 case $deplibs_check_method in
6475 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006476 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006477 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6478 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6479 $EGREP "$file_magic_regex" > /dev/null; then
6480 :
6481 else
mlcreech636a9952008-05-05 22:52:56 +00006482 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006483
a.rottmann9bc8b932004-02-29 15:18:31 +00006484*** Warning: the command libtool uses to detect shared libraries,
6485*** $file_magic_cmd, produces output that libtool cannot recognize.
6486*** The result is that libtool may fail to recognize shared libraries
6487*** as such. This will affect the creation of libtool libraries that
6488*** depend on shared libraries, but programs linked with such libtool
6489*** libraries will work regardless of this problem. Nevertheless, you
6490*** may want to report the problem to your system manager and/or to
6491*** bug-libtool@gnu.org
6492
mlcreech636a9952008-05-05 22:52:56 +00006493_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006494 fi ;;
6495 esac
6496 fi
6497 break
6498 fi
6499 done
6500 IFS="$lt_save_ifs"
6501 MAGIC_CMD="$lt_save_MAGIC_CMD"
6502 ;;
6503esac
6504fi
6505
6506MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6507if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006509$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006510else
drhf922ca42015-05-14 15:39:18 +00006511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006512$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006513fi
6514
mlcreech636a9952008-05-05 22:52:56 +00006515
6516
6517
6518
a.rottmann9bc8b932004-02-29 15:18:31 +00006519if test -z "$lt_cv_path_MAGIC_CMD"; then
6520 if test -n "$ac_tool_prefix"; then
drhf922ca42015-05-14 15:39:18 +00006521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
drh8b727472009-01-19 18:18:40 +00006522$as_echo_n "checking for file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006523if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006524 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006525else
6526 case $MAGIC_CMD in
6527[\\/*] | ?:[\\/]*)
6528 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6529 ;;
6530*)
6531 lt_save_MAGIC_CMD="$MAGIC_CMD"
6532 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6533 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6534 for ac_dir in $ac_dummy; do
6535 IFS="$lt_save_ifs"
6536 test -z "$ac_dir" && ac_dir=.
6537 if test -f $ac_dir/file; then
6538 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6539 if test -n "$file_magic_test_file"; then
6540 case $deplibs_check_method in
6541 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006542 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006543 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6544 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6545 $EGREP "$file_magic_regex" > /dev/null; then
6546 :
6547 else
mlcreech636a9952008-05-05 22:52:56 +00006548 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006549
6550*** Warning: the command libtool uses to detect shared libraries,
6551*** $file_magic_cmd, produces output that libtool cannot recognize.
6552*** The result is that libtool may fail to recognize shared libraries
6553*** as such. This will affect the creation of libtool libraries that
6554*** depend on shared libraries, but programs linked with such libtool
6555*** libraries will work regardless of this problem. Nevertheless, you
6556*** may want to report the problem to your system manager and/or to
6557*** bug-libtool@gnu.org
6558
mlcreech636a9952008-05-05 22:52:56 +00006559_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006560 fi ;;
6561 esac
6562 fi
6563 break
6564 fi
6565 done
6566 IFS="$lt_save_ifs"
6567 MAGIC_CMD="$lt_save_MAGIC_CMD"
6568 ;;
6569esac
6570fi
6571
6572MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6573if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006575$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006576else
drhf922ca42015-05-14 15:39:18 +00006577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006578$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006579fi
6580
mlcreech636a9952008-05-05 22:52:56 +00006581
a.rottmann9bc8b932004-02-29 15:18:31 +00006582 else
6583 MAGIC_CMD=:
6584 fi
6585fi
6586
6587 fi
6588 ;;
6589esac
6590
a.rottmann9bc8b932004-02-29 15:18:31 +00006591# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00006592
a.rottmann9bc8b932004-02-29 15:18:31 +00006593lt_save_CC="$CC"
6594ac_ext=c
6595ac_cpp='$CPP $CPPFLAGS'
6596ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6597ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6598ac_compiler_gnu=$ac_cv_c_compiler_gnu
6599
6600
6601# Source file extension for C test sources.
6602ac_ext=c
6603
6604# Object file extension for compiled C test sources.
6605objext=o
6606objext=$objext
6607
6608# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00006609lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00006610
6611# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00006612lt_simple_link_test_code='int main(){return(0);}'
6613
6614
6615
6616
6617
a.rottmann9bc8b932004-02-29 15:18:31 +00006618
6619
6620# If no C compiler was specified, use CC.
6621LTCC=${LTCC-"$CC"}
6622
vapier7f19c022007-02-17 14:46:31 +00006623# If no C compiler flags were specified, use CFLAGS.
6624LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6625
a.rottmann9bc8b932004-02-29 15:18:31 +00006626# Allow CC to be a program name with arguments.
6627compiler=$CC
6628
mlcreech636a9952008-05-05 22:52:56 +00006629# Save the default compiler, since it gets overwritten when the other
6630# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6631compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00006632
vapier7f19c022007-02-17 14:46:31 +00006633# save warnings/boilerplate of simple test code
6634ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006635echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006636eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6637_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006638$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006639
vapier7f19c022007-02-17 14:46:31 +00006640ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006641echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006642eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6643_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006644$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006645
6646
mlcreech636a9952008-05-05 22:52:56 +00006647if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006648
6649lt_prog_compiler_no_builtin_flag=
6650
6651if test "$GCC" = yes; then
6652 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6653
drhf922ca42015-05-14 15:39:18 +00006654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006655$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006656if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
drh8b727472009-01-19 18:18:40 +00006657 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006658else
6659 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00006660 ac_outfile=conftest.$ac_objext
6661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006662 lt_compiler_flag="-fno-rtti -fno-exceptions"
6663 # Insert the option either (1) after the last *FLAGS variable, or
6664 # (2) before a word containing "conftest.", or (3) at the end.
6665 # Note that $ac_compile itself does not contain backslashes and begins
6666 # with a dollar sign (not a hyphen), so the echo should work correctly.
6667 # The option is referenced via a variable to avoid confusing sed.
6668 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6671 -e 's:$: $lt_compiler_flag:'`
drh56c93112017-11-24 16:55:48 +00006672 (eval echo "\"\$as_me:6672: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006673 (eval "$lt_compile" 2>conftest.err)
6674 ac_status=$?
6675 cat conftest.err >&5
drh56c93112017-11-24 16:55:48 +00006676 echo "$as_me:6676: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006677 if (exit $ac_status) && test -s "$ac_outfile"; then
6678 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006679 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006680 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6682 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006683 lt_cv_prog_compiler_rtti_exceptions=yes
6684 fi
6685 fi
mlcreech636a9952008-05-05 22:52:56 +00006686 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006687
6688fi
drhf922ca42015-05-14 15:39:18 +00006689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006690$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006691
6692if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6693 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6694else
6695 :
6696fi
6697
6698fi
6699
mlcreech636a9952008-05-05 22:52:56 +00006700
6701
6702
6703
6704
6705 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00006706lt_prog_compiler_pic=
6707lt_prog_compiler_static=
6708
drhf922ca42015-05-14 15:39:18 +00006709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
drh8b727472009-01-19 18:18:40 +00006710$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006711
drh71eb93e2001-09-28 01:34:43 +00006712 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006713 lt_prog_compiler_wl='-Wl,'
6714 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006715
6716 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006717 aix*)
6718 # All AIX code is PIC.
6719 if test "$host_cpu" = ia64; then
6720 # AIX 5 now supports IA64 processor
6721 lt_prog_compiler_static='-Bstatic'
6722 fi
drh71eb93e2001-09-28 01:34:43 +00006723 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006724
drh71eb93e2001-09-28 01:34:43 +00006725 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006726 case $host_cpu in
6727 powerpc)
6728 # see comment about AmigaOS4 .so support
6729 lt_prog_compiler_pic='-fPIC'
6730 ;;
6731 m68k)
6732 # FIXME: we need at least 68020 code to build shared libraries, but
6733 # adding the `-m68020' flag to GCC prevents building anything better,
6734 # like `-m68040'.
6735 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6736 ;;
6737 esac
drh71eb93e2001-09-28 01:34:43 +00006738 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006739
mlcreech636a9952008-05-05 22:52:56 +00006740 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006741 # PIC is the default for these OSes.
6742 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006743
vapier6acb2cf2009-01-28 04:46:28 +00006744 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006745 # This hack is so that the source file can tell whether it is being
6746 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00006747 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6748 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00006749 lt_prog_compiler_pic='-DDLL_EXPORT'
6750 ;;
6751
drh71eb93e2001-09-28 01:34:43 +00006752 darwin* | rhapsody*)
6753 # PIC is the default on this platform
6754 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006755 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006756 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006757
a.rottmann9bc8b932004-02-29 15:18:31 +00006758 hpux*)
vapier6acb2cf2009-01-28 04:46:28 +00006759 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6760 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6761 # sets the default TLS model and affects inlining.
vapier7f19c022007-02-17 14:46:31 +00006762 case $host_cpu in
vapier6acb2cf2009-01-28 04:46:28 +00006763 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006764 # +Z the default
6765 ;;
6766 *)
6767 lt_prog_compiler_pic='-fPIC'
6768 ;;
6769 esac
6770 ;;
6771
mlcreech636a9952008-05-05 22:52:56 +00006772 interix[3-9]*)
6773 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6774 # Instead, we relocate shared libraries at runtime.
6775 ;;
6776
6777 msdosdjgpp*)
6778 # Just because we use GCC doesn't mean we suddenly get shared libraries
6779 # on systems that don't support them.
6780 lt_prog_compiler_can_build_shared=no
6781 enable_shared=no
6782 ;;
6783
6784 *nto* | *qnx*)
6785 # QNX uses GNU C++, but need to define -shared option too, otherwise
6786 # it will coredump.
6787 lt_prog_compiler_pic='-fPIC -shared'
6788 ;;
6789
6790 sysv4*MP*)
6791 if test -d /usr/nec; then
6792 lt_prog_compiler_pic=-Kconform_pic
6793 fi
6794 ;;
6795
drh71eb93e2001-09-28 01:34:43 +00006796 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006797 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006798 ;;
6799 esac
6800 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006801 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006802 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006803 aix*)
6804 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006805 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006806 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006807 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006808 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006809 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006810 fi
6811 ;;
6812
vapier6acb2cf2009-01-28 04:46:28 +00006813 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006814 # This hack is so that the source file can tell whether it is being
6815 # built for inclusion in a dll (and should export symbols for example).
6816 lt_prog_compiler_pic='-DDLL_EXPORT'
6817 ;;
6818
a.rottmann84e63352003-03-24 09:42:16 +00006819 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006820 lt_prog_compiler_wl='-Wl,'
6821 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6822 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006823 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006824 hppa*64*|ia64*)
6825 # +Z the default
6826 ;;
6827 *)
6828 lt_prog_compiler_pic='+Z'
6829 ;;
6830 esac
6831 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6832 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006833 ;;
6834
6835 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006836 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006837 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006838 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006839 ;;
6840
mlcreech636a9952008-05-05 22:52:56 +00006841 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00006842 case $cc_basename in
vapier6acb2cf2009-01-28 04:46:28 +00006843 # old Intel for x86_64 which still supported -KPIC.
6844 ecc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006845 lt_prog_compiler_wl='-Wl,'
6846 lt_prog_compiler_pic='-KPIC'
6847 lt_prog_compiler_static='-static'
6848 ;;
vapier6acb2cf2009-01-28 04:46:28 +00006849 # icc used to be incompatible with GCC.
6850 # ICC 10 doesn't accept -KPIC any more.
6851 icc* | ifort*)
6852 lt_prog_compiler_wl='-Wl,'
6853 lt_prog_compiler_pic='-fPIC'
6854 lt_prog_compiler_static='-static'
6855 ;;
6856 # Lahey Fortran 8.1.
6857 lf95*)
6858 lt_prog_compiler_wl='-Wl,'
6859 lt_prog_compiler_pic='--shared'
6860 lt_prog_compiler_static='--static'
6861 ;;
vapier7f19c022007-02-17 14:46:31 +00006862 pgcc* | pgf77* | pgf90* | pgf95*)
6863 # Portland Group compilers (*not* the Pentium gcc compiler,
6864 # which looks to be a dead project)
6865 lt_prog_compiler_wl='-Wl,'
6866 lt_prog_compiler_pic='-fpic'
6867 lt_prog_compiler_static='-Bstatic'
6868 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006869 ccc*)
6870 lt_prog_compiler_wl='-Wl,'
6871 # All Alpha code is PIC.
6872 lt_prog_compiler_static='-non_shared'
6873 ;;
mlcreech636a9952008-05-05 22:52:56 +00006874 xl*)
6875 # IBM XL C 8.0/Fortran 10.1 on PPC
6876 lt_prog_compiler_wl='-Wl,'
6877 lt_prog_compiler_pic='-qpic'
6878 lt_prog_compiler_static='-qstaticlink'
6879 ;;
6880 *)
6881 case `$CC -V 2>&1 | sed 5q` in
6882 *Sun\ C*)
6883 # Sun C 5.9
6884 lt_prog_compiler_pic='-KPIC'
6885 lt_prog_compiler_static='-Bstatic'
6886 lt_prog_compiler_wl='-Wl,'
6887 ;;
6888 *Sun\ F*)
6889 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6890 lt_prog_compiler_pic='-KPIC'
6891 lt_prog_compiler_static='-Bstatic'
6892 lt_prog_compiler_wl=''
6893 ;;
6894 esac
6895 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006896 esac
drh71eb93e2001-09-28 01:34:43 +00006897 ;;
6898
mlcreech636a9952008-05-05 22:52:56 +00006899 newsos6)
6900 lt_prog_compiler_pic='-KPIC'
6901 lt_prog_compiler_static='-Bstatic'
6902 ;;
6903
6904 *nto* | *qnx*)
6905 # QNX uses GNU C++, but need to define -shared option too, otherwise
6906 # it will coredump.
6907 lt_prog_compiler_pic='-fPIC -shared'
6908 ;;
6909
drh71eb93e2001-09-28 01:34:43 +00006910 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006911 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006912 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00006913 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006914 ;;
6915
mlcreech636a9952008-05-05 22:52:56 +00006916 rdos*)
6917 lt_prog_compiler_static='-non_shared'
6918 ;;
6919
drh71eb93e2001-09-28 01:34:43 +00006920 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006921 lt_prog_compiler_pic='-KPIC'
6922 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00006923 case $cc_basename in
6924 f77* | f90* | f95*)
6925 lt_prog_compiler_wl='-Qoption ld ';;
6926 *)
6927 lt_prog_compiler_wl='-Wl,';;
6928 esac
drh71eb93e2001-09-28 01:34:43 +00006929 ;;
6930
6931 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006932 lt_prog_compiler_wl='-Qoption ld '
6933 lt_prog_compiler_pic='-PIC'
6934 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006935 ;;
6936
vapier7f19c022007-02-17 14:46:31 +00006937 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006938 lt_prog_compiler_wl='-Wl,'
6939 lt_prog_compiler_pic='-KPIC'
6940 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006941 ;;
6942
6943 sysv4*MP*)
6944 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00006945 lt_prog_compiler_pic='-Kconform_pic'
6946 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006947 fi
6948 ;;
6949
vapier7f19c022007-02-17 14:46:31 +00006950 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6951 lt_prog_compiler_wl='-Wl,'
6952 lt_prog_compiler_pic='-KPIC'
6953 lt_prog_compiler_static='-Bstatic'
6954 ;;
6955
6956 unicos*)
6957 lt_prog_compiler_wl='-Wl,'
6958 lt_prog_compiler_can_build_shared=no
6959 ;;
6960
a.rottmann9bc8b932004-02-29 15:18:31 +00006961 uts4*)
6962 lt_prog_compiler_pic='-pic'
6963 lt_prog_compiler_static='-Bstatic'
6964 ;;
6965
drh71eb93e2001-09-28 01:34:43 +00006966 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006967 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006968 ;;
6969 esac
6970 fi
6971
mlcreech636a9952008-05-05 22:52:56 +00006972case $host_os in
6973 # For platforms which do not support PIC, -DPIC is meaningless:
6974 *djgpp*)
6975 lt_prog_compiler_pic=
6976 ;;
6977 *)
6978 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6979 ;;
6980esac
drhf922ca42015-05-14 15:39:18 +00006981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
drh8b727472009-01-19 18:18:40 +00006982$as_echo "$lt_prog_compiler_pic" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00006983
6984
6985
6986
6987
drh71eb93e2001-09-28 01:34:43 +00006988
a.rottmann9bc8b932004-02-29 15:18:31 +00006989#
6990# Check to make sure the PIC flag actually works.
6991#
6992if test -n "$lt_prog_compiler_pic"; then
drhf922ca42015-05-14 15:39:18 +00006993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
drh8b727472009-01-19 18:18:40 +00006994$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006995if ${lt_cv_prog_compiler_pic_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00006996 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00006997else
mlcreech636a9952008-05-05 22:52:56 +00006998 lt_cv_prog_compiler_pic_works=no
6999 ac_outfile=conftest.$ac_objext
7000 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007001 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7002 # Insert the option either (1) after the last *FLAGS variable, or
7003 # (2) before a word containing "conftest.", or (3) at the end.
7004 # Note that $ac_compile itself does not contain backslashes and begins
7005 # with a dollar sign (not a hyphen), so the echo should work correctly.
7006 # The option is referenced via a variable to avoid confusing sed.
7007 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007008 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007009 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7010 -e 's:$: $lt_compiler_flag:'`
drh56c93112017-11-24 16:55:48 +00007011 (eval echo "\"\$as_me:7011: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007012 (eval "$lt_compile" 2>conftest.err)
7013 ac_status=$?
7014 cat conftest.err >&5
drh56c93112017-11-24 16:55:48 +00007015 echo "$as_me:7015: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007016 if (exit $ac_status) && test -s "$ac_outfile"; then
7017 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00007018 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00007019 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007020 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7021 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007022 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007023 fi
7024 fi
mlcreech636a9952008-05-05 22:52:56 +00007025 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007026
a.rottmann9bc8b932004-02-29 15:18:31 +00007027fi
drhf922ca42015-05-14 15:39:18 +00007028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
drh8b727472009-01-19 18:18:40 +00007029$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007030
mlcreech636a9952008-05-05 22:52:56 +00007031if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007032 case $lt_prog_compiler_pic in
7033 "" | " "*) ;;
7034 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7035 esac
drh71eb93e2001-09-28 01:34:43 +00007036else
a.rottmann9bc8b932004-02-29 15:18:31 +00007037 lt_prog_compiler_pic=
7038 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00007039fi
7040
a.rottmann84e63352003-03-24 09:42:16 +00007041fi
mlcreech636a9952008-05-05 22:52:56 +00007042
7043
7044
7045
7046
a.rottmann84e63352003-03-24 09:42:16 +00007047
vapier7f19c022007-02-17 14:46:31 +00007048#
7049# Check to make sure the static flag actually works.
7050#
7051wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00007052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
drh8b727472009-01-19 18:18:40 +00007053$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007054if ${lt_cv_prog_compiler_static_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00007055 $as_echo_n "(cached) " >&6
vapier7f19c022007-02-17 14:46:31 +00007056else
mlcreech636a9952008-05-05 22:52:56 +00007057 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00007058 save_LDFLAGS="$LDFLAGS"
7059 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00007060 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00007061 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7062 # The linker can only warn and ignore the option if not recognized
7063 # So say no if there are warnings
7064 if test -s conftest.err; then
7065 # Append any errors to the config.log.
7066 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00007067 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007068 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7069 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007070 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007071 fi
7072 else
mlcreech636a9952008-05-05 22:52:56 +00007073 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007074 fi
7075 fi
mlcreech636a9952008-05-05 22:52:56 +00007076 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00007077 LDFLAGS="$save_LDFLAGS"
7078
7079fi
drhf922ca42015-05-14 15:39:18 +00007080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
drh8b727472009-01-19 18:18:40 +00007081$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00007082
mlcreech636a9952008-05-05 22:52:56 +00007083if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00007084 :
7085else
7086 lt_prog_compiler_static=
7087fi
7088
7089
mlcreech636a9952008-05-05 22:52:56 +00007090
7091
7092
7093
7094
drhf922ca42015-05-14 15:39:18 +00007095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007096$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007097if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007098 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007099else
a.rottmann9bc8b932004-02-29 15:18:31 +00007100 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00007101 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007102 mkdir conftest
7103 cd conftest
7104 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00007105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007106
a.rottmann9bc8b932004-02-29 15:18:31 +00007107 lt_compiler_flag="-o out/conftest2.$ac_objext"
7108 # Insert the option either (1) after the last *FLAGS variable, or
7109 # (2) before a word containing "conftest.", or (3) at the end.
7110 # Note that $ac_compile itself does not contain backslashes and begins
7111 # with a dollar sign (not a hyphen), so the echo should work correctly.
7112 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007113 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7115 -e 's:$: $lt_compiler_flag:'`
drh56c93112017-11-24 16:55:48 +00007116 (eval echo "\"\$as_me:7116: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007117 (eval "$lt_compile" 2>out/conftest.err)
7118 ac_status=$?
7119 cat out/conftest.err >&5
drh56c93112017-11-24 16:55:48 +00007120 echo "$as_me:7120: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007121 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7122 then
7123 # The compiler can only warn and ignore the option if not recognized
7124 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00007125 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007126 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7127 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007128 lt_cv_prog_compiler_c_o=yes
7129 fi
7130 fi
vapier7f19c022007-02-17 14:46:31 +00007131 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00007132 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00007133 # SGI C++ compiler will create directory out/ii_files/ for
7134 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00007135 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7136 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00007137 cd ..
mlcreech636a9952008-05-05 22:52:56 +00007138 $RM -r conftest
7139 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007140
7141fi
drhf922ca42015-05-14 15:39:18 +00007142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007143$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007144
7145
7146
7147
7148
7149
drhf922ca42015-05-14 15:39:18 +00007150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007151$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007152if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007153 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00007154else
7155 lt_cv_prog_compiler_c_o=no
7156 $RM -r conftest 2>/dev/null
7157 mkdir conftest
7158 cd conftest
7159 mkdir out
7160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7161
7162 lt_compiler_flag="-o out/conftest2.$ac_objext"
7163 # Insert the option either (1) after the last *FLAGS variable, or
7164 # (2) before a word containing "conftest.", or (3) at the end.
7165 # Note that $ac_compile itself does not contain backslashes and begins
7166 # with a dollar sign (not a hyphen), so the echo should work correctly.
7167 lt_compile=`echo "$ac_compile" | $SED \
7168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7170 -e 's:$: $lt_compiler_flag:'`
drh56c93112017-11-24 16:55:48 +00007171 (eval echo "\"\$as_me:7171: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00007172 (eval "$lt_compile" 2>out/conftest.err)
7173 ac_status=$?
7174 cat out/conftest.err >&5
drh56c93112017-11-24 16:55:48 +00007175 echo "$as_me:7175: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00007176 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7177 then
7178 # The compiler can only warn and ignore the option if not recognized
7179 # So say no if there are warnings
7180 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7181 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7182 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7183 lt_cv_prog_compiler_c_o=yes
7184 fi
7185 fi
7186 chmod u+w . 2>&5
7187 $RM conftest*
7188 # SGI C++ compiler will create directory out/ii_files/ for
7189 # template instantiation
7190 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7191 $RM out/* && rmdir out
7192 cd ..
7193 $RM -r conftest
7194 $RM conftest*
7195
7196fi
drhf922ca42015-05-14 15:39:18 +00007197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007198$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007199
7200
drh71eb93e2001-09-28 01:34:43 +00007201
a.rottmann84e63352003-03-24 09:42:16 +00007202
drh71eb93e2001-09-28 01:34:43 +00007203hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00007204if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00007205 # do not overwrite the value of need_locks provided by the user
drhf922ca42015-05-14 15:39:18 +00007206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
drh8b727472009-01-19 18:18:40 +00007207$as_echo_n "checking if we can lock with hard links... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00007208 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00007209 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007210 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7211 touch conftest.a
7212 ln conftest.a conftest.b 2>&5 || hard_links=no
7213 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drhf922ca42015-05-14 15:39:18 +00007214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
drh8b727472009-01-19 18:18:40 +00007215$as_echo "$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007216 if test "$hard_links" = no; then
drhf922ca42015-05-14 15:39:18 +00007217 { $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 +00007218$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00007219 need_locks=warn
7220 fi
7221else
7222 need_locks=no
7223fi
7224
mlcreech636a9952008-05-05 22:52:56 +00007225
7226
7227
7228
7229
drhf922ca42015-05-14 15:39:18 +00007230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00007231$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007232
7233 runpath_var=
7234 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007235 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007236 archive_cmds=
7237 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007238 compiler_needs_object=no
7239 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007240 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00007241 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7242 hardcode_automatic=no
7243 hardcode_direct=no
7244 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007245 hardcode_libdir_flag_spec=
7246 hardcode_libdir_flag_spec_ld=
7247 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007248 hardcode_minus_L=no
7249 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007250 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007251 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00007252 module_cmds=
7253 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007254 old_archive_from_new_cmds=
7255 old_archive_from_expsyms_cmds=
7256 thread_safe_flag_spec=
7257 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007258 # include_expsyms should be a list of space-separated symbols to be *always*
7259 # included in the symbol list
7260 include_expsyms=
7261 # exclude_expsyms can be an extended regexp of symbols to exclude
7262 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7263 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7264 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00007265 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00007266 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7267 # platforms (ab)use it in PIC code, but their linkers get confused if
7268 # the symbol is explicitly referenced. Since portable code cannot
7269 # rely on this symbol name, it's probably fine to never include it in
7270 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00007271 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00007272 extract_expsyms_cmds=
7273
7274 case $host_os in
vapier6acb2cf2009-01-28 04:46:28 +00007275 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007276 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7277 # When not using gcc, we currently assume that we are using
7278 # Microsoft Visual C++.
7279 if test "$GCC" != yes; then
7280 with_gnu_ld=no
7281 fi
7282 ;;
vapier7f19c022007-02-17 14:46:31 +00007283 interix*)
7284 # we just hope/assume this is gcc and not c89 (= MSVC++)
7285 with_gnu_ld=yes
7286 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007287 openbsd*)
7288 with_gnu_ld=no
7289 ;;
7290 esac
7291
7292 ld_shlibs=yes
7293 if test "$with_gnu_ld" = yes; then
7294 # If archive_cmds runs LD, not CC, wlarc should be empty
7295 wlarc='${wl}'
7296
vapier7f19c022007-02-17 14:46:31 +00007297 # Set some defaults for GNU ld with shared library support. These
7298 # are reset later if shared libraries are not supported. Putting them
7299 # here allows them to be overridden if necessary.
7300 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00007301 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00007302 export_dynamic_flag_spec='${wl}--export-dynamic'
7303 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00007304 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7305 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7306 else
7307 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00007308 fi
7309 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00007310 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00007311 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7312 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7313 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7314 *\ 2.11.*) ;; # other 2.11 versions
7315 *) supports_anon_versioning=yes ;;
7316 esac
7317
a.rottmann9bc8b932004-02-29 15:18:31 +00007318 # See if GNU ld supports shared libraries.
7319 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007320 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007321 # On AIX/PPC, the GNU linker is very broken
7322 if test "$host_cpu" != ia64; then
7323 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007324 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007325
7326*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7327*** to be unable to reliably create shared libraries on AIX.
7328*** Therefore, libtool is disabling shared libraries support. If you
7329*** really care for shared libraries, you may want to modify your PATH
7330*** so that a non-GNU linker is found, and then restart.
7331
mlcreech636a9952008-05-05 22:52:56 +00007332_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007333 fi
7334 ;;
7335
7336 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007337 case $host_cpu in
7338 powerpc)
7339 # see comment about AmigaOS4 .so support
7340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7341 archive_expsym_cmds=''
7342 ;;
7343 m68k)
7344 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)'
7345 hardcode_libdir_flag_spec='-L$libdir'
7346 hardcode_minus_L=yes
7347 ;;
7348 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007349 ;;
7350
7351 beos*)
mlcreech636a9952008-05-05 22:52:56 +00007352 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007353 allow_undefined_flag=unsupported
7354 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7355 # support --undefined. This deserves some investigation. FIXME
7356 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7357 else
7358 ld_shlibs=no
7359 fi
7360 ;;
7361
vapier6acb2cf2009-01-28 04:46:28 +00007362 cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00007363 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00007364 # as there is no search path for DLLs.
7365 hardcode_libdir_flag_spec='-L$libdir'
7366 allow_undefined_flag=unsupported
7367 always_export_symbols=no
7368 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00007369 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 +00007370
mlcreech636a9952008-05-05 22:52:56 +00007371 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00007372 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 +00007373 # If the export-symbols file already is a .def file (1st line
7374 # is EXPORTS), use it as is; otherwise, prepend...
7375 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7376 cp $export_symbols $output_objdir/$soname.def;
7377 else
7378 echo EXPORTS > $output_objdir/$soname.def;
7379 cat $export_symbols >> $output_objdir/$soname.def;
7380 fi~
vapier7f19c022007-02-17 14:46:31 +00007381 $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 +00007382 else
7383 ld_shlibs=no
7384 fi
7385 ;;
7386
mlcreech636a9952008-05-05 22:52:56 +00007387 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007388 hardcode_direct=no
7389 hardcode_shlibpath_var=no
7390 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7391 export_dynamic_flag_spec='${wl}-E'
7392 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7393 # Instead, shared libraries are loaded at an image base (0x10000000 by
7394 # default) and relocated if they conflict, which is a slow very memory
7395 # consuming and fragmenting process. To avoid this, we pick a random,
7396 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7397 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7398 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7399 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'
7400 ;;
7401
mlcreech636a9952008-05-05 22:52:56 +00007402 gnu* | linux* | tpf* | k*bsd*-gnu)
7403 tmp_diet=no
7404 if test "$host_os" = linux-dietlibc; then
7405 case $cc_basename in
7406 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7407 esac
7408 fi
7409 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7410 && test "$tmp_diet" = no
7411 then
vapier7f19c022007-02-17 14:46:31 +00007412 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00007413 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007414 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00007415 pgcc*) # Portland Group C compiler
7416 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 +00007417 tmp_addflag=' $pic_flag'
7418 ;;
7419 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00007420 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 +00007421 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00007422 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00007423 tmp_addflag=' -i_dynamic' ;;
7424 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7425 tmp_addflag=' -i_dynamic -nofor_main' ;;
7426 ifc* | ifort*) # Intel Fortran compiler
7427 tmp_addflag=' -nofor_main' ;;
vapier6acb2cf2009-01-28 04:46:28 +00007428 lf95*) # Lahey Fortran 8.1
7429 whole_archive_flag_spec=
7430 tmp_sharedflag='--shared' ;;
mlcreech636a9952008-05-05 22:52:56 +00007431 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7432 tmp_sharedflag='-qmkshrobj'
7433 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00007434 esac
mlcreech636a9952008-05-05 22:52:56 +00007435 case `$CC -V 2>&1 | sed 5q` in
7436 *Sun\ C*) # Sun C 5.9
7437 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'
7438 compiler_needs_object=yes
7439 tmp_sharedflag='-G' ;;
7440 *Sun\ F*) # Sun Fortran 8.3
7441 tmp_sharedflag='-G' ;;
7442 esac
7443 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007444
mlcreech636a9952008-05-05 22:52:56 +00007445 if test "x$supports_anon_versioning" = xyes; then
7446 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7447 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7448 echo "local: *; };" >> $output_objdir/$libname.ver~
7449 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7450 fi
7451
7452 case $cc_basename in
7453 xlf*)
7454 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7455 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7456 hardcode_libdir_flag_spec=
7457 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7458 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7459 if test "x$supports_anon_versioning" = xyes; then
7460 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7461 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7462 echo "local: *; };" >> $output_objdir/$libname.ver~
7463 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7464 fi
7465 ;;
7466 esac
vapier7f19c022007-02-17 14:46:31 +00007467 else
mlcreech636a9952008-05-05 22:52:56 +00007468 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00007469 fi
7470 ;;
7471
7472 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007473 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007474 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7475 wlarc=
7476 else
7477 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7478 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7479 fi
7480 ;;
7481
vapier7f19c022007-02-17 14:46:31 +00007482 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007483 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007484 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007485 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007486
7487*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7488*** create shared libraries on Solaris systems. Therefore, libtool
7489*** is disabling shared libraries support. We urge you to upgrade GNU
7490*** binutils to release 2.9.1 or newer. Another option is to modify
7491*** your PATH or compiler configuration so that the native linker is
7492*** used, and then restart.
7493
mlcreech636a9952008-05-05 22:52:56 +00007494_LT_EOF
7495 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007496 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7497 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7498 else
7499 ld_shlibs=no
7500 fi
7501 ;;
7502
vapier7f19c022007-02-17 14:46:31 +00007503 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7504 case `$LD -v 2>&1` in
7505 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7506 ld_shlibs=no
7507 cat <<_LT_EOF 1>&2
7508
7509*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7510*** reliably create shared libraries on SCO systems. Therefore, libtool
7511*** is disabling shared libraries support. We urge you to upgrade GNU
7512*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7513*** your PATH or compiler configuration so that the native linker is
7514*** used, and then restart.
7515
7516_LT_EOF
7517 ;;
7518 *)
mlcreech636a9952008-05-05 22:52:56 +00007519 # For security reasons, it is highly recommended that you always
7520 # use absolute paths for naming shared libraries, and exclude the
7521 # DT_RUNPATH tag from executables and libraries. But doing so
7522 # requires that you compile everything twice, which is a pain.
7523 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7525 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7526 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 +00007527 else
7528 ld_shlibs=no
7529 fi
7530 ;;
7531 esac
7532 ;;
7533
a.rottmann9bc8b932004-02-29 15:18:31 +00007534 sunos4*)
7535 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7536 wlarc=
7537 hardcode_direct=yes
7538 hardcode_shlibpath_var=no
7539 ;;
7540
a.rottmann9bc8b932004-02-29 15:18:31 +00007541 *)
mlcreech636a9952008-05-05 22:52:56 +00007542 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7544 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7545 else
7546 ld_shlibs=no
7547 fi
7548 ;;
7549 esac
7550
vapier7f19c022007-02-17 14:46:31 +00007551 if test "$ld_shlibs" = no; then
7552 runpath_var=
7553 hardcode_libdir_flag_spec=
7554 export_dynamic_flag_spec=
7555 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007556 fi
7557 else
7558 # PORTME fill in a description of your system's linker (not GNU ld)
7559 case $host_os in
7560 aix3*)
7561 allow_undefined_flag=unsupported
7562 always_export_symbols=yes
7563 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'
7564 # Note: this linker hardcodes the directories in LIBPATH if there
7565 # are no directories specified by -L.
7566 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007567 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007568 # Neither direct hardcoding nor static linking is supported with a
7569 # broken collect2.
7570 hardcode_direct=unsupported
7571 fi
7572 ;;
7573
mlcreech636a9952008-05-05 22:52:56 +00007574 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007575 if test "$host_cpu" = ia64; then
7576 # On IA64, the linker does run time linking by default, so we don't
7577 # have to do anything special.
7578 aix_use_runtimelinking=no
7579 exp_sym_flag='-Bexport'
7580 no_entry_flag=""
7581 else
7582 # If we're using GNU nm, then we don't want the "-C" option.
7583 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00007584 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7585 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 +00007586 else
mlcreech636a9952008-05-05 22:52:56 +00007587 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 +00007588 fi
7589 aix_use_runtimelinking=no
7590
7591 # Test if we are trying to use run time linking or normal
7592 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7593 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00007594 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007595 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00007596 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7597 aix_use_runtimelinking=yes
7598 break
7599 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007600 done
vapier7f19c022007-02-17 14:46:31 +00007601 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007602 esac
7603
7604 exp_sym_flag='-bexport'
7605 no_entry_flag='-bnoentry'
7606 fi
7607
7608 # When large executables or shared objects are built, AIX ld can
7609 # have problems creating the table of contents. If linking a library
7610 # or program results in "error TOC overflow" add -mminimal-toc to
7611 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7612 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7613
7614 archive_cmds=''
7615 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007616 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007617 hardcode_libdir_separator=':'
7618 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00007619 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00007620
7621 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007622 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007623 # We only want to do this on AIX 4.2 and lower, the check
7624 # below for broken collect2 doesn't work under 4.3+
7625 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00007626 if test -f "$collect2name" &&
7627 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007628 then
mlcreech636a9952008-05-05 22:52:56 +00007629 # We have reworked collect2
7630 :
a.rottmann9bc8b932004-02-29 15:18:31 +00007631 else
mlcreech636a9952008-05-05 22:52:56 +00007632 # We have old collect2
7633 hardcode_direct=unsupported
7634 # It fails to find uninstalled libraries when the uninstalled
7635 # path is not listed in the libpath. Setting hardcode_minus_L
7636 # to unsupported forces relinking
7637 hardcode_minus_L=yes
7638 hardcode_libdir_flag_spec='-L$libdir'
7639 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007640 fi
vapier7f19c022007-02-17 14:46:31 +00007641 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007642 esac
7643 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007644 if test "$aix_use_runtimelinking" = yes; then
7645 shared_flag="$shared_flag "'${wl}-G'
7646 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007647 else
7648 # not using gcc
7649 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00007650 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7651 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00007652 shared_flag='-G'
7653 else
vapier7f19c022007-02-17 14:46:31 +00007654 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007655 shared_flag='${wl}-G'
7656 else
7657 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007658 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007659 fi
7660 fi
7661
vapier6acb2cf2009-01-28 04:46:28 +00007662 export_dynamic_flag_spec='${wl}-bexpall'
a.rottmann9bc8b932004-02-29 15:18:31 +00007663 # It seems that -bexpall does not export symbols beginning with
7664 # underscore (_), so it is better to generate a list of symbols to export.
7665 always_export_symbols=yes
7666 if test "$aix_use_runtimelinking" = yes; then
7667 # Warning - without using the other runtime loading flags (-brtl),
7668 # -berok will link without error, but may produce a broken library.
7669 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00007670 # Determine the default libpath from the value encoded in an
7671 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007673/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007674
a.rottmann84e63352003-03-24 09:42:16 +00007675int
7676main ()
7677{
a.rottmann9bc8b932004-02-29 15:18:31 +00007678
a.rottmann84e63352003-03-24 09:42:16 +00007679 ;
7680 return 0;
7681}
7682_ACEOF
drhf922ca42015-05-14 15:39:18 +00007683if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007684
mlcreech636a9952008-05-05 22:52:56 +00007685lt_aix_libpath_sed='
7686 /Import File Strings/,/^$/ {
7687 /^0/ {
7688 s/^0 *\(.*\)$/\1/
7689 p
7690 }
7691 }'
7692aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007693# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007694if test -z "$aix_libpath"; then
7695 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7696fi
a.rottmann84e63352003-03-24 09:42:16 +00007697fi
drhf922ca42015-05-14 15:39:18 +00007698rm -f core conftest.err conftest.$ac_objext \
7699 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007700if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007701
mlcreech636a9952008-05-05 22:52:56 +00007702 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7703 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"
7704 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007705 if test "$host_cpu" = ia64; then
7706 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7707 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007708 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 +00007709 else
mlcreech636a9952008-05-05 22:52:56 +00007710 # Determine the default libpath from the value encoded in an
7711 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007713/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007714
a.rottmann9bc8b932004-02-29 15:18:31 +00007715int
7716main ()
7717{
a.rottmann84e63352003-03-24 09:42:16 +00007718
a.rottmann9bc8b932004-02-29 15:18:31 +00007719 ;
7720 return 0;
7721}
7722_ACEOF
drhf922ca42015-05-14 15:39:18 +00007723if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007724
mlcreech636a9952008-05-05 22:52:56 +00007725lt_aix_libpath_sed='
7726 /Import File Strings/,/^$/ {
7727 /^0/ {
7728 s/^0 *\(.*\)$/\1/
7729 p
7730 }
7731 }'
7732aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007733# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007734if test -z "$aix_libpath"; then
7735 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7736fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007737fi
drhf922ca42015-05-14 15:39:18 +00007738rm -f core conftest.err conftest.$ac_objext \
7739 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007740if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007741
a.rottmann9bc8b932004-02-29 15:18:31 +00007742 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7743 # Warning - without using the other run time loading flags,
7744 # -berok will link without error, but may produce a broken library.
7745 no_undefined_flag=' ${wl}-bernotok'
7746 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007747 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007748 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007749 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007750 # This is similar to how AIX traditionally builds its shared libraries.
7751 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 +00007752 fi
7753 fi
a.rottmann84e63352003-03-24 09:42:16 +00007754 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007755
7756 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007757 case $host_cpu in
7758 powerpc)
7759 # see comment about AmigaOS4 .so support
7760 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7761 archive_expsym_cmds=''
7762 ;;
7763 m68k)
7764 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)'
7765 hardcode_libdir_flag_spec='-L$libdir'
7766 hardcode_minus_L=yes
7767 ;;
7768 esac
a.rottmann84e63352003-03-24 09:42:16 +00007769 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007770
vapier7f19c022007-02-17 14:46:31 +00007771 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007772 export_dynamic_flag_spec=-rdynamic
7773 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007774
vapier6acb2cf2009-01-28 04:46:28 +00007775 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007776 # When not using gcc, we currently assume that we are using
7777 # Microsoft Visual C++.
7778 # hardcode_libdir_flag_spec is actually meaningless, as there is
7779 # no search path for DLLs.
7780 hardcode_libdir_flag_spec=' '
7781 allow_undefined_flag=unsupported
7782 # Tell ltmain to make .lib files, not .a files.
7783 libext=lib
7784 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00007785 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00007786 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00007787 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 +00007788 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00007789 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00007790 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00007791 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00007792 fix_srcfile_path='`cygpath -w "$srcfile"`'
7793 enable_shared_with_static_runtimes=yes
7794 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007795
a.rottmann9bc8b932004-02-29 15:18:31 +00007796 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00007797
7798
7799 archive_cmds_need_lc=no
7800 hardcode_direct=no
7801 hardcode_automatic=yes
7802 hardcode_shlibpath_var=unsupported
7803 whole_archive_flag_spec=''
7804 link_all_deplibs=yes
7805 allow_undefined_flag="$_lt_dar_allow_undefined"
vapier6acb2cf2009-01-28 04:46:28 +00007806 case $cc_basename in
7807 ifort*) _lt_dar_can_shared=yes ;;
7808 *) _lt_dar_can_shared=$GCC ;;
7809 esac
7810 if test "$_lt_dar_can_shared" = "yes"; then
mlcreech636a9952008-05-05 22:52:56 +00007811 output_verbose_link_cmd=echo
7812 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7813 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7814 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}"
7815 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}"
7816
7817 else
7818 ld_shlibs=no
7819 fi
7820
a.rottmann9bc8b932004-02-29 15:18:31 +00007821 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007822
a.rottmann9bc8b932004-02-29 15:18:31 +00007823 dgux*)
7824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7825 hardcode_libdir_flag_spec='-L$libdir'
7826 hardcode_shlibpath_var=no
7827 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007828
a.rottmann9bc8b932004-02-29 15:18:31 +00007829 freebsd1*)
7830 ld_shlibs=no
7831 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007832
a.rottmann9bc8b932004-02-29 15:18:31 +00007833 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7834 # support. Future versions do this automatically, but an explicit c++rt0.o
7835 # does not break anything, and helps significantly (at the cost of a little
7836 # extra space).
7837 freebsd2.2*)
7838 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7839 hardcode_libdir_flag_spec='-R$libdir'
7840 hardcode_direct=yes
7841 hardcode_shlibpath_var=no
7842 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007843
a.rottmann9bc8b932004-02-29 15:18:31 +00007844 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7845 freebsd2*)
7846 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7847 hardcode_direct=yes
7848 hardcode_minus_L=yes
7849 hardcode_shlibpath_var=no
7850 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007851
a.rottmann9bc8b932004-02-29 15:18:31 +00007852 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00007853 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007854 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7855 hardcode_libdir_flag_spec='-R$libdir'
7856 hardcode_direct=yes
7857 hardcode_shlibpath_var=no
7858 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007859
a.rottmann9bc8b932004-02-29 15:18:31 +00007860 hpux9*)
7861 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007862 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 +00007863 else
mlcreech636a9952008-05-05 22:52:56 +00007864 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 +00007865 fi
7866 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7867 hardcode_libdir_separator=:
7868 hardcode_direct=yes
7869
7870 # hardcode_minus_L: Not really in the search PATH,
7871 # but as the default location of the library.
7872 hardcode_minus_L=yes
7873 export_dynamic_flag_spec='${wl}-E'
7874 ;;
7875
vapier7f19c022007-02-17 14:46:31 +00007876 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007877 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007878 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7879 else
7880 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7881 fi
7882 if test "$with_gnu_ld" = no; then
7883 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00007884 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00007885 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00007886 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007887 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00007888 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00007889 # hardcode_minus_L: Not really in the search PATH,
7890 # but as the default location of the library.
7891 hardcode_minus_L=yes
7892 fi
7893 ;;
7894
7895 hpux11*)
7896 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7897 case $host_cpu in
7898 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007899 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7900 ;;
vapier7f19c022007-02-17 14:46:31 +00007901 ia64*)
vapier6acb2cf2009-01-28 04:46:28 +00007902 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00007903 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007904 *)
7905 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7906 ;;
7907 esac
7908 else
vapier7f19c022007-02-17 14:46:31 +00007909 case $host_cpu in
7910 hppa*64*)
7911 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7912 ;;
7913 ia64*)
7914 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007915 ;;
7916 *)
vapier7f19c022007-02-17 14:46:31 +00007917 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 +00007918 ;;
7919 esac
7920 fi
7921 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007922 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7923 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00007924
vapier7f19c022007-02-17 14:46:31 +00007925 case $host_cpu in
7926 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00007927 hardcode_direct=no
7928 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007929 ;;
7930 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007931 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007932 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007933 export_dynamic_flag_spec='${wl}-E'
7934
7935 # hardcode_minus_L: Not really in the search PATH,
7936 # but as the default location of the library.
7937 hardcode_minus_L=yes
7938 ;;
7939 esac
7940 fi
7941 ;;
7942
7943 irix5* | irix6* | nonstopux*)
7944 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007945 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'
7946 # Try to use the -exported_symbol ld option, if it does not
7947 # work, assume that -exports_file does not work either and
7948 # implicitly export all symbols.
7949 save_LDFLAGS="$LDFLAGS"
7950 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
drhf922ca42015-05-14 15:39:18 +00007951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +00007953int foo(void) {}
7954_ACEOF
drhf922ca42015-05-14 15:39:18 +00007955if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00007956 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'
7957
mlcreech636a9952008-05-05 22:52:56 +00007958fi
drhf922ca42015-05-14 15:39:18 +00007959rm -f core conftest.err conftest.$ac_objext \
7960 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00007961 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00007962 else
mlcreech636a9952008-05-05 22:52:56 +00007963 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'
7964 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 +00007965 fi
mlcreech636a9952008-05-05 22:52:56 +00007966 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00007967 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7968 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00007969 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007970 link_all_deplibs=yes
7971 ;;
7972
vapier7f19c022007-02-17 14:46:31 +00007973 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007974 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007975 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7976 else
7977 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7978 fi
7979 hardcode_libdir_flag_spec='-R$libdir'
7980 hardcode_direct=yes
7981 hardcode_shlibpath_var=no
7982 ;;
7983
7984 newsos6)
7985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7986 hardcode_direct=yes
7987 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7988 hardcode_libdir_separator=:
7989 hardcode_shlibpath_var=no
7990 ;;
7991
mlcreech636a9952008-05-05 22:52:56 +00007992 *nto* | *qnx*)
7993 ;;
7994
a.rottmann9bc8b932004-02-29 15:18:31 +00007995 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007996 if test -f /usr/libexec/ld.so; then
7997 hardcode_direct=yes
7998 hardcode_shlibpath_var=no
7999 hardcode_direct_absolute=yes
8000 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8001 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8002 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8003 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8004 export_dynamic_flag_spec='${wl}-E'
8005 else
8006 case $host_os in
8007 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8008 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8009 hardcode_libdir_flag_spec='-R$libdir'
8010 ;;
8011 *)
8012 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8013 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8014 ;;
8015 esac
8016 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008017 else
mlcreech636a9952008-05-05 22:52:56 +00008018 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008019 fi
8020 ;;
8021
8022 os2*)
8023 hardcode_libdir_flag_spec='-L$libdir'
8024 hardcode_minus_L=yes
8025 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00008026 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'
8027 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00008028 ;;
8029
8030 osf3*)
8031 if test "$GCC" = yes; then
8032 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008033 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 +00008034 else
8035 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008036 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 +00008037 fi
mlcreech636a9952008-05-05 22:52:56 +00008038 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008039 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8040 hardcode_libdir_separator=:
8041 ;;
8042
8043 osf4* | osf5*) # as osf3* with the addition of -msym flag
8044 if test "$GCC" = yes; then
8045 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008046 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 +00008047 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8048 else
8049 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008050 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'
8051 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~
8052 $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 +00008053
8054 # Both c and cxx compiler support -rpath directly
8055 hardcode_libdir_flag_spec='-rpath $libdir'
8056 fi
mlcreech636a9952008-05-05 22:52:56 +00008057 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008058 hardcode_libdir_separator=:
8059 ;;
8060
a.rottmann9bc8b932004-02-29 15:18:31 +00008061 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00008062 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008063 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008064 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00008065 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8066 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8067 $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 +00008068 else
mlcreech636a9952008-05-05 22:52:56 +00008069 case `$CC -V 2>&1` in
8070 *"Compilers 5.0"*)
8071 wlarc=''
8072 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8073 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8074 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8075 ;;
8076 *)
8077 wlarc='${wl}'
8078 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8079 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8080 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8081 ;;
8082 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008083 fi
8084 hardcode_libdir_flag_spec='-R$libdir'
8085 hardcode_shlibpath_var=no
8086 case $host_os in
8087 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00008088 *)
mlcreech636a9952008-05-05 22:52:56 +00008089 # The compiler driver will combine and reorder linker options,
8090 # but understands `-z linker_flag'. GCC discards it without `$wl',
8091 # but is careful enough not to reorder.
8092 # Supported since Solaris 2.6 (maybe 2.5.1?)
8093 if test "$GCC" = yes; then
8094 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8095 else
8096 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8097 fi
8098 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008099 esac
8100 link_all_deplibs=yes
8101 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008102
a.rottmann9bc8b932004-02-29 15:18:31 +00008103 sunos4*)
8104 if test "x$host_vendor" = xsequent; then
8105 # Use $CC to link under sequent, because it throws in some extra .o
8106 # files that make .init and .fini sections work.
8107 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8108 else
8109 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8110 fi
8111 hardcode_libdir_flag_spec='-L$libdir'
8112 hardcode_direct=yes
8113 hardcode_minus_L=yes
8114 hardcode_shlibpath_var=no
8115 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008116
a.rottmann9bc8b932004-02-29 15:18:31 +00008117 sysv4)
8118 case $host_vendor in
8119 sni)
8120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8121 hardcode_direct=yes # is this really true???
8122 ;;
8123 siemens)
8124 ## LD is ld it makes a PLAMLIB
8125 ## CC just makes a GrossModule.
8126 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8127 reload_cmds='$CC -r -o $output$reload_objs'
8128 hardcode_direct=no
8129 ;;
8130 motorola)
8131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8132 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8133 ;;
8134 esac
8135 runpath_var='LD_RUN_PATH'
8136 hardcode_shlibpath_var=no
8137 ;;
8138
8139 sysv4.3*)
8140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8141 hardcode_shlibpath_var=no
8142 export_dynamic_flag_spec='-Bexport'
8143 ;;
8144
8145 sysv4*MP*)
8146 if test -d /usr/nec; then
8147 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8148 hardcode_shlibpath_var=no
8149 runpath_var=LD_RUN_PATH
8150 hardcode_runpath_var=yes
8151 ld_shlibs=yes
8152 fi
8153 ;;
8154
mlcreech636a9952008-05-05 22:52:56 +00008155 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00008156 no_undefined_flag='${wl}-z,text'
8157 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008158 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00008159 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00008160
a.rottmann9bc8b932004-02-29 15:18:31 +00008161 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008162 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8163 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 +00008164 else
vapier7f19c022007-02-17 14:46:31 +00008165 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8166 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 +00008167 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008168 ;;
8169
vapier7f19c022007-02-17 14:46:31 +00008170 sysv5* | sco3.2v5* | sco5v6*)
8171 # Note: We can NOT use -z defs as we might desire, because we do not
8172 # link with -lc, and that would cause any symbols used from libc to
8173 # always be unresolved, which means just about no library would
8174 # ever link correctly. If we're not using GNU ld we use -z text
8175 # though, which does catch some bad symbols but isn't as heavy-handed
8176 # as -z defs.
8177 no_undefined_flag='${wl}-z,text'
8178 allow_undefined_flag='${wl}-z,nodefs'
8179 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008180 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00008181 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00008182 hardcode_libdir_separator=':'
8183 link_all_deplibs=yes
8184 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00008185 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00008186
8187 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008188 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8189 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008190 else
mlcreech636a9952008-05-05 22:52:56 +00008191 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8192 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008193 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008194 ;;
8195
8196 uts4*)
8197 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8198 hardcode_libdir_flag_spec='-L$libdir'
8199 hardcode_shlibpath_var=no
8200 ;;
8201
8202 *)
8203 ld_shlibs=no
8204 ;;
8205 esac
mlcreech636a9952008-05-05 22:52:56 +00008206
8207 if test x$host_vendor = xsni; then
8208 case $host in
8209 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8210 export_dynamic_flag_spec='${wl}-Blargedynsym'
8211 ;;
8212 esac
8213 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008214 fi
8215
drhf922ca42015-05-14 15:39:18 +00008216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
drh8b727472009-01-19 18:18:40 +00008217$as_echo "$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008218test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00008219
mlcreech636a9952008-05-05 22:52:56 +00008220with_gnu_ld=$with_gnu_ld
8221
8222
danielk197733a14782008-08-04 14:50:05 +00008223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
a.rottmann9bc8b932004-02-29 15:18:31 +00008236#
8237# Do we need to explicitly link libc?
8238#
8239case "x$archive_cmds_need_lc" in
8240x|xyes)
8241 # Assume -lc should be added
8242 archive_cmds_need_lc=yes
8243
8244 if test "$enable_shared" = yes && test "$GCC" = yes; then
8245 case $archive_cmds in
8246 *'~'*)
8247 # FIXME: we may have to deal with multi-command sequences.
8248 ;;
8249 '$CC '*)
8250 # Test whether the compiler implicitly links with -lc since on some
8251 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8252 # to ld, don't add -lc before -lgcc.
drhf922ca42015-05-14 15:39:18 +00008253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
drh8b727472009-01-19 18:18:40 +00008254$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008255 $RM conftest*
8256 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00008257
drhf922ca42015-05-14 15:39:18 +00008258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008259 (eval $ac_compile) 2>&5
8260 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8262 test $ac_status = 0; } 2>conftest.err; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008263 soname=conftest
8264 lib=conftest
8265 libobjs=conftest.$ac_objext
8266 deplibs=
8267 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00008268 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00008269 compiler_flags=-v
8270 linker_flags=-v
8271 verstring=
8272 output_objdir=.
8273 libname=conftest
8274 lt_save_allow_undefined_flag=$allow_undefined_flag
8275 allow_undefined_flag=
drhf922ca42015-05-14 15:39:18 +00008276 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 +00008277 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008278 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8280 test $ac_status = 0; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008281 then
8282 archive_cmds_need_lc=no
8283 else
8284 archive_cmds_need_lc=yes
8285 fi
8286 allow_undefined_flag=$lt_save_allow_undefined_flag
8287 else
8288 cat conftest.err 1>&5
8289 fi
mlcreech636a9952008-05-05 22:52:56 +00008290 $RM conftest*
drhf922ca42015-05-14 15:39:18 +00008291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
drh8b727472009-01-19 18:18:40 +00008292$as_echo "$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008293 ;;
8294 esac
drh71eb93e2001-09-28 01:34:43 +00008295 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008296 ;;
8297esac
drh71eb93e2001-09-28 01:34:43 +00008298
mlcreech636a9952008-05-05 22:52:56 +00008299
danielk197733a14782008-08-04 14:50:05 +00008300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
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
drhf922ca42015-05-14 15:39:18 +00008455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
drh8b727472009-01-19 18:18:40 +00008456$as_echo_n "checking dynamic linker characteristics... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008457
8458if test "$GCC" = yes; then
8459 case $host_os in
8460 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8461 *) lt_awk_arg="/^libraries:/" ;;
8462 esac
8463 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8464 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8465 # if the path contains ";" then we assume it to be the separator
8466 # otherwise default to the standard path separator (i.e. ":") - it is
8467 # assumed that no part of a normal pathname contains ";" but that should
8468 # okay in the real world where ";" in dirpaths is itself problematic.
8469 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8470 else
8471 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8472 fi
8473 # Ok, now we have the path, separated by spaces, we can step through it
8474 # and add multilib dir if necessary.
8475 lt_tmp_lt_search_path_spec=
8476 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8477 for lt_sys_path in $lt_search_path_spec; do
8478 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8479 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8480 else
8481 test -d "$lt_sys_path" && \
8482 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8483 fi
8484 done
8485 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8486BEGIN {RS=" "; FS="/|\n";} {
8487 lt_foo="";
8488 lt_count=0;
8489 for (lt_i = NF; lt_i > 0; lt_i--) {
8490 if ($lt_i != "" && $lt_i != ".") {
8491 if ($lt_i == "..") {
8492 lt_count++;
8493 } else {
8494 if (lt_count == 0) {
8495 lt_foo="/" $lt_i lt_foo;
8496 } else {
8497 lt_count--;
8498 }
8499 }
8500 }
8501 }
8502 if (lt_foo != "") { lt_freq[lt_foo]++; }
8503 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8504}'`
8505 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8506else
8507 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8508fi
drh71eb93e2001-09-28 01:34:43 +00008509library_names_spec=
8510libname_spec='lib$name'
8511soname_spec=
vapier7f19c022007-02-17 14:46:31 +00008512shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00008513postinstall_cmds=
8514postuninstall_cmds=
8515finish_cmds=
8516finish_eval=
8517shlibpath_var=
8518shlibpath_overrides_runpath=unknown
8519version_type=none
8520dynamic_linker="$host_os ld.so"
8521sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008522need_lib_prefix=unknown
8523hardcode_into_libs=no
8524
8525# when you set need_version to no, make sure it does not cause -set_version
8526# flags to be left without arguments
8527need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00008528
8529case $host_os in
8530aix3*)
8531 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008532 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008533 shlibpath_var=LIBPATH
8534
a.rottmann9bc8b932004-02-29 15:18:31 +00008535 # AIX 3 has no versioning support, so we append a major version to the name.
8536 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008537 ;;
8538
mlcreech636a9952008-05-05 22:52:56 +00008539aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00008540 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00008541 need_lib_prefix=no
8542 need_version=no
8543 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008544 if test "$host_cpu" = ia64; then
8545 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00008546 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008547 shlibpath_var=LD_LIBRARY_PATH
8548 else
8549 # With GCC up to 2.95.x, collect2 would create an import file
8550 # for dependence libraries. The import file would start with
8551 # the line `#! .'. This would cause the generated library to
8552 # depend on `.', always an invalid library. This was fixed in
8553 # development snapshots of GCC prior to 3.0.
8554 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008555 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008556 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8557 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00008558 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008559 :
8560 else
8561 can_build_shared=no
8562 fi
8563 ;;
drh71eb93e2001-09-28 01:34:43 +00008564 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008565 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8566 # soname into executable. Probably we can add versioning support to
8567 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00008568 if test "$aix_use_runtimelinking" = yes; then
8569 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8570 # instead of lib<name>.a to let people know that these are not
8571 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008573 else
8574 # We preserve .a as extension for shared libraries through AIX4.2
8575 # and later when we are not doing run time linking.
8576 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008577 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008578 fi
8579 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00008580 fi
8581 ;;
8582
8583amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00008584 case $host_cpu in
8585 powerpc)
8586 # Since July 2007 AmigaOS4 officially supports .so libraries.
8587 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8589 ;;
8590 m68k)
8591 library_names_spec='$libname.ixlibrary $libname.a'
8592 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8593 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'
8594 ;;
8595 esac
drh71eb93e2001-09-28 01:34:43 +00008596 ;;
8597
8598beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008599 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008600 dynamic_linker="$host_os ld.so"
8601 shlibpath_var=LIBRARY_PATH
8602 ;;
8603
vapier7f19c022007-02-17 14:46:31 +00008604bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00008605 version_type=linux
8606 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8608 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008609 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8610 shlibpath_var=LD_LIBRARY_PATH
8611 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8612 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8613 # the default ld.so.conf also contains /usr/contrib/lib and
8614 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8615 # libtool to hard-code these into programs
8616 ;;
8617
vapier6acb2cf2009-01-28 04:46:28 +00008618cygwin* | mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008619 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00008620 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008621 need_version=no
8622 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008623
drh71eb93e2001-09-28 01:34:43 +00008624 case $GCC,$host_os in
vapier6acb2cf2009-01-28 04:46:28 +00008625 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008626 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008627 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8628 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00008629 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008630 dldir=$destdir/`dirname \$dlpath`~
8631 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00008632 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00008633 chmod a+x \$dldir/$dlname~
8634 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8635 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8636 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00008637 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008638 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00008639 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00008640 shlibpath_overrides_runpath=yes
8641
8642 case $host_os in
8643 cygwin*)
8644 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8645 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8646 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8647 ;;
vapier6acb2cf2009-01-28 04:46:28 +00008648 mingw* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008649 # MinGW DLLs use traditional 'lib' prefix
8650 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00008651 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8652 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008653 # It is most probably a Windows format PATH printed by
8654 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8655 # path with ; separators, and with drive letters. We can handle the
8656 # drive letters (cygwin fileutils understands them), so leave them,
8657 # especially as we might pass files found there to a mingw objdump,
8658 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00008659 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00008660 else
mlcreech636a9952008-05-05 22:52:56 +00008661 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00008662 fi
8663 ;;
8664 pw32*)
8665 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00008666 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 +00008667 ;;
8668 esac
drh71eb93e2001-09-28 01:34:43 +00008669 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008670
drh71eb93e2001-09-28 01:34:43 +00008671 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008672 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008673 ;;
8674 esac
8675 dynamic_linker='Win32 ld.exe'
8676 # FIXME: first we should search . and the directory the executable is in
8677 shlibpath_var=PATH
8678 ;;
8679
8680darwin* | rhapsody*)
8681 dynamic_linker="$host_os dyld"
8682 version_type=darwin
8683 need_lib_prefix=no
8684 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008685 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00008686 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008687 shlibpath_overrides_runpath=yes
8688 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008689 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00008690
8691 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008692 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8693 ;;
8694
8695dgux*)
8696 version_type=linux
8697 need_lib_prefix=no
8698 need_version=no
8699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8700 soname_spec='${libname}${release}${shared_ext}$major'
8701 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008702 ;;
8703
a.rottmann84e63352003-03-24 09:42:16 +00008704freebsd1*)
8705 dynamic_linker=no
8706 ;;
8707
vapier7f19c022007-02-17 14:46:31 +00008708freebsd* | dragonfly*)
8709 # DragonFly does not have aout. When/if they implement a new
8710 # versioning mechanism, adjust this.
8711 if test -x /usr/bin/objformat; then
8712 objformat=`/usr/bin/objformat`
8713 else
8714 case $host_os in
8715 freebsd[123]*) objformat=aout ;;
8716 *) objformat=elf ;;
8717 esac
8718 fi
8719 # Handle Gentoo/FreeBSD as it was Linux
8720 case $host_vendor in
8721 gentoo)
8722 version_type=linux ;;
8723 *)
8724 version_type=freebsd-$objformat ;;
8725 esac
8726
drh71eb93e2001-09-28 01:34:43 +00008727 case $version_type in
8728 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008730 need_version=no
8731 need_lib_prefix=no
8732 ;;
8733 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008734 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008735 need_version=yes
8736 ;;
vapier7f19c022007-02-17 14:46:31 +00008737 linux)
8738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8739 soname_spec='${libname}${release}${shared_ext}$major'
8740 need_lib_prefix=no
8741 need_version=no
8742 ;;
drh71eb93e2001-09-28 01:34:43 +00008743 esac
8744 shlibpath_var=LD_LIBRARY_PATH
8745 case $host_os in
8746 freebsd2*)
8747 shlibpath_overrides_runpath=yes
8748 ;;
vapier7f19c022007-02-17 14:46:31 +00008749 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008750 shlibpath_overrides_runpath=yes
8751 hardcode_into_libs=yes
8752 ;;
vapier7f19c022007-02-17 14:46:31 +00008753 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8754 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00008755 shlibpath_overrides_runpath=no
8756 hardcode_into_libs=yes
8757 ;;
mlcreech636a9952008-05-05 22:52:56 +00008758 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00008759 shlibpath_overrides_runpath=yes
8760 hardcode_into_libs=yes
8761 ;;
drh71eb93e2001-09-28 01:34:43 +00008762 esac
8763 ;;
8764
8765gnu*)
8766 version_type=linux
8767 need_lib_prefix=no
8768 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8770 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008771 shlibpath_var=LD_LIBRARY_PATH
8772 hardcode_into_libs=yes
8773 ;;
8774
8775hpux9* | hpux10* | hpux11*)
8776 # Give a soname corresponding to the major version so that dld.sl refuses to
8777 # link against other versions.
8778 version_type=sunos
8779 need_lib_prefix=no
8780 need_version=no
vapier7f19c022007-02-17 14:46:31 +00008781 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00008782 ia64*)
vapier7f19c022007-02-17 14:46:31 +00008783 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00008784 hardcode_into_libs=yes
8785 dynamic_linker="$host_os dld.so"
8786 shlibpath_var=LD_LIBRARY_PATH
8787 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8789 soname_spec='${libname}${release}${shared_ext}$major'
8790 if test "X$HPUX_IA64_MODE" = X32; then
8791 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8792 else
8793 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8794 fi
8795 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8796 ;;
mlcreech636a9952008-05-05 22:52:56 +00008797 hppa*64*)
8798 shrext_cmds='.sl'
8799 hardcode_into_libs=yes
8800 dynamic_linker="$host_os dld.sl"
8801 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8802 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8804 soname_spec='${libname}${release}${shared_ext}$major'
8805 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8806 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8807 ;;
8808 *)
vapier7f19c022007-02-17 14:46:31 +00008809 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00008810 dynamic_linker="$host_os dld.sl"
8811 shlibpath_var=SHLIB_PATH
8812 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8814 soname_spec='${libname}${release}${shared_ext}$major'
8815 ;;
8816 esac
drh71eb93e2001-09-28 01:34:43 +00008817 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8818 postinstall_cmds='chmod 555 $lib'
8819 ;;
8820
mlcreech636a9952008-05-05 22:52:56 +00008821interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00008822 version_type=linux
8823 need_lib_prefix=no
8824 need_version=no
8825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8826 soname_spec='${libname}${release}${shared_ext}$major'
8827 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8828 shlibpath_var=LD_LIBRARY_PATH
8829 shlibpath_overrides_runpath=no
8830 hardcode_into_libs=yes
8831 ;;
8832
a.rottmann84e63352003-03-24 09:42:16 +00008833irix5* | irix6* | nonstopux*)
8834 case $host_os in
8835 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008836 *)
8837 if test "$lt_cv_prog_gnu_ld" = yes; then
8838 version_type=linux
8839 else
8840 version_type=irix
8841 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00008842 esac
drh71eb93e2001-09-28 01:34:43 +00008843 need_lib_prefix=no
8844 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008845 soname_spec='${libname}${release}${shared_ext}$major'
8846 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 +00008847 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008848 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00008849 libsuff= shlibsuff=
8850 ;;
8851 *)
8852 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00008853 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8854 libsuff= shlibsuff= libmagic=32-bit;;
8855 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8856 libsuff=32 shlibsuff=N32 libmagic=N32;;
8857 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8858 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00008859 *) libsuff= shlibsuff= libmagic=never-match;;
8860 esac
8861 ;;
8862 esac
8863 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8864 shlibpath_overrides_runpath=no
8865 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8866 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00008867 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008868 ;;
8869
8870# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00008871linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00008872 dynamic_linker=no
8873 ;;
8874
8875# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00008876linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00008877 version_type=linux
8878 need_lib_prefix=no
8879 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8881 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008882 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8883 shlibpath_var=LD_LIBRARY_PATH
8884 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00008885 # Some binutils ld are patched to set DT_RUNPATH
8886 save_LDFLAGS=$LDFLAGS
8887 save_libdir=$libdir
8888 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8889 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
drhf922ca42015-05-14 15:39:18 +00008890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008891/* end confdefs.h. */
8892
8893int
8894main ()
8895{
8896
8897 ;
8898 return 0;
8899}
8900_ACEOF
drhf922ca42015-05-14 15:39:18 +00008901if ac_fn_c_try_link "$LINENO"; then :
8902 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
mlcreech636a9952008-05-05 22:52:56 +00008903 shlibpath_overrides_runpath=yes
8904fi
mlcreech636a9952008-05-05 22:52:56 +00008905fi
drhf922ca42015-05-14 15:39:18 +00008906rm -f core conftest.err conftest.$ac_objext \
8907 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008908 LDFLAGS=$save_LDFLAGS
8909 libdir=$save_libdir
8910
drh71eb93e2001-09-28 01:34:43 +00008911 # This implies no fast_install, which is unacceptable.
8912 # Some rework will be needed to allow for fast_install
8913 # before this can be enabled.
8914 hardcode_into_libs=yes
8915
a.rottmann9bc8b932004-02-29 15:18:31 +00008916 # Append ld.so.conf contents to the search path
8917 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00008918 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 +00008919 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00008920 fi
8921
drh71eb93e2001-09-28 01:34:43 +00008922 # We used to test for /lib/ld.so.1 and disable shared libraries on
8923 # powerpc, because MkLinux only supported shared libraries with the
8924 # GNU dynamic linker. Since this was broken with cross compilers,
8925 # most powerpc-linux boxes support dynamic linking these days and
8926 # people can always --disable-shared, the test was removed, and we
8927 # assume the GNU/Linux dynamic linker is in use.
8928 dynamic_linker='GNU/Linux ld.so'
8929 ;;
8930
8931netbsd*)
8932 version_type=sunos
8933 need_lib_prefix=no
8934 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008935 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008937 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8938 dynamic_linker='NetBSD (a.out) ld.so'
8939 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8941 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008942 dynamic_linker='NetBSD ld.elf_so'
8943 fi
8944 shlibpath_var=LD_LIBRARY_PATH
8945 shlibpath_overrides_runpath=yes
8946 hardcode_into_libs=yes
8947 ;;
8948
8949newsos6)
8950 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8952 shlibpath_var=LD_LIBRARY_PATH
8953 shlibpath_overrides_runpath=yes
8954 ;;
8955
mlcreech636a9952008-05-05 22:52:56 +00008956*nto* | *qnx*)
8957 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00008958 need_lib_prefix=no
8959 need_version=no
8960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8961 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008962 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008963 shlibpath_overrides_runpath=no
8964 hardcode_into_libs=yes
8965 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00008966 ;;
8967
drh71eb93e2001-09-28 01:34:43 +00008968openbsd*)
8969 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00008970 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00008971 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00008972 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8973 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00008974 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8975 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00008976 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8978 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8979 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008980 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 +00008981 case $host_os in
8982 openbsd2.[89] | openbsd2.[89].*)
8983 shlibpath_overrides_runpath=no
8984 ;;
8985 *)
8986 shlibpath_overrides_runpath=yes
8987 ;;
8988 esac
a.rottmann84e63352003-03-24 09:42:16 +00008989 else
8990 shlibpath_overrides_runpath=yes
8991 fi
drh71eb93e2001-09-28 01:34:43 +00008992 ;;
8993
8994os2*)
8995 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00008996 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008997 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008998 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008999 dynamic_linker='OS/2 ld.exe'
9000 shlibpath_var=LIBPATH
9001 ;;
9002
9003osf3* | osf4* | osf5*)
9004 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00009005 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009006 need_version=no
9007 soname_spec='${libname}${release}${shared_ext}$major'
9008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00009009 shlibpath_var=LD_LIBRARY_PATH
9010 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9011 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9012 ;;
9013
mlcreech636a9952008-05-05 22:52:56 +00009014rdos*)
9015 dynamic_linker=no
9016 ;;
9017
drh71eb93e2001-09-28 01:34:43 +00009018solaris*)
9019 version_type=linux
9020 need_lib_prefix=no
9021 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9023 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009024 shlibpath_var=LD_LIBRARY_PATH
9025 shlibpath_overrides_runpath=yes
9026 hardcode_into_libs=yes
9027 # ldd complains unless libraries are executable
9028 postinstall_cmds='chmod +x $lib'
9029 ;;
9030
9031sunos4*)
9032 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00009033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009034 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9035 shlibpath_var=LD_LIBRARY_PATH
9036 shlibpath_overrides_runpath=yes
9037 if test "$with_gnu_ld" = yes; then
9038 need_lib_prefix=no
9039 fi
9040 need_version=yes
9041 ;;
9042
vapier7f19c022007-02-17 14:46:31 +00009043sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00009044 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9046 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009047 shlibpath_var=LD_LIBRARY_PATH
9048 case $host_vendor in
9049 sni)
9050 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00009051 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00009052 runpath_var=LD_RUN_PATH
9053 ;;
9054 siemens)
9055 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00009056 ;;
9057 motorola)
9058 need_lib_prefix=no
9059 need_version=no
9060 shlibpath_overrides_runpath=no
9061 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9062 ;;
9063 esac
9064 ;;
9065
9066sysv4*MP*)
9067 if test -d /usr/nec ;then
9068 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009069 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9070 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00009071 shlibpath_var=LD_LIBRARY_PATH
9072 fi
9073 ;;
9074
vapier7f19c022007-02-17 14:46:31 +00009075sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9076 version_type=freebsd-elf
9077 need_lib_prefix=no
9078 need_version=no
9079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9080 soname_spec='${libname}${release}${shared_ext}$major'
9081 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009082 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00009083 hardcode_into_libs=yes
9084 if test "$with_gnu_ld" = yes; then
9085 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00009086 else
9087 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00009088 case $host_os in
9089 sco3.2v5*)
9090 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9091 ;;
9092 esac
9093 fi
9094 sys_lib_dlsearch_path_spec='/usr/lib'
9095 ;;
9096
mlcreech636a9952008-05-05 22:52:56 +00009097tpf*)
9098 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9099 version_type=linux
9100 need_lib_prefix=no
9101 need_version=no
vapier6acb2cf2009-01-28 04:46:28 +00009102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00009103 shlibpath_var=LD_LIBRARY_PATH
9104 shlibpath_overrides_runpath=no
9105 hardcode_into_libs=yes
9106 ;;
9107
a.rottmann9bc8b932004-02-29 15:18:31 +00009108uts4*)
9109 version_type=linux
9110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9111 soname_spec='${libname}${release}${shared_ext}$major'
9112 shlibpath_var=LD_LIBRARY_PATH
9113 ;;
9114
drh71eb93e2001-09-28 01:34:43 +00009115*)
9116 dynamic_linker=no
9117 ;;
9118esac
drhf922ca42015-05-14 15:39:18 +00009119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
drh8b727472009-01-19 18:18:40 +00009120$as_echo "$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009121test "$dynamic_linker" = no && can_build_shared=no
9122
vapier7f19c022007-02-17 14:46:31 +00009123variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9124if test "$GCC" = yes; then
9125 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9126fi
9127
mlcreech636a9952008-05-05 22:52:56 +00009128if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9129 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9130fi
9131if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9132 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9133fi
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
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
drhf922ca42015-05-14 15:39:18 +00009221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
drh8b727472009-01-19 18:18:40 +00009222$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009223hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00009224if test -n "$hardcode_libdir_flag_spec" ||
9225 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00009226 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00009227
mlcreech636a9952008-05-05 22:52:56 +00009228 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00009229 if test "$hardcode_direct" != no &&
9230 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9231 # have to relink, otherwise we might link with an installed library
9232 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00009233 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00009234 test "$hardcode_minus_L" != no; then
9235 # Linking always hardcodes the temporary library directory.
9236 hardcode_action=relink
9237 else
9238 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9239 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00009240 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009241else
9242 # We cannot hardcode anything, or else we can only hardcode existing
9243 # directories.
9244 hardcode_action=unsupported
9245fi
drhf922ca42015-05-14 15:39:18 +00009246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
drh8b727472009-01-19 18:18:40 +00009247$as_echo "$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009248
mlcreech636a9952008-05-05 22:52:56 +00009249if test "$hardcode_action" = relink ||
9250 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009251 # Fast installation is not supported
9252 enable_fast_install=no
9253elif test "$shlibpath_overrides_runpath" = yes ||
9254 test "$enable_shared" = no; then
9255 # Fast installation is not necessary
9256 enable_fast_install=needless
9257fi
9258
a.rottmann84e63352003-03-24 09:42:16 +00009259
mlcreech636a9952008-05-05 22:52:56 +00009260
9261
9262
9263
9264 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00009265 enable_dlopen=unknown
9266 enable_dlopen_self=unknown
9267 enable_dlopen_self_static=unknown
9268else
9269 lt_cv_dlopen=no
9270 lt_cv_dlopen_libs=
9271
9272 case $host_os in
9273 beos*)
9274 lt_cv_dlopen="load_add_on"
9275 lt_cv_dlopen_libs=
9276 lt_cv_dlopen_self=yes
9277 ;;
9278
vapier6acb2cf2009-01-28 04:46:28 +00009279 mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00009280 lt_cv_dlopen="LoadLibrary"
9281 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009282 ;;
drh71eb93e2001-09-28 01:34:43 +00009283
a.rottmann9bc8b932004-02-29 15:18:31 +00009284 cygwin*)
9285 lt_cv_dlopen="dlopen"
9286 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009287 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009288
9289 darwin*)
9290 # if libdl is installed we need to link against it
drhf922ca42015-05-14 15:39:18 +00009291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009292$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009293if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009294 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009295else
9296 ac_check_lib_save_LIBS=$LIBS
9297LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009299/* end confdefs.h. */
9300
drh8b727472009-01-19 18:18:40 +00009301/* Override any GCC internal prototype to avoid an error.
9302 Use char because int might match the return type of a GCC
9303 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00009304#ifdef __cplusplus
9305extern "C"
9306#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00009307char dlopen ();
9308int
9309main ()
9310{
drh8b727472009-01-19 18:18:40 +00009311return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00009312 ;
9313 return 0;
9314}
9315_ACEOF
drhf922ca42015-05-14 15:39:18 +00009316if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009317 ac_cv_lib_dl_dlopen=yes
9318else
drhf922ca42015-05-14 15:39:18 +00009319 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009320fi
drhf922ca42015-05-14 15:39:18 +00009321rm -f core conftest.err conftest.$ac_objext \
9322 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009323LIBS=$ac_check_lib_save_LIBS
9324fi
drhf922ca42015-05-14 15:39:18 +00009325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009326$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009327if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009328 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9329else
9330
9331 lt_cv_dlopen="dyld"
9332 lt_cv_dlopen_libs=
9333 lt_cv_dlopen_self=yes
9334
9335fi
9336
mlcreech636a9952008-05-05 22:52:56 +00009337 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009338
drh71eb93e2001-09-28 01:34:43 +00009339 *)
drhf922ca42015-05-14 15:39:18 +00009340 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9341if test "x$ac_cv_func_shl_load" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009342 lt_cv_dlopen="shl_load"
9343else
drhf922ca42015-05-14 15:39:18 +00009344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009345$as_echo_n "checking for shl_load in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009346if ${ac_cv_lib_dld_shl_load+:} false; then :
drh8b727472009-01-19 18:18:40 +00009347 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009348else
9349 ac_check_lib_save_LIBS=$LIBS
9350LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009351cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009352/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009353
drh8b727472009-01-19 18:18:40 +00009354/* Override any GCC internal prototype to avoid an error.
9355 Use char because int might match the return type of a GCC
9356 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009357#ifdef __cplusplus
9358extern "C"
9359#endif
drh71eb93e2001-09-28 01:34:43 +00009360char shl_load ();
9361int
9362main ()
9363{
drh8b727472009-01-19 18:18:40 +00009364return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009365 ;
9366 return 0;
9367}
9368_ACEOF
drhf922ca42015-05-14 15:39:18 +00009369if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009370 ac_cv_lib_dld_shl_load=yes
9371else
drhf922ca42015-05-14 15:39:18 +00009372 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009373fi
drhf922ca42015-05-14 15:39:18 +00009374rm -f core conftest.err conftest.$ac_objext \
9375 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009376LIBS=$ac_check_lib_save_LIBS
9377fi
drhf922ca42015-05-14 15:39:18 +00009378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
drh8b727472009-01-19 18:18:40 +00009379$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
drhf922ca42015-05-14 15:39:18 +00009380if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009381 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00009382else
drhf922ca42015-05-14 15:39:18 +00009383 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9384if test "x$ac_cv_func_dlopen" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00009385 lt_cv_dlopen="dlopen"
9386else
drhf922ca42015-05-14 15:39:18 +00009387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009388$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009389if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009390 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009391else
9392 ac_check_lib_save_LIBS=$LIBS
9393LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009395/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009396
drh8b727472009-01-19 18:18:40 +00009397/* Override any GCC internal prototype to avoid an error.
9398 Use char because int might match the return type of a GCC
9399 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009400#ifdef __cplusplus
9401extern "C"
9402#endif
drh71eb93e2001-09-28 01:34:43 +00009403char dlopen ();
9404int
9405main ()
9406{
drh8b727472009-01-19 18:18:40 +00009407return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009408 ;
9409 return 0;
9410}
9411_ACEOF
drhf922ca42015-05-14 15:39:18 +00009412if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009413 ac_cv_lib_dl_dlopen=yes
9414else
drhf922ca42015-05-14 15:39:18 +00009415 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009416fi
drhf922ca42015-05-14 15:39:18 +00009417rm -f core conftest.err conftest.$ac_objext \
9418 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009419LIBS=$ac_check_lib_save_LIBS
9420fi
drhf922ca42015-05-14 15:39:18 +00009421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009422$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009423if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009424 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9425else
drhf922ca42015-05-14 15:39:18 +00009426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
drh8b727472009-01-19 18:18:40 +00009427$as_echo_n "checking for dlopen in -lsvld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009428if ${ac_cv_lib_svld_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009429 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009430else
9431 ac_check_lib_save_LIBS=$LIBS
9432LIBS="-lsvld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009434/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009435
drh8b727472009-01-19 18:18:40 +00009436/* Override any GCC internal prototype to avoid an error.
9437 Use char because int might match the return type of a GCC
9438 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009439#ifdef __cplusplus
9440extern "C"
9441#endif
drh71eb93e2001-09-28 01:34:43 +00009442char dlopen ();
9443int
9444main ()
9445{
drh8b727472009-01-19 18:18:40 +00009446return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009447 ;
9448 return 0;
9449}
9450_ACEOF
drhf922ca42015-05-14 15:39:18 +00009451if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009452 ac_cv_lib_svld_dlopen=yes
9453else
drhf922ca42015-05-14 15:39:18 +00009454 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009455fi
drhf922ca42015-05-14 15:39:18 +00009456rm -f core conftest.err conftest.$ac_objext \
9457 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009458LIBS=$ac_check_lib_save_LIBS
9459fi
drhf922ca42015-05-14 15:39:18 +00009460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009461$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009462if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009463 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00009464else
drhf922ca42015-05-14 15:39:18 +00009465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009466$as_echo_n "checking for dld_link in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009467if ${ac_cv_lib_dld_dld_link+:} false; then :
drh8b727472009-01-19 18:18:40 +00009468 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00009469else
9470 ac_check_lib_save_LIBS=$LIBS
9471LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009473/* end confdefs.h. */
9474
drh8b727472009-01-19 18:18:40 +00009475/* Override any GCC internal prototype to avoid an error.
9476 Use char because int might match the return type of a GCC
9477 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00009478#ifdef __cplusplus
9479extern "C"
9480#endif
a.rottmann84e63352003-03-24 09:42:16 +00009481char dld_link ();
9482int
9483main ()
9484{
drh8b727472009-01-19 18:18:40 +00009485return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +00009486 ;
9487 return 0;
9488}
9489_ACEOF
drhf922ca42015-05-14 15:39:18 +00009490if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00009491 ac_cv_lib_dld_dld_link=yes
9492else
drhf922ca42015-05-14 15:39:18 +00009493 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00009494fi
drhf922ca42015-05-14 15:39:18 +00009495rm -f core conftest.err conftest.$ac_objext \
9496 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009497LIBS=$ac_check_lib_save_LIBS
9498fi
drhf922ca42015-05-14 15:39:18 +00009499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
drh8b727472009-01-19 18:18:40 +00009500$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
drhf922ca42015-05-14 15:39:18 +00009501if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009502 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +00009503fi
9504
drh71eb93e2001-09-28 01:34:43 +00009505
9506fi
9507
drh71eb93e2001-09-28 01:34:43 +00009508
9509fi
9510
a.rottmann84e63352003-03-24 09:42:16 +00009511
9512fi
9513
9514
9515fi
9516
9517
drh71eb93e2001-09-28 01:34:43 +00009518fi
9519
9520 ;;
9521 esac
9522
9523 if test "x$lt_cv_dlopen" != xno; then
9524 enable_dlopen=yes
9525 else
9526 enable_dlopen=no
9527 fi
9528
9529 case $lt_cv_dlopen in
9530 dlopen)
9531 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00009532 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00009533
9534 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +00009535 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +00009536
9537 save_LIBS="$LIBS"
9538 LIBS="$lt_cv_dlopen_libs $LIBS"
9539
drhf922ca42015-05-14 15:39:18 +00009540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009541$as_echo_n "checking whether a program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009542if ${lt_cv_dlopen_self+:} false; then :
drh8b727472009-01-19 18:18:40 +00009543 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009544else
9545 if test "$cross_compiling" = yes; then :
9546 lt_cv_dlopen_self=cross
9547else
a.rottmann9bc8b932004-02-29 15:18:31 +00009548 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009549 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009550 cat > conftest.$ac_ext <<_LT_EOF
drh56c93112017-11-24 16:55:48 +00009551#line 9551 "configure"
drh71eb93e2001-09-28 01:34:43 +00009552#include "confdefs.h"
9553
9554#if HAVE_DLFCN_H
9555#include <dlfcn.h>
9556#endif
9557
9558#include <stdio.h>
9559
9560#ifdef RTLD_GLOBAL
9561# define LT_DLGLOBAL RTLD_GLOBAL
9562#else
9563# ifdef DL_GLOBAL
9564# define LT_DLGLOBAL DL_GLOBAL
9565# else
9566# define LT_DLGLOBAL 0
9567# endif
9568#endif
9569
9570/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9571 find out it does not work in some platform. */
9572#ifndef LT_DLLAZY_OR_NOW
9573# ifdef RTLD_LAZY
9574# define LT_DLLAZY_OR_NOW RTLD_LAZY
9575# else
9576# ifdef DL_LAZY
9577# define LT_DLLAZY_OR_NOW DL_LAZY
9578# else
9579# ifdef RTLD_NOW
9580# define LT_DLLAZY_OR_NOW RTLD_NOW
9581# else
9582# ifdef DL_NOW
9583# define LT_DLLAZY_OR_NOW DL_NOW
9584# else
9585# define LT_DLLAZY_OR_NOW 0
9586# endif
9587# endif
9588# endif
9589# endif
9590#endif
9591
drh71eb93e2001-09-28 01:34:43 +00009592void fnord() { int i=42;}
9593int main ()
9594{
9595 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9596 int status = $lt_dlunknown;
9597
9598 if (self)
9599 {
9600 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9601 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9602 /* dlclose (self); */
9603 }
vapier7f19c022007-02-17 14:46:31 +00009604 else
9605 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009606
vapier6acb2cf2009-01-28 04:46:28 +00009607 return status;
drh71eb93e2001-09-28 01:34:43 +00009608}
mlcreech636a9952008-05-05 22:52:56 +00009609_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009611 (eval $ac_link) 2>&5
9612 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9614 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009615 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009616 lt_status=$?
9617 case x$lt_status in
9618 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9619 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009620 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +00009621 esac
9622 else :
9623 # compilation failed
9624 lt_cv_dlopen_self=no
9625 fi
9626fi
9627rm -fr conftest*
9628
a.rottmann84e63352003-03-24 09:42:16 +00009629
drh71eb93e2001-09-28 01:34:43 +00009630fi
drhf922ca42015-05-14 15:39:18 +00009631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
drh8b727472009-01-19 18:18:40 +00009632$as_echo "$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009633
9634 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00009635 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00009636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009637$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009638if ${lt_cv_dlopen_self_static+:} false; then :
drh8b727472009-01-19 18:18:40 +00009639 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009640else
9641 if test "$cross_compiling" = yes; then :
9642 lt_cv_dlopen_self_static=cross
9643else
a.rottmann9bc8b932004-02-29 15:18:31 +00009644 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009645 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009646 cat > conftest.$ac_ext <<_LT_EOF
drh56c93112017-11-24 16:55:48 +00009647#line 9647 "configure"
drh71eb93e2001-09-28 01:34:43 +00009648#include "confdefs.h"
9649
9650#if HAVE_DLFCN_H
9651#include <dlfcn.h>
9652#endif
9653
9654#include <stdio.h>
9655
9656#ifdef RTLD_GLOBAL
9657# define LT_DLGLOBAL RTLD_GLOBAL
9658#else
9659# ifdef DL_GLOBAL
9660# define LT_DLGLOBAL DL_GLOBAL
9661# else
9662# define LT_DLGLOBAL 0
9663# endif
9664#endif
9665
9666/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9667 find out it does not work in some platform. */
9668#ifndef LT_DLLAZY_OR_NOW
9669# ifdef RTLD_LAZY
9670# define LT_DLLAZY_OR_NOW RTLD_LAZY
9671# else
9672# ifdef DL_LAZY
9673# define LT_DLLAZY_OR_NOW DL_LAZY
9674# else
9675# ifdef RTLD_NOW
9676# define LT_DLLAZY_OR_NOW RTLD_NOW
9677# else
9678# ifdef DL_NOW
9679# define LT_DLLAZY_OR_NOW DL_NOW
9680# else
9681# define LT_DLLAZY_OR_NOW 0
9682# endif
9683# endif
9684# endif
9685# endif
9686#endif
9687
drh71eb93e2001-09-28 01:34:43 +00009688void fnord() { int i=42;}
9689int main ()
9690{
9691 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9692 int status = $lt_dlunknown;
9693
9694 if (self)
9695 {
9696 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9697 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9698 /* dlclose (self); */
9699 }
vapier7f19c022007-02-17 14:46:31 +00009700 else
9701 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009702
vapier6acb2cf2009-01-28 04:46:28 +00009703 return status;
drh71eb93e2001-09-28 01:34:43 +00009704}
mlcreech636a9952008-05-05 22:52:56 +00009705_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009707 (eval $ac_link) 2>&5
9708 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9710 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009711 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009712 lt_status=$?
9713 case x$lt_status in
9714 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9715 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009716 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +00009717 esac
9718 else :
9719 # compilation failed
9720 lt_cv_dlopen_self_static=no
9721 fi
9722fi
9723rm -fr conftest*
9724
a.rottmann84e63352003-03-24 09:42:16 +00009725
drh71eb93e2001-09-28 01:34:43 +00009726fi
drhf922ca42015-05-14 15:39:18 +00009727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
drh8b727472009-01-19 18:18:40 +00009728$as_echo "$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009729 fi
9730
9731 CPPFLAGS="$save_CPPFLAGS"
9732 LDFLAGS="$save_LDFLAGS"
9733 LIBS="$save_LIBS"
9734 ;;
9735 esac
9736
9737 case $lt_cv_dlopen_self in
9738 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9739 *) enable_dlopen_self=unknown ;;
9740 esac
9741
9742 case $lt_cv_dlopen_self_static in
9743 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9744 *) enable_dlopen_self_static=unknown ;;
9745 esac
9746fi
9747
drh71eb93e2001-09-28 01:34:43 +00009748
drh71eb93e2001-09-28 01:34:43 +00009749
a.rottmann9bc8b932004-02-29 15:18:31 +00009750
a.rottmann9bc8b932004-02-29 15:18:31 +00009751
mlcreech636a9952008-05-05 22:52:56 +00009752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764striplib=
9765old_striplib=
drhf922ca42015-05-14 15:39:18 +00009766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
drh8b727472009-01-19 18:18:40 +00009767$as_echo_n "checking whether stripping libraries is possible... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009768if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9769 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9770 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
drhf922ca42015-05-14 15:39:18 +00009771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009772$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009773else
9774# FIXME - insert some real tests, host_os isn't really good enough
9775 case $host_os in
9776 darwin*)
9777 if test -n "$STRIP" ; then
9778 striplib="$STRIP -x"
9779 old_striplib="$STRIP -S"
drhf922ca42015-05-14 15:39:18 +00009780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009781$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009782 else
drhf922ca42015-05-14 15:39:18 +00009783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009784$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009785 fi
a.rottmann84e63352003-03-24 09:42:16 +00009786 ;;
mlcreech636a9952008-05-05 22:52:56 +00009787 *)
drhf922ca42015-05-14 15:39:18 +00009788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009789$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009790 ;;
9791 esac
mlcreech636a9952008-05-05 22:52:56 +00009792fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009793
a.rottmann9bc8b932004-02-29 15:18:31 +00009794
drh71eb93e2001-09-28 01:34:43 +00009795
drh71eb93e2001-09-28 01:34:43 +00009796
a.rottmann84e63352003-03-24 09:42:16 +00009797
drh71eb93e2001-09-28 01:34:43 +00009798
drh71eb93e2001-09-28 01:34:43 +00009799
a.rottmann9bc8b932004-02-29 15:18:31 +00009800
drh71eb93e2001-09-28 01:34:43 +00009801
drh71eb93e2001-09-28 01:34:43 +00009802
drh71eb93e2001-09-28 01:34:43 +00009803
drh71eb93e2001-09-28 01:34:43 +00009804
mlcreech636a9952008-05-05 22:52:56 +00009805 # Report which library types will actually be built
drhf922ca42015-05-14 15:39:18 +00009806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009807$as_echo_n "checking if libtool supports shared libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
drh8b727472009-01-19 18:18:40 +00009809$as_echo "$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009810
drhf922ca42015-05-14 15:39:18 +00009811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009812$as_echo_n "checking whether to build shared libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009813 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009814
mlcreech636a9952008-05-05 22:52:56 +00009815 # On AIX, shared libraries and static libraries use the same namespace, and
9816 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +00009817 case $host_os in
9818 aix3*)
vapier7f19c022007-02-17 14:46:31 +00009819 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +00009820 if test -n "$RANLIB"; then
9821 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9822 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +00009823 fi
9824 ;;
9825
mlcreech636a9952008-05-05 22:52:56 +00009826 aix[4-9]*)
9827 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9828 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009829 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009830 ;;
9831 esac
drhf922ca42015-05-14 15:39:18 +00009832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
drh8b727472009-01-19 18:18:40 +00009833$as_echo "$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009834
drhf922ca42015-05-14 15:39:18 +00009835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
drh8b727472009-01-19 18:18:40 +00009836$as_echo_n "checking whether to build static libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009837 # Make sure either enable_shared or enable_static is yes.
9838 test "$enable_shared" = yes || enable_static=yes
drhf922ca42015-05-14 15:39:18 +00009839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
drh8b727472009-01-19 18:18:40 +00009840$as_echo "$enable_static" >&6; }
vapier7f19c022007-02-17 14:46:31 +00009841
a.rottmann9bc8b932004-02-29 15:18:31 +00009842
a.rottmann9bc8b932004-02-29 15:18:31 +00009843
a.rottmann9bc8b932004-02-29 15:18:31 +00009844
vapier7f19c022007-02-17 14:46:31 +00009845fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009846ac_ext=c
9847ac_cpp='$CPP $CPPFLAGS'
9848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9850ac_compiler_gnu=$ac_cv_c_compiler_gnu
9851
9852CC="$lt_save_CC"
9853
a.rottmann9bc8b932004-02-29 15:18:31 +00009854
a.rottmann9bc8b932004-02-29 15:18:31 +00009855
9856
a.rottmann9bc8b932004-02-29 15:18:31 +00009857
a.rottmann9bc8b932004-02-29 15:18:31 +00009858
a.rottmann9bc8b932004-02-29 15:18:31 +00009859
a.rottmann9bc8b932004-02-29 15:18:31 +00009860
a.rottmann9bc8b932004-02-29 15:18:31 +00009861
a.rottmann9bc8b932004-02-29 15:18:31 +00009862
vapier7f19c022007-02-17 14:46:31 +00009863
a.rottmann9bc8b932004-02-29 15:18:31 +00009864
9865
drh8b727472009-01-19 18:18:40 +00009866 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +00009867
vapier7f19c022007-02-17 14:46:31 +00009868
9869
vapier7f19c022007-02-17 14:46:31 +00009870
mlcreech636a9952008-05-05 22:52:56 +00009871# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +00009872
9873
drh71eb93e2001-09-28 01:34:43 +00009874# Find a good install program. We prefer a C program (faster),
9875# so one script is as good as another. But avoid the broken or
9876# incompatible versions:
9877# SysV /etc/install, /usr/sbin/install
9878# SunOS /usr/etc/install
9879# IRIX /sbin/install
9880# AIX /bin/install
9881# AmigaOS /C/install, which installs bootblocks on floppy discs
9882# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9883# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9884# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +00009885# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +00009886# ./install, which can be erroneously created by make from ./install.sh.
drh8b727472009-01-19 18:18:40 +00009887# Reject install programs that cannot install multiple files.
drhf922ca42015-05-14 15:39:18 +00009888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
drh8b727472009-01-19 18:18:40 +00009889$as_echo_n "checking for a BSD-compatible install... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009890if test -z "$INSTALL"; then
drhf922ca42015-05-14 15:39:18 +00009891if ${ac_cv_path_install+:} false; then :
drh8b727472009-01-19 18:18:40 +00009892 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009893else
a.rottmann84e63352003-03-24 09:42:16 +00009894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9895for as_dir in $PATH
9896do
9897 IFS=$as_save_IFS
9898 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00009899 # Account for people who put trailing slashes in PATH elements.
9900case $as_dir/ in #((
9901 ./ | .// | /[cC]/* | \
a.rottmann84e63352003-03-24 09:42:16 +00009902 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
drhf922ca42015-05-14 15:39:18 +00009903 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
a.rottmann84e63352003-03-24 09:42:16 +00009904 /usr/ucb/* ) ;;
9905 *)
9906 # OSF1 and SCO ODT 3.0 have their own names for install.
9907 # Don't use installbsd from OSF since it installs stuff as root
9908 # by default.
9909 for ac_prog in ginstall scoinst install; do
9910 for ac_exec_ext in '' $ac_executable_extensions; do
drhf922ca42015-05-14 15:39:18 +00009911 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
a.rottmann964dbb12004-02-26 19:47:42 +00009912 if test $ac_prog = install &&
9913 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9914 # AIX install. It has an incompatible calling convention.
9915 :
9916 elif test $ac_prog = install &&
9917 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9918 # program-specific install script used by HP pwplus--don't use.
9919 :
9920 else
drh8b727472009-01-19 18:18:40 +00009921 rm -rf conftest.one conftest.two conftest.dir
9922 echo one > conftest.one
9923 echo two > conftest.two
9924 mkdir conftest.dir
9925 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9926 test -s conftest.one && test -s conftest.two &&
9927 test -s conftest.dir/conftest.one &&
9928 test -s conftest.dir/conftest.two
9929 then
9930 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9931 break 3
9932 fi
a.rottmann964dbb12004-02-26 19:47:42 +00009933 fi
9934 fi
drh71eb93e2001-09-28 01:34:43 +00009935 done
a.rottmann84e63352003-03-24 09:42:16 +00009936 done
9937 ;;
9938esac
a.rottmann84e63352003-03-24 09:42:16 +00009939
drhf922ca42015-05-14 15:39:18 +00009940 done
drh8b727472009-01-19 18:18:40 +00009941IFS=$as_save_IFS
9942
9943rm -rf conftest.one conftest.two conftest.dir
drh71eb93e2001-09-28 01:34:43 +00009944
9945fi
9946 if test "${ac_cv_path_install+set}" = set; then
9947 INSTALL=$ac_cv_path_install
9948 else
drh8b727472009-01-19 18:18:40 +00009949 # As a last resort, use the slow shell script. Don't cache a
9950 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +00009951 # break other packages using the cache if that directory is
drh8b727472009-01-19 18:18:40 +00009952 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +00009953 INSTALL=$ac_install_sh
9954 fi
9955fi
drhf922ca42015-05-14 15:39:18 +00009956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
drh8b727472009-01-19 18:18:40 +00009957$as_echo "$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009958
9959# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9960# It thinks the first close brace ends the variable substitution.
9961test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9962
9963test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9964
9965test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9966
a.rottmann84e63352003-03-24 09:42:16 +00009967
drh75897232000-05-29 14:26:00 +00009968#########
mlcreech636a9952008-05-05 22:52:56 +00009969# Enable large file support (if special flags are necessary)
9970#
drh8b727472009-01-19 18:18:40 +00009971# Check whether --enable-largefile was given.
drhf922ca42015-05-14 15:39:18 +00009972if test "${enable_largefile+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00009973 enableval=$enable_largefile;
9974fi
mlcreech636a9952008-05-05 22:52:56 +00009975
9976if test "$enable_largefile" != no; then
9977
drhf922ca42015-05-14 15:39:18 +00009978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
drh8b727472009-01-19 18:18:40 +00009979$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009980if ${ac_cv_sys_largefile_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00009981 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +00009982else
mlcreech636a9952008-05-05 22:52:56 +00009983 ac_cv_sys_largefile_CC=no
9984 if test "$GCC" != yes; then
9985 ac_save_CC=$CC
9986 while :; do
drh8b727472009-01-19 18:18:40 +00009987 # IRIX 6.2 and later do not support large files by default,
9988 # so use the C compiler's -n32 option if that helps.
drhf922ca42015-05-14 15:39:18 +00009989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009990/* end confdefs.h. */
9991#include <sys/types.h>
9992 /* Check that off_t can represent 2**63 - 1 correctly.
9993 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9994 since some C++ compilers masquerading as C compilers
9995 incorrectly reject 9223372036854775807. */
9996#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9997 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9998 && LARGE_OFF_T % 2147483647 == 1)
9999 ? 1 : -1];
10000int
10001main ()
10002{
10003
10004 ;
10005 return 0;
10006}
10007_ACEOF
drhf922ca42015-05-14 15:39:18 +000010008 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010009 break
mlcreech636a9952008-05-05 22:52:56 +000010010fi
drh8b727472009-01-19 18:18:40 +000010011rm -f core conftest.err conftest.$ac_objext
10012 CC="$CC -n32"
drhf922ca42015-05-14 15:39:18 +000010013 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010014 ac_cv_sys_largefile_CC=' -n32'; break
mlcreech636a9952008-05-05 22:52:56 +000010015fi
drh8b727472009-01-19 18:18:40 +000010016rm -f core conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +000010017 break
10018 done
10019 CC=$ac_save_CC
10020 rm -f conftest.$ac_ext
10021 fi
10022fi
drhf922ca42015-05-14 15:39:18 +000010023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
drh8b727472009-01-19 18:18:40 +000010024$as_echo "$ac_cv_sys_largefile_CC" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010025 if test "$ac_cv_sys_largefile_CC" != no; then
10026 CC=$CC$ac_cv_sys_largefile_CC
10027 fi
10028
drhf922ca42015-05-14 15:39:18 +000010029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010030$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010031if ${ac_cv_sys_file_offset_bits+:} false; then :
drh8b727472009-01-19 18:18:40 +000010032 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010033else
10034 while :; do
drhf922ca42015-05-14 15:39:18 +000010035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010036/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +000010037#include <sys/types.h>
10038 /* Check that off_t can represent 2**63 - 1 correctly.
10039 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10040 since some C++ compilers masquerading as C compilers
10041 incorrectly reject 9223372036854775807. */
10042#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10043 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10044 && LARGE_OFF_T % 2147483647 == 1)
10045 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +000010046int
10047main ()
10048{
mlcreech636a9952008-05-05 22:52:56 +000010049
mlcreechb87057f2008-03-06 07:19:20 +000010050 ;
10051 return 0;
10052}
10053_ACEOF
drhf922ca42015-05-14 15:39:18 +000010054if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010055 ac_cv_sys_file_offset_bits=no; break
mlcreech636a9952008-05-05 22:52:56 +000010056fi
drh8b727472009-01-19 18:18:40 +000010057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010059/* end confdefs.h. */
10060#define _FILE_OFFSET_BITS 64
10061#include <sys/types.h>
10062 /* Check that off_t can represent 2**63 - 1 correctly.
10063 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10064 since some C++ compilers masquerading as C compilers
10065 incorrectly reject 9223372036854775807. */
10066#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10067 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10068 && LARGE_OFF_T % 2147483647 == 1)
10069 ? 1 : -1];
10070int
10071main ()
10072{
10073
10074 ;
10075 return 0;
10076}
10077_ACEOF
drhf922ca42015-05-14 15:39:18 +000010078if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010079 ac_cv_sys_file_offset_bits=64; break
mlcreech636a9952008-05-05 22:52:56 +000010080fi
drh8b727472009-01-19 18:18:40 +000010081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10082 ac_cv_sys_file_offset_bits=unknown
mlcreech636a9952008-05-05 22:52:56 +000010083 break
10084done
10085fi
drhf922ca42015-05-14 15:39:18 +000010086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
drh8b727472009-01-19 18:18:40 +000010087$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10088case $ac_cv_sys_file_offset_bits in #(
10089 no | unknown) ;;
10090 *)
mlcreech636a9952008-05-05 22:52:56 +000010091cat >>confdefs.h <<_ACEOF
10092#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10093_ACEOF
drh8b727472009-01-19 18:18:40 +000010094;;
10095esac
10096rm -rf conftest*
10097 if test $ac_cv_sys_file_offset_bits = unknown; then
drhf922ca42015-05-14 15:39:18 +000010098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010099$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010100if ${ac_cv_sys_large_files+:} false; then :
drh8b727472009-01-19 18:18:40 +000010101 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010102else
10103 while :; do
drhf922ca42015-05-14 15:39:18 +000010104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010105/* end confdefs.h. */
10106#include <sys/types.h>
10107 /* Check that off_t can represent 2**63 - 1 correctly.
10108 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10109 since some C++ compilers masquerading as C compilers
10110 incorrectly reject 9223372036854775807. */
10111#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10112 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10113 && LARGE_OFF_T % 2147483647 == 1)
10114 ? 1 : -1];
10115int
10116main ()
10117{
10118
10119 ;
10120 return 0;
10121}
10122_ACEOF
drhf922ca42015-05-14 15:39:18 +000010123if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010124 ac_cv_sys_large_files=no; break
mlcreech636a9952008-05-05 22:52:56 +000010125fi
drh8b727472009-01-19 18:18:40 +000010126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010128/* end confdefs.h. */
10129#define _LARGE_FILES 1
10130#include <sys/types.h>
10131 /* Check that off_t can represent 2**63 - 1 correctly.
10132 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10133 since some C++ compilers masquerading as C compilers
10134 incorrectly reject 9223372036854775807. */
10135#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10136 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10137 && LARGE_OFF_T % 2147483647 == 1)
10138 ? 1 : -1];
10139int
10140main ()
10141{
10142
10143 ;
10144 return 0;
10145}
10146_ACEOF
drhf922ca42015-05-14 15:39:18 +000010147if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010148 ac_cv_sys_large_files=1; break
mlcreech636a9952008-05-05 22:52:56 +000010149fi
drh8b727472009-01-19 18:18:40 +000010150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10151 ac_cv_sys_large_files=unknown
mlcreech636a9952008-05-05 22:52:56 +000010152 break
10153done
10154fi
drhf922ca42015-05-14 15:39:18 +000010155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
drh8b727472009-01-19 18:18:40 +000010156$as_echo "$ac_cv_sys_large_files" >&6; }
10157case $ac_cv_sys_large_files in #(
10158 no | unknown) ;;
10159 *)
mlcreech636a9952008-05-05 22:52:56 +000010160cat >>confdefs.h <<_ACEOF
10161#define _LARGE_FILES $ac_cv_sys_large_files
10162_ACEOF
drh8b727472009-01-19 18:18:40 +000010163;;
10164esac
10165rm -rf conftest*
10166 fi
drhf922ca42015-05-14 15:39:18 +000010167
10168
mlcreech636a9952008-05-05 22:52:56 +000010169fi
10170
10171
10172#########
10173# Check for needed/wanted data types
drhf922ca42015-05-14 15:39:18 +000010174ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10175if test "x$ac_cv_type_int8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010176
10177cat >>confdefs.h <<_ACEOF
10178#define HAVE_INT8_T 1
10179_ACEOF
10180
10181
10182fi
drhf922ca42015-05-14 15:39:18 +000010183ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10184if test "x$ac_cv_type_int16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010185
10186cat >>confdefs.h <<_ACEOF
10187#define HAVE_INT16_T 1
10188_ACEOF
10189
10190
10191fi
drhf922ca42015-05-14 15:39:18 +000010192ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10193if test "x$ac_cv_type_int32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010194
10195cat >>confdefs.h <<_ACEOF
10196#define HAVE_INT32_T 1
10197_ACEOF
10198
10199
10200fi
drhf922ca42015-05-14 15:39:18 +000010201ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10202if test "x$ac_cv_type_int64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010203
10204cat >>confdefs.h <<_ACEOF
10205#define HAVE_INT64_T 1
10206_ACEOF
10207
10208
10209fi
drhf922ca42015-05-14 15:39:18 +000010210ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10211if test "x$ac_cv_type_intptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010212
10213cat >>confdefs.h <<_ACEOF
10214#define HAVE_INTPTR_T 1
10215_ACEOF
10216
10217
10218fi
drhf922ca42015-05-14 15:39:18 +000010219ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10220if test "x$ac_cv_type_uint8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010221
10222cat >>confdefs.h <<_ACEOF
10223#define HAVE_UINT8_T 1
10224_ACEOF
10225
10226
10227fi
drhf922ca42015-05-14 15:39:18 +000010228ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10229if test "x$ac_cv_type_uint16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010230
10231cat >>confdefs.h <<_ACEOF
10232#define HAVE_UINT16_T 1
10233_ACEOF
10234
10235
10236fi
drhf922ca42015-05-14 15:39:18 +000010237ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10238if test "x$ac_cv_type_uint32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010239
10240cat >>confdefs.h <<_ACEOF
10241#define HAVE_UINT32_T 1
10242_ACEOF
10243
10244
10245fi
drhf922ca42015-05-14 15:39:18 +000010246ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10247if test "x$ac_cv_type_uint64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010248
10249cat >>confdefs.h <<_ACEOF
10250#define HAVE_UINT64_T 1
10251_ACEOF
10252
10253
10254fi
drhf922ca42015-05-14 15:39:18 +000010255ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10256if test "x$ac_cv_type_uintptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010257
10258cat >>confdefs.h <<_ACEOF
10259#define HAVE_UINTPTR_T 1
10260_ACEOF
10261
10262
10263fi
mlcreechb87057f2008-03-06 07:19:20 +000010264
10265
10266#########
10267# Check for needed/wanted headers
drh86c5a932012-02-08 12:13:28 +000010268for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
drhf922ca42015-05-14 15:39:18 +000010269do :
10270 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10271ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10272if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
mlcreechb87057f2008-03-06 07:19:20 +000010273 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010274#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000010275_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000010276
mlcreechb87057f2008-03-06 07:19:20 +000010277fi
10278
10279done
10280
10281
10282#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000010283# Figure out whether or not we have these functions
10284#
drhe32a2562016-03-04 02:38:00 +000010285for 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 +000010286do :
10287 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10288ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10289if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
mlcreech5b0a9eb2008-03-09 01:38:09 +000010290 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010291#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000010292_ACEOF
10293
10294fi
10295done
10296
10297
mlcreechab1c47b2008-03-09 02:51:10 +000010298#########
mlcreechf3868112008-03-11 18:03:30 +000010299# By default, we use the amalgamation (this may be changed below...)
10300#
10301USE_AMALGAMATION=1
10302
10303#########
mlcreechab1c47b2008-03-09 02:51:10 +000010304# See whether we can run specific tclsh versions known to work well;
10305# if not, then we fall back to plain tclsh.
10306# TODO: try other versions before falling back?
10307#
drh0b11bcb2017-09-22 00:24:44 +000010308for ac_prog in tclsh8.7 tclsh8.6 tclsh8.5 tclsh
mlcreechab1c47b2008-03-09 02:51:10 +000010309do
10310 # Extract the first word of "$ac_prog", so it can be a program name with args.
10311set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010313$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010314if ${ac_cv_prog_TCLSH_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +000010315 $as_echo_n "(cached) " >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010316else
10317 if test -n "$TCLSH_CMD"; then
10318 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10319else
10320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10321for as_dir in $PATH
10322do
10323 IFS=$as_save_IFS
10324 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010325 for ac_exec_ext in '' $ac_executable_extensions; do
10326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreechab1c47b2008-03-09 02:51:10 +000010327 ac_cv_prog_TCLSH_CMD="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000010329 break 2
10330 fi
10331done
drhf922ca42015-05-14 15:39:18 +000010332 done
drh8b727472009-01-19 18:18:40 +000010333IFS=$as_save_IFS
mlcreechab1c47b2008-03-09 02:51:10 +000010334
10335fi
10336fi
10337TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10338if test -n "$TCLSH_CMD"; then
drhf922ca42015-05-14 15:39:18 +000010339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
drh8b727472009-01-19 18:18:40 +000010340$as_echo "$TCLSH_CMD" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010341else
drhf922ca42015-05-14 15:39:18 +000010342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010343$as_echo "no" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010344fi
10345
drh8b727472009-01-19 18:18:40 +000010346
mlcreechab1c47b2008-03-09 02:51:10 +000010347 test -n "$TCLSH_CMD" && break
10348done
mlcreechf3868112008-03-11 18:03:30 +000010349test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000010350
mlcreechf3868112008-03-11 18:03:30 +000010351if test "$TCLSH_CMD" = "none"; then
10352 # If we can't find a local tclsh, then building the amalgamation will fail.
10353 # We act as though --disable-amalgamation has been used.
10354 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10355 USE_AMALGAMATION=0
10356 TCLSH_CMD="tclsh"
10357fi
mlcreechab1c47b2008-03-09 02:51:10 +000010358
10359
mlcreech5b0a9eb2008-03-09 01:38:09 +000010360
vapier6acb2cf2009-01-28 04:46:28 +000010361if test "x${TCLLIBDIR+set}" != "xset" ; then
10362 TCLLIBDIR='$(libdir)'
10363 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10364 TCLLIBDIR=$i
10365 break
10366 done
10367 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10368fi
10369
10370
mlcreech5b0a9eb2008-03-09 01:38:09 +000010371#########
drh75897232000-05-29 14:26:00 +000010372# Set up an appropriate program prefix
10373#
10374if test "$program_prefix" = "NONE"; then
10375 program_prefix=""
10376fi
10377
a.rottmann84e63352003-03-24 09:42:16 +000010378
drh4b2266a2004-11-27 15:52:16 +000010379VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
drhf922ca42015-05-14 15:39:18 +000010380{ $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010381$as_echo "$as_me: Version set to $VERSION" >&6;}
drh4b2266a2004-11-27 15:52:16 +000010382
10383RELEASE=`cat $srcdir/VERSION`
drhf922ca42015-05-14 15:39:18 +000010384{ $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010385$as_echo "$as_me: Release set to $RELEASE" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010386
vapier6acb2cf2009-01-28 04:46:28 +000010387VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000010388 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000010389 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
drhf922ca42015-05-14 15:39:18 +000010390{ $as_echo "$as_me:${as_lineno-$LINENO}: Version number set to $VERSION_NUMBER" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010391$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010392
drh26d0e2a2005-07-06 13:51:27 +000010393
drh75897232000-05-29 14:26:00 +000010394#########
drh75897232000-05-29 14:26:00 +000010395# Locate a compiler for the build machine. This compiler should
10396# generate command-line programs that run on the build machine.
10397#
vapier7f19c022007-02-17 14:46:31 +000010398if test x"$cross_compiling" = xno; then
10399 BUILD_CC=$CC
10400 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000010401else
vapier7f19c022007-02-17 14:46:31 +000010402 if test "${BUILD_CC+set}" != set; then
10403 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000010404do
10405 # Extract the first word of "$ac_prog", so it can be a program name with args.
10406set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010408$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010409if ${ac_cv_prog_BUILD_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +000010410 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010411else
vapier7f19c022007-02-17 14:46:31 +000010412 if test -n "$BUILD_CC"; then
10413 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000010414else
a.rottmann84e63352003-03-24 09:42:16 +000010415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10416for as_dir in $PATH
10417do
10418 IFS=$as_save_IFS
10419 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010420 for ac_exec_ext in '' $ac_executable_extensions; do
10421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier7f19c022007-02-17 14:46:31 +000010422 ac_cv_prog_BUILD_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000010424 break 2
10425 fi
10426done
drhf922ca42015-05-14 15:39:18 +000010427 done
drh8b727472009-01-19 18:18:40 +000010428IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000010429
drh71eb93e2001-09-28 01:34:43 +000010430fi
10431fi
vapier7f19c022007-02-17 14:46:31 +000010432BUILD_CC=$ac_cv_prog_BUILD_CC
10433if test -n "$BUILD_CC"; then
drhf922ca42015-05-14 15:39:18 +000010434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
drh8b727472009-01-19 18:18:40 +000010435$as_echo "$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010436else
drhf922ca42015-05-14 15:39:18 +000010437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010438$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010439fi
drh75897232000-05-29 14:26:00 +000010440
drh8b727472009-01-19 18:18:40 +000010441
vapier7f19c022007-02-17 14:46:31 +000010442 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000010443done
drh75897232000-05-29 14:26:00 +000010444
vapier7f19c022007-02-17 14:46:31 +000010445 fi
10446 if test "${BUILD_CFLAGS+set}" != set; then
10447 BUILD_CFLAGS="-g"
10448 fi
drh71eb93e2001-09-28 01:34:43 +000010449fi
10450
a.rottmann84e63352003-03-24 09:42:16 +000010451
drh297ecf12001-04-05 15:57:13 +000010452##########
dougcurrie0f290bf2004-06-21 18:57:29 +000010453# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000010454#
drh8b727472009-01-19 18:18:40 +000010455# Check whether --enable-threadsafe was given.
drhf922ca42015-05-14 15:39:18 +000010456if test "${enable_threadsafe+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010457 enableval=$enable_threadsafe;
drh297ecf12001-04-05 15:57:13 +000010458else
drh5a3032b2007-09-03 16:12:09 +000010459 enable_threadsafe=yes
drh8b727472009-01-19 18:18:40 +000010460fi
10461
drhf922ca42015-05-14 15:39:18 +000010462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
drh8b727472009-01-19 18:18:40 +000010463$as_echo_n "checking whether to support threadsafe operation... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010464if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000010465 SQLITE_THREADSAFE=0
drhf922ca42015-05-14 15:39:18 +000010466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010467$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010468else
drh5a3032b2007-09-03 16:12:09 +000010469 SQLITE_THREADSAFE=1
drhf922ca42015-05-14 15:39:18 +000010470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010471$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010472fi
10473
a.rottmann964dbb12004-02-26 19:47:42 +000010474
drh5a3032b2007-09-03 16:12:09 +000010475if test "$SQLITE_THREADSAFE" = "1"; then
drhba60fbb2016-01-28 02:47:32 +000010476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10477$as_echo_n "checking for library containing pthread_create... " >&6; }
10478if ${ac_cv_search_pthread_create+:} false; then :
10479 $as_echo_n "(cached) " >&6
10480else
10481 ac_func_search_save_LIBS=$LIBS
10482cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10483/* end confdefs.h. */
10484
10485/* Override any GCC internal prototype to avoid an error.
10486 Use char because int might match the return type of a GCC
10487 builtin and then its argument prototype would still apply. */
10488#ifdef __cplusplus
10489extern "C"
10490#endif
10491char pthread_create ();
10492int
10493main ()
10494{
10495return pthread_create ();
10496 ;
10497 return 0;
10498}
10499_ACEOF
10500for ac_lib in '' pthread; do
10501 if test -z "$ac_lib"; then
10502 ac_res="none required"
10503 else
10504 ac_res=-l$ac_lib
10505 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10506 fi
10507 if ac_fn_c_try_link "$LINENO"; then :
10508 ac_cv_search_pthread_create=$ac_res
10509fi
10510rm -f core conftest.err conftest.$ac_objext \
10511 conftest$ac_exeext
10512 if ${ac_cv_search_pthread_create+:} false; then :
10513 break
10514fi
10515done
10516if ${ac_cv_search_pthread_create+:} false; then :
10517
10518else
10519 ac_cv_search_pthread_create=no
10520fi
10521rm conftest.$ac_ext
10522LIBS=$ac_func_search_save_LIBS
10523fi
10524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10525$as_echo "$ac_cv_search_pthread_create" >&6; }
10526ac_res=$ac_cv_search_pthread_create
10527if test "$ac_res" != no; then :
10528 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10529
10530fi
10531
drh13c808a2016-01-13 21:23:48 +000010532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
10533$as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
10534if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drh8b727472009-01-19 18:18:40 +000010535 $as_echo_n "(cached) " >&6
dougcurrie65623c72004-09-20 14:57:23 +000010536else
mlcreechc658b0f2008-03-09 02:20:11 +000010537 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000010538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dougcurrie65623c72004-09-20 14:57:23 +000010539/* end confdefs.h. */
10540
drh8b727472009-01-19 18:18:40 +000010541/* Override any GCC internal prototype to avoid an error.
10542 Use char because int might match the return type of a GCC
10543 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000010544#ifdef __cplusplus
10545extern "C"
10546#endif
drh13c808a2016-01-13 21:23:48 +000010547char pthread_mutexattr_init ();
dougcurrie65623c72004-09-20 14:57:23 +000010548int
10549main ()
10550{
drh13c808a2016-01-13 21:23:48 +000010551return pthread_mutexattr_init ();
dougcurrie65623c72004-09-20 14:57:23 +000010552 ;
10553 return 0;
10554}
10555_ACEOF
drh8b727472009-01-19 18:18:40 +000010556for ac_lib in '' pthread; do
10557 if test -z "$ac_lib"; then
10558 ac_res="none required"
10559 else
10560 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000010561 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000010562 fi
drhf922ca42015-05-14 15:39:18 +000010563 if ac_fn_c_try_link "$LINENO"; then :
drh13c808a2016-01-13 21:23:48 +000010564 ac_cv_search_pthread_mutexattr_init=$ac_res
mlcreechc658b0f2008-03-09 02:20:11 +000010565fi
drhf922ca42015-05-14 15:39:18 +000010566rm -f core conftest.err conftest.$ac_objext \
10567 conftest$ac_exeext
drh13c808a2016-01-13 21:23:48 +000010568 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drh8b727472009-01-19 18:18:40 +000010569 break
drh866108f2008-05-13 00:57:21 +000010570fi
drh8b727472009-01-19 18:18:40 +000010571done
drh13c808a2016-01-13 21:23:48 +000010572if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drhf922ca42015-05-14 15:39:18 +000010573
drh8b727472009-01-19 18:18:40 +000010574else
drh13c808a2016-01-13 21:23:48 +000010575 ac_cv_search_pthread_mutexattr_init=no
drh8b727472009-01-19 18:18:40 +000010576fi
10577rm conftest.$ac_ext
mlcreechc658b0f2008-03-09 02:20:11 +000010578LIBS=$ac_func_search_save_LIBS
10579fi
drh13c808a2016-01-13 21:23:48 +000010580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
10581$as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
10582ac_res=$ac_cv_search_pthread_mutexattr_init
drhf922ca42015-05-14 15:39:18 +000010583if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000010584 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000010585
dougcurrie65623c72004-09-20 14:57:23 +000010586fi
10587
mlcreechc658b0f2008-03-09 02:20:11 +000010588fi
dougcurrie65623c72004-09-20 14:57:23 +000010589
xdong28f79f72003-09-23 00:35:21 +000010590##########
10591# Do we want to support release
10592#
drh8b727472009-01-19 18:18:40 +000010593# Check whether --enable-releasemode was given.
drhf922ca42015-05-14 15:39:18 +000010594if test "${enable_releasemode+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010595 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000010596else
10597 enable_releasemode=no
drh8b727472009-01-19 18:18:40 +000010598fi
10599
drhf922ca42015-05-14 15:39:18 +000010600{ $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 +000010601$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
xdong28f79f72003-09-23 00:35:21 +000010602if test "$enable_releasemode" = "no"; then
10603 ALLOWRELEASE=""
drhf922ca42015-05-14 15:39:18 +000010604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010605$as_echo "no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010606else
drh0b47d342007-11-27 14:50:06 +000010607 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
drhf922ca42015-05-14 15:39:18 +000010608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010609$as_echo "yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010610fi
paulb0208cc2003-04-13 18:26:49 +000010611
a.rottmann964dbb12004-02-26 19:47:42 +000010612
paulb0208cc2003-04-13 18:26:49 +000010613##########
10614# Do we want temporary databases in memory
10615#
drh8b727472009-01-19 18:18:40 +000010616# Check whether --enable-tempstore was given.
drhf922ca42015-05-14 15:39:18 +000010617if test "${enable_tempstore+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010618 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000010619else
drh54414bb2005-10-10 00:05:50 +000010620 enable_tempstore=no
drh8b727472009-01-19 18:18:40 +000010621fi
10622
drhf922ca42015-05-14 15:39:18 +000010623{ $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 +000010624$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010625case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000010626 never )
paul2dc96f92003-04-20 11:46:34 +000010627 TEMP_STORE=0
drhf922ca42015-05-14 15:39:18 +000010628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
drh8b727472009-01-19 18:18:40 +000010629$as_echo "never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010630 ;;
10631 no )
paul2dc96f92003-04-20 11:46:34 +000010632 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010634$as_echo "no" >&6; }
10635 ;;
10636 yes )
10637 TEMP_STORE=2
drhf922ca42015-05-14 15:39:18 +000010638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010639$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010640 ;;
10641 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000010642 TEMP_STORE=3
drhf922ca42015-05-14 15:39:18 +000010643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
drh8b727472009-01-19 18:18:40 +000010644$as_echo "always" >&6; }
drh54414bb2005-10-10 00:05:50 +000010645 ;;
paulb0208cc2003-04-13 18:26:49 +000010646 * )
drh54414bb2005-10-10 00:05:50 +000010647 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010649$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010650 ;;
10651esac
10652
10653
10654
drh75897232000-05-29 14:26:00 +000010655###########
10656# Lots of things are different if we are compiling for Windows using
10657# the CYGWIN environment. So check for that special case and handle
10658# things accordingly.
10659#
drhf922ca42015-05-14 15:39:18 +000010660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
drh8b727472009-01-19 18:18:40 +000010661$as_echo_n "checking if executables have the .exe suffix... " >&6; }
drh75897232000-05-29 14:26:00 +000010662if test "$config_BUILD_EXEEXT" = ".exe"; then
10663 CYGWIN=yes
drhf922ca42015-05-14 15:39:18 +000010664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010665$as_echo "yes" >&6; }
drh75897232000-05-29 14:26:00 +000010666else
drhf922ca42015-05-14 15:39:18 +000010667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
drh8b727472009-01-19 18:18:40 +000010668$as_echo "unknown" >&6; }
drh75897232000-05-29 14:26:00 +000010669fi
10670if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000010671
10672case $host_os in
drh71eb93e2001-09-28 01:34:43 +000010673 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000010674 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000010675esac
drh75897232000-05-29 14:26:00 +000010676
drh75897232000-05-29 14:26:00 +000010677fi
10678if test "$CYGWIN" = "yes"; then
10679 BUILD_EXEEXT=.exe
10680else
dougcurrie6194a5f2003-12-19 20:09:51 +000010681 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000010682fi
vapier7f19c022007-02-17 14:46:31 +000010683if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000010684 TARGET_EXEEXT=$BUILD_EXEEXT
10685else
10686 TARGET_EXEEXT=$config_TARGET_EXEEXT
10687fi
10688if test "$TARGET_EXEEXT" = ".exe"; then
mistachkinfe27b082013-08-28 18:06:26 +000010689 SQLITE_OS_UNIX=0
10690 SQLITE_OS_WIN=1
10691 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh75897232000-05-29 14:26:00 +000010692else
danielk197729bafea2008-06-26 10:41:19 +000010693 SQLITE_OS_UNIX=1
10694 SQLITE_OS_WIN=0
danielk197729bafea2008-06-26 10:41:19 +000010695 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000010696fi
drh75897232000-05-29 14:26:00 +000010697
a.rottmann84e63352003-03-24 09:42:16 +000010698
10699
10700
10701
10702
drh75897232000-05-29 14:26:00 +000010703##########
drh7b5717e2004-11-25 13:50:01 +000010704# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000010705#
drh7b5717e2004-11-25 13:50:01 +000010706# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10707# macros in the in the tcl.m4 file of the standard TCL distribution.
10708# Those macros could not be used directly since we have to make some
10709# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000010710#
drh8b727472009-01-19 18:18:40 +000010711# Check whether --enable-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010712if test "${enable_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010713 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000010714else
drh7b5717e2004-11-25 13:50:01 +000010715 use_tcl=yes
drh8b727472009-01-19 18:18:40 +000010716fi
10717
drh7b5717e2004-11-25 13:50:01 +000010718if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000010719
drh8b727472009-01-19 18:18:40 +000010720# Check whether --with-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010721if test "${with_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010722 withval=$with_tcl; with_tclconfig=${withval}
10723fi
10724
drhf922ca42015-05-14 15:39:18 +000010725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
drh8b727472009-01-19 18:18:40 +000010726$as_echo_n "checking for Tcl configuration... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010727 if ${ac_cv_c_tclconfig+:} false; then :
drh8b727472009-01-19 18:18:40 +000010728 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000010729else
a.rottmann84e63352003-03-24 09:42:16 +000010730
drh7b5717e2004-11-25 13:50:01 +000010731 # First check to see if --with-tcl was specified.
10732 if test x"${with_tclconfig}" != x ; then
10733 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10734 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10735 else
drhf922ca42015-05-14 15:39:18 +000010736 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
drh7b5717e2004-11-25 13:50:01 +000010737 fi
10738 fi
vapier6acb2cf2009-01-28 04:46:28 +000010739
10740 # Start autosearch by asking tclsh
drhe74f4652012-08-15 16:06:54 +000010741 if test x"${ac_cv_c_tclconfig}" = x ; then
10742 if test x"$cross_compiling" = xno; then
10743 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10744 do
10745 if test -f "$i/tclConfig.sh" ; then
10746 ac_cv_c_tclconfig="$i"
10747 break
10748 fi
10749 done
10750 fi
vapier6acb2cf2009-01-28 04:46:28 +000010751 fi
10752
drhf960a642015-05-30 22:57:49 +000010753 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
10754 # So try again after applying corrections.
10755 if test x"${ac_cv_c_tclconfig}" = x ; then
10756 if test x"$cross_compiling" = xno; then
10757 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
10758 do
10759 if test -f "$i/tclConfig.sh" ; then
10760 ac_cv_c_tclconfig="$i"
10761 break
10762 fi
10763 done
10764 fi
10765 fi
10766
drh68314742016-05-23 00:10:58 +000010767 # Recent versions of Xcode on Macs hid the tclConfig.sh file
10768 # in a strange place.
10769 if test x"${ac_cv_c_tclconfig}" = x ; then
10770 if test x"$cross_compiling" = xno; then
10771 for i in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.sdk/usr/lib
10772 do
10773 if test -f "$i/tclConfig.sh" ; then
10774 ac_cv_c_tclconfig="$i"
10775 break
10776 fi
10777 done
10778 fi
10779 fi
10780
drh7b5717e2004-11-25 13:50:01 +000010781 # then check for a private Tcl installation
10782 if test x"${ac_cv_c_tclconfig}" = x ; then
10783 for i in \
10784 ../tcl \
10785 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10786 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10787 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10788 ../../tcl \
10789 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10790 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10791 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10792 ../../../tcl \
10793 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10794 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10795 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10796 do
10797 if test -f "$i/unix/tclConfig.sh" ; then
10798 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10799 break
10800 fi
10801 done
10802 fi
10803
10804 # check in a few common install locations
10805 if test x"${ac_cv_c_tclconfig}" = x ; then
10806 for i in \
10807 `ls -d ${libdir} 2>/dev/null` \
10808 `ls -d /usr/local/lib 2>/dev/null` \
10809 `ls -d /usr/contrib/lib 2>/dev/null` \
10810 `ls -d /usr/lib 2>/dev/null`
10811 do
10812 if test -f "$i/tclConfig.sh" ; then
10813 ac_cv_c_tclconfig=`(cd $i; pwd)`
10814 break
10815 fi
10816 done
10817 fi
10818
10819 # check in a few other private locations
10820 if test x"${ac_cv_c_tclconfig}" = x ; then
10821 for i in \
10822 ${srcdir}/../tcl \
10823 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10824 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10825 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10826 do
10827 if test -f "$i/unix/tclConfig.sh" ; then
10828 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10829 break
10830 fi
10831 done
10832 fi
10833
drh75897232000-05-29 14:26:00 +000010834fi
10835
drh7b5717e2004-11-25 13:50:01 +000010836
10837 if test x"${ac_cv_c_tclconfig}" = x ; then
10838 use_tcl=no
drhf922ca42015-05-14 15:39:18 +000010839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
drh8b727472009-01-19 18:18:40 +000010840$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
drhf922ca42015-05-14 15:39:18 +000010841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
drh8b727472009-01-19 18:18:40 +000010842$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
drhf922ca42015-05-14 15:39:18 +000010843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
drh8b727472009-01-19 18:18:40 +000010844$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000010845 else
10846 TCL_BIN_DIR=${ac_cv_c_tclconfig}
drhf922ca42015-05-14 15:39:18 +000010847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010848$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010849
drhf922ca42015-05-14 15:39:18 +000010850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010851$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000010852 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
drhf922ca42015-05-14 15:39:18 +000010853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
drh8b727472009-01-19 18:18:40 +000010854$as_echo "loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010855 . $TCL_BIN_DIR/tclConfig.sh
10856 else
drhf922ca42015-05-14 15:39:18 +000010857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
drh8b727472009-01-19 18:18:40 +000010858$as_echo "file not found" >&6; }
drh75897232000-05-29 14:26:00 +000010859 fi
drh7b5717e2004-11-25 13:50:01 +000010860
10861 #
10862 # If the TCL_BIN_DIR is the build directory (not the install directory),
10863 # then set the common variable name to the value of the build variables.
10864 # For example, the variable TCL_LIB_SPEC will be set to the value
10865 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10866 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10867 # installed and uninstalled version of Tcl.
10868 #
10869
mlcreechab1c47b2008-03-09 02:51:10 +000010870 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000010871 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10872 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10873 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10874 fi
10875
10876 #
10877 # eval is required to do the TCL_DBGX substitution
10878 #
10879
10880 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10881 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10882 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10883
10884 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10885 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10886 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
drhd881ce82015-03-31 17:01:52 +000010900
drh7b5717e2004-11-25 13:50:01 +000010901 fi
drh75897232000-05-29 14:26:00 +000010902fi
drh7b5717e2004-11-25 13:50:01 +000010903if test "${use_tcl}" = "no" ; then
10904 HAVE_TCL=""
10905else
10906 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000010907fi
drh75897232000-05-29 14:26:00 +000010908
a.rottmann84e63352003-03-24 09:42:16 +000010909
drh75897232000-05-29 14:26:00 +000010910##########
10911# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000010912# that use "readline()" library.
10913#
vapier7f19c022007-02-17 14:46:31 +000010914TARGET_READLINE_LIBS=""
10915TARGET_READLINE_INC=""
10916TARGET_HAVE_READLINE=0
drhe44b8352015-10-30 14:25:57 +000010917TARGET_HAVE_EDITLINE=0
10918# Check whether --enable-editline was given.
10919if test "${enable_editline+set}" = set; then :
10920 enableval=$enable_editline; with_editline=$enableval
10921else
10922 with_editline=auto
10923fi
10924
drh8b727472009-01-19 18:18:40 +000010925# Check whether --enable-readline was given.
drhf922ca42015-05-14 15:39:18 +000010926if test "${enable_readline+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010927 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000010928else
vapier7f19c022007-02-17 14:46:31 +000010929 with_readline=auto
drh8b727472009-01-19 18:18:40 +000010930fi
10931
vapier7f19c022007-02-17 14:46:31 +000010932
drhe44b8352015-10-30 14:25:57 +000010933if test x"$with_editline" != xno; then
10934 sLIBS=$LIBS
10935 LIBS=""
10936 TARGET_HAVE_EDITLINE=1
10937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
10938$as_echo_n "checking for library containing readline... " >&6; }
10939if ${ac_cv_search_readline+:} false; then :
10940 $as_echo_n "(cached) " >&6
10941else
10942 ac_func_search_save_LIBS=$LIBS
10943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10944/* end confdefs.h. */
10945
10946/* Override any GCC internal prototype to avoid an error.
10947 Use char because int might match the return type of a GCC
10948 builtin and then its argument prototype would still apply. */
10949#ifdef __cplusplus
10950extern "C"
10951#endif
10952char readline ();
10953int
10954main ()
10955{
10956return readline ();
10957 ;
10958 return 0;
10959}
10960_ACEOF
10961for ac_lib in '' edit; do
10962 if test -z "$ac_lib"; then
10963 ac_res="none required"
10964 else
10965 ac_res=-l$ac_lib
10966 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10967 fi
10968 if ac_fn_c_try_link "$LINENO"; then :
10969 ac_cv_search_readline=$ac_res
10970fi
10971rm -f core conftest.err conftest.$ac_objext \
10972 conftest$ac_exeext
10973 if ${ac_cv_search_readline+:} false; then :
10974 break
10975fi
10976done
10977if ${ac_cv_search_readline+:} false; then :
10978
10979else
10980 ac_cv_search_readline=no
10981fi
10982rm conftest.$ac_ext
10983LIBS=$ac_func_search_save_LIBS
10984fi
10985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
10986$as_echo "$ac_cv_search_readline" >&6; }
10987ac_res=$ac_cv_search_readline
10988if test "$ac_res" != no; then :
10989 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10990 with_readline=no
10991else
10992 TARGET_HAVE_EDITLINE=0
10993fi
10994
10995 TARGET_READLINE_LIBS=$LIBS
10996 LIBS=$sLIBS
10997fi
vapier7f19c022007-02-17 14:46:31 +000010998if test x"$with_readline" != xno; then
10999 found="yes"
11000
11001
drh8b727472009-01-19 18:18:40 +000011002# Check whether --with-readline-lib was given.
drhf922ca42015-05-14 15:39:18 +000011003if test "${with_readline_lib+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011004 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000011005else
11006 with_readline_lib="auto"
drh8b727472009-01-19 18:18:40 +000011007fi
11008
vapier7f19c022007-02-17 14:46:31 +000011009 if test "x$with_readline_lib" = xauto; then
11010 save_LIBS="$LIBS"
11011 LIBS=""
drhf922ca42015-05-14 15:39:18 +000011012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
drh8b727472009-01-19 18:18:40 +000011013$as_echo_n "checking for library containing tgetent... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011014if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000011015 $as_echo_n "(cached) " >&6
drh75897232000-05-29 14:26:00 +000011016else
drh71eb93e2001-09-28 01:34:43 +000011017 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011019/* end confdefs.h. */
11020
drh8b727472009-01-19 18:18:40 +000011021/* Override any GCC internal prototype to avoid an error.
11022 Use char because int might match the return type of a GCC
11023 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000011024#ifdef __cplusplus
11025extern "C"
11026#endif
paul38372372003-04-22 08:04:49 +000011027char tgetent ();
11028int
11029main ()
11030{
drh8b727472009-01-19 18:18:40 +000011031return tgetent ();
paul38372372003-04-22 08:04:49 +000011032 ;
11033 return 0;
11034}
11035_ACEOF
drh8b727472009-01-19 18:18:40 +000011036for ac_lib in '' readline ncurses curses termcap; do
11037 if test -z "$ac_lib"; then
11038 ac_res="none required"
11039 else
11040 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011041 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011042 fi
drhf922ca42015-05-14 15:39:18 +000011043 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011044 ac_cv_search_tgetent=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011045fi
drhf922ca42015-05-14 15:39:18 +000011046rm -f core conftest.err conftest.$ac_objext \
11047 conftest$ac_exeext
11048 if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000011049 break
drh866108f2008-05-13 00:57:21 +000011050fi
drh8b727472009-01-19 18:18:40 +000011051done
drhf922ca42015-05-14 15:39:18 +000011052if ${ac_cv_search_tgetent+:} false; then :
11053
drh8b727472009-01-19 18:18:40 +000011054else
11055 ac_cv_search_tgetent=no
11056fi
11057rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011058LIBS=$ac_func_search_save_LIBS
11059fi
drhf922ca42015-05-14 15:39:18 +000011060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
drh8b727472009-01-19 18:18:40 +000011061$as_echo "$ac_cv_search_tgetent" >&6; }
11062ac_res=$ac_cv_search_tgetent
drhf922ca42015-05-14 15:39:18 +000011063if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011064 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000011065 term_LIBS="$LIBS"
11066else
11067 term_LIBS=""
paul38372372003-04-22 08:04:49 +000011068fi
11069
drhf922ca42015-05-14 15:39:18 +000011070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
drh8b727472009-01-19 18:18:40 +000011071$as_echo_n "checking for readline in -lreadline... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011072if ${ac_cv_lib_readline_readline+:} false; then :
drh8b727472009-01-19 18:18:40 +000011073 $as_echo_n "(cached) " >&6
paul38372372003-04-22 08:04:49 +000011074else
11075 ac_check_lib_save_LIBS=$LIBS
11076LIBS="-lreadline $LIBS"
drhf922ca42015-05-14 15:39:18 +000011077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000011078/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011079
drh8b727472009-01-19 18:18:40 +000011080/* Override any GCC internal prototype to avoid an error.
11081 Use char because int might match the return type of a GCC
11082 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000011083#ifdef __cplusplus
11084extern "C"
11085#endif
drh71eb93e2001-09-28 01:34:43 +000011086char readline ();
11087int
11088main ()
11089{
drh8b727472009-01-19 18:18:40 +000011090return readline ();
drh71eb93e2001-09-28 01:34:43 +000011091 ;
11092 return 0;
11093}
11094_ACEOF
drhf922ca42015-05-14 15:39:18 +000011095if ac_fn_c_try_link "$LINENO"; then :
paul38372372003-04-22 08:04:49 +000011096 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000011097else
drhf922ca42015-05-14 15:39:18 +000011098 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000011099fi
drhf922ca42015-05-14 15:39:18 +000011100rm -f core conftest.err conftest.$ac_objext \
11101 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011102LIBS=$ac_check_lib_save_LIBS
11103fi
drhf922ca42015-05-14 15:39:18 +000011104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
drh8b727472009-01-19 18:18:40 +000011105$as_echo "$ac_cv_lib_readline_readline" >&6; }
drhf922ca42015-05-14 15:39:18 +000011106if test "x$ac_cv_lib_readline_readline" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011107 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000011108else
vapier7f19c022007-02-17 14:46:31 +000011109 found="no"
11110fi
drhf1878b42006-01-23 18:06:52 +000011111
vapier7f19c022007-02-17 14:46:31 +000011112 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11113 LIBS="$save_LIBS"
11114 else
11115 TARGET_READLINE_LIBS="$with_readline_lib"
11116 fi
11117
11118
drh8b727472009-01-19 18:18:40 +000011119# Check whether --with-readline-inc was given.
drhf922ca42015-05-14 15:39:18 +000011120if test "${with_readline_inc+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011121 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000011122else
vapier7f19c022007-02-17 14:46:31 +000011123 with_readline_inc="auto"
drh8b727472009-01-19 18:18:40 +000011124fi
11125
vapier7f19c022007-02-17 14:46:31 +000011126 if test "x$with_readline_inc" = xauto; then
drhf922ca42015-05-14 15:39:18 +000011127 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
11128if test "x$ac_cv_header_readline_h" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011129 found="yes"
11130else
drh75897232000-05-29 14:26:00 +000011131
vapier7f19c022007-02-17 14:46:31 +000011132 found="no"
11133 if test "$cross_compiling" != yes; then
11134 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11135 for subdir in include include/readline; do
drh8b727472009-01-19 18:18:40 +000011136 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
drhf922ca42015-05-14 15:39:18 +000011137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
drh8b727472009-01-19 18:18:40 +000011138$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011139if eval \${$as_ac_File+:} false; then :
drh8b727472009-01-19 18:18:40 +000011140 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011141else
11142 test "$cross_compiling" = yes &&
drhf922ca42015-05-14 15:39:18 +000011143 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
vapier7f19c022007-02-17 14:46:31 +000011144if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000011145 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000011146else
drh71eb93e2001-09-28 01:34:43 +000011147 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000011148fi
11149fi
drhf922ca42015-05-14 15:39:18 +000011150eval ac_res=\$$as_ac_File
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
drh8b727472009-01-19 18:18:40 +000011152$as_echo "$ac_res" >&6; }
drhf922ca42015-05-14 15:39:18 +000011153if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
drh75897232000-05-29 14:26:00 +000011154 found=yes
drh75897232000-05-29 14:26:00 +000011155fi
11156
vapier7f19c022007-02-17 14:46:31 +000011157 if test "$found" = "yes"; then
11158 TARGET_READLINE_INC="-I$dir/$subdir"
11159 break
11160 fi
11161 done
11162 test "$found" = "yes" && break
11163 done
11164 fi
11165
11166fi
11167
11168
11169 else
11170 TARGET_READLINE_INC="$with_readline_inc"
11171 fi
11172
11173 if test x"$found" = xno; then
11174 TARGET_READLINE_LIBS=""
11175 TARGET_READLINE_INC=""
11176 TARGET_HAVE_READLINE=0
11177 else
11178 TARGET_HAVE_READLINE=1
11179 fi
11180fi
11181
11182
11183
11184
11185
drhe44b8352015-10-30 14:25:57 +000011186
vapier7f19c022007-02-17 14:46:31 +000011187##########
11188# Figure out what C libraries are required to compile programs
11189# that use "fdatasync()" function.
11190#
drhf922ca42015-05-14 15:39:18 +000011191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011192$as_echo_n "checking for library containing fdatasync... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011193if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011194 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011195else
vapier7f19c022007-02-17 14:46:31 +000011196 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011198/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011199
drh8b727472009-01-19 18:18:40 +000011200/* Override any GCC internal prototype to avoid an error.
11201 Use char because int might match the return type of a GCC
11202 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000011203#ifdef __cplusplus
11204extern "C"
11205#endif
11206char fdatasync ();
11207int
11208main ()
11209{
drh8b727472009-01-19 18:18:40 +000011210return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000011211 ;
11212 return 0;
11213}
11214_ACEOF
drh8b727472009-01-19 18:18:40 +000011215for ac_lib in '' rt; do
11216 if test -z "$ac_lib"; then
11217 ac_res="none required"
11218 else
11219 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011221 fi
drhf922ca42015-05-14 15:39:18 +000011222 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011223 ac_cv_search_fdatasync=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011224fi
drhf922ca42015-05-14 15:39:18 +000011225rm -f core conftest.err conftest.$ac_objext \
11226 conftest$ac_exeext
11227 if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011228 break
drh866108f2008-05-13 00:57:21 +000011229fi
drh8b727472009-01-19 18:18:40 +000011230done
drhf922ca42015-05-14 15:39:18 +000011231if ${ac_cv_search_fdatasync+:} false; then :
11232
drh8b727472009-01-19 18:18:40 +000011233else
11234 ac_cv_search_fdatasync=no
11235fi
11236rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011237LIBS=$ac_func_search_save_LIBS
11238fi
drhf922ca42015-05-14 15:39:18 +000011239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011240$as_echo "$ac_cv_search_fdatasync" >&6; }
11241ac_res=$ac_cv_search_fdatasync
drhf922ca42015-05-14 15:39:18 +000011242if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011243 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000011244
vapier7f19c022007-02-17 14:46:31 +000011245fi
11246
a.rottmann84e63352003-03-24 09:42:16 +000011247
drh75897232000-05-29 14:26:00 +000011248#########
tpoindex9d9f76c2005-01-03 21:28:56 +000011249# check for debug enabled
drh8b727472009-01-19 18:18:40 +000011250# Check whether --enable-debug was given.
drhf922ca42015-05-14 15:39:18 +000011251if test "${enable_debug+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011252 enableval=$enable_debug; use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000011253else
11254 use_debug=no
drh8b727472009-01-19 18:18:40 +000011255fi
11256
tpoindex9d9f76c2005-01-03 21:28:56 +000011257if test "${use_debug}" = "yes" ; then
drh32d0eba2017-04-05 10:54:14 +000011258 TARGET_DEBUG="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0"
tpoindex9d9f76c2005-01-03 21:28:56 +000011259else
11260 TARGET_DEBUG="-DNDEBUG"
11261fi
11262
11263
11264#########
mlcreech94984912008-03-04 19:03:08 +000011265# See whether we should use the amalgamation to build
drh8b727472009-01-19 18:18:40 +000011266# Check whether --enable-amalgamation was given.
drhf922ca42015-05-14 15:39:18 +000011267if test "${enable_amalgamation+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011268 enableval=$enable_amalgamation; use_amalgamation=$enableval
mlcreech94984912008-03-04 19:03:08 +000011269else
11270 use_amalgamation=yes
drh8b727472009-01-19 18:18:40 +000011271fi
11272
mlcreechf3868112008-03-11 18:03:30 +000011273if test "${use_amalgamation}" != "yes" ; then
mlcreech94984912008-03-04 19:03:08 +000011274 USE_AMALGAMATION=0
11275fi
11276
11277
11278#########
drh56c93112017-11-24 16:55:48 +000011279# Look for zlib. Only needed by extensions and by the sqlite3.exe shell
11280for ac_header in zlib.h
11281do :
11282 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
11283if test "x$ac_cv_header_zlib_h" = xyes; then :
11284 cat >>confdefs.h <<_ACEOF
11285#define HAVE_ZLIB_H 1
11286_ACEOF
11287
11288fi
11289
11290done
11291
11292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
11293$as_echo_n "checking for library containing deflate... " >&6; }
11294if ${ac_cv_search_deflate+:} false; then :
11295 $as_echo_n "(cached) " >&6
11296else
11297 ac_func_search_save_LIBS=$LIBS
11298cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11299/* end confdefs.h. */
11300
11301/* Override any GCC internal prototype to avoid an error.
11302 Use char because int might match the return type of a GCC
11303 builtin and then its argument prototype would still apply. */
11304#ifdef __cplusplus
11305extern "C"
11306#endif
11307char deflate ();
11308int
11309main ()
11310{
11311return deflate ();
11312 ;
11313 return 0;
11314}
11315_ACEOF
11316for ac_lib in '' z; do
11317 if test -z "$ac_lib"; then
11318 ac_res="none required"
11319 else
11320 ac_res=-l$ac_lib
11321 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11322 fi
11323 if ac_fn_c_try_link "$LINENO"; then :
11324 ac_cv_search_deflate=$ac_res
11325fi
11326rm -f core conftest.err conftest.$ac_objext \
11327 conftest$ac_exeext
11328 if ${ac_cv_search_deflate+:} false; then :
11329 break
11330fi
11331done
11332if ${ac_cv_search_deflate+:} false; then :
11333
11334else
11335 ac_cv_search_deflate=no
11336fi
11337rm conftest.$ac_ext
11338LIBS=$ac_func_search_save_LIBS
11339fi
11340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
11341$as_echo "$ac_cv_search_deflate" >&6; }
11342ac_res=$ac_cv_search_deflate
11343if test "$ac_res" != no; then :
11344 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11345 HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1"
11346else
11347 HAVE_ZLIB=""
11348fi
11349
11350
11351
11352#########
mlcreecha4edab02008-03-06 04:14:17 +000011353# See whether we should allow loadable extensions
drh8b727472009-01-19 18:18:40 +000011354# Check whether --enable-load-extension was given.
drhf922ca42015-05-14 15:39:18 +000011355if test "${enable_load_extension+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011356 enableval=$enable_load_extension; use_loadextension=$enableval
mlcreecha4edab02008-03-06 04:14:17 +000011357else
drh05c7e0b2015-01-10 14:27:17 +000011358 use_loadextension=yes
drh8b727472009-01-19 18:18:40 +000011359fi
11360
mlcreecha4edab02008-03-06 04:14:17 +000011361if test "${use_loadextension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000011362 OPT_FEATURE_FLAGS=""
drhf922ca42015-05-14 15:39:18 +000011363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011364$as_echo_n "checking for library containing dlopen... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011365if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011366 $as_echo_n "(cached) " >&6
11367else
11368 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drhdbe4b882011-06-20 18:00:17 +000011370/* end confdefs.h. */
11371
11372/* Override any GCC internal prototype to avoid an error.
11373 Use char because int might match the return type of a GCC
11374 builtin and then its argument prototype would still apply. */
11375#ifdef __cplusplus
11376extern "C"
11377#endif
11378char dlopen ();
11379int
11380main ()
11381{
11382return dlopen ();
11383 ;
11384 return 0;
11385}
11386_ACEOF
11387for ac_lib in '' dl; do
11388 if test -z "$ac_lib"; then
11389 ac_res="none required"
11390 else
11391 ac_res=-l$ac_lib
11392 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11393 fi
drhf922ca42015-05-14 15:39:18 +000011394 if ac_fn_c_try_link "$LINENO"; then :
drhdbe4b882011-06-20 18:00:17 +000011395 ac_cv_search_dlopen=$ac_res
drhdbe4b882011-06-20 18:00:17 +000011396fi
drhf922ca42015-05-14 15:39:18 +000011397rm -f core conftest.err conftest.$ac_objext \
11398 conftest$ac_exeext
11399 if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011400 break
11401fi
11402done
drhf922ca42015-05-14 15:39:18 +000011403if ${ac_cv_search_dlopen+:} false; then :
11404
drhdbe4b882011-06-20 18:00:17 +000011405else
11406 ac_cv_search_dlopen=no
11407fi
11408rm conftest.$ac_ext
11409LIBS=$ac_func_search_save_LIBS
11410fi
drhf922ca42015-05-14 15:39:18 +000011411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011412$as_echo "$ac_cv_search_dlopen" >&6; }
11413ac_res=$ac_cv_search_dlopen
drhf922ca42015-05-14 15:39:18 +000011414if test "$ac_res" != no; then :
drhdbe4b882011-06-20 18:00:17 +000011415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11416
11417fi
11418
mlcreecha4edab02008-03-06 04:14:17 +000011419else
shanefbedede2008-07-22 05:05:01 +000011420 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000011421fi
11422
drhc530b9c2016-07-25 11:27:22 +000011423##########
11424# Do we want to support memsys3 and/or memsys5
11425#
drhc530b9c2016-07-25 11:27:22 +000011426# Check whether --enable-memsys5 was given.
11427if test "${enable_memsys5+set}" = set; then :
drh26197d12016-07-25 11:32:09 +000011428 enableval=$enable_memsys5; enable_memsys5=yes
drhc530b9c2016-07-25 11:27:22 +000011429else
drh26197d12016-07-25 11:32:09 +000011430 enable_memsys5=no
drhc530b9c2016-07-25 11:27:22 +000011431fi
11432
11433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5
11434$as_echo_n "checking whether to support MEMSYS5... " >&6; }
drh26197d12016-07-25 11:32:09 +000011435if test "${enable_memsys5}" = "yes"; then
drh8c9ed052017-05-29 17:43:06 +000011436 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5"
drhc530b9c2016-07-25 11:27:22 +000011437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11438$as_echo "yes" >&6; }
11439else
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11441$as_echo "no" >&6; }
11442fi
drh5d513ba2016-07-25 11:57:21 +000011443# Check whether --enable-memsys3 was given.
11444if test "${enable_memsys3+set}" = set; then :
11445 enableval=$enable_memsys3; enable_memsys3=yes
11446else
11447 enable_memsys3=no
11448fi
11449
11450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5
11451$as_echo_n "checking whether to support MEMSYS3... " >&6; }
11452if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then
drh8c9ed052017-05-29 17:43:06 +000011453 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3"
drh5d513ba2016-07-25 11:57:21 +000011454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11455$as_echo "yes" >&6; }
11456else
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11458$as_echo "no" >&6; }
11459fi
drhc530b9c2016-07-25 11:27:22 +000011460
mlcreechaac7b932008-04-01 02:45:22 +000011461#########
drhce1d9f52015-10-09 12:48:33 +000011462# See whether we should enable Full Text Search extensions
11463# Check whether --enable-fts3 was given.
11464if test "${enable_fts3+set}" = set; then :
11465 enableval=$enable_fts3; enable_fts3=yes
11466else
11467 enable_fts3=no
11468fi
11469
11470if test "${enable_fts3}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011471 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3"
drhce1d9f52015-10-09 12:48:33 +000011472fi
11473# Check whether --enable-fts4 was given.
11474if test "${enable_fts4+set}" = set; then :
11475 enableval=$enable_fts4; enable_fts4=yes
11476else
11477 enable_fts4=no
11478fi
11479
11480if test "${enable_fts4}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011481 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4"
drhce1d9f52015-10-09 12:48:33 +000011482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11483$as_echo_n "checking for library containing log... " >&6; }
11484if ${ac_cv_search_log+:} false; then :
11485 $as_echo_n "(cached) " >&6
11486else
11487 ac_func_search_save_LIBS=$LIBS
11488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11489/* end confdefs.h. */
11490
11491/* Override any GCC internal prototype to avoid an error.
11492 Use char because int might match the return type of a GCC
11493 builtin and then its argument prototype would still apply. */
11494#ifdef __cplusplus
11495extern "C"
11496#endif
11497char log ();
11498int
11499main ()
11500{
11501return log ();
11502 ;
11503 return 0;
11504}
11505_ACEOF
11506for ac_lib in '' m; do
11507 if test -z "$ac_lib"; then
11508 ac_res="none required"
11509 else
11510 ac_res=-l$ac_lib
11511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11512 fi
11513 if ac_fn_c_try_link "$LINENO"; then :
11514 ac_cv_search_log=$ac_res
11515fi
11516rm -f core conftest.err conftest.$ac_objext \
11517 conftest$ac_exeext
11518 if ${ac_cv_search_log+:} false; then :
11519 break
11520fi
11521done
11522if ${ac_cv_search_log+:} false; then :
11523
11524else
11525 ac_cv_search_log=no
11526fi
11527rm conftest.$ac_ext
11528LIBS=$ac_func_search_save_LIBS
11529fi
11530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11531$as_echo "$ac_cv_search_log" >&6; }
11532ac_res=$ac_cv_search_log
11533if test "$ac_res" != no; then :
11534 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11535
11536fi
11537
11538fi
11539# Check whether --enable-fts5 was given.
11540if test "${enable_fts5+set}" = set; then :
11541 enableval=$enable_fts5; enable_fts5=yes
11542else
11543 enable_fts5=no
11544fi
11545
11546if test "${enable_fts5}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011547 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5"
drhce1d9f52015-10-09 12:48:33 +000011548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11549$as_echo_n "checking for library containing log... " >&6; }
11550if ${ac_cv_search_log+:} false; then :
11551 $as_echo_n "(cached) " >&6
11552else
11553 ac_func_search_save_LIBS=$LIBS
11554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11555/* end confdefs.h. */
11556
11557/* Override any GCC internal prototype to avoid an error.
11558 Use char because int might match the return type of a GCC
11559 builtin and then its argument prototype would still apply. */
11560#ifdef __cplusplus
11561extern "C"
11562#endif
11563char log ();
11564int
11565main ()
11566{
11567return log ();
11568 ;
11569 return 0;
11570}
11571_ACEOF
11572for ac_lib in '' m; do
11573 if test -z "$ac_lib"; then
11574 ac_res="none required"
11575 else
11576 ac_res=-l$ac_lib
11577 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11578 fi
11579 if ac_fn_c_try_link "$LINENO"; then :
11580 ac_cv_search_log=$ac_res
11581fi
11582rm -f core conftest.err conftest.$ac_objext \
11583 conftest$ac_exeext
11584 if ${ac_cv_search_log+:} false; then :
11585 break
11586fi
11587done
11588if ${ac_cv_search_log+:} false; then :
11589
11590else
11591 ac_cv_search_log=no
11592fi
11593rm conftest.$ac_ext
11594LIBS=$ac_func_search_save_LIBS
11595fi
11596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11597$as_echo "$ac_cv_search_log" >&6; }
11598ac_res=$ac_cv_search_log
11599if test "$ac_res" != no; then :
11600 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11601
11602fi
11603
11604fi
11605
11606#########
11607# See whether we should enable JSON1
11608# Check whether --enable-json1 was given.
11609if test "${enable_json1+set}" = set; then :
11610 enableval=$enable_json1; enable_json1=yes
11611else
11612 enable_json1=no
11613fi
11614
11615if test "${enable_json1}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011616 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_JSON1"
drhce1d9f52015-10-09 12:48:33 +000011617fi
11618
11619#########
drh83bebdd2017-08-28 17:00:12 +000011620# See whether we should enable the LIMIT clause on UPDATE and DELETE
11621# statements.
11622# Check whether --enable-update-limit was given.
11623if test "${enable_update_limit+set}" = set; then :
11624 enableval=$enable_update_limit; enable_udlimit=yes
11625else
11626 enable_udlimit=no
11627fi
11628
11629if test "${enable_udlimit}" = "yes" ; then
11630 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT"
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 :
11637 enableval=$enable_rtree; enable_rtree=yes
11638else
11639 enable_rtree=no
11640fi
11641
11642if test "${enable_rtree}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011643 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE"
drhce1d9f52015-10-09 12:48:33 +000011644fi
11645
11646#########
drh5e18d402016-05-03 13:14:18 +000011647# See whether we should enable the SESSION extension
11648# Check whether --enable-session was given.
11649if test "${enable_session+set}" = set; then :
11650 enableval=$enable_session; enable_session=yes
11651else
11652 enable_session=no
11653fi
11654
11655if test "${enable_session}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011656 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION"
11657 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK"
drh5e18d402016-05-03 13:14:18 +000011658fi
11659
11660#########
drh8c9ed052017-05-29 17:43:06 +000011661# attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter
shanefbedede2008-07-22 05:05:01 +000011662for option in $CFLAGS $CPPFLAGS
11663do
11664 case $option in
danielk197733a14782008-08-04 14:50:05 +000011665 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shaneb1cd7302008-10-22 18:27:31 +000011666 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011667 esac
11668done
11669
11670
danielk197733a14782008-08-04 14:50:05 +000011671
shaneb1cd7302008-10-22 18:27:31 +000011672# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011673ac_temp_CFLAGS=""
11674for option in $CFLAGS
11675do
11676 case $option in
11677 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011678 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011679 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011680 esac
11681done
11682CFLAGS=$ac_temp_CFLAGS
11683
11684
shaneb1cd7302008-10-22 18:27:31 +000011685# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011686ac_temp_CPPFLAGS=""
11687for option in $CPPFLAGS
11688do
11689 case $option in
11690 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011691 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011692 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011693 esac
11694done
11695CPPFLAGS=$ac_temp_CPPFLAGS
11696
danielk197733a14782008-08-04 14:50:05 +000011697
drh8b727472009-01-19 18:18:40 +000011698# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011699ac_temp_BUILD_CFLAGS=""
11700for option in $BUILD_CFLAGS
11701do
11702 case $option in
11703 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011704 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011705 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011706 esac
11707done
11708BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11709
11710
11711#########
11712# See whether we should use GCOV
drh8b727472009-01-19 18:18:40 +000011713# Check whether --enable-gcov was given.
drhf922ca42015-05-14 15:39:18 +000011714if test "${enable_gcov+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011715 enableval=$enable_gcov; use_gcov=$enableval
mlcreechaac7b932008-04-01 02:45:22 +000011716else
11717 use_gcov=no
drh8b727472009-01-19 18:18:40 +000011718fi
11719
mlcreechaac7b932008-04-01 02:45:22 +000011720if test "${use_gcov}" = "yes" ; then
11721 USE_GCOV=1
11722else
11723 USE_GCOV=0
11724fi
11725
11726
danielk197733a14782008-08-04 14:50:05 +000011727
drh2dfbbca2000-07-28 14:32:48 +000011728#########
mlcreechb87057f2008-03-06 07:19:20 +000011729# Output the config header
drh8b727472009-01-19 18:18:40 +000011730ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000011731
11732
11733#########
drh75897232000-05-29 14:26:00 +000011734# Generate the output files.
11735#
mlcreechdf59c7c2008-03-06 07:51:15 +000011736
drh8b727472009-01-19 18:18:40 +000011737ac_config_files="$ac_config_files Makefile sqlite3.pc"
11738
drh71eb93e2001-09-28 01:34:43 +000011739cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000011740# This file is a shell script that caches the results of configure
11741# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000011742# scripts and configure runs, see configure's option --config-cache.
11743# It is not useful on other systems. If it contains results you don't
11744# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000011745#
drh71eb93e2001-09-28 01:34:43 +000011746# config.status only pays attention to the cache file if you give it
11747# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000011748#
a.rottmann84e63352003-03-24 09:42:16 +000011749# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000011750# loading this file, other *unset* `ac_cv_foo' will be assigned the
11751# following values.
11752
11753_ACEOF
11754
drh75897232000-05-29 14:26:00 +000011755# The following way of writing the cache mishandles newlines in values,
11756# but we know of no workaround that is simple, portable, and efficient.
drh8b727472009-01-19 18:18:40 +000011757# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000011758# Ultrix sh set writes to stderr and can't be redirected directly,
11759# and sets the high bit in the cache file unless we assign to the vars.
drh8b727472009-01-19 18:18:40 +000011760(
11761 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11762 eval ac_val=\$$ac_var
11763 case $ac_val in #(
11764 *${as_nl}*)
11765 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +000011766 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11767$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +000011768 esac
11769 case $ac_var in #(
11770 _ | IFS | as_nl) ;; #(
11771 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +000011772 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +000011773 esac ;;
11774 esac
11775 done
11776
drh71eb93e2001-09-28 01:34:43 +000011777 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +000011778 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11779 *${as_nl}ac_space=\ *)
drhf922ca42015-05-14 15:39:18 +000011780 # `set' does not quote correctly, so add quotes: double-quote
11781 # substitution turns \\\\ into \\, and sed turns \\ into \.
drh71eb93e2001-09-28 01:34:43 +000011782 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000011783 "s/'/'\\\\''/g;
11784 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh8b727472009-01-19 18:18:40 +000011785 ;; #(
drh71eb93e2001-09-28 01:34:43 +000011786 *)
11787 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh8b727472009-01-19 18:18:40 +000011788 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000011789 ;;
drh8b727472009-01-19 18:18:40 +000011790 esac |
11791 sort
11792) |
drh71eb93e2001-09-28 01:34:43 +000011793 sed '
drh8b727472009-01-19 18:18:40 +000011794 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000011795 t clear
drh8b727472009-01-19 18:18:40 +000011796 :clear
drh71eb93e2001-09-28 01:34:43 +000011797 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11798 t end
drh8b727472009-01-19 18:18:40 +000011799 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11800 :end' >>confcache
11801if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11802 if test -w "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +000011803 if test "x$cache_file" != "x/dev/null"; then
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011805$as_echo "$as_me: updating cache $cache_file" >&6;}
drhf922ca42015-05-14 15:39:18 +000011806 if test ! -f "$cache_file" || test -h "$cache_file"; then
11807 cat confcache >"$cache_file"
11808 else
11809 case $cache_file in #(
11810 */* | ?:*)
11811 mv -f confcache "$cache_file"$$ &&
11812 mv -f "$cache_file"$$ "$cache_file" ;; #(
11813 *)
11814 mv -f confcache "$cache_file" ;;
11815 esac
11816 fi
11817 fi
drh75897232000-05-29 14:26:00 +000011818 else
drhf922ca42015-05-14 15:39:18 +000011819 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011820$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000011821 fi
11822fi
11823rm -f confcache
11824
drh75897232000-05-29 14:26:00 +000011825test "x$prefix" = xNONE && prefix=$ac_default_prefix
11826# Let make expand exec_prefix.
11827test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11828
mlcreechb87057f2008-03-06 07:19:20 +000011829DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000011830
11831ac_libobjs=
11832ac_ltlibobjs=
drhf922ca42015-05-14 15:39:18 +000011833U=
a.rottmann84e63352003-03-24 09:42:16 +000011834for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11835 # 1. Remove the extension, and $U if already installed.
drh8b727472009-01-19 18:18:40 +000011836 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11837 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11838 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11839 # will be set to the directory where LIBOBJS objects are built.
drhf922ca42015-05-14 15:39:18 +000011840 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11841 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000011842done
11843LIBOBJS=$ac_libobjs
11844
11845LTLIBOBJS=$ac_ltlibobjs
11846
11847
11848
drhf922ca42015-05-14 15:39:18 +000011849: "${CONFIG_STATUS=./config.status}"
drh8b727472009-01-19 18:18:40 +000011850ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000011851ac_clean_files_save=$ac_clean_files
11852ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drhf922ca42015-05-14 15:39:18 +000011853{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
drh8b727472009-01-19 18:18:40 +000011854$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
drhf922ca42015-05-14 15:39:18 +000011855as_write_fail=0
11856cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011857#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000011858# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000011859# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000011860# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000011861# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000011862
drh71eb93e2001-09-28 01:34:43 +000011863debug=false
a.rottmann84e63352003-03-24 09:42:16 +000011864ac_cs_recheck=false
11865ac_cs_silent=false
drh710658c2012-01-16 13:00:05 +000011866
drhf922ca42015-05-14 15:39:18 +000011867SHELL=\${CONFIG_SHELL-$SHELL}
11868export SHELL
11869_ASEOF
11870cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11871## -------------------- ##
11872## M4sh Initialization. ##
11873## -------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000011874
drh8b727472009-01-19 18:18:40 +000011875# Be more Bourne compatible
11876DUALCASE=1; export DUALCASE # for MKS sh
drhf922ca42015-05-14 15:39:18 +000011877if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
drh71eb93e2001-09-28 01:34:43 +000011878 emulate sh
11879 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000011880 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000011881 # is contrary to our usage. Disable this feature.
11882 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000011883 setopt NO_GLOB_SUBST
11884else
drhf922ca42015-05-14 15:39:18 +000011885 case `(set -o) 2>/dev/null` in #(
11886 *posix*) :
11887 set -o posix ;; #(
11888 *) :
11889 ;;
drh8b727472009-01-19 18:18:40 +000011890esac
a.rottmann84e63352003-03-24 09:42:16 +000011891fi
drh8b727472009-01-19 18:18:40 +000011892
11893
drh8b727472009-01-19 18:18:40 +000011894as_nl='
11895'
11896export as_nl
11897# Printing a long string crashes Solaris 7 /usr/bin/printf.
11898as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11899as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11900as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
drhf922ca42015-05-14 15:39:18 +000011901# Prefer a ksh shell builtin over an external printf program on Solaris,
11902# but without wasting forks for bash or zsh.
11903if test -z "$BASH_VERSION$ZSH_VERSION" \
11904 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11905 as_echo='print -r --'
11906 as_echo_n='print -rn --'
11907elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
drh8b727472009-01-19 18:18:40 +000011908 as_echo='printf %s\n'
11909 as_echo_n='printf %s'
11910else
11911 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11912 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11913 as_echo_n='/usr/ucb/echo -n'
11914 else
11915 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11916 as_echo_n_body='eval
11917 arg=$1;
drhf922ca42015-05-14 15:39:18 +000011918 case $arg in #(
drh8b727472009-01-19 18:18:40 +000011919 *"$as_nl"*)
11920 expr "X$arg" : "X\\(.*\\)$as_nl";
11921 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11922 esac;
11923 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11924 '
11925 export as_echo_n_body
11926 as_echo_n='sh -c $as_echo_n_body as_echo'
11927 fi
11928 export as_echo_body
11929 as_echo='sh -c $as_echo_body as_echo'
11930fi
11931
11932# The user is always right.
11933if test "${PATH_SEPARATOR+set}" != set; then
11934 PATH_SEPARATOR=:
11935 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11936 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11937 PATH_SEPARATOR=';'
11938 }
11939fi
a.rottmann84e63352003-03-24 09:42:16 +000011940
mlcreech94984912008-03-04 19:03:08 +000011941
drh8b727472009-01-19 18:18:40 +000011942# IFS
11943# We need space, tab and new line, in precisely that order. Quoting is
11944# there to prevent editors from complaining about space-tab.
11945# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11946# splitting by setting IFS to empty value.)
11947IFS=" "" $as_nl"
11948
11949# Find who we are. Look in the path if we contain no directory separator.
drhf922ca42015-05-14 15:39:18 +000011950as_myself=
11951case $0 in #((
drh8b727472009-01-19 18:18:40 +000011952 *[\\/]* ) as_myself=$0 ;;
11953 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11954for as_dir in $PATH
11955do
11956 IFS=$as_save_IFS
11957 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000011958 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11959 done
drh8b727472009-01-19 18:18:40 +000011960IFS=$as_save_IFS
11961
11962 ;;
11963esac
11964# We did not find ourselves, most probably we were run as `sh COMMAND'
11965# in which case we are not to be found in the path.
11966if test "x$as_myself" = x; then
11967 as_myself=$0
11968fi
11969if test ! -f "$as_myself"; then
11970 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
drhf922ca42015-05-14 15:39:18 +000011971 exit 1
drh8b727472009-01-19 18:18:40 +000011972fi
11973
drhf922ca42015-05-14 15:39:18 +000011974# Unset variables that we do not need and which cause bugs (e.g. in
11975# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11976# suppresses any "Segmentation fault" message there. '((' could
11977# trigger a bug in pdksh 5.2.14.
11978for as_var in BASH_ENV ENV MAIL MAILPATH
11979do eval test x\${$as_var+set} = xset \
11980 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
drh8b727472009-01-19 18:18:40 +000011981done
mlcreech94984912008-03-04 19:03:08 +000011982PS1='$ '
11983PS2='> '
11984PS4='+ '
11985
11986# NLS nuisances.
drh8b727472009-01-19 18:18:40 +000011987LC_ALL=C
11988export LC_ALL
11989LANGUAGE=C
11990export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000011991
drhf922ca42015-05-14 15:39:18 +000011992# CDPATH.
11993(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11994
11995
11996# as_fn_error STATUS ERROR [LINENO LOG_FD]
11997# ----------------------------------------
11998# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11999# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12000# script with STATUS, using 1 if that was 0.
12001as_fn_error ()
12002{
12003 as_status=$1; test $as_status -eq 0 && as_status=1
12004 if test "$4"; then
12005 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12006 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12007 fi
12008 $as_echo "$as_me: error: $2" >&2
12009 as_fn_exit $as_status
12010} # as_fn_error
12011
12012
12013# as_fn_set_status STATUS
12014# -----------------------
12015# Set $? to STATUS, without forking.
12016as_fn_set_status ()
12017{
12018 return $1
12019} # as_fn_set_status
12020
12021# as_fn_exit STATUS
12022# -----------------
12023# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12024as_fn_exit ()
12025{
12026 set +e
12027 as_fn_set_status $1
12028 exit $1
12029} # as_fn_exit
12030
12031# as_fn_unset VAR
12032# ---------------
12033# Portably unset VAR.
12034as_fn_unset ()
12035{
12036 { eval $1=; unset $1;}
12037}
12038as_unset=as_fn_unset
12039# as_fn_append VAR VALUE
12040# ----------------------
12041# Append the text in VALUE to the end of the definition contained in VAR. Take
12042# advantage of any shell optimizations that allow amortized linear growth over
12043# repeated appends, instead of the typical quadratic growth present in naive
12044# implementations.
12045if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12046 eval 'as_fn_append ()
12047 {
12048 eval $1+=\$2
12049 }'
12050else
12051 as_fn_append ()
12052 {
12053 eval $1=\$$1\$2
12054 }
12055fi # as_fn_append
12056
12057# as_fn_arith ARG...
12058# ------------------
12059# Perform arithmetic evaluation on the ARGs, and store the result in the
12060# global $as_val. Take advantage of shells that can avoid forks. The arguments
12061# must be portable across $(()) and expr.
12062if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12063 eval 'as_fn_arith ()
12064 {
12065 as_val=$(( $* ))
12066 }'
12067else
12068 as_fn_arith ()
12069 {
12070 as_val=`expr "$@" || test $? -eq 1`
12071 }
12072fi # as_fn_arith
12073
12074
drh8b727472009-01-19 18:18:40 +000012075if expr a : '\(a\)' >/dev/null 2>&1 &&
12076 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +000012077 as_expr=expr
12078else
12079 as_expr=false
12080fi
12081
drh8b727472009-01-19 18:18:40 +000012082if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000012083 as_basename=basename
12084else
12085 as_basename=false
12086fi
12087
drhf922ca42015-05-14 15:39:18 +000012088if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12089 as_dirname=dirname
12090else
12091 as_dirname=false
12092fi
mlcreech94984912008-03-04 19:03:08 +000012093
drh8b727472009-01-19 18:18:40 +000012094as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +000012095$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12096 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000012097 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12098$as_echo X/"$0" |
12099 sed '/^.*\/\([^/][^/]*\)\/*$/{
12100 s//\1/
12101 q
12102 }
12103 /^X\/\(\/\/\)$/{
12104 s//\1/
12105 q
12106 }
12107 /^X\/\(\/\).*/{
12108 s//\1/
12109 q
12110 }
12111 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000012112
drhf922ca42015-05-14 15:39:18 +000012113# Avoid depending upon Character Ranges.
12114as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12115as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12116as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12117as_cr_digits='0123456789'
12118as_cr_alnum=$as_cr_Letters$as_cr_digits
drh866108f2008-05-13 00:57:21 +000012119
drh8b727472009-01-19 18:18:40 +000012120ECHO_C= ECHO_N= ECHO_T=
drhf922ca42015-05-14 15:39:18 +000012121case `echo -n x` in #(((((
drh8b727472009-01-19 18:18:40 +000012122-n*)
drhf922ca42015-05-14 15:39:18 +000012123 case `echo 'xy\c'` in
drh8b727472009-01-19 18:18:40 +000012124 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drhf922ca42015-05-14 15:39:18 +000012125 xy) ECHO_C='\c';;
12126 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12127 ECHO_T=' ';;
drh8b727472009-01-19 18:18:40 +000012128 esac;;
12129*)
12130 ECHO_N='-n';;
12131esac
drh71eb93e2001-09-28 01:34:43 +000012132
12133rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +000012134if test -d conf$$.dir; then
12135 rm -f conf$$.dir/conf$$.file
12136else
12137 rm -f conf$$.dir
12138 mkdir conf$$.dir 2>/dev/null
12139fi
12140if (echo >conf$$.file) 2>/dev/null; then
12141 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +000012142 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +000012143 # ... but there are two gotchas:
12144 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12145 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
drhf922ca42015-05-14 15:39:18 +000012146 # In both cases, we have to default to `cp -pR'.
drh8b727472009-01-19 18:18:40 +000012147 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
drhf922ca42015-05-14 15:39:18 +000012148 as_ln_s='cp -pR'
drh8b727472009-01-19 18:18:40 +000012149 elif ln conf$$.file conf$$ 2>/dev/null; then
12150 as_ln_s=ln
12151 else
drhf922ca42015-05-14 15:39:18 +000012152 as_ln_s='cp -pR'
mlcreech636a9952008-05-05 22:52:56 +000012153 fi
drh71eb93e2001-09-28 01:34:43 +000012154else
drhf922ca42015-05-14 15:39:18 +000012155 as_ln_s='cp -pR'
drh71eb93e2001-09-28 01:34:43 +000012156fi
drh8b727472009-01-19 18:18:40 +000012157rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12158rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000012159
drhf922ca42015-05-14 15:39:18 +000012160
12161# as_fn_mkdir_p
12162# -------------
12163# Create "$as_dir" as a directory, including parents if necessary.
12164as_fn_mkdir_p ()
12165{
12166
12167 case $as_dir in #(
12168 -*) as_dir=./$as_dir;;
12169 esac
12170 test -d "$as_dir" || eval $as_mkdir_p || {
12171 as_dirs=
12172 while :; do
12173 case $as_dir in #(
12174 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12175 *) as_qdir=$as_dir;;
12176 esac
12177 as_dirs="'$as_qdir' $as_dirs"
12178 as_dir=`$as_dirname -- "$as_dir" ||
12179$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12180 X"$as_dir" : 'X\(//\)[^/]' \| \
12181 X"$as_dir" : 'X\(//\)$' \| \
12182 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12183$as_echo X"$as_dir" |
12184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12185 s//\1/
12186 q
12187 }
12188 /^X\(\/\/\)[^/].*/{
12189 s//\1/
12190 q
12191 }
12192 /^X\(\/\/\)$/{
12193 s//\1/
12194 q
12195 }
12196 /^X\(\/\).*/{
12197 s//\1/
12198 q
12199 }
12200 s/.*/./; q'`
12201 test -d "$as_dir" && break
12202 done
12203 test -z "$as_dirs" || eval "mkdir $as_dirs"
12204 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12205
12206
12207} # as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000012208if mkdir -p . 2>/dev/null; then
drhf922ca42015-05-14 15:39:18 +000012209 as_mkdir_p='mkdir -p "$as_dir"'
drh71eb93e2001-09-28 01:34:43 +000012210else
a.rottmann964dbb12004-02-26 19:47:42 +000012211 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000012212 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000012213fi
12214
drhf922ca42015-05-14 15:39:18 +000012215
12216# as_fn_executable_p FILE
12217# -----------------------
12218# Test if FILE is an executable regular file.
12219as_fn_executable_p ()
12220{
12221 test -f "$1" && test -x "$1"
12222} # as_fn_executable_p
12223as_test_x='test -x'
12224as_executable_p=as_fn_executable_p
a.rottmann84e63352003-03-24 09:42:16 +000012225
12226# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000012227as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012228
12229# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000012230as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012231
drh71eb93e2001-09-28 01:34:43 +000012232
drh71eb93e2001-09-28 01:34:43 +000012233exec 6>&1
drhf922ca42015-05-14 15:39:18 +000012234## ----------------------------------- ##
12235## Main body of $CONFIG_STATUS script. ##
12236## ----------------------------------- ##
12237_ASEOF
12238test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012239
drhf922ca42015-05-14 15:39:18 +000012240cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12241# Save the log message, to keep $0 and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000012242# report actual input values of CONFIG_FILES etc. instead of their
drh8b727472009-01-19 18:18:40 +000012243# values after options handling.
12244ac_log="
drhb68db312017-10-28 20:54:51 +000012245This file was extended by sqlite $as_me 3.22.0, which was
drhf922ca42015-05-14 15:39:18 +000012246generated by GNU Autoconf 2.69. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000012247
12248 CONFIG_FILES = $CONFIG_FILES
12249 CONFIG_HEADERS = $CONFIG_HEADERS
12250 CONFIG_LINKS = $CONFIG_LINKS
12251 CONFIG_COMMANDS = $CONFIG_COMMANDS
12252 $ $0 $@
12253
drh8b727472009-01-19 18:18:40 +000012254on `(hostname || uname -n) 2>/dev/null | sed 1q`
12255"
12256
drh71eb93e2001-09-28 01:34:43 +000012257_ACEOF
12258
drhf922ca42015-05-14 15:39:18 +000012259case $ac_config_files in *"
12260"*) set x $ac_config_files; shift; ac_config_files=$*;;
12261esac
12262
12263case $ac_config_headers in *"
12264"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12265esac
12266
12267
drh8b727472009-01-19 18:18:40 +000012268cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012269# Files that config.status was made for.
drh8b727472009-01-19 18:18:40 +000012270config_files="$ac_config_files"
12271config_headers="$ac_config_headers"
12272config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000012273
drh8b727472009-01-19 18:18:40 +000012274_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012275
drh8b727472009-01-19 18:18:40 +000012276cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012277ac_cs_usage="\
drhf922ca42015-05-14 15:39:18 +000012278\`$as_me' instantiates files and other configuration actions
12279from templates according to the current configuration. Unless the files
12280and actions are specified as TAGs, all are instantiated by default.
drh71eb93e2001-09-28 01:34:43 +000012281
drhf922ca42015-05-14 15:39:18 +000012282Usage: $0 [OPTION]... [TAG]...
drh71eb93e2001-09-28 01:34:43 +000012283
12284 -h, --help print this help, then exit
drh8b727472009-01-19 18:18:40 +000012285 -V, --version print version number and configuration settings, then exit
drhf922ca42015-05-14 15:39:18 +000012286 --config print configuration, then exit
12287 -q, --quiet, --silent
12288 do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000012289 -d, --debug don't remove temporary files
12290 --recheck update $as_me by reconfiguring in the same conditions
drhf922ca42015-05-14 15:39:18 +000012291 --file=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012292 instantiate the configuration file FILE
drhf922ca42015-05-14 15:39:18 +000012293 --header=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012294 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000012295
12296Configuration files:
12297$config_files
12298
mlcreechb87057f2008-03-06 07:19:20 +000012299Configuration headers:
12300$config_headers
12301
mlcreech636a9952008-05-05 22:52:56 +000012302Configuration commands:
12303$config_commands
12304
drhf922ca42015-05-14 15:39:18 +000012305Report bugs to the package provider."
drh8b727472009-01-19 18:18:40 +000012306
mlcreech94984912008-03-04 19:03:08 +000012307_ACEOF
drh8b727472009-01-19 18:18:40 +000012308cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012309ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
drh866108f2008-05-13 00:57:21 +000012310ac_cs_version="\\
drhb68db312017-10-28 20:54:51 +000012311sqlite config.status 3.22.0
drhf922ca42015-05-14 15:39:18 +000012312configured by $0, generated by GNU Autoconf 2.69,
12313 with options \\"\$ac_cs_config\\"
drh866108f2008-05-13 00:57:21 +000012314
drhf922ca42015-05-14 15:39:18 +000012315Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000012316This config.status script is free software; the Free Software Foundation
12317gives unlimited permission to copy, distribute and modify it."
drh8b727472009-01-19 18:18:40 +000012318
12319ac_pwd='$ac_pwd'
12320srcdir='$srcdir'
12321INSTALL='$INSTALL'
drh8b727472009-01-19 18:18:40 +000012322test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000012323_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012324
drh8b727472009-01-19 18:18:40 +000012325cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12326# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000012327ac_need_defaults=:
12328while test $# != 0
12329do
12330 case $1 in
drhf922ca42015-05-14 15:39:18 +000012331 --*=?*)
drh8b727472009-01-19 18:18:40 +000012332 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12333 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000012334 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000012335 ;;
drhf922ca42015-05-14 15:39:18 +000012336 --*=)
12337 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12338 ac_optarg=
12339 ac_shift=:
12340 ;;
drh8b727472009-01-19 18:18:40 +000012341 *)
a.rottmann84e63352003-03-24 09:42:16 +000012342 ac_option=$1
12343 ac_optarg=$2
12344 ac_shift=shift
12345 ;;
drh75897232000-05-29 14:26:00 +000012346 esac
12347
a.rottmann84e63352003-03-24 09:42:16 +000012348 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000012349 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000012350 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000012351 ac_cs_recheck=: ;;
drh8b727472009-01-19 18:18:40 +000012352 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12353 $as_echo "$ac_cs_version"; exit ;;
drhf922ca42015-05-14 15:39:18 +000012354 --config | --confi | --conf | --con | --co | --c )
12355 $as_echo "$ac_cs_config"; exit ;;
drh8b727472009-01-19 18:18:40 +000012356 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000012357 debug=: ;;
12358 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000012359 $ac_shift
drh8b727472009-01-19 18:18:40 +000012360 case $ac_optarg in
12361 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
drhf922ca42015-05-14 15:39:18 +000012362 '') as_fn_error $? "missing file argument" ;;
drh8b727472009-01-19 18:18:40 +000012363 esac
drhf922ca42015-05-14 15:39:18 +000012364 as_fn_append CONFIG_FILES " '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000012365 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000012366 --header | --heade | --head | --hea )
12367 $ac_shift
drh8b727472009-01-19 18:18:40 +000012368 case $ac_optarg in
12369 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12370 esac
drhf922ca42015-05-14 15:39:18 +000012371 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000012372 ac_need_defaults=false;;
drh8b727472009-01-19 18:18:40 +000012373 --he | --h)
12374 # Conflict between --help and --header
drhf922ca42015-05-14 15:39:18 +000012375 as_fn_error $? "ambiguous option: \`$1'
12376Try \`$0 --help' for more information.";;
drh8b727472009-01-19 18:18:40 +000012377 --help | --hel | -h )
12378 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000012379 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12380 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12381 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000012382
drh71eb93e2001-09-28 01:34:43 +000012383 # This is an error.
drhf922ca42015-05-14 15:39:18 +000012384 -*) as_fn_error $? "unrecognized option: \`$1'
12385Try \`$0 --help' for more information." ;;
drh71eb93e2001-09-28 01:34:43 +000012386
drhf922ca42015-05-14 15:39:18 +000012387 *) as_fn_append ac_config_targets " $1"
drh8b727472009-01-19 18:18:40 +000012388 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000012389
12390 esac
12391 shift
12392done
12393
a.rottmann84e63352003-03-24 09:42:16 +000012394ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000012395
a.rottmann84e63352003-03-24 09:42:16 +000012396if $ac_cs_silent; then
12397 exec 6>/dev/null
12398 ac_configure_extra_args="$ac_configure_extra_args --silent"
12399fi
drh71eb93e2001-09-28 01:34:43 +000012400
12401_ACEOF
drh8b727472009-01-19 18:18:40 +000012402cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000012403if \$ac_cs_recheck; then
drhf922ca42015-05-14 15:39:18 +000012404 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
drh8b727472009-01-19 18:18:40 +000012405 shift
12406 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12407 CONFIG_SHELL='$SHELL'
12408 export CONFIG_SHELL
12409 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000012410fi
drh71eb93e2001-09-28 01:34:43 +000012411
a.rottmann84e63352003-03-24 09:42:16 +000012412_ACEOF
drh8b727472009-01-19 18:18:40 +000012413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12414exec 5>>config.log
12415{
12416 echo
12417 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12418## Running $as_me. ##
12419_ASBOX
12420 $as_echo "$ac_log"
12421} >&5
a.rottmann84e63352003-03-24 09:42:16 +000012422
drh8b727472009-01-19 18:18:40 +000012423_ACEOF
12424cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech636a9952008-05-05 22:52:56 +000012425#
drh8b727472009-01-19 18:18:40 +000012426# INIT-COMMANDS
mlcreech636a9952008-05-05 22:52:56 +000012427#
12428
12429
12430# The HP-UX ksh and POSIX shell print the target directory to stdout
12431# if CDPATH is set.
12432(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12433
12434sed_quote_subst='$sed_quote_subst'
12435double_quote_subst='$double_quote_subst'
12436delay_variable_subst='$delay_variable_subst'
12437macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12438macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12439enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12440enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12441pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12442enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12443host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12444host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12445host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12446build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12447build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12448build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12449SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12450Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12451GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12452EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12453FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12454LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12455NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12456LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12457max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12458ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12459exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12460lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12461lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12462lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12463reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12464reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
vapier6acb2cf2009-01-28 04:46:28 +000012465OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
mlcreech636a9952008-05-05 22:52:56 +000012466deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12467file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12468AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12469AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12470STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12471RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12472old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12473old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12474old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12475CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12476CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12477compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12478GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12479lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12480lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12481lt_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"`'
12482lt_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"`'
12483objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12484SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12485ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12486MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12487lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12488lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12489lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12490lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12491lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12492need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12493DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12494NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12495LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12496OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12497OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12498libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12499shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12500extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12501archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12502enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12503export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12504whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12505compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12506old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12507old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12508archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12509archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12510module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12511module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12512with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12513allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12514no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12515hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12516hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12517hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12518hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12519hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12520hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12521hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12522hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12523inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12524link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12525fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12526always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12527export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12528exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12529include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12530prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12531file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12532variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12533need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12534need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12535version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12536runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12537shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12538shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12539libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12540library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12541soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12542postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12543postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12544finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12545finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12546hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12547sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12548sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12549hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12550enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12551enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12552enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12553old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12554striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12555
12556LTCC='$LTCC'
12557LTCFLAGS='$LTCFLAGS'
12558compiler='$compiler_DEFAULT'
12559
12560# Quote evaled strings.
12561for var in SED \
12562GREP \
12563EGREP \
12564FGREP \
12565LD \
12566NM \
12567LN_S \
12568lt_SP2NL \
12569lt_NL2SP \
12570reload_flag \
vapier6acb2cf2009-01-28 04:46:28 +000012571OBJDUMP \
mlcreech636a9952008-05-05 22:52:56 +000012572deplibs_check_method \
12573file_magic_cmd \
12574AR \
12575AR_FLAGS \
12576STRIP \
12577RANLIB \
12578CC \
12579CFLAGS \
12580compiler \
12581lt_cv_sys_global_symbol_pipe \
12582lt_cv_sys_global_symbol_to_cdecl \
12583lt_cv_sys_global_symbol_to_c_name_address \
12584lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12585SHELL \
12586ECHO \
12587lt_prog_compiler_no_builtin_flag \
12588lt_prog_compiler_wl \
12589lt_prog_compiler_pic \
12590lt_prog_compiler_static \
12591lt_cv_prog_compiler_c_o \
12592need_locks \
12593DSYMUTIL \
12594NMEDIT \
12595LIPO \
12596OTOOL \
12597OTOOL64 \
12598shrext_cmds \
12599export_dynamic_flag_spec \
12600whole_archive_flag_spec \
12601compiler_needs_object \
12602with_gnu_ld \
12603allow_undefined_flag \
12604no_undefined_flag \
12605hardcode_libdir_flag_spec \
12606hardcode_libdir_flag_spec_ld \
12607hardcode_libdir_separator \
12608fix_srcfile_path \
12609exclude_expsyms \
12610include_expsyms \
12611file_list_spec \
12612variables_saved_for_relink \
12613libname_spec \
12614library_names_spec \
12615soname_spec \
12616finish_eval \
12617old_striplib \
12618striplib; do
12619 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12620 *[\\\\\\\`\\"\\\$]*)
12621 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12622 ;;
12623 *)
12624 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12625 ;;
12626 esac
12627done
12628
12629# Double-quote double-evaled strings.
12630for var in reload_cmds \
12631old_postinstall_cmds \
12632old_postuninstall_cmds \
12633old_archive_cmds \
12634extract_expsyms_cmds \
12635old_archive_from_new_cmds \
12636old_archive_from_expsyms_cmds \
12637archive_cmds \
12638archive_expsym_cmds \
12639module_cmds \
12640module_expsym_cmds \
12641export_symbols_cmds \
12642prelink_cmds \
12643postinstall_cmds \
12644postuninstall_cmds \
12645finish_cmds \
12646sys_lib_search_path_spec \
12647sys_lib_dlsearch_path_spec; do
12648 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12649 *[\\\\\\\`\\"\\\$]*)
12650 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12651 ;;
12652 *)
12653 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12654 ;;
12655 esac
12656done
12657
12658# Fix-up fallback echo if it was mangled by the above quoting rules.
12659case \$lt_ECHO in
12660*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12661 ;;
12662esac
12663
12664ac_aux_dir='$ac_aux_dir'
12665xsi_shell='$xsi_shell'
12666lt_shell_append='$lt_shell_append'
12667
12668# See if we are running on zsh, and set the options which allow our
12669# commands through without removal of \ escapes INIT.
12670if test -n "\${ZSH_VERSION+set}" ; then
12671 setopt NO_GLOB_SUBST
12672fi
12673
12674
12675 PACKAGE='$PACKAGE'
12676 VERSION='$VERSION'
12677 TIMESTAMP='$TIMESTAMP'
12678 RM='$RM'
12679 ofile='$ofile'
12680
12681
12682
12683
mlcreech94984912008-03-04 19:03:08 +000012684_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012685
drh8b727472009-01-19 18:18:40 +000012686cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000012687
drh8b727472009-01-19 18:18:40 +000012688# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000012689for ac_config_target in $ac_config_targets
12690do
drh8b727472009-01-19 18:18:40 +000012691 case $ac_config_target in
12692 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12693 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12694 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12695 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12696
drhf922ca42015-05-14 15:39:18 +000012697 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
drh71eb93e2001-09-28 01:34:43 +000012698 esac
12699done
12700
drh8b727472009-01-19 18:18:40 +000012701
drh71eb93e2001-09-28 01:34:43 +000012702# If the user did not use the arguments to specify the items to instantiate,
12703# then the envvar interface is used. Set only those that are not.
12704# We use the long form for the default assignment because of an extremely
12705# bizarre bug on SunOS 4.1.3.
12706if $ac_need_defaults; then
12707 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000012708 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000012709 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000012710fi
12711
a.rottmann84e63352003-03-24 09:42:16 +000012712# Have a temporary directory for convenience. Make it in the build tree
drh8b727472009-01-19 18:18:40 +000012713# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000012714# creating and moving files from /tmp can sometimes cause problems.
drh8b727472009-01-19 18:18:40 +000012715# Hook for its removal unless debugging.
12716# Note that there is a small window in which the directory will not be cleaned:
12717# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000012718$debug ||
12719{
drhf922ca42015-05-14 15:39:18 +000012720 tmp= ac_tmp=
drh8b727472009-01-19 18:18:40 +000012721 trap 'exit_status=$?
drhf922ca42015-05-14 15:39:18 +000012722 : "${ac_tmp:=$tmp}"
12723 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
drh8b727472009-01-19 18:18:40 +000012724' 0
drhf922ca42015-05-14 15:39:18 +000012725 trap 'as_fn_exit 1' 1 2 13 15
drh71eb93e2001-09-28 01:34:43 +000012726}
drh71eb93e2001-09-28 01:34:43 +000012727# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000012728
drh71eb93e2001-09-28 01:34:43 +000012729{
drh8b727472009-01-19 18:18:40 +000012730 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drhf922ca42015-05-14 15:39:18 +000012731 test -d "$tmp"
drh71eb93e2001-09-28 01:34:43 +000012732} ||
12733{
drh8b727472009-01-19 18:18:40 +000012734 tmp=./conf$$-$RANDOM
12735 (umask 077 && mkdir "$tmp")
drhf922ca42015-05-14 15:39:18 +000012736} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12737ac_tmp=$tmp
drh71eb93e2001-09-28 01:34:43 +000012738
drh8b727472009-01-19 18:18:40 +000012739# Set up the scripts for CONFIG_FILES section.
12740# No need to generate them if there are no CONFIG_FILES.
12741# This happens for instance with `./config.status config.h'.
12742if test -n "$CONFIG_FILES"; then
12743
12744
drhf922ca42015-05-14 15:39:18 +000012745ac_cr=`echo X | tr X '\015'`
12746# On cygwin, bash can eat \r inside `` if the user requested igncr.
12747# But we know of no other shell where ac_cr would be empty at this
12748# point, so we can use a bashism as a fallback.
12749if test "x$ac_cr" = x; then
12750 eval ac_cr=\$\'\\r\'
12751fi
drh8b727472009-01-19 18:18:40 +000012752ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12753if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
drh0fe0c462011-09-22 00:56:38 +000012754 ac_cs_awk_cr='\\r'
drh8b727472009-01-19 18:18:40 +000012755else
12756 ac_cs_awk_cr=$ac_cr
12757fi
12758
drhf922ca42015-05-14 15:39:18 +000012759echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000012760_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012761
mlcreech94984912008-03-04 19:03:08 +000012762
drh8b727472009-01-19 18:18:40 +000012763{
12764 echo "cat >conf$$subs.awk <<_ACEOF" &&
12765 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12766 echo "_ACEOF"
12767} >conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012768 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12769ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
drh8b727472009-01-19 18:18:40 +000012770ac_delim='%!_!# '
12771for ac_last_try in false false false false false :; do
12772 . ./conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012773 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000012774
drhf922ca42015-05-14 15:39:18 +000012775 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12776 if test $ac_delim_n = $ac_delim_num; then
drh8b727472009-01-19 18:18:40 +000012777 break
12778 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012779 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012780 else
12781 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000012782 fi
drh8b727472009-01-19 18:18:40 +000012783done
12784rm -f conf$$subs.sh
12785
12786cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012787cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012788_ACEOF
12789sed -n '
12790h
12791s/^/S["/; s/!.*/"]=/
12792p
12793g
12794s/^[^!]*!//
12795:repl
12796t repl
12797s/'"$ac_delim"'$//
12798t delim
12799:nl
12800h
drhf922ca42015-05-14 15:39:18 +000012801s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012802t more1
12803s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12804p
12805n
12806b repl
12807:more1
12808s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12809p
12810g
12811s/.\{148\}//
12812t nl
12813:delim
12814h
drhf922ca42015-05-14 15:39:18 +000012815s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012816t more2
12817s/["\\]/\\&/g; s/^/"/; s/$/"/
12818p
12819b
12820:more2
12821s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12822p
12823g
12824s/.\{148\}//
12825t delim
12826' <conf$$subs.awk | sed '
12827/^[^""]/{
12828 N
12829 s/\n//
12830}
12831' >>$CONFIG_STATUS || ac_write_fail=1
12832rm -f conf$$subs.awk
12833cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12834_ACAWK
drhf922ca42015-05-14 15:39:18 +000012835cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012836 for (key in S) S_is_set[key] = 1
12837 FS = ""
12838
12839}
12840{
12841 line = $ 0
12842 nfields = split(line, field, "@")
12843 substed = 0
12844 len = length(field[1])
12845 for (i = 2; i < nfields; i++) {
12846 key = field[i]
12847 keylen = length(key)
12848 if (S_is_set[key]) {
12849 value = S[key]
12850 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12851 len += length(value) + length(field[++i])
12852 substed = 1
12853 } else
12854 len += 1 + keylen
12855 }
12856
12857 print line
12858}
12859
12860_ACAWK
12861_ACEOF
12862cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12863if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12864 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12865else
12866 cat
drhf922ca42015-05-14 15:39:18 +000012867fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12868 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012869_ACEOF
12870
drhf922ca42015-05-14 15:39:18 +000012871# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12872# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
drh8b727472009-01-19 18:18:40 +000012873# trailing colons and then remove the whole line if VPATH becomes empty
12874# (actually we leave an empty line to preserve line numbers).
12875if test "x$srcdir" = x.; then
drhf922ca42015-05-14 15:39:18 +000012876 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12877h
12878s///
12879s/^/:/
12880s/[ ]*$/:/
12881s/:\$(srcdir):/:/g
12882s/:\${srcdir}:/:/g
12883s/:@srcdir@:/:/g
12884s/^:*//
drh8b727472009-01-19 18:18:40 +000012885s/:*$//
drhf922ca42015-05-14 15:39:18 +000012886x
12887s/\(=[ ]*\).*/\1/
12888G
12889s/\n//
drh8b727472009-01-19 18:18:40 +000012890s/^[^=]*=[ ]*$//
12891}'
12892fi
12893
12894cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012895fi # test -n "$CONFIG_FILES"
12896
drh8b727472009-01-19 18:18:40 +000012897# Set up the scripts for CONFIG_HEADERS section.
12898# No need to generate them if there are no CONFIG_HEADERS.
12899# This happens for instance with `./config.status Makefile'.
12900if test -n "$CONFIG_HEADERS"; then
drhf922ca42015-05-14 15:39:18 +000012901cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
drh8b727472009-01-19 18:18:40 +000012902BEGIN {
mlcreech636a9952008-05-05 22:52:56 +000012903_ACEOF
drh8b727472009-01-19 18:18:40 +000012904
12905# Transform confdefs.h into an awk script `defines.awk', embedded as
12906# here-document in config.status, that substitutes the proper values into
12907# config.h.in to produce config.h.
12908
12909# Create a delimiter string that does not exist in confdefs.h, to ease
12910# handling of long lines.
12911ac_delim='%!_!# '
12912for ac_last_try in false false :; do
drhf922ca42015-05-14 15:39:18 +000012913 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12914 if test -z "$ac_tt"; then
drh8b727472009-01-19 18:18:40 +000012915 break
12916 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012917 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012918 else
12919 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12920 fi
12921done
12922
12923# For the awk script, D is an array of macro values keyed by name,
12924# likewise P contains macro parameters if any. Preserve backslash
12925# newline sequences.
12926
12927ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12928sed -n '
12929s/.\{148\}/&'"$ac_delim"'/g
12930t rset
12931:rset
12932s/^[ ]*#[ ]*define[ ][ ]*/ /
12933t def
12934d
12935:def
12936s/\\$//
12937t bsnl
12938s/["\\]/\\&/g
12939s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12940D["\1"]=" \3"/p
12941s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12942d
12943:bsnl
12944s/["\\]/\\&/g
12945s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12946D["\1"]=" \3\\\\\\n"\\/p
12947t cont
12948s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12949t cont
12950d
12951:cont
12952n
12953s/.\{148\}/&'"$ac_delim"'/g
12954t clear
12955:clear
12956s/\\$//
12957t bsnlc
12958s/["\\]/\\&/g; s/^/"/; s/$/"/p
12959d
12960:bsnlc
12961s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12962b cont
12963' <confdefs.h | sed '
12964s/'"$ac_delim"'/"\\\
12965"/g' >>$CONFIG_STATUS || ac_write_fail=1
12966
12967cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12968 for (key in D) D_is_set[key] = 1
12969 FS = ""
12970}
12971/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12972 line = \$ 0
12973 split(line, arg, " ")
12974 if (arg[1] == "#") {
12975 defundef = arg[2]
12976 mac1 = arg[3]
12977 } else {
12978 defundef = substr(arg[1], 2)
12979 mac1 = arg[2]
12980 }
12981 split(mac1, mac2, "(") #)
12982 macro = mac2[1]
drhf922ca42015-05-14 15:39:18 +000012983 prefix = substr(line, 1, index(line, defundef) - 1)
drh8b727472009-01-19 18:18:40 +000012984 if (D_is_set[macro]) {
12985 # Preserve the white space surrounding the "#".
drh8b727472009-01-19 18:18:40 +000012986 print prefix "define", macro P[macro] D[macro]
12987 next
12988 } else {
12989 # Replace #undef with comments. This is necessary, for example,
12990 # in the case of _POSIX_SOURCE, which is predefined and required
12991 # on some systems where configure will not decide to define it.
12992 if (defundef == "undef") {
drhf922ca42015-05-14 15:39:18 +000012993 print "/*", prefix defundef, macro, "*/"
drh8b727472009-01-19 18:18:40 +000012994 next
12995 }
12996 }
12997}
12998{ print }
12999_ACAWK
13000_ACEOF
13001cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000013002 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013003fi # test -n "$CONFIG_HEADERS"
13004
13005
13006eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13007shift
13008for ac_tag
13009do
13010 case $ac_tag in
13011 :[FHLC]) ac_mode=$ac_tag; continue;;
13012 esac
13013 case $ac_mode$ac_tag in
13014 :[FHL]*:*);;
drhf922ca42015-05-14 15:39:18 +000013015 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000013016 :[FH]-) ac_tag=-:-;;
13017 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13018 esac
13019 ac_save_IFS=$IFS
13020 IFS=:
13021 set x $ac_tag
13022 IFS=$ac_save_IFS
13023 shift
13024 ac_file=$1
13025 shift
13026
13027 case $ac_mode in
13028 :L) ac_source=$1;;
13029 :[FH])
13030 ac_file_inputs=
13031 for ac_f
13032 do
13033 case $ac_f in
drhf922ca42015-05-14 15:39:18 +000013034 -) ac_f="$ac_tmp/stdin";;
drh8b727472009-01-19 18:18:40 +000013035 *) # Look for the file first in the build tree, then in the source tree
13036 # (if the path is not absolute). The absolute path cannot be DOS-style,
13037 # because $ac_f cannot contain `:'.
13038 test -f "$ac_f" ||
13039 case $ac_f in
13040 [\\/$]*) false;;
13041 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13042 esac ||
drhf922ca42015-05-14 15:39:18 +000013043 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000013044 esac
13045 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
drhf922ca42015-05-14 15:39:18 +000013046 as_fn_append ac_file_inputs " '$ac_f'"
drh8b727472009-01-19 18:18:40 +000013047 done
13048
13049 # Let's still pretend it is `configure' which instantiates (i.e., don't
13050 # use $as_me), people would be surprised to read:
13051 # /* config.h. Generated by config.status. */
13052 configure_input='Generated from '`
13053 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13054 `' by configure.'
13055 if test x"$ac_file" != x-; then
13056 configure_input="$ac_file. $configure_input"
drhf922ca42015-05-14 15:39:18 +000013057 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
drh8b727472009-01-19 18:18:40 +000013058$as_echo "$as_me: creating $ac_file" >&6;}
13059 fi
13060 # Neutralize special characters interpreted by sed in replacement strings.
13061 case $configure_input in #(
13062 *\&* | *\|* | *\\* )
13063 ac_sed_conf_input=`$as_echo "$configure_input" |
13064 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13065 *) ac_sed_conf_input=$configure_input;;
13066 esac
13067
13068 case $ac_tag in
drhf922ca42015-05-14 15:39:18 +000013069 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13070 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
drh8b727472009-01-19 18:18:40 +000013071 esac
13072 ;;
drh71eb93e2001-09-28 01:34:43 +000013073 esac
13074
drh8b727472009-01-19 18:18:40 +000013075 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000013076$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000013077 X"$ac_file" : 'X\(//\)[^/]' \| \
13078 X"$ac_file" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000013079 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13080$as_echo X"$ac_file" |
13081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13082 s//\1/
13083 q
13084 }
13085 /^X\(\/\/\)[^/].*/{
13086 s//\1/
13087 q
13088 }
13089 /^X\(\/\/\)$/{
13090 s//\1/
13091 q
13092 }
13093 /^X\(\/\).*/{
13094 s//\1/
13095 q
13096 }
13097 s/.*/./; q'`
drhf922ca42015-05-14 15:39:18 +000013098 as_dir="$ac_dir"; as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000013099 ac_builddir=.
13100
drh8b727472009-01-19 18:18:40 +000013101case "$ac_dir" in
13102.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13103*)
13104 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13105 # A ".." for each directory in $ac_dir_suffix.
13106 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13107 case $ac_top_builddir_sub in
13108 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13109 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13110 esac ;;
13111esac
13112ac_abs_top_builddir=$ac_pwd
13113ac_abs_builddir=$ac_pwd$ac_dir_suffix
13114# for backward compatibility:
13115ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000013116
13117case $srcdir in
drh8b727472009-01-19 18:18:40 +000013118 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000013119 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +000013120 ac_top_srcdir=$ac_top_builddir_sub
13121 ac_abs_top_srcdir=$ac_pwd ;;
13122 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000013123 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +000013124 ac_top_srcdir=$srcdir
13125 ac_abs_top_srcdir=$srcdir ;;
13126 *) # Relative name.
13127 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13128 ac_top_srcdir=$ac_top_build_prefix$srcdir
13129 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000013130esac
drh8b727472009-01-19 18:18:40 +000013131ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000013132
a.rottmann84e63352003-03-24 09:42:16 +000013133
drh8b727472009-01-19 18:18:40 +000013134 case $ac_mode in
13135 :F)
13136 #
13137 # CONFIG_FILE
13138 #
drh75897232000-05-29 14:26:00 +000013139
drh71eb93e2001-09-28 01:34:43 +000013140 case $INSTALL in
13141 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh8b727472009-01-19 18:18:40 +000013142 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000013143 esac
mlcreech94984912008-03-04 19:03:08 +000013144_ACEOF
drh8b727472009-01-19 18:18:40 +000013145
13146cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13147# If the template does not know about datarootdir, expand it.
13148# FIXME: This hack should be removed a few years after 2.60.
13149ac_datarootdir_hack=; ac_datarootdir_seen=
drh8b727472009-01-19 18:18:40 +000013150ac_sed_dataroot='
13151/datarootdir/ {
13152 p
13153 q
13154}
13155/@datadir@/p
13156/@docdir@/p
13157/@infodir@/p
13158/@localedir@/p
drhf922ca42015-05-14 15:39:18 +000013159/@mandir@/p'
drh8b727472009-01-19 18:18:40 +000013160case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13161*datarootdir*) ac_datarootdir_seen=yes;;
13162*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
drhf922ca42015-05-14 15:39:18 +000013163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
drh8b727472009-01-19 18:18:40 +000013164$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13165_ACEOF
13166cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13167 ac_datarootdir_hack='
13168 s&@datadir@&$datadir&g
13169 s&@docdir@&$docdir&g
13170 s&@infodir@&$infodir&g
13171 s&@localedir@&$localedir&g
13172 s&@mandir@&$mandir&g
drhf922ca42015-05-14 15:39:18 +000013173 s&\\\${datarootdir}&$datarootdir&g' ;;
drh8b727472009-01-19 18:18:40 +000013174esac
13175_ACEOF
13176
13177# Neutralize VPATH when `$srcdir' = `.'.
13178# Shell code in configure.ac might set extrasub.
13179# FIXME: do we really want to maintain this feature?
13180cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13181ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000013182$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000013183_ACEOF
drh8b727472009-01-19 18:18:40 +000013184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013185:t
13186/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh8b727472009-01-19 18:18:40 +000013187s|@configure_input@|$ac_sed_conf_input|;t t
13188s&@top_builddir@&$ac_top_builddir_sub&;t t
13189s&@top_build_prefix@&$ac_top_build_prefix&;t t
13190s&@srcdir@&$ac_srcdir&;t t
13191s&@abs_srcdir@&$ac_abs_srcdir&;t t
13192s&@top_srcdir@&$ac_top_srcdir&;t t
13193s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13194s&@builddir@&$ac_builddir&;t t
13195s&@abs_builddir@&$ac_abs_builddir&;t t
13196s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13197s&@INSTALL@&$ac_INSTALL&;t t
13198$ac_datarootdir_hack
13199"
drhf922ca42015-05-14 15:39:18 +000013200eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13201 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000013202
drh8b727472009-01-19 18:18:40 +000013203test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
drhf922ca42015-05-14 15:39:18 +000013204 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13205 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13206 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13208which seems to be undefined. Please make sure it is defined" >&5
drh8b727472009-01-19 18:18:40 +000013209$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
drhf922ca42015-05-14 15:39:18 +000013210which seems to be undefined. Please make sure it is defined" >&2;}
drh866108f2008-05-13 00:57:21 +000013211
drhf922ca42015-05-14 15:39:18 +000013212 rm -f "$ac_tmp/stdin"
drh866108f2008-05-13 00:57:21 +000013213 case $ac_file in
drhf922ca42015-05-14 15:39:18 +000013214 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13215 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
drh8b727472009-01-19 18:18:40 +000013216 esac \
drhf922ca42015-05-14 15:39:18 +000013217 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013218 ;;
13219 :H)
13220 #
13221 # CONFIG_HEADER
13222 #
drh866108f2008-05-13 00:57:21 +000013223 if test x"$ac_file" != x-; then
drh8b727472009-01-19 18:18:40 +000013224 {
13225 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000013226 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13227 } >"$ac_tmp/config.h" \
13228 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13229 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
drh8b727472009-01-19 18:18:40 +000013231$as_echo "$as_me: $ac_file is unchanged" >&6;}
drh866108f2008-05-13 00:57:21 +000013232 else
drh8b727472009-01-19 18:18:40 +000013233 rm -f "$ac_file"
drhf922ca42015-05-14 15:39:18 +000013234 mv "$ac_tmp/config.h" "$ac_file" \
13235 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000013236 fi
13237 else
drh8b727472009-01-19 18:18:40 +000013238 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000013239 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13240 || as_fn_error $? "could not create -" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000013241 fi
drh8b727472009-01-19 18:18:40 +000013242 ;;
drh866108f2008-05-13 00:57:21 +000013243
drhf922ca42015-05-14 15:39:18 +000013244 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
drh8b727472009-01-19 18:18:40 +000013245$as_echo "$as_me: executing $ac_file commands" >&6;}
13246 ;;
13247 esac
drh866108f2008-05-13 00:57:21 +000013248
13249
drh8b727472009-01-19 18:18:40 +000013250 case $ac_file$ac_mode in
13251 "libtool":C)
mlcreech636a9952008-05-05 22:52:56 +000013252
13253 # See if we are running on zsh, and set the options which allow our
13254 # commands through without removal of \ escapes.
13255 if test -n "${ZSH_VERSION+set}" ; then
13256 setopt NO_GLOB_SUBST
13257 fi
13258
13259 cfgfile="${ofile}T"
13260 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13261 $RM "$cfgfile"
13262
13263 cat <<_LT_EOF >> "$cfgfile"
13264#! $SHELL
13265
13266# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13267# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13268# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13269# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13270#
13271# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13272# 2006, 2007, 2008 Free Software Foundation, Inc.
13273# Written by Gordon Matzigkeit, 1996
13274#
13275# This file is part of GNU Libtool.
13276#
13277# GNU Libtool is free software; you can redistribute it and/or
13278# modify it under the terms of the GNU General Public License as
13279# published by the Free Software Foundation; either version 2 of
13280# the License, or (at your option) any later version.
13281#
13282# As a special exception to the GNU General Public License,
13283# if you distribute this file as part of a program or library that
13284# is built using GNU Libtool, you may include this file under the
13285# same distribution terms that you use for the rest of that program.
13286#
13287# GNU Libtool is distributed in the hope that it will be useful,
13288# but WITHOUT ANY WARRANTY; without even the implied warranty of
13289# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13290# GNU General Public License for more details.
13291#
13292# You should have received a copy of the GNU General Public License
13293# along with GNU Libtool; see the file COPYING. If not, a copy
13294# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13295# obtained by writing to the Free Software Foundation, Inc.,
13296# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13297
13298
13299# The names of the tagged configurations supported by this script.
13300available_tags=""
13301
13302# ### BEGIN LIBTOOL CONFIG
13303
13304# Which release of libtool.m4 was used?
13305macro_version=$macro_version
13306macro_revision=$macro_revision
13307
13308# Whether or not to build shared libraries.
13309build_libtool_libs=$enable_shared
13310
13311# Whether or not to build static libraries.
13312build_old_libs=$enable_static
13313
13314# What type of objects to build.
13315pic_mode=$pic_mode
13316
13317# Whether or not to optimize for fast installation.
13318fast_install=$enable_fast_install
13319
13320# The host system.
13321host_alias=$host_alias
13322host=$host
13323host_os=$host_os
13324
13325# The build system.
13326build_alias=$build_alias
13327build=$build
13328build_os=$build_os
13329
13330# A sed program that does not truncate output.
13331SED=$lt_SED
13332
13333# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13334Xsed="\$SED -e 1s/^X//"
13335
13336# A grep program that handles long lines.
13337GREP=$lt_GREP
13338
13339# An ERE matcher.
13340EGREP=$lt_EGREP
13341
13342# A literal string matcher.
13343FGREP=$lt_FGREP
13344
13345# A BSD- or MS-compatible name lister.
13346NM=$lt_NM
13347
13348# Whether we need soft or hard links.
13349LN_S=$lt_LN_S
13350
13351# What is the maximum length of a command?
13352max_cmd_len=$max_cmd_len
13353
13354# Object file suffix (normally "o").
13355objext=$ac_objext
13356
13357# Executable file suffix (normally "").
13358exeext=$exeext
13359
13360# whether the shell understands "unset".
13361lt_unset=$lt_unset
13362
13363# turn spaces into newlines.
13364SP2NL=$lt_lt_SP2NL
13365
13366# turn newlines into spaces.
13367NL2SP=$lt_lt_NL2SP
13368
13369# How to create reloadable object files.
13370reload_flag=$lt_reload_flag
13371reload_cmds=$lt_reload_cmds
13372
vapier6acb2cf2009-01-28 04:46:28 +000013373# An object symbol dumper.
13374OBJDUMP=$lt_OBJDUMP
13375
mlcreech636a9952008-05-05 22:52:56 +000013376# Method to check whether dependent libraries are shared objects.
13377deplibs_check_method=$lt_deplibs_check_method
13378
13379# Command to use when deplibs_check_method == "file_magic".
13380file_magic_cmd=$lt_file_magic_cmd
13381
13382# The archiver.
13383AR=$lt_AR
13384AR_FLAGS=$lt_AR_FLAGS
13385
13386# A symbol stripping program.
13387STRIP=$lt_STRIP
13388
13389# Commands used to install an old-style archive.
13390RANLIB=$lt_RANLIB
13391old_postinstall_cmds=$lt_old_postinstall_cmds
13392old_postuninstall_cmds=$lt_old_postuninstall_cmds
13393
13394# A C compiler.
13395LTCC=$lt_CC
13396
13397# LTCC compiler flags.
13398LTCFLAGS=$lt_CFLAGS
13399
13400# Take the output of nm and produce a listing of raw symbols and C names.
13401global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13402
13403# Transform the output of nm in a proper C declaration.
13404global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13405
13406# Transform the output of nm in a C name address pair.
13407global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13408
13409# Transform the output of nm in a C name address pair when lib prefix is needed.
13410global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13411
13412# The name of the directory that contains temporary libtool files.
13413objdir=$objdir
13414
13415# Shell to use when invoking shell scripts.
13416SHELL=$lt_SHELL
13417
13418# An echo program that does not interpret backslashes.
13419ECHO=$lt_ECHO
13420
13421# Used to examine libraries when file_magic_cmd begins with "file".
13422MAGIC_CMD=$MAGIC_CMD
13423
13424# Must we lock files when doing compilation?
13425need_locks=$lt_need_locks
13426
13427# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13428DSYMUTIL=$lt_DSYMUTIL
13429
13430# Tool to change global to local symbols on Mac OS X.
13431NMEDIT=$lt_NMEDIT
13432
13433# Tool to manipulate fat objects and archives on Mac OS X.
13434LIPO=$lt_LIPO
13435
13436# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13437OTOOL=$lt_OTOOL
13438
13439# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13440OTOOL64=$lt_OTOOL64
13441
13442# Old archive suffix (normally "a").
13443libext=$libext
13444
13445# Shared library suffix (normally ".so").
13446shrext_cmds=$lt_shrext_cmds
13447
13448# The commands to extract the exported symbol list from a shared archive.
13449extract_expsyms_cmds=$lt_extract_expsyms_cmds
13450
13451# Variables whose values should be saved in libtool wrapper scripts and
13452# restored at link time.
13453variables_saved_for_relink=$lt_variables_saved_for_relink
13454
13455# Do we need the "lib" prefix for modules?
13456need_lib_prefix=$need_lib_prefix
13457
13458# Do we need a version for libraries?
13459need_version=$need_version
13460
13461# Library versioning type.
13462version_type=$version_type
13463
13464# Shared library runtime path variable.
13465runpath_var=$runpath_var
13466
13467# Shared library path variable.
13468shlibpath_var=$shlibpath_var
13469
13470# Is shlibpath searched before the hard-coded library search path?
13471shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13472
13473# Format of library name prefix.
13474libname_spec=$lt_libname_spec
13475
13476# List of archive names. First name is the real one, the rest are links.
13477# The last name is the one that the linker finds with -lNAME
13478library_names_spec=$lt_library_names_spec
13479
13480# The coded name of the library, if different from the real name.
13481soname_spec=$lt_soname_spec
13482
13483# Command to use after installation of a shared archive.
13484postinstall_cmds=$lt_postinstall_cmds
13485
13486# Command to use after uninstallation of a shared archive.
13487postuninstall_cmds=$lt_postuninstall_cmds
13488
13489# Commands used to finish a libtool library installation in a directory.
13490finish_cmds=$lt_finish_cmds
13491
13492# As "finish_cmds", except a single script fragment to be evaled but
13493# not shown.
13494finish_eval=$lt_finish_eval
13495
13496# Whether we should hardcode library paths into libraries.
13497hardcode_into_libs=$hardcode_into_libs
13498
13499# Compile-time system search path for libraries.
13500sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13501
13502# Run-time system search path for libraries.
13503sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13504
13505# Whether dlopen is supported.
13506dlopen_support=$enable_dlopen
13507
13508# Whether dlopen of programs is supported.
13509dlopen_self=$enable_dlopen_self
13510
13511# Whether dlopen of statically linked programs is supported.
13512dlopen_self_static=$enable_dlopen_self_static
13513
13514# Commands to strip libraries.
13515old_striplib=$lt_old_striplib
13516striplib=$lt_striplib
13517
13518
13519# The linker used to build libraries.
13520LD=$lt_LD
13521
13522# Commands used to build an old-style archive.
13523old_archive_cmds=$lt_old_archive_cmds
13524
13525# A language specific compiler.
13526CC=$lt_compiler
13527
13528# Is the compiler the GNU compiler?
13529with_gcc=$GCC
13530
13531# Compiler flag to turn off builtin functions.
13532no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13533
13534# How to pass a linker flag through the compiler.
13535wl=$lt_lt_prog_compiler_wl
13536
13537# Additional compiler flags for building library objects.
13538pic_flag=$lt_lt_prog_compiler_pic
13539
13540# Compiler flag to prevent dynamic linking.
13541link_static_flag=$lt_lt_prog_compiler_static
13542
13543# Does compiler simultaneously support -c and -o options?
13544compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13545
13546# Whether or not to add -lc for building shared libraries.
13547build_libtool_need_lc=$archive_cmds_need_lc
13548
13549# Whether or not to disallow shared libs when runtime libs are static.
13550allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13551
13552# Compiler flag to allow reflexive dlopens.
13553export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13554
13555# Compiler flag to generate shared objects directly from archives.
13556whole_archive_flag_spec=$lt_whole_archive_flag_spec
13557
13558# Whether the compiler copes with passing no objects directly.
13559compiler_needs_object=$lt_compiler_needs_object
13560
13561# Create an old-style archive from a shared archive.
13562old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13563
13564# Create a temporary old-style archive to link instead of a shared archive.
13565old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13566
13567# Commands used to build a shared archive.
13568archive_cmds=$lt_archive_cmds
13569archive_expsym_cmds=$lt_archive_expsym_cmds
13570
13571# Commands used to build a loadable module if different from building
13572# a shared archive.
13573module_cmds=$lt_module_cmds
13574module_expsym_cmds=$lt_module_expsym_cmds
13575
13576# Whether we are building with GNU ld or not.
13577with_gnu_ld=$lt_with_gnu_ld
13578
13579# Flag that allows shared libraries with undefined symbols to be built.
13580allow_undefined_flag=$lt_allow_undefined_flag
13581
13582# Flag that enforces no undefined symbols.
13583no_undefined_flag=$lt_no_undefined_flag
13584
13585# Flag to hardcode \$libdir into a binary during linking.
13586# This must work even if \$libdir does not exist
13587hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13588
13589# If ld is used when linking, flag to hardcode \$libdir into a binary
13590# during linking. This must work even if \$libdir does not exist.
13591hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13592
13593# Whether we need a single "-rpath" flag with a separated argument.
13594hardcode_libdir_separator=$lt_hardcode_libdir_separator
13595
13596# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13597# DIR into the resulting binary.
13598hardcode_direct=$hardcode_direct
13599
13600# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13601# DIR into the resulting binary and the resulting library dependency is
13602# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13603# library is relocated.
13604hardcode_direct_absolute=$hardcode_direct_absolute
13605
13606# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13607# into the resulting binary.
13608hardcode_minus_L=$hardcode_minus_L
13609
13610# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13611# into the resulting binary.
13612hardcode_shlibpath_var=$hardcode_shlibpath_var
13613
13614# Set to "yes" if building a shared library automatically hardcodes DIR
13615# into the library and all subsequent libraries and executables linked
13616# against it.
13617hardcode_automatic=$hardcode_automatic
13618
13619# Set to yes if linker adds runtime paths of dependent libraries
13620# to runtime path list.
13621inherit_rpath=$inherit_rpath
13622
13623# Whether libtool must link a program against all its dependency libraries.
13624link_all_deplibs=$link_all_deplibs
13625
13626# Fix the shell variable \$srcfile for the compiler.
13627fix_srcfile_path=$lt_fix_srcfile_path
13628
13629# Set to "yes" if exported symbols are required.
13630always_export_symbols=$always_export_symbols
13631
13632# The commands to list exported symbols.
13633export_symbols_cmds=$lt_export_symbols_cmds
13634
13635# Symbols that should not be listed in the preloaded symbols.
13636exclude_expsyms=$lt_exclude_expsyms
13637
13638# Symbols that must always be exported.
13639include_expsyms=$lt_include_expsyms
13640
13641# Commands necessary for linking programs (against libraries) with templates.
13642prelink_cmds=$lt_prelink_cmds
13643
13644# Specify filename containing input files.
13645file_list_spec=$lt_file_list_spec
13646
13647# How to hardcode a shared library path into an executable.
13648hardcode_action=$hardcode_action
13649
13650# ### END LIBTOOL CONFIG
13651
13652_LT_EOF
13653
13654 case $host_os in
13655 aix3*)
13656 cat <<\_LT_EOF >> "$cfgfile"
13657# AIX sometimes has problems with the GCC collect2 program. For some
13658# reason, if we set the COLLECT_NAMES environment variable, the problems
13659# vanish in a puff of smoke.
13660if test "X${COLLECT_NAMES+set}" != Xset; then
13661 COLLECT_NAMES=
13662 export COLLECT_NAMES
13663fi
13664_LT_EOF
13665 ;;
13666 esac
13667
13668
13669ltmain="$ac_aux_dir/ltmain.sh"
13670
13671
13672 # We use sed instead of cat because bash on DJGPP gets confused if
13673 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13674 # text mode, it properly converts lines to CR/LF. This bash problem
13675 # is reportedly fixed, but why not run on old versions too?
13676 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13677 || (rm -f "$cfgfile"; exit 1)
13678
13679 case $xsi_shell in
13680 yes)
13681 cat << \_LT_EOF >> "$cfgfile"
13682
13683# func_dirname file append nondir_replacement
13684# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13685# otherwise set result to NONDIR_REPLACEMENT.
13686func_dirname ()
13687{
13688 case ${1} in
13689 */*) func_dirname_result="${1%/*}${2}" ;;
13690 * ) func_dirname_result="${3}" ;;
13691 esac
13692}
13693
13694# func_basename file
13695func_basename ()
13696{
13697 func_basename_result="${1##*/}"
13698}
13699
13700# func_dirname_and_basename file append nondir_replacement
13701# perform func_basename and func_dirname in a single function
13702# call:
13703# dirname: Compute the dirname of FILE. If nonempty,
13704# add APPEND to the result, otherwise set result
13705# to NONDIR_REPLACEMENT.
13706# value returned in "$func_dirname_result"
13707# basename: Compute filename of FILE.
13708# value retuned in "$func_basename_result"
13709# Implementation must be kept synchronized with func_dirname
13710# and func_basename. For efficiency, we do not delegate to
13711# those functions but instead duplicate the functionality here.
13712func_dirname_and_basename ()
13713{
13714 case ${1} in
13715 */*) func_dirname_result="${1%/*}${2}" ;;
13716 * ) func_dirname_result="${3}" ;;
13717 esac
13718 func_basename_result="${1##*/}"
13719}
13720
13721# func_stripname prefix suffix name
13722# strip PREFIX and SUFFIX off of NAME.
13723# PREFIX and SUFFIX must not contain globbing or regex special
13724# characters, hashes, percent signs, but SUFFIX may contain a leading
13725# dot (in which case that matches only a dot).
13726func_stripname ()
13727{
13728 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13729 # positional parameters, so assign one to ordinary parameter first.
13730 func_stripname_result=${3}
13731 func_stripname_result=${func_stripname_result#"${1}"}
13732 func_stripname_result=${func_stripname_result%"${2}"}
13733}
13734
13735# func_opt_split
13736func_opt_split ()
13737{
13738 func_opt_split_opt=${1%%=*}
13739 func_opt_split_arg=${1#*=}
13740}
13741
13742# func_lo2o object
13743func_lo2o ()
13744{
13745 case ${1} in
13746 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13747 *) func_lo2o_result=${1} ;;
13748 esac
13749}
13750
13751# func_xform libobj-or-source
13752func_xform ()
13753{
13754 func_xform_result=${1%.*}.lo
13755}
13756
13757# func_arith arithmetic-term...
13758func_arith ()
13759{
13760 func_arith_result=$(( $* ))
13761}
13762
13763# func_len string
13764# STRING may not start with a hyphen.
13765func_len ()
13766{
13767 func_len_result=${#1}
13768}
13769
13770_LT_EOF
13771 ;;
13772 *) # Bourne compatible functions.
13773 cat << \_LT_EOF >> "$cfgfile"
13774
13775# func_dirname file append nondir_replacement
13776# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13777# otherwise set result to NONDIR_REPLACEMENT.
13778func_dirname ()
13779{
13780 # Extract subdirectory from the argument.
13781 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13782 if test "X$func_dirname_result" = "X${1}"; then
13783 func_dirname_result="${3}"
13784 else
13785 func_dirname_result="$func_dirname_result${2}"
13786 fi
13787}
13788
13789# func_basename file
13790func_basename ()
13791{
13792 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13793}
13794
13795
13796# func_stripname prefix suffix name
13797# strip PREFIX and SUFFIX off of NAME.
13798# PREFIX and SUFFIX must not contain globbing or regex special
13799# characters, hashes, percent signs, but SUFFIX may contain a leading
13800# dot (in which case that matches only a dot).
13801# func_strip_suffix prefix name
13802func_stripname ()
13803{
13804 case ${2} in
13805 .*) func_stripname_result=`$ECHO "X${3}" \
13806 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13807 *) func_stripname_result=`$ECHO "X${3}" \
13808 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13809 esac
13810}
13811
13812# sed scripts:
13813my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13814my_sed_long_arg='1s/^-[^=]*=//'
13815
13816# func_opt_split
13817func_opt_split ()
13818{
13819 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13820 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13821}
13822
13823# func_lo2o object
13824func_lo2o ()
13825{
13826 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13827}
13828
13829# func_xform libobj-or-source
13830func_xform ()
13831{
13832 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13833}
13834
13835# func_arith arithmetic-term...
13836func_arith ()
13837{
13838 func_arith_result=`expr "$@"`
13839}
13840
13841# func_len string
13842# STRING may not start with a hyphen.
13843func_len ()
13844{
13845 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13846}
13847
13848_LT_EOF
13849esac
13850
13851case $lt_shell_append in
13852 yes)
13853 cat << \_LT_EOF >> "$cfgfile"
13854
13855# func_append var value
13856# Append VALUE to the end of shell variable VAR.
13857func_append ()
13858{
13859 eval "$1+=\$2"
13860}
13861_LT_EOF
13862 ;;
13863 *)
13864 cat << \_LT_EOF >> "$cfgfile"
13865
13866# func_append var value
13867# Append VALUE to the end of shell variable VAR.
13868func_append ()
13869{
13870 eval "$1=\$$1\$2"
13871}
13872
13873_LT_EOF
13874 ;;
13875 esac
13876
13877
13878 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13879 || (rm -f "$cfgfile"; exit 1)
13880
13881 mv -f "$cfgfile" "$ofile" ||
13882 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13883 chmod +x "$ofile"
13884
13885 ;;
mlcreech94984912008-03-04 19:03:08 +000013886
drh8b727472009-01-19 18:18:40 +000013887 esac
13888done # for ac_tag
13889
drh71eb93e2001-09-28 01:34:43 +000013890
drhf922ca42015-05-14 15:39:18 +000013891as_fn_exit 0
a.rottmann84e63352003-03-24 09:42:16 +000013892_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013893ac_clean_files=$ac_clean_files_save
13894
drh8b727472009-01-19 18:18:40 +000013895test $ac_write_fail = 0 ||
drhf922ca42015-05-14 15:39:18 +000013896 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013897
a.rottmann84e63352003-03-24 09:42:16 +000013898
drh71eb93e2001-09-28 01:34:43 +000013899# configure is writing to config.log, and then calls config.status.
13900# config.status does its own redirection, appending to config.log.
13901# Unfortunately, on DOS this fails, as config.log is still kept open
13902# by configure, so config.status won't be able to write to it; its
13903# output is simply discarded. So we exec the FD to /dev/null,
13904# effectively closing config.log, so it can be properly (re)opened and
13905# appended to by config.status. When coming back to configure, we
13906# need to make the FD available again.
13907if test "$no_create" != yes; then
13908 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000013909 ac_config_status_args=
13910 test "$silent" = yes &&
13911 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000013912 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000013913 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000013914 exec 5>>config.log
13915 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13916 # would make configure fail if this is the last instruction.
drhf922ca42015-05-14 15:39:18 +000013917 $ac_cs_success || as_fn_exit 1
drh71eb93e2001-09-28 01:34:43 +000013918fi
drh8b727472009-01-19 18:18:40 +000013919if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
drhf922ca42015-05-14 15:39:18 +000013920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13921$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
drh8b727472009-01-19 18:18:40 +000013922fi
drh63a49ce2017-01-02 19:10:14 +000013923