blob: 258574185026b78c66a294ed3407165dacf4feaf [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.
drh83acc142019-02-12 15:51:36 +00003# Generated by GNU Autoconf 2.69 for sqlite 3.28.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'
drh83acc142019-02-12 15:51:36 +0000729PACKAGE_VERSION='3.28.0'
730PACKAGE_STRING='sqlite 3.28.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
drh748b8fd2018-05-25 19:22:47 +0000914enable_geopoly
drhce1d9f52015-10-09 12:48:33 +0000915enable_rtree
drh5e18d402016-05-03 13:14:18 +0000916enable_session
drh8b727472009-01-19 18:18:40 +0000917enable_gcov
918'
919 ac_precious_vars='build_alias
920host_alias
921target_alias
922CC
923CFLAGS
924LDFLAGS
925LIBS
926CPPFLAGS
vapier6acb2cf2009-01-28 04:46:28 +0000927CPP
928TCLLIBDIR'
drh8b727472009-01-19 18:18:40 +0000929
drh75897232000-05-29 14:26:00 +0000930
931# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000932ac_init_help=
933ac_init_version=false
drh8b727472009-01-19 18:18:40 +0000934ac_unrecognized_opts=
935ac_unrecognized_sep=
drh75897232000-05-29 14:26:00 +0000936# The variables have the same names as the options, with
937# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000938cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000939exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000940no_create=
drh75897232000-05-29 14:26:00 +0000941no_recursion=
942prefix=NONE
943program_prefix=NONE
944program_suffix=NONE
945program_transform_name=s,x,x,
946silent=
947site=
948srcdir=
drh75897232000-05-29 14:26:00 +0000949verbose=
950x_includes=NONE
951x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000952
953# Installation directory options.
954# These are left unexpanded so users can "make install exec_prefix=/foo"
955# and all the variables that are supposed to be based on exec_prefix
956# by default will actually change.
957# Use braces instead of parens because sh, perl, etc. also accept them.
drh8b727472009-01-19 18:18:40 +0000958# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000959bindir='${exec_prefix}/bin'
960sbindir='${exec_prefix}/sbin'
961libexecdir='${exec_prefix}/libexec'
drh8b727472009-01-19 18:18:40 +0000962datarootdir='${prefix}/share'
963datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000964sysconfdir='${prefix}/etc'
965sharedstatedir='${prefix}/com'
966localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000967includedir='${prefix}/include'
968oldincludedir='/usr/include'
drh8b727472009-01-19 18:18:40 +0000969docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
970infodir='${datarootdir}/info'
971htmldir='${docdir}'
972dvidir='${docdir}'
973pdfdir='${docdir}'
974psdir='${docdir}'
975libdir='${exec_prefix}/lib'
976localedir='${datarootdir}/locale'
977mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000978
drh75897232000-05-29 14:26:00 +0000979ac_prev=
drh8b727472009-01-19 18:18:40 +0000980ac_dashdash=
drh75897232000-05-29 14:26:00 +0000981for ac_option
982do
drh75897232000-05-29 14:26:00 +0000983 # If the previous option needs an argument, assign it.
984 if test -n "$ac_prev"; then
drh8b727472009-01-19 18:18:40 +0000985 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000986 ac_prev=
987 continue
988 fi
989
drh8b727472009-01-19 18:18:40 +0000990 case $ac_option in
drhf922ca42015-05-14 15:39:18 +0000991 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
992 *=) ac_optarg= ;;
993 *) ac_optarg=yes ;;
drh8b727472009-01-19 18:18:40 +0000994 esac
drh75897232000-05-29 14:26:00 +0000995
996 # Accept the important Cygnus configure options, so we can diagnose typos.
997
drh8b727472009-01-19 18:18:40 +0000998 case $ac_dashdash$ac_option in
999 --)
1000 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +00001001
1002 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1003 ac_prev=bindir ;;
1004 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +00001005 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001006
1007 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +00001008 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +00001009 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +00001010 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001011
1012 -cache-file | --cache-file | --cache-fil | --cache-fi \
1013 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1014 ac_prev=cache_file ;;
1015 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1016 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +00001017 cache_file=$ac_optarg ;;
1018
1019 --config-cache | -C)
1020 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +00001021
drh8b727472009-01-19 18:18:40 +00001022 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +00001023 ac_prev=datadir ;;
drh8b727472009-01-19 18:18:40 +00001024 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +00001025 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001026
drh8b727472009-01-19 18:18:40 +00001027 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1028 | --dataroo | --dataro | --datar)
1029 ac_prev=datarootdir ;;
1030 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1031 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1032 datarootdir=$ac_optarg ;;
1033
drh75897232000-05-29 14:26:00 +00001034 -disable-* | --disable-*)
drh8b727472009-01-19 18:18:40 +00001035 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001036 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001038 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001039 ac_useropt_orig=$ac_useropt
1040 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1042 *"
1043"enable_$ac_useropt"
1044"*) ;;
1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1046 ac_unrecognized_sep=', ';;
1047 esac
1048 eval enable_$ac_useropt=no ;;
1049
1050 -docdir | --docdir | --docdi | --doc | --do)
1051 ac_prev=docdir ;;
1052 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1053 docdir=$ac_optarg ;;
1054
1055 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1056 ac_prev=dvidir ;;
1057 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1058 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001059
1060 -enable-* | --enable-*)
drh8b727472009-01-19 18:18:40 +00001061 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001062 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001063 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001064 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001065 ac_useropt_orig=$ac_useropt
1066 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1067 case $ac_user_opts in
1068 *"
1069"enable_$ac_useropt"
1070"*) ;;
1071 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1072 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001073 esac
drh8b727472009-01-19 18:18:40 +00001074 eval enable_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001075
1076 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1077 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1078 | --exec | --exe | --ex)
1079 ac_prev=exec_prefix ;;
1080 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1081 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1082 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001083 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001084
1085 -gas | --gas | --ga | --g)
1086 # Obsolete; use --with-gas.
1087 with_gas=yes ;;
1088
drh71eb93e2001-09-28 01:34:43 +00001089 -help | --help | --hel | --he | -h)
1090 ac_init_help=long ;;
1091 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1092 ac_init_help=recursive ;;
1093 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1094 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001095
1096 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001097 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001098 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001099 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001100
drh8b727472009-01-19 18:18:40 +00001101 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1102 ac_prev=htmldir ;;
1103 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1104 | --ht=*)
1105 htmldir=$ac_optarg ;;
1106
drh75897232000-05-29 14:26:00 +00001107 -includedir | --includedir | --includedi | --included | --include \
1108 | --includ | --inclu | --incl | --inc)
1109 ac_prev=includedir ;;
1110 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1111 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001112 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001113
1114 -infodir | --infodir | --infodi | --infod | --info | --inf)
1115 ac_prev=infodir ;;
1116 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001117 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001118
1119 -libdir | --libdir | --libdi | --libd)
1120 ac_prev=libdir ;;
1121 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001122 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001123
1124 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1125 | --libexe | --libex | --libe)
1126 ac_prev=libexecdir ;;
1127 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1128 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001129 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001130
drh8b727472009-01-19 18:18:40 +00001131 -localedir | --localedir | --localedi | --localed | --locale)
1132 ac_prev=localedir ;;
1133 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1134 localedir=$ac_optarg ;;
1135
drh75897232000-05-29 14:26:00 +00001136 -localstatedir | --localstatedir | --localstatedi | --localstated \
drh8b727472009-01-19 18:18:40 +00001137 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001138 ac_prev=localstatedir ;;
1139 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh8b727472009-01-19 18:18:40 +00001140 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001141 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001142
1143 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1144 ac_prev=mandir ;;
1145 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001146 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001147
1148 -nfp | --nfp | --nf)
1149 # Obsolete; use --without-fp.
1150 with_fp=no ;;
1151
1152 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001153 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001154 no_create=yes ;;
1155
1156 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1157 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1158 no_recursion=yes ;;
1159
1160 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1161 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1162 | --oldin | --oldi | --old | --ol | --o)
1163 ac_prev=oldincludedir ;;
1164 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1165 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1166 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001167 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001168
1169 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1170 ac_prev=prefix ;;
1171 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001172 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001173
1174 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1175 | --program-pre | --program-pr | --program-p)
1176 ac_prev=program_prefix ;;
1177 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1178 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001179 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001180
1181 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1182 | --program-suf | --program-su | --program-s)
1183 ac_prev=program_suffix ;;
1184 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1185 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001186 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001187
1188 -program-transform-name | --program-transform-name \
1189 | --program-transform-nam | --program-transform-na \
1190 | --program-transform-n | --program-transform- \
1191 | --program-transform | --program-transfor \
1192 | --program-transfo | --program-transf \
1193 | --program-trans | --program-tran \
1194 | --progr-tra | --program-tr | --program-t)
1195 ac_prev=program_transform_name ;;
1196 -program-transform-name=* | --program-transform-name=* \
1197 | --program-transform-nam=* | --program-transform-na=* \
1198 | --program-transform-n=* | --program-transform-=* \
1199 | --program-transform=* | --program-transfor=* \
1200 | --program-transfo=* | --program-transf=* \
1201 | --program-trans=* | --program-tran=* \
1202 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001203 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001204
drh8b727472009-01-19 18:18:40 +00001205 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1206 ac_prev=pdfdir ;;
1207 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1208 pdfdir=$ac_optarg ;;
1209
1210 -psdir | --psdir | --psdi | --psd | --ps)
1211 ac_prev=psdir ;;
1212 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1213 psdir=$ac_optarg ;;
1214
drh75897232000-05-29 14:26:00 +00001215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1216 | -silent | --silent | --silen | --sile | --sil)
1217 silent=yes ;;
1218
1219 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1220 ac_prev=sbindir ;;
1221 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1222 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001223 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001224
1225 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1226 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1227 | --sharedst | --shareds | --shared | --share | --shar \
1228 | --sha | --sh)
1229 ac_prev=sharedstatedir ;;
1230 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1231 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1232 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1233 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001234 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001235
1236 -site | --site | --sit)
1237 ac_prev=site ;;
1238 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001239 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001240
1241 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1242 ac_prev=srcdir ;;
1243 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001244 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001245
1246 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1247 | --syscon | --sysco | --sysc | --sys | --sy)
1248 ac_prev=sysconfdir ;;
1249 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1250 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001251 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001252
1253 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001254 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001255 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001256 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001257
1258 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1259 verbose=yes ;;
1260
drh71eb93e2001-09-28 01:34:43 +00001261 -version | --version | --versio | --versi | --vers | -V)
1262 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001263
1264 -with-* | --with-*)
drh8b727472009-01-19 18:18:40 +00001265 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001266 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001267 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001268 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001269 ac_useropt_orig=$ac_useropt
1270 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1271 case $ac_user_opts in
1272 *"
1273"with_$ac_useropt"
1274"*) ;;
1275 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1276 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001277 esac
drh8b727472009-01-19 18:18:40 +00001278 eval with_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001279
1280 -without-* | --without-*)
drh8b727472009-01-19 18:18:40 +00001281 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001282 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001284 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1288 *"
1289"with_$ac_useropt"
1290"*) ;;
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1293 esac
1294 eval with_$ac_useropt=no ;;
drh75897232000-05-29 14:26:00 +00001295
1296 --x)
1297 # Obsolete; use --with-x.
1298 with_x=yes ;;
1299
1300 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1301 | --x-incl | --x-inc | --x-in | --x-i)
1302 ac_prev=x_includes ;;
1303 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1304 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001305 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001306
1307 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1308 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1309 ac_prev=x_libraries ;;
1310 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1311 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001312 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001313
drhf922ca42015-05-14 15:39:18 +00001314 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1315Try \`$0 --help' for more information"
drh75897232000-05-29 14:26:00 +00001316 ;;
1317
drh71eb93e2001-09-28 01:34:43 +00001318 *=*)
1319 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1320 # Reject names that are not valid shell variable names.
drhf922ca42015-05-14 15:39:18 +00001321 case $ac_envvar in #(
1322 '' | [0-9]* | *[!_$as_cr_alnum]* )
1323 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1324 esac
drh8b727472009-01-19 18:18:40 +00001325 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001326 export $ac_envvar ;;
1327
drh75897232000-05-29 14:26:00 +00001328 *)
drh71eb93e2001-09-28 01:34:43 +00001329 # FIXME: should be removed in autoconf 3.0.
drh8b727472009-01-19 18:18:40 +00001330 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +00001331 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001332 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drhf922ca42015-05-14 15:39:18 +00001333 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
drh75897232000-05-29 14:26:00 +00001334 ;;
1335
1336 esac
1337done
1338
1339if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001340 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
drhf922ca42015-05-14 15:39:18 +00001341 as_fn_error $? "missing argument to $ac_option"
drh75897232000-05-29 14:26:00 +00001342fi
1343
drh8b727472009-01-19 18:18:40 +00001344if test -n "$ac_unrecognized_opts"; then
1345 case $enable_option_checking in
1346 no) ;;
drhf922ca42015-05-14 15:39:18 +00001347 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1348 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
mlcreech636a9952008-05-05 22:52:56 +00001349 esac
drh8b727472009-01-19 18:18:40 +00001350fi
drh866108f2008-05-13 00:57:21 +00001351
drh8b727472009-01-19 18:18:40 +00001352# Check all directory arguments for consistency.
1353for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1354 datadir sysconfdir sharedstatedir localstatedir includedir \
1355 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1356 libdir localedir mandir
drh866108f2008-05-13 00:57:21 +00001357do
drh8b727472009-01-19 18:18:40 +00001358 eval ac_val=\$$ac_var
1359 # Remove trailing slashes.
drh71eb93e2001-09-28 01:34:43 +00001360 case $ac_val in
drh8b727472009-01-19 18:18:40 +00001361 */ )
1362 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1363 eval $ac_var=\$ac_val;;
drh75897232000-05-29 14:26:00 +00001364 esac
drh8b727472009-01-19 18:18:40 +00001365 # Be sure to have absolute directory names.
1366 case $ac_val in
1367 [\\/$]* | ?:[\\/]* ) continue;;
1368 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1369 esac
drhf922ca42015-05-14 15:39:18 +00001370 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
drh71eb93e2001-09-28 01:34:43 +00001371done
drh75897232000-05-29 14:26:00 +00001372
drh71eb93e2001-09-28 01:34:43 +00001373# There might be people who depend on the old broken behavior: `$host'
1374# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001375# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001376build=$build_alias
1377host=$host_alias
1378target=$target_alias
drh75897232000-05-29 14:26:00 +00001379
a.rottmann84e63352003-03-24 09:42:16 +00001380# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001381if test "x$host_alias" != x; then
1382 if test "x$build_alias" = x; then
1383 cross_compiling=maybe
drh71eb93e2001-09-28 01:34:43 +00001384 elif test "x$build_alias" != "x$host_alias"; then
1385 cross_compiling=yes
1386 fi
1387fi
1388
1389ac_tool_prefix=
1390test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391
1392test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001393
a.rottmann84e63352003-03-24 09:42:16 +00001394
drh8b727472009-01-19 18:18:40 +00001395ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396ac_ls_di=`ls -di .` &&
1397ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
drhf922ca42015-05-14 15:39:18 +00001398 as_fn_error $? "working directory cannot be determined"
drh8b727472009-01-19 18:18:40 +00001399test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
drhf922ca42015-05-14 15:39:18 +00001400 as_fn_error $? "pwd does not report name of working directory"
drh8b727472009-01-19 18:18:40 +00001401
1402
drh75897232000-05-29 14:26:00 +00001403# Find the source files, if location was not specified.
1404if test -z "$srcdir"; then
1405 ac_srcdir_defaulted=yes
drh8b727472009-01-19 18:18:40 +00001406 # Try the directory containing this script, then the parent directory.
1407 ac_confdir=`$as_dirname -- "$as_myself" ||
1408$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1409 X"$as_myself" : 'X\(//\)[^/]' \| \
1410 X"$as_myself" : 'X\(//\)$' \| \
1411 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1412$as_echo X"$as_myself" |
1413 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1414 s//\1/
1415 q
1416 }
1417 /^X\(\/\/\)[^/].*/{
1418 s//\1/
1419 q
1420 }
1421 /^X\(\/\/\)$/{
1422 s//\1/
1423 q
1424 }
1425 /^X\(\/\).*/{
1426 s//\1/
1427 q
1428 }
1429 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001430 srcdir=$ac_confdir
drh8b727472009-01-19 18:18:40 +00001431 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001432 srcdir=..
1433 fi
1434else
1435 ac_srcdir_defaulted=no
1436fi
drh8b727472009-01-19 18:18:40 +00001437if test ! -r "$srcdir/$ac_unique_file"; then
1438 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
drhf922ca42015-05-14 15:39:18 +00001439 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
mlcreech94984912008-03-04 19:03:08 +00001440fi
drh8b727472009-01-19 18:18:40 +00001441ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1442ac_abs_confdir=`(
drhf922ca42015-05-14 15:39:18 +00001443 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
drh8b727472009-01-19 18:18:40 +00001444 pwd)`
1445# When building in place, set srcdir=.
1446if test "$ac_abs_confdir" = "$ac_pwd"; then
1447 srcdir=.
1448fi
1449# Remove unnecessary trailing slashes from srcdir.
1450# Double slashes in file names in object file debugging info
1451# mess up M-x gdb in Emacs.
1452case $srcdir in
1453*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1454esac
1455for ac_var in $ac_precious_vars; do
1456 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1457 eval ac_env_${ac_var}_value=\$${ac_var}
1458 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1459 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1460done
drh75897232000-05-29 14:26:00 +00001461
drh71eb93e2001-09-28 01:34:43 +00001462#
1463# Report the --help message.
1464#
1465if test "$ac_init_help" = "long"; then
1466 # Omit some internal or obsolete options to make the list less imposing.
1467 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001468 cat <<_ACEOF
drh83acc142019-02-12 15:51:36 +00001469\`configure' configures sqlite 3.28.0 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001470
1471Usage: $0 [OPTION]... [VAR=VALUE]...
1472
1473To assign environment variables (e.g., CC, CFLAGS...), specify them as
1474VAR=VALUE. See below for descriptions of some of the useful variables.
1475
1476Defaults for the options are specified in brackets.
1477
1478Configuration:
1479 -h, --help display this help and exit
1480 --help=short display options specific to this package
1481 --help=recursive display the short help of all the included packages
1482 -V, --version display version information and exit
drhf922ca42015-05-14 15:39:18 +00001483 -q, --quiet, --silent do not print \`checking ...' messages
drh71eb93e2001-09-28 01:34:43 +00001484 --cache-file=FILE cache test results in FILE [disabled]
1485 -C, --config-cache alias for \`--cache-file=config.cache'
1486 -n, --no-create do not create output files
1487 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1488
drh71eb93e2001-09-28 01:34:43 +00001489Installation directories:
1490 --prefix=PREFIX install architecture-independent files in PREFIX
drh8b727472009-01-19 18:18:40 +00001491 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001492 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh8b727472009-01-19 18:18:40 +00001493 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001494
1495By default, \`make install' will install all the files in
1496\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1497an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1498for instance \`--prefix=\$HOME'.
1499
1500For better control, use the options below.
1501
1502Fine tuning of the installation directories:
drh8b727472009-01-19 18:18:40 +00001503 --bindir=DIR user executables [EPREFIX/bin]
1504 --sbindir=DIR system admin executables [EPREFIX/sbin]
1505 --libexecdir=DIR program executables [EPREFIX/libexec]
1506 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1507 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1508 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1509 --libdir=DIR object code libraries [EPREFIX/lib]
1510 --includedir=DIR C header files [PREFIX/include]
1511 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1512 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1513 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1514 --infodir=DIR info documentation [DATAROOTDIR/info]
1515 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1516 --mandir=DIR man documentation [DATAROOTDIR/man]
1517 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1518 --htmldir=DIR html documentation [DOCDIR]
1519 --dvidir=DIR dvi documentation [DOCDIR]
1520 --pdfdir=DIR pdf documentation [DOCDIR]
1521 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001522_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001523
a.rottmann84e63352003-03-24 09:42:16 +00001524 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001525
1526System types:
1527 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001528 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1529_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001530fi
1531
1532if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001533 case $ac_init_help in
drh83acc142019-02-12 15:51:36 +00001534 short | recursive ) echo "Configuration of sqlite 3.28.0:";;
mlcreechb87057f2008-03-06 07:19:20 +00001535 esac
a.rottmann84e63352003-03-24 09:42:16 +00001536 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001537
1538Optional Features:
drh8b727472009-01-19 18:18:40 +00001539 --disable-option-checking ignore unrecognized --enable/--with options
drh71eb93e2001-09-28 01:34:43 +00001540 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1541 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh8b727472009-01-19 18:18:40 +00001542 --enable-shared[=PKGS] build shared libraries [default=yes]
1543 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001544 --enable-fast-install[=PKGS]
1545 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001546 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001547 --disable-largefile omit support for large files
drh05c7e0b2015-01-10 14:27:17 +00001548 --disable-threadsafe Disable mutexing
drh94e4f822006-02-15 02:00:25 +00001549 --enable-releasemode Support libtool link to release mode
1550 --enable-tempstore Use an in-ram database for temporary tables
1551 (never,no,yes,always)
1552 --disable-tcl do not build TCL extension
drhe44b8352015-10-30 14:25:57 +00001553 --enable-editline enable BSD editline support
1554 --disable-readline disable readline support
drh94e4f822006-02-15 02:00:25 +00001555 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001556 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001557 separately
drh05c7e0b2015-01-10 14:27:17 +00001558 --disable-load-extension
1559 Disable loading of external extensions
drhc530b9c2016-07-25 11:27:22 +00001560 --enable-memsys5 Enable MEMSYS5
drh5d513ba2016-07-25 11:57:21 +00001561 --enable-memsys3 Enable MEMSYS3
drhce1d9f52015-10-09 12:48:33 +00001562 --enable-fts3 Enable the FTS3 extension
1563 --enable-fts4 Enable the FTS4 extension
1564 --enable-fts5 Enable the FTS5 extension
1565 --enable-json1 Enable the JSON1 extension
drh83bebdd2017-08-28 17:00:12 +00001566 --enable-update-limit Enable the UPDATE/DELETE LIMIT clause
drh748b8fd2018-05-25 19:22:47 +00001567 --enable-geopoly Enable the GEOPOLY extension
drhce1d9f52015-10-09 12:48:33 +00001568 --enable-rtree Enable the RTREE extension
drh5e18d402016-05-03 13:14:18 +00001569 --enable-session Enable the SESSION extension
mlcreechaac7b932008-04-01 02:45:22 +00001570 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001571
1572Optional Packages:
1573 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1574 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001575 --with-pic try to use only PIC/non-PIC objects [default=use
1576 both]
mlcreech636a9952008-05-05 22:52:56 +00001577 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh94e4f822006-02-15 02:00:25 +00001578 --with-tcl=DIR directory containing tcl configuration
1579 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001580 --with-readline-lib specify readline library
1581 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001582
1583Some influential environment variables:
1584 CC C compiler command
1585 CFLAGS C compiler flags
1586 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1587 nonstandard directory <lib dir>
drh8b727472009-01-19 18:18:40 +00001588 LIBS libraries to pass to the linker, e.g. -l<library>
drhf922ca42015-05-14 15:39:18 +00001589 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
drh8b727472009-01-19 18:18:40 +00001590 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001591 CPP C preprocessor
vapier6acb2cf2009-01-28 04:46:28 +00001592 TCLLIBDIR Where to install tcl plugin
drh71eb93e2001-09-28 01:34:43 +00001593
1594Use these variables to override the choices made by `configure' or to help
1595it to find libraries and programs with nonstandard names/locations.
1596
drhf922ca42015-05-14 15:39:18 +00001597Report bugs to the package provider.
a.rottmann84e63352003-03-24 09:42:16 +00001598_ACEOF
drh8b727472009-01-19 18:18:40 +00001599ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001600fi
1601
1602if test "$ac_init_help" = "recursive"; then
1603 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001604 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh8b727472009-01-19 18:18:40 +00001605 test -d "$ac_dir" ||
1606 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1607 continue
a.rottmann84e63352003-03-24 09:42:16 +00001608 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001609
drh8b727472009-01-19 18:18:40 +00001610case "$ac_dir" in
1611.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612*)
1613 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1614 # A ".." for each directory in $ac_dir_suffix.
1615 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1616 case $ac_top_builddir_sub in
1617 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1619 esac ;;
1620esac
1621ac_abs_top_builddir=$ac_pwd
1622ac_abs_builddir=$ac_pwd$ac_dir_suffix
1623# for backward compatibility:
1624ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001625
a.rottmann84e63352003-03-24 09:42:16 +00001626case $srcdir in
drh8b727472009-01-19 18:18:40 +00001627 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001628 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +00001629 ac_top_srcdir=$ac_top_builddir_sub
1630 ac_abs_top_srcdir=$ac_pwd ;;
1631 [\\/]* | ?:[\\/]* ) # Absolute name.
drh866108f2008-05-13 00:57:21 +00001632 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +00001633 ac_top_srcdir=$srcdir
1634 ac_abs_top_srcdir=$srcdir ;;
1635 *) # Relative name.
1636 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1637 ac_top_srcdir=$ac_top_build_prefix$srcdir
1638 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
drh866108f2008-05-13 00:57:21 +00001639esac
drh8b727472009-01-19 18:18:40 +00001640ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
drh866108f2008-05-13 00:57:21 +00001641
drh8b727472009-01-19 18:18:40 +00001642 cd "$ac_dir" || { ac_status=$?; continue; }
1643 # Check for guested configure.
1644 if test -f "$ac_srcdir/configure.gnu"; then
1645 echo &&
1646 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1647 elif test -f "$ac_srcdir/configure"; then
1648 echo &&
1649 $SHELL "$ac_srcdir/configure" --help=recursive
drh866108f2008-05-13 00:57:21 +00001650 else
drh8b727472009-01-19 18:18:40 +00001651 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1652 fi || ac_status=$?
1653 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001654 done
1655fi
1656
drh8b727472009-01-19 18:18:40 +00001657test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001658if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001659 cat <<\_ACEOF
drh83acc142019-02-12 15:51:36 +00001660sqlite configure 3.28.0
drhf922ca42015-05-14 15:39:18 +00001661generated by GNU Autoconf 2.69
drh71eb93e2001-09-28 01:34:43 +00001662
drhf922ca42015-05-14 15:39:18 +00001663Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001664This configure script is free software; the Free Software Foundation
1665gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001666_ACEOF
drh8b727472009-01-19 18:18:40 +00001667 exit
drh71eb93e2001-09-28 01:34:43 +00001668fi
drhf922ca42015-05-14 15:39:18 +00001669
1670## ------------------------ ##
1671## Autoconf initialization. ##
1672## ------------------------ ##
1673
1674# ac_fn_c_try_compile LINENO
1675# --------------------------
1676# Try to compile conftest.$ac_ext, and return whether this succeeded.
1677ac_fn_c_try_compile ()
1678{
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 rm -f conftest.$ac_objext
1681 if { { ac_try="$ac_compile"
1682case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685esac
1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687$as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_compile") 2>conftest.err
1689 ac_status=$?
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1694 fi
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && {
1697 test -z "$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1699 } && test -s conftest.$ac_objext; then :
1700 ac_retval=0
1701else
1702 $as_echo "$as_me: failed program was:" >&5
1703sed 's/^/| /' conftest.$ac_ext >&5
1704
1705 ac_retval=1
1706fi
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 as_fn_set_status $ac_retval
1709
1710} # ac_fn_c_try_compile
1711
1712# ac_fn_c_try_link LINENO
1713# -----------------------
1714# Try to link conftest.$ac_ext, and return whether this succeeded.
1715ac_fn_c_try_link ()
1716{
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 rm -f conftest.$ac_objext conftest$ac_exeext
1719 if { { ac_try="$ac_link"
1720case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723esac
1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725$as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_link") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1732 fi
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest$ac_exeext && {
1738 test "$cross_compiling" = yes ||
1739 test -x conftest$ac_exeext
1740 }; then :
1741 ac_retval=0
1742else
1743 $as_echo "$as_me: failed program was:" >&5
1744sed 's/^/| /' conftest.$ac_ext >&5
1745
1746 ac_retval=1
1747fi
1748 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1749 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1750 # interfere with the next link command; also delete a directory that is
1751 # left behind by Apple's compiler. We do this before executing the actions.
1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754 as_fn_set_status $ac_retval
1755
1756} # ac_fn_c_try_link
1757
1758# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1759# -------------------------------------------------------
1760# Tests whether HEADER exists and can be compiled using the include files in
1761# INCLUDES, setting the cache variable VAR accordingly.
1762ac_fn_c_check_header_compile ()
1763{
1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766$as_echo_n "checking for $2... " >&6; }
1767if eval \${$3+:} false; then :
1768 $as_echo_n "(cached) " >&6
1769else
1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1771/* end confdefs.h. */
1772$4
1773#include <$2>
1774_ACEOF
1775if ac_fn_c_try_compile "$LINENO"; then :
1776 eval "$3=yes"
1777else
1778 eval "$3=no"
1779fi
1780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1781fi
1782eval ac_res=\$$3
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784$as_echo "$ac_res" >&6; }
1785 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786
1787} # ac_fn_c_check_header_compile
1788
1789# ac_fn_c_try_cpp LINENO
1790# ----------------------
1791# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1792ac_fn_c_try_cpp ()
1793{
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 if { { ac_try="$ac_cpp conftest.$ac_ext"
1796case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799esac
1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801$as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1803 ac_status=$?
1804 if test -s conftest.err; then
1805 grep -v '^ *+' conftest.err >conftest.er1
1806 cat conftest.er1 >&5
1807 mv -f conftest.er1 conftest.err
1808 fi
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; } > conftest.i && {
1811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1812 test ! -s conftest.err
1813 }; then :
1814 ac_retval=0
1815else
1816 $as_echo "$as_me: failed program was:" >&5
1817sed 's/^/| /' conftest.$ac_ext >&5
1818
1819 ac_retval=1
1820fi
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status $ac_retval
1823
1824} # ac_fn_c_try_cpp
1825
1826# ac_fn_c_try_run LINENO
1827# ----------------------
1828# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1829# that executables *can* be run.
1830ac_fn_c_try_run ()
1831{
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 if { { ac_try="$ac_link"
1834case "(($ac_try" in
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1837esac
1838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839$as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_link") 2>&5
1841 ac_status=$?
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1844 { { case "(($ac_try" in
1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1846 *) ac_try_echo=$ac_try;;
1847esac
1848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1849$as_echo "$ac_try_echo"; } >&5
1850 (eval "$ac_try") 2>&5
1851 ac_status=$?
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; }; }; then :
1854 ac_retval=0
1855else
1856 $as_echo "$as_me: program exited with status $ac_status" >&5
1857 $as_echo "$as_me: failed program was:" >&5
1858sed 's/^/| /' conftest.$ac_ext >&5
1859
1860 ac_retval=$ac_status
1861fi
1862 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1863 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864 as_fn_set_status $ac_retval
1865
1866} # ac_fn_c_try_run
1867
1868# ac_fn_c_check_func LINENO FUNC VAR
1869# ----------------------------------
1870# Tests whether FUNC exists, setting the cache variable VAR accordingly
1871ac_fn_c_check_func ()
1872{
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875$as_echo_n "checking for $2... " >&6; }
1876if eval \${$3+:} false; then :
1877 $as_echo_n "(cached) " >&6
1878else
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880/* end confdefs.h. */
1881/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1883#define $2 innocuous_$2
1884
1885/* System header to define __stub macros and hopefully few prototypes,
1886 which can conflict with char $2 (); below.
1887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1888 <limits.h> exists even on freestanding compilers. */
1889
1890#ifdef __STDC__
1891# include <limits.h>
1892#else
1893# include <assert.h>
1894#endif
1895
1896#undef $2
1897
1898/* Override any GCC internal prototype to avoid an error.
1899 Use char because int might match the return type of a GCC
1900 builtin and then its argument prototype would still apply. */
1901#ifdef __cplusplus
1902extern "C"
1903#endif
1904char $2 ();
1905/* The GNU C library defines this for functions which it implements
1906 to always fail with ENOSYS. Some functions are actually named
1907 something starting with __ and the normal name is an alias. */
1908#if defined __stub_$2 || defined __stub___$2
1909choke me
1910#endif
1911
1912int
1913main ()
1914{
1915return $2 ();
1916 ;
1917 return 0;
1918}
1919_ACEOF
1920if ac_fn_c_try_link "$LINENO"; then :
1921 eval "$3=yes"
1922else
1923 eval "$3=no"
1924fi
1925rm -f core conftest.err conftest.$ac_objext \
1926 conftest$ac_exeext conftest.$ac_ext
1927fi
1928eval ac_res=\$$3
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930$as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932
1933} # ac_fn_c_check_func
1934
1935# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1936# -------------------------------------------
1937# Tests whether TYPE exists after having included INCLUDES, setting cache
1938# variable VAR accordingly.
1939ac_fn_c_check_type ()
1940{
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1943$as_echo_n "checking for $2... " >&6; }
1944if eval \${$3+:} false; then :
1945 $as_echo_n "(cached) " >&6
1946else
1947 eval "$3=no"
1948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1949/* end confdefs.h. */
1950$4
1951int
1952main ()
1953{
1954if (sizeof ($2))
1955 return 0;
1956 ;
1957 return 0;
1958}
1959_ACEOF
1960if ac_fn_c_try_compile "$LINENO"; then :
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962/* end confdefs.h. */
1963$4
1964int
1965main ()
1966{
1967if (sizeof (($2)))
1968 return 0;
1969 ;
1970 return 0;
1971}
1972_ACEOF
1973if ac_fn_c_try_compile "$LINENO"; then :
1974
1975else
1976 eval "$3=yes"
1977fi
1978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979fi
1980rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981fi
1982eval ac_res=\$$3
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984$as_echo "$ac_res" >&6; }
1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986
1987} # ac_fn_c_check_type
1988
1989# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1990# -------------------------------------------------------
1991# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1992# the include files in INCLUDES and setting the cache variable VAR
1993# accordingly.
1994ac_fn_c_check_header_mongrel ()
1995{
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 if eval \${$3+:} false; then :
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999$as_echo_n "checking for $2... " >&6; }
2000if eval \${$3+:} false; then :
2001 $as_echo_n "(cached) " >&6
2002fi
2003eval ac_res=\$$3
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2005$as_echo "$ac_res" >&6; }
2006else
2007 # Is the header compilable?
2008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2009$as_echo_n "checking $2 usability... " >&6; }
2010cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011/* end confdefs.h. */
2012$4
2013#include <$2>
2014_ACEOF
2015if ac_fn_c_try_compile "$LINENO"; then :
2016 ac_header_compiler=yes
2017else
2018 ac_header_compiler=no
2019fi
2020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2022$as_echo "$ac_header_compiler" >&6; }
2023
2024# Is the header present?
2025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2026$as_echo_n "checking $2 presence... " >&6; }
2027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028/* end confdefs.h. */
2029#include <$2>
2030_ACEOF
2031if ac_fn_c_try_cpp "$LINENO"; then :
2032 ac_header_preproc=yes
2033else
2034 ac_header_preproc=no
2035fi
2036rm -f conftest.err conftest.i conftest.$ac_ext
2037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2038$as_echo "$ac_header_preproc" >&6; }
2039
2040# So? What about this header?
2041case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2042 yes:no: )
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2044$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2046$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2047 ;;
2048 no:yes:* )
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2050$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2052$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2054$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2056$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2058$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2059 ;;
2060esac
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062$as_echo_n "checking for $2... " >&6; }
2063if eval \${$3+:} false; then :
2064 $as_echo_n "(cached) " >&6
2065else
2066 eval "$3=\$ac_header_compiler"
2067fi
2068eval ac_res=\$$3
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070$as_echo "$ac_res" >&6; }
2071fi
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073
2074} # ac_fn_c_check_header_mongrel
drh8b727472009-01-19 18:18:40 +00002075cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002076This file contains any messages produced by compilers while
2077running configure, to aid debugging if configure makes a mistake.
2078
drh83acc142019-02-12 15:51:36 +00002079It was created by sqlite $as_me 3.28.0, which was
drhf922ca42015-05-14 15:39:18 +00002080generated by GNU Autoconf 2.69. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00002081
2082 $ $0 $@
2083
a.rottmann84e63352003-03-24 09:42:16 +00002084_ACEOF
drh8b727472009-01-19 18:18:40 +00002085exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00002086{
2087cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002088## --------- ##
2089## Platform. ##
2090## --------- ##
drh71eb93e2001-09-28 01:34:43 +00002091
2092hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2093uname -m = `(uname -m) 2>/dev/null || echo unknown`
2094uname -r = `(uname -r) 2>/dev/null || echo unknown`
2095uname -s = `(uname -s) 2>/dev/null || echo unknown`
2096uname -v = `(uname -v) 2>/dev/null || echo unknown`
2097
2098/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2099/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2100
2101/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2102/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2103/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh8b727472009-01-19 18:18:40 +00002104/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00002105/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2106/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2107/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2108
drh71eb93e2001-09-28 01:34:43 +00002109_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002110
2111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112for as_dir in $PATH
2113do
2114 IFS=$as_save_IFS
2115 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002116 $as_echo "PATH: $as_dir"
2117 done
drh8b727472009-01-19 18:18:40 +00002118IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00002119
drh71eb93e2001-09-28 01:34:43 +00002120} >&5
2121
a.rottmann84e63352003-03-24 09:42:16 +00002122cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002123
a.rottmann84e63352003-03-24 09:42:16 +00002124
2125## ----------- ##
2126## Core tests. ##
2127## ----------- ##
2128
2129_ACEOF
2130
drh71eb93e2001-09-28 01:34:43 +00002131
2132# Keep a trace of the command line.
2133# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00002134# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00002135# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00002136# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00002137ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00002138ac_configure_args0=
2139ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00002140ac_must_keep_next=false
2141for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00002142do
a.rottmann84e63352003-03-24 09:42:16 +00002143 for ac_arg
2144 do
2145 case $ac_arg in
2146 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2148 | -silent | --silent | --silen | --sile | --sil)
2149 continue ;;
drh8b727472009-01-19 18:18:40 +00002150 *\'*)
2151 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002152 esac
2153 case $ac_pass in
drhf922ca42015-05-14 15:39:18 +00002154 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
a.rottmann84e63352003-03-24 09:42:16 +00002155 2)
drhf922ca42015-05-14 15:39:18 +00002156 as_fn_append ac_configure_args1 " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002157 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00002158 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00002159 else
a.rottmann964dbb12004-02-26 19:47:42 +00002160 case $ac_arg in
2161 *=* | --config-cache | -C | -disable-* | --disable-* \
2162 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2163 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2164 | -with-* | --with-* | -without-* | --without-* | --x)
2165 case "$ac_configure_args0 " in
2166 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2167 esac
2168 ;;
2169 -* ) ac_must_keep_next=true ;;
2170 esac
a.rottmann84e63352003-03-24 09:42:16 +00002171 fi
drhf922ca42015-05-14 15:39:18 +00002172 as_fn_append ac_configure_args " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002173 ;;
2174 esac
2175 done
drh71eb93e2001-09-28 01:34:43 +00002176done
drhf922ca42015-05-14 15:39:18 +00002177{ ac_configure_args0=; unset ac_configure_args0;}
2178{ ac_configure_args1=; unset ac_configure_args1;}
drh71eb93e2001-09-28 01:34:43 +00002179
2180# When interrupted or exit'd, cleanup temporary files, and complete
2181# config.log. We remove comments because anyway the quotes in there
2182# would cause problems or look ugly.
drh8b727472009-01-19 18:18:40 +00002183# WARNING: Use '\'' to represent an apostrophe within the trap.
2184# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00002185trap 'exit_status=$?
2186 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00002187 {
2188 echo
2189
drhf922ca42015-05-14 15:39:18 +00002190 $as_echo "## ---------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002191## Cache variables. ##
drhf922ca42015-05-14 15:39:18 +00002192## ---------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002193 echo
2194 # The following way of writing the cache mishandles newlines in values,
drh8b727472009-01-19 18:18:40 +00002195(
2196 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2197 eval ac_val=\$$ac_var
2198 case $ac_val in #(
2199 *${as_nl}*)
2200 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +00002201 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2202$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +00002203 esac
2204 case $ac_var in #(
2205 _ | IFS | as_nl) ;; #(
2206 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +00002207 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +00002208 esac ;;
2209 esac
2210 done
drh71eb93e2001-09-28 01:34:43 +00002211 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +00002212 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2213 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00002214 sed -n \
drh8b727472009-01-19 18:18:40 +00002215 "s/'\''/'\''\\\\'\'''\''/g;
2216 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2217 ;; #(
drh866108f2008-05-13 00:57:21 +00002218 *)
drh8b727472009-01-19 18:18:40 +00002219 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh866108f2008-05-13 00:57:21 +00002220 ;;
drh8b727472009-01-19 18:18:40 +00002221 esac |
2222 sort
2223)
a.rottmann84e63352003-03-24 09:42:16 +00002224 echo
2225
drhf922ca42015-05-14 15:39:18 +00002226 $as_echo "## ----------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002227## Output variables. ##
drhf922ca42015-05-14 15:39:18 +00002228## ----------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002229 echo
2230 for ac_var in $ac_subst_vars
2231 do
drh8b727472009-01-19 18:18:40 +00002232 eval ac_val=\$$ac_var
2233 case $ac_val in
2234 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2235 esac
2236 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002237 done | sort
2238 echo
2239
2240 if test -n "$ac_subst_files"; then
drhf922ca42015-05-14 15:39:18 +00002241 $as_echo "## ------------------- ##
drh8b727472009-01-19 18:18:40 +00002242## File substitutions. ##
drhf922ca42015-05-14 15:39:18 +00002243## ------------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002244 echo
2245 for ac_var in $ac_subst_files
2246 do
drh8b727472009-01-19 18:18:40 +00002247 eval ac_val=\$$ac_var
2248 case $ac_val in
2249 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2250 esac
2251 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002252 done | sort
2253 echo
2254 fi
2255
2256 if test -s confdefs.h; then
drhf922ca42015-05-14 15:39:18 +00002257 $as_echo "## ----------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002258## confdefs.h. ##
drhf922ca42015-05-14 15:39:18 +00002259## ----------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002260 echo
drh8b727472009-01-19 18:18:40 +00002261 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00002262 echo
2263 fi
2264 test "$ac_signal" != 0 &&
drh8b727472009-01-19 18:18:40 +00002265 $as_echo "$as_me: caught signal $ac_signal"
2266 $as_echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00002267 } >&5
drh8b727472009-01-19 18:18:40 +00002268 rm -f core *.core core.conftest.* &&
2269 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00002270 exit $exit_status
drh8b727472009-01-19 18:18:40 +00002271' 0
drh71eb93e2001-09-28 01:34:43 +00002272for ac_signal in 1 2 13 15; do
drhf922ca42015-05-14 15:39:18 +00002273 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
drh71eb93e2001-09-28 01:34:43 +00002274done
2275ac_signal=0
2276
2277# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh8b727472009-01-19 18:18:40 +00002278rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00002279
drhf922ca42015-05-14 15:39:18 +00002280$as_echo "/* confdefs.h */" > confdefs.h
2281
a.rottmann84e63352003-03-24 09:42:16 +00002282# Predefined preprocessor variables.
2283
2284cat >>confdefs.h <<_ACEOF
2285#define PACKAGE_NAME "$PACKAGE_NAME"
2286_ACEOF
2287
a.rottmann84e63352003-03-24 09:42:16 +00002288cat >>confdefs.h <<_ACEOF
2289#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2290_ACEOF
2291
a.rottmann84e63352003-03-24 09:42:16 +00002292cat >>confdefs.h <<_ACEOF
2293#define PACKAGE_VERSION "$PACKAGE_VERSION"
2294_ACEOF
2295
a.rottmann84e63352003-03-24 09:42:16 +00002296cat >>confdefs.h <<_ACEOF
2297#define PACKAGE_STRING "$PACKAGE_STRING"
2298_ACEOF
2299
dana9f39fd2011-08-12 16:34:42 +00002300cat >>confdefs.h <<_ACEOF
drh710658c2012-01-16 13:00:05 +00002301#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
dana9f39fd2011-08-12 16:34:42 +00002302_ACEOF
2303
drhf922ca42015-05-14 15:39:18 +00002304cat >>confdefs.h <<_ACEOF
2305#define PACKAGE_URL "$PACKAGE_URL"
2306_ACEOF
2307
a.rottmann84e63352003-03-24 09:42:16 +00002308
drh71eb93e2001-09-28 01:34:43 +00002309# Let the site file select an alternate cache file if it wants to.
drh8b727472009-01-19 18:18:40 +00002310# Prefer an explicitly selected file to automatically selected ones.
2311ac_site_file1=NONE
2312ac_site_file2=NONE
2313if test -n "$CONFIG_SITE"; then
drhf922ca42015-05-14 15:39:18 +00002314 # We do not want a PATH search for config.site.
2315 case $CONFIG_SITE in #((
2316 -*) ac_site_file1=./$CONFIG_SITE;;
2317 */*) ac_site_file1=$CONFIG_SITE;;
2318 *) ac_site_file1=./$CONFIG_SITE;;
2319 esac
drh8b727472009-01-19 18:18:40 +00002320elif test "x$prefix" != xNONE; then
2321 ac_site_file1=$prefix/share/config.site
2322 ac_site_file2=$prefix/etc/config.site
2323else
2324 ac_site_file1=$ac_default_prefix/share/config.site
2325 ac_site_file2=$ac_default_prefix/etc/config.site
drh75897232000-05-29 14:26:00 +00002326fi
drh8b727472009-01-19 18:18:40 +00002327for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2328do
2329 test "x$ac_site_file" = xNONE && continue
drhf922ca42015-05-14 15:39:18 +00002330 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
drh8b727472009-01-19 18:18:40 +00002332$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00002333 sed 's/^/| /' "$ac_site_file" >&5
drhf922ca42015-05-14 15:39:18 +00002334 . "$ac_site_file" \
2335 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2336$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2337as_fn_error $? "failed to load site script $ac_site_file
2338See \`config.log' for more details" "$LINENO" 5; }
drh75897232000-05-29 14:26:00 +00002339 fi
2340done
2341
2342if test -r "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +00002343 # Some versions of bash will fail to source /dev/null (special files
2344 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2345 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002347$as_echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002348 case $cache_file in
drh8b727472009-01-19 18:18:40 +00002349 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2350 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00002351 esac
2352 fi
drh75897232000-05-29 14:26:00 +00002353else
drhf922ca42015-05-14 15:39:18 +00002354 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002355$as_echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002356 >$cache_file
2357fi
2358
2359# Check that the precious variables saved in the cache have kept the same
2360# value.
2361ac_cache_corrupted=false
drh8b727472009-01-19 18:18:40 +00002362for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00002363 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2364 eval ac_new_set=\$ac_env_${ac_var}_set
drh8b727472009-01-19 18:18:40 +00002365 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2366 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00002367 case $ac_old_set,$ac_new_set in
2368 set,)
drhf922ca42015-05-14 15:39:18 +00002369 { $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 +00002370$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002371 ac_cache_corrupted=: ;;
2372 ,set)
drhf922ca42015-05-14 15:39:18 +00002373 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00002374$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002375 ac_cache_corrupted=: ;;
2376 ,);;
2377 *)
2378 if test "x$ac_old_val" != "x$ac_new_val"; then
drh8b727472009-01-19 18:18:40 +00002379 # differences in whitespace do not lead to failure.
2380 ac_old_val_w=`echo x $ac_old_val`
2381 ac_new_val_w=`echo x $ac_new_val`
2382 if test "$ac_old_val_w" != "$ac_new_val_w"; then
drhf922ca42015-05-14 15:39:18 +00002383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00002384$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2385 ac_cache_corrupted=:
2386 else
drhf922ca42015-05-14 15:39:18 +00002387 { $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 +00002388$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2389 eval $ac_var=\$ac_old_val
2390 fi
drhf922ca42015-05-14 15:39:18 +00002391 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
drh8b727472009-01-19 18:18:40 +00002392$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
drhf922ca42015-05-14 15:39:18 +00002393 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
drh8b727472009-01-19 18:18:40 +00002394$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002395 fi;;
2396 esac
a.rottmann84e63352003-03-24 09:42:16 +00002397 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00002398 if test "$ac_new_set" = set; then
2399 case $ac_new_val in
drh8b727472009-01-19 18:18:40 +00002400 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002401 *) ac_arg=$ac_var=$ac_new_val ;;
2402 esac
2403 case " $ac_configure_args " in
2404 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
drhf922ca42015-05-14 15:39:18 +00002405 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00002406 esac
2407 fi
2408done
2409if $ac_cache_corrupted; then
drhf922ca42015-05-14 15:39:18 +00002410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
drh8b727472009-01-19 18:18:40 +00002413$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
drhf922ca42015-05-14 15:39:18 +00002414 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
drh75897232000-05-29 14:26:00 +00002415fi
drhf922ca42015-05-14 15:39:18 +00002416## -------------------- ##
2417## Main body of script. ##
2418## -------------------- ##
drh8b727472009-01-19 18:18:40 +00002419
drh75897232000-05-29 14:26:00 +00002420ac_ext=c
drh75897232000-05-29 14:26:00 +00002421ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00002422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2424ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00002425
a.rottmann84e63352003-03-24 09:42:16 +00002426
2427
drh04446102009-06-15 00:04:06 +00002428sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
vapierfaa68db2009-04-01 07:38:31 +00002429if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
drhf922ca42015-05-14 15:39:18 +00002430as_fn_error $? "configure script is out of date:
vapierfaa68db2009-04-01 07:38:31 +00002431 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2432 top level VERSION file = $sqlite_version_sanity_check
drhf922ca42015-05-14 15:39:18 +00002433please regen with autoconf" "$LINENO" 5
vapierfaa68db2009-04-01 07:38:31 +00002434fi
2435
drh75897232000-05-29 14:26:00 +00002436#########
drh71eb93e2001-09-28 01:34:43 +00002437# Programs needed
drh75897232000-05-29 14:26:00 +00002438#
mlcreech636a9952008-05-05 22:52:56 +00002439case `pwd` in
2440 *\ * | *\ *)
drhf922ca42015-05-14 15:39:18 +00002441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
drh8b727472009-01-19 18:18:40 +00002442$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00002443esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002444
mlcreech94984912008-03-04 19:03:08 +00002445
mlcreech636a9952008-05-05 22:52:56 +00002446
vapier6acb2cf2009-01-28 04:46:28 +00002447macro_version='2.2.6'
2448macro_revision='1.3012'
a.rottmann9bc8b932004-02-29 15:18:31 +00002449
mlcreech94984912008-03-04 19:03:08 +00002450
mlcreech94984912008-03-04 19:03:08 +00002451
a.rottmann9bc8b932004-02-29 15:18:31 +00002452
mlcreech636a9952008-05-05 22:52:56 +00002453
2454
2455
2456
2457
2458
2459
2460
2461
2462ltmain="$ac_aux_dir/ltmain.sh"
2463
drh71eb93e2001-09-28 01:34:43 +00002464ac_aux_dir=
drh8b727472009-01-19 18:18:40 +00002465for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
drh0fe0c462011-09-22 00:56:38 +00002466 if test -f "$ac_dir/install-sh"; then
2467 ac_aux_dir=$ac_dir
2468 ac_install_sh="$ac_aux_dir/install-sh -c"
2469 break
2470 elif test -f "$ac_dir/install.sh"; then
2471 ac_aux_dir=$ac_dir
2472 ac_install_sh="$ac_aux_dir/install.sh -c"
2473 break
2474 elif test -f "$ac_dir/shtool"; then
2475 ac_aux_dir=$ac_dir
2476 ac_install_sh="$ac_aux_dir/shtool install -c"
2477 break
2478 fi
drh71eb93e2001-09-28 01:34:43 +00002479done
2480if test -z "$ac_aux_dir"; then
drhf922ca42015-05-14 15:39:18 +00002481 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002482fi
drh8b727472009-01-19 18:18:40 +00002483
2484# These three variables are undocumented and unsupported,
2485# and are intended to be withdrawn in a future Autoconf release.
2486# They can cause serious problems if a builder's source tree is in a directory
2487# whose full name contains unusual characters.
2488ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2489ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2490ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2491
drh71eb93e2001-09-28 01:34:43 +00002492
2493# Make sure we can run config.sub.
drh8b727472009-01-19 18:18:40 +00002494$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
drhf922ca42015-05-14 15:39:18 +00002495 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002496
drhf922ca42015-05-14 15:39:18 +00002497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
drh8b727472009-01-19 18:18:40 +00002498$as_echo_n "checking build system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002499if ${ac_cv_build+:} false; then :
drh8b727472009-01-19 18:18:40 +00002500 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002501else
drh8b727472009-01-19 18:18:40 +00002502 ac_build_alias=$build_alias
2503test "x$ac_build_alias" = x &&
2504 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2505test "x$ac_build_alias" = x &&
drhf922ca42015-05-14 15:39:18 +00002506 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002507ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
drhf922ca42015-05-14 15:39:18 +00002508 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002509
2510fi
drhf922ca42015-05-14 15:39:18 +00002511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
drh8b727472009-01-19 18:18:40 +00002512$as_echo "$ac_cv_build" >&6; }
2513case $ac_cv_build in
2514*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002515*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002516esac
drh71eb93e2001-09-28 01:34:43 +00002517build=$ac_cv_build
drh8b727472009-01-19 18:18:40 +00002518ac_save_IFS=$IFS; IFS='-'
2519set x $ac_cv_build
2520shift
2521build_cpu=$1
2522build_vendor=$2
2523shift; shift
2524# Remember, the first character of IFS is used to create $*,
2525# except with old shells:
2526build_os=$*
2527IFS=$ac_save_IFS
2528case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002529
a.rottmann84e63352003-03-24 09:42:16 +00002530
drhf922ca42015-05-14 15:39:18 +00002531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
drh8b727472009-01-19 18:18:40 +00002532$as_echo_n "checking host system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002533if ${ac_cv_host+:} false; then :
drh8b727472009-01-19 18:18:40 +00002534 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002535else
drh8b727472009-01-19 18:18:40 +00002536 if test "x$host_alias" = x; then
2537 ac_cv_host=$ac_cv_build
2538else
2539 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
drhf922ca42015-05-14 15:39:18 +00002540 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002541fi
drh71eb93e2001-09-28 01:34:43 +00002542
2543fi
drhf922ca42015-05-14 15:39:18 +00002544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
drh8b727472009-01-19 18:18:40 +00002545$as_echo "$ac_cv_host" >&6; }
2546case $ac_cv_host in
2547*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002548*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002549esac
drh71eb93e2001-09-28 01:34:43 +00002550host=$ac_cv_host
drh8b727472009-01-19 18:18:40 +00002551ac_save_IFS=$IFS; IFS='-'
2552set x $ac_cv_host
2553shift
2554host_cpu=$1
2555host_vendor=$2
2556shift; shift
2557# Remember, the first character of IFS is used to create $*,
2558# except with old shells:
2559host_os=$*
2560IFS=$ac_save_IFS
2561case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002562
a.rottmann84e63352003-03-24 09:42:16 +00002563
drh71eb93e2001-09-28 01:34:43 +00002564ac_ext=c
2565ac_cpp='$CPP $CPPFLAGS'
2566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569if test -n "$ac_tool_prefix"; then
2570 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2571set dummy ${ac_tool_prefix}gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002573$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002574if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002575 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002576else
2577 if test -n "$CC"; then
2578 ac_cv_prog_CC="$CC" # Let the user override the test.
2579else
a.rottmann84e63352003-03-24 09:42:16 +00002580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2581for as_dir in $PATH
2582do
2583 IFS=$as_save_IFS
2584 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002585 for ac_exec_ext in '' $ac_executable_extensions; do
2586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002587 ac_cv_prog_CC="${ac_tool_prefix}gcc"
drhf922ca42015-05-14 15:39:18 +00002588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002589 break 2
2590 fi
2591done
drhf922ca42015-05-14 15:39:18 +00002592 done
drh8b727472009-01-19 18:18:40 +00002593IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002594
2595fi
2596fi
2597CC=$ac_cv_prog_CC
2598if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002600$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002601else
drhf922ca42015-05-14 15:39:18 +00002602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002603$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002604fi
2605
drh8b727472009-01-19 18:18:40 +00002606
drh71eb93e2001-09-28 01:34:43 +00002607fi
2608if test -z "$ac_cv_prog_CC"; then
2609 ac_ct_CC=$CC
2610 # Extract the first word of "gcc", so it can be a program name with args.
2611set dummy gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002613$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002614if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002615 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002616else
2617 if test -n "$ac_ct_CC"; then
2618 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2619else
a.rottmann84e63352003-03-24 09:42:16 +00002620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621for as_dir in $PATH
2622do
2623 IFS=$as_save_IFS
2624 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002625 for ac_exec_ext in '' $ac_executable_extensions; do
2626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002627 ac_cv_prog_ac_ct_CC="gcc"
drhf922ca42015-05-14 15:39:18 +00002628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002629 break 2
2630 fi
2631done
drhf922ca42015-05-14 15:39:18 +00002632 done
drh8b727472009-01-19 18:18:40 +00002633IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002634
2635fi
2636fi
2637ac_ct_CC=$ac_cv_prog_ac_ct_CC
2638if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002640$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002641else
drhf922ca42015-05-14 15:39:18 +00002642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002643$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002644fi
2645
drh8b727472009-01-19 18:18:40 +00002646 if test "x$ac_ct_CC" = x; then
2647 CC=""
2648 else
2649 case $cross_compiling:$ac_tool_warned in
2650yes:)
drhf922ca42015-05-14 15:39:18 +00002651{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2652$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002653ac_tool_warned=yes ;;
2654esac
2655 CC=$ac_ct_CC
2656 fi
drh71eb93e2001-09-28 01:34:43 +00002657else
2658 CC="$ac_cv_prog_CC"
2659fi
2660
2661if test -z "$CC"; then
drh8b727472009-01-19 18:18:40 +00002662 if test -n "$ac_tool_prefix"; then
2663 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002664set dummy ${ac_tool_prefix}cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002666$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002667if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002668 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002669else
2670 if test -n "$CC"; then
2671 ac_cv_prog_CC="$CC" # Let the user override the test.
2672else
a.rottmann84e63352003-03-24 09:42:16 +00002673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674for as_dir in $PATH
2675do
2676 IFS=$as_save_IFS
2677 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002680 ac_cv_prog_CC="${ac_tool_prefix}cc"
drhf922ca42015-05-14 15:39:18 +00002681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002682 break 2
2683 fi
2684done
drhf922ca42015-05-14 15:39:18 +00002685 done
drh8b727472009-01-19 18:18:40 +00002686IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002687
2688fi
2689fi
2690CC=$ac_cv_prog_CC
2691if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002693$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002694else
drhf922ca42015-05-14 15:39:18 +00002695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002696$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002697fi
2698
drh8b727472009-01-19 18:18:40 +00002699
a.rottmann84e63352003-03-24 09:42:16 +00002700 fi
drh71eb93e2001-09-28 01:34:43 +00002701fi
2702if test -z "$CC"; then
2703 # Extract the first word of "cc", so it can be a program name with args.
2704set dummy cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002706$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002707if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002708 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002709else
2710 if test -n "$CC"; then
2711 ac_cv_prog_CC="$CC" # Let the user override the test.
2712else
2713 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715for as_dir in $PATH
2716do
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002721 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2722 ac_prog_rejected=yes
2723 continue
2724 fi
2725 ac_cv_prog_CC="cc"
drhf922ca42015-05-14 15:39:18 +00002726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002727 break 2
2728 fi
2729done
drhf922ca42015-05-14 15:39:18 +00002730 done
drh8b727472009-01-19 18:18:40 +00002731IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002732
2733if test $ac_prog_rejected = yes; then
2734 # We found a bogon in the path, so make sure we never use it.
2735 set dummy $ac_cv_prog_CC
2736 shift
2737 if test $# != 0; then
2738 # We chose a different compiler from the bogus one.
2739 # However, it has the same basename, so the bogon will be chosen
2740 # first if we set CC to just the basename; use the full file name.
2741 shift
a.rottmann84e63352003-03-24 09:42:16 +00002742 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002743 fi
2744fi
2745fi
2746fi
2747CC=$ac_cv_prog_CC
2748if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002750$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002751else
drhf922ca42015-05-14 15:39:18 +00002752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002753$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002754fi
2755
drh8b727472009-01-19 18:18:40 +00002756
drh71eb93e2001-09-28 01:34:43 +00002757fi
2758if test -z "$CC"; then
2759 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00002760 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002761 do
2762 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2763set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002765$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002766if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002767 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002768else
2769 if test -n "$CC"; then
2770 ac_cv_prog_CC="$CC" # Let the user override the test.
2771else
a.rottmann84e63352003-03-24 09:42:16 +00002772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773for as_dir in $PATH
2774do
2775 IFS=$as_save_IFS
2776 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002779 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002781 break 2
2782 fi
2783done
drhf922ca42015-05-14 15:39:18 +00002784 done
drh8b727472009-01-19 18:18:40 +00002785IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002786
2787fi
2788fi
2789CC=$ac_cv_prog_CC
2790if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002792$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002793else
drhf922ca42015-05-14 15:39:18 +00002794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002795$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002796fi
2797
drh8b727472009-01-19 18:18:40 +00002798
drh71eb93e2001-09-28 01:34:43 +00002799 test -n "$CC" && break
2800 done
2801fi
2802if test -z "$CC"; then
2803 ac_ct_CC=$CC
drh8b727472009-01-19 18:18:40 +00002804 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002805do
2806 # Extract the first word of "$ac_prog", so it can be a program name with args.
2807set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002809$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002810if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002811 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002812else
2813 if test -n "$ac_ct_CC"; then
2814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2815else
a.rottmann84e63352003-03-24 09:42:16 +00002816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817for as_dir in $PATH
2818do
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002823 ac_cv_prog_ac_ct_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002825 break 2
2826 fi
2827done
drhf922ca42015-05-14 15:39:18 +00002828 done
drh8b727472009-01-19 18:18:40 +00002829IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002830
2831fi
2832fi
2833ac_ct_CC=$ac_cv_prog_ac_ct_CC
2834if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002836$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002837else
drhf922ca42015-05-14 15:39:18 +00002838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002839$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002840fi
2841
drh8b727472009-01-19 18:18:40 +00002842
drh71eb93e2001-09-28 01:34:43 +00002843 test -n "$ac_ct_CC" && break
2844done
2845
drh8b727472009-01-19 18:18:40 +00002846 if test "x$ac_ct_CC" = x; then
2847 CC=""
2848 else
2849 case $cross_compiling:$ac_tool_warned in
2850yes:)
drhf922ca42015-05-14 15:39:18 +00002851{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2852$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002853ac_tool_warned=yes ;;
2854esac
2855 CC=$ac_ct_CC
2856 fi
drh71eb93e2001-09-28 01:34:43 +00002857fi
2858
2859fi
2860
a.rottmann84e63352003-03-24 09:42:16 +00002861
drhf922ca42015-05-14 15:39:18 +00002862test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2863$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2864as_fn_error $? "no acceptable C compiler found in \$PATH
2865See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00002866
2867# Provide some information about the compiler.
drhf922ca42015-05-14 15:39:18 +00002868$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
drh8b727472009-01-19 18:18:40 +00002869set X $ac_compile
2870ac_compiler=$2
drhf922ca42015-05-14 15:39:18 +00002871for ac_option in --version -v -V -qversion; do
2872 { { ac_try="$ac_compiler $ac_option >&5"
drh8b727472009-01-19 18:18:40 +00002873case "(($ac_try" in
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2876esac
drhf922ca42015-05-14 15:39:18 +00002877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2878$as_echo "$ac_try_echo"; } >&5
2879 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
drh71eb93e2001-09-28 01:34:43 +00002880 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002881 if test -s conftest.err; then
2882 sed '10a\
2883... rest of stderr output deleted ...
2884 10q' conftest.err >conftest.er1
2885 cat conftest.er1 >&5
2886 fi
2887 rm -f conftest.er1 conftest.err
2888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2889 test $ac_status = 0; }
2890done
drh71eb93e2001-09-28 01:34:43 +00002891
drhf922ca42015-05-14 15:39:18 +00002892cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00002893/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002894
2895int
2896main ()
2897{
2898
2899 ;
2900 return 0;
2901}
2902_ACEOF
2903ac_clean_files_save=$ac_clean_files
drh8b727472009-01-19 18:18:40 +00002904ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002905# Try to create an executable without -o first, disregard a.out.
2906# It will help us diagnose broken compilers, and finding out an intuition
2907# of exeext.
drhf922ca42015-05-14 15:39:18 +00002908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2909$as_echo_n "checking whether the C compiler works... " >&6; }
drh8b727472009-01-19 18:18:40 +00002910ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
drh866108f2008-05-13 00:57:21 +00002911
drh8b727472009-01-19 18:18:40 +00002912# The possible output files:
2913ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2914
2915ac_rmfiles=
2916for ac_file in $ac_files
2917do
2918 case $ac_file in
2919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2920 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2921 esac
2922done
2923rm -f $ac_rmfiles
2924
drhf922ca42015-05-14 15:39:18 +00002925if { { ac_try="$ac_link_default"
drh8b727472009-01-19 18:18:40 +00002926case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929esac
drhf922ca42015-05-14 15:39:18 +00002930eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2931$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00002932 (eval "$ac_link_default") 2>&5
2933 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2935 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00002936 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2937# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2938# in a Makefile. We should not override ac_cv_exeext if it was cached,
2939# so that the user can short-circuit this test for compilers unknown to
2940# Autoconf.
2941for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002942do
2943 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002944 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002946 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002947 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002948 # We found the default executable, but exeext='' is most
2949 # certainly right.
2950 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002951 *.* )
drhf922ca42015-05-14 15:39:18 +00002952 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
drh8b727472009-01-19 18:18:40 +00002953 then :; else
2954 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2955 fi
2956 # We set ac_cv_exeext here because the later test for it is not
2957 # safe: cross compilers may not add the suffix if given an `-o'
2958 # argument, so we may need to know it at that point already.
2959 # Even if this section looks crufty: it has the advantage of
2960 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002961 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002962 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002963 break;;
drh71eb93e2001-09-28 01:34:43 +00002964 esac
2965done
drh8b727472009-01-19 18:18:40 +00002966test "$ac_cv_exeext" = no && ac_cv_exeext=
2967
drh71eb93e2001-09-28 01:34:43 +00002968else
drh8b727472009-01-19 18:18:40 +00002969 ac_file=''
2970fi
drhf922ca42015-05-14 15:39:18 +00002971if test -z "$ac_file"; then :
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973$as_echo "no" >&6; }
2974$as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002975sed 's/^/| /' conftest.$ac_ext >&5
2976
drhf922ca42015-05-14 15:39:18 +00002977{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2978$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2979as_fn_error 77 "C compiler cannot create executables
2980See \`config.log' for more details" "$LINENO" 5; }
2981else
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh710658c2012-01-16 13:00:05 +00002983$as_echo "yes" >&6; }
drhf922ca42015-05-14 15:39:18 +00002984fi
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2986$as_echo_n "checking for C compiler default output file name... " >&6; }
2987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2988$as_echo "$ac_file" >&6; }
2989ac_exeext=$ac_cv_exeext
drh710658c2012-01-16 13:00:05 +00002990
drh8b727472009-01-19 18:18:40 +00002991rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002992ac_clean_files=$ac_clean_files_save
drhf922ca42015-05-14 15:39:18 +00002993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
drh8b727472009-01-19 18:18:40 +00002994$as_echo_n "checking for suffix of executables... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002995if { { ac_try="$ac_link"
drh8b727472009-01-19 18:18:40 +00002996case "(($ac_try" in
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
2999esac
drhf922ca42015-05-14 15:39:18 +00003000eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3001$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00003002 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00003003 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00003004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3005 test $ac_status = 0; }; then :
drh71eb93e2001-09-28 01:34:43 +00003006 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3007# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3008# work properly (i.e., refer to `conftest.exe'), while it won't with
3009# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00003010for ac_file in conftest.exe conftest conftest.*; do
3011 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00003012 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00003014 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00003015 break;;
drh71eb93e2001-09-28 01:34:43 +00003016 * ) break;;
3017 esac
3018done
3019else
drhf922ca42015-05-14 15:39:18 +00003020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3021$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3022as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3023See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003024fi
drhf922ca42015-05-14 15:39:18 +00003025rm -f conftest conftest$ac_cv_exeext
3026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
drh8b727472009-01-19 18:18:40 +00003027$as_echo "$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003028
3029rm -f conftest.$ac_ext
3030EXEEXT=$ac_cv_exeext
3031ac_exeext=$EXEEXT
drhf922ca42015-05-14 15:39:18 +00003032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3033/* end confdefs.h. */
3034#include <stdio.h>
3035int
3036main ()
3037{
3038FILE *f = fopen ("conftest.out", "w");
3039 return ferror (f) || fclose (f) != 0;
3040
3041 ;
3042 return 0;
3043}
3044_ACEOF
3045ac_clean_files="$ac_clean_files conftest.out"
3046# Check that the compiler produces executables we can run. If not, either
3047# the compiler is broken, or we cross compile.
3048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3049$as_echo_n "checking whether we are cross compiling... " >&6; }
3050if test "$cross_compiling" != yes; then
3051 { { ac_try="$ac_link"
3052case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055esac
3056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3057$as_echo "$ac_try_echo"; } >&5
3058 (eval "$ac_link") 2>&5
3059 ac_status=$?
3060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3061 test $ac_status = 0; }
3062 if { ac_try='./conftest$ac_cv_exeext'
3063 { { case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3066esac
3067eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3068$as_echo "$ac_try_echo"; } >&5
3069 (eval "$ac_try") 2>&5
3070 ac_status=$?
3071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3072 test $ac_status = 0; }; }; then
3073 cross_compiling=no
3074 else
3075 if test "$cross_compiling" = maybe; then
3076 cross_compiling=yes
3077 else
3078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3080as_fn_error $? "cannot run C compiled programs.
3081If you meant to cross compile, use \`--host'.
3082See \`config.log' for more details" "$LINENO" 5; }
3083 fi
3084 fi
3085fi
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3087$as_echo "$cross_compiling" >&6; }
3088
3089rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3090ac_clean_files=$ac_clean_files_save
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
drh8b727472009-01-19 18:18:40 +00003092$as_echo_n "checking for suffix of object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003093if ${ac_cv_objext+:} false; then :
drh8b727472009-01-19 18:18:40 +00003094 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003095else
drhf922ca42015-05-14 15:39:18 +00003096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003097/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003098
3099int
3100main ()
3101{
3102
3103 ;
3104 return 0;
3105}
3106_ACEOF
3107rm -f conftest.o conftest.obj
drhf922ca42015-05-14 15:39:18 +00003108if { { ac_try="$ac_compile"
drh8b727472009-01-19 18:18:40 +00003109case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3112esac
drhf922ca42015-05-14 15:39:18 +00003113eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00003115 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00003116 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00003117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00003119 for ac_file in conftest.o conftest.obj conftest.*; do
3120 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00003121 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
drh71eb93e2001-09-28 01:34:43 +00003123 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3124 break;;
3125 esac
3126done
3127else
drh8b727472009-01-19 18:18:40 +00003128 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00003129sed 's/^/| /' conftest.$ac_ext >&5
3130
drhf922ca42015-05-14 15:39:18 +00003131{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3132$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133as_fn_error $? "cannot compute suffix of object files: cannot compile
3134See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003135fi
drh71eb93e2001-09-28 01:34:43 +00003136rm -f conftest.$ac_cv_objext conftest.$ac_ext
3137fi
drhf922ca42015-05-14 15:39:18 +00003138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
drh8b727472009-01-19 18:18:40 +00003139$as_echo "$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003140OBJEXT=$ac_cv_objext
3141ac_objext=$OBJEXT
drhf922ca42015-05-14 15:39:18 +00003142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
drh8b727472009-01-19 18:18:40 +00003143$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003144if ${ac_cv_c_compiler_gnu+:} false; then :
drh8b727472009-01-19 18:18:40 +00003145 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003146else
drhf922ca42015-05-14 15:39:18 +00003147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003148/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003149
3150int
3151main ()
3152{
3153#ifndef __GNUC__
3154 choke me
3155#endif
3156
3157 ;
3158 return 0;
3159}
3160_ACEOF
drhf922ca42015-05-14 15:39:18 +00003161if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003162 ac_compiler_gnu=yes
3163else
drhf922ca42015-05-14 15:39:18 +00003164 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00003165fi
drh8b727472009-01-19 18:18:40 +00003166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003167ac_cv_c_compiler_gnu=$ac_compiler_gnu
3168
3169fi
drhf922ca42015-05-14 15:39:18 +00003170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
drh8b727472009-01-19 18:18:40 +00003171$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3172if test $ac_compiler_gnu = yes; then
3173 GCC=yes
3174else
3175 GCC=
3176fi
drh71eb93e2001-09-28 01:34:43 +00003177ac_test_CFLAGS=${CFLAGS+set}
3178ac_save_CFLAGS=$CFLAGS
drhf922ca42015-05-14 15:39:18 +00003179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
drh8b727472009-01-19 18:18:40 +00003180$as_echo_n "checking whether $CC accepts -g... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003181if ${ac_cv_prog_cc_g+:} false; then :
drh8b727472009-01-19 18:18:40 +00003182 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003183else
drh8b727472009-01-19 18:18:40 +00003184 ac_save_c_werror_flag=$ac_c_werror_flag
3185 ac_c_werror_flag=yes
3186 ac_cv_prog_cc_g=no
3187 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003189/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003190
3191int
3192main ()
3193{
3194
3195 ;
3196 return 0;
3197}
3198_ACEOF
drhf922ca42015-05-14 15:39:18 +00003199if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003200 ac_cv_prog_cc_g=yes
3201else
drhf922ca42015-05-14 15:39:18 +00003202 CFLAGS=""
3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003204/* end confdefs.h. */
3205
3206int
3207main ()
3208{
3209
3210 ;
3211 return 0;
3212}
3213_ACEOF
drhf922ca42015-05-14 15:39:18 +00003214if ac_fn_c_try_compile "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00003215
drhf922ca42015-05-14 15:39:18 +00003216else
3217 ac_c_werror_flag=$ac_save_c_werror_flag
drh8b727472009-01-19 18:18:40 +00003218 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003220/* end confdefs.h. */
3221
3222int
3223main ()
3224{
3225
3226 ;
3227 return 0;
3228}
3229_ACEOF
drhf922ca42015-05-14 15:39:18 +00003230if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003231 ac_cv_prog_cc_g=yes
drh71eb93e2001-09-28 01:34:43 +00003232fi
drh8b727472009-01-19 18:18:40 +00003233rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003234fi
drh8b727472009-01-19 18:18:40 +00003235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236fi
drh8b727472009-01-19 18:18:40 +00003237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238 ac_c_werror_flag=$ac_save_c_werror_flag
3239fi
drhf922ca42015-05-14 15:39:18 +00003240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
drh8b727472009-01-19 18:18:40 +00003241$as_echo "$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003242if test "$ac_test_CFLAGS" = set; then
3243 CFLAGS=$ac_save_CFLAGS
3244elif test $ac_cv_prog_cc_g = yes; then
3245 if test "$GCC" = yes; then
3246 CFLAGS="-g -O2"
3247 else
3248 CFLAGS="-g"
3249 fi
3250else
3251 if test "$GCC" = yes; then
3252 CFLAGS="-O2"
3253 else
3254 CFLAGS=
3255 fi
3256fi
drhf922ca42015-05-14 15:39:18 +00003257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
drh8b727472009-01-19 18:18:40 +00003258$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003259if ${ac_cv_prog_cc_c89+:} false; then :
drh8b727472009-01-19 18:18:40 +00003260 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00003261else
drh8b727472009-01-19 18:18:40 +00003262 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00003263ac_save_CC=$CC
drhf922ca42015-05-14 15:39:18 +00003264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003265/* end confdefs.h. */
3266#include <stdarg.h>
3267#include <stdio.h>
drhf922ca42015-05-14 15:39:18 +00003268struct stat;
a.rottmann84e63352003-03-24 09:42:16 +00003269/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3270struct buf { int x; };
3271FILE * (*rcsopen) (struct buf *, struct stat *, int);
3272static char *e (p, i)
3273 char **p;
3274 int i;
3275{
3276 return p[i];
3277}
3278static char *f (char * (*g) (char **, int), char **p, ...)
3279{
3280 char *s;
3281 va_list v;
3282 va_start (v,p);
3283 s = g (p, va_arg (v,int));
3284 va_end (v);
3285 return s;
3286}
a.rottmann964dbb12004-02-26 19:47:42 +00003287
3288/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3289 function prototypes and stuff, but not '\xHH' hex character constants.
3290 These don't provoke an error unfortunately, instead are silently treated
drh8b727472009-01-19 18:18:40 +00003291 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00003292 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3293 array size at least. It's necessary to write '\x00'==0 to get something
drh8b727472009-01-19 18:18:40 +00003294 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00003295int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3296
drh8b727472009-01-19 18:18:40 +00003297/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3298 inside strings and character constants. */
3299#define FOO(x) 'x'
3300int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3301
a.rottmann84e63352003-03-24 09:42:16 +00003302int test (int i, double x);
3303struct s1 {int (*f) (int a);};
3304struct s2 {int (*f) (double a);};
3305int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3306int argc;
3307char **argv;
3308int
3309main ()
3310{
3311return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3312 ;
3313 return 0;
3314}
3315_ACEOF
drh8b727472009-01-19 18:18:40 +00003316for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3317 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003318do
3319 CC="$ac_save_CC $ac_arg"
drhf922ca42015-05-14 15:39:18 +00003320 if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003321 ac_cv_prog_cc_c89=$ac_arg
a.rottmann84e63352003-03-24 09:42:16 +00003322fi
drh8b727472009-01-19 18:18:40 +00003323rm -f core conftest.err conftest.$ac_objext
3324 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003325done
drh8b727472009-01-19 18:18:40 +00003326rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003327CC=$ac_save_CC
3328
3329fi
drh8b727472009-01-19 18:18:40 +00003330# AC_CACHE_VAL
3331case "x$ac_cv_prog_cc_c89" in
3332 x)
drhf922ca42015-05-14 15:39:18 +00003333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
drh8b727472009-01-19 18:18:40 +00003334$as_echo "none needed" >&6; } ;;
3335 xno)
drhf922ca42015-05-14 15:39:18 +00003336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
drh8b727472009-01-19 18:18:40 +00003337$as_echo "unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003338 *)
drh8b727472009-01-19 18:18:40 +00003339 CC="$CC $ac_cv_prog_cc_c89"
drhf922ca42015-05-14 15:39:18 +00003340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
drh8b727472009-01-19 18:18:40 +00003341$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003342esac
drhf922ca42015-05-14 15:39:18 +00003343if test "x$ac_cv_prog_cc_c89" != xno; then :
a.rottmann84e63352003-03-24 09:42:16 +00003344
drhf922ca42015-05-14 15:39:18 +00003345fi
a.rottmann84e63352003-03-24 09:42:16 +00003346
drh71eb93e2001-09-28 01:34:43 +00003347ac_ext=c
3348ac_cpp='$CPP $CPPFLAGS'
3349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3351ac_compiler_gnu=$ac_cv_c_compiler_gnu
3352
drhf922ca42015-05-14 15:39:18 +00003353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
drh8b727472009-01-19 18:18:40 +00003354$as_echo_n "checking for a sed that does not truncate output... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003355if ${ac_cv_path_SED+:} false; then :
drh8b727472009-01-19 18:18:40 +00003356 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003357else
drh8b727472009-01-19 18:18:40 +00003358 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3359 for ac_i in 1 2 3 4 5 6 7; do
3360 ac_script="$ac_script$as_nl$ac_script"
3361 done
3362 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
drhf922ca42015-05-14 15:39:18 +00003363 { ac_script=; unset ac_script;}
drh8b727472009-01-19 18:18:40 +00003364 if test -z "$SED"; then
3365 ac_path_SED_found=false
3366 # Loop through the user's path and test for each of PROGNAME-LIST
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00003368for as_dir in $PATH
3369do
3370 IFS=$as_save_IFS
3371 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003372 for ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003373 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003374 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003375 as_fn_executable_p "$ac_path_SED" || continue
drh8b727472009-01-19 18:18:40 +00003376# Check for GNU ac_path_SED and select it if it is found.
3377 # Check for GNU $ac_path_SED
3378case `"$ac_path_SED" --version 2>&1` in
3379*GNU*)
3380 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3381*)
3382 ac_count=0
3383 $as_echo_n 0123456789 >"conftest.in"
3384 while :
3385 do
3386 cat "conftest.in" "conftest.in" >"conftest.tmp"
3387 mv "conftest.tmp" "conftest.in"
3388 cp "conftest.in" "conftest.nl"
3389 $as_echo '' >> "conftest.nl"
3390 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3391 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003392 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003393 if test $ac_count -gt ${ac_path_SED_max-0}; then
3394 # Best one so far, save it but keep looking for a better one
3395 ac_cv_path_SED="$ac_path_SED"
3396 ac_path_SED_max=$ac_count
3397 fi
3398 # 10*(2^10) chars as input seems more than enough
3399 test $ac_count -gt 10 && break
3400 done
3401 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3402esac
3403
3404 $ac_path_SED_found && break 3
a.rottmann9bc8b932004-02-29 15:18:31 +00003405 done
3406 done
drhf922ca42015-05-14 15:39:18 +00003407 done
mlcreech636a9952008-05-05 22:52:56 +00003408IFS=$as_save_IFS
drh8b727472009-01-19 18:18:40 +00003409 if test -z "$ac_cv_path_SED"; then
drhf922ca42015-05-14 15:39:18 +00003410 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
a.rottmann9bc8b932004-02-29 15:18:31 +00003411 fi
drh8b727472009-01-19 18:18:40 +00003412else
3413 ac_cv_path_SED=$SED
mlcreech636a9952008-05-05 22:52:56 +00003414fi
drh866108f2008-05-13 00:57:21 +00003415
drh8b727472009-01-19 18:18:40 +00003416fi
drhf922ca42015-05-14 15:39:18 +00003417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
drh8b727472009-01-19 18:18:40 +00003418$as_echo "$ac_cv_path_SED" >&6; }
3419 SED="$ac_cv_path_SED"
3420 rm -f conftest.sed
a.rottmann9bc8b932004-02-29 15:18:31 +00003421
mlcreech636a9952008-05-05 22:52:56 +00003422test -z "$SED" && SED=sed
3423Xsed="$SED -e 1s/^X//"
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
drhf922ca42015-05-14 15:39:18 +00003435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
drh8b727472009-01-19 18:18:40 +00003436$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003437if ${ac_cv_path_GREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003438 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003439else
drh8b727472009-01-19 18:18:40 +00003440 if test -z "$GREP"; then
3441 ac_path_GREP_found=false
3442 # Loop through the user's path and test for each of PROGNAME-LIST
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3445do
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003448 for ac_prog in grep ggrep; do
drh8b727472009-01-19 18:18:40 +00003449 for ac_exec_ext in '' $ac_executable_extensions; do
3450 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003451 as_fn_executable_p "$ac_path_GREP" || continue
drh8b727472009-01-19 18:18:40 +00003452# Check for GNU ac_path_GREP and select it if it is found.
3453 # Check for GNU $ac_path_GREP
3454case `"$ac_path_GREP" --version 2>&1` in
3455*GNU*)
3456 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3457*)
3458 ac_count=0
3459 $as_echo_n 0123456789 >"conftest.in"
3460 while :
3461 do
3462 cat "conftest.in" "conftest.in" >"conftest.tmp"
3463 mv "conftest.tmp" "conftest.in"
3464 cp "conftest.in" "conftest.nl"
3465 $as_echo 'GREP' >> "conftest.nl"
3466 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3467 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003468 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003469 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3470 # Best one so far, save it but keep looking for a better one
3471 ac_cv_path_GREP="$ac_path_GREP"
3472 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003473 fi
drh8b727472009-01-19 18:18:40 +00003474 # 10*(2^10) chars as input seems more than enough
3475 test $ac_count -gt 10 && break
3476 done
3477 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3478esac
3479
3480 $ac_path_GREP_found && break 3
3481 done
3482 done
drhf922ca42015-05-14 15:39:18 +00003483 done
drh8b727472009-01-19 18:18:40 +00003484IFS=$as_save_IFS
3485 if test -z "$ac_cv_path_GREP"; then
drhf922ca42015-05-14 15:39:18 +00003486 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003487 fi
3488else
3489 ac_cv_path_GREP=$GREP
mlcreech94984912008-03-04 19:03:08 +00003490fi
drh8b727472009-01-19 18:18:40 +00003491
3492fi
drhf922ca42015-05-14 15:39:18 +00003493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
drh8b727472009-01-19 18:18:40 +00003494$as_echo "$ac_cv_path_GREP" >&6; }
3495 GREP="$ac_cv_path_GREP"
mlcreech94984912008-03-04 19:03:08 +00003496
3497
drhf922ca42015-05-14 15:39:18 +00003498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
drh8b727472009-01-19 18:18:40 +00003499$as_echo_n "checking for egrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003500if ${ac_cv_path_EGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003501 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +00003502else
drh8b727472009-01-19 18:18:40 +00003503 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3504 then ac_cv_path_EGREP="$GREP -E"
3505 else
3506 if test -z "$EGREP"; then
3507 ac_path_EGREP_found=false
3508 # Loop through the user's path and test for each of PROGNAME-LIST
3509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3511do
3512 IFS=$as_save_IFS
3513 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003514 for ac_prog in egrep; do
drh8b727472009-01-19 18:18:40 +00003515 for ac_exec_ext in '' $ac_executable_extensions; do
3516 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003517 as_fn_executable_p "$ac_path_EGREP" || continue
drh8b727472009-01-19 18:18:40 +00003518# Check for GNU ac_path_EGREP and select it if it is found.
3519 # Check for GNU $ac_path_EGREP
3520case `"$ac_path_EGREP" --version 2>&1` in
3521*GNU*)
3522 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3523*)
3524 ac_count=0
3525 $as_echo_n 0123456789 >"conftest.in"
3526 while :
3527 do
3528 cat "conftest.in" "conftest.in" >"conftest.tmp"
3529 mv "conftest.tmp" "conftest.in"
3530 cp "conftest.in" "conftest.nl"
3531 $as_echo 'EGREP' >> "conftest.nl"
3532 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003534 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003535 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3536 # Best one so far, save it but keep looking for a better one
3537 ac_cv_path_EGREP="$ac_path_EGREP"
3538 ac_path_EGREP_max=$ac_count
mlcreech94984912008-03-04 19:03:08 +00003539 fi
drh8b727472009-01-19 18:18:40 +00003540 # 10*(2^10) chars as input seems more than enough
3541 test $ac_count -gt 10 && break
3542 done
3543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3544esac
3545
3546 $ac_path_EGREP_found && break 3
3547 done
3548 done
drhf922ca42015-05-14 15:39:18 +00003549 done
drh8b727472009-01-19 18:18:40 +00003550IFS=$as_save_IFS
3551 if test -z "$ac_cv_path_EGREP"; then
drhf922ca42015-05-14 15:39:18 +00003552 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003553 fi
3554else
3555 ac_cv_path_EGREP=$EGREP
mlcreech94984912008-03-04 19:03:08 +00003556fi
drh8b727472009-01-19 18:18:40 +00003557
3558 fi
3559fi
drhf922ca42015-05-14 15:39:18 +00003560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
drh8b727472009-01-19 18:18:40 +00003561$as_echo "$ac_cv_path_EGREP" >&6; }
3562 EGREP="$ac_cv_path_EGREP"
3563
3564
drhf922ca42015-05-14 15:39:18 +00003565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
drh8b727472009-01-19 18:18:40 +00003566$as_echo_n "checking for fgrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003567if ${ac_cv_path_FGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003568 $as_echo_n "(cached) " >&6
3569else
3570 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3571 then ac_cv_path_FGREP="$GREP -F"
3572 else
3573 if test -z "$FGREP"; then
3574 ac_path_FGREP_found=false
3575 # Loop through the user's path and test for each of PROGNAME-LIST
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3578do
3579 IFS=$as_save_IFS
3580 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003581 for ac_prog in fgrep; do
drh8b727472009-01-19 18:18:40 +00003582 for ac_exec_ext in '' $ac_executable_extensions; do
3583 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003584 as_fn_executable_p "$ac_path_FGREP" || continue
drh8b727472009-01-19 18:18:40 +00003585# Check for GNU ac_path_FGREP and select it if it is found.
3586 # Check for GNU $ac_path_FGREP
3587case `"$ac_path_FGREP" --version 2>&1` in
3588*GNU*)
3589 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3590*)
3591 ac_count=0
3592 $as_echo_n 0123456789 >"conftest.in"
3593 while :
3594 do
3595 cat "conftest.in" "conftest.in" >"conftest.tmp"
3596 mv "conftest.tmp" "conftest.in"
3597 cp "conftest.in" "conftest.nl"
3598 $as_echo 'FGREP' >> "conftest.nl"
3599 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3600 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003601 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003602 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3603 # Best one so far, save it but keep looking for a better one
3604 ac_cv_path_FGREP="$ac_path_FGREP"
3605 ac_path_FGREP_max=$ac_count
3606 fi
3607 # 10*(2^10) chars as input seems more than enough
3608 test $ac_count -gt 10 && break
3609 done
3610 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3611esac
3612
3613 $ac_path_FGREP_found && break 3
3614 done
3615 done
drhf922ca42015-05-14 15:39:18 +00003616 done
drh8b727472009-01-19 18:18:40 +00003617IFS=$as_save_IFS
3618 if test -z "$ac_cv_path_FGREP"; then
drhf922ca42015-05-14 15:39:18 +00003619 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003620 fi
3621else
3622 ac_cv_path_FGREP=$FGREP
3623fi
3624
3625 fi
3626fi
drhf922ca42015-05-14 15:39:18 +00003627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
drh8b727472009-01-19 18:18:40 +00003628$as_echo "$ac_cv_path_FGREP" >&6; }
3629 FGREP="$ac_cv_path_FGREP"
mlcreech636a9952008-05-05 22:52:56 +00003630
3631
3632test -z "$GREP" && GREP=grep
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
a.rottmann9bc8b932004-02-29 15:18:31 +00003649
3650
a.rottmann84e63352003-03-24 09:42:16 +00003651
drh8b727472009-01-19 18:18:40 +00003652# Check whether --with-gnu-ld was given.
drhf922ca42015-05-14 15:39:18 +00003653if test "${with_gnu_ld+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003654 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003655else
3656 with_gnu_ld=no
drh8b727472009-01-19 18:18:40 +00003657fi
3658
drh71eb93e2001-09-28 01:34:43 +00003659ac_prog=ld
3660if test "$GCC" = yes; then
3661 # Check if gcc -print-prog-name=ld gives a path.
drhf922ca42015-05-14 15:39:18 +00003662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
drh8b727472009-01-19 18:18:40 +00003663$as_echo_n "checking for ld used by $CC... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003664 case $host in
3665 *-*-mingw*)
3666 # gcc leaves a trailing carriage return which upsets mingw
3667 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3668 *)
3669 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3670 esac
3671 case $ac_prog in
3672 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003673 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003674 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003675 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00003676 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3677 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3678 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003679 done
3680 test -z "$LD" && LD="$ac_prog"
3681 ;;
3682 "")
3683 # If it fails, then pretend we aren't using GCC.
3684 ac_prog=ld
3685 ;;
3686 *)
3687 # If it is relative, then search for the first ld in PATH.
3688 with_gnu_ld=unknown
3689 ;;
3690 esac
3691elif test "$with_gnu_ld" = yes; then
drhf922ca42015-05-14 15:39:18 +00003692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003693$as_echo_n "checking for GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003694else
drhf922ca42015-05-14 15:39:18 +00003695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003696$as_echo_n "checking for non-GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003697fi
drhf922ca42015-05-14 15:39:18 +00003698if ${lt_cv_path_LD+:} false; then :
drh8b727472009-01-19 18:18:40 +00003699 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003700else
3701 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003702 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003703 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003704 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003705 test -z "$ac_dir" && ac_dir=.
3706 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3707 lt_cv_path_LD="$ac_dir/$ac_prog"
3708 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003709 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003710 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003711 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3712 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003713 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003714 ;;
3715 *)
drh71eb93e2001-09-28 01:34:43 +00003716 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003717 ;;
3718 esac
drh71eb93e2001-09-28 01:34:43 +00003719 fi
3720 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003721 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003722else
3723 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3724fi
3725fi
3726
3727LD="$lt_cv_path_LD"
3728if test -n "$LD"; then
drhf922ca42015-05-14 15:39:18 +00003729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
drh8b727472009-01-19 18:18:40 +00003730$as_echo "$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003731else
drhf922ca42015-05-14 15:39:18 +00003732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003733$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003734fi
drhf922ca42015-05-14 15:39:18 +00003735test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003737$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003738if ${lt_cv_prog_gnu_ld+:} false; then :
drh8b727472009-01-19 18:18:40 +00003739 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003740else
vapier7f19c022007-02-17 14:46:31 +00003741 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003742case `$LD -v 2>&1 </dev/null` in
3743*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003744 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003745 ;;
3746*)
drh71eb93e2001-09-28 01:34:43 +00003747 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003748 ;;
3749esac
drh71eb93e2001-09-28 01:34:43 +00003750fi
drhf922ca42015-05-14 15:39:18 +00003751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
drh8b727472009-01-19 18:18:40 +00003752$as_echo "$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003753with_gnu_ld=$lt_cv_prog_gnu_ld
3754
a.rottmann84e63352003-03-24 09:42:16 +00003755
drh71eb93e2001-09-28 01:34:43 +00003756
mlcreech636a9952008-05-05 22:52:56 +00003757
3758
3759
3760
3761
3762
drhf922ca42015-05-14 15:39:18 +00003763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
drh8b727472009-01-19 18:18:40 +00003764$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003765if ${lt_cv_path_NM+:} false; then :
drh8b727472009-01-19 18:18:40 +00003766 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003767else
3768 if test -n "$NM"; then
3769 # Let the user override the test.
3770 lt_cv_path_NM="$NM"
3771else
vapier7f19c022007-02-17 14:46:31 +00003772 lt_nm_to_check="${ac_tool_prefix}nm"
3773 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3774 lt_nm_to_check="$lt_nm_to_check nm"
3775 fi
3776 for lt_tmp_nm in $lt_nm_to_check; do
3777 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3778 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3779 IFS="$lt_save_ifs"
3780 test -z "$ac_dir" && ac_dir=.
3781 tmp_nm="$ac_dir/$lt_tmp_nm"
3782 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3783 # Check to see if the nm accepts a BSD-compat flag.
3784 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3785 # nm: unknown option "B" ignored
3786 # Tru64's nm complains that /dev/null is an invalid object file
3787 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3788 */dev/null* | *'Invalid file or object type'*)
3789 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003790 break
3791 ;;
3792 *)
vapier7f19c022007-02-17 14:46:31 +00003793 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3794 */dev/null*)
3795 lt_cv_path_NM="$tmp_nm -p"
3796 break
3797 ;;
3798 *)
3799 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3800 continue # so that we can try to find one that supports BSD flags
3801 ;;
3802 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003803 ;;
3804 esac
vapier7f19c022007-02-17 14:46:31 +00003805 fi
3806 done
3807 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003808 done
mlcreech636a9952008-05-05 22:52:56 +00003809 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00003810fi
3811fi
drhf922ca42015-05-14 15:39:18 +00003812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
drh8b727472009-01-19 18:18:40 +00003813$as_echo "$lt_cv_path_NM" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003814if test "$lt_cv_path_NM" != "no"; then
3815 NM="$lt_cv_path_NM"
3816else
3817 # Didn't find any BSD compatible name lister, look for dumpbin.
3818 if test -n "$ac_tool_prefix"; then
3819 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3820 do
3821 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3822set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003824$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003825if ${ac_cv_prog_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003826 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003827else
3828 if test -n "$DUMPBIN"; then
3829 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3830else
3831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3832for as_dir in $PATH
3833do
3834 IFS=$as_save_IFS
3835 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003836 for ac_exec_ext in '' $ac_executable_extensions; do
3837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003838 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003840 break 2
3841 fi
3842done
drhf922ca42015-05-14 15:39:18 +00003843 done
drh8b727472009-01-19 18:18:40 +00003844IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00003845
mlcreech636a9952008-05-05 22:52:56 +00003846fi
3847fi
3848DUMPBIN=$ac_cv_prog_DUMPBIN
3849if test -n "$DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003851$as_echo "$DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003852else
drhf922ca42015-05-14 15:39:18 +00003853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003854$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003855fi
3856
drh8b727472009-01-19 18:18:40 +00003857
mlcreech636a9952008-05-05 22:52:56 +00003858 test -n "$DUMPBIN" && break
3859 done
3860fi
3861if test -z "$DUMPBIN"; then
3862 ac_ct_DUMPBIN=$DUMPBIN
3863 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3864do
3865 # Extract the first word of "$ac_prog", so it can be a program name with args.
3866set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003868$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003869if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003870 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003871else
3872 if test -n "$ac_ct_DUMPBIN"; then
3873 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3874else
3875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876for as_dir in $PATH
3877do
3878 IFS=$as_save_IFS
3879 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003880 for ac_exec_ext in '' $ac_executable_extensions; do
3881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003882 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003884 break 2
3885 fi
3886done
drhf922ca42015-05-14 15:39:18 +00003887 done
drh8b727472009-01-19 18:18:40 +00003888IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003889
3890fi
3891fi
3892ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3893if test -n "$ac_ct_DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003895$as_echo "$ac_ct_DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003896else
drhf922ca42015-05-14 15:39:18 +00003897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003898$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003899fi
3900
drh8b727472009-01-19 18:18:40 +00003901
mlcreech636a9952008-05-05 22:52:56 +00003902 test -n "$ac_ct_DUMPBIN" && break
3903done
3904
drh8b727472009-01-19 18:18:40 +00003905 if test "x$ac_ct_DUMPBIN" = x; then
3906 DUMPBIN=":"
3907 else
3908 case $cross_compiling:$ac_tool_warned in
3909yes:)
drhf922ca42015-05-14 15:39:18 +00003910{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3911$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00003912ac_tool_warned=yes ;;
3913esac
3914 DUMPBIN=$ac_ct_DUMPBIN
3915 fi
mlcreech636a9952008-05-05 22:52:56 +00003916fi
3917
3918
3919 if test "$DUMPBIN" != ":"; then
3920 NM="$DUMPBIN"
3921 fi
3922fi
3923test -z "$NM" && NM=nm
3924
3925
3926
3927
3928
3929
drhf922ca42015-05-14 15:39:18 +00003930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
drh8b727472009-01-19 18:18:40 +00003931$as_echo_n "checking the name lister ($NM) interface... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003932if ${lt_cv_nm_interface+:} false; then :
drh8b727472009-01-19 18:18:40 +00003933 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003934else
3935 lt_cv_nm_interface="BSD nm"
3936 echo "int some_variable = 0;" > conftest.$ac_ext
drh748b8fd2018-05-25 19:22:47 +00003937 (eval echo "\"\$as_me:3937: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003938 (eval "$ac_compile" 2>conftest.err)
3939 cat conftest.err >&5
drh748b8fd2018-05-25 19:22:47 +00003940 (eval echo "\"\$as_me:3940: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003941 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3942 cat conftest.err >&5
drh748b8fd2018-05-25 19:22:47 +00003943 (eval echo "\"\$as_me:3943: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003944 cat conftest.out >&5
3945 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3946 lt_cv_nm_interface="MS dumpbin"
3947 fi
3948 rm -f conftest*
3949fi
drhf922ca42015-05-14 15:39:18 +00003950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
drh8b727472009-01-19 18:18:40 +00003951$as_echo "$lt_cv_nm_interface" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003952
drhf922ca42015-05-14 15:39:18 +00003953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
drh8b727472009-01-19 18:18:40 +00003954$as_echo_n "checking whether ln -s works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003955LN_S=$as_ln_s
3956if test "$LN_S" = "ln -s"; then
drhf922ca42015-05-14 15:39:18 +00003957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00003958$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003959else
drhf922ca42015-05-14 15:39:18 +00003960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
drh8b727472009-01-19 18:18:40 +00003961$as_echo "no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003962fi
3963
mlcreech636a9952008-05-05 22:52:56 +00003964# find the maximum length of command line arguments
drhf922ca42015-05-14 15:39:18 +00003965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
drh8b727472009-01-19 18:18:40 +00003966$as_echo_n "checking the maximum length of command line arguments... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003967if ${lt_cv_sys_max_cmd_len+:} false; then :
drh8b727472009-01-19 18:18:40 +00003968 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003969else
3970 i=0
3971 teststring="ABCD"
3972
3973 case $build_os in
3974 msdosdjgpp*)
3975 # On DJGPP, this test can blow up pretty badly due to problems in libc
3976 # (any single argument exceeding 2000 bytes causes a buffer overrun
3977 # during glob expansion). Even if it were fixed, the result of this
3978 # check would be larger than it should be.
3979 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3980 ;;
3981
3982 gnu*)
3983 # Under GNU Hurd, this test is not required because there is
3984 # no limit to the length of command line arguments.
3985 # Libtool will interpret -1 as no limit whatsoever
3986 lt_cv_sys_max_cmd_len=-1;
3987 ;;
3988
vapier6acb2cf2009-01-28 04:46:28 +00003989 cygwin* | mingw* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00003990 # On Win9x/ME, this test blows up -- it succeeds, but takes
3991 # about 5 minutes as the teststring grows exponentially.
3992 # Worse, since 9x/ME are not pre-emptively multitasking,
3993 # you end up with a "frozen" computer, even though with patience
3994 # the test eventually succeeds (with a max line length of 256k).
3995 # Instead, let's just punt: use the minimum linelength reported by
3996 # all of the supported platforms: 8192 (on NT/2K/XP).
3997 lt_cv_sys_max_cmd_len=8192;
3998 ;;
3999
4000 amigaos*)
4001 # On AmigaOS with pdksh, this test takes hours, literally.
4002 # So we just punt and use a minimum line length of 8192.
4003 lt_cv_sys_max_cmd_len=8192;
4004 ;;
4005
4006 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4007 # This has been around since 386BSD, at least. Likely further.
4008 if test -x /sbin/sysctl; then
4009 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4010 elif test -x /usr/sbin/sysctl; then
4011 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4012 else
4013 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4014 fi
4015 # And add a safety zone
4016 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4017 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4018 ;;
4019
4020 interix*)
4021 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4022 lt_cv_sys_max_cmd_len=196608
4023 ;;
4024
4025 osf*)
4026 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4027 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4028 # nice to cause kernel panics so lets avoid the loop below.
4029 # First set a reasonable default.
4030 lt_cv_sys_max_cmd_len=16384
4031 #
4032 if test -x /sbin/sysconfig; then
4033 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4034 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4035 esac
4036 fi
4037 ;;
4038 sco3.2v5*)
4039 lt_cv_sys_max_cmd_len=102400
4040 ;;
4041 sysv5* | sco5v6* | sysv4.2uw2*)
4042 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4043 if test -n "$kargmax"; then
4044 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4045 else
4046 lt_cv_sys_max_cmd_len=32768
4047 fi
4048 ;;
4049 *)
4050 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4051 if test -n "$lt_cv_sys_max_cmd_len"; then
4052 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4053 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4054 else
4055 # Make teststring a little bigger before we do anything with it.
4056 # a 1K string should be a reasonable start.
4057 for i in 1 2 3 4 5 6 7 8 ; do
4058 teststring=$teststring$teststring
4059 done
4060 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4061 # If test is not a shell built-in, we'll probably end up computing a
4062 # maximum length that is only half of the actual maximum length, but
4063 # we can't tell.
4064 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4065 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4066 test $i != 17 # 1/2 MB should be enough
4067 do
4068 i=`expr $i + 1`
4069 teststring=$teststring$teststring
4070 done
4071 # Only check the string length outside the loop.
4072 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4073 teststring=
4074 # Add a significant safety factor because C++ compilers can tack on
4075 # massive amounts of additional arguments before passing them to the
4076 # linker. It appears as though 1/2 is a usable value.
4077 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4078 fi
4079 ;;
4080 esac
4081
4082fi
4083
4084if test -n $lt_cv_sys_max_cmd_len ; then
drhf922ca42015-05-14 15:39:18 +00004085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
drh8b727472009-01-19 18:18:40 +00004086$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004087else
drhf922ca42015-05-14 15:39:18 +00004088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
drh8b727472009-01-19 18:18:40 +00004089$as_echo "none" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004090fi
4091max_cmd_len=$lt_cv_sys_max_cmd_len
4092
4093
4094
4095
4096
4097
4098: ${CP="cp -f"}
4099: ${MV="mv -f"}
4100: ${RM="rm -f"}
4101
drhf922ca42015-05-14 15:39:18 +00004102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
drh8b727472009-01-19 18:18:40 +00004103$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004104# Try some XSI features
4105xsi_shell=no
4106( _lt_dummy="a/b/c"
4107 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4108 = c,a/b,, \
4109 && eval 'test $(( 1 + 1 )) -eq 2 \
4110 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4111 && xsi_shell=yes
drhf922ca42015-05-14 15:39:18 +00004112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
drh8b727472009-01-19 18:18:40 +00004113$as_echo "$xsi_shell" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004114
4115
drhf922ca42015-05-14 15:39:18 +00004116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
drh8b727472009-01-19 18:18:40 +00004117$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004118lt_shell_append=no
4119( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4120 >/dev/null 2>&1 \
4121 && lt_shell_append=yes
drhf922ca42015-05-14 15:39:18 +00004122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
drh8b727472009-01-19 18:18:40 +00004123$as_echo "$lt_shell_append" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004124
4125
4126if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4127 lt_unset=unset
4128else
4129 lt_unset=false
4130fi
4131
4132
4133
4134
4135
4136# test EBCDIC or ASCII
4137case `echo X|tr X '\101'` in
4138 A) # ASCII based system
4139 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4140 lt_SP2NL='tr \040 \012'
4141 lt_NL2SP='tr \015\012 \040\040'
4142 ;;
4143 *) # EBCDIC based system
4144 lt_SP2NL='tr \100 \n'
4145 lt_NL2SP='tr \r\n \100\100'
4146 ;;
4147esac
4148
4149
4150
4151
4152
4153
4154
4155
4156
drhf922ca42015-05-14 15:39:18 +00004157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
drh8b727472009-01-19 18:18:40 +00004158$as_echo_n "checking for $LD option to reload object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004159if ${lt_cv_ld_reload_flag+:} false; then :
drh8b727472009-01-19 18:18:40 +00004160 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004161else
4162 lt_cv_ld_reload_flag='-r'
4163fi
drhf922ca42015-05-14 15:39:18 +00004164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
drh8b727472009-01-19 18:18:40 +00004165$as_echo "$lt_cv_ld_reload_flag" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004166reload_flag=$lt_cv_ld_reload_flag
4167case $reload_flag in
4168"" | " "*) ;;
4169*) reload_flag=" $reload_flag" ;;
4170esac
4171reload_cmds='$LD$reload_flag -o $output$reload_objs'
4172case $host_os in
4173 darwin*)
4174 if test "$GCC" = yes; then
4175 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4176 else
4177 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4178 fi
4179 ;;
4180esac
4181
4182
4183
4184
4185
4186
4187
4188
4189
vapier6acb2cf2009-01-28 04:46:28 +00004190if test -n "$ac_tool_prefix"; then
4191 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4192set dummy ${ac_tool_prefix}objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004194$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004195if ${ac_cv_prog_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004196 $as_echo_n "(cached) " >&6
4197else
4198 if test -n "$OBJDUMP"; then
4199 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4200else
4201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202for as_dir in $PATH
4203do
4204 IFS=$as_save_IFS
4205 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004206 for ac_exec_ext in '' $ac_executable_extensions; do
4207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004208 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
drhf922ca42015-05-14 15:39:18 +00004209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004210 break 2
4211 fi
4212done
drhf922ca42015-05-14 15:39:18 +00004213 done
vapier6acb2cf2009-01-28 04:46:28 +00004214IFS=$as_save_IFS
4215
4216fi
4217fi
4218OBJDUMP=$ac_cv_prog_OBJDUMP
4219if test -n "$OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004221$as_echo "$OBJDUMP" >&6; }
4222else
drhf922ca42015-05-14 15:39:18 +00004223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004224$as_echo "no" >&6; }
4225fi
4226
4227
4228fi
4229if test -z "$ac_cv_prog_OBJDUMP"; then
4230 ac_ct_OBJDUMP=$OBJDUMP
4231 # Extract the first word of "objdump", so it can be a program name with args.
4232set dummy objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004234$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004235if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004236 $as_echo_n "(cached) " >&6
4237else
4238 if test -n "$ac_ct_OBJDUMP"; then
4239 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4240else
4241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242for as_dir in $PATH
4243do
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004248 ac_cv_prog_ac_ct_OBJDUMP="objdump"
drhf922ca42015-05-14 15:39:18 +00004249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004250 break 2
4251 fi
4252done
drhf922ca42015-05-14 15:39:18 +00004253 done
vapier6acb2cf2009-01-28 04:46:28 +00004254IFS=$as_save_IFS
4255
4256fi
4257fi
4258ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4259if test -n "$ac_ct_OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004261$as_echo "$ac_ct_OBJDUMP" >&6; }
4262else
drhf922ca42015-05-14 15:39:18 +00004263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004264$as_echo "no" >&6; }
4265fi
4266
4267 if test "x$ac_ct_OBJDUMP" = x; then
4268 OBJDUMP="false"
4269 else
4270 case $cross_compiling:$ac_tool_warned in
4271yes:)
drhf922ca42015-05-14 15:39:18 +00004272{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4273$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00004274ac_tool_warned=yes ;;
4275esac
4276 OBJDUMP=$ac_ct_OBJDUMP
4277 fi
4278else
4279 OBJDUMP="$ac_cv_prog_OBJDUMP"
4280fi
4281
4282test -z "$OBJDUMP" && OBJDUMP=objdump
4283
4284
4285
4286
4287
4288
4289
4290
mlcreech636a9952008-05-05 22:52:56 +00004291
drhf922ca42015-05-14 15:39:18 +00004292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
drh8b727472009-01-19 18:18:40 +00004293$as_echo_n "checking how to recognize dependent libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004294if ${lt_cv_deplibs_check_method+:} false; then :
drh8b727472009-01-19 18:18:40 +00004295 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00004296else
4297 lt_cv_file_magic_cmd='$MAGIC_CMD'
4298lt_cv_file_magic_test_file=
4299lt_cv_deplibs_check_method='unknown'
4300# Need to set the preceding variable on all platforms that support
4301# interlibrary dependencies.
4302# 'none' -- dependencies not supported.
4303# `unknown' -- same as none, but documents that we really don't know.
4304# 'pass_all' -- all dependencies passed with no checks.
4305# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00004306# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00004307# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00004308# If you have `file' or equivalent on your system and you're not sure
4309# whether `pass_all' will *always* work, you probably want this one.
4310
4311case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00004312aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00004313 lt_cv_deplibs_check_method=pass_all
4314 ;;
4315
4316beos*)
4317 lt_cv_deplibs_check_method=pass_all
4318 ;;
4319
vapier7f19c022007-02-17 14:46:31 +00004320bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00004321 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4322 lt_cv_file_magic_cmd='/usr/bin/file -L'
4323 lt_cv_file_magic_test_file=/shlib/libc.so
4324 ;;
4325
a.rottmann9bc8b932004-02-29 15:18:31 +00004326cygwin*)
vapier7f19c022007-02-17 14:46:31 +00004327 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00004328 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00004329 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00004330 ;;
4331
4332mingw* | pw32*)
4333 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00004334 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4335 # unless we find 'file', for example because we are cross-compiling.
4336 if ( file / ) >/dev/null 2>&1; then
4337 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4338 lt_cv_file_magic_cmd='func_win32_libid'
4339 else
4340 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4341 lt_cv_file_magic_cmd='$OBJDUMP -f'
4342 fi
drh71eb93e2001-09-28 01:34:43 +00004343 ;;
4344
vapier6acb2cf2009-01-28 04:46:28 +00004345cegcc)
4346 # use the weaker test based on 'objdump'. See mingw*.
4347 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4348 lt_cv_file_magic_cmd='$OBJDUMP -f'
4349 ;;
4350
drh71eb93e2001-09-28 01:34:43 +00004351darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004352 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004353 ;;
4354
mlcreech636a9952008-05-05 22:52:56 +00004355freebsd* | dragonfly*)
4356 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004357 case $host_cpu in
4358 i*86 )
4359 # Not sure whether the presence of OpenBSD here was a mistake.
4360 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00004361 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 +00004362 lt_cv_file_magic_cmd=/usr/bin/file
4363 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4364 ;;
4365 esac
4366 else
4367 lt_cv_deplibs_check_method=pass_all
4368 fi
4369 ;;
4370
4371gnu*)
4372 lt_cv_deplibs_check_method=pass_all
4373 ;;
4374
a.rottmann9bc8b932004-02-29 15:18:31 +00004375hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00004376 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00004377 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00004378 ia64*)
4379 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4380 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4381 ;;
4382 hppa*64*)
4383 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]'
4384 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4385 ;;
4386 *)
4387 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4388 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4389 ;;
4390 esac
drh71eb93e2001-09-28 01:34:43 +00004391 ;;
4392
mlcreech636a9952008-05-05 22:52:56 +00004393interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00004394 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4395 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4396 ;;
4397
a.rottmann84e63352003-03-24 09:42:16 +00004398irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004399 case $LD in
4400 *-32|*"-32 ") libmagic=32-bit;;
4401 *-n32|*"-n32 ") libmagic=N32;;
4402 *-64|*"-64 ") libmagic=64-bit;;
4403 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00004404 esac
drh71eb93e2001-09-28 01:34:43 +00004405 lt_cv_deplibs_check_method=pass_all
4406 ;;
4407
4408# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00004409linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00004410 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004411 ;;
4412
vapier7f19c022007-02-17 14:46:31 +00004413netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004414 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004415 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004416 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004417 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004418 fi
4419 ;;
4420
4421newos6*)
4422 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4423 lt_cv_file_magic_cmd=/usr/bin/file
4424 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4425 ;;
4426
mlcreech636a9952008-05-05 22:52:56 +00004427*nto* | *qnx*)
4428 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00004429 ;;
4430
a.rottmann84e63352003-03-24 09:42:16 +00004431openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004432 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00004433 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004434 else
vapier7f19c022007-02-17 14:46:31 +00004435 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004436 fi
drh71eb93e2001-09-28 01:34:43 +00004437 ;;
4438
4439osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004440 lt_cv_deplibs_check_method=pass_all
4441 ;;
4442
mlcreech636a9952008-05-05 22:52:56 +00004443rdos*)
4444 lt_cv_deplibs_check_method=pass_all
4445 ;;
4446
drh71eb93e2001-09-28 01:34:43 +00004447solaris*)
4448 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00004449 ;;
4450
mlcreech636a9952008-05-05 22:52:56 +00004451sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4452 lt_cv_deplibs_check_method=pass_all
4453 ;;
4454
vapier7f19c022007-02-17 14:46:31 +00004455sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00004456 case $host_vendor in
4457 motorola)
4458 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]'
4459 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4460 ;;
4461 ncr)
4462 lt_cv_deplibs_check_method=pass_all
4463 ;;
4464 sequent)
4465 lt_cv_file_magic_cmd='/bin/file'
4466 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4467 ;;
4468 sni)
4469 lt_cv_file_magic_cmd='/bin/file'
4470 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4471 lt_cv_file_magic_test_file=/lib/libc.so
4472 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004473 siemens)
4474 lt_cv_deplibs_check_method=pass_all
4475 ;;
vapier7f19c022007-02-17 14:46:31 +00004476 pc)
4477 lt_cv_deplibs_check_method=pass_all
4478 ;;
drh71eb93e2001-09-28 01:34:43 +00004479 esac
4480 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004481
mlcreech636a9952008-05-05 22:52:56 +00004482tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004483 lt_cv_deplibs_check_method=pass_all
4484 ;;
drh71eb93e2001-09-28 01:34:43 +00004485esac
4486
4487fi
drhf922ca42015-05-14 15:39:18 +00004488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
drh8b727472009-01-19 18:18:40 +00004489$as_echo "$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004490file_magic_cmd=$lt_cv_file_magic_cmd
4491deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00004492test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00004493
drh71eb93e2001-09-28 01:34:43 +00004494
drh71eb93e2001-09-28 01:34:43 +00004495
drh71eb93e2001-09-28 01:34:43 +00004496
mlcreech636a9952008-05-05 22:52:56 +00004497
4498
4499
4500
4501
4502
4503
4504
4505if test -n "$ac_tool_prefix"; then
4506 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4507set dummy ${ac_tool_prefix}ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004509$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004510if ${ac_cv_prog_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004511 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004512else
4513 if test -n "$AR"; then
4514 ac_cv_prog_AR="$AR" # Let the user override the test.
4515else
4516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4517for as_dir in $PATH
4518do
4519 IFS=$as_save_IFS
4520 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004521 for ac_exec_ext in '' $ac_executable_extensions; do
4522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004523 ac_cv_prog_AR="${ac_tool_prefix}ar"
drhf922ca42015-05-14 15:39:18 +00004524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004525 break 2
4526 fi
4527done
drhf922ca42015-05-14 15:39:18 +00004528 done
drh8b727472009-01-19 18:18:40 +00004529IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004530
4531fi
4532fi
4533AR=$ac_cv_prog_AR
4534if test -n "$AR"; then
drhf922ca42015-05-14 15:39:18 +00004535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
drh8b727472009-01-19 18:18:40 +00004536$as_echo "$AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004537else
drhf922ca42015-05-14 15:39:18 +00004538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004539$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004540fi
4541
drh8b727472009-01-19 18:18:40 +00004542
mlcreech636a9952008-05-05 22:52:56 +00004543fi
4544if test -z "$ac_cv_prog_AR"; then
4545 ac_ct_AR=$AR
4546 # Extract the first word of "ar", so it can be a program name with args.
4547set dummy ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004549$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004550if ${ac_cv_prog_ac_ct_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004551 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004552else
4553 if test -n "$ac_ct_AR"; then
4554 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4555else
4556as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557for as_dir in $PATH
4558do
4559 IFS=$as_save_IFS
4560 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004561 for ac_exec_ext in '' $ac_executable_extensions; do
4562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004563 ac_cv_prog_ac_ct_AR="ar"
drhf922ca42015-05-14 15:39:18 +00004564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004565 break 2
4566 fi
4567done
drhf922ca42015-05-14 15:39:18 +00004568 done
drh8b727472009-01-19 18:18:40 +00004569IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004570
4571fi
4572fi
4573ac_ct_AR=$ac_cv_prog_ac_ct_AR
4574if test -n "$ac_ct_AR"; then
drhf922ca42015-05-14 15:39:18 +00004575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
drh8b727472009-01-19 18:18:40 +00004576$as_echo "$ac_ct_AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004577else
drhf922ca42015-05-14 15:39:18 +00004578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004579$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004580fi
4581
drh8b727472009-01-19 18:18:40 +00004582 if test "x$ac_ct_AR" = x; then
4583 AR="false"
4584 else
4585 case $cross_compiling:$ac_tool_warned in
4586yes:)
drhf922ca42015-05-14 15:39:18 +00004587{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4588$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004589ac_tool_warned=yes ;;
4590esac
4591 AR=$ac_ct_AR
4592 fi
mlcreech636a9952008-05-05 22:52:56 +00004593else
4594 AR="$ac_cv_prog_AR"
4595fi
4596
4597test -z "$AR" && AR=ar
4598test -z "$AR_FLAGS" && AR_FLAGS=cru
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610if test -n "$ac_tool_prefix"; then
4611 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4612set dummy ${ac_tool_prefix}strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004614$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004615if ${ac_cv_prog_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004616 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004617else
4618 if test -n "$STRIP"; then
4619 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4620else
4621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622for as_dir in $PATH
4623do
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004628 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
drhf922ca42015-05-14 15:39:18 +00004629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004630 break 2
4631 fi
4632done
drhf922ca42015-05-14 15:39:18 +00004633 done
drh8b727472009-01-19 18:18:40 +00004634IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004635
4636fi
4637fi
4638STRIP=$ac_cv_prog_STRIP
4639if test -n "$STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004641$as_echo "$STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004642else
drhf922ca42015-05-14 15:39:18 +00004643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004644$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004645fi
4646
drh8b727472009-01-19 18:18:40 +00004647
mlcreech636a9952008-05-05 22:52:56 +00004648fi
4649if test -z "$ac_cv_prog_STRIP"; then
4650 ac_ct_STRIP=$STRIP
4651 # Extract the first word of "strip", so it can be a program name with args.
4652set dummy strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004654$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004655if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004656 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004657else
4658 if test -n "$ac_ct_STRIP"; then
4659 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4660else
4661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4662for as_dir in $PATH
4663do
4664 IFS=$as_save_IFS
4665 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004668 ac_cv_prog_ac_ct_STRIP="strip"
drhf922ca42015-05-14 15:39:18 +00004669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004670 break 2
4671 fi
4672done
drhf922ca42015-05-14 15:39:18 +00004673 done
drh8b727472009-01-19 18:18:40 +00004674IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004675
4676fi
4677fi
4678ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4679if test -n "$ac_ct_STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004681$as_echo "$ac_ct_STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004682else
drhf922ca42015-05-14 15:39:18 +00004683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004684$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004685fi
4686
drh8b727472009-01-19 18:18:40 +00004687 if test "x$ac_ct_STRIP" = x; then
4688 STRIP=":"
4689 else
4690 case $cross_compiling:$ac_tool_warned in
4691yes:)
drhf922ca42015-05-14 15:39:18 +00004692{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4693$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004694ac_tool_warned=yes ;;
4695esac
4696 STRIP=$ac_ct_STRIP
4697 fi
mlcreech636a9952008-05-05 22:52:56 +00004698else
4699 STRIP="$ac_cv_prog_STRIP"
4700fi
4701
4702test -z "$STRIP" && STRIP=:
4703
4704
4705
4706
4707
4708
4709if test -n "$ac_tool_prefix"; then
4710 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4711set dummy ${ac_tool_prefix}ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004713$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004714if ${ac_cv_prog_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004715 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004716else
4717 if test -n "$RANLIB"; then
4718 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4719else
4720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721for as_dir in $PATH
4722do
4723 IFS=$as_save_IFS
4724 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004727 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
drhf922ca42015-05-14 15:39:18 +00004728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004729 break 2
4730 fi
4731done
drhf922ca42015-05-14 15:39:18 +00004732 done
drh8b727472009-01-19 18:18:40 +00004733IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004734
4735fi
4736fi
4737RANLIB=$ac_cv_prog_RANLIB
4738if test -n "$RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004740$as_echo "$RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004741else
drhf922ca42015-05-14 15:39:18 +00004742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004743$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004744fi
4745
drh8b727472009-01-19 18:18:40 +00004746
mlcreech636a9952008-05-05 22:52:56 +00004747fi
4748if test -z "$ac_cv_prog_RANLIB"; then
4749 ac_ct_RANLIB=$RANLIB
4750 # Extract the first word of "ranlib", so it can be a program name with args.
4751set dummy ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004753$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004754if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004755 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004756else
4757 if test -n "$ac_ct_RANLIB"; then
4758 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4759else
4760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761for as_dir in $PATH
4762do
4763 IFS=$as_save_IFS
4764 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004767 ac_cv_prog_ac_ct_RANLIB="ranlib"
drhf922ca42015-05-14 15:39:18 +00004768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004769 break 2
4770 fi
4771done
drhf922ca42015-05-14 15:39:18 +00004772 done
drh8b727472009-01-19 18:18:40 +00004773IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004774
4775fi
4776fi
4777ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4778if test -n "$ac_ct_RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004780$as_echo "$ac_ct_RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004781else
drhf922ca42015-05-14 15:39:18 +00004782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004783$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004784fi
4785
drh8b727472009-01-19 18:18:40 +00004786 if test "x$ac_ct_RANLIB" = x; then
4787 RANLIB=":"
4788 else
4789 case $cross_compiling:$ac_tool_warned in
4790yes:)
drhf922ca42015-05-14 15:39:18 +00004791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004793ac_tool_warned=yes ;;
4794esac
4795 RANLIB=$ac_ct_RANLIB
4796 fi
mlcreech636a9952008-05-05 22:52:56 +00004797else
4798 RANLIB="$ac_cv_prog_RANLIB"
4799fi
4800
4801test -z "$RANLIB" && RANLIB=:
4802
4803
4804
4805
4806
4807
4808# Determine commands to create old-style static archives.
4809old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4810old_postinstall_cmds='chmod 644 $oldlib'
4811old_postuninstall_cmds=
4812
4813if test -n "$RANLIB"; then
4814 case $host_os in
4815 openbsd*)
4816 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4817 ;;
4818 *)
4819 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4820 ;;
4821 esac
4822 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4823fi
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
4856
4857
a.rottmann9bc8b932004-02-29 15:18:31 +00004858# If no C compiler was specified, use CC.
4859LTCC=${LTCC-"$CC"}
4860
vapier7f19c022007-02-17 14:46:31 +00004861# If no C compiler flags were specified, use CFLAGS.
4862LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4863
a.rottmann9bc8b932004-02-29 15:18:31 +00004864# Allow CC to be a program name with arguments.
4865compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00004866
drh71eb93e2001-09-28 01:34:43 +00004867
mlcreech636a9952008-05-05 22:52:56 +00004868# Check for command to grab the raw symbol name followed by C symbol from nm.
drhf922ca42015-05-14 15:39:18 +00004869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
drh8b727472009-01-19 18:18:40 +00004870$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004871if ${lt_cv_sys_global_symbol_pipe+:} false; then :
drh8b727472009-01-19 18:18:40 +00004872 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004873else
4874
4875# These are sane defaults that work on at least a few old systems.
4876# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4877
4878# Character class describing NM global symbol codes.
4879symcode='[BCDEGRST]'
4880
4881# Regexp to match symbols that can be accessed directly from C.
4882sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4883
4884# Define system-specific variables.
4885case $host_os in
4886aix*)
4887 symcode='[BCDT]'
4888 ;;
vapier6acb2cf2009-01-28 04:46:28 +00004889cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00004890 symcode='[ABCDGISTW]'
4891 ;;
4892hpux*)
4893 if test "$host_cpu" = ia64; then
4894 symcode='[ABCDEGRST]'
4895 fi
4896 ;;
4897irix* | nonstopux*)
4898 symcode='[BCDEGRST]'
4899 ;;
4900osf*)
4901 symcode='[BCDEGQRST]'
4902 ;;
4903solaris*)
4904 symcode='[BDRT]'
4905 ;;
4906sco3.2v5*)
4907 symcode='[DT]'
4908 ;;
4909sysv4.2uw2*)
4910 symcode='[DT]'
4911 ;;
4912sysv5* | sco5v6* | unixware* | OpenUNIX*)
4913 symcode='[ABDT]'
4914 ;;
4915sysv4)
4916 symcode='[DFNSTU]'
4917 ;;
4918esac
4919
4920# If we're using GNU nm, then use its standard symbol codes.
4921case `$NM -V 2>&1` in
4922*GNU* | *'with BFD'*)
4923 symcode='[ABCDGIRSTW]' ;;
4924esac
4925
4926# Transform an extracted symbol line into a proper C declaration.
4927# Some systems (esp. on ia64) link data and code symbols differently,
4928# so use this general approach.
4929lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4930
4931# Transform an extracted symbol line into symbol name and symbol address
4932lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4933lt_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'"
4934
4935# Handle CRLF in mingw tool chain
4936opt_cr=
4937case $build_os in
4938mingw*)
4939 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4940 ;;
4941esac
4942
4943# Try without a prefix underscore, then with it.
4944for ac_symprfx in "" "_"; do
4945
4946 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4947 symxfrm="\\1 $ac_symprfx\\2 \\2"
4948
4949 # Write the raw and C identifiers.
4950 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4951 # Fake it for dumpbin and say T for any non-static function
4952 # and D for any global variable.
4953 # Also find C++ and __fastcall symbols from MSVC++,
4954 # which start with @ or ?.
4955 lt_cv_sys_global_symbol_pipe="$AWK '"\
4956" {last_section=section; section=\$ 3};"\
4957" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4958" \$ 0!~/External *\|/{next};"\
4959" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4960" {if(hide[section]) next};"\
4961" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4962" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4963" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4964" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4965" ' prfx=^$ac_symprfx"
4966 else
4967 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4968 fi
4969
4970 # Check to see that the pipe works correctly.
4971 pipe_works=no
4972
4973 rm -f conftest*
4974 cat > conftest.$ac_ext <<_LT_EOF
4975#ifdef __cplusplus
4976extern "C" {
4977#endif
4978char nm_test_var;
4979void nm_test_func(void);
4980void nm_test_func(void){}
4981#ifdef __cplusplus
4982}
4983#endif
4984int main(){nm_test_var='a';nm_test_func();return(0);}
4985_LT_EOF
4986
drhf922ca42015-05-14 15:39:18 +00004987 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00004988 (eval $ac_compile) 2>&5
4989 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00004990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4991 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00004992 # Now try to grab the symbols.
4993 nlist=conftest.nm
drhf922ca42015-05-14 15:39:18 +00004994 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 +00004995 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4996 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00004997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4998 test $ac_status = 0; } && test -s "$nlist"; then
mlcreech636a9952008-05-05 22:52:56 +00004999 # Try sorting and uniquifying the output.
5000 if sort "$nlist" | uniq > "$nlist"T; then
5001 mv -f "$nlist"T "$nlist"
5002 else
5003 rm -f "$nlist"T
5004 fi
5005
5006 # Make sure that we snagged all the symbols we need.
5007 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5008 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5009 cat <<_LT_EOF > conftest.$ac_ext
5010#ifdef __cplusplus
5011extern "C" {
5012#endif
5013
5014_LT_EOF
5015 # Now generate the symbol file.
5016 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5017
5018 cat <<_LT_EOF >> conftest.$ac_ext
5019
5020/* The mapping between symbol names and symbols. */
5021const struct {
5022 const char *name;
5023 void *address;
5024}
5025lt__PROGRAM__LTX_preloaded_symbols[] =
5026{
5027 { "@PROGRAM@", (void *) 0 },
5028_LT_EOF
5029 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5030 cat <<\_LT_EOF >> conftest.$ac_ext
5031 {0, (void *) 0}
5032};
5033
5034/* This works around a problem in FreeBSD linker */
5035#ifdef FREEBSD_WORKAROUND
5036static const void *lt_preloaded_setup() {
5037 return lt__PROGRAM__LTX_preloaded_symbols;
5038}
5039#endif
5040
5041#ifdef __cplusplus
5042}
5043#endif
5044_LT_EOF
5045 # Now try linking the two files.
5046 mv conftest.$ac_objext conftstm.$ac_objext
5047 lt_save_LIBS="$LIBS"
5048 lt_save_CFLAGS="$CFLAGS"
5049 LIBS="conftstm.$ac_objext"
5050 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
drhf922ca42015-05-14 15:39:18 +00005051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00005052 (eval $ac_link) 2>&5
5053 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5055 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
mlcreech636a9952008-05-05 22:52:56 +00005056 pipe_works=yes
5057 fi
5058 LIBS="$lt_save_LIBS"
5059 CFLAGS="$lt_save_CFLAGS"
5060 else
5061 echo "cannot find nm_test_func in $nlist" >&5
5062 fi
5063 else
5064 echo "cannot find nm_test_var in $nlist" >&5
5065 fi
5066 else
5067 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5068 fi
5069 else
5070 echo "$progname: failed program was:" >&5
5071 cat conftest.$ac_ext >&5
5072 fi
5073 rm -rf conftest* conftst*
5074
5075 # Do not use the global_symbol_pipe unless it works.
5076 if test "$pipe_works" = yes; then
5077 break
5078 else
5079 lt_cv_sys_global_symbol_pipe=
5080 fi
5081done
5082
5083fi
5084
5085if test -z "$lt_cv_sys_global_symbol_pipe"; then
5086 lt_cv_sys_global_symbol_to_cdecl=
5087fi
5088if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
drhf922ca42015-05-14 15:39:18 +00005089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
drh8b727472009-01-19 18:18:40 +00005090$as_echo "failed" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005091else
drhf922ca42015-05-14 15:39:18 +00005092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
drh8b727472009-01-19 18:18:40 +00005093$as_echo "ok" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005094fi
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
drh8b727472009-01-19 18:18:40 +00005118# Check whether --enable-libtool-lock was given.
drhf922ca42015-05-14 15:39:18 +00005119if test "${enable_libtool_lock+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005120 enableval=$enable_libtool_lock;
5121fi
drh71eb93e2001-09-28 01:34:43 +00005122
a.rottmann9bc8b932004-02-29 15:18:31 +00005123test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00005124
a.rottmann9bc8b932004-02-29 15:18:31 +00005125# Some flags need to be propagated to the compiler or linker for good
5126# libtool support.
5127case $host in
5128ia64-*-hpux*)
5129 # Find out which ABI we are using.
5130 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00005132 (eval $ac_compile) 2>&5
5133 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5135 test $ac_status = 0; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005136 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00005137 *ELF-32*)
5138 HPUX_IA64_MODE="32"
5139 ;;
5140 *ELF-64*)
5141 HPUX_IA64_MODE="64"
5142 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005143 esac
5144 fi
5145 rm -rf conftest*
5146 ;;
5147*-*-irix6*)
5148 # Find out which ABI we are using.
drh748b8fd2018-05-25 19:22:47 +00005149 echo '#line 5149 "configure"' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005151 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00005152 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5154 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00005155 if test "$lt_cv_prog_gnu_ld" = yes; then
5156 case `/usr/bin/file conftest.$ac_objext` in
5157 *32-bit*)
5158 LD="${LD-ld} -melf32bsmip"
5159 ;;
5160 *N32*)
5161 LD="${LD-ld} -melf32bmipn32"
5162 ;;
5163 *64-bit*)
5164 LD="${LD-ld} -melf64bmip"
5165 ;;
5166 esac
5167 else
5168 case `/usr/bin/file conftest.$ac_objext` in
5169 *32-bit*)
5170 LD="${LD-ld} -32"
5171 ;;
5172 *N32*)
5173 LD="${LD-ld} -n32"
5174 ;;
5175 *64-bit*)
5176 LD="${LD-ld} -64"
5177 ;;
5178 esac
5179 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005180 fi
5181 rm -rf conftest*
5182 ;;
drh71eb93e2001-09-28 01:34:43 +00005183
mlcreech636a9952008-05-05 22:52:56 +00005184x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5185s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005186 # Find out which ABI we are using.
5187 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005189 (eval $ac_compile) 2>&5
5190 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5192 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005193 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00005194 *32-bit*)
5195 case $host in
5196 x86_64-*kfreebsd*-gnu)
5197 LD="${LD-ld} -m elf_i386_fbsd"
5198 ;;
5199 x86_64-*linux*)
5200 LD="${LD-ld} -m elf_i386"
5201 ;;
5202 ppc64-*linux*|powerpc64-*linux*)
5203 LD="${LD-ld} -m elf32ppclinux"
5204 ;;
5205 s390x-*linux*)
5206 LD="${LD-ld} -m elf_s390"
5207 ;;
5208 sparc64-*linux*)
5209 LD="${LD-ld} -m elf32_sparc"
5210 ;;
5211 esac
5212 ;;
5213 *64-bit*)
5214 case $host in
5215 x86_64-*kfreebsd*-gnu)
5216 LD="${LD-ld} -m elf_x86_64_fbsd"
5217 ;;
5218 x86_64-*linux*)
5219 LD="${LD-ld} -m elf_x86_64"
5220 ;;
5221 ppc*-*linux*|powerpc*-*linux*)
5222 LD="${LD-ld} -m elf64ppc"
5223 ;;
5224 s390*-*linux*|s390*-*tpf*)
5225 LD="${LD-ld} -m elf64_s390"
5226 ;;
5227 sparc*-*linux*)
5228 LD="${LD-ld} -m elf64_sparc"
5229 ;;
5230 esac
5231 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005232 esac
5233 fi
5234 rm -rf conftest*
5235 ;;
drh71eb93e2001-09-28 01:34:43 +00005236
a.rottmann9bc8b932004-02-29 15:18:31 +00005237*-*-sco3.2v5*)
5238 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5239 SAVE_CFLAGS="$CFLAGS"
5240 CFLAGS="$CFLAGS -belf"
drhf922ca42015-05-14 15:39:18 +00005241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
drh8b727472009-01-19 18:18:40 +00005242$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005243if ${lt_cv_cc_needs_belf+:} false; then :
drh8b727472009-01-19 18:18:40 +00005244 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005245else
5246 ac_ext=c
5247ac_cpp='$CPP $CPPFLAGS'
5248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5250ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00005251
drhf922ca42015-05-14 15:39:18 +00005252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005253/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00005254
a.rottmann9bc8b932004-02-29 15:18:31 +00005255int
5256main ()
drh71eb93e2001-09-28 01:34:43 +00005257{
drh71eb93e2001-09-28 01:34:43 +00005258
a.rottmann9bc8b932004-02-29 15:18:31 +00005259 ;
5260 return 0;
drh71eb93e2001-09-28 01:34:43 +00005261}
a.rottmann9bc8b932004-02-29 15:18:31 +00005262_ACEOF
drhf922ca42015-05-14 15:39:18 +00005263if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00005264 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00005265else
drhf922ca42015-05-14 15:39:18 +00005266 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00005267fi
drhf922ca42015-05-14 15:39:18 +00005268rm -f core conftest.err conftest.$ac_objext \
5269 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005270 ac_ext=c
5271ac_cpp='$CPP $CPPFLAGS'
5272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5274ac_compiler_gnu=$ac_cv_c_compiler_gnu
5275
drh71eb93e2001-09-28 01:34:43 +00005276fi
drhf922ca42015-05-14 15:39:18 +00005277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
drh8b727472009-01-19 18:18:40 +00005278$as_echo "$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005279 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5280 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5281 CFLAGS="$SAVE_CFLAGS"
5282 fi
5283 ;;
vapier7f19c022007-02-17 14:46:31 +00005284sparc*-*solaris*)
5285 # Find out which ABI we are using.
5286 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
vapier7f19c022007-02-17 14:46:31 +00005288 (eval $ac_compile) 2>&5
5289 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5291 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005292 case `/usr/bin/file conftest.o` in
5293 *64-bit*)
5294 case $lt_cv_prog_gnu_ld in
5295 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00005296 *)
5297 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5298 LD="${LD-ld} -64"
5299 fi
5300 ;;
vapier7f19c022007-02-17 14:46:31 +00005301 esac
5302 ;;
5303 esac
5304 fi
5305 rm -rf conftest*
5306 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005307esac
5308
5309need_locks="$enable_libtool_lock"
5310
drh71eb93e2001-09-28 01:34:43 +00005311
mlcreech636a9952008-05-05 22:52:56 +00005312 case $host_os in
5313 rhapsody* | darwin*)
5314 if test -n "$ac_tool_prefix"; then
5315 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5316set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005318$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005319if ${ac_cv_prog_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005320 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005321else
5322 if test -n "$DSYMUTIL"; then
5323 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5324else
5325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326for as_dir in $PATH
5327do
5328 IFS=$as_save_IFS
5329 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005332 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
drhf922ca42015-05-14 15:39:18 +00005333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005334 break 2
5335 fi
5336done
drhf922ca42015-05-14 15:39:18 +00005337 done
drh8b727472009-01-19 18:18:40 +00005338IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005339
5340fi
5341fi
5342DSYMUTIL=$ac_cv_prog_DSYMUTIL
5343if test -n "$DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005345$as_echo "$DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005346else
drhf922ca42015-05-14 15:39:18 +00005347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005348$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005349fi
5350
drh8b727472009-01-19 18:18:40 +00005351
mlcreech636a9952008-05-05 22:52:56 +00005352fi
5353if test -z "$ac_cv_prog_DSYMUTIL"; then
5354 ac_ct_DSYMUTIL=$DSYMUTIL
5355 # Extract the first word of "dsymutil", so it can be a program name with args.
5356set dummy dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005358$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005359if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005360 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005361else
5362 if test -n "$ac_ct_DSYMUTIL"; then
5363 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5364else
5365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366for as_dir in $PATH
5367do
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005372 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
drhf922ca42015-05-14 15:39:18 +00005373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005374 break 2
5375 fi
5376done
drhf922ca42015-05-14 15:39:18 +00005377 done
drh8b727472009-01-19 18:18:40 +00005378IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005379
5380fi
5381fi
5382ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5383if test -n "$ac_ct_DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005385$as_echo "$ac_ct_DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005386else
drhf922ca42015-05-14 15:39:18 +00005387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005388$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005389fi
5390
drh8b727472009-01-19 18:18:40 +00005391 if test "x$ac_ct_DSYMUTIL" = x; then
5392 DSYMUTIL=":"
5393 else
5394 case $cross_compiling:$ac_tool_warned in
5395yes:)
drhf922ca42015-05-14 15:39:18 +00005396{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5397$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005398ac_tool_warned=yes ;;
5399esac
5400 DSYMUTIL=$ac_ct_DSYMUTIL
5401 fi
mlcreech636a9952008-05-05 22:52:56 +00005402else
5403 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5404fi
5405
5406 if test -n "$ac_tool_prefix"; then
5407 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5408set dummy ${ac_tool_prefix}nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005410$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005411if ${ac_cv_prog_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005412 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005413else
5414 if test -n "$NMEDIT"; then
5415 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5416else
5417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418for as_dir in $PATH
5419do
5420 IFS=$as_save_IFS
5421 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005424 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
drhf922ca42015-05-14 15:39:18 +00005425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005426 break 2
5427 fi
5428done
drhf922ca42015-05-14 15:39:18 +00005429 done
drh8b727472009-01-19 18:18:40 +00005430IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005431
5432fi
5433fi
5434NMEDIT=$ac_cv_prog_NMEDIT
5435if test -n "$NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005437$as_echo "$NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005438else
drhf922ca42015-05-14 15:39:18 +00005439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005440$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005441fi
5442
drh8b727472009-01-19 18:18:40 +00005443
mlcreech636a9952008-05-05 22:52:56 +00005444fi
5445if test -z "$ac_cv_prog_NMEDIT"; then
5446 ac_ct_NMEDIT=$NMEDIT
5447 # Extract the first word of "nmedit", so it can be a program name with args.
5448set dummy nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005450$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005451if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005452 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005453else
5454 if test -n "$ac_ct_NMEDIT"; then
5455 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5456else
5457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458for as_dir in $PATH
5459do
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005464 ac_cv_prog_ac_ct_NMEDIT="nmedit"
drhf922ca42015-05-14 15:39:18 +00005465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005466 break 2
5467 fi
5468done
drhf922ca42015-05-14 15:39:18 +00005469 done
drh8b727472009-01-19 18:18:40 +00005470IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005471
5472fi
5473fi
5474ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5475if test -n "$ac_ct_NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005477$as_echo "$ac_ct_NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005478else
drhf922ca42015-05-14 15:39:18 +00005479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005480$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005481fi
5482
drh8b727472009-01-19 18:18:40 +00005483 if test "x$ac_ct_NMEDIT" = x; then
5484 NMEDIT=":"
5485 else
5486 case $cross_compiling:$ac_tool_warned in
5487yes:)
drhf922ca42015-05-14 15:39:18 +00005488{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5489$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005490ac_tool_warned=yes ;;
5491esac
5492 NMEDIT=$ac_ct_NMEDIT
5493 fi
mlcreech636a9952008-05-05 22:52:56 +00005494else
5495 NMEDIT="$ac_cv_prog_NMEDIT"
5496fi
5497
5498 if test -n "$ac_tool_prefix"; then
5499 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5500set dummy ${ac_tool_prefix}lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005502$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005503if ${ac_cv_prog_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005504 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005505else
5506 if test -n "$LIPO"; then
5507 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5508else
5509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510for as_dir in $PATH
5511do
5512 IFS=$as_save_IFS
5513 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005514 for ac_exec_ext in '' $ac_executable_extensions; do
5515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005516 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
drhf922ca42015-05-14 15:39:18 +00005517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005518 break 2
5519 fi
5520done
drhf922ca42015-05-14 15:39:18 +00005521 done
drh8b727472009-01-19 18:18:40 +00005522IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005523
5524fi
5525fi
5526LIPO=$ac_cv_prog_LIPO
5527if test -n "$LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005529$as_echo "$LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005530else
drhf922ca42015-05-14 15:39:18 +00005531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005532$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005533fi
5534
drh8b727472009-01-19 18:18:40 +00005535
mlcreech636a9952008-05-05 22:52:56 +00005536fi
5537if test -z "$ac_cv_prog_LIPO"; then
5538 ac_ct_LIPO=$LIPO
5539 # Extract the first word of "lipo", so it can be a program name with args.
5540set dummy lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005542$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005543if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005544 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005545else
5546 if test -n "$ac_ct_LIPO"; then
5547 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5548else
5549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550for as_dir in $PATH
5551do
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005556 ac_cv_prog_ac_ct_LIPO="lipo"
drhf922ca42015-05-14 15:39:18 +00005557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005558 break 2
5559 fi
5560done
drhf922ca42015-05-14 15:39:18 +00005561 done
drh8b727472009-01-19 18:18:40 +00005562IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005563
5564fi
5565fi
5566ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5567if test -n "$ac_ct_LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005569$as_echo "$ac_ct_LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005570else
drhf922ca42015-05-14 15:39:18 +00005571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005572$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005573fi
5574
drh8b727472009-01-19 18:18:40 +00005575 if test "x$ac_ct_LIPO" = x; then
5576 LIPO=":"
5577 else
5578 case $cross_compiling:$ac_tool_warned in
5579yes:)
drhf922ca42015-05-14 15:39:18 +00005580{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5581$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005582ac_tool_warned=yes ;;
5583esac
5584 LIPO=$ac_ct_LIPO
5585 fi
mlcreech636a9952008-05-05 22:52:56 +00005586else
5587 LIPO="$ac_cv_prog_LIPO"
5588fi
5589
5590 if test -n "$ac_tool_prefix"; then
5591 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5592set dummy ${ac_tool_prefix}otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005594$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005595if ${ac_cv_prog_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005596 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005597else
5598 if test -n "$OTOOL"; then
5599 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5600else
5601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602for as_dir in $PATH
5603do
5604 IFS=$as_save_IFS
5605 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005606 for ac_exec_ext in '' $ac_executable_extensions; do
5607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005608 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
drhf922ca42015-05-14 15:39:18 +00005609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005610 break 2
5611 fi
5612done
drhf922ca42015-05-14 15:39:18 +00005613 done
drh8b727472009-01-19 18:18:40 +00005614IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005615
5616fi
5617fi
5618OTOOL=$ac_cv_prog_OTOOL
5619if test -n "$OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005621$as_echo "$OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005622else
drhf922ca42015-05-14 15:39:18 +00005623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005624$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005625fi
5626
drh8b727472009-01-19 18:18:40 +00005627
mlcreech636a9952008-05-05 22:52:56 +00005628fi
5629if test -z "$ac_cv_prog_OTOOL"; then
5630 ac_ct_OTOOL=$OTOOL
5631 # Extract the first word of "otool", so it can be a program name with args.
5632set dummy otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005634$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005635if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005636 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005637else
5638 if test -n "$ac_ct_OTOOL"; then
5639 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5640else
5641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642for as_dir in $PATH
5643do
5644 IFS=$as_save_IFS
5645 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005648 ac_cv_prog_ac_ct_OTOOL="otool"
drhf922ca42015-05-14 15:39:18 +00005649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005650 break 2
5651 fi
5652done
drhf922ca42015-05-14 15:39:18 +00005653 done
drh8b727472009-01-19 18:18:40 +00005654IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005655
5656fi
5657fi
5658ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5659if test -n "$ac_ct_OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005661$as_echo "$ac_ct_OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005662else
drhf922ca42015-05-14 15:39:18 +00005663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005664$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005665fi
5666
drh8b727472009-01-19 18:18:40 +00005667 if test "x$ac_ct_OTOOL" = x; then
5668 OTOOL=":"
5669 else
5670 case $cross_compiling:$ac_tool_warned in
5671yes:)
drhf922ca42015-05-14 15:39:18 +00005672{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5673$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005674ac_tool_warned=yes ;;
5675esac
5676 OTOOL=$ac_ct_OTOOL
5677 fi
mlcreech636a9952008-05-05 22:52:56 +00005678else
5679 OTOOL="$ac_cv_prog_OTOOL"
5680fi
5681
5682 if test -n "$ac_tool_prefix"; then
5683 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5684set dummy ${ac_tool_prefix}otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005686$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005687if ${ac_cv_prog_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005688 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005689else
5690 if test -n "$OTOOL64"; then
5691 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5692else
5693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694for as_dir in $PATH
5695do
5696 IFS=$as_save_IFS
5697 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005698 for ac_exec_ext in '' $ac_executable_extensions; do
5699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005700 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
drhf922ca42015-05-14 15:39:18 +00005701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005702 break 2
5703 fi
5704done
drhf922ca42015-05-14 15:39:18 +00005705 done
drh8b727472009-01-19 18:18:40 +00005706IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005707
5708fi
5709fi
5710OTOOL64=$ac_cv_prog_OTOOL64
5711if test -n "$OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005713$as_echo "$OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005714else
drhf922ca42015-05-14 15:39:18 +00005715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005716$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005717fi
5718
drh8b727472009-01-19 18:18:40 +00005719
mlcreech636a9952008-05-05 22:52:56 +00005720fi
5721if test -z "$ac_cv_prog_OTOOL64"; then
5722 ac_ct_OTOOL64=$OTOOL64
5723 # Extract the first word of "otool64", so it can be a program name with args.
5724set dummy otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005726$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005727if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005728 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005729else
5730 if test -n "$ac_ct_OTOOL64"; then
5731 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5732else
5733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734for as_dir in $PATH
5735do
5736 IFS=$as_save_IFS
5737 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005740 ac_cv_prog_ac_ct_OTOOL64="otool64"
drhf922ca42015-05-14 15:39:18 +00005741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005742 break 2
5743 fi
5744done
drhf922ca42015-05-14 15:39:18 +00005745 done
drh8b727472009-01-19 18:18:40 +00005746IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005747
5748fi
5749fi
5750ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5751if test -n "$ac_ct_OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005753$as_echo "$ac_ct_OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005754else
drhf922ca42015-05-14 15:39:18 +00005755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005756$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005757fi
5758
drh8b727472009-01-19 18:18:40 +00005759 if test "x$ac_ct_OTOOL64" = x; then
5760 OTOOL64=":"
5761 else
5762 case $cross_compiling:$ac_tool_warned in
5763yes:)
drhf922ca42015-05-14 15:39:18 +00005764{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5765$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005766ac_tool_warned=yes ;;
5767esac
5768 OTOOL64=$ac_ct_OTOOL64
5769 fi
mlcreech636a9952008-05-05 22:52:56 +00005770else
5771 OTOOL64="$ac_cv_prog_OTOOL64"
5772fi
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
5798
5799
drhf922ca42015-05-14 15:39:18 +00005800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005801$as_echo_n "checking for -single_module linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005802if ${lt_cv_apple_cc_single_mod+:} false; then :
drh8b727472009-01-19 18:18:40 +00005803 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005804else
5805 lt_cv_apple_cc_single_mod=no
5806 if test -z "${LT_MULTI_MODULE}"; then
5807 # By default we will add the -single_module flag. You can override
5808 # by either setting the environment variable LT_MULTI_MODULE
5809 # non-empty at configure time, or by adding -multi_module to the
5810 # link flags.
5811 rm -rf libconftest.dylib*
5812 echo "int foo(void){return 1;}" > conftest.c
5813 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5814-dynamiclib -Wl,-single_module conftest.c" >&5
5815 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5816 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5817 _lt_result=$?
5818 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5819 lt_cv_apple_cc_single_mod=yes
5820 else
5821 cat conftest.err >&5
5822 fi
5823 rm -rf libconftest.dylib*
5824 rm -f conftest.*
5825 fi
5826fi
drhf922ca42015-05-14 15:39:18 +00005827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
drh8b727472009-01-19 18:18:40 +00005828$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
drhf922ca42015-05-14 15:39:18 +00005829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005830$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005831if ${lt_cv_ld_exported_symbols_list+:} false; then :
drh8b727472009-01-19 18:18:40 +00005832 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005833else
5834 lt_cv_ld_exported_symbols_list=no
5835 save_LDFLAGS=$LDFLAGS
5836 echo "_main" > conftest.sym
5837 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
drhf922ca42015-05-14 15:39:18 +00005838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005839/* end confdefs.h. */
5840
5841int
5842main ()
5843{
5844
5845 ;
5846 return 0;
5847}
5848_ACEOF
drhf922ca42015-05-14 15:39:18 +00005849if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00005850 lt_cv_ld_exported_symbols_list=yes
5851else
drhf922ca42015-05-14 15:39:18 +00005852 lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00005853fi
drhf922ca42015-05-14 15:39:18 +00005854rm -f core conftest.err conftest.$ac_objext \
5855 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005856 LDFLAGS="$save_LDFLAGS"
5857
5858fi
drhf922ca42015-05-14 15:39:18 +00005859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
drh8b727472009-01-19 18:18:40 +00005860$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005861 case $host_os in
5862 rhapsody* | darwin1.[012])
5863 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5864 darwin1.*)
5865 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5866 darwin*) # darwin 5.x on
5867 # if running on 10.5 or later, the deployment target defaults
5868 # to the OS version, if on x86, and 10.4, the deployment
5869 # target defaults to 10.4. Don't you love it?
5870 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5871 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5872 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5873 10.[012]*)
5874 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5875 10.*)
5876 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5877 esac
5878 ;;
5879 esac
5880 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5881 _lt_dar_single_mod='$single_module'
5882 fi
5883 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5884 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5885 else
5886 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5887 fi
5888 if test "$DSYMUTIL" != ":"; then
5889 _lt_dsymutil='~$DSYMUTIL $lib || :'
5890 else
5891 _lt_dsymutil=
5892 fi
5893 ;;
5894 esac
5895
a.rottmann84e63352003-03-24 09:42:16 +00005896ac_ext=c
5897ac_cpp='$CPP $CPPFLAGS'
5898ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5899ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5900ac_compiler_gnu=$ac_cv_c_compiler_gnu
drhf922ca42015-05-14 15:39:18 +00005901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
drh8b727472009-01-19 18:18:40 +00005902$as_echo_n "checking how to run the C preprocessor... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005903# On Suns, sometimes $CPP names a directory.
5904if test -n "$CPP" && test -d "$CPP"; then
5905 CPP=
5906fi
5907if test -z "$CPP"; then
drhf922ca42015-05-14 15:39:18 +00005908 if ${ac_cv_prog_CPP+:} false; then :
drh8b727472009-01-19 18:18:40 +00005909 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00005910else
a.rottmann84e63352003-03-24 09:42:16 +00005911 # Double quotes because CPP needs to be expanded
5912 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5913 do
5914 ac_preproc_ok=false
5915for ac_c_preproc_warn_flag in '' yes
5916do
5917 # Use a header file that comes with gcc, so configuring glibc
5918 # with a fresh cross-compiler works.
5919 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5920 # <limits.h> exists even on freestanding compilers.
5921 # On the NeXT, cc -E runs the code through the compiler's parser,
5922 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005924/* end confdefs.h. */
5925#ifdef __STDC__
5926# include <limits.h>
5927#else
5928# include <assert.h>
5929#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005930 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005931_ACEOF
drhf922ca42015-05-14 15:39:18 +00005932if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005933
drhf922ca42015-05-14 15:39:18 +00005934else
a.rottmann84e63352003-03-24 09:42:16 +00005935 # Broken: fails on valid input.
5936continue
5937fi
drhf922ca42015-05-14 15:39:18 +00005938rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005939
drh8b727472009-01-19 18:18:40 +00005940 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005941 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00005942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005943/* end confdefs.h. */
5944#include <ac_nonexistent.h>
5945_ACEOF
drhf922ca42015-05-14 15:39:18 +00005946if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005947 # Broken: success on invalid input.
5948continue
5949else
a.rottmann84e63352003-03-24 09:42:16 +00005950 # Passes both tests.
5951ac_preproc_ok=:
5952break
5953fi
drhf922ca42015-05-14 15:39:18 +00005954rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005955
5956done
5957# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00005958rm -f conftest.i conftest.err conftest.$ac_ext
5959if $ac_preproc_ok; then :
a.rottmann84e63352003-03-24 09:42:16 +00005960 break
5961fi
5962
5963 done
5964 ac_cv_prog_CPP=$CPP
5965
5966fi
5967 CPP=$ac_cv_prog_CPP
5968else
5969 ac_cv_prog_CPP=$CPP
5970fi
drhf922ca42015-05-14 15:39:18 +00005971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
drh8b727472009-01-19 18:18:40 +00005972$as_echo "$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005973ac_preproc_ok=false
5974for ac_c_preproc_warn_flag in '' yes
5975do
5976 # Use a header file that comes with gcc, so configuring glibc
5977 # with a fresh cross-compiler works.
5978 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5979 # <limits.h> exists even on freestanding compilers.
5980 # On the NeXT, cc -E runs the code through the compiler's parser,
5981 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005983/* end confdefs.h. */
5984#ifdef __STDC__
5985# include <limits.h>
5986#else
5987# include <assert.h>
5988#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005989 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005990_ACEOF
drhf922ca42015-05-14 15:39:18 +00005991if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005992
drhf922ca42015-05-14 15:39:18 +00005993else
a.rottmann84e63352003-03-24 09:42:16 +00005994 # Broken: fails on valid input.
5995continue
5996fi
drhf922ca42015-05-14 15:39:18 +00005997rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005998
drh8b727472009-01-19 18:18:40 +00005999 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00006000 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00006001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006002/* end confdefs.h. */
6003#include <ac_nonexistent.h>
6004_ACEOF
drhf922ca42015-05-14 15:39:18 +00006005if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006006 # Broken: success on invalid input.
6007continue
6008else
a.rottmann84e63352003-03-24 09:42:16 +00006009 # Passes both tests.
6010ac_preproc_ok=:
6011break
6012fi
drhf922ca42015-05-14 15:39:18 +00006013rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006014
6015done
6016# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00006017rm -f conftest.i conftest.err conftest.$ac_ext
6018if $ac_preproc_ok; then :
6019
a.rottmann84e63352003-03-24 09:42:16 +00006020else
drhf922ca42015-05-14 15:39:18 +00006021 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6022$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6023as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6024See \`config.log' for more details" "$LINENO" 5; }
a.rottmann84e63352003-03-24 09:42:16 +00006025fi
6026
6027ac_ext=c
6028ac_cpp='$CPP $CPPFLAGS'
6029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6031ac_compiler_gnu=$ac_cv_c_compiler_gnu
6032
6033
drhf922ca42015-05-14 15:39:18 +00006034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
drh8b727472009-01-19 18:18:40 +00006035$as_echo_n "checking for ANSI C header files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006036if ${ac_cv_header_stdc+:} false; then :
drh8b727472009-01-19 18:18:40 +00006037 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006038else
drhf922ca42015-05-14 15:39:18 +00006039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006040/* end confdefs.h. */
6041#include <stdlib.h>
6042#include <stdarg.h>
6043#include <string.h>
6044#include <float.h>
6045
6046int
6047main ()
6048{
6049
6050 ;
6051 return 0;
6052}
6053_ACEOF
drhf922ca42015-05-14 15:39:18 +00006054if ac_fn_c_try_compile "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006055 ac_cv_header_stdc=yes
6056else
drhf922ca42015-05-14 15:39:18 +00006057 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006058fi
drh8b727472009-01-19 18:18:40 +00006059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006060
6061if test $ac_cv_header_stdc = yes; then
6062 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006064/* end confdefs.h. */
6065#include <string.h>
6066
6067_ACEOF
6068if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006069 $EGREP "memchr" >/dev/null 2>&1; then :
6070
a.rottmann84e63352003-03-24 09:42:16 +00006071else
6072 ac_cv_header_stdc=no
6073fi
6074rm -f conftest*
6075
6076fi
6077
6078if test $ac_cv_header_stdc = yes; then
6079 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006081/* end confdefs.h. */
6082#include <stdlib.h>
6083
6084_ACEOF
6085if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006086 $EGREP "free" >/dev/null 2>&1; then :
6087
a.rottmann84e63352003-03-24 09:42:16 +00006088else
6089 ac_cv_header_stdc=no
6090fi
6091rm -f conftest*
6092
6093fi
6094
6095if test $ac_cv_header_stdc = yes; then
6096 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
drhf922ca42015-05-14 15:39:18 +00006097 if test "$cross_compiling" = yes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006098 :
6099else
drhf922ca42015-05-14 15:39:18 +00006100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006101/* end confdefs.h. */
6102#include <ctype.h>
drh8b727472009-01-19 18:18:40 +00006103#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00006104#if ((' ' & 0x0FF) == 0x020)
6105# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6106# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6107#else
6108# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00006109 (('a' <= (c) && (c) <= 'i') \
6110 || ('j' <= (c) && (c) <= 'r') \
6111 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00006112# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6113#endif
6114
6115#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6116int
6117main ()
6118{
6119 int i;
6120 for (i = 0; i < 256; i++)
6121 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00006122 || toupper (i) != TOUPPER (i))
drh8b727472009-01-19 18:18:40 +00006123 return 2;
6124 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00006125}
6126_ACEOF
drhf922ca42015-05-14 15:39:18 +00006127if ac_fn_c_try_run "$LINENO"; then :
6128
a.rottmann84e63352003-03-24 09:42:16 +00006129else
drhf922ca42015-05-14 15:39:18 +00006130 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006131fi
drhf922ca42015-05-14 15:39:18 +00006132rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6133 conftest.$ac_objext conftest.beam conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00006134fi
6135
a.rottmann84e63352003-03-24 09:42:16 +00006136fi
6137fi
drhf922ca42015-05-14 15:39:18 +00006138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
drh8b727472009-01-19 18:18:40 +00006139$as_echo "$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006140if test $ac_cv_header_stdc = yes; then
6141
drhf922ca42015-05-14 15:39:18 +00006142$as_echo "#define STDC_HEADERS 1" >>confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00006143
6144fi
6145
6146# On IRIX 5.3, sys/types and inttypes.h are conflicting.
a.rottmann84e63352003-03-24 09:42:16 +00006147for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00006148 inttypes.h stdint.h unistd.h
drhf922ca42015-05-14 15:39:18 +00006149do :
6150 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6151ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6152"
6153if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006154 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006155#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006156_ACEOF
6157
6158fi
6159
6160done
6161
6162
a.rottmann84e63352003-03-24 09:42:16 +00006163for ac_header in dlfcn.h
drhf922ca42015-05-14 15:39:18 +00006164do :
6165 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6166"
6167if test "x$ac_cv_header_dlfcn_h" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006168 cat >>confdefs.h <<_ACEOF
drhf922ca42015-05-14 15:39:18 +00006169#define HAVE_DLFCN_H 1
a.rottmann84e63352003-03-24 09:42:16 +00006170_ACEOF
6171
6172fi
6173
drh71eb93e2001-09-28 01:34:43 +00006174done
6175
drh71eb93e2001-09-28 01:34:43 +00006176
drh71eb93e2001-09-28 01:34:43 +00006177
mlcreech636a9952008-05-05 22:52:56 +00006178# Set options
mlcreech94984912008-03-04 19:03:08 +00006179
drh71eb93e2001-09-28 01:34:43 +00006180
drh71eb93e2001-09-28 01:34:43 +00006181
mlcreech636a9952008-05-05 22:52:56 +00006182 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00006183
a.rottmann9bc8b932004-02-29 15:18:31 +00006184
mlcreech636a9952008-05-05 22:52:56 +00006185 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006186
a.rottmann9bc8b932004-02-29 15:18:31 +00006187
drh8b727472009-01-19 18:18:40 +00006188 # Check whether --enable-shared was given.
drhf922ca42015-05-14 15:39:18 +00006189if test "${enable_shared+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006190 enableval=$enable_shared; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006191 case $enableval in
6192 yes) enable_shared=yes ;;
6193 no) enable_shared=no ;;
6194 *)
6195 enable_shared=no
6196 # Look at the argument we got. We use all the common list separators.
6197 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6198 for pkg in $enableval; do
6199 IFS="$lt_save_ifs"
6200 if test "X$pkg" = "X$p"; then
6201 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006202 fi
mlcreech636a9952008-05-05 22:52:56 +00006203 done
6204 IFS="$lt_save_ifs"
6205 ;;
6206 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006207else
mlcreech636a9952008-05-05 22:52:56 +00006208 enable_shared=yes
drh8b727472009-01-19 18:18:40 +00006209fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006210
mlcreech636a9952008-05-05 22:52:56 +00006211
6212
6213
6214
6215
6216
6217
drh8b727472009-01-19 18:18:40 +00006218
6219 # Check whether --enable-static was given.
drhf922ca42015-05-14 15:39:18 +00006220if test "${enable_static+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006221 enableval=$enable_static; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006222 case $enableval in
6223 yes) enable_static=yes ;;
6224 no) enable_static=no ;;
6225 *)
6226 enable_static=no
6227 # Look at the argument we got. We use all the common list separators.
6228 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6229 for pkg in $enableval; do
6230 IFS="$lt_save_ifs"
6231 if test "X$pkg" = "X$p"; then
6232 enable_static=yes
6233 fi
6234 done
6235 IFS="$lt_save_ifs"
6236 ;;
6237 esac
6238else
6239 enable_static=yes
drh8b727472009-01-19 18:18:40 +00006240fi
mlcreech636a9952008-05-05 22:52:56 +00006241
6242
6243
6244
6245
6246
6247
6248
6249
drh8b727472009-01-19 18:18:40 +00006250
6251# Check whether --with-pic was given.
drhf922ca42015-05-14 15:39:18 +00006252if test "${with_pic+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006253 withval=$with_pic; pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00006254else
6255 pic_mode=default
drh8b727472009-01-19 18:18:40 +00006256fi
6257
mlcreech636a9952008-05-05 22:52:56 +00006258
6259test -z "$pic_mode" && pic_mode=default
6260
6261
6262
6263
6264
6265
6266
drh8b727472009-01-19 18:18:40 +00006267 # Check whether --enable-fast-install was given.
drhf922ca42015-05-14 15:39:18 +00006268if test "${enable_fast_install+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006269 enableval=$enable_fast_install; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006270 case $enableval in
6271 yes) enable_fast_install=yes ;;
6272 no) enable_fast_install=no ;;
6273 *)
6274 enable_fast_install=no
6275 # Look at the argument we got. We use all the common list separators.
6276 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6277 for pkg in $enableval; do
6278 IFS="$lt_save_ifs"
6279 if test "X$pkg" = "X$p"; then
6280 enable_fast_install=yes
6281 fi
6282 done
6283 IFS="$lt_save_ifs"
6284 ;;
6285 esac
6286else
6287 enable_fast_install=yes
drh8b727472009-01-19 18:18:40 +00006288fi
6289
mlcreech636a9952008-05-05 22:52:56 +00006290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300# This can be used to rebuild libtool when needed
6301LIBTOOL_DEPS="$ltmain"
6302
6303# Always use our own libtool.
6304LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330test -z "$LN_S" && LN_S="ln -s"
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345if test -n "${ZSH_VERSION+set}" ; then
6346 setopt NO_GLOB_SUBST
6347fi
6348
drhf922ca42015-05-14 15:39:18 +00006349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
drh8b727472009-01-19 18:18:40 +00006350$as_echo_n "checking for objdir... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006351if ${lt_cv_objdir+:} false; then :
drh8b727472009-01-19 18:18:40 +00006352 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006353else
6354 rm -f .libs 2>/dev/null
6355mkdir .libs 2>/dev/null
6356if test -d .libs; then
6357 lt_cv_objdir=.libs
6358else
6359 # MS-DOS does not allow filenames that begin with a dot.
6360 lt_cv_objdir=_libs
6361fi
6362rmdir .libs 2>/dev/null
6363fi
drhf922ca42015-05-14 15:39:18 +00006364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
drh8b727472009-01-19 18:18:40 +00006365$as_echo "$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006366objdir=$lt_cv_objdir
6367
6368
6369
6370
6371
mlcreech636a9952008-05-05 22:52:56 +00006372cat >>confdefs.h <<_ACEOF
6373#define LT_OBJDIR "$lt_cv_objdir/"
6374_ACEOF
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
a.rottmann9bc8b932004-02-29 15:18:31 +00006392case $host_os in
6393aix3*)
6394 # AIX sometimes has problems with the GCC collect2 program. For some
6395 # reason, if we set the COLLECT_NAMES environment variable, the problems
6396 # vanish in a puff of smoke.
6397 if test "X${COLLECT_NAMES+set}" != Xset; then
6398 COLLECT_NAMES=
6399 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00006400 fi
6401 ;;
6402esac
6403
a.rottmann9bc8b932004-02-29 15:18:31 +00006404# Sed substitution that helps us do robust quoting. It backslashifies
6405# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00006406sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006407
6408# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00006409double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006410
6411# Sed substitution to delay expansion of an escaped shell variable in a
6412# double_quote_subst'ed string.
6413delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6414
mlcreech636a9952008-05-05 22:52:56 +00006415# Sed substitution to delay expansion of an escaped single quote.
6416delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6417
a.rottmann9bc8b932004-02-29 15:18:31 +00006418# Sed substitution to avoid accidental globbing in evaled expressions
6419no_glob_subst='s/\*/\\\*/g'
6420
a.rottmann9bc8b932004-02-29 15:18:31 +00006421# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00006422ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00006423can_build_shared=yes
6424
vapier7f19c022007-02-17 14:46:31 +00006425# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00006426# which needs '.lib').
6427libext=a
mlcreech636a9952008-05-05 22:52:56 +00006428
a.rottmann9bc8b932004-02-29 15:18:31 +00006429with_gnu_ld="$lt_cv_prog_gnu_ld"
6430
a.rottmann84e63352003-03-24 09:42:16 +00006431old_CC="$CC"
6432old_CFLAGS="$CFLAGS"
6433
6434# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00006435test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006436test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006437test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006438test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00006439test -z "$ac_objext" && ac_objext=o
6440
vapier7f19c022007-02-17 14:46:31 +00006441for cc_temp in $compiler""; do
6442 case $cc_temp in
6443 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6444 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6445 \-*) ;;
6446 *) break;;
6447 esac
6448done
mlcreech636a9952008-05-05 22:52:56 +00006449cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00006450
6451
a.rottmann9bc8b932004-02-29 15:18:31 +00006452# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00006453test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00006454case $deplibs_check_method in
6455file_magic*)
6456 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
drhf922ca42015-05-14 15:39:18 +00006457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
drh8b727472009-01-19 18:18:40 +00006458$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006459if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006460 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006461else
a.rottmann9bc8b932004-02-29 15:18:31 +00006462 case $MAGIC_CMD in
6463[\\/*] | ?:[\\/]*)
6464 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6465 ;;
6466*)
6467 lt_save_MAGIC_CMD="$MAGIC_CMD"
6468 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6469 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6470 for ac_dir in $ac_dummy; do
6471 IFS="$lt_save_ifs"
6472 test -z "$ac_dir" && ac_dir=.
6473 if test -f $ac_dir/${ac_tool_prefix}file; then
6474 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6475 if test -n "$file_magic_test_file"; then
6476 case $deplibs_check_method in
6477 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006478 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006479 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6480 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6481 $EGREP "$file_magic_regex" > /dev/null; then
6482 :
6483 else
mlcreech636a9952008-05-05 22:52:56 +00006484 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006485
a.rottmann9bc8b932004-02-29 15:18:31 +00006486*** Warning: the command libtool uses to detect shared libraries,
6487*** $file_magic_cmd, produces output that libtool cannot recognize.
6488*** The result is that libtool may fail to recognize shared libraries
6489*** as such. This will affect the creation of libtool libraries that
6490*** depend on shared libraries, but programs linked with such libtool
6491*** libraries will work regardless of this problem. Nevertheless, you
6492*** may want to report the problem to your system manager and/or to
6493*** bug-libtool@gnu.org
6494
mlcreech636a9952008-05-05 22:52:56 +00006495_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006496 fi ;;
6497 esac
6498 fi
6499 break
6500 fi
6501 done
6502 IFS="$lt_save_ifs"
6503 MAGIC_CMD="$lt_save_MAGIC_CMD"
6504 ;;
6505esac
6506fi
6507
6508MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6509if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006511$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006512else
drhf922ca42015-05-14 15:39:18 +00006513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006514$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006515fi
6516
mlcreech636a9952008-05-05 22:52:56 +00006517
6518
6519
6520
a.rottmann9bc8b932004-02-29 15:18:31 +00006521if test -z "$lt_cv_path_MAGIC_CMD"; then
6522 if test -n "$ac_tool_prefix"; then
drhf922ca42015-05-14 15:39:18 +00006523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
drh8b727472009-01-19 18:18:40 +00006524$as_echo_n "checking for file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006525if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006526 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006527else
6528 case $MAGIC_CMD in
6529[\\/*] | ?:[\\/]*)
6530 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6531 ;;
6532*)
6533 lt_save_MAGIC_CMD="$MAGIC_CMD"
6534 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6535 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6536 for ac_dir in $ac_dummy; do
6537 IFS="$lt_save_ifs"
6538 test -z "$ac_dir" && ac_dir=.
6539 if test -f $ac_dir/file; then
6540 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6541 if test -n "$file_magic_test_file"; then
6542 case $deplibs_check_method in
6543 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006544 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006545 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6546 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6547 $EGREP "$file_magic_regex" > /dev/null; then
6548 :
6549 else
mlcreech636a9952008-05-05 22:52:56 +00006550 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006551
6552*** Warning: the command libtool uses to detect shared libraries,
6553*** $file_magic_cmd, produces output that libtool cannot recognize.
6554*** The result is that libtool may fail to recognize shared libraries
6555*** as such. This will affect the creation of libtool libraries that
6556*** depend on shared libraries, but programs linked with such libtool
6557*** libraries will work regardless of this problem. Nevertheless, you
6558*** may want to report the problem to your system manager and/or to
6559*** bug-libtool@gnu.org
6560
mlcreech636a9952008-05-05 22:52:56 +00006561_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006562 fi ;;
6563 esac
6564 fi
6565 break
6566 fi
6567 done
6568 IFS="$lt_save_ifs"
6569 MAGIC_CMD="$lt_save_MAGIC_CMD"
6570 ;;
6571esac
6572fi
6573
6574MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6575if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006577$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006578else
drhf922ca42015-05-14 15:39:18 +00006579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006580$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006581fi
6582
mlcreech636a9952008-05-05 22:52:56 +00006583
a.rottmann9bc8b932004-02-29 15:18:31 +00006584 else
6585 MAGIC_CMD=:
6586 fi
6587fi
6588
6589 fi
6590 ;;
6591esac
6592
a.rottmann9bc8b932004-02-29 15:18:31 +00006593# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00006594
a.rottmann9bc8b932004-02-29 15:18:31 +00006595lt_save_CC="$CC"
6596ac_ext=c
6597ac_cpp='$CPP $CPPFLAGS'
6598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6600ac_compiler_gnu=$ac_cv_c_compiler_gnu
6601
6602
6603# Source file extension for C test sources.
6604ac_ext=c
6605
6606# Object file extension for compiled C test sources.
6607objext=o
6608objext=$objext
6609
6610# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00006611lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00006612
6613# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00006614lt_simple_link_test_code='int main(){return(0);}'
6615
6616
6617
6618
6619
a.rottmann9bc8b932004-02-29 15:18:31 +00006620
6621
6622# If no C compiler was specified, use CC.
6623LTCC=${LTCC-"$CC"}
6624
vapier7f19c022007-02-17 14:46:31 +00006625# If no C compiler flags were specified, use CFLAGS.
6626LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6627
a.rottmann9bc8b932004-02-29 15:18:31 +00006628# Allow CC to be a program name with arguments.
6629compiler=$CC
6630
mlcreech636a9952008-05-05 22:52:56 +00006631# Save the default compiler, since it gets overwritten when the other
6632# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6633compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00006634
vapier7f19c022007-02-17 14:46:31 +00006635# save warnings/boilerplate of simple test code
6636ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006637echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006638eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6639_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006640$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006641
vapier7f19c022007-02-17 14:46:31 +00006642ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006643echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006644eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6645_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006646$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006647
6648
mlcreech636a9952008-05-05 22:52:56 +00006649if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006650
6651lt_prog_compiler_no_builtin_flag=
6652
6653if test "$GCC" = yes; then
6654 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6655
drhf922ca42015-05-14 15:39:18 +00006656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006657$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006658if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
drh8b727472009-01-19 18:18:40 +00006659 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006660else
6661 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00006662 ac_outfile=conftest.$ac_objext
6663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006664 lt_compiler_flag="-fno-rtti -fno-exceptions"
6665 # Insert the option either (1) after the last *FLAGS variable, or
6666 # (2) before a word containing "conftest.", or (3) at the end.
6667 # Note that $ac_compile itself does not contain backslashes and begins
6668 # with a dollar sign (not a hyphen), so the echo should work correctly.
6669 # The option is referenced via a variable to avoid confusing sed.
6670 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006671 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006672 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6673 -e 's:$: $lt_compiler_flag:'`
drh748b8fd2018-05-25 19:22:47 +00006674 (eval echo "\"\$as_me:6674: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006675 (eval "$lt_compile" 2>conftest.err)
6676 ac_status=$?
6677 cat conftest.err >&5
drh748b8fd2018-05-25 19:22:47 +00006678 echo "$as_me:6678: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006679 if (exit $ac_status) && test -s "$ac_outfile"; then
6680 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006681 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006682 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006683 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6684 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006685 lt_cv_prog_compiler_rtti_exceptions=yes
6686 fi
6687 fi
mlcreech636a9952008-05-05 22:52:56 +00006688 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006689
6690fi
drhf922ca42015-05-14 15:39:18 +00006691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006692$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006693
6694if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6695 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6696else
6697 :
6698fi
6699
6700fi
6701
mlcreech636a9952008-05-05 22:52:56 +00006702
6703
6704
6705
6706
6707 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00006708lt_prog_compiler_pic=
6709lt_prog_compiler_static=
6710
drhf922ca42015-05-14 15:39:18 +00006711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
drh8b727472009-01-19 18:18:40 +00006712$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006713
drh71eb93e2001-09-28 01:34:43 +00006714 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006715 lt_prog_compiler_wl='-Wl,'
6716 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006717
6718 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006719 aix*)
6720 # All AIX code is PIC.
6721 if test "$host_cpu" = ia64; then
6722 # AIX 5 now supports IA64 processor
6723 lt_prog_compiler_static='-Bstatic'
6724 fi
drh71eb93e2001-09-28 01:34:43 +00006725 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006726
drh71eb93e2001-09-28 01:34:43 +00006727 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006728 case $host_cpu in
6729 powerpc)
6730 # see comment about AmigaOS4 .so support
6731 lt_prog_compiler_pic='-fPIC'
6732 ;;
6733 m68k)
6734 # FIXME: we need at least 68020 code to build shared libraries, but
6735 # adding the `-m68020' flag to GCC prevents building anything better,
6736 # like `-m68040'.
6737 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6738 ;;
6739 esac
drh71eb93e2001-09-28 01:34:43 +00006740 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006741
mlcreech636a9952008-05-05 22:52:56 +00006742 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006743 # PIC is the default for these OSes.
6744 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006745
vapier6acb2cf2009-01-28 04:46:28 +00006746 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006747 # This hack is so that the source file can tell whether it is being
6748 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00006749 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6750 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00006751 lt_prog_compiler_pic='-DDLL_EXPORT'
6752 ;;
6753
drh71eb93e2001-09-28 01:34:43 +00006754 darwin* | rhapsody*)
6755 # PIC is the default on this platform
6756 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006757 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006758 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006759
a.rottmann9bc8b932004-02-29 15:18:31 +00006760 hpux*)
vapier6acb2cf2009-01-28 04:46:28 +00006761 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6762 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6763 # sets the default TLS model and affects inlining.
vapier7f19c022007-02-17 14:46:31 +00006764 case $host_cpu in
vapier6acb2cf2009-01-28 04:46:28 +00006765 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006766 # +Z the default
6767 ;;
6768 *)
6769 lt_prog_compiler_pic='-fPIC'
6770 ;;
6771 esac
6772 ;;
6773
mlcreech636a9952008-05-05 22:52:56 +00006774 interix[3-9]*)
6775 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6776 # Instead, we relocate shared libraries at runtime.
6777 ;;
6778
6779 msdosdjgpp*)
6780 # Just because we use GCC doesn't mean we suddenly get shared libraries
6781 # on systems that don't support them.
6782 lt_prog_compiler_can_build_shared=no
6783 enable_shared=no
6784 ;;
6785
6786 *nto* | *qnx*)
6787 # QNX uses GNU C++, but need to define -shared option too, otherwise
6788 # it will coredump.
6789 lt_prog_compiler_pic='-fPIC -shared'
6790 ;;
6791
6792 sysv4*MP*)
6793 if test -d /usr/nec; then
6794 lt_prog_compiler_pic=-Kconform_pic
6795 fi
6796 ;;
6797
drh71eb93e2001-09-28 01:34:43 +00006798 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006799 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006800 ;;
6801 esac
6802 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006803 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006804 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006805 aix*)
6806 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006807 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006808 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006809 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006810 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006811 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006812 fi
6813 ;;
6814
vapier6acb2cf2009-01-28 04:46:28 +00006815 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006816 # This hack is so that the source file can tell whether it is being
6817 # built for inclusion in a dll (and should export symbols for example).
6818 lt_prog_compiler_pic='-DDLL_EXPORT'
6819 ;;
6820
a.rottmann84e63352003-03-24 09:42:16 +00006821 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006822 lt_prog_compiler_wl='-Wl,'
6823 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6824 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006825 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006826 hppa*64*|ia64*)
6827 # +Z the default
6828 ;;
6829 *)
6830 lt_prog_compiler_pic='+Z'
6831 ;;
6832 esac
6833 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6834 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006835 ;;
6836
6837 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006838 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006839 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006840 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006841 ;;
6842
mlcreech636a9952008-05-05 22:52:56 +00006843 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00006844 case $cc_basename in
vapier6acb2cf2009-01-28 04:46:28 +00006845 # old Intel for x86_64 which still supported -KPIC.
6846 ecc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006847 lt_prog_compiler_wl='-Wl,'
6848 lt_prog_compiler_pic='-KPIC'
6849 lt_prog_compiler_static='-static'
6850 ;;
vapier6acb2cf2009-01-28 04:46:28 +00006851 # icc used to be incompatible with GCC.
6852 # ICC 10 doesn't accept -KPIC any more.
6853 icc* | ifort*)
6854 lt_prog_compiler_wl='-Wl,'
6855 lt_prog_compiler_pic='-fPIC'
6856 lt_prog_compiler_static='-static'
6857 ;;
6858 # Lahey Fortran 8.1.
6859 lf95*)
6860 lt_prog_compiler_wl='-Wl,'
6861 lt_prog_compiler_pic='--shared'
6862 lt_prog_compiler_static='--static'
6863 ;;
vapier7f19c022007-02-17 14:46:31 +00006864 pgcc* | pgf77* | pgf90* | pgf95*)
6865 # Portland Group compilers (*not* the Pentium gcc compiler,
6866 # which looks to be a dead project)
6867 lt_prog_compiler_wl='-Wl,'
6868 lt_prog_compiler_pic='-fpic'
6869 lt_prog_compiler_static='-Bstatic'
6870 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006871 ccc*)
6872 lt_prog_compiler_wl='-Wl,'
6873 # All Alpha code is PIC.
6874 lt_prog_compiler_static='-non_shared'
6875 ;;
mlcreech636a9952008-05-05 22:52:56 +00006876 xl*)
6877 # IBM XL C 8.0/Fortran 10.1 on PPC
6878 lt_prog_compiler_wl='-Wl,'
6879 lt_prog_compiler_pic='-qpic'
6880 lt_prog_compiler_static='-qstaticlink'
6881 ;;
6882 *)
6883 case `$CC -V 2>&1 | sed 5q` in
6884 *Sun\ C*)
6885 # Sun C 5.9
6886 lt_prog_compiler_pic='-KPIC'
6887 lt_prog_compiler_static='-Bstatic'
6888 lt_prog_compiler_wl='-Wl,'
6889 ;;
6890 *Sun\ F*)
6891 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6892 lt_prog_compiler_pic='-KPIC'
6893 lt_prog_compiler_static='-Bstatic'
6894 lt_prog_compiler_wl=''
6895 ;;
6896 esac
6897 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006898 esac
drh71eb93e2001-09-28 01:34:43 +00006899 ;;
6900
mlcreech636a9952008-05-05 22:52:56 +00006901 newsos6)
6902 lt_prog_compiler_pic='-KPIC'
6903 lt_prog_compiler_static='-Bstatic'
6904 ;;
6905
6906 *nto* | *qnx*)
6907 # QNX uses GNU C++, but need to define -shared option too, otherwise
6908 # it will coredump.
6909 lt_prog_compiler_pic='-fPIC -shared'
6910 ;;
6911
drh71eb93e2001-09-28 01:34:43 +00006912 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006913 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006914 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00006915 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006916 ;;
6917
mlcreech636a9952008-05-05 22:52:56 +00006918 rdos*)
6919 lt_prog_compiler_static='-non_shared'
6920 ;;
6921
drh71eb93e2001-09-28 01:34:43 +00006922 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006923 lt_prog_compiler_pic='-KPIC'
6924 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00006925 case $cc_basename in
6926 f77* | f90* | f95*)
6927 lt_prog_compiler_wl='-Qoption ld ';;
6928 *)
6929 lt_prog_compiler_wl='-Wl,';;
6930 esac
drh71eb93e2001-09-28 01:34:43 +00006931 ;;
6932
6933 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006934 lt_prog_compiler_wl='-Qoption ld '
6935 lt_prog_compiler_pic='-PIC'
6936 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006937 ;;
6938
vapier7f19c022007-02-17 14:46:31 +00006939 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006940 lt_prog_compiler_wl='-Wl,'
6941 lt_prog_compiler_pic='-KPIC'
6942 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006943 ;;
6944
6945 sysv4*MP*)
6946 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00006947 lt_prog_compiler_pic='-Kconform_pic'
6948 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006949 fi
6950 ;;
6951
vapier7f19c022007-02-17 14:46:31 +00006952 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6953 lt_prog_compiler_wl='-Wl,'
6954 lt_prog_compiler_pic='-KPIC'
6955 lt_prog_compiler_static='-Bstatic'
6956 ;;
6957
6958 unicos*)
6959 lt_prog_compiler_wl='-Wl,'
6960 lt_prog_compiler_can_build_shared=no
6961 ;;
6962
a.rottmann9bc8b932004-02-29 15:18:31 +00006963 uts4*)
6964 lt_prog_compiler_pic='-pic'
6965 lt_prog_compiler_static='-Bstatic'
6966 ;;
6967
drh71eb93e2001-09-28 01:34:43 +00006968 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006969 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006970 ;;
6971 esac
6972 fi
6973
mlcreech636a9952008-05-05 22:52:56 +00006974case $host_os in
6975 # For platforms which do not support PIC, -DPIC is meaningless:
6976 *djgpp*)
6977 lt_prog_compiler_pic=
6978 ;;
6979 *)
6980 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6981 ;;
6982esac
drhf922ca42015-05-14 15:39:18 +00006983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
drh8b727472009-01-19 18:18:40 +00006984$as_echo "$lt_prog_compiler_pic" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00006985
6986
6987
6988
6989
drh71eb93e2001-09-28 01:34:43 +00006990
a.rottmann9bc8b932004-02-29 15:18:31 +00006991#
6992# Check to make sure the PIC flag actually works.
6993#
6994if test -n "$lt_prog_compiler_pic"; then
drhf922ca42015-05-14 15:39:18 +00006995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
drh8b727472009-01-19 18:18:40 +00006996$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006997if ${lt_cv_prog_compiler_pic_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00006998 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00006999else
mlcreech636a9952008-05-05 22:52:56 +00007000 lt_cv_prog_compiler_pic_works=no
7001 ac_outfile=conftest.$ac_objext
7002 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007003 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7004 # Insert the option either (1) after the last *FLAGS variable, or
7005 # (2) before a word containing "conftest.", or (3) at the end.
7006 # Note that $ac_compile itself does not contain backslashes and begins
7007 # with a dollar sign (not a hyphen), so the echo should work correctly.
7008 # The option is referenced via a variable to avoid confusing sed.
7009 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007010 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007011 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7012 -e 's:$: $lt_compiler_flag:'`
drh748b8fd2018-05-25 19:22:47 +00007013 (eval echo "\"\$as_me:7013: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007014 (eval "$lt_compile" 2>conftest.err)
7015 ac_status=$?
7016 cat conftest.err >&5
drh748b8fd2018-05-25 19:22:47 +00007017 echo "$as_me:7017: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007018 if (exit $ac_status) && test -s "$ac_outfile"; then
7019 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00007020 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00007021 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007022 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7023 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007024 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007025 fi
7026 fi
mlcreech636a9952008-05-05 22:52:56 +00007027 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007028
a.rottmann9bc8b932004-02-29 15:18:31 +00007029fi
drhf922ca42015-05-14 15:39:18 +00007030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
drh8b727472009-01-19 18:18:40 +00007031$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007032
mlcreech636a9952008-05-05 22:52:56 +00007033if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007034 case $lt_prog_compiler_pic in
7035 "" | " "*) ;;
7036 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7037 esac
drh71eb93e2001-09-28 01:34:43 +00007038else
a.rottmann9bc8b932004-02-29 15:18:31 +00007039 lt_prog_compiler_pic=
7040 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00007041fi
7042
a.rottmann84e63352003-03-24 09:42:16 +00007043fi
mlcreech636a9952008-05-05 22:52:56 +00007044
7045
7046
7047
7048
a.rottmann84e63352003-03-24 09:42:16 +00007049
vapier7f19c022007-02-17 14:46:31 +00007050#
7051# Check to make sure the static flag actually works.
7052#
7053wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00007054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
drh8b727472009-01-19 18:18:40 +00007055$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007056if ${lt_cv_prog_compiler_static_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00007057 $as_echo_n "(cached) " >&6
vapier7f19c022007-02-17 14:46:31 +00007058else
mlcreech636a9952008-05-05 22:52:56 +00007059 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00007060 save_LDFLAGS="$LDFLAGS"
7061 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00007062 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00007063 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7064 # The linker can only warn and ignore the option if not recognized
7065 # So say no if there are warnings
7066 if test -s conftest.err; then
7067 # Append any errors to the config.log.
7068 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00007069 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007070 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7071 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007072 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007073 fi
7074 else
mlcreech636a9952008-05-05 22:52:56 +00007075 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007076 fi
7077 fi
mlcreech636a9952008-05-05 22:52:56 +00007078 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00007079 LDFLAGS="$save_LDFLAGS"
7080
7081fi
drhf922ca42015-05-14 15:39:18 +00007082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
drh8b727472009-01-19 18:18:40 +00007083$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00007084
mlcreech636a9952008-05-05 22:52:56 +00007085if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00007086 :
7087else
7088 lt_prog_compiler_static=
7089fi
7090
7091
mlcreech636a9952008-05-05 22:52:56 +00007092
7093
7094
7095
7096
drhf922ca42015-05-14 15:39:18 +00007097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007098$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007099if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007100 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007101else
a.rottmann9bc8b932004-02-29 15:18:31 +00007102 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00007103 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007104 mkdir conftest
7105 cd conftest
7106 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00007107 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007108
a.rottmann9bc8b932004-02-29 15:18:31 +00007109 lt_compiler_flag="-o out/conftest2.$ac_objext"
7110 # Insert the option either (1) after the last *FLAGS variable, or
7111 # (2) before a word containing "conftest.", or (3) at the end.
7112 # Note that $ac_compile itself does not contain backslashes and begins
7113 # with a dollar sign (not a hyphen), so the echo should work correctly.
7114 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007115 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007116 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7117 -e 's:$: $lt_compiler_flag:'`
drh748b8fd2018-05-25 19:22:47 +00007118 (eval echo "\"\$as_me:7118: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007119 (eval "$lt_compile" 2>out/conftest.err)
7120 ac_status=$?
7121 cat out/conftest.err >&5
drh748b8fd2018-05-25 19:22:47 +00007122 echo "$as_me:7122: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007123 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7124 then
7125 # The compiler can only warn and ignore the option if not recognized
7126 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00007127 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007128 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7129 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007130 lt_cv_prog_compiler_c_o=yes
7131 fi
7132 fi
vapier7f19c022007-02-17 14:46:31 +00007133 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00007134 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00007135 # SGI C++ compiler will create directory out/ii_files/ for
7136 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00007137 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7138 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00007139 cd ..
mlcreech636a9952008-05-05 22:52:56 +00007140 $RM -r conftest
7141 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007142
7143fi
drhf922ca42015-05-14 15:39:18 +00007144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007145$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007146
7147
7148
7149
7150
7151
drhf922ca42015-05-14 15:39:18 +00007152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007153$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007154if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007155 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00007156else
7157 lt_cv_prog_compiler_c_o=no
7158 $RM -r conftest 2>/dev/null
7159 mkdir conftest
7160 cd conftest
7161 mkdir out
7162 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7163
7164 lt_compiler_flag="-o out/conftest2.$ac_objext"
7165 # Insert the option either (1) after the last *FLAGS variable, or
7166 # (2) before a word containing "conftest.", or (3) at the end.
7167 # Note that $ac_compile itself does not contain backslashes and begins
7168 # with a dollar sign (not a hyphen), so the echo should work correctly.
7169 lt_compile=`echo "$ac_compile" | $SED \
7170 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7172 -e 's:$: $lt_compiler_flag:'`
drh748b8fd2018-05-25 19:22:47 +00007173 (eval echo "\"\$as_me:7173: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00007174 (eval "$lt_compile" 2>out/conftest.err)
7175 ac_status=$?
7176 cat out/conftest.err >&5
drh748b8fd2018-05-25 19:22:47 +00007177 echo "$as_me:7177: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00007178 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7179 then
7180 # The compiler can only warn and ignore the option if not recognized
7181 # So say no if there are warnings
7182 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7183 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7184 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7185 lt_cv_prog_compiler_c_o=yes
7186 fi
7187 fi
7188 chmod u+w . 2>&5
7189 $RM conftest*
7190 # SGI C++ compiler will create directory out/ii_files/ for
7191 # template instantiation
7192 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7193 $RM out/* && rmdir out
7194 cd ..
7195 $RM -r conftest
7196 $RM conftest*
7197
7198fi
drhf922ca42015-05-14 15:39:18 +00007199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007200$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007201
7202
drh71eb93e2001-09-28 01:34:43 +00007203
a.rottmann84e63352003-03-24 09:42:16 +00007204
drh71eb93e2001-09-28 01:34:43 +00007205hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00007206if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00007207 # do not overwrite the value of need_locks provided by the user
drhf922ca42015-05-14 15:39:18 +00007208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
drh8b727472009-01-19 18:18:40 +00007209$as_echo_n "checking if we can lock with hard links... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00007210 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00007211 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007212 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7213 touch conftest.a
7214 ln conftest.a conftest.b 2>&5 || hard_links=no
7215 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drhf922ca42015-05-14 15:39:18 +00007216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
drh8b727472009-01-19 18:18:40 +00007217$as_echo "$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007218 if test "$hard_links" = no; then
drhf922ca42015-05-14 15:39:18 +00007219 { $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 +00007220$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00007221 need_locks=warn
7222 fi
7223else
7224 need_locks=no
7225fi
7226
mlcreech636a9952008-05-05 22:52:56 +00007227
7228
7229
7230
7231
drhf922ca42015-05-14 15:39:18 +00007232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00007233$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007234
7235 runpath_var=
7236 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007237 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007238 archive_cmds=
7239 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007240 compiler_needs_object=no
7241 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007242 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00007243 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7244 hardcode_automatic=no
7245 hardcode_direct=no
7246 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007247 hardcode_libdir_flag_spec=
7248 hardcode_libdir_flag_spec_ld=
7249 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007250 hardcode_minus_L=no
7251 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007252 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007253 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00007254 module_cmds=
7255 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007256 old_archive_from_new_cmds=
7257 old_archive_from_expsyms_cmds=
7258 thread_safe_flag_spec=
7259 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007260 # include_expsyms should be a list of space-separated symbols to be *always*
7261 # included in the symbol list
7262 include_expsyms=
7263 # exclude_expsyms can be an extended regexp of symbols to exclude
7264 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7265 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7266 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00007267 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00007268 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7269 # platforms (ab)use it in PIC code, but their linkers get confused if
7270 # the symbol is explicitly referenced. Since portable code cannot
7271 # rely on this symbol name, it's probably fine to never include it in
7272 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00007273 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00007274 extract_expsyms_cmds=
7275
7276 case $host_os in
vapier6acb2cf2009-01-28 04:46:28 +00007277 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007278 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7279 # When not using gcc, we currently assume that we are using
7280 # Microsoft Visual C++.
7281 if test "$GCC" != yes; then
7282 with_gnu_ld=no
7283 fi
7284 ;;
vapier7f19c022007-02-17 14:46:31 +00007285 interix*)
7286 # we just hope/assume this is gcc and not c89 (= MSVC++)
7287 with_gnu_ld=yes
7288 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007289 openbsd*)
7290 with_gnu_ld=no
7291 ;;
7292 esac
7293
7294 ld_shlibs=yes
7295 if test "$with_gnu_ld" = yes; then
7296 # If archive_cmds runs LD, not CC, wlarc should be empty
7297 wlarc='${wl}'
7298
vapier7f19c022007-02-17 14:46:31 +00007299 # Set some defaults for GNU ld with shared library support. These
7300 # are reset later if shared libraries are not supported. Putting them
7301 # here allows them to be overridden if necessary.
7302 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00007303 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00007304 export_dynamic_flag_spec='${wl}--export-dynamic'
7305 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00007306 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7307 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7308 else
7309 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00007310 fi
7311 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00007312 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00007313 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7314 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7315 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7316 *\ 2.11.*) ;; # other 2.11 versions
7317 *) supports_anon_versioning=yes ;;
7318 esac
7319
a.rottmann9bc8b932004-02-29 15:18:31 +00007320 # See if GNU ld supports shared libraries.
7321 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007322 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007323 # On AIX/PPC, the GNU linker is very broken
7324 if test "$host_cpu" != ia64; then
7325 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007326 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007327
7328*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7329*** to be unable to reliably create shared libraries on AIX.
7330*** Therefore, libtool is disabling shared libraries support. If you
7331*** really care for shared libraries, you may want to modify your PATH
7332*** so that a non-GNU linker is found, and then restart.
7333
mlcreech636a9952008-05-05 22:52:56 +00007334_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007335 fi
7336 ;;
7337
7338 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007339 case $host_cpu in
7340 powerpc)
7341 # see comment about AmigaOS4 .so support
7342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7343 archive_expsym_cmds=''
7344 ;;
7345 m68k)
7346 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)'
7347 hardcode_libdir_flag_spec='-L$libdir'
7348 hardcode_minus_L=yes
7349 ;;
7350 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007351 ;;
7352
7353 beos*)
mlcreech636a9952008-05-05 22:52:56 +00007354 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007355 allow_undefined_flag=unsupported
7356 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7357 # support --undefined. This deserves some investigation. FIXME
7358 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7359 else
7360 ld_shlibs=no
7361 fi
7362 ;;
7363
vapier6acb2cf2009-01-28 04:46:28 +00007364 cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00007365 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00007366 # as there is no search path for DLLs.
7367 hardcode_libdir_flag_spec='-L$libdir'
7368 allow_undefined_flag=unsupported
7369 always_export_symbols=no
7370 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00007371 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 +00007372
mlcreech636a9952008-05-05 22:52:56 +00007373 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00007374 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 +00007375 # If the export-symbols file already is a .def file (1st line
7376 # is EXPORTS), use it as is; otherwise, prepend...
7377 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7378 cp $export_symbols $output_objdir/$soname.def;
7379 else
7380 echo EXPORTS > $output_objdir/$soname.def;
7381 cat $export_symbols >> $output_objdir/$soname.def;
7382 fi~
vapier7f19c022007-02-17 14:46:31 +00007383 $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 +00007384 else
7385 ld_shlibs=no
7386 fi
7387 ;;
7388
mlcreech636a9952008-05-05 22:52:56 +00007389 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007390 hardcode_direct=no
7391 hardcode_shlibpath_var=no
7392 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7393 export_dynamic_flag_spec='${wl}-E'
7394 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7395 # Instead, shared libraries are loaded at an image base (0x10000000 by
7396 # default) and relocated if they conflict, which is a slow very memory
7397 # consuming and fragmenting process. To avoid this, we pick a random,
7398 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7399 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7400 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7401 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'
7402 ;;
7403
mlcreech636a9952008-05-05 22:52:56 +00007404 gnu* | linux* | tpf* | k*bsd*-gnu)
7405 tmp_diet=no
7406 if test "$host_os" = linux-dietlibc; then
7407 case $cc_basename in
7408 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7409 esac
7410 fi
7411 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7412 && test "$tmp_diet" = no
7413 then
vapier7f19c022007-02-17 14:46:31 +00007414 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00007415 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007416 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00007417 pgcc*) # Portland Group C compiler
7418 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 +00007419 tmp_addflag=' $pic_flag'
7420 ;;
7421 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00007422 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 +00007423 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00007424 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00007425 tmp_addflag=' -i_dynamic' ;;
7426 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7427 tmp_addflag=' -i_dynamic -nofor_main' ;;
7428 ifc* | ifort*) # Intel Fortran compiler
7429 tmp_addflag=' -nofor_main' ;;
vapier6acb2cf2009-01-28 04:46:28 +00007430 lf95*) # Lahey Fortran 8.1
7431 whole_archive_flag_spec=
7432 tmp_sharedflag='--shared' ;;
mlcreech636a9952008-05-05 22:52:56 +00007433 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7434 tmp_sharedflag='-qmkshrobj'
7435 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00007436 esac
mlcreech636a9952008-05-05 22:52:56 +00007437 case `$CC -V 2>&1 | sed 5q` in
7438 *Sun\ C*) # Sun C 5.9
7439 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'
7440 compiler_needs_object=yes
7441 tmp_sharedflag='-G' ;;
7442 *Sun\ F*) # Sun Fortran 8.3
7443 tmp_sharedflag='-G' ;;
7444 esac
7445 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007446
mlcreech636a9952008-05-05 22:52:56 +00007447 if test "x$supports_anon_versioning" = xyes; then
7448 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7449 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7450 echo "local: *; };" >> $output_objdir/$libname.ver~
7451 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7452 fi
7453
7454 case $cc_basename in
7455 xlf*)
7456 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7457 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7458 hardcode_libdir_flag_spec=
7459 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7460 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7461 if test "x$supports_anon_versioning" = xyes; then
7462 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7463 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7464 echo "local: *; };" >> $output_objdir/$libname.ver~
7465 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7466 fi
7467 ;;
7468 esac
vapier7f19c022007-02-17 14:46:31 +00007469 else
mlcreech636a9952008-05-05 22:52:56 +00007470 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00007471 fi
7472 ;;
7473
7474 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007475 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007476 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7477 wlarc=
7478 else
7479 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7480 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7481 fi
7482 ;;
7483
vapier7f19c022007-02-17 14:46:31 +00007484 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007485 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007486 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007487 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007488
7489*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7490*** create shared libraries on Solaris systems. Therefore, libtool
7491*** is disabling shared libraries support. We urge you to upgrade GNU
7492*** binutils to release 2.9.1 or newer. Another option is to modify
7493*** your PATH or compiler configuration so that the native linker is
7494*** used, and then restart.
7495
mlcreech636a9952008-05-05 22:52:56 +00007496_LT_EOF
7497 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7499 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7500 else
7501 ld_shlibs=no
7502 fi
7503 ;;
7504
vapier7f19c022007-02-17 14:46:31 +00007505 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7506 case `$LD -v 2>&1` in
7507 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7508 ld_shlibs=no
7509 cat <<_LT_EOF 1>&2
7510
7511*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7512*** reliably create shared libraries on SCO systems. Therefore, libtool
7513*** is disabling shared libraries support. We urge you to upgrade GNU
7514*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7515*** your PATH or compiler configuration so that the native linker is
7516*** used, and then restart.
7517
7518_LT_EOF
7519 ;;
7520 *)
mlcreech636a9952008-05-05 22:52:56 +00007521 # For security reasons, it is highly recommended that you always
7522 # use absolute paths for naming shared libraries, and exclude the
7523 # DT_RUNPATH tag from executables and libraries. But doing so
7524 # requires that you compile everything twice, which is a pain.
7525 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7526 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7527 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7528 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 +00007529 else
7530 ld_shlibs=no
7531 fi
7532 ;;
7533 esac
7534 ;;
7535
a.rottmann9bc8b932004-02-29 15:18:31 +00007536 sunos4*)
7537 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7538 wlarc=
7539 hardcode_direct=yes
7540 hardcode_shlibpath_var=no
7541 ;;
7542
a.rottmann9bc8b932004-02-29 15:18:31 +00007543 *)
mlcreech636a9952008-05-05 22:52:56 +00007544 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007545 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7546 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7547 else
7548 ld_shlibs=no
7549 fi
7550 ;;
7551 esac
7552
vapier7f19c022007-02-17 14:46:31 +00007553 if test "$ld_shlibs" = no; then
7554 runpath_var=
7555 hardcode_libdir_flag_spec=
7556 export_dynamic_flag_spec=
7557 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007558 fi
7559 else
7560 # PORTME fill in a description of your system's linker (not GNU ld)
7561 case $host_os in
7562 aix3*)
7563 allow_undefined_flag=unsupported
7564 always_export_symbols=yes
7565 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'
7566 # Note: this linker hardcodes the directories in LIBPATH if there
7567 # are no directories specified by -L.
7568 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007569 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007570 # Neither direct hardcoding nor static linking is supported with a
7571 # broken collect2.
7572 hardcode_direct=unsupported
7573 fi
7574 ;;
7575
mlcreech636a9952008-05-05 22:52:56 +00007576 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007577 if test "$host_cpu" = ia64; then
7578 # On IA64, the linker does run time linking by default, so we don't
7579 # have to do anything special.
7580 aix_use_runtimelinking=no
7581 exp_sym_flag='-Bexport'
7582 no_entry_flag=""
7583 else
7584 # If we're using GNU nm, then we don't want the "-C" option.
7585 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00007586 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7587 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 +00007588 else
mlcreech636a9952008-05-05 22:52:56 +00007589 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 +00007590 fi
7591 aix_use_runtimelinking=no
7592
7593 # Test if we are trying to use run time linking or normal
7594 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7595 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00007596 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007597 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00007598 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7599 aix_use_runtimelinking=yes
7600 break
7601 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007602 done
vapier7f19c022007-02-17 14:46:31 +00007603 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007604 esac
7605
7606 exp_sym_flag='-bexport'
7607 no_entry_flag='-bnoentry'
7608 fi
7609
7610 # When large executables or shared objects are built, AIX ld can
7611 # have problems creating the table of contents. If linking a library
7612 # or program results in "error TOC overflow" add -mminimal-toc to
7613 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7614 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7615
7616 archive_cmds=''
7617 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007618 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007619 hardcode_libdir_separator=':'
7620 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00007621 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00007622
7623 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007624 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007625 # We only want to do this on AIX 4.2 and lower, the check
7626 # below for broken collect2 doesn't work under 4.3+
7627 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00007628 if test -f "$collect2name" &&
7629 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007630 then
mlcreech636a9952008-05-05 22:52:56 +00007631 # We have reworked collect2
7632 :
a.rottmann9bc8b932004-02-29 15:18:31 +00007633 else
mlcreech636a9952008-05-05 22:52:56 +00007634 # We have old collect2
7635 hardcode_direct=unsupported
7636 # It fails to find uninstalled libraries when the uninstalled
7637 # path is not listed in the libpath. Setting hardcode_minus_L
7638 # to unsupported forces relinking
7639 hardcode_minus_L=yes
7640 hardcode_libdir_flag_spec='-L$libdir'
7641 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007642 fi
vapier7f19c022007-02-17 14:46:31 +00007643 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007644 esac
7645 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007646 if test "$aix_use_runtimelinking" = yes; then
7647 shared_flag="$shared_flag "'${wl}-G'
7648 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007649 else
7650 # not using gcc
7651 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00007652 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7653 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00007654 shared_flag='-G'
7655 else
vapier7f19c022007-02-17 14:46:31 +00007656 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007657 shared_flag='${wl}-G'
7658 else
7659 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007660 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007661 fi
7662 fi
7663
vapier6acb2cf2009-01-28 04:46:28 +00007664 export_dynamic_flag_spec='${wl}-bexpall'
a.rottmann9bc8b932004-02-29 15:18:31 +00007665 # It seems that -bexpall does not export symbols beginning with
7666 # underscore (_), so it is better to generate a list of symbols to export.
7667 always_export_symbols=yes
7668 if test "$aix_use_runtimelinking" = yes; then
7669 # Warning - without using the other runtime loading flags (-brtl),
7670 # -berok will link without error, but may produce a broken library.
7671 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00007672 # Determine the default libpath from the value encoded in an
7673 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007675/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007676
a.rottmann84e63352003-03-24 09:42:16 +00007677int
7678main ()
7679{
a.rottmann9bc8b932004-02-29 15:18:31 +00007680
a.rottmann84e63352003-03-24 09:42:16 +00007681 ;
7682 return 0;
7683}
7684_ACEOF
drhf922ca42015-05-14 15:39:18 +00007685if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007686
mlcreech636a9952008-05-05 22:52:56 +00007687lt_aix_libpath_sed='
7688 /Import File Strings/,/^$/ {
7689 /^0/ {
7690 s/^0 *\(.*\)$/\1/
7691 p
7692 }
7693 }'
7694aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007695# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007696if test -z "$aix_libpath"; then
7697 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7698fi
a.rottmann84e63352003-03-24 09:42:16 +00007699fi
drhf922ca42015-05-14 15:39:18 +00007700rm -f core conftest.err conftest.$ac_objext \
7701 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007702if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007703
mlcreech636a9952008-05-05 22:52:56 +00007704 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7705 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"
7706 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007707 if test "$host_cpu" = ia64; then
7708 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7709 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007710 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 +00007711 else
mlcreech636a9952008-05-05 22:52:56 +00007712 # Determine the default libpath from the value encoded in an
7713 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007715/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007716
a.rottmann9bc8b932004-02-29 15:18:31 +00007717int
7718main ()
7719{
a.rottmann84e63352003-03-24 09:42:16 +00007720
a.rottmann9bc8b932004-02-29 15:18:31 +00007721 ;
7722 return 0;
7723}
7724_ACEOF
drhf922ca42015-05-14 15:39:18 +00007725if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007726
mlcreech636a9952008-05-05 22:52:56 +00007727lt_aix_libpath_sed='
7728 /Import File Strings/,/^$/ {
7729 /^0/ {
7730 s/^0 *\(.*\)$/\1/
7731 p
7732 }
7733 }'
7734aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007735# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007736if test -z "$aix_libpath"; then
7737 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7738fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007739fi
drhf922ca42015-05-14 15:39:18 +00007740rm -f core conftest.err conftest.$ac_objext \
7741 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007742if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007743
a.rottmann9bc8b932004-02-29 15:18:31 +00007744 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7745 # Warning - without using the other run time loading flags,
7746 # -berok will link without error, but may produce a broken library.
7747 no_undefined_flag=' ${wl}-bernotok'
7748 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007749 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007750 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007751 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007752 # This is similar to how AIX traditionally builds its shared libraries.
7753 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 +00007754 fi
7755 fi
a.rottmann84e63352003-03-24 09:42:16 +00007756 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007757
7758 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007759 case $host_cpu in
7760 powerpc)
7761 # see comment about AmigaOS4 .so support
7762 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7763 archive_expsym_cmds=''
7764 ;;
7765 m68k)
7766 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)'
7767 hardcode_libdir_flag_spec='-L$libdir'
7768 hardcode_minus_L=yes
7769 ;;
7770 esac
a.rottmann84e63352003-03-24 09:42:16 +00007771 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007772
vapier7f19c022007-02-17 14:46:31 +00007773 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007774 export_dynamic_flag_spec=-rdynamic
7775 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007776
vapier6acb2cf2009-01-28 04:46:28 +00007777 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007778 # When not using gcc, we currently assume that we are using
7779 # Microsoft Visual C++.
7780 # hardcode_libdir_flag_spec is actually meaningless, as there is
7781 # no search path for DLLs.
7782 hardcode_libdir_flag_spec=' '
7783 allow_undefined_flag=unsupported
7784 # Tell ltmain to make .lib files, not .a files.
7785 libext=lib
7786 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00007787 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00007788 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00007789 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 +00007790 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00007791 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00007792 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00007793 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00007794 fix_srcfile_path='`cygpath -w "$srcfile"`'
7795 enable_shared_with_static_runtimes=yes
7796 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007797
a.rottmann9bc8b932004-02-29 15:18:31 +00007798 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00007799
7800
7801 archive_cmds_need_lc=no
7802 hardcode_direct=no
7803 hardcode_automatic=yes
7804 hardcode_shlibpath_var=unsupported
7805 whole_archive_flag_spec=''
7806 link_all_deplibs=yes
7807 allow_undefined_flag="$_lt_dar_allow_undefined"
vapier6acb2cf2009-01-28 04:46:28 +00007808 case $cc_basename in
7809 ifort*) _lt_dar_can_shared=yes ;;
7810 *) _lt_dar_can_shared=$GCC ;;
7811 esac
7812 if test "$_lt_dar_can_shared" = "yes"; then
mlcreech636a9952008-05-05 22:52:56 +00007813 output_verbose_link_cmd=echo
7814 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7815 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7816 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}"
7817 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}"
7818
7819 else
7820 ld_shlibs=no
7821 fi
7822
a.rottmann9bc8b932004-02-29 15:18:31 +00007823 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007824
a.rottmann9bc8b932004-02-29 15:18:31 +00007825 dgux*)
7826 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7827 hardcode_libdir_flag_spec='-L$libdir'
7828 hardcode_shlibpath_var=no
7829 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007830
a.rottmann9bc8b932004-02-29 15:18:31 +00007831 freebsd1*)
7832 ld_shlibs=no
7833 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007834
a.rottmann9bc8b932004-02-29 15:18:31 +00007835 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7836 # support. Future versions do this automatically, but an explicit c++rt0.o
7837 # does not break anything, and helps significantly (at the cost of a little
7838 # extra space).
7839 freebsd2.2*)
7840 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7841 hardcode_libdir_flag_spec='-R$libdir'
7842 hardcode_direct=yes
7843 hardcode_shlibpath_var=no
7844 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007845
a.rottmann9bc8b932004-02-29 15:18:31 +00007846 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7847 freebsd2*)
7848 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7849 hardcode_direct=yes
7850 hardcode_minus_L=yes
7851 hardcode_shlibpath_var=no
7852 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007853
a.rottmann9bc8b932004-02-29 15:18:31 +00007854 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00007855 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007856 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7857 hardcode_libdir_flag_spec='-R$libdir'
7858 hardcode_direct=yes
7859 hardcode_shlibpath_var=no
7860 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007861
a.rottmann9bc8b932004-02-29 15:18:31 +00007862 hpux9*)
7863 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007864 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 +00007865 else
mlcreech636a9952008-05-05 22:52:56 +00007866 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 +00007867 fi
7868 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7869 hardcode_libdir_separator=:
7870 hardcode_direct=yes
7871
7872 # hardcode_minus_L: Not really in the search PATH,
7873 # but as the default location of the library.
7874 hardcode_minus_L=yes
7875 export_dynamic_flag_spec='${wl}-E'
7876 ;;
7877
vapier7f19c022007-02-17 14:46:31 +00007878 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007879 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007880 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7881 else
7882 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7883 fi
7884 if test "$with_gnu_ld" = no; then
7885 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00007886 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00007887 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00007888 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007889 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00007890 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00007891 # hardcode_minus_L: Not really in the search PATH,
7892 # but as the default location of the library.
7893 hardcode_minus_L=yes
7894 fi
7895 ;;
7896
7897 hpux11*)
7898 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7899 case $host_cpu in
7900 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007901 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7902 ;;
vapier7f19c022007-02-17 14:46:31 +00007903 ia64*)
vapier6acb2cf2009-01-28 04:46:28 +00007904 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00007905 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007906 *)
7907 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7908 ;;
7909 esac
7910 else
vapier7f19c022007-02-17 14:46:31 +00007911 case $host_cpu in
7912 hppa*64*)
7913 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7914 ;;
7915 ia64*)
7916 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007917 ;;
7918 *)
vapier7f19c022007-02-17 14:46:31 +00007919 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 +00007920 ;;
7921 esac
7922 fi
7923 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007924 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7925 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00007926
vapier7f19c022007-02-17 14:46:31 +00007927 case $host_cpu in
7928 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00007929 hardcode_direct=no
7930 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007931 ;;
7932 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007933 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007934 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007935 export_dynamic_flag_spec='${wl}-E'
7936
7937 # hardcode_minus_L: Not really in the search PATH,
7938 # but as the default location of the library.
7939 hardcode_minus_L=yes
7940 ;;
7941 esac
7942 fi
7943 ;;
7944
7945 irix5* | irix6* | nonstopux*)
7946 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007947 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'
7948 # Try to use the -exported_symbol ld option, if it does not
7949 # work, assume that -exports_file does not work either and
7950 # implicitly export all symbols.
7951 save_LDFLAGS="$LDFLAGS"
7952 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
drhf922ca42015-05-14 15:39:18 +00007953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7954/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +00007955int foo(void) {}
7956_ACEOF
drhf922ca42015-05-14 15:39:18 +00007957if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00007958 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'
7959
mlcreech636a9952008-05-05 22:52:56 +00007960fi
drhf922ca42015-05-14 15:39:18 +00007961rm -f core conftest.err conftest.$ac_objext \
7962 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00007963 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00007964 else
mlcreech636a9952008-05-05 22:52:56 +00007965 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'
7966 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 +00007967 fi
mlcreech636a9952008-05-05 22:52:56 +00007968 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00007969 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7970 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00007971 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007972 link_all_deplibs=yes
7973 ;;
7974
vapier7f19c022007-02-17 14:46:31 +00007975 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007976 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007977 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7978 else
7979 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7980 fi
7981 hardcode_libdir_flag_spec='-R$libdir'
7982 hardcode_direct=yes
7983 hardcode_shlibpath_var=no
7984 ;;
7985
7986 newsos6)
7987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7988 hardcode_direct=yes
7989 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7990 hardcode_libdir_separator=:
7991 hardcode_shlibpath_var=no
7992 ;;
7993
mlcreech636a9952008-05-05 22:52:56 +00007994 *nto* | *qnx*)
7995 ;;
7996
a.rottmann9bc8b932004-02-29 15:18:31 +00007997 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007998 if test -f /usr/libexec/ld.so; then
7999 hardcode_direct=yes
8000 hardcode_shlibpath_var=no
8001 hardcode_direct_absolute=yes
8002 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8003 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8004 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8005 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8006 export_dynamic_flag_spec='${wl}-E'
8007 else
8008 case $host_os in
8009 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8010 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8011 hardcode_libdir_flag_spec='-R$libdir'
8012 ;;
8013 *)
8014 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8015 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8016 ;;
8017 esac
8018 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008019 else
mlcreech636a9952008-05-05 22:52:56 +00008020 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008021 fi
8022 ;;
8023
8024 os2*)
8025 hardcode_libdir_flag_spec='-L$libdir'
8026 hardcode_minus_L=yes
8027 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00008028 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'
8029 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00008030 ;;
8031
8032 osf3*)
8033 if test "$GCC" = yes; then
8034 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008035 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 +00008036 else
8037 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008038 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 +00008039 fi
mlcreech636a9952008-05-05 22:52:56 +00008040 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008041 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8042 hardcode_libdir_separator=:
8043 ;;
8044
8045 osf4* | osf5*) # as osf3* with the addition of -msym flag
8046 if test "$GCC" = yes; then
8047 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008048 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 +00008049 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8050 else
8051 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008052 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'
8053 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~
8054 $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 +00008055
8056 # Both c and cxx compiler support -rpath directly
8057 hardcode_libdir_flag_spec='-rpath $libdir'
8058 fi
mlcreech636a9952008-05-05 22:52:56 +00008059 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008060 hardcode_libdir_separator=:
8061 ;;
8062
a.rottmann9bc8b932004-02-29 15:18:31 +00008063 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00008064 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008065 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008066 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00008067 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8068 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8069 $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 +00008070 else
mlcreech636a9952008-05-05 22:52:56 +00008071 case `$CC -V 2>&1` in
8072 *"Compilers 5.0"*)
8073 wlarc=''
8074 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8075 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8076 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8077 ;;
8078 *)
8079 wlarc='${wl}'
8080 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8081 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8082 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8083 ;;
8084 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008085 fi
8086 hardcode_libdir_flag_spec='-R$libdir'
8087 hardcode_shlibpath_var=no
8088 case $host_os in
8089 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00008090 *)
mlcreech636a9952008-05-05 22:52:56 +00008091 # The compiler driver will combine and reorder linker options,
8092 # but understands `-z linker_flag'. GCC discards it without `$wl',
8093 # but is careful enough not to reorder.
8094 # Supported since Solaris 2.6 (maybe 2.5.1?)
8095 if test "$GCC" = yes; then
8096 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8097 else
8098 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8099 fi
8100 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008101 esac
8102 link_all_deplibs=yes
8103 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008104
a.rottmann9bc8b932004-02-29 15:18:31 +00008105 sunos4*)
8106 if test "x$host_vendor" = xsequent; then
8107 # Use $CC to link under sequent, because it throws in some extra .o
8108 # files that make .init and .fini sections work.
8109 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8110 else
8111 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8112 fi
8113 hardcode_libdir_flag_spec='-L$libdir'
8114 hardcode_direct=yes
8115 hardcode_minus_L=yes
8116 hardcode_shlibpath_var=no
8117 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008118
a.rottmann9bc8b932004-02-29 15:18:31 +00008119 sysv4)
8120 case $host_vendor in
8121 sni)
8122 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8123 hardcode_direct=yes # is this really true???
8124 ;;
8125 siemens)
8126 ## LD is ld it makes a PLAMLIB
8127 ## CC just makes a GrossModule.
8128 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8129 reload_cmds='$CC -r -o $output$reload_objs'
8130 hardcode_direct=no
8131 ;;
8132 motorola)
8133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8134 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8135 ;;
8136 esac
8137 runpath_var='LD_RUN_PATH'
8138 hardcode_shlibpath_var=no
8139 ;;
8140
8141 sysv4.3*)
8142 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8143 hardcode_shlibpath_var=no
8144 export_dynamic_flag_spec='-Bexport'
8145 ;;
8146
8147 sysv4*MP*)
8148 if test -d /usr/nec; then
8149 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8150 hardcode_shlibpath_var=no
8151 runpath_var=LD_RUN_PATH
8152 hardcode_runpath_var=yes
8153 ld_shlibs=yes
8154 fi
8155 ;;
8156
mlcreech636a9952008-05-05 22:52:56 +00008157 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00008158 no_undefined_flag='${wl}-z,text'
8159 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008160 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00008161 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00008162
a.rottmann9bc8b932004-02-29 15:18:31 +00008163 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008164 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8165 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 +00008166 else
vapier7f19c022007-02-17 14:46:31 +00008167 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8168 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 +00008169 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008170 ;;
8171
vapier7f19c022007-02-17 14:46:31 +00008172 sysv5* | sco3.2v5* | sco5v6*)
8173 # Note: We can NOT use -z defs as we might desire, because we do not
8174 # link with -lc, and that would cause any symbols used from libc to
8175 # always be unresolved, which means just about no library would
8176 # ever link correctly. If we're not using GNU ld we use -z text
8177 # though, which does catch some bad symbols but isn't as heavy-handed
8178 # as -z defs.
8179 no_undefined_flag='${wl}-z,text'
8180 allow_undefined_flag='${wl}-z,nodefs'
8181 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008182 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00008183 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00008184 hardcode_libdir_separator=':'
8185 link_all_deplibs=yes
8186 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00008187 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00008188
8189 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008190 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8191 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008192 else
mlcreech636a9952008-05-05 22:52:56 +00008193 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8194 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008195 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008196 ;;
8197
8198 uts4*)
8199 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8200 hardcode_libdir_flag_spec='-L$libdir'
8201 hardcode_shlibpath_var=no
8202 ;;
8203
8204 *)
8205 ld_shlibs=no
8206 ;;
8207 esac
mlcreech636a9952008-05-05 22:52:56 +00008208
8209 if test x$host_vendor = xsni; then
8210 case $host in
8211 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8212 export_dynamic_flag_spec='${wl}-Blargedynsym'
8213 ;;
8214 esac
8215 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008216 fi
8217
drhf922ca42015-05-14 15:39:18 +00008218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
drh8b727472009-01-19 18:18:40 +00008219$as_echo "$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008220test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00008221
mlcreech636a9952008-05-05 22:52:56 +00008222with_gnu_ld=$with_gnu_ld
8223
8224
danielk197733a14782008-08-04 14:50:05 +00008225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
a.rottmann9bc8b932004-02-29 15:18:31 +00008238#
8239# Do we need to explicitly link libc?
8240#
8241case "x$archive_cmds_need_lc" in
8242x|xyes)
8243 # Assume -lc should be added
8244 archive_cmds_need_lc=yes
8245
8246 if test "$enable_shared" = yes && test "$GCC" = yes; then
8247 case $archive_cmds in
8248 *'~'*)
8249 # FIXME: we may have to deal with multi-command sequences.
8250 ;;
8251 '$CC '*)
8252 # Test whether the compiler implicitly links with -lc since on some
8253 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8254 # to ld, don't add -lc before -lgcc.
drhf922ca42015-05-14 15:39:18 +00008255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
drh8b727472009-01-19 18:18:40 +00008256$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008257 $RM conftest*
8258 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00008259
drhf922ca42015-05-14 15:39:18 +00008260 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008261 (eval $ac_compile) 2>&5
8262 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8264 test $ac_status = 0; } 2>conftest.err; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008265 soname=conftest
8266 lib=conftest
8267 libobjs=conftest.$ac_objext
8268 deplibs=
8269 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00008270 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00008271 compiler_flags=-v
8272 linker_flags=-v
8273 verstring=
8274 output_objdir=.
8275 libname=conftest
8276 lt_save_allow_undefined_flag=$allow_undefined_flag
8277 allow_undefined_flag=
drhf922ca42015-05-14 15:39:18 +00008278 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 +00008279 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008280 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8282 test $ac_status = 0; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008283 then
8284 archive_cmds_need_lc=no
8285 else
8286 archive_cmds_need_lc=yes
8287 fi
8288 allow_undefined_flag=$lt_save_allow_undefined_flag
8289 else
8290 cat conftest.err 1>&5
8291 fi
mlcreech636a9952008-05-05 22:52:56 +00008292 $RM conftest*
drhf922ca42015-05-14 15:39:18 +00008293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
drh8b727472009-01-19 18:18:40 +00008294$as_echo "$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008295 ;;
8296 esac
drh71eb93e2001-09-28 01:34:43 +00008297 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008298 ;;
8299esac
drh71eb93e2001-09-28 01:34:43 +00008300
mlcreech636a9952008-05-05 22:52:56 +00008301
danielk197733a14782008-08-04 14:50:05 +00008302
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
8455
8456
drhf922ca42015-05-14 15:39:18 +00008457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
drh8b727472009-01-19 18:18:40 +00008458$as_echo_n "checking dynamic linker characteristics... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008459
8460if test "$GCC" = yes; then
8461 case $host_os in
8462 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8463 *) lt_awk_arg="/^libraries:/" ;;
8464 esac
8465 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8466 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8467 # if the path contains ";" then we assume it to be the separator
8468 # otherwise default to the standard path separator (i.e. ":") - it is
8469 # assumed that no part of a normal pathname contains ";" but that should
8470 # okay in the real world where ";" in dirpaths is itself problematic.
8471 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8472 else
8473 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8474 fi
8475 # Ok, now we have the path, separated by spaces, we can step through it
8476 # and add multilib dir if necessary.
8477 lt_tmp_lt_search_path_spec=
8478 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8479 for lt_sys_path in $lt_search_path_spec; do
8480 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8481 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8482 else
8483 test -d "$lt_sys_path" && \
8484 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8485 fi
8486 done
8487 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8488BEGIN {RS=" "; FS="/|\n";} {
8489 lt_foo="";
8490 lt_count=0;
8491 for (lt_i = NF; lt_i > 0; lt_i--) {
8492 if ($lt_i != "" && $lt_i != ".") {
8493 if ($lt_i == "..") {
8494 lt_count++;
8495 } else {
8496 if (lt_count == 0) {
8497 lt_foo="/" $lt_i lt_foo;
8498 } else {
8499 lt_count--;
8500 }
8501 }
8502 }
8503 }
8504 if (lt_foo != "") { lt_freq[lt_foo]++; }
8505 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8506}'`
8507 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8508else
8509 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8510fi
drh71eb93e2001-09-28 01:34:43 +00008511library_names_spec=
8512libname_spec='lib$name'
8513soname_spec=
vapier7f19c022007-02-17 14:46:31 +00008514shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00008515postinstall_cmds=
8516postuninstall_cmds=
8517finish_cmds=
8518finish_eval=
8519shlibpath_var=
8520shlibpath_overrides_runpath=unknown
8521version_type=none
8522dynamic_linker="$host_os ld.so"
8523sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008524need_lib_prefix=unknown
8525hardcode_into_libs=no
8526
8527# when you set need_version to no, make sure it does not cause -set_version
8528# flags to be left without arguments
8529need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00008530
8531case $host_os in
8532aix3*)
8533 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008534 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008535 shlibpath_var=LIBPATH
8536
a.rottmann9bc8b932004-02-29 15:18:31 +00008537 # AIX 3 has no versioning support, so we append a major version to the name.
8538 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008539 ;;
8540
mlcreech636a9952008-05-05 22:52:56 +00008541aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00008542 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00008543 need_lib_prefix=no
8544 need_version=no
8545 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008546 if test "$host_cpu" = ia64; then
8547 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00008548 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008549 shlibpath_var=LD_LIBRARY_PATH
8550 else
8551 # With GCC up to 2.95.x, collect2 would create an import file
8552 # for dependence libraries. The import file would start with
8553 # the line `#! .'. This would cause the generated library to
8554 # depend on `.', always an invalid library. This was fixed in
8555 # development snapshots of GCC prior to 3.0.
8556 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008557 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008558 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8559 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00008560 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008561 :
8562 else
8563 can_build_shared=no
8564 fi
8565 ;;
drh71eb93e2001-09-28 01:34:43 +00008566 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008567 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8568 # soname into executable. Probably we can add versioning support to
8569 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00008570 if test "$aix_use_runtimelinking" = yes; then
8571 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8572 # instead of lib<name>.a to let people know that these are not
8573 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008575 else
8576 # We preserve .a as extension for shared libraries through AIX4.2
8577 # and later when we are not doing run time linking.
8578 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008579 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008580 fi
8581 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00008582 fi
8583 ;;
8584
8585amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00008586 case $host_cpu in
8587 powerpc)
8588 # Since July 2007 AmigaOS4 officially supports .so libraries.
8589 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8591 ;;
8592 m68k)
8593 library_names_spec='$libname.ixlibrary $libname.a'
8594 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8595 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'
8596 ;;
8597 esac
drh71eb93e2001-09-28 01:34:43 +00008598 ;;
8599
8600beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008601 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008602 dynamic_linker="$host_os ld.so"
8603 shlibpath_var=LIBRARY_PATH
8604 ;;
8605
vapier7f19c022007-02-17 14:46:31 +00008606bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00008607 version_type=linux
8608 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8610 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008611 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8612 shlibpath_var=LD_LIBRARY_PATH
8613 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8614 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8615 # the default ld.so.conf also contains /usr/contrib/lib and
8616 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8617 # libtool to hard-code these into programs
8618 ;;
8619
vapier6acb2cf2009-01-28 04:46:28 +00008620cygwin* | mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008621 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00008622 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008623 need_version=no
8624 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008625
drh71eb93e2001-09-28 01:34:43 +00008626 case $GCC,$host_os in
vapier6acb2cf2009-01-28 04:46:28 +00008627 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008628 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008629 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8630 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00008631 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008632 dldir=$destdir/`dirname \$dlpath`~
8633 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00008634 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00008635 chmod a+x \$dldir/$dlname~
8636 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8637 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8638 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00008639 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008640 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00008641 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00008642 shlibpath_overrides_runpath=yes
8643
8644 case $host_os in
8645 cygwin*)
8646 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8647 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8648 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8649 ;;
vapier6acb2cf2009-01-28 04:46:28 +00008650 mingw* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008651 # MinGW DLLs use traditional 'lib' prefix
8652 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00008653 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8654 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008655 # It is most probably a Windows format PATH printed by
8656 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8657 # path with ; separators, and with drive letters. We can handle the
8658 # drive letters (cygwin fileutils understands them), so leave them,
8659 # especially as we might pass files found there to a mingw objdump,
8660 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00008661 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00008662 else
mlcreech636a9952008-05-05 22:52:56 +00008663 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00008664 fi
8665 ;;
8666 pw32*)
8667 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00008668 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 +00008669 ;;
8670 esac
drh71eb93e2001-09-28 01:34:43 +00008671 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008672
drh71eb93e2001-09-28 01:34:43 +00008673 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008674 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008675 ;;
8676 esac
8677 dynamic_linker='Win32 ld.exe'
8678 # FIXME: first we should search . and the directory the executable is in
8679 shlibpath_var=PATH
8680 ;;
8681
8682darwin* | rhapsody*)
8683 dynamic_linker="$host_os dyld"
8684 version_type=darwin
8685 need_lib_prefix=no
8686 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008687 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00008688 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008689 shlibpath_overrides_runpath=yes
8690 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008691 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00008692
8693 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008694 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8695 ;;
8696
8697dgux*)
8698 version_type=linux
8699 need_lib_prefix=no
8700 need_version=no
8701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8702 soname_spec='${libname}${release}${shared_ext}$major'
8703 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008704 ;;
8705
a.rottmann84e63352003-03-24 09:42:16 +00008706freebsd1*)
8707 dynamic_linker=no
8708 ;;
8709
vapier7f19c022007-02-17 14:46:31 +00008710freebsd* | dragonfly*)
8711 # DragonFly does not have aout. When/if they implement a new
8712 # versioning mechanism, adjust this.
8713 if test -x /usr/bin/objformat; then
8714 objformat=`/usr/bin/objformat`
8715 else
8716 case $host_os in
8717 freebsd[123]*) objformat=aout ;;
8718 *) objformat=elf ;;
8719 esac
8720 fi
8721 # Handle Gentoo/FreeBSD as it was Linux
8722 case $host_vendor in
8723 gentoo)
8724 version_type=linux ;;
8725 *)
8726 version_type=freebsd-$objformat ;;
8727 esac
8728
drh71eb93e2001-09-28 01:34:43 +00008729 case $version_type in
8730 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008732 need_version=no
8733 need_lib_prefix=no
8734 ;;
8735 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008736 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008737 need_version=yes
8738 ;;
vapier7f19c022007-02-17 14:46:31 +00008739 linux)
8740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8741 soname_spec='${libname}${release}${shared_ext}$major'
8742 need_lib_prefix=no
8743 need_version=no
8744 ;;
drh71eb93e2001-09-28 01:34:43 +00008745 esac
8746 shlibpath_var=LD_LIBRARY_PATH
8747 case $host_os in
8748 freebsd2*)
8749 shlibpath_overrides_runpath=yes
8750 ;;
vapier7f19c022007-02-17 14:46:31 +00008751 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008752 shlibpath_overrides_runpath=yes
8753 hardcode_into_libs=yes
8754 ;;
vapier7f19c022007-02-17 14:46:31 +00008755 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8756 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00008757 shlibpath_overrides_runpath=no
8758 hardcode_into_libs=yes
8759 ;;
mlcreech636a9952008-05-05 22:52:56 +00008760 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00008761 shlibpath_overrides_runpath=yes
8762 hardcode_into_libs=yes
8763 ;;
drh71eb93e2001-09-28 01:34:43 +00008764 esac
8765 ;;
8766
8767gnu*)
8768 version_type=linux
8769 need_lib_prefix=no
8770 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8772 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008773 shlibpath_var=LD_LIBRARY_PATH
8774 hardcode_into_libs=yes
8775 ;;
8776
8777hpux9* | hpux10* | hpux11*)
8778 # Give a soname corresponding to the major version so that dld.sl refuses to
8779 # link against other versions.
8780 version_type=sunos
8781 need_lib_prefix=no
8782 need_version=no
vapier7f19c022007-02-17 14:46:31 +00008783 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00008784 ia64*)
vapier7f19c022007-02-17 14:46:31 +00008785 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00008786 hardcode_into_libs=yes
8787 dynamic_linker="$host_os dld.so"
8788 shlibpath_var=LD_LIBRARY_PATH
8789 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8791 soname_spec='${libname}${release}${shared_ext}$major'
8792 if test "X$HPUX_IA64_MODE" = X32; then
8793 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8794 else
8795 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8796 fi
8797 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8798 ;;
mlcreech636a9952008-05-05 22:52:56 +00008799 hppa*64*)
8800 shrext_cmds='.sl'
8801 hardcode_into_libs=yes
8802 dynamic_linker="$host_os dld.sl"
8803 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8804 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8806 soname_spec='${libname}${release}${shared_ext}$major'
8807 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8808 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8809 ;;
8810 *)
vapier7f19c022007-02-17 14:46:31 +00008811 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00008812 dynamic_linker="$host_os dld.sl"
8813 shlibpath_var=SHLIB_PATH
8814 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8816 soname_spec='${libname}${release}${shared_ext}$major'
8817 ;;
8818 esac
drh71eb93e2001-09-28 01:34:43 +00008819 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8820 postinstall_cmds='chmod 555 $lib'
8821 ;;
8822
mlcreech636a9952008-05-05 22:52:56 +00008823interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00008824 version_type=linux
8825 need_lib_prefix=no
8826 need_version=no
8827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8828 soname_spec='${libname}${release}${shared_ext}$major'
8829 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8830 shlibpath_var=LD_LIBRARY_PATH
8831 shlibpath_overrides_runpath=no
8832 hardcode_into_libs=yes
8833 ;;
8834
a.rottmann84e63352003-03-24 09:42:16 +00008835irix5* | irix6* | nonstopux*)
8836 case $host_os in
8837 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008838 *)
8839 if test "$lt_cv_prog_gnu_ld" = yes; then
8840 version_type=linux
8841 else
8842 version_type=irix
8843 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00008844 esac
drh71eb93e2001-09-28 01:34:43 +00008845 need_lib_prefix=no
8846 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008847 soname_spec='${libname}${release}${shared_ext}$major'
8848 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 +00008849 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008850 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00008851 libsuff= shlibsuff=
8852 ;;
8853 *)
8854 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00008855 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8856 libsuff= shlibsuff= libmagic=32-bit;;
8857 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8858 libsuff=32 shlibsuff=N32 libmagic=N32;;
8859 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8860 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00008861 *) libsuff= shlibsuff= libmagic=never-match;;
8862 esac
8863 ;;
8864 esac
8865 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8866 shlibpath_overrides_runpath=no
8867 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8868 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00008869 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008870 ;;
8871
8872# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00008873linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00008874 dynamic_linker=no
8875 ;;
8876
8877# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00008878linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00008879 version_type=linux
8880 need_lib_prefix=no
8881 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8883 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008884 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8885 shlibpath_var=LD_LIBRARY_PATH
8886 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00008887 # Some binutils ld are patched to set DT_RUNPATH
8888 save_LDFLAGS=$LDFLAGS
8889 save_libdir=$libdir
8890 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8891 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
drhf922ca42015-05-14 15:39:18 +00008892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008893/* end confdefs.h. */
8894
8895int
8896main ()
8897{
8898
8899 ;
8900 return 0;
8901}
8902_ACEOF
drhf922ca42015-05-14 15:39:18 +00008903if ac_fn_c_try_link "$LINENO"; then :
8904 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
mlcreech636a9952008-05-05 22:52:56 +00008905 shlibpath_overrides_runpath=yes
8906fi
mlcreech636a9952008-05-05 22:52:56 +00008907fi
drhf922ca42015-05-14 15:39:18 +00008908rm -f core conftest.err conftest.$ac_objext \
8909 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008910 LDFLAGS=$save_LDFLAGS
8911 libdir=$save_libdir
8912
drh71eb93e2001-09-28 01:34:43 +00008913 # This implies no fast_install, which is unacceptable.
8914 # Some rework will be needed to allow for fast_install
8915 # before this can be enabled.
8916 hardcode_into_libs=yes
8917
a.rottmann9bc8b932004-02-29 15:18:31 +00008918 # Append ld.so.conf contents to the search path
8919 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00008920 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 +00008921 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00008922 fi
8923
drh71eb93e2001-09-28 01:34:43 +00008924 # We used to test for /lib/ld.so.1 and disable shared libraries on
8925 # powerpc, because MkLinux only supported shared libraries with the
8926 # GNU dynamic linker. Since this was broken with cross compilers,
8927 # most powerpc-linux boxes support dynamic linking these days and
8928 # people can always --disable-shared, the test was removed, and we
8929 # assume the GNU/Linux dynamic linker is in use.
8930 dynamic_linker='GNU/Linux ld.so'
8931 ;;
8932
8933netbsd*)
8934 version_type=sunos
8935 need_lib_prefix=no
8936 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008937 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8940 dynamic_linker='NetBSD (a.out) ld.so'
8941 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8943 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008944 dynamic_linker='NetBSD ld.elf_so'
8945 fi
8946 shlibpath_var=LD_LIBRARY_PATH
8947 shlibpath_overrides_runpath=yes
8948 hardcode_into_libs=yes
8949 ;;
8950
8951newsos6)
8952 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8954 shlibpath_var=LD_LIBRARY_PATH
8955 shlibpath_overrides_runpath=yes
8956 ;;
8957
mlcreech636a9952008-05-05 22:52:56 +00008958*nto* | *qnx*)
8959 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00008960 need_lib_prefix=no
8961 need_version=no
8962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8963 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008964 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008965 shlibpath_overrides_runpath=no
8966 hardcode_into_libs=yes
8967 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00008968 ;;
8969
drh71eb93e2001-09-28 01:34:43 +00008970openbsd*)
8971 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00008972 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00008973 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00008974 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8975 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00008976 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8977 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00008978 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8981 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008982 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 +00008983 case $host_os in
8984 openbsd2.[89] | openbsd2.[89].*)
8985 shlibpath_overrides_runpath=no
8986 ;;
8987 *)
8988 shlibpath_overrides_runpath=yes
8989 ;;
8990 esac
a.rottmann84e63352003-03-24 09:42:16 +00008991 else
8992 shlibpath_overrides_runpath=yes
8993 fi
drh71eb93e2001-09-28 01:34:43 +00008994 ;;
8995
8996os2*)
8997 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00008998 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008999 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009000 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00009001 dynamic_linker='OS/2 ld.exe'
9002 shlibpath_var=LIBPATH
9003 ;;
9004
9005osf3* | osf4* | osf5*)
9006 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00009007 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009008 need_version=no
9009 soname_spec='${libname}${release}${shared_ext}$major'
9010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00009011 shlibpath_var=LD_LIBRARY_PATH
9012 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9013 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9014 ;;
9015
mlcreech636a9952008-05-05 22:52:56 +00009016rdos*)
9017 dynamic_linker=no
9018 ;;
9019
drh71eb93e2001-09-28 01:34:43 +00009020solaris*)
9021 version_type=linux
9022 need_lib_prefix=no
9023 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9025 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009026 shlibpath_var=LD_LIBRARY_PATH
9027 shlibpath_overrides_runpath=yes
9028 hardcode_into_libs=yes
9029 # ldd complains unless libraries are executable
9030 postinstall_cmds='chmod +x $lib'
9031 ;;
9032
9033sunos4*)
9034 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00009035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009036 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9037 shlibpath_var=LD_LIBRARY_PATH
9038 shlibpath_overrides_runpath=yes
9039 if test "$with_gnu_ld" = yes; then
9040 need_lib_prefix=no
9041 fi
9042 need_version=yes
9043 ;;
9044
vapier7f19c022007-02-17 14:46:31 +00009045sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00009046 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9048 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009049 shlibpath_var=LD_LIBRARY_PATH
9050 case $host_vendor in
9051 sni)
9052 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00009053 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00009054 runpath_var=LD_RUN_PATH
9055 ;;
9056 siemens)
9057 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00009058 ;;
9059 motorola)
9060 need_lib_prefix=no
9061 need_version=no
9062 shlibpath_overrides_runpath=no
9063 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9064 ;;
9065 esac
9066 ;;
9067
9068sysv4*MP*)
9069 if test -d /usr/nec ;then
9070 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009071 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9072 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00009073 shlibpath_var=LD_LIBRARY_PATH
9074 fi
9075 ;;
9076
vapier7f19c022007-02-17 14:46:31 +00009077sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9078 version_type=freebsd-elf
9079 need_lib_prefix=no
9080 need_version=no
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9082 soname_spec='${libname}${release}${shared_ext}$major'
9083 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009084 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00009085 hardcode_into_libs=yes
9086 if test "$with_gnu_ld" = yes; then
9087 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00009088 else
9089 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00009090 case $host_os in
9091 sco3.2v5*)
9092 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9093 ;;
9094 esac
9095 fi
9096 sys_lib_dlsearch_path_spec='/usr/lib'
9097 ;;
9098
mlcreech636a9952008-05-05 22:52:56 +00009099tpf*)
9100 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9101 version_type=linux
9102 need_lib_prefix=no
9103 need_version=no
vapier6acb2cf2009-01-28 04:46:28 +00009104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00009105 shlibpath_var=LD_LIBRARY_PATH
9106 shlibpath_overrides_runpath=no
9107 hardcode_into_libs=yes
9108 ;;
9109
a.rottmann9bc8b932004-02-29 15:18:31 +00009110uts4*)
9111 version_type=linux
9112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9113 soname_spec='${libname}${release}${shared_ext}$major'
9114 shlibpath_var=LD_LIBRARY_PATH
9115 ;;
9116
drh71eb93e2001-09-28 01:34:43 +00009117*)
9118 dynamic_linker=no
9119 ;;
9120esac
drhf922ca42015-05-14 15:39:18 +00009121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
drh8b727472009-01-19 18:18:40 +00009122$as_echo "$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009123test "$dynamic_linker" = no && can_build_shared=no
9124
vapier7f19c022007-02-17 14:46:31 +00009125variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9126if test "$GCC" = yes; then
9127 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9128fi
9129
mlcreech636a9952008-05-05 22:52:56 +00009130if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9131 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9132fi
9133if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9134 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9135fi
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
9221
9222
drhf922ca42015-05-14 15:39:18 +00009223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
drh8b727472009-01-19 18:18:40 +00009224$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009225hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00009226if test -n "$hardcode_libdir_flag_spec" ||
9227 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00009228 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00009229
mlcreech636a9952008-05-05 22:52:56 +00009230 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00009231 if test "$hardcode_direct" != no &&
9232 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9233 # have to relink, otherwise we might link with an installed library
9234 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00009235 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00009236 test "$hardcode_minus_L" != no; then
9237 # Linking always hardcodes the temporary library directory.
9238 hardcode_action=relink
9239 else
9240 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9241 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00009242 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009243else
9244 # We cannot hardcode anything, or else we can only hardcode existing
9245 # directories.
9246 hardcode_action=unsupported
9247fi
drhf922ca42015-05-14 15:39:18 +00009248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
drh8b727472009-01-19 18:18:40 +00009249$as_echo "$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009250
mlcreech636a9952008-05-05 22:52:56 +00009251if test "$hardcode_action" = relink ||
9252 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009253 # Fast installation is not supported
9254 enable_fast_install=no
9255elif test "$shlibpath_overrides_runpath" = yes ||
9256 test "$enable_shared" = no; then
9257 # Fast installation is not necessary
9258 enable_fast_install=needless
9259fi
9260
a.rottmann84e63352003-03-24 09:42:16 +00009261
mlcreech636a9952008-05-05 22:52:56 +00009262
9263
9264
9265
9266 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00009267 enable_dlopen=unknown
9268 enable_dlopen_self=unknown
9269 enable_dlopen_self_static=unknown
9270else
9271 lt_cv_dlopen=no
9272 lt_cv_dlopen_libs=
9273
9274 case $host_os in
9275 beos*)
9276 lt_cv_dlopen="load_add_on"
9277 lt_cv_dlopen_libs=
9278 lt_cv_dlopen_self=yes
9279 ;;
9280
vapier6acb2cf2009-01-28 04:46:28 +00009281 mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00009282 lt_cv_dlopen="LoadLibrary"
9283 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009284 ;;
drh71eb93e2001-09-28 01:34:43 +00009285
a.rottmann9bc8b932004-02-29 15:18:31 +00009286 cygwin*)
9287 lt_cv_dlopen="dlopen"
9288 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009289 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009290
9291 darwin*)
9292 # if libdl is installed we need to link against it
drhf922ca42015-05-14 15:39:18 +00009293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009294$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009295if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009296 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009297else
9298 ac_check_lib_save_LIBS=$LIBS
9299LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009301/* end confdefs.h. */
9302
drh8b727472009-01-19 18:18:40 +00009303/* Override any GCC internal prototype to avoid an error.
9304 Use char because int might match the return type of a GCC
9305 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00009306#ifdef __cplusplus
9307extern "C"
9308#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00009309char dlopen ();
9310int
9311main ()
9312{
drh8b727472009-01-19 18:18:40 +00009313return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00009314 ;
9315 return 0;
9316}
9317_ACEOF
drhf922ca42015-05-14 15:39:18 +00009318if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009319 ac_cv_lib_dl_dlopen=yes
9320else
drhf922ca42015-05-14 15:39:18 +00009321 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009322fi
drhf922ca42015-05-14 15:39:18 +00009323rm -f core conftest.err conftest.$ac_objext \
9324 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009325LIBS=$ac_check_lib_save_LIBS
9326fi
drhf922ca42015-05-14 15:39:18 +00009327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009328$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009329if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009330 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9331else
9332
9333 lt_cv_dlopen="dyld"
9334 lt_cv_dlopen_libs=
9335 lt_cv_dlopen_self=yes
9336
9337fi
9338
mlcreech636a9952008-05-05 22:52:56 +00009339 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009340
drh71eb93e2001-09-28 01:34:43 +00009341 *)
drhf922ca42015-05-14 15:39:18 +00009342 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9343if test "x$ac_cv_func_shl_load" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009344 lt_cv_dlopen="shl_load"
9345else
drhf922ca42015-05-14 15:39:18 +00009346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009347$as_echo_n "checking for shl_load in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009348if ${ac_cv_lib_dld_shl_load+:} false; then :
drh8b727472009-01-19 18:18:40 +00009349 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009350else
9351 ac_check_lib_save_LIBS=$LIBS
9352LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009354/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009355
drh8b727472009-01-19 18:18:40 +00009356/* Override any GCC internal prototype to avoid an error.
9357 Use char because int might match the return type of a GCC
9358 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009359#ifdef __cplusplus
9360extern "C"
9361#endif
drh71eb93e2001-09-28 01:34:43 +00009362char shl_load ();
9363int
9364main ()
9365{
drh8b727472009-01-19 18:18:40 +00009366return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009367 ;
9368 return 0;
9369}
9370_ACEOF
drhf922ca42015-05-14 15:39:18 +00009371if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009372 ac_cv_lib_dld_shl_load=yes
9373else
drhf922ca42015-05-14 15:39:18 +00009374 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009375fi
drhf922ca42015-05-14 15:39:18 +00009376rm -f core conftest.err conftest.$ac_objext \
9377 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009378LIBS=$ac_check_lib_save_LIBS
9379fi
drhf922ca42015-05-14 15:39:18 +00009380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
drh8b727472009-01-19 18:18:40 +00009381$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
drhf922ca42015-05-14 15:39:18 +00009382if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009383 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00009384else
drhf922ca42015-05-14 15:39:18 +00009385 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9386if test "x$ac_cv_func_dlopen" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00009387 lt_cv_dlopen="dlopen"
9388else
drhf922ca42015-05-14 15:39:18 +00009389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009390$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009391if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009392 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009393else
9394 ac_check_lib_save_LIBS=$LIBS
9395LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009396cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009397/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009398
drh8b727472009-01-19 18:18:40 +00009399/* Override any GCC internal prototype to avoid an error.
9400 Use char because int might match the return type of a GCC
9401 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009402#ifdef __cplusplus
9403extern "C"
9404#endif
drh71eb93e2001-09-28 01:34:43 +00009405char dlopen ();
9406int
9407main ()
9408{
drh8b727472009-01-19 18:18:40 +00009409return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009410 ;
9411 return 0;
9412}
9413_ACEOF
drhf922ca42015-05-14 15:39:18 +00009414if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009415 ac_cv_lib_dl_dlopen=yes
9416else
drhf922ca42015-05-14 15:39:18 +00009417 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009418fi
drhf922ca42015-05-14 15:39:18 +00009419rm -f core conftest.err conftest.$ac_objext \
9420 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009421LIBS=$ac_check_lib_save_LIBS
9422fi
drhf922ca42015-05-14 15:39:18 +00009423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009424$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009425if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009426 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9427else
drhf922ca42015-05-14 15:39:18 +00009428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
drh8b727472009-01-19 18:18:40 +00009429$as_echo_n "checking for dlopen in -lsvld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009430if ${ac_cv_lib_svld_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009431 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009432else
9433 ac_check_lib_save_LIBS=$LIBS
9434LIBS="-lsvld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009436/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009437
drh8b727472009-01-19 18:18:40 +00009438/* Override any GCC internal prototype to avoid an error.
9439 Use char because int might match the return type of a GCC
9440 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009441#ifdef __cplusplus
9442extern "C"
9443#endif
drh71eb93e2001-09-28 01:34:43 +00009444char dlopen ();
9445int
9446main ()
9447{
drh8b727472009-01-19 18:18:40 +00009448return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009449 ;
9450 return 0;
9451}
9452_ACEOF
drhf922ca42015-05-14 15:39:18 +00009453if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009454 ac_cv_lib_svld_dlopen=yes
9455else
drhf922ca42015-05-14 15:39:18 +00009456 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009457fi
drhf922ca42015-05-14 15:39:18 +00009458rm -f core conftest.err conftest.$ac_objext \
9459 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009460LIBS=$ac_check_lib_save_LIBS
9461fi
drhf922ca42015-05-14 15:39:18 +00009462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009463$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009464if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009465 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00009466else
drhf922ca42015-05-14 15:39:18 +00009467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009468$as_echo_n "checking for dld_link in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009469if ${ac_cv_lib_dld_dld_link+:} false; then :
drh8b727472009-01-19 18:18:40 +00009470 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00009471else
9472 ac_check_lib_save_LIBS=$LIBS
9473LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009475/* end confdefs.h. */
9476
drh8b727472009-01-19 18:18:40 +00009477/* Override any GCC internal prototype to avoid an error.
9478 Use char because int might match the return type of a GCC
9479 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00009480#ifdef __cplusplus
9481extern "C"
9482#endif
a.rottmann84e63352003-03-24 09:42:16 +00009483char dld_link ();
9484int
9485main ()
9486{
drh8b727472009-01-19 18:18:40 +00009487return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +00009488 ;
9489 return 0;
9490}
9491_ACEOF
drhf922ca42015-05-14 15:39:18 +00009492if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00009493 ac_cv_lib_dld_dld_link=yes
9494else
drhf922ca42015-05-14 15:39:18 +00009495 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00009496fi
drhf922ca42015-05-14 15:39:18 +00009497rm -f core conftest.err conftest.$ac_objext \
9498 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009499LIBS=$ac_check_lib_save_LIBS
9500fi
drhf922ca42015-05-14 15:39:18 +00009501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
drh8b727472009-01-19 18:18:40 +00009502$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
drhf922ca42015-05-14 15:39:18 +00009503if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009504 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +00009505fi
9506
drh71eb93e2001-09-28 01:34:43 +00009507
9508fi
9509
drh71eb93e2001-09-28 01:34:43 +00009510
9511fi
9512
a.rottmann84e63352003-03-24 09:42:16 +00009513
9514fi
9515
9516
9517fi
9518
9519
drh71eb93e2001-09-28 01:34:43 +00009520fi
9521
9522 ;;
9523 esac
9524
9525 if test "x$lt_cv_dlopen" != xno; then
9526 enable_dlopen=yes
9527 else
9528 enable_dlopen=no
9529 fi
9530
9531 case $lt_cv_dlopen in
9532 dlopen)
9533 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00009534 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00009535
9536 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +00009537 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +00009538
9539 save_LIBS="$LIBS"
9540 LIBS="$lt_cv_dlopen_libs $LIBS"
9541
drhf922ca42015-05-14 15:39:18 +00009542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009543$as_echo_n "checking whether a program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009544if ${lt_cv_dlopen_self+:} false; then :
drh8b727472009-01-19 18:18:40 +00009545 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009546else
9547 if test "$cross_compiling" = yes; then :
9548 lt_cv_dlopen_self=cross
9549else
a.rottmann9bc8b932004-02-29 15:18:31 +00009550 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009551 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009552 cat > conftest.$ac_ext <<_LT_EOF
drh748b8fd2018-05-25 19:22:47 +00009553#line 9553 "configure"
drh71eb93e2001-09-28 01:34:43 +00009554#include "confdefs.h"
9555
9556#if HAVE_DLFCN_H
9557#include <dlfcn.h>
9558#endif
9559
9560#include <stdio.h>
9561
9562#ifdef RTLD_GLOBAL
9563# define LT_DLGLOBAL RTLD_GLOBAL
9564#else
9565# ifdef DL_GLOBAL
9566# define LT_DLGLOBAL DL_GLOBAL
9567# else
9568# define LT_DLGLOBAL 0
9569# endif
9570#endif
9571
9572/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9573 find out it does not work in some platform. */
9574#ifndef LT_DLLAZY_OR_NOW
9575# ifdef RTLD_LAZY
9576# define LT_DLLAZY_OR_NOW RTLD_LAZY
9577# else
9578# ifdef DL_LAZY
9579# define LT_DLLAZY_OR_NOW DL_LAZY
9580# else
9581# ifdef RTLD_NOW
9582# define LT_DLLAZY_OR_NOW RTLD_NOW
9583# else
9584# ifdef DL_NOW
9585# define LT_DLLAZY_OR_NOW DL_NOW
9586# else
9587# define LT_DLLAZY_OR_NOW 0
9588# endif
9589# endif
9590# endif
9591# endif
9592#endif
9593
drh71eb93e2001-09-28 01:34:43 +00009594void fnord() { int i=42;}
9595int main ()
9596{
9597 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9598 int status = $lt_dlunknown;
9599
9600 if (self)
9601 {
9602 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9603 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9604 /* dlclose (self); */
9605 }
vapier7f19c022007-02-17 14:46:31 +00009606 else
9607 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009608
vapier6acb2cf2009-01-28 04:46:28 +00009609 return status;
drh71eb93e2001-09-28 01:34:43 +00009610}
mlcreech636a9952008-05-05 22:52:56 +00009611_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009613 (eval $ac_link) 2>&5
9614 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9616 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009617 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009618 lt_status=$?
9619 case x$lt_status in
9620 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9621 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009622 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +00009623 esac
9624 else :
9625 # compilation failed
9626 lt_cv_dlopen_self=no
9627 fi
9628fi
9629rm -fr conftest*
9630
a.rottmann84e63352003-03-24 09:42:16 +00009631
drh71eb93e2001-09-28 01:34:43 +00009632fi
drhf922ca42015-05-14 15:39:18 +00009633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
drh8b727472009-01-19 18:18:40 +00009634$as_echo "$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009635
9636 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00009637 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00009638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009639$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009640if ${lt_cv_dlopen_self_static+:} false; then :
drh8b727472009-01-19 18:18:40 +00009641 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009642else
9643 if test "$cross_compiling" = yes; then :
9644 lt_cv_dlopen_self_static=cross
9645else
a.rottmann9bc8b932004-02-29 15:18:31 +00009646 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009647 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009648 cat > conftest.$ac_ext <<_LT_EOF
drh748b8fd2018-05-25 19:22:47 +00009649#line 9649 "configure"
drh71eb93e2001-09-28 01:34:43 +00009650#include "confdefs.h"
9651
9652#if HAVE_DLFCN_H
9653#include <dlfcn.h>
9654#endif
9655
9656#include <stdio.h>
9657
9658#ifdef RTLD_GLOBAL
9659# define LT_DLGLOBAL RTLD_GLOBAL
9660#else
9661# ifdef DL_GLOBAL
9662# define LT_DLGLOBAL DL_GLOBAL
9663# else
9664# define LT_DLGLOBAL 0
9665# endif
9666#endif
9667
9668/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9669 find out it does not work in some platform. */
9670#ifndef LT_DLLAZY_OR_NOW
9671# ifdef RTLD_LAZY
9672# define LT_DLLAZY_OR_NOW RTLD_LAZY
9673# else
9674# ifdef DL_LAZY
9675# define LT_DLLAZY_OR_NOW DL_LAZY
9676# else
9677# ifdef RTLD_NOW
9678# define LT_DLLAZY_OR_NOW RTLD_NOW
9679# else
9680# ifdef DL_NOW
9681# define LT_DLLAZY_OR_NOW DL_NOW
9682# else
9683# define LT_DLLAZY_OR_NOW 0
9684# endif
9685# endif
9686# endif
9687# endif
9688#endif
9689
drh71eb93e2001-09-28 01:34:43 +00009690void fnord() { int i=42;}
9691int main ()
9692{
9693 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9694 int status = $lt_dlunknown;
9695
9696 if (self)
9697 {
9698 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9699 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9700 /* dlclose (self); */
9701 }
vapier7f19c022007-02-17 14:46:31 +00009702 else
9703 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009704
vapier6acb2cf2009-01-28 04:46:28 +00009705 return status;
drh71eb93e2001-09-28 01:34:43 +00009706}
mlcreech636a9952008-05-05 22:52:56 +00009707_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009709 (eval $ac_link) 2>&5
9710 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9712 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009713 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009714 lt_status=$?
9715 case x$lt_status in
9716 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9717 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009718 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +00009719 esac
9720 else :
9721 # compilation failed
9722 lt_cv_dlopen_self_static=no
9723 fi
9724fi
9725rm -fr conftest*
9726
a.rottmann84e63352003-03-24 09:42:16 +00009727
drh71eb93e2001-09-28 01:34:43 +00009728fi
drhf922ca42015-05-14 15:39:18 +00009729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
drh8b727472009-01-19 18:18:40 +00009730$as_echo "$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009731 fi
9732
9733 CPPFLAGS="$save_CPPFLAGS"
9734 LDFLAGS="$save_LDFLAGS"
9735 LIBS="$save_LIBS"
9736 ;;
9737 esac
9738
9739 case $lt_cv_dlopen_self in
9740 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9741 *) enable_dlopen_self=unknown ;;
9742 esac
9743
9744 case $lt_cv_dlopen_self_static in
9745 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9746 *) enable_dlopen_self_static=unknown ;;
9747 esac
9748fi
9749
drh71eb93e2001-09-28 01:34:43 +00009750
drh71eb93e2001-09-28 01:34:43 +00009751
a.rottmann9bc8b932004-02-29 15:18:31 +00009752
a.rottmann9bc8b932004-02-29 15:18:31 +00009753
mlcreech636a9952008-05-05 22:52:56 +00009754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766striplib=
9767old_striplib=
drhf922ca42015-05-14 15:39:18 +00009768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
drh8b727472009-01-19 18:18:40 +00009769$as_echo_n "checking whether stripping libraries is possible... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009770if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9771 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9772 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
drhf922ca42015-05-14 15:39:18 +00009773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009774$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009775else
9776# FIXME - insert some real tests, host_os isn't really good enough
9777 case $host_os in
9778 darwin*)
9779 if test -n "$STRIP" ; then
9780 striplib="$STRIP -x"
9781 old_striplib="$STRIP -S"
drhf922ca42015-05-14 15:39:18 +00009782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009783$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009784 else
drhf922ca42015-05-14 15:39:18 +00009785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009786$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009787 fi
a.rottmann84e63352003-03-24 09:42:16 +00009788 ;;
mlcreech636a9952008-05-05 22:52:56 +00009789 *)
drhf922ca42015-05-14 15:39:18 +00009790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009791$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009792 ;;
9793 esac
mlcreech636a9952008-05-05 22:52:56 +00009794fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009795
a.rottmann9bc8b932004-02-29 15:18:31 +00009796
drh71eb93e2001-09-28 01:34:43 +00009797
drh71eb93e2001-09-28 01:34:43 +00009798
a.rottmann84e63352003-03-24 09:42:16 +00009799
drh71eb93e2001-09-28 01:34:43 +00009800
drh71eb93e2001-09-28 01:34:43 +00009801
a.rottmann9bc8b932004-02-29 15:18:31 +00009802
drh71eb93e2001-09-28 01:34:43 +00009803
drh71eb93e2001-09-28 01:34:43 +00009804
drh71eb93e2001-09-28 01:34:43 +00009805
drh71eb93e2001-09-28 01:34:43 +00009806
mlcreech636a9952008-05-05 22:52:56 +00009807 # Report which library types will actually be built
drhf922ca42015-05-14 15:39:18 +00009808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009809$as_echo_n "checking if libtool supports shared libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
drh8b727472009-01-19 18:18:40 +00009811$as_echo "$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009812
drhf922ca42015-05-14 15:39:18 +00009813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009814$as_echo_n "checking whether to build shared libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009815 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009816
mlcreech636a9952008-05-05 22:52:56 +00009817 # On AIX, shared libraries and static libraries use the same namespace, and
9818 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +00009819 case $host_os in
9820 aix3*)
vapier7f19c022007-02-17 14:46:31 +00009821 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +00009822 if test -n "$RANLIB"; then
9823 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9824 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +00009825 fi
9826 ;;
9827
mlcreech636a9952008-05-05 22:52:56 +00009828 aix[4-9]*)
9829 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9830 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009831 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009832 ;;
9833 esac
drhf922ca42015-05-14 15:39:18 +00009834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
drh8b727472009-01-19 18:18:40 +00009835$as_echo "$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009836
drhf922ca42015-05-14 15:39:18 +00009837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
drh8b727472009-01-19 18:18:40 +00009838$as_echo_n "checking whether to build static libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009839 # Make sure either enable_shared or enable_static is yes.
9840 test "$enable_shared" = yes || enable_static=yes
drhf922ca42015-05-14 15:39:18 +00009841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
drh8b727472009-01-19 18:18:40 +00009842$as_echo "$enable_static" >&6; }
vapier7f19c022007-02-17 14:46:31 +00009843
a.rottmann9bc8b932004-02-29 15:18:31 +00009844
a.rottmann9bc8b932004-02-29 15:18:31 +00009845
a.rottmann9bc8b932004-02-29 15:18:31 +00009846
vapier7f19c022007-02-17 14:46:31 +00009847fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009848ac_ext=c
9849ac_cpp='$CPP $CPPFLAGS'
9850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9852ac_compiler_gnu=$ac_cv_c_compiler_gnu
9853
9854CC="$lt_save_CC"
9855
a.rottmann9bc8b932004-02-29 15:18:31 +00009856
a.rottmann9bc8b932004-02-29 15:18:31 +00009857
9858
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
a.rottmann9bc8b932004-02-29 15:18:31 +00009863
a.rottmann9bc8b932004-02-29 15:18:31 +00009864
vapier7f19c022007-02-17 14:46:31 +00009865
a.rottmann9bc8b932004-02-29 15:18:31 +00009866
9867
drh8b727472009-01-19 18:18:40 +00009868 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +00009869
vapier7f19c022007-02-17 14:46:31 +00009870
9871
vapier7f19c022007-02-17 14:46:31 +00009872
mlcreech636a9952008-05-05 22:52:56 +00009873# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +00009874
9875
drh71eb93e2001-09-28 01:34:43 +00009876# Find a good install program. We prefer a C program (faster),
9877# so one script is as good as another. But avoid the broken or
9878# incompatible versions:
9879# SysV /etc/install, /usr/sbin/install
9880# SunOS /usr/etc/install
9881# IRIX /sbin/install
9882# AIX /bin/install
9883# AmigaOS /C/install, which installs bootblocks on floppy discs
9884# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9885# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9886# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +00009887# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +00009888# ./install, which can be erroneously created by make from ./install.sh.
drh8b727472009-01-19 18:18:40 +00009889# Reject install programs that cannot install multiple files.
drhf922ca42015-05-14 15:39:18 +00009890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
drh8b727472009-01-19 18:18:40 +00009891$as_echo_n "checking for a BSD-compatible install... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009892if test -z "$INSTALL"; then
drhf922ca42015-05-14 15:39:18 +00009893if ${ac_cv_path_install+:} false; then :
drh8b727472009-01-19 18:18:40 +00009894 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009895else
a.rottmann84e63352003-03-24 09:42:16 +00009896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9897for as_dir in $PATH
9898do
9899 IFS=$as_save_IFS
9900 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00009901 # Account for people who put trailing slashes in PATH elements.
9902case $as_dir/ in #((
9903 ./ | .// | /[cC]/* | \
a.rottmann84e63352003-03-24 09:42:16 +00009904 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
drhf922ca42015-05-14 15:39:18 +00009905 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
a.rottmann84e63352003-03-24 09:42:16 +00009906 /usr/ucb/* ) ;;
9907 *)
9908 # OSF1 and SCO ODT 3.0 have their own names for install.
9909 # Don't use installbsd from OSF since it installs stuff as root
9910 # by default.
9911 for ac_prog in ginstall scoinst install; do
9912 for ac_exec_ext in '' $ac_executable_extensions; do
drhf922ca42015-05-14 15:39:18 +00009913 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
a.rottmann964dbb12004-02-26 19:47:42 +00009914 if test $ac_prog = install &&
9915 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9916 # AIX install. It has an incompatible calling convention.
9917 :
9918 elif test $ac_prog = install &&
9919 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9920 # program-specific install script used by HP pwplus--don't use.
9921 :
9922 else
drh8b727472009-01-19 18:18:40 +00009923 rm -rf conftest.one conftest.two conftest.dir
9924 echo one > conftest.one
9925 echo two > conftest.two
9926 mkdir conftest.dir
9927 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9928 test -s conftest.one && test -s conftest.two &&
9929 test -s conftest.dir/conftest.one &&
9930 test -s conftest.dir/conftest.two
9931 then
9932 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9933 break 3
9934 fi
a.rottmann964dbb12004-02-26 19:47:42 +00009935 fi
9936 fi
drh71eb93e2001-09-28 01:34:43 +00009937 done
a.rottmann84e63352003-03-24 09:42:16 +00009938 done
9939 ;;
9940esac
a.rottmann84e63352003-03-24 09:42:16 +00009941
drhf922ca42015-05-14 15:39:18 +00009942 done
drh8b727472009-01-19 18:18:40 +00009943IFS=$as_save_IFS
9944
9945rm -rf conftest.one conftest.two conftest.dir
drh71eb93e2001-09-28 01:34:43 +00009946
9947fi
9948 if test "${ac_cv_path_install+set}" = set; then
9949 INSTALL=$ac_cv_path_install
9950 else
drh8b727472009-01-19 18:18:40 +00009951 # As a last resort, use the slow shell script. Don't cache a
9952 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +00009953 # break other packages using the cache if that directory is
drh8b727472009-01-19 18:18:40 +00009954 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +00009955 INSTALL=$ac_install_sh
9956 fi
9957fi
drhf922ca42015-05-14 15:39:18 +00009958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
drh8b727472009-01-19 18:18:40 +00009959$as_echo "$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009960
9961# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9962# It thinks the first close brace ends the variable substitution.
9963test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9964
9965test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9966
9967test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9968
a.rottmann84e63352003-03-24 09:42:16 +00009969
drh75897232000-05-29 14:26:00 +00009970#########
mlcreech636a9952008-05-05 22:52:56 +00009971# Enable large file support (if special flags are necessary)
9972#
drh8b727472009-01-19 18:18:40 +00009973# Check whether --enable-largefile was given.
drhf922ca42015-05-14 15:39:18 +00009974if test "${enable_largefile+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00009975 enableval=$enable_largefile;
9976fi
mlcreech636a9952008-05-05 22:52:56 +00009977
9978if test "$enable_largefile" != no; then
9979
drhf922ca42015-05-14 15:39:18 +00009980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
drh8b727472009-01-19 18:18:40 +00009981$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009982if ${ac_cv_sys_largefile_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00009983 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +00009984else
mlcreech636a9952008-05-05 22:52:56 +00009985 ac_cv_sys_largefile_CC=no
9986 if test "$GCC" != yes; then
9987 ac_save_CC=$CC
9988 while :; do
drh8b727472009-01-19 18:18:40 +00009989 # IRIX 6.2 and later do not support large files by default,
9990 # so use the C compiler's -n32 option if that helps.
drhf922ca42015-05-14 15:39:18 +00009991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009992/* end confdefs.h. */
9993#include <sys/types.h>
9994 /* Check that off_t can represent 2**63 - 1 correctly.
9995 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9996 since some C++ compilers masquerading as C compilers
9997 incorrectly reject 9223372036854775807. */
9998#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9999 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10000 && LARGE_OFF_T % 2147483647 == 1)
10001 ? 1 : -1];
10002int
10003main ()
10004{
10005
10006 ;
10007 return 0;
10008}
10009_ACEOF
drhf922ca42015-05-14 15:39:18 +000010010 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010011 break
mlcreech636a9952008-05-05 22:52:56 +000010012fi
drh8b727472009-01-19 18:18:40 +000010013rm -f core conftest.err conftest.$ac_objext
10014 CC="$CC -n32"
drhf922ca42015-05-14 15:39:18 +000010015 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010016 ac_cv_sys_largefile_CC=' -n32'; break
mlcreech636a9952008-05-05 22:52:56 +000010017fi
drh8b727472009-01-19 18:18:40 +000010018rm -f core conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +000010019 break
10020 done
10021 CC=$ac_save_CC
10022 rm -f conftest.$ac_ext
10023 fi
10024fi
drhf922ca42015-05-14 15:39:18 +000010025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
drh8b727472009-01-19 18:18:40 +000010026$as_echo "$ac_cv_sys_largefile_CC" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010027 if test "$ac_cv_sys_largefile_CC" != no; then
10028 CC=$CC$ac_cv_sys_largefile_CC
10029 fi
10030
drhf922ca42015-05-14 15:39:18 +000010031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010032$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010033if ${ac_cv_sys_file_offset_bits+:} false; then :
drh8b727472009-01-19 18:18:40 +000010034 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010035else
10036 while :; do
drhf922ca42015-05-14 15:39:18 +000010037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010038/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +000010039#include <sys/types.h>
10040 /* Check that off_t can represent 2**63 - 1 correctly.
10041 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10042 since some C++ compilers masquerading as C compilers
10043 incorrectly reject 9223372036854775807. */
10044#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10045 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10046 && LARGE_OFF_T % 2147483647 == 1)
10047 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +000010048int
10049main ()
10050{
mlcreech636a9952008-05-05 22:52:56 +000010051
mlcreechb87057f2008-03-06 07:19:20 +000010052 ;
10053 return 0;
10054}
10055_ACEOF
drhf922ca42015-05-14 15:39:18 +000010056if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010057 ac_cv_sys_file_offset_bits=no; break
mlcreech636a9952008-05-05 22:52:56 +000010058fi
drh8b727472009-01-19 18:18:40 +000010059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010061/* end confdefs.h. */
10062#define _FILE_OFFSET_BITS 64
10063#include <sys/types.h>
10064 /* Check that off_t can represent 2**63 - 1 correctly.
10065 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10066 since some C++ compilers masquerading as C compilers
10067 incorrectly reject 9223372036854775807. */
10068#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10069 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10070 && LARGE_OFF_T % 2147483647 == 1)
10071 ? 1 : -1];
10072int
10073main ()
10074{
10075
10076 ;
10077 return 0;
10078}
10079_ACEOF
drhf922ca42015-05-14 15:39:18 +000010080if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010081 ac_cv_sys_file_offset_bits=64; break
mlcreech636a9952008-05-05 22:52:56 +000010082fi
drh8b727472009-01-19 18:18:40 +000010083rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10084 ac_cv_sys_file_offset_bits=unknown
mlcreech636a9952008-05-05 22:52:56 +000010085 break
10086done
10087fi
drhf922ca42015-05-14 15:39:18 +000010088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
drh8b727472009-01-19 18:18:40 +000010089$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10090case $ac_cv_sys_file_offset_bits in #(
10091 no | unknown) ;;
10092 *)
mlcreech636a9952008-05-05 22:52:56 +000010093cat >>confdefs.h <<_ACEOF
10094#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10095_ACEOF
drh8b727472009-01-19 18:18:40 +000010096;;
10097esac
10098rm -rf conftest*
10099 if test $ac_cv_sys_file_offset_bits = unknown; then
drhf922ca42015-05-14 15:39:18 +000010100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010101$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010102if ${ac_cv_sys_large_files+:} false; then :
drh8b727472009-01-19 18:18:40 +000010103 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010104else
10105 while :; do
drhf922ca42015-05-14 15:39:18 +000010106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010107/* end confdefs.h. */
10108#include <sys/types.h>
10109 /* Check that off_t can represent 2**63 - 1 correctly.
10110 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10111 since some C++ compilers masquerading as C compilers
10112 incorrectly reject 9223372036854775807. */
10113#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10114 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10115 && LARGE_OFF_T % 2147483647 == 1)
10116 ? 1 : -1];
10117int
10118main ()
10119{
10120
10121 ;
10122 return 0;
10123}
10124_ACEOF
drhf922ca42015-05-14 15:39:18 +000010125if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010126 ac_cv_sys_large_files=no; break
mlcreech636a9952008-05-05 22:52:56 +000010127fi
drh8b727472009-01-19 18:18:40 +000010128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010130/* end confdefs.h. */
10131#define _LARGE_FILES 1
10132#include <sys/types.h>
10133 /* Check that off_t can represent 2**63 - 1 correctly.
10134 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10135 since some C++ compilers masquerading as C compilers
10136 incorrectly reject 9223372036854775807. */
10137#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10138 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10139 && LARGE_OFF_T % 2147483647 == 1)
10140 ? 1 : -1];
10141int
10142main ()
10143{
10144
10145 ;
10146 return 0;
10147}
10148_ACEOF
drhf922ca42015-05-14 15:39:18 +000010149if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010150 ac_cv_sys_large_files=1; break
mlcreech636a9952008-05-05 22:52:56 +000010151fi
drh8b727472009-01-19 18:18:40 +000010152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10153 ac_cv_sys_large_files=unknown
mlcreech636a9952008-05-05 22:52:56 +000010154 break
10155done
10156fi
drhf922ca42015-05-14 15:39:18 +000010157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
drh8b727472009-01-19 18:18:40 +000010158$as_echo "$ac_cv_sys_large_files" >&6; }
10159case $ac_cv_sys_large_files in #(
10160 no | unknown) ;;
10161 *)
mlcreech636a9952008-05-05 22:52:56 +000010162cat >>confdefs.h <<_ACEOF
10163#define _LARGE_FILES $ac_cv_sys_large_files
10164_ACEOF
drh8b727472009-01-19 18:18:40 +000010165;;
10166esac
10167rm -rf conftest*
10168 fi
drhf922ca42015-05-14 15:39:18 +000010169
10170
mlcreech636a9952008-05-05 22:52:56 +000010171fi
10172
10173
10174#########
10175# Check for needed/wanted data types
drhf922ca42015-05-14 15:39:18 +000010176ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10177if test "x$ac_cv_type_int8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010178
10179cat >>confdefs.h <<_ACEOF
10180#define HAVE_INT8_T 1
10181_ACEOF
10182
10183
10184fi
drhf922ca42015-05-14 15:39:18 +000010185ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10186if test "x$ac_cv_type_int16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010187
10188cat >>confdefs.h <<_ACEOF
10189#define HAVE_INT16_T 1
10190_ACEOF
10191
10192
10193fi
drhf922ca42015-05-14 15:39:18 +000010194ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10195if test "x$ac_cv_type_int32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010196
10197cat >>confdefs.h <<_ACEOF
10198#define HAVE_INT32_T 1
10199_ACEOF
10200
10201
10202fi
drhf922ca42015-05-14 15:39:18 +000010203ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10204if test "x$ac_cv_type_int64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010205
10206cat >>confdefs.h <<_ACEOF
10207#define HAVE_INT64_T 1
10208_ACEOF
10209
10210
10211fi
drhf922ca42015-05-14 15:39:18 +000010212ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10213if test "x$ac_cv_type_intptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010214
10215cat >>confdefs.h <<_ACEOF
10216#define HAVE_INTPTR_T 1
10217_ACEOF
10218
10219
10220fi
drhf922ca42015-05-14 15:39:18 +000010221ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10222if test "x$ac_cv_type_uint8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010223
10224cat >>confdefs.h <<_ACEOF
10225#define HAVE_UINT8_T 1
10226_ACEOF
10227
10228
10229fi
drhf922ca42015-05-14 15:39:18 +000010230ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10231if test "x$ac_cv_type_uint16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010232
10233cat >>confdefs.h <<_ACEOF
10234#define HAVE_UINT16_T 1
10235_ACEOF
10236
10237
10238fi
drhf922ca42015-05-14 15:39:18 +000010239ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10240if test "x$ac_cv_type_uint32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010241
10242cat >>confdefs.h <<_ACEOF
10243#define HAVE_UINT32_T 1
10244_ACEOF
10245
10246
10247fi
drhf922ca42015-05-14 15:39:18 +000010248ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10249if test "x$ac_cv_type_uint64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010250
10251cat >>confdefs.h <<_ACEOF
10252#define HAVE_UINT64_T 1
10253_ACEOF
10254
10255
10256fi
drhf922ca42015-05-14 15:39:18 +000010257ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10258if test "x$ac_cv_type_uintptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010259
10260cat >>confdefs.h <<_ACEOF
10261#define HAVE_UINTPTR_T 1
10262_ACEOF
10263
10264
10265fi
mlcreechb87057f2008-03-06 07:19:20 +000010266
10267
10268#########
10269# Check for needed/wanted headers
drh86c5a932012-02-08 12:13:28 +000010270for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
drhf922ca42015-05-14 15:39:18 +000010271do :
10272 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10273ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10274if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
mlcreechb87057f2008-03-06 07:19:20 +000010275 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010276#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000010277_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000010278
mlcreechb87057f2008-03-06 07:19:20 +000010279fi
10280
10281done
10282
10283
10284#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000010285# Figure out whether or not we have these functions
10286#
drhe32a2562016-03-04 02:38:00 +000010287for 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 +000010288do :
10289 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10290ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10291if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
mlcreech5b0a9eb2008-03-09 01:38:09 +000010292 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010293#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000010294_ACEOF
10295
10296fi
10297done
10298
10299
mlcreechab1c47b2008-03-09 02:51:10 +000010300#########
mlcreechf3868112008-03-11 18:03:30 +000010301# By default, we use the amalgamation (this may be changed below...)
10302#
10303USE_AMALGAMATION=1
10304
10305#########
mlcreechab1c47b2008-03-09 02:51:10 +000010306# See whether we can run specific tclsh versions known to work well;
10307# if not, then we fall back to plain tclsh.
10308# TODO: try other versions before falling back?
10309#
drh0b11bcb2017-09-22 00:24:44 +000010310for ac_prog in tclsh8.7 tclsh8.6 tclsh8.5 tclsh
mlcreechab1c47b2008-03-09 02:51:10 +000010311do
10312 # Extract the first word of "$ac_prog", so it can be a program name with args.
10313set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010315$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010316if ${ac_cv_prog_TCLSH_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +000010317 $as_echo_n "(cached) " >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010318else
10319 if test -n "$TCLSH_CMD"; then
10320 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10321else
10322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10323for as_dir in $PATH
10324do
10325 IFS=$as_save_IFS
10326 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010327 for ac_exec_ext in '' $ac_executable_extensions; do
10328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreechab1c47b2008-03-09 02:51:10 +000010329 ac_cv_prog_TCLSH_CMD="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000010331 break 2
10332 fi
10333done
drhf922ca42015-05-14 15:39:18 +000010334 done
drh8b727472009-01-19 18:18:40 +000010335IFS=$as_save_IFS
mlcreechab1c47b2008-03-09 02:51:10 +000010336
10337fi
10338fi
10339TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10340if test -n "$TCLSH_CMD"; then
drhf922ca42015-05-14 15:39:18 +000010341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
drh8b727472009-01-19 18:18:40 +000010342$as_echo "$TCLSH_CMD" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010343else
drhf922ca42015-05-14 15:39:18 +000010344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010345$as_echo "no" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010346fi
10347
drh8b727472009-01-19 18:18:40 +000010348
mlcreechab1c47b2008-03-09 02:51:10 +000010349 test -n "$TCLSH_CMD" && break
10350done
mlcreechf3868112008-03-11 18:03:30 +000010351test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000010352
mlcreechf3868112008-03-11 18:03:30 +000010353if test "$TCLSH_CMD" = "none"; then
10354 # If we can't find a local tclsh, then building the amalgamation will fail.
10355 # We act as though --disable-amalgamation has been used.
10356 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10357 USE_AMALGAMATION=0
10358 TCLSH_CMD="tclsh"
10359fi
mlcreechab1c47b2008-03-09 02:51:10 +000010360
10361
mlcreech5b0a9eb2008-03-09 01:38:09 +000010362
vapier6acb2cf2009-01-28 04:46:28 +000010363if test "x${TCLLIBDIR+set}" != "xset" ; then
10364 TCLLIBDIR='$(libdir)'
10365 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10366 TCLLIBDIR=$i
10367 break
10368 done
10369 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10370fi
10371
10372
mlcreech5b0a9eb2008-03-09 01:38:09 +000010373#########
drh75897232000-05-29 14:26:00 +000010374# Set up an appropriate program prefix
10375#
10376if test "$program_prefix" = "NONE"; then
10377 program_prefix=""
10378fi
10379
a.rottmann84e63352003-03-24 09:42:16 +000010380
drh4b2266a2004-11-27 15:52:16 +000010381VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
drhf922ca42015-05-14 15:39:18 +000010382{ $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010383$as_echo "$as_me: Version set to $VERSION" >&6;}
drh4b2266a2004-11-27 15:52:16 +000010384
10385RELEASE=`cat $srcdir/VERSION`
drhf922ca42015-05-14 15:39:18 +000010386{ $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010387$as_echo "$as_me: Release set to $RELEASE" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010388
vapier6acb2cf2009-01-28 04:46:28 +000010389VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000010390 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000010391 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
drhf922ca42015-05-14 15:39:18 +000010392{ $as_echo "$as_me:${as_lineno-$LINENO}: Version number set to $VERSION_NUMBER" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010393$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010394
drh26d0e2a2005-07-06 13:51:27 +000010395
drh75897232000-05-29 14:26:00 +000010396#########
drh75897232000-05-29 14:26:00 +000010397# Locate a compiler for the build machine. This compiler should
10398# generate command-line programs that run on the build machine.
10399#
vapier7f19c022007-02-17 14:46:31 +000010400if test x"$cross_compiling" = xno; then
10401 BUILD_CC=$CC
10402 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000010403else
vapier7f19c022007-02-17 14:46:31 +000010404 if test "${BUILD_CC+set}" != set; then
10405 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000010406do
10407 # Extract the first word of "$ac_prog", so it can be a program name with args.
10408set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010410$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010411if ${ac_cv_prog_BUILD_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +000010412 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010413else
vapier7f19c022007-02-17 14:46:31 +000010414 if test -n "$BUILD_CC"; then
10415 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000010416else
a.rottmann84e63352003-03-24 09:42:16 +000010417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10418for as_dir in $PATH
10419do
10420 IFS=$as_save_IFS
10421 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010422 for ac_exec_ext in '' $ac_executable_extensions; do
10423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier7f19c022007-02-17 14:46:31 +000010424 ac_cv_prog_BUILD_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000010426 break 2
10427 fi
10428done
drhf922ca42015-05-14 15:39:18 +000010429 done
drh8b727472009-01-19 18:18:40 +000010430IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000010431
drh71eb93e2001-09-28 01:34:43 +000010432fi
10433fi
vapier7f19c022007-02-17 14:46:31 +000010434BUILD_CC=$ac_cv_prog_BUILD_CC
10435if test -n "$BUILD_CC"; then
drhf922ca42015-05-14 15:39:18 +000010436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
drh8b727472009-01-19 18:18:40 +000010437$as_echo "$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010438else
drhf922ca42015-05-14 15:39:18 +000010439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010440$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010441fi
drh75897232000-05-29 14:26:00 +000010442
drh8b727472009-01-19 18:18:40 +000010443
vapier7f19c022007-02-17 14:46:31 +000010444 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000010445done
drh75897232000-05-29 14:26:00 +000010446
vapier7f19c022007-02-17 14:46:31 +000010447 fi
10448 if test "${BUILD_CFLAGS+set}" != set; then
10449 BUILD_CFLAGS="-g"
10450 fi
drh71eb93e2001-09-28 01:34:43 +000010451fi
10452
a.rottmann84e63352003-03-24 09:42:16 +000010453
drh297ecf12001-04-05 15:57:13 +000010454##########
dougcurrie0f290bf2004-06-21 18:57:29 +000010455# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000010456#
drh8b727472009-01-19 18:18:40 +000010457# Check whether --enable-threadsafe was given.
drhf922ca42015-05-14 15:39:18 +000010458if test "${enable_threadsafe+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010459 enableval=$enable_threadsafe;
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 :
drh8fa622d2018-06-11 19:47:14 +000011252 enableval=$enable_debug;
drh8b727472009-01-19 18:18:40 +000011253fi
11254
drh8fa622d2018-06-11 19:47:14 +000011255if test "${enable_debug}" = "yes" ; then
drh32d0eba2017-04-05 10:54:14 +000011256 TARGET_DEBUG="-DSQLITE_DEBUG=1 -DSQLITE_ENABLE_SELECTTRACE -DSQLITE_ENABLE_WHERETRACE -O0"
tpoindex9d9f76c2005-01-03 21:28:56 +000011257else
11258 TARGET_DEBUG="-DNDEBUG"
11259fi
11260
11261
11262#########
mlcreech94984912008-03-04 19:03:08 +000011263# See whether we should use the amalgamation to build
drh8b727472009-01-19 18:18:40 +000011264# Check whether --enable-amalgamation was given.
drhf922ca42015-05-14 15:39:18 +000011265if test "${enable_amalgamation+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011266 enableval=$enable_amalgamation;
drh8b727472009-01-19 18:18:40 +000011267fi
11268
drh8fa622d2018-06-11 19:47:14 +000011269if test "${enable_amalgamation}" == "no" ; then
mlcreech94984912008-03-04 19:03:08 +000011270 USE_AMALGAMATION=0
11271fi
11272
11273
11274#########
drh56c93112017-11-24 16:55:48 +000011275# Look for zlib. Only needed by extensions and by the sqlite3.exe shell
11276for ac_header in zlib.h
11277do :
11278 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
11279if test "x$ac_cv_header_zlib_h" = xyes; then :
11280 cat >>confdefs.h <<_ACEOF
11281#define HAVE_ZLIB_H 1
11282_ACEOF
11283
11284fi
11285
11286done
11287
11288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
11289$as_echo_n "checking for library containing deflate... " >&6; }
11290if ${ac_cv_search_deflate+:} false; then :
11291 $as_echo_n "(cached) " >&6
11292else
11293 ac_func_search_save_LIBS=$LIBS
11294cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11295/* end confdefs.h. */
11296
11297/* Override any GCC internal prototype to avoid an error.
11298 Use char because int might match the return type of a GCC
11299 builtin and then its argument prototype would still apply. */
11300#ifdef __cplusplus
11301extern "C"
11302#endif
11303char deflate ();
11304int
11305main ()
11306{
11307return deflate ();
11308 ;
11309 return 0;
11310}
11311_ACEOF
11312for ac_lib in '' z; do
11313 if test -z "$ac_lib"; then
11314 ac_res="none required"
11315 else
11316 ac_res=-l$ac_lib
11317 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11318 fi
11319 if ac_fn_c_try_link "$LINENO"; then :
11320 ac_cv_search_deflate=$ac_res
11321fi
11322rm -f core conftest.err conftest.$ac_objext \
11323 conftest$ac_exeext
11324 if ${ac_cv_search_deflate+:} false; then :
11325 break
11326fi
11327done
11328if ${ac_cv_search_deflate+:} false; then :
11329
11330else
11331 ac_cv_search_deflate=no
11332fi
11333rm conftest.$ac_ext
11334LIBS=$ac_func_search_save_LIBS
11335fi
11336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
11337$as_echo "$ac_cv_search_deflate" >&6; }
11338ac_res=$ac_cv_search_deflate
11339if test "$ac_res" != no; then :
11340 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11341 HAVE_ZLIB="-DSQLITE_HAVE_ZLIB=1"
11342else
11343 HAVE_ZLIB=""
11344fi
11345
11346
11347
11348#########
mlcreecha4edab02008-03-06 04:14:17 +000011349# See whether we should allow loadable extensions
drh8b727472009-01-19 18:18:40 +000011350# Check whether --enable-load-extension was given.
drhf922ca42015-05-14 15:39:18 +000011351if test "${enable_load_extension+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011352 enableval=$enable_load_extension;
mlcreecha4edab02008-03-06 04:14:17 +000011353else
drh8fa622d2018-06-11 19:47:14 +000011354 enable_load_extension=yes
drh8b727472009-01-19 18:18:40 +000011355fi
11356
drh8fa622d2018-06-11 19:47:14 +000011357if test "${enable_load_extension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000011358 OPT_FEATURE_FLAGS=""
drhf922ca42015-05-14 15:39:18 +000011359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011360$as_echo_n "checking for library containing dlopen... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011361if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011362 $as_echo_n "(cached) " >&6
11363else
11364 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drhdbe4b882011-06-20 18:00:17 +000011366/* end confdefs.h. */
11367
11368/* Override any GCC internal prototype to avoid an error.
11369 Use char because int might match the return type of a GCC
11370 builtin and then its argument prototype would still apply. */
11371#ifdef __cplusplus
11372extern "C"
11373#endif
11374char dlopen ();
11375int
11376main ()
11377{
11378return dlopen ();
11379 ;
11380 return 0;
11381}
11382_ACEOF
11383for ac_lib in '' dl; do
11384 if test -z "$ac_lib"; then
11385 ac_res="none required"
11386 else
11387 ac_res=-l$ac_lib
11388 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11389 fi
drhf922ca42015-05-14 15:39:18 +000011390 if ac_fn_c_try_link "$LINENO"; then :
drhdbe4b882011-06-20 18:00:17 +000011391 ac_cv_search_dlopen=$ac_res
drhdbe4b882011-06-20 18:00:17 +000011392fi
drhf922ca42015-05-14 15:39:18 +000011393rm -f core conftest.err conftest.$ac_objext \
11394 conftest$ac_exeext
11395 if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011396 break
11397fi
11398done
drhf922ca42015-05-14 15:39:18 +000011399if ${ac_cv_search_dlopen+:} false; then :
11400
drhdbe4b882011-06-20 18:00:17 +000011401else
11402 ac_cv_search_dlopen=no
11403fi
11404rm conftest.$ac_ext
11405LIBS=$ac_func_search_save_LIBS
11406fi
drhf922ca42015-05-14 15:39:18 +000011407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011408$as_echo "$ac_cv_search_dlopen" >&6; }
11409ac_res=$ac_cv_search_dlopen
drhf922ca42015-05-14 15:39:18 +000011410if test "$ac_res" != no; then :
drhdbe4b882011-06-20 18:00:17 +000011411 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11412
11413fi
11414
mlcreecha4edab02008-03-06 04:14:17 +000011415else
shanefbedede2008-07-22 05:05:01 +000011416 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000011417fi
11418
drhc530b9c2016-07-25 11:27:22 +000011419##########
11420# Do we want to support memsys3 and/or memsys5
11421#
drhc530b9c2016-07-25 11:27:22 +000011422# Check whether --enable-memsys5 was given.
11423if test "${enable_memsys5+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011424 enableval=$enable_memsys5;
drhc530b9c2016-07-25 11:27:22 +000011425fi
11426
11427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5
11428$as_echo_n "checking whether to support MEMSYS5... " >&6; }
drh26197d12016-07-25 11:32:09 +000011429if test "${enable_memsys5}" = "yes"; then
drh8c9ed052017-05-29 17:43:06 +000011430 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS5"
drhc530b9c2016-07-25 11:27:22 +000011431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11432$as_echo "yes" >&6; }
11433else
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11435$as_echo "no" >&6; }
11436fi
drh5d513ba2016-07-25 11:57:21 +000011437# Check whether --enable-memsys3 was given.
11438if test "${enable_memsys3+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011439 enableval=$enable_memsys3;
drh5d513ba2016-07-25 11:57:21 +000011440fi
11441
11442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5
11443$as_echo_n "checking whether to support MEMSYS3... " >&6; }
11444if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then
drh8c9ed052017-05-29 17:43:06 +000011445 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_MEMSYS3"
drh5d513ba2016-07-25 11:57:21 +000011446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11447$as_echo "yes" >&6; }
11448else
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11450$as_echo "no" >&6; }
11451fi
drhc530b9c2016-07-25 11:27:22 +000011452
mlcreechaac7b932008-04-01 02:45:22 +000011453#########
drhce1d9f52015-10-09 12:48:33 +000011454# See whether we should enable Full Text Search extensions
11455# Check whether --enable-fts3 was given.
11456if test "${enable_fts3+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011457 enableval=$enable_fts3;
drhce1d9f52015-10-09 12:48:33 +000011458fi
11459
11460if test "${enable_fts3}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011461 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS3"
drhce1d9f52015-10-09 12:48:33 +000011462fi
11463# Check whether --enable-fts4 was given.
11464if test "${enable_fts4+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011465 enableval=$enable_fts4;
drhce1d9f52015-10-09 12:48:33 +000011466fi
11467
11468if test "${enable_fts4}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011469 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS4"
drhce1d9f52015-10-09 12:48:33 +000011470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11471$as_echo_n "checking for library containing log... " >&6; }
11472if ${ac_cv_search_log+:} false; then :
11473 $as_echo_n "(cached) " >&6
11474else
11475 ac_func_search_save_LIBS=$LIBS
11476cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11477/* end confdefs.h. */
11478
11479/* Override any GCC internal prototype to avoid an error.
11480 Use char because int might match the return type of a GCC
11481 builtin and then its argument prototype would still apply. */
11482#ifdef __cplusplus
11483extern "C"
11484#endif
11485char log ();
11486int
11487main ()
11488{
11489return log ();
11490 ;
11491 return 0;
11492}
11493_ACEOF
11494for ac_lib in '' m; do
11495 if test -z "$ac_lib"; then
11496 ac_res="none required"
11497 else
11498 ac_res=-l$ac_lib
11499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11500 fi
11501 if ac_fn_c_try_link "$LINENO"; then :
11502 ac_cv_search_log=$ac_res
11503fi
11504rm -f core conftest.err conftest.$ac_objext \
11505 conftest$ac_exeext
11506 if ${ac_cv_search_log+:} false; then :
11507 break
11508fi
11509done
11510if ${ac_cv_search_log+:} false; then :
11511
11512else
11513 ac_cv_search_log=no
11514fi
11515rm conftest.$ac_ext
11516LIBS=$ac_func_search_save_LIBS
11517fi
11518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11519$as_echo "$ac_cv_search_log" >&6; }
11520ac_res=$ac_cv_search_log
11521if test "$ac_res" != no; then :
11522 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11523
11524fi
11525
11526fi
11527# Check whether --enable-fts5 was given.
11528if test "${enable_fts5+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011529 enableval=$enable_fts5;
drhce1d9f52015-10-09 12:48:33 +000011530fi
11531
11532if test "${enable_fts5}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011533 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_FTS5"
drhce1d9f52015-10-09 12:48:33 +000011534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11535$as_echo_n "checking for library containing log... " >&6; }
11536if ${ac_cv_search_log+:} false; then :
11537 $as_echo_n "(cached) " >&6
11538else
11539 ac_func_search_save_LIBS=$LIBS
11540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11541/* end confdefs.h. */
11542
11543/* Override any GCC internal prototype to avoid an error.
11544 Use char because int might match the return type of a GCC
11545 builtin and then its argument prototype would still apply. */
11546#ifdef __cplusplus
11547extern "C"
11548#endif
11549char log ();
11550int
11551main ()
11552{
11553return log ();
11554 ;
11555 return 0;
11556}
11557_ACEOF
11558for ac_lib in '' m; do
11559 if test -z "$ac_lib"; then
11560 ac_res="none required"
11561 else
11562 ac_res=-l$ac_lib
11563 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11564 fi
11565 if ac_fn_c_try_link "$LINENO"; then :
11566 ac_cv_search_log=$ac_res
11567fi
11568rm -f core conftest.err conftest.$ac_objext \
11569 conftest$ac_exeext
11570 if ${ac_cv_search_log+:} false; then :
11571 break
11572fi
11573done
11574if ${ac_cv_search_log+:} false; then :
11575
11576else
11577 ac_cv_search_log=no
11578fi
11579rm conftest.$ac_ext
11580LIBS=$ac_func_search_save_LIBS
11581fi
11582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11583$as_echo "$ac_cv_search_log" >&6; }
11584ac_res=$ac_cv_search_log
11585if test "$ac_res" != no; then :
11586 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11587
11588fi
11589
11590fi
11591
11592#########
11593# See whether we should enable JSON1
11594# Check whether --enable-json1 was given.
11595if test "${enable_json1+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011596 enableval=$enable_json1;
drhce1d9f52015-10-09 12:48:33 +000011597fi
11598
11599if test "${enable_json1}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011600 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_JSON1"
drhce1d9f52015-10-09 12:48:33 +000011601fi
11602
11603#########
drh83bebdd2017-08-28 17:00:12 +000011604# See whether we should enable the LIMIT clause on UPDATE and DELETE
11605# statements.
11606# Check whether --enable-update-limit was given.
11607if test "${enable_update_limit+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011608 enableval=$enable_update_limit;
drh83bebdd2017-08-28 17:00:12 +000011609fi
11610
11611if test "${enable_udlimit}" = "yes" ; then
11612 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT"
11613fi
11614
11615#########
drh748b8fd2018-05-25 19:22:47 +000011616# See whether we should enable GEOPOLY
11617# Check whether --enable-geopoly was given.
11618if test "${enable_geopoly+set}" = set; then :
11619 enableval=$enable_geopoly; enable_geopoly=yes
11620else
11621 enable_geopoly=no
11622fi
11623
11624if test "${enable_geopoly}" = "yes" ; then
11625 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_GEOPOLY"
11626 enable_rtree=yes
11627fi
11628
11629#########
drhce1d9f52015-10-09 12:48:33 +000011630# See whether we should enable RTREE
11631# Check whether --enable-rtree was given.
11632if test "${enable_rtree+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011633 enableval=$enable_rtree;
drhce1d9f52015-10-09 12:48:33 +000011634fi
11635
11636if test "${enable_rtree}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011637 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_RTREE"
drhce1d9f52015-10-09 12:48:33 +000011638fi
11639
11640#########
drh5e18d402016-05-03 13:14:18 +000011641# See whether we should enable the SESSION extension
11642# Check whether --enable-session was given.
11643if test "${enable_session+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011644 enableval=$enable_session;
drh5e18d402016-05-03 13:14:18 +000011645fi
11646
11647if test "${enable_session}" = "yes" ; then
drh8c9ed052017-05-29 17:43:06 +000011648 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_SESSION"
11649 OPT_FEATURE_FLAGS="${OPT_FEATURE_FLAGS} -DSQLITE_ENABLE_PREUPDATE_HOOK"
drh5e18d402016-05-03 13:14:18 +000011650fi
11651
11652#########
drh8c9ed052017-05-29 17:43:06 +000011653# attempt to duplicate any OMITS and ENABLES into the ${OPT_FEATURE_FLAGS} parameter
shanefbedede2008-07-22 05:05:01 +000011654for option in $CFLAGS $CPPFLAGS
11655do
11656 case $option in
danielk197733a14782008-08-04 14:50:05 +000011657 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shaneb1cd7302008-10-22 18:27:31 +000011658 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011659 esac
11660done
11661
11662
danielk197733a14782008-08-04 14:50:05 +000011663
shaneb1cd7302008-10-22 18:27:31 +000011664# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011665ac_temp_CFLAGS=""
11666for option in $CFLAGS
11667do
11668 case $option in
11669 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011670 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011671 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011672 esac
11673done
11674CFLAGS=$ac_temp_CFLAGS
11675
11676
shaneb1cd7302008-10-22 18:27:31 +000011677# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011678ac_temp_CPPFLAGS=""
11679for option in $CPPFLAGS
11680do
11681 case $option in
11682 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011683 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011684 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011685 esac
11686done
11687CPPFLAGS=$ac_temp_CPPFLAGS
11688
danielk197733a14782008-08-04 14:50:05 +000011689
drh8b727472009-01-19 18:18:40 +000011690# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011691ac_temp_BUILD_CFLAGS=""
11692for option in $BUILD_CFLAGS
11693do
11694 case $option in
11695 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011696 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011697 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011698 esac
11699done
11700BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11701
11702
11703#########
11704# See whether we should use GCOV
drh8b727472009-01-19 18:18:40 +000011705# Check whether --enable-gcov was given.
drhf922ca42015-05-14 15:39:18 +000011706if test "${enable_gcov+set}" = set; then :
drh8fa622d2018-06-11 19:47:14 +000011707 enableval=$enable_gcov;
drh8b727472009-01-19 18:18:40 +000011708fi
11709
mlcreechaac7b932008-04-01 02:45:22 +000011710if test "${use_gcov}" = "yes" ; then
11711 USE_GCOV=1
11712else
11713 USE_GCOV=0
11714fi
11715
11716
danielk197733a14782008-08-04 14:50:05 +000011717
drh2dfbbca2000-07-28 14:32:48 +000011718#########
mlcreechb87057f2008-03-06 07:19:20 +000011719# Output the config header
drh8b727472009-01-19 18:18:40 +000011720ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000011721
11722
11723#########
drh75897232000-05-29 14:26:00 +000011724# Generate the output files.
11725#
mlcreechdf59c7c2008-03-06 07:51:15 +000011726
drh8b727472009-01-19 18:18:40 +000011727ac_config_files="$ac_config_files Makefile sqlite3.pc"
11728
drh71eb93e2001-09-28 01:34:43 +000011729cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000011730# This file is a shell script that caches the results of configure
11731# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000011732# scripts and configure runs, see configure's option --config-cache.
11733# It is not useful on other systems. If it contains results you don't
11734# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000011735#
drh71eb93e2001-09-28 01:34:43 +000011736# config.status only pays attention to the cache file if you give it
11737# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000011738#
a.rottmann84e63352003-03-24 09:42:16 +000011739# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000011740# loading this file, other *unset* `ac_cv_foo' will be assigned the
11741# following values.
11742
11743_ACEOF
11744
drh75897232000-05-29 14:26:00 +000011745# The following way of writing the cache mishandles newlines in values,
11746# but we know of no workaround that is simple, portable, and efficient.
drh8b727472009-01-19 18:18:40 +000011747# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000011748# Ultrix sh set writes to stderr and can't be redirected directly,
11749# and sets the high bit in the cache file unless we assign to the vars.
drh8b727472009-01-19 18:18:40 +000011750(
11751 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11752 eval ac_val=\$$ac_var
11753 case $ac_val in #(
11754 *${as_nl}*)
11755 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +000011756 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11757$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +000011758 esac
11759 case $ac_var in #(
11760 _ | IFS | as_nl) ;; #(
11761 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +000011762 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +000011763 esac ;;
11764 esac
11765 done
11766
drh71eb93e2001-09-28 01:34:43 +000011767 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +000011768 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11769 *${as_nl}ac_space=\ *)
drhf922ca42015-05-14 15:39:18 +000011770 # `set' does not quote correctly, so add quotes: double-quote
11771 # substitution turns \\\\ into \\, and sed turns \\ into \.
drh71eb93e2001-09-28 01:34:43 +000011772 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000011773 "s/'/'\\\\''/g;
11774 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh8b727472009-01-19 18:18:40 +000011775 ;; #(
drh71eb93e2001-09-28 01:34:43 +000011776 *)
11777 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh8b727472009-01-19 18:18:40 +000011778 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000011779 ;;
drh8b727472009-01-19 18:18:40 +000011780 esac |
11781 sort
11782) |
drh71eb93e2001-09-28 01:34:43 +000011783 sed '
drh8b727472009-01-19 18:18:40 +000011784 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000011785 t clear
drh8b727472009-01-19 18:18:40 +000011786 :clear
drh71eb93e2001-09-28 01:34:43 +000011787 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11788 t end
drh8b727472009-01-19 18:18:40 +000011789 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11790 :end' >>confcache
11791if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11792 if test -w "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +000011793 if test "x$cache_file" != "x/dev/null"; then
11794 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011795$as_echo "$as_me: updating cache $cache_file" >&6;}
drhf922ca42015-05-14 15:39:18 +000011796 if test ! -f "$cache_file" || test -h "$cache_file"; then
11797 cat confcache >"$cache_file"
11798 else
11799 case $cache_file in #(
11800 */* | ?:*)
11801 mv -f confcache "$cache_file"$$ &&
11802 mv -f "$cache_file"$$ "$cache_file" ;; #(
11803 *)
11804 mv -f confcache "$cache_file" ;;
11805 esac
11806 fi
11807 fi
drh75897232000-05-29 14:26:00 +000011808 else
drhf922ca42015-05-14 15:39:18 +000011809 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011810$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000011811 fi
11812fi
11813rm -f confcache
11814
drh75897232000-05-29 14:26:00 +000011815test "x$prefix" = xNONE && prefix=$ac_default_prefix
11816# Let make expand exec_prefix.
11817test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11818
mlcreechb87057f2008-03-06 07:19:20 +000011819DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000011820
11821ac_libobjs=
11822ac_ltlibobjs=
drhf922ca42015-05-14 15:39:18 +000011823U=
a.rottmann84e63352003-03-24 09:42:16 +000011824for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11825 # 1. Remove the extension, and $U if already installed.
drh8b727472009-01-19 18:18:40 +000011826 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11827 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11828 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11829 # will be set to the directory where LIBOBJS objects are built.
drhf922ca42015-05-14 15:39:18 +000011830 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11831 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000011832done
11833LIBOBJS=$ac_libobjs
11834
11835LTLIBOBJS=$ac_ltlibobjs
11836
11837
11838
drhf922ca42015-05-14 15:39:18 +000011839: "${CONFIG_STATUS=./config.status}"
drh8b727472009-01-19 18:18:40 +000011840ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000011841ac_clean_files_save=$ac_clean_files
11842ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drhf922ca42015-05-14 15:39:18 +000011843{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
drh8b727472009-01-19 18:18:40 +000011844$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
drhf922ca42015-05-14 15:39:18 +000011845as_write_fail=0
11846cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011847#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000011848# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000011849# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000011850# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000011851# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000011852
drh71eb93e2001-09-28 01:34:43 +000011853debug=false
a.rottmann84e63352003-03-24 09:42:16 +000011854ac_cs_recheck=false
11855ac_cs_silent=false
drh710658c2012-01-16 13:00:05 +000011856
drhf922ca42015-05-14 15:39:18 +000011857SHELL=\${CONFIG_SHELL-$SHELL}
11858export SHELL
11859_ASEOF
11860cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11861## -------------------- ##
11862## M4sh Initialization. ##
11863## -------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000011864
drh8b727472009-01-19 18:18:40 +000011865# Be more Bourne compatible
11866DUALCASE=1; export DUALCASE # for MKS sh
drhf922ca42015-05-14 15:39:18 +000011867if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
drh71eb93e2001-09-28 01:34:43 +000011868 emulate sh
11869 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000011870 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000011871 # is contrary to our usage. Disable this feature.
11872 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000011873 setopt NO_GLOB_SUBST
11874else
drhf922ca42015-05-14 15:39:18 +000011875 case `(set -o) 2>/dev/null` in #(
11876 *posix*) :
11877 set -o posix ;; #(
11878 *) :
11879 ;;
drh8b727472009-01-19 18:18:40 +000011880esac
a.rottmann84e63352003-03-24 09:42:16 +000011881fi
drh8b727472009-01-19 18:18:40 +000011882
11883
drh8b727472009-01-19 18:18:40 +000011884as_nl='
11885'
11886export as_nl
11887# Printing a long string crashes Solaris 7 /usr/bin/printf.
11888as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11889as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11890as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
drhf922ca42015-05-14 15:39:18 +000011891# Prefer a ksh shell builtin over an external printf program on Solaris,
11892# but without wasting forks for bash or zsh.
11893if test -z "$BASH_VERSION$ZSH_VERSION" \
11894 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11895 as_echo='print -r --'
11896 as_echo_n='print -rn --'
11897elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
drh8b727472009-01-19 18:18:40 +000011898 as_echo='printf %s\n'
11899 as_echo_n='printf %s'
11900else
11901 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11902 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11903 as_echo_n='/usr/ucb/echo -n'
11904 else
11905 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11906 as_echo_n_body='eval
11907 arg=$1;
drhf922ca42015-05-14 15:39:18 +000011908 case $arg in #(
drh8b727472009-01-19 18:18:40 +000011909 *"$as_nl"*)
11910 expr "X$arg" : "X\\(.*\\)$as_nl";
11911 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11912 esac;
11913 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11914 '
11915 export as_echo_n_body
11916 as_echo_n='sh -c $as_echo_n_body as_echo'
11917 fi
11918 export as_echo_body
11919 as_echo='sh -c $as_echo_body as_echo'
11920fi
11921
11922# The user is always right.
11923if test "${PATH_SEPARATOR+set}" != set; then
11924 PATH_SEPARATOR=:
11925 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11926 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11927 PATH_SEPARATOR=';'
11928 }
11929fi
a.rottmann84e63352003-03-24 09:42:16 +000011930
mlcreech94984912008-03-04 19:03:08 +000011931
drh8b727472009-01-19 18:18:40 +000011932# IFS
11933# We need space, tab and new line, in precisely that order. Quoting is
11934# there to prevent editors from complaining about space-tab.
11935# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11936# splitting by setting IFS to empty value.)
11937IFS=" "" $as_nl"
11938
11939# Find who we are. Look in the path if we contain no directory separator.
drhf922ca42015-05-14 15:39:18 +000011940as_myself=
11941case $0 in #((
drh8b727472009-01-19 18:18:40 +000011942 *[\\/]* ) as_myself=$0 ;;
11943 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11944for as_dir in $PATH
11945do
11946 IFS=$as_save_IFS
11947 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000011948 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11949 done
drh8b727472009-01-19 18:18:40 +000011950IFS=$as_save_IFS
11951
11952 ;;
11953esac
11954# We did not find ourselves, most probably we were run as `sh COMMAND'
11955# in which case we are not to be found in the path.
11956if test "x$as_myself" = x; then
11957 as_myself=$0
11958fi
11959if test ! -f "$as_myself"; then
11960 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
drhf922ca42015-05-14 15:39:18 +000011961 exit 1
drh8b727472009-01-19 18:18:40 +000011962fi
11963
drhf922ca42015-05-14 15:39:18 +000011964# Unset variables that we do not need and which cause bugs (e.g. in
11965# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11966# suppresses any "Segmentation fault" message there. '((' could
11967# trigger a bug in pdksh 5.2.14.
11968for as_var in BASH_ENV ENV MAIL MAILPATH
11969do eval test x\${$as_var+set} = xset \
11970 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
drh8b727472009-01-19 18:18:40 +000011971done
mlcreech94984912008-03-04 19:03:08 +000011972PS1='$ '
11973PS2='> '
11974PS4='+ '
11975
11976# NLS nuisances.
drh8b727472009-01-19 18:18:40 +000011977LC_ALL=C
11978export LC_ALL
11979LANGUAGE=C
11980export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000011981
drhf922ca42015-05-14 15:39:18 +000011982# CDPATH.
11983(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11984
11985
11986# as_fn_error STATUS ERROR [LINENO LOG_FD]
11987# ----------------------------------------
11988# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11989# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11990# script with STATUS, using 1 if that was 0.
11991as_fn_error ()
11992{
11993 as_status=$1; test $as_status -eq 0 && as_status=1
11994 if test "$4"; then
11995 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11996 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11997 fi
11998 $as_echo "$as_me: error: $2" >&2
11999 as_fn_exit $as_status
12000} # as_fn_error
12001
12002
12003# as_fn_set_status STATUS
12004# -----------------------
12005# Set $? to STATUS, without forking.
12006as_fn_set_status ()
12007{
12008 return $1
12009} # as_fn_set_status
12010
12011# as_fn_exit STATUS
12012# -----------------
12013# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12014as_fn_exit ()
12015{
12016 set +e
12017 as_fn_set_status $1
12018 exit $1
12019} # as_fn_exit
12020
12021# as_fn_unset VAR
12022# ---------------
12023# Portably unset VAR.
12024as_fn_unset ()
12025{
12026 { eval $1=; unset $1;}
12027}
12028as_unset=as_fn_unset
12029# as_fn_append VAR VALUE
12030# ----------------------
12031# Append the text in VALUE to the end of the definition contained in VAR. Take
12032# advantage of any shell optimizations that allow amortized linear growth over
12033# repeated appends, instead of the typical quadratic growth present in naive
12034# implementations.
12035if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12036 eval 'as_fn_append ()
12037 {
12038 eval $1+=\$2
12039 }'
12040else
12041 as_fn_append ()
12042 {
12043 eval $1=\$$1\$2
12044 }
12045fi # as_fn_append
12046
12047# as_fn_arith ARG...
12048# ------------------
12049# Perform arithmetic evaluation on the ARGs, and store the result in the
12050# global $as_val. Take advantage of shells that can avoid forks. The arguments
12051# must be portable across $(()) and expr.
12052if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12053 eval 'as_fn_arith ()
12054 {
12055 as_val=$(( $* ))
12056 }'
12057else
12058 as_fn_arith ()
12059 {
12060 as_val=`expr "$@" || test $? -eq 1`
12061 }
12062fi # as_fn_arith
12063
12064
drh8b727472009-01-19 18:18:40 +000012065if expr a : '\(a\)' >/dev/null 2>&1 &&
12066 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +000012067 as_expr=expr
12068else
12069 as_expr=false
12070fi
12071
drh8b727472009-01-19 18:18:40 +000012072if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000012073 as_basename=basename
12074else
12075 as_basename=false
12076fi
12077
drhf922ca42015-05-14 15:39:18 +000012078if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12079 as_dirname=dirname
12080else
12081 as_dirname=false
12082fi
mlcreech94984912008-03-04 19:03:08 +000012083
drh8b727472009-01-19 18:18:40 +000012084as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +000012085$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12086 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000012087 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12088$as_echo X/"$0" |
12089 sed '/^.*\/\([^/][^/]*\)\/*$/{
12090 s//\1/
12091 q
12092 }
12093 /^X\/\(\/\/\)$/{
12094 s//\1/
12095 q
12096 }
12097 /^X\/\(\/\).*/{
12098 s//\1/
12099 q
12100 }
12101 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000012102
drhf922ca42015-05-14 15:39:18 +000012103# Avoid depending upon Character Ranges.
12104as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12105as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12106as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12107as_cr_digits='0123456789'
12108as_cr_alnum=$as_cr_Letters$as_cr_digits
drh866108f2008-05-13 00:57:21 +000012109
drh8b727472009-01-19 18:18:40 +000012110ECHO_C= ECHO_N= ECHO_T=
drhf922ca42015-05-14 15:39:18 +000012111case `echo -n x` in #(((((
drh8b727472009-01-19 18:18:40 +000012112-n*)
drhf922ca42015-05-14 15:39:18 +000012113 case `echo 'xy\c'` in
drh8b727472009-01-19 18:18:40 +000012114 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drhf922ca42015-05-14 15:39:18 +000012115 xy) ECHO_C='\c';;
12116 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12117 ECHO_T=' ';;
drh8b727472009-01-19 18:18:40 +000012118 esac;;
12119*)
12120 ECHO_N='-n';;
12121esac
drh71eb93e2001-09-28 01:34:43 +000012122
12123rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +000012124if test -d conf$$.dir; then
12125 rm -f conf$$.dir/conf$$.file
12126else
12127 rm -f conf$$.dir
12128 mkdir conf$$.dir 2>/dev/null
12129fi
12130if (echo >conf$$.file) 2>/dev/null; then
12131 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +000012132 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +000012133 # ... but there are two gotchas:
12134 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12135 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
drhf922ca42015-05-14 15:39:18 +000012136 # In both cases, we have to default to `cp -pR'.
drh8b727472009-01-19 18:18:40 +000012137 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
drhf922ca42015-05-14 15:39:18 +000012138 as_ln_s='cp -pR'
drh8b727472009-01-19 18:18:40 +000012139 elif ln conf$$.file conf$$ 2>/dev/null; then
12140 as_ln_s=ln
12141 else
drhf922ca42015-05-14 15:39:18 +000012142 as_ln_s='cp -pR'
mlcreech636a9952008-05-05 22:52:56 +000012143 fi
drh71eb93e2001-09-28 01:34:43 +000012144else
drhf922ca42015-05-14 15:39:18 +000012145 as_ln_s='cp -pR'
drh71eb93e2001-09-28 01:34:43 +000012146fi
drh8b727472009-01-19 18:18:40 +000012147rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12148rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000012149
drhf922ca42015-05-14 15:39:18 +000012150
12151# as_fn_mkdir_p
12152# -------------
12153# Create "$as_dir" as a directory, including parents if necessary.
12154as_fn_mkdir_p ()
12155{
12156
12157 case $as_dir in #(
12158 -*) as_dir=./$as_dir;;
12159 esac
12160 test -d "$as_dir" || eval $as_mkdir_p || {
12161 as_dirs=
12162 while :; do
12163 case $as_dir in #(
12164 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12165 *) as_qdir=$as_dir;;
12166 esac
12167 as_dirs="'$as_qdir' $as_dirs"
12168 as_dir=`$as_dirname -- "$as_dir" ||
12169$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12170 X"$as_dir" : 'X\(//\)[^/]' \| \
12171 X"$as_dir" : 'X\(//\)$' \| \
12172 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12173$as_echo X"$as_dir" |
12174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12175 s//\1/
12176 q
12177 }
12178 /^X\(\/\/\)[^/].*/{
12179 s//\1/
12180 q
12181 }
12182 /^X\(\/\/\)$/{
12183 s//\1/
12184 q
12185 }
12186 /^X\(\/\).*/{
12187 s//\1/
12188 q
12189 }
12190 s/.*/./; q'`
12191 test -d "$as_dir" && break
12192 done
12193 test -z "$as_dirs" || eval "mkdir $as_dirs"
12194 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12195
12196
12197} # as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000012198if mkdir -p . 2>/dev/null; then
drhf922ca42015-05-14 15:39:18 +000012199 as_mkdir_p='mkdir -p "$as_dir"'
drh71eb93e2001-09-28 01:34:43 +000012200else
a.rottmann964dbb12004-02-26 19:47:42 +000012201 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000012202 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000012203fi
12204
drhf922ca42015-05-14 15:39:18 +000012205
12206# as_fn_executable_p FILE
12207# -----------------------
12208# Test if FILE is an executable regular file.
12209as_fn_executable_p ()
12210{
12211 test -f "$1" && test -x "$1"
12212} # as_fn_executable_p
12213as_test_x='test -x'
12214as_executable_p=as_fn_executable_p
a.rottmann84e63352003-03-24 09:42:16 +000012215
12216# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000012217as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012218
12219# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000012220as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012221
drh71eb93e2001-09-28 01:34:43 +000012222
drh71eb93e2001-09-28 01:34:43 +000012223exec 6>&1
drhf922ca42015-05-14 15:39:18 +000012224## ----------------------------------- ##
12225## Main body of $CONFIG_STATUS script. ##
12226## ----------------------------------- ##
12227_ASEOF
12228test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012229
drhf922ca42015-05-14 15:39:18 +000012230cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12231# Save the log message, to keep $0 and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000012232# report actual input values of CONFIG_FILES etc. instead of their
drh8b727472009-01-19 18:18:40 +000012233# values after options handling.
12234ac_log="
drh83acc142019-02-12 15:51:36 +000012235This file was extended by sqlite $as_me 3.28.0, which was
drhf922ca42015-05-14 15:39:18 +000012236generated by GNU Autoconf 2.69. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000012237
12238 CONFIG_FILES = $CONFIG_FILES
12239 CONFIG_HEADERS = $CONFIG_HEADERS
12240 CONFIG_LINKS = $CONFIG_LINKS
12241 CONFIG_COMMANDS = $CONFIG_COMMANDS
12242 $ $0 $@
12243
drh8b727472009-01-19 18:18:40 +000012244on `(hostname || uname -n) 2>/dev/null | sed 1q`
12245"
12246
drh71eb93e2001-09-28 01:34:43 +000012247_ACEOF
12248
drhf922ca42015-05-14 15:39:18 +000012249case $ac_config_files in *"
12250"*) set x $ac_config_files; shift; ac_config_files=$*;;
12251esac
12252
12253case $ac_config_headers in *"
12254"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12255esac
12256
12257
drh8b727472009-01-19 18:18:40 +000012258cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012259# Files that config.status was made for.
drh8b727472009-01-19 18:18:40 +000012260config_files="$ac_config_files"
12261config_headers="$ac_config_headers"
12262config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000012263
drh8b727472009-01-19 18:18:40 +000012264_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012265
drh8b727472009-01-19 18:18:40 +000012266cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012267ac_cs_usage="\
drhf922ca42015-05-14 15:39:18 +000012268\`$as_me' instantiates files and other configuration actions
12269from templates according to the current configuration. Unless the files
12270and actions are specified as TAGs, all are instantiated by default.
drh71eb93e2001-09-28 01:34:43 +000012271
drhf922ca42015-05-14 15:39:18 +000012272Usage: $0 [OPTION]... [TAG]...
drh71eb93e2001-09-28 01:34:43 +000012273
12274 -h, --help print this help, then exit
drh8b727472009-01-19 18:18:40 +000012275 -V, --version print version number and configuration settings, then exit
drhf922ca42015-05-14 15:39:18 +000012276 --config print configuration, then exit
12277 -q, --quiet, --silent
12278 do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000012279 -d, --debug don't remove temporary files
12280 --recheck update $as_me by reconfiguring in the same conditions
drhf922ca42015-05-14 15:39:18 +000012281 --file=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012282 instantiate the configuration file FILE
drhf922ca42015-05-14 15:39:18 +000012283 --header=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012284 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000012285
12286Configuration files:
12287$config_files
12288
mlcreechb87057f2008-03-06 07:19:20 +000012289Configuration headers:
12290$config_headers
12291
mlcreech636a9952008-05-05 22:52:56 +000012292Configuration commands:
12293$config_commands
12294
drhf922ca42015-05-14 15:39:18 +000012295Report bugs to the package provider."
drh8b727472009-01-19 18:18:40 +000012296
mlcreech94984912008-03-04 19:03:08 +000012297_ACEOF
drh8b727472009-01-19 18:18:40 +000012298cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012299ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
drh866108f2008-05-13 00:57:21 +000012300ac_cs_version="\\
drh83acc142019-02-12 15:51:36 +000012301sqlite config.status 3.28.0
drhf922ca42015-05-14 15:39:18 +000012302configured by $0, generated by GNU Autoconf 2.69,
12303 with options \\"\$ac_cs_config\\"
drh866108f2008-05-13 00:57:21 +000012304
drhf922ca42015-05-14 15:39:18 +000012305Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000012306This config.status script is free software; the Free Software Foundation
12307gives unlimited permission to copy, distribute and modify it."
drh8b727472009-01-19 18:18:40 +000012308
12309ac_pwd='$ac_pwd'
12310srcdir='$srcdir'
12311INSTALL='$INSTALL'
drh8b727472009-01-19 18:18:40 +000012312test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000012313_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012314
drh8b727472009-01-19 18:18:40 +000012315cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12316# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000012317ac_need_defaults=:
12318while test $# != 0
12319do
12320 case $1 in
drhf922ca42015-05-14 15:39:18 +000012321 --*=?*)
drh8b727472009-01-19 18:18:40 +000012322 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12323 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000012324 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000012325 ;;
drhf922ca42015-05-14 15:39:18 +000012326 --*=)
12327 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12328 ac_optarg=
12329 ac_shift=:
12330 ;;
drh8b727472009-01-19 18:18:40 +000012331 *)
a.rottmann84e63352003-03-24 09:42:16 +000012332 ac_option=$1
12333 ac_optarg=$2
12334 ac_shift=shift
12335 ;;
drh75897232000-05-29 14:26:00 +000012336 esac
12337
a.rottmann84e63352003-03-24 09:42:16 +000012338 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000012339 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000012340 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000012341 ac_cs_recheck=: ;;
drh8b727472009-01-19 18:18:40 +000012342 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12343 $as_echo "$ac_cs_version"; exit ;;
drhf922ca42015-05-14 15:39:18 +000012344 --config | --confi | --conf | --con | --co | --c )
12345 $as_echo "$ac_cs_config"; exit ;;
drh8b727472009-01-19 18:18:40 +000012346 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000012347 debug=: ;;
12348 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000012349 $ac_shift
drh8b727472009-01-19 18:18:40 +000012350 case $ac_optarg in
12351 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
drhf922ca42015-05-14 15:39:18 +000012352 '') as_fn_error $? "missing file argument" ;;
drh8b727472009-01-19 18:18:40 +000012353 esac
drhf922ca42015-05-14 15:39:18 +000012354 as_fn_append CONFIG_FILES " '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000012355 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000012356 --header | --heade | --head | --hea )
12357 $ac_shift
drh8b727472009-01-19 18:18:40 +000012358 case $ac_optarg in
12359 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12360 esac
drhf922ca42015-05-14 15:39:18 +000012361 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000012362 ac_need_defaults=false;;
drh8b727472009-01-19 18:18:40 +000012363 --he | --h)
12364 # Conflict between --help and --header
drhf922ca42015-05-14 15:39:18 +000012365 as_fn_error $? "ambiguous option: \`$1'
12366Try \`$0 --help' for more information.";;
drh8b727472009-01-19 18:18:40 +000012367 --help | --hel | -h )
12368 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000012369 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12370 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12371 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000012372
drh71eb93e2001-09-28 01:34:43 +000012373 # This is an error.
drhf922ca42015-05-14 15:39:18 +000012374 -*) as_fn_error $? "unrecognized option: \`$1'
12375Try \`$0 --help' for more information." ;;
drh71eb93e2001-09-28 01:34:43 +000012376
drhf922ca42015-05-14 15:39:18 +000012377 *) as_fn_append ac_config_targets " $1"
drh8b727472009-01-19 18:18:40 +000012378 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000012379
12380 esac
12381 shift
12382done
12383
a.rottmann84e63352003-03-24 09:42:16 +000012384ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000012385
a.rottmann84e63352003-03-24 09:42:16 +000012386if $ac_cs_silent; then
12387 exec 6>/dev/null
12388 ac_configure_extra_args="$ac_configure_extra_args --silent"
12389fi
drh71eb93e2001-09-28 01:34:43 +000012390
12391_ACEOF
drh8b727472009-01-19 18:18:40 +000012392cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000012393if \$ac_cs_recheck; then
drhf922ca42015-05-14 15:39:18 +000012394 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
drh8b727472009-01-19 18:18:40 +000012395 shift
12396 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12397 CONFIG_SHELL='$SHELL'
12398 export CONFIG_SHELL
12399 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000012400fi
drh71eb93e2001-09-28 01:34:43 +000012401
a.rottmann84e63352003-03-24 09:42:16 +000012402_ACEOF
drh8b727472009-01-19 18:18:40 +000012403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12404exec 5>>config.log
12405{
12406 echo
12407 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12408## Running $as_me. ##
12409_ASBOX
12410 $as_echo "$ac_log"
12411} >&5
a.rottmann84e63352003-03-24 09:42:16 +000012412
drh8b727472009-01-19 18:18:40 +000012413_ACEOF
12414cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech636a9952008-05-05 22:52:56 +000012415#
drh8b727472009-01-19 18:18:40 +000012416# INIT-COMMANDS
mlcreech636a9952008-05-05 22:52:56 +000012417#
12418
12419
12420# The HP-UX ksh and POSIX shell print the target directory to stdout
12421# if CDPATH is set.
12422(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12423
12424sed_quote_subst='$sed_quote_subst'
12425double_quote_subst='$double_quote_subst'
12426delay_variable_subst='$delay_variable_subst'
12427macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12428macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12429enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12430enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12431pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12432enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12433host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12434host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12435host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12436build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12437build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12438build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12439SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12440Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12441GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12442EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12443FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12444LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12445NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12446LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12447max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12448ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12449exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12450lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12451lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12452lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12453reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12454reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
vapier6acb2cf2009-01-28 04:46:28 +000012455OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
mlcreech636a9952008-05-05 22:52:56 +000012456deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12457file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12458AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12459AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12460STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12461RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12462old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12463old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12464old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12465CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12466CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12467compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12468GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12469lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12470lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12471lt_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"`'
12472lt_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"`'
12473objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12474SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12475ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12476MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12477lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12478lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12479lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12480lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12481lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12482need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12483DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12484NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12485LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12486OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12487OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12488libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12489shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12490extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12491archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12492enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12493export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12494whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12495compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12496old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12497old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12498archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12499archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12500module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12501module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12502with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12503allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12504no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12505hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12506hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12507hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12508hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12509hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12510hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12511hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12512hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12513inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12514link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12515fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12516always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12517export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12518exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12519include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12520prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12521file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12522variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12523need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12524need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12525version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12526runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12527shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12528shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12529libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12530library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12531soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12532postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12533postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12534finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12535finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12536hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12537sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12538sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12539hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12540enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12541enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12542enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12543old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12544striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12545
12546LTCC='$LTCC'
12547LTCFLAGS='$LTCFLAGS'
12548compiler='$compiler_DEFAULT'
12549
12550# Quote evaled strings.
12551for var in SED \
12552GREP \
12553EGREP \
12554FGREP \
12555LD \
12556NM \
12557LN_S \
12558lt_SP2NL \
12559lt_NL2SP \
12560reload_flag \
vapier6acb2cf2009-01-28 04:46:28 +000012561OBJDUMP \
mlcreech636a9952008-05-05 22:52:56 +000012562deplibs_check_method \
12563file_magic_cmd \
12564AR \
12565AR_FLAGS \
12566STRIP \
12567RANLIB \
12568CC \
12569CFLAGS \
12570compiler \
12571lt_cv_sys_global_symbol_pipe \
12572lt_cv_sys_global_symbol_to_cdecl \
12573lt_cv_sys_global_symbol_to_c_name_address \
12574lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12575SHELL \
12576ECHO \
12577lt_prog_compiler_no_builtin_flag \
12578lt_prog_compiler_wl \
12579lt_prog_compiler_pic \
12580lt_prog_compiler_static \
12581lt_cv_prog_compiler_c_o \
12582need_locks \
12583DSYMUTIL \
12584NMEDIT \
12585LIPO \
12586OTOOL \
12587OTOOL64 \
12588shrext_cmds \
12589export_dynamic_flag_spec \
12590whole_archive_flag_spec \
12591compiler_needs_object \
12592with_gnu_ld \
12593allow_undefined_flag \
12594no_undefined_flag \
12595hardcode_libdir_flag_spec \
12596hardcode_libdir_flag_spec_ld \
12597hardcode_libdir_separator \
12598fix_srcfile_path \
12599exclude_expsyms \
12600include_expsyms \
12601file_list_spec \
12602variables_saved_for_relink \
12603libname_spec \
12604library_names_spec \
12605soname_spec \
12606finish_eval \
12607old_striplib \
12608striplib; do
12609 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12610 *[\\\\\\\`\\"\\\$]*)
12611 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12612 ;;
12613 *)
12614 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12615 ;;
12616 esac
12617done
12618
12619# Double-quote double-evaled strings.
12620for var in reload_cmds \
12621old_postinstall_cmds \
12622old_postuninstall_cmds \
12623old_archive_cmds \
12624extract_expsyms_cmds \
12625old_archive_from_new_cmds \
12626old_archive_from_expsyms_cmds \
12627archive_cmds \
12628archive_expsym_cmds \
12629module_cmds \
12630module_expsym_cmds \
12631export_symbols_cmds \
12632prelink_cmds \
12633postinstall_cmds \
12634postuninstall_cmds \
12635finish_cmds \
12636sys_lib_search_path_spec \
12637sys_lib_dlsearch_path_spec; do
12638 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12639 *[\\\\\\\`\\"\\\$]*)
12640 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12641 ;;
12642 *)
12643 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12644 ;;
12645 esac
12646done
12647
12648# Fix-up fallback echo if it was mangled by the above quoting rules.
12649case \$lt_ECHO in
12650*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12651 ;;
12652esac
12653
12654ac_aux_dir='$ac_aux_dir'
12655xsi_shell='$xsi_shell'
12656lt_shell_append='$lt_shell_append'
12657
12658# See if we are running on zsh, and set the options which allow our
12659# commands through without removal of \ escapes INIT.
12660if test -n "\${ZSH_VERSION+set}" ; then
12661 setopt NO_GLOB_SUBST
12662fi
12663
12664
12665 PACKAGE='$PACKAGE'
12666 VERSION='$VERSION'
12667 TIMESTAMP='$TIMESTAMP'
12668 RM='$RM'
12669 ofile='$ofile'
12670
12671
12672
12673
mlcreech94984912008-03-04 19:03:08 +000012674_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012675
drh8b727472009-01-19 18:18:40 +000012676cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000012677
drh8b727472009-01-19 18:18:40 +000012678# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000012679for ac_config_target in $ac_config_targets
12680do
drh8b727472009-01-19 18:18:40 +000012681 case $ac_config_target in
12682 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12683 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12684 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12685 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12686
drhf922ca42015-05-14 15:39:18 +000012687 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
drh71eb93e2001-09-28 01:34:43 +000012688 esac
12689done
12690
drh8b727472009-01-19 18:18:40 +000012691
drh71eb93e2001-09-28 01:34:43 +000012692# If the user did not use the arguments to specify the items to instantiate,
12693# then the envvar interface is used. Set only those that are not.
12694# We use the long form for the default assignment because of an extremely
12695# bizarre bug on SunOS 4.1.3.
12696if $ac_need_defaults; then
12697 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000012698 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000012699 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000012700fi
12701
a.rottmann84e63352003-03-24 09:42:16 +000012702# Have a temporary directory for convenience. Make it in the build tree
drh8b727472009-01-19 18:18:40 +000012703# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000012704# creating and moving files from /tmp can sometimes cause problems.
drh8b727472009-01-19 18:18:40 +000012705# Hook for its removal unless debugging.
12706# Note that there is a small window in which the directory will not be cleaned:
12707# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000012708$debug ||
12709{
drhf922ca42015-05-14 15:39:18 +000012710 tmp= ac_tmp=
drh8b727472009-01-19 18:18:40 +000012711 trap 'exit_status=$?
drhf922ca42015-05-14 15:39:18 +000012712 : "${ac_tmp:=$tmp}"
12713 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
drh8b727472009-01-19 18:18:40 +000012714' 0
drhf922ca42015-05-14 15:39:18 +000012715 trap 'as_fn_exit 1' 1 2 13 15
drh71eb93e2001-09-28 01:34:43 +000012716}
drh71eb93e2001-09-28 01:34:43 +000012717# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000012718
drh71eb93e2001-09-28 01:34:43 +000012719{
drh8b727472009-01-19 18:18:40 +000012720 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drhf922ca42015-05-14 15:39:18 +000012721 test -d "$tmp"
drh71eb93e2001-09-28 01:34:43 +000012722} ||
12723{
drh8b727472009-01-19 18:18:40 +000012724 tmp=./conf$$-$RANDOM
12725 (umask 077 && mkdir "$tmp")
drhf922ca42015-05-14 15:39:18 +000012726} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12727ac_tmp=$tmp
drh71eb93e2001-09-28 01:34:43 +000012728
drh8b727472009-01-19 18:18:40 +000012729# Set up the scripts for CONFIG_FILES section.
12730# No need to generate them if there are no CONFIG_FILES.
12731# This happens for instance with `./config.status config.h'.
12732if test -n "$CONFIG_FILES"; then
12733
12734
drhf922ca42015-05-14 15:39:18 +000012735ac_cr=`echo X | tr X '\015'`
12736# On cygwin, bash can eat \r inside `` if the user requested igncr.
12737# But we know of no other shell where ac_cr would be empty at this
12738# point, so we can use a bashism as a fallback.
12739if test "x$ac_cr" = x; then
12740 eval ac_cr=\$\'\\r\'
12741fi
drh8b727472009-01-19 18:18:40 +000012742ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12743if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
drh0fe0c462011-09-22 00:56:38 +000012744 ac_cs_awk_cr='\\r'
drh8b727472009-01-19 18:18:40 +000012745else
12746 ac_cs_awk_cr=$ac_cr
12747fi
12748
drhf922ca42015-05-14 15:39:18 +000012749echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000012750_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012751
mlcreech94984912008-03-04 19:03:08 +000012752
drh8b727472009-01-19 18:18:40 +000012753{
12754 echo "cat >conf$$subs.awk <<_ACEOF" &&
12755 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12756 echo "_ACEOF"
12757} >conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012758 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12759ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
drh8b727472009-01-19 18:18:40 +000012760ac_delim='%!_!# '
12761for ac_last_try in false false false false false :; do
12762 . ./conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012763 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000012764
drhf922ca42015-05-14 15:39:18 +000012765 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12766 if test $ac_delim_n = $ac_delim_num; then
drh8b727472009-01-19 18:18:40 +000012767 break
12768 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012769 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012770 else
12771 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000012772 fi
drh8b727472009-01-19 18:18:40 +000012773done
12774rm -f conf$$subs.sh
12775
12776cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012777cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012778_ACEOF
12779sed -n '
12780h
12781s/^/S["/; s/!.*/"]=/
12782p
12783g
12784s/^[^!]*!//
12785:repl
12786t repl
12787s/'"$ac_delim"'$//
12788t delim
12789:nl
12790h
drhf922ca42015-05-14 15:39:18 +000012791s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012792t more1
12793s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12794p
12795n
12796b repl
12797:more1
12798s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12799p
12800g
12801s/.\{148\}//
12802t nl
12803:delim
12804h
drhf922ca42015-05-14 15:39:18 +000012805s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012806t more2
12807s/["\\]/\\&/g; s/^/"/; s/$/"/
12808p
12809b
12810:more2
12811s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12812p
12813g
12814s/.\{148\}//
12815t delim
12816' <conf$$subs.awk | sed '
12817/^[^""]/{
12818 N
12819 s/\n//
12820}
12821' >>$CONFIG_STATUS || ac_write_fail=1
12822rm -f conf$$subs.awk
12823cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12824_ACAWK
drhf922ca42015-05-14 15:39:18 +000012825cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012826 for (key in S) S_is_set[key] = 1
12827 FS = ""
12828
12829}
12830{
12831 line = $ 0
12832 nfields = split(line, field, "@")
12833 substed = 0
12834 len = length(field[1])
12835 for (i = 2; i < nfields; i++) {
12836 key = field[i]
12837 keylen = length(key)
12838 if (S_is_set[key]) {
12839 value = S[key]
12840 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12841 len += length(value) + length(field[++i])
12842 substed = 1
12843 } else
12844 len += 1 + keylen
12845 }
12846
12847 print line
12848}
12849
12850_ACAWK
12851_ACEOF
12852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12853if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12854 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12855else
12856 cat
drhf922ca42015-05-14 15:39:18 +000012857fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12858 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012859_ACEOF
12860
drhf922ca42015-05-14 15:39:18 +000012861# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12862# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
drh8b727472009-01-19 18:18:40 +000012863# trailing colons and then remove the whole line if VPATH becomes empty
12864# (actually we leave an empty line to preserve line numbers).
12865if test "x$srcdir" = x.; then
drhf922ca42015-05-14 15:39:18 +000012866 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12867h
12868s///
12869s/^/:/
12870s/[ ]*$/:/
12871s/:\$(srcdir):/:/g
12872s/:\${srcdir}:/:/g
12873s/:@srcdir@:/:/g
12874s/^:*//
drh8b727472009-01-19 18:18:40 +000012875s/:*$//
drhf922ca42015-05-14 15:39:18 +000012876x
12877s/\(=[ ]*\).*/\1/
12878G
12879s/\n//
drh8b727472009-01-19 18:18:40 +000012880s/^[^=]*=[ ]*$//
12881}'
12882fi
12883
12884cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012885fi # test -n "$CONFIG_FILES"
12886
drh8b727472009-01-19 18:18:40 +000012887# Set up the scripts for CONFIG_HEADERS section.
12888# No need to generate them if there are no CONFIG_HEADERS.
12889# This happens for instance with `./config.status Makefile'.
12890if test -n "$CONFIG_HEADERS"; then
drhf922ca42015-05-14 15:39:18 +000012891cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
drh8b727472009-01-19 18:18:40 +000012892BEGIN {
mlcreech636a9952008-05-05 22:52:56 +000012893_ACEOF
drh8b727472009-01-19 18:18:40 +000012894
12895# Transform confdefs.h into an awk script `defines.awk', embedded as
12896# here-document in config.status, that substitutes the proper values into
12897# config.h.in to produce config.h.
12898
12899# Create a delimiter string that does not exist in confdefs.h, to ease
12900# handling of long lines.
12901ac_delim='%!_!# '
12902for ac_last_try in false false :; do
drhf922ca42015-05-14 15:39:18 +000012903 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12904 if test -z "$ac_tt"; then
drh8b727472009-01-19 18:18:40 +000012905 break
12906 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012907 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012908 else
12909 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12910 fi
12911done
12912
12913# For the awk script, D is an array of macro values keyed by name,
12914# likewise P contains macro parameters if any. Preserve backslash
12915# newline sequences.
12916
12917ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12918sed -n '
12919s/.\{148\}/&'"$ac_delim"'/g
12920t rset
12921:rset
12922s/^[ ]*#[ ]*define[ ][ ]*/ /
12923t def
12924d
12925:def
12926s/\\$//
12927t bsnl
12928s/["\\]/\\&/g
12929s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12930D["\1"]=" \3"/p
12931s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12932d
12933:bsnl
12934s/["\\]/\\&/g
12935s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12936D["\1"]=" \3\\\\\\n"\\/p
12937t cont
12938s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12939t cont
12940d
12941:cont
12942n
12943s/.\{148\}/&'"$ac_delim"'/g
12944t clear
12945:clear
12946s/\\$//
12947t bsnlc
12948s/["\\]/\\&/g; s/^/"/; s/$/"/p
12949d
12950:bsnlc
12951s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12952b cont
12953' <confdefs.h | sed '
12954s/'"$ac_delim"'/"\\\
12955"/g' >>$CONFIG_STATUS || ac_write_fail=1
12956
12957cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12958 for (key in D) D_is_set[key] = 1
12959 FS = ""
12960}
12961/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12962 line = \$ 0
12963 split(line, arg, " ")
12964 if (arg[1] == "#") {
12965 defundef = arg[2]
12966 mac1 = arg[3]
12967 } else {
12968 defundef = substr(arg[1], 2)
12969 mac1 = arg[2]
12970 }
12971 split(mac1, mac2, "(") #)
12972 macro = mac2[1]
drhf922ca42015-05-14 15:39:18 +000012973 prefix = substr(line, 1, index(line, defundef) - 1)
drh8b727472009-01-19 18:18:40 +000012974 if (D_is_set[macro]) {
12975 # Preserve the white space surrounding the "#".
drh8b727472009-01-19 18:18:40 +000012976 print prefix "define", macro P[macro] D[macro]
12977 next
12978 } else {
12979 # Replace #undef with comments. This is necessary, for example,
12980 # in the case of _POSIX_SOURCE, which is predefined and required
12981 # on some systems where configure will not decide to define it.
12982 if (defundef == "undef") {
drhf922ca42015-05-14 15:39:18 +000012983 print "/*", prefix defundef, macro, "*/"
drh8b727472009-01-19 18:18:40 +000012984 next
12985 }
12986 }
12987}
12988{ print }
12989_ACAWK
12990_ACEOF
12991cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012992 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012993fi # test -n "$CONFIG_HEADERS"
12994
12995
12996eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12997shift
12998for ac_tag
12999do
13000 case $ac_tag in
13001 :[FHLC]) ac_mode=$ac_tag; continue;;
13002 esac
13003 case $ac_mode$ac_tag in
13004 :[FHL]*:*);;
drhf922ca42015-05-14 15:39:18 +000013005 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000013006 :[FH]-) ac_tag=-:-;;
13007 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13008 esac
13009 ac_save_IFS=$IFS
13010 IFS=:
13011 set x $ac_tag
13012 IFS=$ac_save_IFS
13013 shift
13014 ac_file=$1
13015 shift
13016
13017 case $ac_mode in
13018 :L) ac_source=$1;;
13019 :[FH])
13020 ac_file_inputs=
13021 for ac_f
13022 do
13023 case $ac_f in
drhf922ca42015-05-14 15:39:18 +000013024 -) ac_f="$ac_tmp/stdin";;
drh8b727472009-01-19 18:18:40 +000013025 *) # Look for the file first in the build tree, then in the source tree
13026 # (if the path is not absolute). The absolute path cannot be DOS-style,
13027 # because $ac_f cannot contain `:'.
13028 test -f "$ac_f" ||
13029 case $ac_f in
13030 [\\/$]*) false;;
13031 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13032 esac ||
drhf922ca42015-05-14 15:39:18 +000013033 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000013034 esac
13035 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
drhf922ca42015-05-14 15:39:18 +000013036 as_fn_append ac_file_inputs " '$ac_f'"
drh8b727472009-01-19 18:18:40 +000013037 done
13038
13039 # Let's still pretend it is `configure' which instantiates (i.e., don't
13040 # use $as_me), people would be surprised to read:
13041 # /* config.h. Generated by config.status. */
13042 configure_input='Generated from '`
13043 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13044 `' by configure.'
13045 if test x"$ac_file" != x-; then
13046 configure_input="$ac_file. $configure_input"
drhf922ca42015-05-14 15:39:18 +000013047 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
drh8b727472009-01-19 18:18:40 +000013048$as_echo "$as_me: creating $ac_file" >&6;}
13049 fi
13050 # Neutralize special characters interpreted by sed in replacement strings.
13051 case $configure_input in #(
13052 *\&* | *\|* | *\\* )
13053 ac_sed_conf_input=`$as_echo "$configure_input" |
13054 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13055 *) ac_sed_conf_input=$configure_input;;
13056 esac
13057
13058 case $ac_tag in
drhf922ca42015-05-14 15:39:18 +000013059 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13060 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
drh8b727472009-01-19 18:18:40 +000013061 esac
13062 ;;
drh71eb93e2001-09-28 01:34:43 +000013063 esac
13064
drh8b727472009-01-19 18:18:40 +000013065 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000013066$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000013067 X"$ac_file" : 'X\(//\)[^/]' \| \
13068 X"$ac_file" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000013069 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13070$as_echo X"$ac_file" |
13071 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13072 s//\1/
13073 q
13074 }
13075 /^X\(\/\/\)[^/].*/{
13076 s//\1/
13077 q
13078 }
13079 /^X\(\/\/\)$/{
13080 s//\1/
13081 q
13082 }
13083 /^X\(\/\).*/{
13084 s//\1/
13085 q
13086 }
13087 s/.*/./; q'`
drhf922ca42015-05-14 15:39:18 +000013088 as_dir="$ac_dir"; as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000013089 ac_builddir=.
13090
drh8b727472009-01-19 18:18:40 +000013091case "$ac_dir" in
13092.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13093*)
13094 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13095 # A ".." for each directory in $ac_dir_suffix.
13096 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13097 case $ac_top_builddir_sub in
13098 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13099 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13100 esac ;;
13101esac
13102ac_abs_top_builddir=$ac_pwd
13103ac_abs_builddir=$ac_pwd$ac_dir_suffix
13104# for backward compatibility:
13105ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000013106
13107case $srcdir in
drh8b727472009-01-19 18:18:40 +000013108 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000013109 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +000013110 ac_top_srcdir=$ac_top_builddir_sub
13111 ac_abs_top_srcdir=$ac_pwd ;;
13112 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000013113 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +000013114 ac_top_srcdir=$srcdir
13115 ac_abs_top_srcdir=$srcdir ;;
13116 *) # Relative name.
13117 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13118 ac_top_srcdir=$ac_top_build_prefix$srcdir
13119 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000013120esac
drh8b727472009-01-19 18:18:40 +000013121ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000013122
a.rottmann84e63352003-03-24 09:42:16 +000013123
drh8b727472009-01-19 18:18:40 +000013124 case $ac_mode in
13125 :F)
13126 #
13127 # CONFIG_FILE
13128 #
drh75897232000-05-29 14:26:00 +000013129
drh71eb93e2001-09-28 01:34:43 +000013130 case $INSTALL in
13131 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh8b727472009-01-19 18:18:40 +000013132 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000013133 esac
mlcreech94984912008-03-04 19:03:08 +000013134_ACEOF
drh8b727472009-01-19 18:18:40 +000013135
13136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13137# If the template does not know about datarootdir, expand it.
13138# FIXME: This hack should be removed a few years after 2.60.
13139ac_datarootdir_hack=; ac_datarootdir_seen=
drh8b727472009-01-19 18:18:40 +000013140ac_sed_dataroot='
13141/datarootdir/ {
13142 p
13143 q
13144}
13145/@datadir@/p
13146/@docdir@/p
13147/@infodir@/p
13148/@localedir@/p
drhf922ca42015-05-14 15:39:18 +000013149/@mandir@/p'
drh8b727472009-01-19 18:18:40 +000013150case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13151*datarootdir*) ac_datarootdir_seen=yes;;
13152*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
drhf922ca42015-05-14 15:39:18 +000013153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
drh8b727472009-01-19 18:18:40 +000013154$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13155_ACEOF
13156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13157 ac_datarootdir_hack='
13158 s&@datadir@&$datadir&g
13159 s&@docdir@&$docdir&g
13160 s&@infodir@&$infodir&g
13161 s&@localedir@&$localedir&g
13162 s&@mandir@&$mandir&g
drhf922ca42015-05-14 15:39:18 +000013163 s&\\\${datarootdir}&$datarootdir&g' ;;
drh8b727472009-01-19 18:18:40 +000013164esac
13165_ACEOF
13166
13167# Neutralize VPATH when `$srcdir' = `.'.
13168# Shell code in configure.ac might set extrasub.
13169# FIXME: do we really want to maintain this feature?
13170cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13171ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000013172$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000013173_ACEOF
drh8b727472009-01-19 18:18:40 +000013174cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013175:t
13176/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh8b727472009-01-19 18:18:40 +000013177s|@configure_input@|$ac_sed_conf_input|;t t
13178s&@top_builddir@&$ac_top_builddir_sub&;t t
13179s&@top_build_prefix@&$ac_top_build_prefix&;t t
13180s&@srcdir@&$ac_srcdir&;t t
13181s&@abs_srcdir@&$ac_abs_srcdir&;t t
13182s&@top_srcdir@&$ac_top_srcdir&;t t
13183s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13184s&@builddir@&$ac_builddir&;t t
13185s&@abs_builddir@&$ac_abs_builddir&;t t
13186s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13187s&@INSTALL@&$ac_INSTALL&;t t
13188$ac_datarootdir_hack
13189"
drhf922ca42015-05-14 15:39:18 +000013190eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13191 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000013192
drh8b727472009-01-19 18:18:40 +000013193test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
drhf922ca42015-05-14 15:39:18 +000013194 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13195 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13196 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13198which seems to be undefined. Please make sure it is defined" >&5
drh8b727472009-01-19 18:18:40 +000013199$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
drhf922ca42015-05-14 15:39:18 +000013200which seems to be undefined. Please make sure it is defined" >&2;}
drh866108f2008-05-13 00:57:21 +000013201
drhf922ca42015-05-14 15:39:18 +000013202 rm -f "$ac_tmp/stdin"
drh866108f2008-05-13 00:57:21 +000013203 case $ac_file in
drhf922ca42015-05-14 15:39:18 +000013204 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13205 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
drh8b727472009-01-19 18:18:40 +000013206 esac \
drhf922ca42015-05-14 15:39:18 +000013207 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013208 ;;
13209 :H)
13210 #
13211 # CONFIG_HEADER
13212 #
drh866108f2008-05-13 00:57:21 +000013213 if test x"$ac_file" != x-; then
drh8b727472009-01-19 18:18:40 +000013214 {
13215 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000013216 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13217 } >"$ac_tmp/config.h" \
13218 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13219 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
drh8b727472009-01-19 18:18:40 +000013221$as_echo "$as_me: $ac_file is unchanged" >&6;}
drh866108f2008-05-13 00:57:21 +000013222 else
drh8b727472009-01-19 18:18:40 +000013223 rm -f "$ac_file"
drhf922ca42015-05-14 15:39:18 +000013224 mv "$ac_tmp/config.h" "$ac_file" \
13225 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000013226 fi
13227 else
drh8b727472009-01-19 18:18:40 +000013228 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000013229 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13230 || as_fn_error $? "could not create -" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000013231 fi
drh8b727472009-01-19 18:18:40 +000013232 ;;
drh866108f2008-05-13 00:57:21 +000013233
drhf922ca42015-05-14 15:39:18 +000013234 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
drh8b727472009-01-19 18:18:40 +000013235$as_echo "$as_me: executing $ac_file commands" >&6;}
13236 ;;
13237 esac
drh866108f2008-05-13 00:57:21 +000013238
13239
drh8b727472009-01-19 18:18:40 +000013240 case $ac_file$ac_mode in
13241 "libtool":C)
mlcreech636a9952008-05-05 22:52:56 +000013242
13243 # See if we are running on zsh, and set the options which allow our
13244 # commands through without removal of \ escapes.
13245 if test -n "${ZSH_VERSION+set}" ; then
13246 setopt NO_GLOB_SUBST
13247 fi
13248
13249 cfgfile="${ofile}T"
13250 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13251 $RM "$cfgfile"
13252
13253 cat <<_LT_EOF >> "$cfgfile"
13254#! $SHELL
13255
13256# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13257# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13258# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13259# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13260#
13261# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13262# 2006, 2007, 2008 Free Software Foundation, Inc.
13263# Written by Gordon Matzigkeit, 1996
13264#
13265# This file is part of GNU Libtool.
13266#
13267# GNU Libtool is free software; you can redistribute it and/or
13268# modify it under the terms of the GNU General Public License as
13269# published by the Free Software Foundation; either version 2 of
13270# the License, or (at your option) any later version.
13271#
13272# As a special exception to the GNU General Public License,
13273# if you distribute this file as part of a program or library that
13274# is built using GNU Libtool, you may include this file under the
13275# same distribution terms that you use for the rest of that program.
13276#
13277# GNU Libtool is distributed in the hope that it will be useful,
13278# but WITHOUT ANY WARRANTY; without even the implied warranty of
13279# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13280# GNU General Public License for more details.
13281#
13282# You should have received a copy of the GNU General Public License
13283# along with GNU Libtool; see the file COPYING. If not, a copy
13284# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13285# obtained by writing to the Free Software Foundation, Inc.,
13286# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13287
13288
13289# The names of the tagged configurations supported by this script.
13290available_tags=""
13291
13292# ### BEGIN LIBTOOL CONFIG
13293
13294# Which release of libtool.m4 was used?
13295macro_version=$macro_version
13296macro_revision=$macro_revision
13297
13298# Whether or not to build shared libraries.
13299build_libtool_libs=$enable_shared
13300
13301# Whether or not to build static libraries.
13302build_old_libs=$enable_static
13303
13304# What type of objects to build.
13305pic_mode=$pic_mode
13306
13307# Whether or not to optimize for fast installation.
13308fast_install=$enable_fast_install
13309
13310# The host system.
13311host_alias=$host_alias
13312host=$host
13313host_os=$host_os
13314
13315# The build system.
13316build_alias=$build_alias
13317build=$build
13318build_os=$build_os
13319
13320# A sed program that does not truncate output.
13321SED=$lt_SED
13322
13323# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13324Xsed="\$SED -e 1s/^X//"
13325
13326# A grep program that handles long lines.
13327GREP=$lt_GREP
13328
13329# An ERE matcher.
13330EGREP=$lt_EGREP
13331
13332# A literal string matcher.
13333FGREP=$lt_FGREP
13334
13335# A BSD- or MS-compatible name lister.
13336NM=$lt_NM
13337
13338# Whether we need soft or hard links.
13339LN_S=$lt_LN_S
13340
13341# What is the maximum length of a command?
13342max_cmd_len=$max_cmd_len
13343
13344# Object file suffix (normally "o").
13345objext=$ac_objext
13346
13347# Executable file suffix (normally "").
13348exeext=$exeext
13349
13350# whether the shell understands "unset".
13351lt_unset=$lt_unset
13352
13353# turn spaces into newlines.
13354SP2NL=$lt_lt_SP2NL
13355
13356# turn newlines into spaces.
13357NL2SP=$lt_lt_NL2SP
13358
13359# How to create reloadable object files.
13360reload_flag=$lt_reload_flag
13361reload_cmds=$lt_reload_cmds
13362
vapier6acb2cf2009-01-28 04:46:28 +000013363# An object symbol dumper.
13364OBJDUMP=$lt_OBJDUMP
13365
mlcreech636a9952008-05-05 22:52:56 +000013366# Method to check whether dependent libraries are shared objects.
13367deplibs_check_method=$lt_deplibs_check_method
13368
13369# Command to use when deplibs_check_method == "file_magic".
13370file_magic_cmd=$lt_file_magic_cmd
13371
13372# The archiver.
13373AR=$lt_AR
13374AR_FLAGS=$lt_AR_FLAGS
13375
13376# A symbol stripping program.
13377STRIP=$lt_STRIP
13378
13379# Commands used to install an old-style archive.
13380RANLIB=$lt_RANLIB
13381old_postinstall_cmds=$lt_old_postinstall_cmds
13382old_postuninstall_cmds=$lt_old_postuninstall_cmds
13383
13384# A C compiler.
13385LTCC=$lt_CC
13386
13387# LTCC compiler flags.
13388LTCFLAGS=$lt_CFLAGS
13389
13390# Take the output of nm and produce a listing of raw symbols and C names.
13391global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13392
13393# Transform the output of nm in a proper C declaration.
13394global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13395
13396# Transform the output of nm in a C name address pair.
13397global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13398
13399# Transform the output of nm in a C name address pair when lib prefix is needed.
13400global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13401
13402# The name of the directory that contains temporary libtool files.
13403objdir=$objdir
13404
13405# Shell to use when invoking shell scripts.
13406SHELL=$lt_SHELL
13407
13408# An echo program that does not interpret backslashes.
13409ECHO=$lt_ECHO
13410
13411# Used to examine libraries when file_magic_cmd begins with "file".
13412MAGIC_CMD=$MAGIC_CMD
13413
13414# Must we lock files when doing compilation?
13415need_locks=$lt_need_locks
13416
13417# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13418DSYMUTIL=$lt_DSYMUTIL
13419
13420# Tool to change global to local symbols on Mac OS X.
13421NMEDIT=$lt_NMEDIT
13422
13423# Tool to manipulate fat objects and archives on Mac OS X.
13424LIPO=$lt_LIPO
13425
13426# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13427OTOOL=$lt_OTOOL
13428
13429# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13430OTOOL64=$lt_OTOOL64
13431
13432# Old archive suffix (normally "a").
13433libext=$libext
13434
13435# Shared library suffix (normally ".so").
13436shrext_cmds=$lt_shrext_cmds
13437
13438# The commands to extract the exported symbol list from a shared archive.
13439extract_expsyms_cmds=$lt_extract_expsyms_cmds
13440
13441# Variables whose values should be saved in libtool wrapper scripts and
13442# restored at link time.
13443variables_saved_for_relink=$lt_variables_saved_for_relink
13444
13445# Do we need the "lib" prefix for modules?
13446need_lib_prefix=$need_lib_prefix
13447
13448# Do we need a version for libraries?
13449need_version=$need_version
13450
13451# Library versioning type.
13452version_type=$version_type
13453
13454# Shared library runtime path variable.
13455runpath_var=$runpath_var
13456
13457# Shared library path variable.
13458shlibpath_var=$shlibpath_var
13459
13460# Is shlibpath searched before the hard-coded library search path?
13461shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13462
13463# Format of library name prefix.
13464libname_spec=$lt_libname_spec
13465
13466# List of archive names. First name is the real one, the rest are links.
13467# The last name is the one that the linker finds with -lNAME
13468library_names_spec=$lt_library_names_spec
13469
13470# The coded name of the library, if different from the real name.
13471soname_spec=$lt_soname_spec
13472
13473# Command to use after installation of a shared archive.
13474postinstall_cmds=$lt_postinstall_cmds
13475
13476# Command to use after uninstallation of a shared archive.
13477postuninstall_cmds=$lt_postuninstall_cmds
13478
13479# Commands used to finish a libtool library installation in a directory.
13480finish_cmds=$lt_finish_cmds
13481
13482# As "finish_cmds", except a single script fragment to be evaled but
13483# not shown.
13484finish_eval=$lt_finish_eval
13485
13486# Whether we should hardcode library paths into libraries.
13487hardcode_into_libs=$hardcode_into_libs
13488
13489# Compile-time system search path for libraries.
13490sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13491
13492# Run-time system search path for libraries.
13493sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13494
13495# Whether dlopen is supported.
13496dlopen_support=$enable_dlopen
13497
13498# Whether dlopen of programs is supported.
13499dlopen_self=$enable_dlopen_self
13500
13501# Whether dlopen of statically linked programs is supported.
13502dlopen_self_static=$enable_dlopen_self_static
13503
13504# Commands to strip libraries.
13505old_striplib=$lt_old_striplib
13506striplib=$lt_striplib
13507
13508
13509# The linker used to build libraries.
13510LD=$lt_LD
13511
13512# Commands used to build an old-style archive.
13513old_archive_cmds=$lt_old_archive_cmds
13514
13515# A language specific compiler.
13516CC=$lt_compiler
13517
13518# Is the compiler the GNU compiler?
13519with_gcc=$GCC
13520
13521# Compiler flag to turn off builtin functions.
13522no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13523
13524# How to pass a linker flag through the compiler.
13525wl=$lt_lt_prog_compiler_wl
13526
13527# Additional compiler flags for building library objects.
13528pic_flag=$lt_lt_prog_compiler_pic
13529
13530# Compiler flag to prevent dynamic linking.
13531link_static_flag=$lt_lt_prog_compiler_static
13532
13533# Does compiler simultaneously support -c and -o options?
13534compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13535
13536# Whether or not to add -lc for building shared libraries.
13537build_libtool_need_lc=$archive_cmds_need_lc
13538
13539# Whether or not to disallow shared libs when runtime libs are static.
13540allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13541
13542# Compiler flag to allow reflexive dlopens.
13543export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13544
13545# Compiler flag to generate shared objects directly from archives.
13546whole_archive_flag_spec=$lt_whole_archive_flag_spec
13547
13548# Whether the compiler copes with passing no objects directly.
13549compiler_needs_object=$lt_compiler_needs_object
13550
13551# Create an old-style archive from a shared archive.
13552old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13553
13554# Create a temporary old-style archive to link instead of a shared archive.
13555old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13556
13557# Commands used to build a shared archive.
13558archive_cmds=$lt_archive_cmds
13559archive_expsym_cmds=$lt_archive_expsym_cmds
13560
13561# Commands used to build a loadable module if different from building
13562# a shared archive.
13563module_cmds=$lt_module_cmds
13564module_expsym_cmds=$lt_module_expsym_cmds
13565
13566# Whether we are building with GNU ld or not.
13567with_gnu_ld=$lt_with_gnu_ld
13568
13569# Flag that allows shared libraries with undefined symbols to be built.
13570allow_undefined_flag=$lt_allow_undefined_flag
13571
13572# Flag that enforces no undefined symbols.
13573no_undefined_flag=$lt_no_undefined_flag
13574
13575# Flag to hardcode \$libdir into a binary during linking.
13576# This must work even if \$libdir does not exist
13577hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13578
13579# If ld is used when linking, flag to hardcode \$libdir into a binary
13580# during linking. This must work even if \$libdir does not exist.
13581hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13582
13583# Whether we need a single "-rpath" flag with a separated argument.
13584hardcode_libdir_separator=$lt_hardcode_libdir_separator
13585
13586# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13587# DIR into the resulting binary.
13588hardcode_direct=$hardcode_direct
13589
13590# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13591# DIR into the resulting binary and the resulting library dependency is
13592# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13593# library is relocated.
13594hardcode_direct_absolute=$hardcode_direct_absolute
13595
13596# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13597# into the resulting binary.
13598hardcode_minus_L=$hardcode_minus_L
13599
13600# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13601# into the resulting binary.
13602hardcode_shlibpath_var=$hardcode_shlibpath_var
13603
13604# Set to "yes" if building a shared library automatically hardcodes DIR
13605# into the library and all subsequent libraries and executables linked
13606# against it.
13607hardcode_automatic=$hardcode_automatic
13608
13609# Set to yes if linker adds runtime paths of dependent libraries
13610# to runtime path list.
13611inherit_rpath=$inherit_rpath
13612
13613# Whether libtool must link a program against all its dependency libraries.
13614link_all_deplibs=$link_all_deplibs
13615
13616# Fix the shell variable \$srcfile for the compiler.
13617fix_srcfile_path=$lt_fix_srcfile_path
13618
13619# Set to "yes" if exported symbols are required.
13620always_export_symbols=$always_export_symbols
13621
13622# The commands to list exported symbols.
13623export_symbols_cmds=$lt_export_symbols_cmds
13624
13625# Symbols that should not be listed in the preloaded symbols.
13626exclude_expsyms=$lt_exclude_expsyms
13627
13628# Symbols that must always be exported.
13629include_expsyms=$lt_include_expsyms
13630
13631# Commands necessary for linking programs (against libraries) with templates.
13632prelink_cmds=$lt_prelink_cmds
13633
13634# Specify filename containing input files.
13635file_list_spec=$lt_file_list_spec
13636
13637# How to hardcode a shared library path into an executable.
13638hardcode_action=$hardcode_action
13639
13640# ### END LIBTOOL CONFIG
13641
13642_LT_EOF
13643
13644 case $host_os in
13645 aix3*)
13646 cat <<\_LT_EOF >> "$cfgfile"
13647# AIX sometimes has problems with the GCC collect2 program. For some
13648# reason, if we set the COLLECT_NAMES environment variable, the problems
13649# vanish in a puff of smoke.
13650if test "X${COLLECT_NAMES+set}" != Xset; then
13651 COLLECT_NAMES=
13652 export COLLECT_NAMES
13653fi
13654_LT_EOF
13655 ;;
13656 esac
13657
13658
13659ltmain="$ac_aux_dir/ltmain.sh"
13660
13661
13662 # We use sed instead of cat because bash on DJGPP gets confused if
13663 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13664 # text mode, it properly converts lines to CR/LF. This bash problem
13665 # is reportedly fixed, but why not run on old versions too?
13666 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13667 || (rm -f "$cfgfile"; exit 1)
13668
13669 case $xsi_shell in
13670 yes)
13671 cat << \_LT_EOF >> "$cfgfile"
13672
13673# func_dirname file append nondir_replacement
13674# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13675# otherwise set result to NONDIR_REPLACEMENT.
13676func_dirname ()
13677{
13678 case ${1} in
13679 */*) func_dirname_result="${1%/*}${2}" ;;
13680 * ) func_dirname_result="${3}" ;;
13681 esac
13682}
13683
13684# func_basename file
13685func_basename ()
13686{
13687 func_basename_result="${1##*/}"
13688}
13689
13690# func_dirname_and_basename file append nondir_replacement
13691# perform func_basename and func_dirname in a single function
13692# call:
13693# dirname: Compute the dirname of FILE. If nonempty,
13694# add APPEND to the result, otherwise set result
13695# to NONDIR_REPLACEMENT.
13696# value returned in "$func_dirname_result"
13697# basename: Compute filename of FILE.
13698# value retuned in "$func_basename_result"
13699# Implementation must be kept synchronized with func_dirname
13700# and func_basename. For efficiency, we do not delegate to
13701# those functions but instead duplicate the functionality here.
13702func_dirname_and_basename ()
13703{
13704 case ${1} in
13705 */*) func_dirname_result="${1%/*}${2}" ;;
13706 * ) func_dirname_result="${3}" ;;
13707 esac
13708 func_basename_result="${1##*/}"
13709}
13710
13711# func_stripname prefix suffix name
13712# strip PREFIX and SUFFIX off of NAME.
13713# PREFIX and SUFFIX must not contain globbing or regex special
13714# characters, hashes, percent signs, but SUFFIX may contain a leading
13715# dot (in which case that matches only a dot).
13716func_stripname ()
13717{
13718 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13719 # positional parameters, so assign one to ordinary parameter first.
13720 func_stripname_result=${3}
13721 func_stripname_result=${func_stripname_result#"${1}"}
13722 func_stripname_result=${func_stripname_result%"${2}"}
13723}
13724
13725# func_opt_split
13726func_opt_split ()
13727{
13728 func_opt_split_opt=${1%%=*}
13729 func_opt_split_arg=${1#*=}
13730}
13731
13732# func_lo2o object
13733func_lo2o ()
13734{
13735 case ${1} in
13736 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13737 *) func_lo2o_result=${1} ;;
13738 esac
13739}
13740
13741# func_xform libobj-or-source
13742func_xform ()
13743{
13744 func_xform_result=${1%.*}.lo
13745}
13746
13747# func_arith arithmetic-term...
13748func_arith ()
13749{
13750 func_arith_result=$(( $* ))
13751}
13752
13753# func_len string
13754# STRING may not start with a hyphen.
13755func_len ()
13756{
13757 func_len_result=${#1}
13758}
13759
13760_LT_EOF
13761 ;;
13762 *) # Bourne compatible functions.
13763 cat << \_LT_EOF >> "$cfgfile"
13764
13765# func_dirname file append nondir_replacement
13766# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13767# otherwise set result to NONDIR_REPLACEMENT.
13768func_dirname ()
13769{
13770 # Extract subdirectory from the argument.
13771 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13772 if test "X$func_dirname_result" = "X${1}"; then
13773 func_dirname_result="${3}"
13774 else
13775 func_dirname_result="$func_dirname_result${2}"
13776 fi
13777}
13778
13779# func_basename file
13780func_basename ()
13781{
13782 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13783}
13784
13785
13786# func_stripname prefix suffix name
13787# strip PREFIX and SUFFIX off of NAME.
13788# PREFIX and SUFFIX must not contain globbing or regex special
13789# characters, hashes, percent signs, but SUFFIX may contain a leading
13790# dot (in which case that matches only a dot).
13791# func_strip_suffix prefix name
13792func_stripname ()
13793{
13794 case ${2} in
13795 .*) func_stripname_result=`$ECHO "X${3}" \
13796 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13797 *) func_stripname_result=`$ECHO "X${3}" \
13798 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13799 esac
13800}
13801
13802# sed scripts:
13803my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13804my_sed_long_arg='1s/^-[^=]*=//'
13805
13806# func_opt_split
13807func_opt_split ()
13808{
13809 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13810 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13811}
13812
13813# func_lo2o object
13814func_lo2o ()
13815{
13816 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13817}
13818
13819# func_xform libobj-or-source
13820func_xform ()
13821{
13822 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13823}
13824
13825# func_arith arithmetic-term...
13826func_arith ()
13827{
13828 func_arith_result=`expr "$@"`
13829}
13830
13831# func_len string
13832# STRING may not start with a hyphen.
13833func_len ()
13834{
13835 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13836}
13837
13838_LT_EOF
13839esac
13840
13841case $lt_shell_append in
13842 yes)
13843 cat << \_LT_EOF >> "$cfgfile"
13844
13845# func_append var value
13846# Append VALUE to the end of shell variable VAR.
13847func_append ()
13848{
13849 eval "$1+=\$2"
13850}
13851_LT_EOF
13852 ;;
13853 *)
13854 cat << \_LT_EOF >> "$cfgfile"
13855
13856# func_append var value
13857# Append VALUE to the end of shell variable VAR.
13858func_append ()
13859{
13860 eval "$1=\$$1\$2"
13861}
13862
13863_LT_EOF
13864 ;;
13865 esac
13866
13867
13868 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13869 || (rm -f "$cfgfile"; exit 1)
13870
13871 mv -f "$cfgfile" "$ofile" ||
13872 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13873 chmod +x "$ofile"
13874
13875 ;;
mlcreech94984912008-03-04 19:03:08 +000013876
drh8b727472009-01-19 18:18:40 +000013877 esac
13878done # for ac_tag
13879
drh71eb93e2001-09-28 01:34:43 +000013880
drhf922ca42015-05-14 15:39:18 +000013881as_fn_exit 0
a.rottmann84e63352003-03-24 09:42:16 +000013882_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013883ac_clean_files=$ac_clean_files_save
13884
drh8b727472009-01-19 18:18:40 +000013885test $ac_write_fail = 0 ||
drhf922ca42015-05-14 15:39:18 +000013886 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013887
a.rottmann84e63352003-03-24 09:42:16 +000013888
drh71eb93e2001-09-28 01:34:43 +000013889# configure is writing to config.log, and then calls config.status.
13890# config.status does its own redirection, appending to config.log.
13891# Unfortunately, on DOS this fails, as config.log is still kept open
13892# by configure, so config.status won't be able to write to it; its
13893# output is simply discarded. So we exec the FD to /dev/null,
13894# effectively closing config.log, so it can be properly (re)opened and
13895# appended to by config.status. When coming back to configure, we
13896# need to make the FD available again.
13897if test "$no_create" != yes; then
13898 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000013899 ac_config_status_args=
13900 test "$silent" = yes &&
13901 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000013902 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000013903 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000013904 exec 5>>config.log
13905 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13906 # would make configure fail if this is the last instruction.
drhf922ca42015-05-14 15:39:18 +000013907 $ac_cs_success || as_fn_exit 1
drh71eb93e2001-09-28 01:34:43 +000013908fi
drh8b727472009-01-19 18:18:40 +000013909if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
drhf922ca42015-05-14 15:39:18 +000013910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13911$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
drh8b727472009-01-19 18:18:40 +000013912fi
drh63a49ce2017-01-02 19:10:14 +000013913