blob: 246b1bc63e7eb47a9879fcc133acde7cf7709f90 [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.
drh9e31fe02016-10-14 21:16:27 +00003# Generated by GNU Autoconf 2.69 for sqlite 3.16.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'
drh9e31fe02016-10-14 21:16:27 +0000729PACKAGE_VERSION='3.16.0'
730PACKAGE_STRING='sqlite 3.16.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
775USE_AMALGAMATION
776TARGET_DEBUG
drhe44b8352015-10-30 14:25:57 +0000777TARGET_HAVE_EDITLINE
drhf922ca42015-05-14 15:39:18 +0000778TARGET_HAVE_READLINE
779TARGET_READLINE_INC
780TARGET_READLINE_LIBS
781HAVE_TCL
782TCL_SHLIB_SUFFIX
783TCL_STUB_LIB_SPEC
784TCL_STUB_LIB_FLAG
785TCL_STUB_LIB_FILE
786TCL_LIB_SPEC
787TCL_LIB_FLAG
788TCL_LIB_FILE
789TCL_INCLUDE_SPEC
790TCL_SRC_DIR
791TCL_BIN_DIR
792TCL_VERSION
793TARGET_EXEEXT
794SQLITE_OS_WIN
795SQLITE_OS_UNIX
796BUILD_EXEEXT
797TEMP_STORE
798ALLOWRELEASE
799SQLITE_THREADSAFE
800BUILD_CC
801VERSION_NUMBER
802RELEASE
803VERSION
804program_prefix
805TCLLIBDIR
806TCLSH_CMD
drhf922ca42015-05-14 15:39:18 +0000807INSTALL_DATA
808INSTALL_SCRIPT
809INSTALL_PROGRAM
810CPP
811OTOOL64
812OTOOL
813LIPO
814NMEDIT
815DSYMUTIL
816lt_ECHO
817RANLIB
818STRIP
819AR
820OBJDUMP
821LN_S
822NM
823ac_ct_DUMPBIN
824DUMPBIN
825LD
826FGREP
827EGREP
828GREP
829SED
830OBJEXT
831EXEEXT
832ac_ct_CC
833CPPFLAGS
834LDFLAGS
835CFLAGS
836CC
837host_os
838host_vendor
839host_cpu
840host
841build_os
842build_vendor
843build_cpu
844build
845LIBTOOL
846target_alias
847host_alias
848build_alias
849LIBS
850ECHO_T
851ECHO_N
852ECHO_C
853DEFS
854mandir
855localedir
856libdir
857psdir
858pdfdir
859dvidir
860htmldir
861infodir
862docdir
863oldincludedir
864includedir
865localstatedir
866sharedstatedir
867sysconfdir
868datadir
869datarootdir
870libexecdir
871sbindir
872bindir
873program_transform_name
874prefix
875exec_prefix
876PACKAGE_URL
877PACKAGE_BUGREPORT
878PACKAGE_STRING
879PACKAGE_VERSION
880PACKAGE_TARNAME
881PACKAGE_NAME
882PATH_SEPARATOR
883SHELL'
a.rottmann84e63352003-03-24 09:42:16 +0000884ac_subst_files=''
drh8b727472009-01-19 18:18:40 +0000885ac_user_opts='
886enable_option_checking
887enable_shared
888enable_static
889with_pic
890enable_fast_install
891with_gnu_ld
892enable_libtool_lock
893enable_largefile
drh8b727472009-01-19 18:18:40 +0000894enable_threadsafe
drh8b727472009-01-19 18:18:40 +0000895enable_releasemode
896enable_tempstore
897enable_tcl
898with_tcl
drhe44b8352015-10-30 14:25:57 +0000899enable_editline
drh8b727472009-01-19 18:18:40 +0000900enable_readline
901with_readline_lib
902with_readline_inc
903enable_debug
904enable_amalgamation
905enable_load_extension
drhc530b9c2016-07-25 11:27:22 +0000906enable_memsys5
drh5d513ba2016-07-25 11:57:21 +0000907enable_memsys3
drhce1d9f52015-10-09 12:48:33 +0000908enable_fts3
909enable_fts4
910enable_fts5
911enable_json1
912enable_rtree
drh5e18d402016-05-03 13:14:18 +0000913enable_session
drh8b727472009-01-19 18:18:40 +0000914enable_gcov
915'
916 ac_precious_vars='build_alias
917host_alias
918target_alias
919CC
920CFLAGS
921LDFLAGS
922LIBS
923CPPFLAGS
vapier6acb2cf2009-01-28 04:46:28 +0000924CPP
925TCLLIBDIR'
drh8b727472009-01-19 18:18:40 +0000926
drh75897232000-05-29 14:26:00 +0000927
928# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000929ac_init_help=
930ac_init_version=false
drh8b727472009-01-19 18:18:40 +0000931ac_unrecognized_opts=
932ac_unrecognized_sep=
drh75897232000-05-29 14:26:00 +0000933# The variables have the same names as the options, with
934# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000935cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000936exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000937no_create=
drh75897232000-05-29 14:26:00 +0000938no_recursion=
939prefix=NONE
940program_prefix=NONE
941program_suffix=NONE
942program_transform_name=s,x,x,
943silent=
944site=
945srcdir=
drh75897232000-05-29 14:26:00 +0000946verbose=
947x_includes=NONE
948x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000949
950# Installation directory options.
951# These are left unexpanded so users can "make install exec_prefix=/foo"
952# and all the variables that are supposed to be based on exec_prefix
953# by default will actually change.
954# Use braces instead of parens because sh, perl, etc. also accept them.
drh8b727472009-01-19 18:18:40 +0000955# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000956bindir='${exec_prefix}/bin'
957sbindir='${exec_prefix}/sbin'
958libexecdir='${exec_prefix}/libexec'
drh8b727472009-01-19 18:18:40 +0000959datarootdir='${prefix}/share'
960datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000961sysconfdir='${prefix}/etc'
962sharedstatedir='${prefix}/com'
963localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000964includedir='${prefix}/include'
965oldincludedir='/usr/include'
drh8b727472009-01-19 18:18:40 +0000966docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
967infodir='${datarootdir}/info'
968htmldir='${docdir}'
969dvidir='${docdir}'
970pdfdir='${docdir}'
971psdir='${docdir}'
972libdir='${exec_prefix}/lib'
973localedir='${datarootdir}/locale'
974mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000975
drh75897232000-05-29 14:26:00 +0000976ac_prev=
drh8b727472009-01-19 18:18:40 +0000977ac_dashdash=
drh75897232000-05-29 14:26:00 +0000978for ac_option
979do
drh75897232000-05-29 14:26:00 +0000980 # If the previous option needs an argument, assign it.
981 if test -n "$ac_prev"; then
drh8b727472009-01-19 18:18:40 +0000982 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000983 ac_prev=
984 continue
985 fi
986
drh8b727472009-01-19 18:18:40 +0000987 case $ac_option in
drhf922ca42015-05-14 15:39:18 +0000988 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
989 *=) ac_optarg= ;;
990 *) ac_optarg=yes ;;
drh8b727472009-01-19 18:18:40 +0000991 esac
drh75897232000-05-29 14:26:00 +0000992
993 # Accept the important Cygnus configure options, so we can diagnose typos.
994
drh8b727472009-01-19 18:18:40 +0000995 case $ac_dashdash$ac_option in
996 --)
997 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +0000998
999 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1000 ac_prev=bindir ;;
1001 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +00001002 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001003
1004 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +00001005 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +00001006 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +00001007 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001008
1009 -cache-file | --cache-file | --cache-fil | --cache-fi \
1010 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1011 ac_prev=cache_file ;;
1012 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1013 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +00001014 cache_file=$ac_optarg ;;
1015
1016 --config-cache | -C)
1017 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +00001018
drh8b727472009-01-19 18:18:40 +00001019 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +00001020 ac_prev=datadir ;;
drh8b727472009-01-19 18:18:40 +00001021 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +00001022 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001023
drh8b727472009-01-19 18:18:40 +00001024 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1025 | --dataroo | --dataro | --datar)
1026 ac_prev=datarootdir ;;
1027 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1028 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1029 datarootdir=$ac_optarg ;;
1030
drh75897232000-05-29 14:26:00 +00001031 -disable-* | --disable-*)
drh8b727472009-01-19 18:18:40 +00001032 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001033 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001035 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001036 ac_useropt_orig=$ac_useropt
1037 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038 case $ac_user_opts in
1039 *"
1040"enable_$ac_useropt"
1041"*) ;;
1042 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1043 ac_unrecognized_sep=', ';;
1044 esac
1045 eval enable_$ac_useropt=no ;;
1046
1047 -docdir | --docdir | --docdi | --doc | --do)
1048 ac_prev=docdir ;;
1049 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1050 docdir=$ac_optarg ;;
1051
1052 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1053 ac_prev=dvidir ;;
1054 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1055 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001056
1057 -enable-* | --enable-*)
drh8b727472009-01-19 18:18:40 +00001058 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001059 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001060 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001061 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001062 ac_useropt_orig=$ac_useropt
1063 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1064 case $ac_user_opts in
1065 *"
1066"enable_$ac_useropt"
1067"*) ;;
1068 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1069 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001070 esac
drh8b727472009-01-19 18:18:40 +00001071 eval enable_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001072
1073 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1074 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1075 | --exec | --exe | --ex)
1076 ac_prev=exec_prefix ;;
1077 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1078 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1079 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001080 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001081
1082 -gas | --gas | --ga | --g)
1083 # Obsolete; use --with-gas.
1084 with_gas=yes ;;
1085
drh71eb93e2001-09-28 01:34:43 +00001086 -help | --help | --hel | --he | -h)
1087 ac_init_help=long ;;
1088 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1089 ac_init_help=recursive ;;
1090 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1091 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001092
1093 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001094 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001095 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001096 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001097
drh8b727472009-01-19 18:18:40 +00001098 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1099 ac_prev=htmldir ;;
1100 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1101 | --ht=*)
1102 htmldir=$ac_optarg ;;
1103
drh75897232000-05-29 14:26:00 +00001104 -includedir | --includedir | --includedi | --included | --include \
1105 | --includ | --inclu | --incl | --inc)
1106 ac_prev=includedir ;;
1107 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1108 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001109 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001110
1111 -infodir | --infodir | --infodi | --infod | --info | --inf)
1112 ac_prev=infodir ;;
1113 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001114 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001115
1116 -libdir | --libdir | --libdi | --libd)
1117 ac_prev=libdir ;;
1118 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001119 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001120
1121 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1122 | --libexe | --libex | --libe)
1123 ac_prev=libexecdir ;;
1124 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1125 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001126 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001127
drh8b727472009-01-19 18:18:40 +00001128 -localedir | --localedir | --localedi | --localed | --locale)
1129 ac_prev=localedir ;;
1130 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1131 localedir=$ac_optarg ;;
1132
drh75897232000-05-29 14:26:00 +00001133 -localstatedir | --localstatedir | --localstatedi | --localstated \
drh8b727472009-01-19 18:18:40 +00001134 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001135 ac_prev=localstatedir ;;
1136 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh8b727472009-01-19 18:18:40 +00001137 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001138 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001139
1140 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1141 ac_prev=mandir ;;
1142 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001143 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001144
1145 -nfp | --nfp | --nf)
1146 # Obsolete; use --without-fp.
1147 with_fp=no ;;
1148
1149 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001150 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001151 no_create=yes ;;
1152
1153 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1154 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1155 no_recursion=yes ;;
1156
1157 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1158 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1159 | --oldin | --oldi | --old | --ol | --o)
1160 ac_prev=oldincludedir ;;
1161 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1162 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1163 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001164 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001165
1166 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1167 ac_prev=prefix ;;
1168 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001169 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001170
1171 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1172 | --program-pre | --program-pr | --program-p)
1173 ac_prev=program_prefix ;;
1174 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1175 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001176 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001177
1178 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1179 | --program-suf | --program-su | --program-s)
1180 ac_prev=program_suffix ;;
1181 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1182 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001183 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001184
1185 -program-transform-name | --program-transform-name \
1186 | --program-transform-nam | --program-transform-na \
1187 | --program-transform-n | --program-transform- \
1188 | --program-transform | --program-transfor \
1189 | --program-transfo | --program-transf \
1190 | --program-trans | --program-tran \
1191 | --progr-tra | --program-tr | --program-t)
1192 ac_prev=program_transform_name ;;
1193 -program-transform-name=* | --program-transform-name=* \
1194 | --program-transform-nam=* | --program-transform-na=* \
1195 | --program-transform-n=* | --program-transform-=* \
1196 | --program-transform=* | --program-transfor=* \
1197 | --program-transfo=* | --program-transf=* \
1198 | --program-trans=* | --program-tran=* \
1199 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001200 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001201
drh8b727472009-01-19 18:18:40 +00001202 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1203 ac_prev=pdfdir ;;
1204 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1205 pdfdir=$ac_optarg ;;
1206
1207 -psdir | --psdir | --psdi | --psd | --ps)
1208 ac_prev=psdir ;;
1209 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1210 psdir=$ac_optarg ;;
1211
drh75897232000-05-29 14:26:00 +00001212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1213 | -silent | --silent | --silen | --sile | --sil)
1214 silent=yes ;;
1215
1216 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1217 ac_prev=sbindir ;;
1218 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1219 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001220 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001221
1222 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1223 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1224 | --sharedst | --shareds | --shared | --share | --shar \
1225 | --sha | --sh)
1226 ac_prev=sharedstatedir ;;
1227 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1228 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1229 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1230 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001231 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001232
1233 -site | --site | --sit)
1234 ac_prev=site ;;
1235 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001236 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001237
1238 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1239 ac_prev=srcdir ;;
1240 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001241 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001242
1243 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1244 | --syscon | --sysco | --sysc | --sys | --sy)
1245 ac_prev=sysconfdir ;;
1246 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1247 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001248 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001249
1250 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001251 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001252 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001253 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001254
1255 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1256 verbose=yes ;;
1257
drh71eb93e2001-09-28 01:34:43 +00001258 -version | --version | --versio | --versi | --vers | -V)
1259 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001260
1261 -with-* | --with-*)
drh8b727472009-01-19 18:18:40 +00001262 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001263 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001265 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001266 ac_useropt_orig=$ac_useropt
1267 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268 case $ac_user_opts in
1269 *"
1270"with_$ac_useropt"
1271"*) ;;
1272 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1273 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001274 esac
drh8b727472009-01-19 18:18:40 +00001275 eval with_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001276
1277 -without-* | --without-*)
drh8b727472009-01-19 18:18:40 +00001278 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001279 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001281 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001282 ac_useropt_orig=$ac_useropt
1283 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284 case $ac_user_opts in
1285 *"
1286"with_$ac_useropt"
1287"*) ;;
1288 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1289 ac_unrecognized_sep=', ';;
1290 esac
1291 eval with_$ac_useropt=no ;;
drh75897232000-05-29 14:26:00 +00001292
1293 --x)
1294 # Obsolete; use --with-x.
1295 with_x=yes ;;
1296
1297 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1298 | --x-incl | --x-inc | --x-in | --x-i)
1299 ac_prev=x_includes ;;
1300 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1301 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001302 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001303
1304 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1305 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1306 ac_prev=x_libraries ;;
1307 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1308 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001309 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001310
drhf922ca42015-05-14 15:39:18 +00001311 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1312Try \`$0 --help' for more information"
drh75897232000-05-29 14:26:00 +00001313 ;;
1314
drh71eb93e2001-09-28 01:34:43 +00001315 *=*)
1316 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1317 # Reject names that are not valid shell variable names.
drhf922ca42015-05-14 15:39:18 +00001318 case $ac_envvar in #(
1319 '' | [0-9]* | *[!_$as_cr_alnum]* )
1320 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1321 esac
drh8b727472009-01-19 18:18:40 +00001322 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001323 export $ac_envvar ;;
1324
drh75897232000-05-29 14:26:00 +00001325 *)
drh71eb93e2001-09-28 01:34:43 +00001326 # FIXME: should be removed in autoconf 3.0.
drh8b727472009-01-19 18:18:40 +00001327 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +00001328 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001329 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drhf922ca42015-05-14 15:39:18 +00001330 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
drh75897232000-05-29 14:26:00 +00001331 ;;
1332
1333 esac
1334done
1335
1336if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001337 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
drhf922ca42015-05-14 15:39:18 +00001338 as_fn_error $? "missing argument to $ac_option"
drh75897232000-05-29 14:26:00 +00001339fi
1340
drh8b727472009-01-19 18:18:40 +00001341if test -n "$ac_unrecognized_opts"; then
1342 case $enable_option_checking in
1343 no) ;;
drhf922ca42015-05-14 15:39:18 +00001344 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1345 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
mlcreech636a9952008-05-05 22:52:56 +00001346 esac
drh8b727472009-01-19 18:18:40 +00001347fi
drh866108f2008-05-13 00:57:21 +00001348
drh8b727472009-01-19 18:18:40 +00001349# Check all directory arguments for consistency.
1350for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1351 datadir sysconfdir sharedstatedir localstatedir includedir \
1352 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1353 libdir localedir mandir
drh866108f2008-05-13 00:57:21 +00001354do
drh8b727472009-01-19 18:18:40 +00001355 eval ac_val=\$$ac_var
1356 # Remove trailing slashes.
drh71eb93e2001-09-28 01:34:43 +00001357 case $ac_val in
drh8b727472009-01-19 18:18:40 +00001358 */ )
1359 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1360 eval $ac_var=\$ac_val;;
drh75897232000-05-29 14:26:00 +00001361 esac
drh8b727472009-01-19 18:18:40 +00001362 # Be sure to have absolute directory names.
1363 case $ac_val in
1364 [\\/$]* | ?:[\\/]* ) continue;;
1365 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1366 esac
drhf922ca42015-05-14 15:39:18 +00001367 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
drh71eb93e2001-09-28 01:34:43 +00001368done
drh75897232000-05-29 14:26:00 +00001369
drh71eb93e2001-09-28 01:34:43 +00001370# There might be people who depend on the old broken behavior: `$host'
1371# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001372# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001373build=$build_alias
1374host=$host_alias
1375target=$target_alias
drh75897232000-05-29 14:26:00 +00001376
a.rottmann84e63352003-03-24 09:42:16 +00001377# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001378if test "x$host_alias" != x; then
1379 if test "x$build_alias" = x; then
1380 cross_compiling=maybe
drh71eb93e2001-09-28 01:34:43 +00001381 elif test "x$build_alias" != "x$host_alias"; then
1382 cross_compiling=yes
1383 fi
1384fi
1385
1386ac_tool_prefix=
1387test -n "$host_alias" && ac_tool_prefix=$host_alias-
1388
1389test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001390
a.rottmann84e63352003-03-24 09:42:16 +00001391
drh8b727472009-01-19 18:18:40 +00001392ac_pwd=`pwd` && test -n "$ac_pwd" &&
1393ac_ls_di=`ls -di .` &&
1394ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
drhf922ca42015-05-14 15:39:18 +00001395 as_fn_error $? "working directory cannot be determined"
drh8b727472009-01-19 18:18:40 +00001396test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
drhf922ca42015-05-14 15:39:18 +00001397 as_fn_error $? "pwd does not report name of working directory"
drh8b727472009-01-19 18:18:40 +00001398
1399
drh75897232000-05-29 14:26:00 +00001400# Find the source files, if location was not specified.
1401if test -z "$srcdir"; then
1402 ac_srcdir_defaulted=yes
drh8b727472009-01-19 18:18:40 +00001403 # Try the directory containing this script, then the parent directory.
1404 ac_confdir=`$as_dirname -- "$as_myself" ||
1405$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1406 X"$as_myself" : 'X\(//\)[^/]' \| \
1407 X"$as_myself" : 'X\(//\)$' \| \
1408 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1409$as_echo X"$as_myself" |
1410 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1411 s//\1/
1412 q
1413 }
1414 /^X\(\/\/\)[^/].*/{
1415 s//\1/
1416 q
1417 }
1418 /^X\(\/\/\)$/{
1419 s//\1/
1420 q
1421 }
1422 /^X\(\/\).*/{
1423 s//\1/
1424 q
1425 }
1426 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001427 srcdir=$ac_confdir
drh8b727472009-01-19 18:18:40 +00001428 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001429 srcdir=..
1430 fi
1431else
1432 ac_srcdir_defaulted=no
1433fi
drh8b727472009-01-19 18:18:40 +00001434if test ! -r "$srcdir/$ac_unique_file"; then
1435 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
drhf922ca42015-05-14 15:39:18 +00001436 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
mlcreech94984912008-03-04 19:03:08 +00001437fi
drh8b727472009-01-19 18:18:40 +00001438ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1439ac_abs_confdir=`(
drhf922ca42015-05-14 15:39:18 +00001440 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
drh8b727472009-01-19 18:18:40 +00001441 pwd)`
1442# When building in place, set srcdir=.
1443if test "$ac_abs_confdir" = "$ac_pwd"; then
1444 srcdir=.
1445fi
1446# Remove unnecessary trailing slashes from srcdir.
1447# Double slashes in file names in object file debugging info
1448# mess up M-x gdb in Emacs.
1449case $srcdir in
1450*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1451esac
1452for ac_var in $ac_precious_vars; do
1453 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1454 eval ac_env_${ac_var}_value=\$${ac_var}
1455 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1456 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1457done
drh75897232000-05-29 14:26:00 +00001458
drh71eb93e2001-09-28 01:34:43 +00001459#
1460# Report the --help message.
1461#
1462if test "$ac_init_help" = "long"; then
1463 # Omit some internal or obsolete options to make the list less imposing.
1464 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001465 cat <<_ACEOF
drh9e31fe02016-10-14 21:16:27 +00001466\`configure' configures sqlite 3.16.0 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001467
1468Usage: $0 [OPTION]... [VAR=VALUE]...
1469
1470To assign environment variables (e.g., CC, CFLAGS...), specify them as
1471VAR=VALUE. See below for descriptions of some of the useful variables.
1472
1473Defaults for the options are specified in brackets.
1474
1475Configuration:
1476 -h, --help display this help and exit
1477 --help=short display options specific to this package
1478 --help=recursive display the short help of all the included packages
1479 -V, --version display version information and exit
drhf922ca42015-05-14 15:39:18 +00001480 -q, --quiet, --silent do not print \`checking ...' messages
drh71eb93e2001-09-28 01:34:43 +00001481 --cache-file=FILE cache test results in FILE [disabled]
1482 -C, --config-cache alias for \`--cache-file=config.cache'
1483 -n, --no-create do not create output files
1484 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1485
drh71eb93e2001-09-28 01:34:43 +00001486Installation directories:
1487 --prefix=PREFIX install architecture-independent files in PREFIX
drh8b727472009-01-19 18:18:40 +00001488 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001489 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh8b727472009-01-19 18:18:40 +00001490 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001491
1492By default, \`make install' will install all the files in
1493\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1494an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1495for instance \`--prefix=\$HOME'.
1496
1497For better control, use the options below.
1498
1499Fine tuning of the installation directories:
drh8b727472009-01-19 18:18:40 +00001500 --bindir=DIR user executables [EPREFIX/bin]
1501 --sbindir=DIR system admin executables [EPREFIX/sbin]
1502 --libexecdir=DIR program executables [EPREFIX/libexec]
1503 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1504 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1505 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1506 --libdir=DIR object code libraries [EPREFIX/lib]
1507 --includedir=DIR C header files [PREFIX/include]
1508 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1509 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1510 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1511 --infodir=DIR info documentation [DATAROOTDIR/info]
1512 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1513 --mandir=DIR man documentation [DATAROOTDIR/man]
1514 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1515 --htmldir=DIR html documentation [DOCDIR]
1516 --dvidir=DIR dvi documentation [DOCDIR]
1517 --pdfdir=DIR pdf documentation [DOCDIR]
1518 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001519_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001520
a.rottmann84e63352003-03-24 09:42:16 +00001521 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001522
1523System types:
1524 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001525 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1526_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001527fi
1528
1529if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001530 case $ac_init_help in
drh9e31fe02016-10-14 21:16:27 +00001531 short | recursive ) echo "Configuration of sqlite 3.16.0:";;
mlcreechb87057f2008-03-06 07:19:20 +00001532 esac
a.rottmann84e63352003-03-24 09:42:16 +00001533 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001534
1535Optional Features:
drh8b727472009-01-19 18:18:40 +00001536 --disable-option-checking ignore unrecognized --enable/--with options
drh71eb93e2001-09-28 01:34:43 +00001537 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1538 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh8b727472009-01-19 18:18:40 +00001539 --enable-shared[=PKGS] build shared libraries [default=yes]
1540 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001541 --enable-fast-install[=PKGS]
1542 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001543 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001544 --disable-largefile omit support for large files
drh05c7e0b2015-01-10 14:27:17 +00001545 --disable-threadsafe Disable mutexing
drh94e4f822006-02-15 02:00:25 +00001546 --enable-releasemode Support libtool link to release mode
1547 --enable-tempstore Use an in-ram database for temporary tables
1548 (never,no,yes,always)
1549 --disable-tcl do not build TCL extension
drhe44b8352015-10-30 14:25:57 +00001550 --enable-editline enable BSD editline support
1551 --disable-readline disable readline support
drh94e4f822006-02-15 02:00:25 +00001552 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001553 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001554 separately
drh05c7e0b2015-01-10 14:27:17 +00001555 --disable-load-extension
1556 Disable loading of external extensions
drhc530b9c2016-07-25 11:27:22 +00001557 --enable-memsys5 Enable MEMSYS5
drh5d513ba2016-07-25 11:57:21 +00001558 --enable-memsys3 Enable MEMSYS3
drhce1d9f52015-10-09 12:48:33 +00001559 --enable-fts3 Enable the FTS3 extension
1560 --enable-fts4 Enable the FTS4 extension
1561 --enable-fts5 Enable the FTS5 extension
1562 --enable-json1 Enable the JSON1 extension
1563 --enable-rtree Enable the RTREE extension
drh5e18d402016-05-03 13:14:18 +00001564 --enable-session Enable the SESSION extension
mlcreechaac7b932008-04-01 02:45:22 +00001565 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001566
1567Optional Packages:
1568 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1569 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001570 --with-pic try to use only PIC/non-PIC objects [default=use
1571 both]
mlcreech636a9952008-05-05 22:52:56 +00001572 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh94e4f822006-02-15 02:00:25 +00001573 --with-tcl=DIR directory containing tcl configuration
1574 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001575 --with-readline-lib specify readline library
1576 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001577
1578Some influential environment variables:
1579 CC C compiler command
1580 CFLAGS C compiler flags
1581 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1582 nonstandard directory <lib dir>
drh8b727472009-01-19 18:18:40 +00001583 LIBS libraries to pass to the linker, e.g. -l<library>
drhf922ca42015-05-14 15:39:18 +00001584 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
drh8b727472009-01-19 18:18:40 +00001585 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001586 CPP C preprocessor
vapier6acb2cf2009-01-28 04:46:28 +00001587 TCLLIBDIR Where to install tcl plugin
drh71eb93e2001-09-28 01:34:43 +00001588
1589Use these variables to override the choices made by `configure' or to help
1590it to find libraries and programs with nonstandard names/locations.
1591
drhf922ca42015-05-14 15:39:18 +00001592Report bugs to the package provider.
a.rottmann84e63352003-03-24 09:42:16 +00001593_ACEOF
drh8b727472009-01-19 18:18:40 +00001594ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001595fi
1596
1597if test "$ac_init_help" = "recursive"; then
1598 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001599 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh8b727472009-01-19 18:18:40 +00001600 test -d "$ac_dir" ||
1601 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1602 continue
a.rottmann84e63352003-03-24 09:42:16 +00001603 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001604
drh8b727472009-01-19 18:18:40 +00001605case "$ac_dir" in
1606.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607*)
1608 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1609 # A ".." for each directory in $ac_dir_suffix.
1610 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1611 case $ac_top_builddir_sub in
1612 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1614 esac ;;
1615esac
1616ac_abs_top_builddir=$ac_pwd
1617ac_abs_builddir=$ac_pwd$ac_dir_suffix
1618# for backward compatibility:
1619ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001620
a.rottmann84e63352003-03-24 09:42:16 +00001621case $srcdir in
drh8b727472009-01-19 18:18:40 +00001622 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001623 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +00001624 ac_top_srcdir=$ac_top_builddir_sub
1625 ac_abs_top_srcdir=$ac_pwd ;;
1626 [\\/]* | ?:[\\/]* ) # Absolute name.
drh866108f2008-05-13 00:57:21 +00001627 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +00001628 ac_top_srcdir=$srcdir
1629 ac_abs_top_srcdir=$srcdir ;;
1630 *) # Relative name.
1631 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632 ac_top_srcdir=$ac_top_build_prefix$srcdir
1633 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
drh866108f2008-05-13 00:57:21 +00001634esac
drh8b727472009-01-19 18:18:40 +00001635ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
drh866108f2008-05-13 00:57:21 +00001636
drh8b727472009-01-19 18:18:40 +00001637 cd "$ac_dir" || { ac_status=$?; continue; }
1638 # Check for guested configure.
1639 if test -f "$ac_srcdir/configure.gnu"; then
1640 echo &&
1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642 elif test -f "$ac_srcdir/configure"; then
1643 echo &&
1644 $SHELL "$ac_srcdir/configure" --help=recursive
drh866108f2008-05-13 00:57:21 +00001645 else
drh8b727472009-01-19 18:18:40 +00001646 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1647 fi || ac_status=$?
1648 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001649 done
1650fi
1651
drh8b727472009-01-19 18:18:40 +00001652test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001653if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001654 cat <<\_ACEOF
drh9e31fe02016-10-14 21:16:27 +00001655sqlite configure 3.16.0
drhf922ca42015-05-14 15:39:18 +00001656generated by GNU Autoconf 2.69
drh71eb93e2001-09-28 01:34:43 +00001657
drhf922ca42015-05-14 15:39:18 +00001658Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001659This configure script is free software; the Free Software Foundation
1660gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001661_ACEOF
drh8b727472009-01-19 18:18:40 +00001662 exit
drh71eb93e2001-09-28 01:34:43 +00001663fi
drhf922ca42015-05-14 15:39:18 +00001664
1665## ------------------------ ##
1666## Autoconf initialization. ##
1667## ------------------------ ##
1668
1669# ac_fn_c_try_compile LINENO
1670# --------------------------
1671# Try to compile conftest.$ac_ext, and return whether this succeeded.
1672ac_fn_c_try_compile ()
1673{
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 rm -f conftest.$ac_objext
1676 if { { ac_try="$ac_compile"
1677case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_compile") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1689 fi
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && {
1692 test -z "$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 } && test -s conftest.$ac_objext; then :
1695 ac_retval=0
1696else
1697 $as_echo "$as_me: failed program was:" >&5
1698sed 's/^/| /' conftest.$ac_ext >&5
1699
1700 ac_retval=1
1701fi
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 as_fn_set_status $ac_retval
1704
1705} # ac_fn_c_try_compile
1706
1707# ac_fn_c_try_link LINENO
1708# -----------------------
1709# Try to link conftest.$ac_ext, and return whether this succeeded.
1710ac_fn_c_try_link ()
1711{
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 rm -f conftest.$ac_objext conftest$ac_exeext
1714 if { { ac_try="$ac_link"
1715case "(($ac_try" in
1716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1717 *) ac_try_echo=$ac_try;;
1718esac
1719eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720$as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_link") 2>conftest.err
1722 ac_status=$?
1723 if test -s conftest.err; then
1724 grep -v '^ *+' conftest.err >conftest.er1
1725 cat conftest.er1 >&5
1726 mv -f conftest.er1 conftest.err
1727 fi
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && {
1730 test -z "$ac_c_werror_flag" ||
1731 test ! -s conftest.err
1732 } && test -s conftest$ac_exeext && {
1733 test "$cross_compiling" = yes ||
1734 test -x conftest$ac_exeext
1735 }; then :
1736 ac_retval=0
1737else
1738 $as_echo "$as_me: failed program was:" >&5
1739sed 's/^/| /' conftest.$ac_ext >&5
1740
1741 ac_retval=1
1742fi
1743 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1744 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1745 # interfere with the next link command; also delete a directory that is
1746 # left behind by Apple's compiler. We do this before executing the actions.
1747 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749 as_fn_set_status $ac_retval
1750
1751} # ac_fn_c_try_link
1752
1753# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1754# -------------------------------------------------------
1755# Tests whether HEADER exists and can be compiled using the include files in
1756# INCLUDES, setting the cache variable VAR accordingly.
1757ac_fn_c_check_header_compile ()
1758{
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761$as_echo_n "checking for $2... " >&6; }
1762if eval \${$3+:} false; then :
1763 $as_echo_n "(cached) " >&6
1764else
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766/* end confdefs.h. */
1767$4
1768#include <$2>
1769_ACEOF
1770if ac_fn_c_try_compile "$LINENO"; then :
1771 eval "$3=yes"
1772else
1773 eval "$3=no"
1774fi
1775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1776fi
1777eval ac_res=\$$3
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779$as_echo "$ac_res" >&6; }
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781
1782} # ac_fn_c_check_header_compile
1783
1784# ac_fn_c_try_cpp LINENO
1785# ----------------------
1786# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1787ac_fn_c_try_cpp ()
1788{
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 if { { ac_try="$ac_cpp conftest.$ac_ext"
1791case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794esac
1795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796$as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1803 fi
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } > conftest.i && {
1806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1807 test ! -s conftest.err
1808 }; then :
1809 ac_retval=0
1810else
1811 $as_echo "$as_me: failed program was:" >&5
1812sed 's/^/| /' conftest.$ac_ext >&5
1813
1814 ac_retval=1
1815fi
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 as_fn_set_status $ac_retval
1818
1819} # ac_fn_c_try_cpp
1820
1821# ac_fn_c_try_run LINENO
1822# ----------------------
1823# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1824# that executables *can* be run.
1825ac_fn_c_try_run ()
1826{
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 if { { ac_try="$ac_link"
1829case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832esac
1833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834$as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_link") 2>&5
1836 ac_status=$?
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1839 { { case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1842esac
1843eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844$as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_try") 2>&5
1846 ac_status=$?
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; }; }; then :
1849 ac_retval=0
1850else
1851 $as_echo "$as_me: program exited with status $ac_status" >&5
1852 $as_echo "$as_me: failed program was:" >&5
1853sed 's/^/| /' conftest.$ac_ext >&5
1854
1855 ac_retval=$ac_status
1856fi
1857 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 as_fn_set_status $ac_retval
1860
1861} # ac_fn_c_try_run
1862
1863# ac_fn_c_check_func LINENO FUNC VAR
1864# ----------------------------------
1865# Tests whether FUNC exists, setting the cache variable VAR accordingly
1866ac_fn_c_check_func ()
1867{
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870$as_echo_n "checking for $2... " >&6; }
1871if eval \${$3+:} false; then :
1872 $as_echo_n "(cached) " >&6
1873else
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875/* end confdefs.h. */
1876/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1878#define $2 innocuous_$2
1879
1880/* System header to define __stub macros and hopefully few prototypes,
1881 which can conflict with char $2 (); below.
1882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1883 <limits.h> exists even on freestanding compilers. */
1884
1885#ifdef __STDC__
1886# include <limits.h>
1887#else
1888# include <assert.h>
1889#endif
1890
1891#undef $2
1892
1893/* Override any GCC internal prototype to avoid an error.
1894 Use char because int might match the return type of a GCC
1895 builtin and then its argument prototype would still apply. */
1896#ifdef __cplusplus
1897extern "C"
1898#endif
1899char $2 ();
1900/* The GNU C library defines this for functions which it implements
1901 to always fail with ENOSYS. Some functions are actually named
1902 something starting with __ and the normal name is an alias. */
1903#if defined __stub_$2 || defined __stub___$2
1904choke me
1905#endif
1906
1907int
1908main ()
1909{
1910return $2 ();
1911 ;
1912 return 0;
1913}
1914_ACEOF
1915if ac_fn_c_try_link "$LINENO"; then :
1916 eval "$3=yes"
1917else
1918 eval "$3=no"
1919fi
1920rm -f core conftest.err conftest.$ac_objext \
1921 conftest$ac_exeext conftest.$ac_ext
1922fi
1923eval ac_res=\$$3
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925$as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927
1928} # ac_fn_c_check_func
1929
1930# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1931# -------------------------------------------
1932# Tests whether TYPE exists after having included INCLUDES, setting cache
1933# variable VAR accordingly.
1934ac_fn_c_check_type ()
1935{
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938$as_echo_n "checking for $2... " >&6; }
1939if eval \${$3+:} false; then :
1940 $as_echo_n "(cached) " >&6
1941else
1942 eval "$3=no"
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944/* end confdefs.h. */
1945$4
1946int
1947main ()
1948{
1949if (sizeof ($2))
1950 return 0;
1951 ;
1952 return 0;
1953}
1954_ACEOF
1955if ac_fn_c_try_compile "$LINENO"; then :
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957/* end confdefs.h. */
1958$4
1959int
1960main ()
1961{
1962if (sizeof (($2)))
1963 return 0;
1964 ;
1965 return 0;
1966}
1967_ACEOF
1968if ac_fn_c_try_compile "$LINENO"; then :
1969
1970else
1971 eval "$3=yes"
1972fi
1973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974fi
1975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976fi
1977eval ac_res=\$$3
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979$as_echo "$ac_res" >&6; }
1980 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1981
1982} # ac_fn_c_check_type
1983
1984# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1985# -------------------------------------------------------
1986# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1987# the include files in INCLUDES and setting the cache variable VAR
1988# accordingly.
1989ac_fn_c_check_header_mongrel ()
1990{
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 if eval \${$3+:} false; then :
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994$as_echo_n "checking for $2... " >&6; }
1995if eval \${$3+:} false; then :
1996 $as_echo_n "(cached) " >&6
1997fi
1998eval ac_res=\$$3
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000$as_echo "$ac_res" >&6; }
2001else
2002 # Is the header compilable?
2003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2004$as_echo_n "checking $2 usability... " >&6; }
2005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006/* end confdefs.h. */
2007$4
2008#include <$2>
2009_ACEOF
2010if ac_fn_c_try_compile "$LINENO"; then :
2011 ac_header_compiler=yes
2012else
2013 ac_header_compiler=no
2014fi
2015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2017$as_echo "$ac_header_compiler" >&6; }
2018
2019# Is the header present?
2020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2021$as_echo_n "checking $2 presence... " >&6; }
2022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023/* end confdefs.h. */
2024#include <$2>
2025_ACEOF
2026if ac_fn_c_try_cpp "$LINENO"; then :
2027 ac_header_preproc=yes
2028else
2029 ac_header_preproc=no
2030fi
2031rm -f conftest.err conftest.i conftest.$ac_ext
2032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2033$as_echo "$ac_header_preproc" >&6; }
2034
2035# So? What about this header?
2036case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2037 yes:no: )
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2039$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2041$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2042 ;;
2043 no:yes:* )
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2045$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2047$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2049$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2051$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2053$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2054 ;;
2055esac
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2057$as_echo_n "checking for $2... " >&6; }
2058if eval \${$3+:} false; then :
2059 $as_echo_n "(cached) " >&6
2060else
2061 eval "$3=\$ac_header_compiler"
2062fi
2063eval ac_res=\$$3
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2065$as_echo "$ac_res" >&6; }
2066fi
2067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2068
2069} # ac_fn_c_check_header_mongrel
drh8b727472009-01-19 18:18:40 +00002070cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002071This file contains any messages produced by compilers while
2072running configure, to aid debugging if configure makes a mistake.
2073
drh9e31fe02016-10-14 21:16:27 +00002074It was created by sqlite $as_me 3.16.0, which was
drhf922ca42015-05-14 15:39:18 +00002075generated by GNU Autoconf 2.69. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00002076
2077 $ $0 $@
2078
a.rottmann84e63352003-03-24 09:42:16 +00002079_ACEOF
drh8b727472009-01-19 18:18:40 +00002080exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00002081{
2082cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002083## --------- ##
2084## Platform. ##
2085## --------- ##
drh71eb93e2001-09-28 01:34:43 +00002086
2087hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2088uname -m = `(uname -m) 2>/dev/null || echo unknown`
2089uname -r = `(uname -r) 2>/dev/null || echo unknown`
2090uname -s = `(uname -s) 2>/dev/null || echo unknown`
2091uname -v = `(uname -v) 2>/dev/null || echo unknown`
2092
2093/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2094/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2095
2096/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2097/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2098/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh8b727472009-01-19 18:18:40 +00002099/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00002100/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2101/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2102/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2103
drh71eb93e2001-09-28 01:34:43 +00002104_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002105
2106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107for as_dir in $PATH
2108do
2109 IFS=$as_save_IFS
2110 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002111 $as_echo "PATH: $as_dir"
2112 done
drh8b727472009-01-19 18:18:40 +00002113IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00002114
drh71eb93e2001-09-28 01:34:43 +00002115} >&5
2116
a.rottmann84e63352003-03-24 09:42:16 +00002117cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002118
a.rottmann84e63352003-03-24 09:42:16 +00002119
2120## ----------- ##
2121## Core tests. ##
2122## ----------- ##
2123
2124_ACEOF
2125
drh71eb93e2001-09-28 01:34:43 +00002126
2127# Keep a trace of the command line.
2128# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00002129# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00002130# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00002131# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00002132ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00002133ac_configure_args0=
2134ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00002135ac_must_keep_next=false
2136for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00002137do
a.rottmann84e63352003-03-24 09:42:16 +00002138 for ac_arg
2139 do
2140 case $ac_arg in
2141 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2143 | -silent | --silent | --silen | --sile | --sil)
2144 continue ;;
drh8b727472009-01-19 18:18:40 +00002145 *\'*)
2146 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002147 esac
2148 case $ac_pass in
drhf922ca42015-05-14 15:39:18 +00002149 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
a.rottmann84e63352003-03-24 09:42:16 +00002150 2)
drhf922ca42015-05-14 15:39:18 +00002151 as_fn_append ac_configure_args1 " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002152 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00002153 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00002154 else
a.rottmann964dbb12004-02-26 19:47:42 +00002155 case $ac_arg in
2156 *=* | --config-cache | -C | -disable-* | --disable-* \
2157 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2158 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2159 | -with-* | --with-* | -without-* | --without-* | --x)
2160 case "$ac_configure_args0 " in
2161 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2162 esac
2163 ;;
2164 -* ) ac_must_keep_next=true ;;
2165 esac
a.rottmann84e63352003-03-24 09:42:16 +00002166 fi
drhf922ca42015-05-14 15:39:18 +00002167 as_fn_append ac_configure_args " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002168 ;;
2169 esac
2170 done
drh71eb93e2001-09-28 01:34:43 +00002171done
drhf922ca42015-05-14 15:39:18 +00002172{ ac_configure_args0=; unset ac_configure_args0;}
2173{ ac_configure_args1=; unset ac_configure_args1;}
drh71eb93e2001-09-28 01:34:43 +00002174
2175# When interrupted or exit'd, cleanup temporary files, and complete
2176# config.log. We remove comments because anyway the quotes in there
2177# would cause problems or look ugly.
drh8b727472009-01-19 18:18:40 +00002178# WARNING: Use '\'' to represent an apostrophe within the trap.
2179# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00002180trap 'exit_status=$?
2181 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00002182 {
2183 echo
2184
drhf922ca42015-05-14 15:39:18 +00002185 $as_echo "## ---------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002186## Cache variables. ##
drhf922ca42015-05-14 15:39:18 +00002187## ---------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002188 echo
2189 # The following way of writing the cache mishandles newlines in values,
drh8b727472009-01-19 18:18:40 +00002190(
2191 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2192 eval ac_val=\$$ac_var
2193 case $ac_val in #(
2194 *${as_nl}*)
2195 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +00002196 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2197$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +00002198 esac
2199 case $ac_var in #(
2200 _ | IFS | as_nl) ;; #(
2201 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +00002202 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +00002203 esac ;;
2204 esac
2205 done
drh71eb93e2001-09-28 01:34:43 +00002206 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +00002207 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2208 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00002209 sed -n \
drh8b727472009-01-19 18:18:40 +00002210 "s/'\''/'\''\\\\'\'''\''/g;
2211 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2212 ;; #(
drh866108f2008-05-13 00:57:21 +00002213 *)
drh8b727472009-01-19 18:18:40 +00002214 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh866108f2008-05-13 00:57:21 +00002215 ;;
drh8b727472009-01-19 18:18:40 +00002216 esac |
2217 sort
2218)
a.rottmann84e63352003-03-24 09:42:16 +00002219 echo
2220
drhf922ca42015-05-14 15:39:18 +00002221 $as_echo "## ----------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002222## Output variables. ##
drhf922ca42015-05-14 15:39:18 +00002223## ----------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002224 echo
2225 for ac_var in $ac_subst_vars
2226 do
drh8b727472009-01-19 18:18:40 +00002227 eval ac_val=\$$ac_var
2228 case $ac_val in
2229 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2230 esac
2231 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002232 done | sort
2233 echo
2234
2235 if test -n "$ac_subst_files"; then
drhf922ca42015-05-14 15:39:18 +00002236 $as_echo "## ------------------- ##
drh8b727472009-01-19 18:18:40 +00002237## File substitutions. ##
drhf922ca42015-05-14 15:39:18 +00002238## ------------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002239 echo
2240 for ac_var in $ac_subst_files
2241 do
drh8b727472009-01-19 18:18:40 +00002242 eval ac_val=\$$ac_var
2243 case $ac_val in
2244 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2245 esac
2246 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002247 done | sort
2248 echo
2249 fi
2250
2251 if test -s confdefs.h; then
drhf922ca42015-05-14 15:39:18 +00002252 $as_echo "## ----------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002253## confdefs.h. ##
drhf922ca42015-05-14 15:39:18 +00002254## ----------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002255 echo
drh8b727472009-01-19 18:18:40 +00002256 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00002257 echo
2258 fi
2259 test "$ac_signal" != 0 &&
drh8b727472009-01-19 18:18:40 +00002260 $as_echo "$as_me: caught signal $ac_signal"
2261 $as_echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00002262 } >&5
drh8b727472009-01-19 18:18:40 +00002263 rm -f core *.core core.conftest.* &&
2264 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00002265 exit $exit_status
drh8b727472009-01-19 18:18:40 +00002266' 0
drh71eb93e2001-09-28 01:34:43 +00002267for ac_signal in 1 2 13 15; do
drhf922ca42015-05-14 15:39:18 +00002268 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
drh71eb93e2001-09-28 01:34:43 +00002269done
2270ac_signal=0
2271
2272# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh8b727472009-01-19 18:18:40 +00002273rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00002274
drhf922ca42015-05-14 15:39:18 +00002275$as_echo "/* confdefs.h */" > confdefs.h
2276
a.rottmann84e63352003-03-24 09:42:16 +00002277# Predefined preprocessor variables.
2278
2279cat >>confdefs.h <<_ACEOF
2280#define PACKAGE_NAME "$PACKAGE_NAME"
2281_ACEOF
2282
a.rottmann84e63352003-03-24 09:42:16 +00002283cat >>confdefs.h <<_ACEOF
2284#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2285_ACEOF
2286
a.rottmann84e63352003-03-24 09:42:16 +00002287cat >>confdefs.h <<_ACEOF
2288#define PACKAGE_VERSION "$PACKAGE_VERSION"
2289_ACEOF
2290
a.rottmann84e63352003-03-24 09:42:16 +00002291cat >>confdefs.h <<_ACEOF
2292#define PACKAGE_STRING "$PACKAGE_STRING"
2293_ACEOF
2294
dana9f39fd2011-08-12 16:34:42 +00002295cat >>confdefs.h <<_ACEOF
drh710658c2012-01-16 13:00:05 +00002296#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
dana9f39fd2011-08-12 16:34:42 +00002297_ACEOF
2298
drhf922ca42015-05-14 15:39:18 +00002299cat >>confdefs.h <<_ACEOF
2300#define PACKAGE_URL "$PACKAGE_URL"
2301_ACEOF
2302
a.rottmann84e63352003-03-24 09:42:16 +00002303
drh71eb93e2001-09-28 01:34:43 +00002304# Let the site file select an alternate cache file if it wants to.
drh8b727472009-01-19 18:18:40 +00002305# Prefer an explicitly selected file to automatically selected ones.
2306ac_site_file1=NONE
2307ac_site_file2=NONE
2308if test -n "$CONFIG_SITE"; then
drhf922ca42015-05-14 15:39:18 +00002309 # We do not want a PATH search for config.site.
2310 case $CONFIG_SITE in #((
2311 -*) ac_site_file1=./$CONFIG_SITE;;
2312 */*) ac_site_file1=$CONFIG_SITE;;
2313 *) ac_site_file1=./$CONFIG_SITE;;
2314 esac
drh8b727472009-01-19 18:18:40 +00002315elif test "x$prefix" != xNONE; then
2316 ac_site_file1=$prefix/share/config.site
2317 ac_site_file2=$prefix/etc/config.site
2318else
2319 ac_site_file1=$ac_default_prefix/share/config.site
2320 ac_site_file2=$ac_default_prefix/etc/config.site
drh75897232000-05-29 14:26:00 +00002321fi
drh8b727472009-01-19 18:18:40 +00002322for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2323do
2324 test "x$ac_site_file" = xNONE && continue
drhf922ca42015-05-14 15:39:18 +00002325 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
drh8b727472009-01-19 18:18:40 +00002327$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00002328 sed 's/^/| /' "$ac_site_file" >&5
drhf922ca42015-05-14 15:39:18 +00002329 . "$ac_site_file" \
2330 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2331$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2332as_fn_error $? "failed to load site script $ac_site_file
2333See \`config.log' for more details" "$LINENO" 5; }
drh75897232000-05-29 14:26:00 +00002334 fi
2335done
2336
2337if test -r "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +00002338 # Some versions of bash will fail to source /dev/null (special files
2339 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2340 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002342$as_echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002343 case $cache_file in
drh8b727472009-01-19 18:18:40 +00002344 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2345 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00002346 esac
2347 fi
drh75897232000-05-29 14:26:00 +00002348else
drhf922ca42015-05-14 15:39:18 +00002349 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002350$as_echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002351 >$cache_file
2352fi
2353
2354# Check that the precious variables saved in the cache have kept the same
2355# value.
2356ac_cache_corrupted=false
drh8b727472009-01-19 18:18:40 +00002357for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00002358 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2359 eval ac_new_set=\$ac_env_${ac_var}_set
drh8b727472009-01-19 18:18:40 +00002360 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2361 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00002362 case $ac_old_set,$ac_new_set in
2363 set,)
drhf922ca42015-05-14 15:39:18 +00002364 { $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 +00002365$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002366 ac_cache_corrupted=: ;;
2367 ,set)
drhf922ca42015-05-14 15:39:18 +00002368 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00002369$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002370 ac_cache_corrupted=: ;;
2371 ,);;
2372 *)
2373 if test "x$ac_old_val" != "x$ac_new_val"; then
drh8b727472009-01-19 18:18:40 +00002374 # differences in whitespace do not lead to failure.
2375 ac_old_val_w=`echo x $ac_old_val`
2376 ac_new_val_w=`echo x $ac_new_val`
2377 if test "$ac_old_val_w" != "$ac_new_val_w"; then
drhf922ca42015-05-14 15:39:18 +00002378 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00002379$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2380 ac_cache_corrupted=:
2381 else
drhf922ca42015-05-14 15:39:18 +00002382 { $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 +00002383$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2384 eval $ac_var=\$ac_old_val
2385 fi
drhf922ca42015-05-14 15:39:18 +00002386 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
drh8b727472009-01-19 18:18:40 +00002387$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
drhf922ca42015-05-14 15:39:18 +00002388 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
drh8b727472009-01-19 18:18:40 +00002389$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002390 fi;;
2391 esac
a.rottmann84e63352003-03-24 09:42:16 +00002392 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00002393 if test "$ac_new_set" = set; then
2394 case $ac_new_val in
drh8b727472009-01-19 18:18:40 +00002395 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002396 *) ac_arg=$ac_var=$ac_new_val ;;
2397 esac
2398 case " $ac_configure_args " in
2399 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
drhf922ca42015-05-14 15:39:18 +00002400 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00002401 esac
2402 fi
2403done
2404if $ac_cache_corrupted; then
drhf922ca42015-05-14 15:39:18 +00002405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2406$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
drh8b727472009-01-19 18:18:40 +00002408$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
drhf922ca42015-05-14 15:39:18 +00002409 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
drh75897232000-05-29 14:26:00 +00002410fi
drhf922ca42015-05-14 15:39:18 +00002411## -------------------- ##
2412## Main body of script. ##
2413## -------------------- ##
drh8b727472009-01-19 18:18:40 +00002414
drh75897232000-05-29 14:26:00 +00002415ac_ext=c
drh75897232000-05-29 14:26:00 +00002416ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00002417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2419ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00002420
a.rottmann84e63352003-03-24 09:42:16 +00002421
2422
drh04446102009-06-15 00:04:06 +00002423sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
vapierfaa68db2009-04-01 07:38:31 +00002424if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
drhf922ca42015-05-14 15:39:18 +00002425as_fn_error $? "configure script is out of date:
vapierfaa68db2009-04-01 07:38:31 +00002426 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2427 top level VERSION file = $sqlite_version_sanity_check
drhf922ca42015-05-14 15:39:18 +00002428please regen with autoconf" "$LINENO" 5
vapierfaa68db2009-04-01 07:38:31 +00002429fi
2430
drh75897232000-05-29 14:26:00 +00002431#########
drh71eb93e2001-09-28 01:34:43 +00002432# Programs needed
drh75897232000-05-29 14:26:00 +00002433#
mlcreech636a9952008-05-05 22:52:56 +00002434case `pwd` in
2435 *\ * | *\ *)
drhf922ca42015-05-14 15:39:18 +00002436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
drh8b727472009-01-19 18:18:40 +00002437$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00002438esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002439
mlcreech94984912008-03-04 19:03:08 +00002440
mlcreech636a9952008-05-05 22:52:56 +00002441
vapier6acb2cf2009-01-28 04:46:28 +00002442macro_version='2.2.6'
2443macro_revision='1.3012'
a.rottmann9bc8b932004-02-29 15:18:31 +00002444
mlcreech94984912008-03-04 19:03:08 +00002445
mlcreech94984912008-03-04 19:03:08 +00002446
a.rottmann9bc8b932004-02-29 15:18:31 +00002447
mlcreech636a9952008-05-05 22:52:56 +00002448
2449
2450
2451
2452
2453
2454
2455
2456
2457ltmain="$ac_aux_dir/ltmain.sh"
2458
drh71eb93e2001-09-28 01:34:43 +00002459ac_aux_dir=
drh8b727472009-01-19 18:18:40 +00002460for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
drh0fe0c462011-09-22 00:56:38 +00002461 if test -f "$ac_dir/install-sh"; then
2462 ac_aux_dir=$ac_dir
2463 ac_install_sh="$ac_aux_dir/install-sh -c"
2464 break
2465 elif test -f "$ac_dir/install.sh"; then
2466 ac_aux_dir=$ac_dir
2467 ac_install_sh="$ac_aux_dir/install.sh -c"
2468 break
2469 elif test -f "$ac_dir/shtool"; then
2470 ac_aux_dir=$ac_dir
2471 ac_install_sh="$ac_aux_dir/shtool install -c"
2472 break
2473 fi
drh71eb93e2001-09-28 01:34:43 +00002474done
2475if test -z "$ac_aux_dir"; then
drhf922ca42015-05-14 15:39:18 +00002476 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002477fi
drh8b727472009-01-19 18:18:40 +00002478
2479# These three variables are undocumented and unsupported,
2480# and are intended to be withdrawn in a future Autoconf release.
2481# They can cause serious problems if a builder's source tree is in a directory
2482# whose full name contains unusual characters.
2483ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2484ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2485ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2486
drh71eb93e2001-09-28 01:34:43 +00002487
2488# Make sure we can run config.sub.
drh8b727472009-01-19 18:18:40 +00002489$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
drhf922ca42015-05-14 15:39:18 +00002490 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002491
drhf922ca42015-05-14 15:39:18 +00002492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
drh8b727472009-01-19 18:18:40 +00002493$as_echo_n "checking build system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002494if ${ac_cv_build+:} false; then :
drh8b727472009-01-19 18:18:40 +00002495 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002496else
drh8b727472009-01-19 18:18:40 +00002497 ac_build_alias=$build_alias
2498test "x$ac_build_alias" = x &&
2499 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2500test "x$ac_build_alias" = x &&
drhf922ca42015-05-14 15:39:18 +00002501 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002502ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
drhf922ca42015-05-14 15:39:18 +00002503 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002504
2505fi
drhf922ca42015-05-14 15:39:18 +00002506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
drh8b727472009-01-19 18:18:40 +00002507$as_echo "$ac_cv_build" >&6; }
2508case $ac_cv_build in
2509*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002510*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002511esac
drh71eb93e2001-09-28 01:34:43 +00002512build=$ac_cv_build
drh8b727472009-01-19 18:18:40 +00002513ac_save_IFS=$IFS; IFS='-'
2514set x $ac_cv_build
2515shift
2516build_cpu=$1
2517build_vendor=$2
2518shift; shift
2519# Remember, the first character of IFS is used to create $*,
2520# except with old shells:
2521build_os=$*
2522IFS=$ac_save_IFS
2523case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002524
a.rottmann84e63352003-03-24 09:42:16 +00002525
drhf922ca42015-05-14 15:39:18 +00002526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
drh8b727472009-01-19 18:18:40 +00002527$as_echo_n "checking host system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002528if ${ac_cv_host+:} false; then :
drh8b727472009-01-19 18:18:40 +00002529 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002530else
drh8b727472009-01-19 18:18:40 +00002531 if test "x$host_alias" = x; then
2532 ac_cv_host=$ac_cv_build
2533else
2534 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
drhf922ca42015-05-14 15:39:18 +00002535 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002536fi
drh71eb93e2001-09-28 01:34:43 +00002537
2538fi
drhf922ca42015-05-14 15:39:18 +00002539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
drh8b727472009-01-19 18:18:40 +00002540$as_echo "$ac_cv_host" >&6; }
2541case $ac_cv_host in
2542*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002543*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002544esac
drh71eb93e2001-09-28 01:34:43 +00002545host=$ac_cv_host
drh8b727472009-01-19 18:18:40 +00002546ac_save_IFS=$IFS; IFS='-'
2547set x $ac_cv_host
2548shift
2549host_cpu=$1
2550host_vendor=$2
2551shift; shift
2552# Remember, the first character of IFS is used to create $*,
2553# except with old shells:
2554host_os=$*
2555IFS=$ac_save_IFS
2556case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002557
a.rottmann84e63352003-03-24 09:42:16 +00002558
drh71eb93e2001-09-28 01:34:43 +00002559ac_ext=c
2560ac_cpp='$CPP $CPPFLAGS'
2561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2563ac_compiler_gnu=$ac_cv_c_compiler_gnu
2564if test -n "$ac_tool_prefix"; then
2565 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2566set dummy ${ac_tool_prefix}gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002568$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002569if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002570 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002571else
2572 if test -n "$CC"; then
2573 ac_cv_prog_CC="$CC" # Let the user override the test.
2574else
a.rottmann84e63352003-03-24 09:42:16 +00002575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576for as_dir in $PATH
2577do
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002582 ac_cv_prog_CC="${ac_tool_prefix}gcc"
drhf922ca42015-05-14 15:39:18 +00002583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002584 break 2
2585 fi
2586done
drhf922ca42015-05-14 15:39:18 +00002587 done
drh8b727472009-01-19 18:18:40 +00002588IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002589
2590fi
2591fi
2592CC=$ac_cv_prog_CC
2593if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002595$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002596else
drhf922ca42015-05-14 15:39:18 +00002597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002598$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002599fi
2600
drh8b727472009-01-19 18:18:40 +00002601
drh71eb93e2001-09-28 01:34:43 +00002602fi
2603if test -z "$ac_cv_prog_CC"; then
2604 ac_ct_CC=$CC
2605 # Extract the first word of "gcc", so it can be a program name with args.
2606set dummy gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002608$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002609if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002610 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002611else
2612 if test -n "$ac_ct_CC"; then
2613 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2614else
a.rottmann84e63352003-03-24 09:42:16 +00002615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616for as_dir in $PATH
2617do
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002622 ac_cv_prog_ac_ct_CC="gcc"
drhf922ca42015-05-14 15:39:18 +00002623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002624 break 2
2625 fi
2626done
drhf922ca42015-05-14 15:39:18 +00002627 done
drh8b727472009-01-19 18:18:40 +00002628IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002629
2630fi
2631fi
2632ac_ct_CC=$ac_cv_prog_ac_ct_CC
2633if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002635$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002636else
drhf922ca42015-05-14 15:39:18 +00002637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002638$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002639fi
2640
drh8b727472009-01-19 18:18:40 +00002641 if test "x$ac_ct_CC" = x; then
2642 CC=""
2643 else
2644 case $cross_compiling:$ac_tool_warned in
2645yes:)
drhf922ca42015-05-14 15:39:18 +00002646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002648ac_tool_warned=yes ;;
2649esac
2650 CC=$ac_ct_CC
2651 fi
drh71eb93e2001-09-28 01:34:43 +00002652else
2653 CC="$ac_cv_prog_CC"
2654fi
2655
2656if test -z "$CC"; then
drh8b727472009-01-19 18:18:40 +00002657 if test -n "$ac_tool_prefix"; then
2658 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002659set dummy ${ac_tool_prefix}cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002661$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002662if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002663 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002664else
2665 if test -n "$CC"; then
2666 ac_cv_prog_CC="$CC" # Let the user override the test.
2667else
a.rottmann84e63352003-03-24 09:42:16 +00002668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669for as_dir in $PATH
2670do
2671 IFS=$as_save_IFS
2672 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002673 for ac_exec_ext in '' $ac_executable_extensions; do
2674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002675 ac_cv_prog_CC="${ac_tool_prefix}cc"
drhf922ca42015-05-14 15:39:18 +00002676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002677 break 2
2678 fi
2679done
drhf922ca42015-05-14 15:39:18 +00002680 done
drh8b727472009-01-19 18:18:40 +00002681IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002682
2683fi
2684fi
2685CC=$ac_cv_prog_CC
2686if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002688$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002689else
drhf922ca42015-05-14 15:39:18 +00002690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002691$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002692fi
2693
drh8b727472009-01-19 18:18:40 +00002694
a.rottmann84e63352003-03-24 09:42:16 +00002695 fi
drh71eb93e2001-09-28 01:34:43 +00002696fi
2697if test -z "$CC"; then
2698 # Extract the first word of "cc", so it can be a program name with args.
2699set dummy cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002701$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002702if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002703 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002704else
2705 if test -n "$CC"; then
2706 ac_cv_prog_CC="$CC" # Let the user override the test.
2707else
2708 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710for as_dir in $PATH
2711do
2712 IFS=$as_save_IFS
2713 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002714 for ac_exec_ext in '' $ac_executable_extensions; do
2715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002716 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2717 ac_prog_rejected=yes
2718 continue
2719 fi
2720 ac_cv_prog_CC="cc"
drhf922ca42015-05-14 15:39:18 +00002721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002722 break 2
2723 fi
2724done
drhf922ca42015-05-14 15:39:18 +00002725 done
drh8b727472009-01-19 18:18:40 +00002726IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002727
2728if test $ac_prog_rejected = yes; then
2729 # We found a bogon in the path, so make sure we never use it.
2730 set dummy $ac_cv_prog_CC
2731 shift
2732 if test $# != 0; then
2733 # We chose a different compiler from the bogus one.
2734 # However, it has the same basename, so the bogon will be chosen
2735 # first if we set CC to just the basename; use the full file name.
2736 shift
a.rottmann84e63352003-03-24 09:42:16 +00002737 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002738 fi
2739fi
2740fi
2741fi
2742CC=$ac_cv_prog_CC
2743if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002745$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002746else
drhf922ca42015-05-14 15:39:18 +00002747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002748$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002749fi
2750
drh8b727472009-01-19 18:18:40 +00002751
drh71eb93e2001-09-28 01:34:43 +00002752fi
2753if test -z "$CC"; then
2754 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00002755 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002756 do
2757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2758set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002760$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002761if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002762 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002763else
2764 if test -n "$CC"; then
2765 ac_cv_prog_CC="$CC" # Let the user override the test.
2766else
a.rottmann84e63352003-03-24 09:42:16 +00002767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768for as_dir in $PATH
2769do
2770 IFS=$as_save_IFS
2771 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002774 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002776 break 2
2777 fi
2778done
drhf922ca42015-05-14 15:39:18 +00002779 done
drh8b727472009-01-19 18:18:40 +00002780IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002781
2782fi
2783fi
2784CC=$ac_cv_prog_CC
2785if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002787$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002788else
drhf922ca42015-05-14 15:39:18 +00002789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002790$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002791fi
2792
drh8b727472009-01-19 18:18:40 +00002793
drh71eb93e2001-09-28 01:34:43 +00002794 test -n "$CC" && break
2795 done
2796fi
2797if test -z "$CC"; then
2798 ac_ct_CC=$CC
drh8b727472009-01-19 18:18:40 +00002799 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002800do
2801 # Extract the first word of "$ac_prog", so it can be a program name with args.
2802set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002804$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002805if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002806 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002807else
2808 if test -n "$ac_ct_CC"; then
2809 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2810else
a.rottmann84e63352003-03-24 09:42:16 +00002811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812for as_dir in $PATH
2813do
2814 IFS=$as_save_IFS
2815 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002818 ac_cv_prog_ac_ct_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002820 break 2
2821 fi
2822done
drhf922ca42015-05-14 15:39:18 +00002823 done
drh8b727472009-01-19 18:18:40 +00002824IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002825
2826fi
2827fi
2828ac_ct_CC=$ac_cv_prog_ac_ct_CC
2829if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002831$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002832else
drhf922ca42015-05-14 15:39:18 +00002833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002834$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002835fi
2836
drh8b727472009-01-19 18:18:40 +00002837
drh71eb93e2001-09-28 01:34:43 +00002838 test -n "$ac_ct_CC" && break
2839done
2840
drh8b727472009-01-19 18:18:40 +00002841 if test "x$ac_ct_CC" = x; then
2842 CC=""
2843 else
2844 case $cross_compiling:$ac_tool_warned in
2845yes:)
drhf922ca42015-05-14 15:39:18 +00002846{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2847$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002848ac_tool_warned=yes ;;
2849esac
2850 CC=$ac_ct_CC
2851 fi
drh71eb93e2001-09-28 01:34:43 +00002852fi
2853
2854fi
2855
a.rottmann84e63352003-03-24 09:42:16 +00002856
drhf922ca42015-05-14 15:39:18 +00002857test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2858$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2859as_fn_error $? "no acceptable C compiler found in \$PATH
2860See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00002861
2862# Provide some information about the compiler.
drhf922ca42015-05-14 15:39:18 +00002863$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
drh8b727472009-01-19 18:18:40 +00002864set X $ac_compile
2865ac_compiler=$2
drhf922ca42015-05-14 15:39:18 +00002866for ac_option in --version -v -V -qversion; do
2867 { { ac_try="$ac_compiler $ac_option >&5"
drh8b727472009-01-19 18:18:40 +00002868case "(($ac_try" in
2869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2870 *) ac_try_echo=$ac_try;;
2871esac
drhf922ca42015-05-14 15:39:18 +00002872eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2873$as_echo "$ac_try_echo"; } >&5
2874 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
drh71eb93e2001-09-28 01:34:43 +00002875 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002876 if test -s conftest.err; then
2877 sed '10a\
2878... rest of stderr output deleted ...
2879 10q' conftest.err >conftest.er1
2880 cat conftest.er1 >&5
2881 fi
2882 rm -f conftest.er1 conftest.err
2883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2884 test $ac_status = 0; }
2885done
drh71eb93e2001-09-28 01:34:43 +00002886
drhf922ca42015-05-14 15:39:18 +00002887cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00002888/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002889
2890int
2891main ()
2892{
2893
2894 ;
2895 return 0;
2896}
2897_ACEOF
2898ac_clean_files_save=$ac_clean_files
drh8b727472009-01-19 18:18:40 +00002899ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002900# Try to create an executable without -o first, disregard a.out.
2901# It will help us diagnose broken compilers, and finding out an intuition
2902# of exeext.
drhf922ca42015-05-14 15:39:18 +00002903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2904$as_echo_n "checking whether the C compiler works... " >&6; }
drh8b727472009-01-19 18:18:40 +00002905ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
drh866108f2008-05-13 00:57:21 +00002906
drh8b727472009-01-19 18:18:40 +00002907# The possible output files:
2908ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2909
2910ac_rmfiles=
2911for ac_file in $ac_files
2912do
2913 case $ac_file in
2914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2915 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2916 esac
2917done
2918rm -f $ac_rmfiles
2919
drhf922ca42015-05-14 15:39:18 +00002920if { { ac_try="$ac_link_default"
drh8b727472009-01-19 18:18:40 +00002921case "(($ac_try" in
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2924esac
drhf922ca42015-05-14 15:39:18 +00002925eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2926$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00002927 (eval "$ac_link_default") 2>&5
2928 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2930 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00002931 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2932# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2933# in a Makefile. We should not override ac_cv_exeext if it was cached,
2934# so that the user can short-circuit this test for compilers unknown to
2935# Autoconf.
2936for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002937do
2938 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002939 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002941 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002942 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002943 # We found the default executable, but exeext='' is most
2944 # certainly right.
2945 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002946 *.* )
drhf922ca42015-05-14 15:39:18 +00002947 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
drh8b727472009-01-19 18:18:40 +00002948 then :; else
2949 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2950 fi
2951 # We set ac_cv_exeext here because the later test for it is not
2952 # safe: cross compilers may not add the suffix if given an `-o'
2953 # argument, so we may need to know it at that point already.
2954 # Even if this section looks crufty: it has the advantage of
2955 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002956 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002957 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002958 break;;
drh71eb93e2001-09-28 01:34:43 +00002959 esac
2960done
drh8b727472009-01-19 18:18:40 +00002961test "$ac_cv_exeext" = no && ac_cv_exeext=
2962
drh71eb93e2001-09-28 01:34:43 +00002963else
drh8b727472009-01-19 18:18:40 +00002964 ac_file=''
2965fi
drhf922ca42015-05-14 15:39:18 +00002966if test -z "$ac_file"; then :
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968$as_echo "no" >&6; }
2969$as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002970sed 's/^/| /' conftest.$ac_ext >&5
2971
drhf922ca42015-05-14 15:39:18 +00002972{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2974as_fn_error 77 "C compiler cannot create executables
2975See \`config.log' for more details" "$LINENO" 5; }
2976else
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh710658c2012-01-16 13:00:05 +00002978$as_echo "yes" >&6; }
drhf922ca42015-05-14 15:39:18 +00002979fi
2980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2981$as_echo_n "checking for C compiler default output file name... " >&6; }
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2983$as_echo "$ac_file" >&6; }
2984ac_exeext=$ac_cv_exeext
drh710658c2012-01-16 13:00:05 +00002985
drh8b727472009-01-19 18:18:40 +00002986rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002987ac_clean_files=$ac_clean_files_save
drhf922ca42015-05-14 15:39:18 +00002988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
drh8b727472009-01-19 18:18:40 +00002989$as_echo_n "checking for suffix of executables... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002990if { { ac_try="$ac_link"
drh8b727472009-01-19 18:18:40 +00002991case "(($ac_try" in
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2994esac
drhf922ca42015-05-14 15:39:18 +00002995eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2996$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00002997 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002998 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3000 test $ac_status = 0; }; then :
drh71eb93e2001-09-28 01:34:43 +00003001 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3002# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3003# work properly (i.e., refer to `conftest.exe'), while it won't with
3004# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00003005for ac_file in conftest.exe conftest conftest.*; do
3006 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00003007 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003008 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00003009 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00003010 break;;
drh71eb93e2001-09-28 01:34:43 +00003011 * ) break;;
3012 esac
3013done
3014else
drhf922ca42015-05-14 15:39:18 +00003015 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3016$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3017as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3018See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003019fi
drhf922ca42015-05-14 15:39:18 +00003020rm -f conftest conftest$ac_cv_exeext
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
drh8b727472009-01-19 18:18:40 +00003022$as_echo "$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003023
3024rm -f conftest.$ac_ext
3025EXEEXT=$ac_cv_exeext
3026ac_exeext=$EXEEXT
drhf922ca42015-05-14 15:39:18 +00003027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3028/* end confdefs.h. */
3029#include <stdio.h>
3030int
3031main ()
3032{
3033FILE *f = fopen ("conftest.out", "w");
3034 return ferror (f) || fclose (f) != 0;
3035
3036 ;
3037 return 0;
3038}
3039_ACEOF
3040ac_clean_files="$ac_clean_files conftest.out"
3041# Check that the compiler produces executables we can run. If not, either
3042# the compiler is broken, or we cross compile.
3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3044$as_echo_n "checking whether we are cross compiling... " >&6; }
3045if test "$cross_compiling" != yes; then
3046 { { ac_try="$ac_link"
3047case "(($ac_try" in
3048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3049 *) ac_try_echo=$ac_try;;
3050esac
3051eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3052$as_echo "$ac_try_echo"; } >&5
3053 (eval "$ac_link") 2>&5
3054 ac_status=$?
3055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3056 test $ac_status = 0; }
3057 if { ac_try='./conftest$ac_cv_exeext'
3058 { { case "(($ac_try" in
3059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3060 *) ac_try_echo=$ac_try;;
3061esac
3062eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3063$as_echo "$ac_try_echo"; } >&5
3064 (eval "$ac_try") 2>&5
3065 ac_status=$?
3066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3067 test $ac_status = 0; }; }; then
3068 cross_compiling=no
3069 else
3070 if test "$cross_compiling" = maybe; then
3071 cross_compiling=yes
3072 else
3073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3074$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3075as_fn_error $? "cannot run C compiled programs.
3076If you meant to cross compile, use \`--host'.
3077See \`config.log' for more details" "$LINENO" 5; }
3078 fi
3079 fi
3080fi
3081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3082$as_echo "$cross_compiling" >&6; }
3083
3084rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3085ac_clean_files=$ac_clean_files_save
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
drh8b727472009-01-19 18:18:40 +00003087$as_echo_n "checking for suffix of object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003088if ${ac_cv_objext+:} false; then :
drh8b727472009-01-19 18:18:40 +00003089 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003090else
drhf922ca42015-05-14 15:39:18 +00003091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003092/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003093
3094int
3095main ()
3096{
3097
3098 ;
3099 return 0;
3100}
3101_ACEOF
3102rm -f conftest.o conftest.obj
drhf922ca42015-05-14 15:39:18 +00003103if { { ac_try="$ac_compile"
drh8b727472009-01-19 18:18:40 +00003104case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3107esac
drhf922ca42015-05-14 15:39:18 +00003108eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3109$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00003110 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00003111 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00003112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3113 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00003114 for ac_file in conftest.o conftest.obj conftest.*; do
3115 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00003116 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003117 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
drh71eb93e2001-09-28 01:34:43 +00003118 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3119 break;;
3120 esac
3121done
3122else
drh8b727472009-01-19 18:18:40 +00003123 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00003124sed 's/^/| /' conftest.$ac_ext >&5
3125
drhf922ca42015-05-14 15:39:18 +00003126{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3127$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3128as_fn_error $? "cannot compute suffix of object files: cannot compile
3129See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003130fi
drh71eb93e2001-09-28 01:34:43 +00003131rm -f conftest.$ac_cv_objext conftest.$ac_ext
3132fi
drhf922ca42015-05-14 15:39:18 +00003133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
drh8b727472009-01-19 18:18:40 +00003134$as_echo "$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003135OBJEXT=$ac_cv_objext
3136ac_objext=$OBJEXT
drhf922ca42015-05-14 15:39:18 +00003137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
drh8b727472009-01-19 18:18:40 +00003138$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003139if ${ac_cv_c_compiler_gnu+:} false; then :
drh8b727472009-01-19 18:18:40 +00003140 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003141else
drhf922ca42015-05-14 15:39:18 +00003142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003143/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003144
3145int
3146main ()
3147{
3148#ifndef __GNUC__
3149 choke me
3150#endif
3151
3152 ;
3153 return 0;
3154}
3155_ACEOF
drhf922ca42015-05-14 15:39:18 +00003156if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003157 ac_compiler_gnu=yes
3158else
drhf922ca42015-05-14 15:39:18 +00003159 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00003160fi
drh8b727472009-01-19 18:18:40 +00003161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003162ac_cv_c_compiler_gnu=$ac_compiler_gnu
3163
3164fi
drhf922ca42015-05-14 15:39:18 +00003165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
drh8b727472009-01-19 18:18:40 +00003166$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3167if test $ac_compiler_gnu = yes; then
3168 GCC=yes
3169else
3170 GCC=
3171fi
drh71eb93e2001-09-28 01:34:43 +00003172ac_test_CFLAGS=${CFLAGS+set}
3173ac_save_CFLAGS=$CFLAGS
drhf922ca42015-05-14 15:39:18 +00003174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
drh8b727472009-01-19 18:18:40 +00003175$as_echo_n "checking whether $CC accepts -g... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003176if ${ac_cv_prog_cc_g+:} false; then :
drh8b727472009-01-19 18:18:40 +00003177 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003178else
drh8b727472009-01-19 18:18:40 +00003179 ac_save_c_werror_flag=$ac_c_werror_flag
3180 ac_c_werror_flag=yes
3181 ac_cv_prog_cc_g=no
3182 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003184/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003185
3186int
3187main ()
3188{
3189
3190 ;
3191 return 0;
3192}
3193_ACEOF
drhf922ca42015-05-14 15:39:18 +00003194if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003195 ac_cv_prog_cc_g=yes
3196else
drhf922ca42015-05-14 15:39:18 +00003197 CFLAGS=""
3198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003199/* end confdefs.h. */
3200
3201int
3202main ()
3203{
3204
3205 ;
3206 return 0;
3207}
3208_ACEOF
drhf922ca42015-05-14 15:39:18 +00003209if ac_fn_c_try_compile "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00003210
drhf922ca42015-05-14 15:39:18 +00003211else
3212 ac_c_werror_flag=$ac_save_c_werror_flag
drh8b727472009-01-19 18:18:40 +00003213 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003215/* end confdefs.h. */
3216
3217int
3218main ()
3219{
3220
3221 ;
3222 return 0;
3223}
3224_ACEOF
drhf922ca42015-05-14 15:39:18 +00003225if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003226 ac_cv_prog_cc_g=yes
drh71eb93e2001-09-28 01:34:43 +00003227fi
drh8b727472009-01-19 18:18:40 +00003228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003229fi
drh8b727472009-01-19 18:18:40 +00003230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231fi
drh8b727472009-01-19 18:18:40 +00003232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233 ac_c_werror_flag=$ac_save_c_werror_flag
3234fi
drhf922ca42015-05-14 15:39:18 +00003235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
drh8b727472009-01-19 18:18:40 +00003236$as_echo "$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003237if test "$ac_test_CFLAGS" = set; then
3238 CFLAGS=$ac_save_CFLAGS
3239elif test $ac_cv_prog_cc_g = yes; then
3240 if test "$GCC" = yes; then
3241 CFLAGS="-g -O2"
3242 else
3243 CFLAGS="-g"
3244 fi
3245else
3246 if test "$GCC" = yes; then
3247 CFLAGS="-O2"
3248 else
3249 CFLAGS=
3250 fi
3251fi
drhf922ca42015-05-14 15:39:18 +00003252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
drh8b727472009-01-19 18:18:40 +00003253$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003254if ${ac_cv_prog_cc_c89+:} false; then :
drh8b727472009-01-19 18:18:40 +00003255 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00003256else
drh8b727472009-01-19 18:18:40 +00003257 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00003258ac_save_CC=$CC
drhf922ca42015-05-14 15:39:18 +00003259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003260/* end confdefs.h. */
3261#include <stdarg.h>
3262#include <stdio.h>
drhf922ca42015-05-14 15:39:18 +00003263struct stat;
a.rottmann84e63352003-03-24 09:42:16 +00003264/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3265struct buf { int x; };
3266FILE * (*rcsopen) (struct buf *, struct stat *, int);
3267static char *e (p, i)
3268 char **p;
3269 int i;
3270{
3271 return p[i];
3272}
3273static char *f (char * (*g) (char **, int), char **p, ...)
3274{
3275 char *s;
3276 va_list v;
3277 va_start (v,p);
3278 s = g (p, va_arg (v,int));
3279 va_end (v);
3280 return s;
3281}
a.rottmann964dbb12004-02-26 19:47:42 +00003282
3283/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3284 function prototypes and stuff, but not '\xHH' hex character constants.
3285 These don't provoke an error unfortunately, instead are silently treated
drh8b727472009-01-19 18:18:40 +00003286 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00003287 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3288 array size at least. It's necessary to write '\x00'==0 to get something
drh8b727472009-01-19 18:18:40 +00003289 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00003290int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3291
drh8b727472009-01-19 18:18:40 +00003292/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3293 inside strings and character constants. */
3294#define FOO(x) 'x'
3295int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3296
a.rottmann84e63352003-03-24 09:42:16 +00003297int test (int i, double x);
3298struct s1 {int (*f) (int a);};
3299struct s2 {int (*f) (double a);};
3300int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3301int argc;
3302char **argv;
3303int
3304main ()
3305{
3306return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3307 ;
3308 return 0;
3309}
3310_ACEOF
drh8b727472009-01-19 18:18:40 +00003311for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3312 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003313do
3314 CC="$ac_save_CC $ac_arg"
drhf922ca42015-05-14 15:39:18 +00003315 if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003316 ac_cv_prog_cc_c89=$ac_arg
a.rottmann84e63352003-03-24 09:42:16 +00003317fi
drh8b727472009-01-19 18:18:40 +00003318rm -f core conftest.err conftest.$ac_objext
3319 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003320done
drh8b727472009-01-19 18:18:40 +00003321rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003322CC=$ac_save_CC
3323
3324fi
drh8b727472009-01-19 18:18:40 +00003325# AC_CACHE_VAL
3326case "x$ac_cv_prog_cc_c89" in
3327 x)
drhf922ca42015-05-14 15:39:18 +00003328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
drh8b727472009-01-19 18:18:40 +00003329$as_echo "none needed" >&6; } ;;
3330 xno)
drhf922ca42015-05-14 15:39:18 +00003331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
drh8b727472009-01-19 18:18:40 +00003332$as_echo "unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003333 *)
drh8b727472009-01-19 18:18:40 +00003334 CC="$CC $ac_cv_prog_cc_c89"
drhf922ca42015-05-14 15:39:18 +00003335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
drh8b727472009-01-19 18:18:40 +00003336$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003337esac
drhf922ca42015-05-14 15:39:18 +00003338if test "x$ac_cv_prog_cc_c89" != xno; then :
a.rottmann84e63352003-03-24 09:42:16 +00003339
drhf922ca42015-05-14 15:39:18 +00003340fi
a.rottmann84e63352003-03-24 09:42:16 +00003341
drh71eb93e2001-09-28 01:34:43 +00003342ac_ext=c
3343ac_cpp='$CPP $CPPFLAGS'
3344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347
drhf922ca42015-05-14 15:39:18 +00003348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
drh8b727472009-01-19 18:18:40 +00003349$as_echo_n "checking for a sed that does not truncate output... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003350if ${ac_cv_path_SED+:} false; then :
drh8b727472009-01-19 18:18:40 +00003351 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003352else
drh8b727472009-01-19 18:18:40 +00003353 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3354 for ac_i in 1 2 3 4 5 6 7; do
3355 ac_script="$ac_script$as_nl$ac_script"
3356 done
3357 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
drhf922ca42015-05-14 15:39:18 +00003358 { ac_script=; unset ac_script;}
drh8b727472009-01-19 18:18:40 +00003359 if test -z "$SED"; then
3360 ac_path_SED_found=false
3361 # Loop through the user's path and test for each of PROGNAME-LIST
3362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00003363for as_dir in $PATH
3364do
3365 IFS=$as_save_IFS
3366 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003367 for ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003368 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003369 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003370 as_fn_executable_p "$ac_path_SED" || continue
drh8b727472009-01-19 18:18:40 +00003371# Check for GNU ac_path_SED and select it if it is found.
3372 # Check for GNU $ac_path_SED
3373case `"$ac_path_SED" --version 2>&1` in
3374*GNU*)
3375 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3376*)
3377 ac_count=0
3378 $as_echo_n 0123456789 >"conftest.in"
3379 while :
3380 do
3381 cat "conftest.in" "conftest.in" >"conftest.tmp"
3382 mv "conftest.tmp" "conftest.in"
3383 cp "conftest.in" "conftest.nl"
3384 $as_echo '' >> "conftest.nl"
3385 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3386 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003387 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003388 if test $ac_count -gt ${ac_path_SED_max-0}; then
3389 # Best one so far, save it but keep looking for a better one
3390 ac_cv_path_SED="$ac_path_SED"
3391 ac_path_SED_max=$ac_count
3392 fi
3393 # 10*(2^10) chars as input seems more than enough
3394 test $ac_count -gt 10 && break
3395 done
3396 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3397esac
3398
3399 $ac_path_SED_found && break 3
a.rottmann9bc8b932004-02-29 15:18:31 +00003400 done
3401 done
drhf922ca42015-05-14 15:39:18 +00003402 done
mlcreech636a9952008-05-05 22:52:56 +00003403IFS=$as_save_IFS
drh8b727472009-01-19 18:18:40 +00003404 if test -z "$ac_cv_path_SED"; then
drhf922ca42015-05-14 15:39:18 +00003405 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
a.rottmann9bc8b932004-02-29 15:18:31 +00003406 fi
drh8b727472009-01-19 18:18:40 +00003407else
3408 ac_cv_path_SED=$SED
mlcreech636a9952008-05-05 22:52:56 +00003409fi
drh866108f2008-05-13 00:57:21 +00003410
drh8b727472009-01-19 18:18:40 +00003411fi
drhf922ca42015-05-14 15:39:18 +00003412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
drh8b727472009-01-19 18:18:40 +00003413$as_echo "$ac_cv_path_SED" >&6; }
3414 SED="$ac_cv_path_SED"
3415 rm -f conftest.sed
a.rottmann9bc8b932004-02-29 15:18:31 +00003416
mlcreech636a9952008-05-05 22:52:56 +00003417test -z "$SED" && SED=sed
3418Xsed="$SED -e 1s/^X//"
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
drhf922ca42015-05-14 15:39:18 +00003430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
drh8b727472009-01-19 18:18:40 +00003431$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003432if ${ac_cv_path_GREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003433 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003434else
drh8b727472009-01-19 18:18:40 +00003435 if test -z "$GREP"; then
3436 ac_path_GREP_found=false
3437 # Loop through the user's path and test for each of PROGNAME-LIST
3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3440do
3441 IFS=$as_save_IFS
3442 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003443 for ac_prog in grep ggrep; do
drh8b727472009-01-19 18:18:40 +00003444 for ac_exec_ext in '' $ac_executable_extensions; do
3445 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003446 as_fn_executable_p "$ac_path_GREP" || continue
drh8b727472009-01-19 18:18:40 +00003447# Check for GNU ac_path_GREP and select it if it is found.
3448 # Check for GNU $ac_path_GREP
3449case `"$ac_path_GREP" --version 2>&1` in
3450*GNU*)
3451 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3452*)
3453 ac_count=0
3454 $as_echo_n 0123456789 >"conftest.in"
3455 while :
3456 do
3457 cat "conftest.in" "conftest.in" >"conftest.tmp"
3458 mv "conftest.tmp" "conftest.in"
3459 cp "conftest.in" "conftest.nl"
3460 $as_echo 'GREP' >> "conftest.nl"
3461 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3462 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003463 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003464 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3465 # Best one so far, save it but keep looking for a better one
3466 ac_cv_path_GREP="$ac_path_GREP"
3467 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003468 fi
drh8b727472009-01-19 18:18:40 +00003469 # 10*(2^10) chars as input seems more than enough
3470 test $ac_count -gt 10 && break
3471 done
3472 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3473esac
3474
3475 $ac_path_GREP_found && break 3
3476 done
3477 done
drhf922ca42015-05-14 15:39:18 +00003478 done
drh8b727472009-01-19 18:18:40 +00003479IFS=$as_save_IFS
3480 if test -z "$ac_cv_path_GREP"; then
drhf922ca42015-05-14 15:39:18 +00003481 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003482 fi
3483else
3484 ac_cv_path_GREP=$GREP
mlcreech94984912008-03-04 19:03:08 +00003485fi
drh8b727472009-01-19 18:18:40 +00003486
3487fi
drhf922ca42015-05-14 15:39:18 +00003488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
drh8b727472009-01-19 18:18:40 +00003489$as_echo "$ac_cv_path_GREP" >&6; }
3490 GREP="$ac_cv_path_GREP"
mlcreech94984912008-03-04 19:03:08 +00003491
3492
drhf922ca42015-05-14 15:39:18 +00003493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
drh8b727472009-01-19 18:18:40 +00003494$as_echo_n "checking for egrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003495if ${ac_cv_path_EGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003496 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +00003497else
drh8b727472009-01-19 18:18:40 +00003498 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3499 then ac_cv_path_EGREP="$GREP -E"
3500 else
3501 if test -z "$EGREP"; then
3502 ac_path_EGREP_found=false
3503 # Loop through the user's path and test for each of PROGNAME-LIST
3504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3505for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3506do
3507 IFS=$as_save_IFS
3508 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003509 for ac_prog in egrep; do
drh8b727472009-01-19 18:18:40 +00003510 for ac_exec_ext in '' $ac_executable_extensions; do
3511 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003512 as_fn_executable_p "$ac_path_EGREP" || continue
drh8b727472009-01-19 18:18:40 +00003513# Check for GNU ac_path_EGREP and select it if it is found.
3514 # Check for GNU $ac_path_EGREP
3515case `"$ac_path_EGREP" --version 2>&1` in
3516*GNU*)
3517 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3518*)
3519 ac_count=0
3520 $as_echo_n 0123456789 >"conftest.in"
3521 while :
3522 do
3523 cat "conftest.in" "conftest.in" >"conftest.tmp"
3524 mv "conftest.tmp" "conftest.in"
3525 cp "conftest.in" "conftest.nl"
3526 $as_echo 'EGREP' >> "conftest.nl"
3527 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3528 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003529 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003530 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3531 # Best one so far, save it but keep looking for a better one
3532 ac_cv_path_EGREP="$ac_path_EGREP"
3533 ac_path_EGREP_max=$ac_count
mlcreech94984912008-03-04 19:03:08 +00003534 fi
drh8b727472009-01-19 18:18:40 +00003535 # 10*(2^10) chars as input seems more than enough
3536 test $ac_count -gt 10 && break
3537 done
3538 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3539esac
3540
3541 $ac_path_EGREP_found && break 3
3542 done
3543 done
drhf922ca42015-05-14 15:39:18 +00003544 done
drh8b727472009-01-19 18:18:40 +00003545IFS=$as_save_IFS
3546 if test -z "$ac_cv_path_EGREP"; then
drhf922ca42015-05-14 15:39:18 +00003547 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003548 fi
3549else
3550 ac_cv_path_EGREP=$EGREP
mlcreech94984912008-03-04 19:03:08 +00003551fi
drh8b727472009-01-19 18:18:40 +00003552
3553 fi
3554fi
drhf922ca42015-05-14 15:39:18 +00003555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
drh8b727472009-01-19 18:18:40 +00003556$as_echo "$ac_cv_path_EGREP" >&6; }
3557 EGREP="$ac_cv_path_EGREP"
3558
3559
drhf922ca42015-05-14 15:39:18 +00003560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
drh8b727472009-01-19 18:18:40 +00003561$as_echo_n "checking for fgrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003562if ${ac_cv_path_FGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003563 $as_echo_n "(cached) " >&6
3564else
3565 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3566 then ac_cv_path_FGREP="$GREP -F"
3567 else
3568 if test -z "$FGREP"; then
3569 ac_path_FGREP_found=false
3570 # Loop through the user's path and test for each of PROGNAME-LIST
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3573do
3574 IFS=$as_save_IFS
3575 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003576 for ac_prog in fgrep; do
drh8b727472009-01-19 18:18:40 +00003577 for ac_exec_ext in '' $ac_executable_extensions; do
3578 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003579 as_fn_executable_p "$ac_path_FGREP" || continue
drh8b727472009-01-19 18:18:40 +00003580# Check for GNU ac_path_FGREP and select it if it is found.
3581 # Check for GNU $ac_path_FGREP
3582case `"$ac_path_FGREP" --version 2>&1` in
3583*GNU*)
3584 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3585*)
3586 ac_count=0
3587 $as_echo_n 0123456789 >"conftest.in"
3588 while :
3589 do
3590 cat "conftest.in" "conftest.in" >"conftest.tmp"
3591 mv "conftest.tmp" "conftest.in"
3592 cp "conftest.in" "conftest.nl"
3593 $as_echo 'FGREP' >> "conftest.nl"
3594 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3595 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003596 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003597 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3598 # Best one so far, save it but keep looking for a better one
3599 ac_cv_path_FGREP="$ac_path_FGREP"
3600 ac_path_FGREP_max=$ac_count
3601 fi
3602 # 10*(2^10) chars as input seems more than enough
3603 test $ac_count -gt 10 && break
3604 done
3605 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3606esac
3607
3608 $ac_path_FGREP_found && break 3
3609 done
3610 done
drhf922ca42015-05-14 15:39:18 +00003611 done
drh8b727472009-01-19 18:18:40 +00003612IFS=$as_save_IFS
3613 if test -z "$ac_cv_path_FGREP"; then
drhf922ca42015-05-14 15:39:18 +00003614 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003615 fi
3616else
3617 ac_cv_path_FGREP=$FGREP
3618fi
3619
3620 fi
3621fi
drhf922ca42015-05-14 15:39:18 +00003622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
drh8b727472009-01-19 18:18:40 +00003623$as_echo "$ac_cv_path_FGREP" >&6; }
3624 FGREP="$ac_cv_path_FGREP"
mlcreech636a9952008-05-05 22:52:56 +00003625
3626
3627test -z "$GREP" && GREP=grep
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
a.rottmann9bc8b932004-02-29 15:18:31 +00003644
3645
a.rottmann84e63352003-03-24 09:42:16 +00003646
drh8b727472009-01-19 18:18:40 +00003647# Check whether --with-gnu-ld was given.
drhf922ca42015-05-14 15:39:18 +00003648if test "${with_gnu_ld+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003649 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003650else
3651 with_gnu_ld=no
drh8b727472009-01-19 18:18:40 +00003652fi
3653
drh71eb93e2001-09-28 01:34:43 +00003654ac_prog=ld
3655if test "$GCC" = yes; then
3656 # Check if gcc -print-prog-name=ld gives a path.
drhf922ca42015-05-14 15:39:18 +00003657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
drh8b727472009-01-19 18:18:40 +00003658$as_echo_n "checking for ld used by $CC... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003659 case $host in
3660 *-*-mingw*)
3661 # gcc leaves a trailing carriage return which upsets mingw
3662 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3663 *)
3664 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3665 esac
3666 case $ac_prog in
3667 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003668 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003669 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003670 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00003671 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3672 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3673 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003674 done
3675 test -z "$LD" && LD="$ac_prog"
3676 ;;
3677 "")
3678 # If it fails, then pretend we aren't using GCC.
3679 ac_prog=ld
3680 ;;
3681 *)
3682 # If it is relative, then search for the first ld in PATH.
3683 with_gnu_ld=unknown
3684 ;;
3685 esac
3686elif test "$with_gnu_ld" = yes; then
drhf922ca42015-05-14 15:39:18 +00003687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003688$as_echo_n "checking for GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003689else
drhf922ca42015-05-14 15:39:18 +00003690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003691$as_echo_n "checking for non-GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003692fi
drhf922ca42015-05-14 15:39:18 +00003693if ${lt_cv_path_LD+:} false; then :
drh8b727472009-01-19 18:18:40 +00003694 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003695else
3696 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003697 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003698 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003699 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003700 test -z "$ac_dir" && ac_dir=.
3701 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3702 lt_cv_path_LD="$ac_dir/$ac_prog"
3703 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003704 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003705 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003706 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3707 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003708 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003709 ;;
3710 *)
drh71eb93e2001-09-28 01:34:43 +00003711 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003712 ;;
3713 esac
drh71eb93e2001-09-28 01:34:43 +00003714 fi
3715 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003716 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003717else
3718 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3719fi
3720fi
3721
3722LD="$lt_cv_path_LD"
3723if test -n "$LD"; then
drhf922ca42015-05-14 15:39:18 +00003724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
drh8b727472009-01-19 18:18:40 +00003725$as_echo "$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003726else
drhf922ca42015-05-14 15:39:18 +00003727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003728$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003729fi
drhf922ca42015-05-14 15:39:18 +00003730test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003732$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003733if ${lt_cv_prog_gnu_ld+:} false; then :
drh8b727472009-01-19 18:18:40 +00003734 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003735else
vapier7f19c022007-02-17 14:46:31 +00003736 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003737case `$LD -v 2>&1 </dev/null` in
3738*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003739 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003740 ;;
3741*)
drh71eb93e2001-09-28 01:34:43 +00003742 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003743 ;;
3744esac
drh71eb93e2001-09-28 01:34:43 +00003745fi
drhf922ca42015-05-14 15:39:18 +00003746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
drh8b727472009-01-19 18:18:40 +00003747$as_echo "$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003748with_gnu_ld=$lt_cv_prog_gnu_ld
3749
a.rottmann84e63352003-03-24 09:42:16 +00003750
drh71eb93e2001-09-28 01:34:43 +00003751
mlcreech636a9952008-05-05 22:52:56 +00003752
3753
3754
3755
3756
3757
drhf922ca42015-05-14 15:39:18 +00003758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
drh8b727472009-01-19 18:18:40 +00003759$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003760if ${lt_cv_path_NM+:} false; then :
drh8b727472009-01-19 18:18:40 +00003761 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003762else
3763 if test -n "$NM"; then
3764 # Let the user override the test.
3765 lt_cv_path_NM="$NM"
3766else
vapier7f19c022007-02-17 14:46:31 +00003767 lt_nm_to_check="${ac_tool_prefix}nm"
3768 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3769 lt_nm_to_check="$lt_nm_to_check nm"
3770 fi
3771 for lt_tmp_nm in $lt_nm_to_check; do
3772 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3773 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3774 IFS="$lt_save_ifs"
3775 test -z "$ac_dir" && ac_dir=.
3776 tmp_nm="$ac_dir/$lt_tmp_nm"
3777 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3778 # Check to see if the nm accepts a BSD-compat flag.
3779 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3780 # nm: unknown option "B" ignored
3781 # Tru64's nm complains that /dev/null is an invalid object file
3782 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3783 */dev/null* | *'Invalid file or object type'*)
3784 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003785 break
3786 ;;
3787 *)
vapier7f19c022007-02-17 14:46:31 +00003788 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3789 */dev/null*)
3790 lt_cv_path_NM="$tmp_nm -p"
3791 break
3792 ;;
3793 *)
3794 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3795 continue # so that we can try to find one that supports BSD flags
3796 ;;
3797 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003798 ;;
3799 esac
vapier7f19c022007-02-17 14:46:31 +00003800 fi
3801 done
3802 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003803 done
mlcreech636a9952008-05-05 22:52:56 +00003804 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00003805fi
3806fi
drhf922ca42015-05-14 15:39:18 +00003807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
drh8b727472009-01-19 18:18:40 +00003808$as_echo "$lt_cv_path_NM" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003809if test "$lt_cv_path_NM" != "no"; then
3810 NM="$lt_cv_path_NM"
3811else
3812 # Didn't find any BSD compatible name lister, look for dumpbin.
3813 if test -n "$ac_tool_prefix"; then
3814 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3815 do
3816 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3817set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003819$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003820if ${ac_cv_prog_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003821 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003822else
3823 if test -n "$DUMPBIN"; then
3824 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3825else
3826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827for as_dir in $PATH
3828do
3829 IFS=$as_save_IFS
3830 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003831 for ac_exec_ext in '' $ac_executable_extensions; do
3832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003833 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003835 break 2
3836 fi
3837done
drhf922ca42015-05-14 15:39:18 +00003838 done
drh8b727472009-01-19 18:18:40 +00003839IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00003840
mlcreech636a9952008-05-05 22:52:56 +00003841fi
3842fi
3843DUMPBIN=$ac_cv_prog_DUMPBIN
3844if test -n "$DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003846$as_echo "$DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003847else
drhf922ca42015-05-14 15:39:18 +00003848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003849$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003850fi
3851
drh8b727472009-01-19 18:18:40 +00003852
mlcreech636a9952008-05-05 22:52:56 +00003853 test -n "$DUMPBIN" && break
3854 done
3855fi
3856if test -z "$DUMPBIN"; then
3857 ac_ct_DUMPBIN=$DUMPBIN
3858 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3859do
3860 # Extract the first word of "$ac_prog", so it can be a program name with args.
3861set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003863$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003864if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003865 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003866else
3867 if test -n "$ac_ct_DUMPBIN"; then
3868 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3869else
3870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3871for as_dir in $PATH
3872do
3873 IFS=$as_save_IFS
3874 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003875 for ac_exec_ext in '' $ac_executable_extensions; do
3876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003877 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003879 break 2
3880 fi
3881done
drhf922ca42015-05-14 15:39:18 +00003882 done
drh8b727472009-01-19 18:18:40 +00003883IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003884
3885fi
3886fi
3887ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3888if test -n "$ac_ct_DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003890$as_echo "$ac_ct_DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003891else
drhf922ca42015-05-14 15:39:18 +00003892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003893$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003894fi
3895
drh8b727472009-01-19 18:18:40 +00003896
mlcreech636a9952008-05-05 22:52:56 +00003897 test -n "$ac_ct_DUMPBIN" && break
3898done
3899
drh8b727472009-01-19 18:18:40 +00003900 if test "x$ac_ct_DUMPBIN" = x; then
3901 DUMPBIN=":"
3902 else
3903 case $cross_compiling:$ac_tool_warned in
3904yes:)
drhf922ca42015-05-14 15:39:18 +00003905{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3906$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00003907ac_tool_warned=yes ;;
3908esac
3909 DUMPBIN=$ac_ct_DUMPBIN
3910 fi
mlcreech636a9952008-05-05 22:52:56 +00003911fi
3912
3913
3914 if test "$DUMPBIN" != ":"; then
3915 NM="$DUMPBIN"
3916 fi
3917fi
3918test -z "$NM" && NM=nm
3919
3920
3921
3922
3923
3924
drhf922ca42015-05-14 15:39:18 +00003925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
drh8b727472009-01-19 18:18:40 +00003926$as_echo_n "checking the name lister ($NM) interface... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003927if ${lt_cv_nm_interface+:} false; then :
drh8b727472009-01-19 18:18:40 +00003928 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003929else
3930 lt_cv_nm_interface="BSD nm"
3931 echo "int some_variable = 0;" > conftest.$ac_ext
drh6fe4c182016-07-25 11:39:24 +00003932 (eval echo "\"\$as_me:3932: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003933 (eval "$ac_compile" 2>conftest.err)
3934 cat conftest.err >&5
drh6fe4c182016-07-25 11:39:24 +00003935 (eval echo "\"\$as_me:3935: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003936 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3937 cat conftest.err >&5
drh6fe4c182016-07-25 11:39:24 +00003938 (eval echo "\"\$as_me:3938: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003939 cat conftest.out >&5
3940 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3941 lt_cv_nm_interface="MS dumpbin"
3942 fi
3943 rm -f conftest*
3944fi
drhf922ca42015-05-14 15:39:18 +00003945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
drh8b727472009-01-19 18:18:40 +00003946$as_echo "$lt_cv_nm_interface" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003947
drhf922ca42015-05-14 15:39:18 +00003948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
drh8b727472009-01-19 18:18:40 +00003949$as_echo_n "checking whether ln -s works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003950LN_S=$as_ln_s
3951if test "$LN_S" = "ln -s"; then
drhf922ca42015-05-14 15:39:18 +00003952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00003953$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003954else
drhf922ca42015-05-14 15:39:18 +00003955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
drh8b727472009-01-19 18:18:40 +00003956$as_echo "no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003957fi
3958
mlcreech636a9952008-05-05 22:52:56 +00003959# find the maximum length of command line arguments
drhf922ca42015-05-14 15:39:18 +00003960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
drh8b727472009-01-19 18:18:40 +00003961$as_echo_n "checking the maximum length of command line arguments... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003962if ${lt_cv_sys_max_cmd_len+:} false; then :
drh8b727472009-01-19 18:18:40 +00003963 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003964else
3965 i=0
3966 teststring="ABCD"
3967
3968 case $build_os in
3969 msdosdjgpp*)
3970 # On DJGPP, this test can blow up pretty badly due to problems in libc
3971 # (any single argument exceeding 2000 bytes causes a buffer overrun
3972 # during glob expansion). Even if it were fixed, the result of this
3973 # check would be larger than it should be.
3974 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3975 ;;
3976
3977 gnu*)
3978 # Under GNU Hurd, this test is not required because there is
3979 # no limit to the length of command line arguments.
3980 # Libtool will interpret -1 as no limit whatsoever
3981 lt_cv_sys_max_cmd_len=-1;
3982 ;;
3983
vapier6acb2cf2009-01-28 04:46:28 +00003984 cygwin* | mingw* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00003985 # On Win9x/ME, this test blows up -- it succeeds, but takes
3986 # about 5 minutes as the teststring grows exponentially.
3987 # Worse, since 9x/ME are not pre-emptively multitasking,
3988 # you end up with a "frozen" computer, even though with patience
3989 # the test eventually succeeds (with a max line length of 256k).
3990 # Instead, let's just punt: use the minimum linelength reported by
3991 # all of the supported platforms: 8192 (on NT/2K/XP).
3992 lt_cv_sys_max_cmd_len=8192;
3993 ;;
3994
3995 amigaos*)
3996 # On AmigaOS with pdksh, this test takes hours, literally.
3997 # So we just punt and use a minimum line length of 8192.
3998 lt_cv_sys_max_cmd_len=8192;
3999 ;;
4000
4001 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4002 # This has been around since 386BSD, at least. Likely further.
4003 if test -x /sbin/sysctl; then
4004 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4005 elif test -x /usr/sbin/sysctl; then
4006 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4007 else
4008 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4009 fi
4010 # And add a safety zone
4011 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4012 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4013 ;;
4014
4015 interix*)
4016 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4017 lt_cv_sys_max_cmd_len=196608
4018 ;;
4019
4020 osf*)
4021 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4022 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4023 # nice to cause kernel panics so lets avoid the loop below.
4024 # First set a reasonable default.
4025 lt_cv_sys_max_cmd_len=16384
4026 #
4027 if test -x /sbin/sysconfig; then
4028 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4029 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4030 esac
4031 fi
4032 ;;
4033 sco3.2v5*)
4034 lt_cv_sys_max_cmd_len=102400
4035 ;;
4036 sysv5* | sco5v6* | sysv4.2uw2*)
4037 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4038 if test -n "$kargmax"; then
4039 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4040 else
4041 lt_cv_sys_max_cmd_len=32768
4042 fi
4043 ;;
4044 *)
4045 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4046 if test -n "$lt_cv_sys_max_cmd_len"; then
4047 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4048 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4049 else
4050 # Make teststring a little bigger before we do anything with it.
4051 # a 1K string should be a reasonable start.
4052 for i in 1 2 3 4 5 6 7 8 ; do
4053 teststring=$teststring$teststring
4054 done
4055 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4056 # If test is not a shell built-in, we'll probably end up computing a
4057 # maximum length that is only half of the actual maximum length, but
4058 # we can't tell.
4059 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4060 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4061 test $i != 17 # 1/2 MB should be enough
4062 do
4063 i=`expr $i + 1`
4064 teststring=$teststring$teststring
4065 done
4066 # Only check the string length outside the loop.
4067 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4068 teststring=
4069 # Add a significant safety factor because C++ compilers can tack on
4070 # massive amounts of additional arguments before passing them to the
4071 # linker. It appears as though 1/2 is a usable value.
4072 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4073 fi
4074 ;;
4075 esac
4076
4077fi
4078
4079if test -n $lt_cv_sys_max_cmd_len ; then
drhf922ca42015-05-14 15:39:18 +00004080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
drh8b727472009-01-19 18:18:40 +00004081$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004082else
drhf922ca42015-05-14 15:39:18 +00004083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
drh8b727472009-01-19 18:18:40 +00004084$as_echo "none" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004085fi
4086max_cmd_len=$lt_cv_sys_max_cmd_len
4087
4088
4089
4090
4091
4092
4093: ${CP="cp -f"}
4094: ${MV="mv -f"}
4095: ${RM="rm -f"}
4096
drhf922ca42015-05-14 15:39:18 +00004097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
drh8b727472009-01-19 18:18:40 +00004098$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004099# Try some XSI features
4100xsi_shell=no
4101( _lt_dummy="a/b/c"
4102 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4103 = c,a/b,, \
4104 && eval 'test $(( 1 + 1 )) -eq 2 \
4105 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4106 && xsi_shell=yes
drhf922ca42015-05-14 15:39:18 +00004107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
drh8b727472009-01-19 18:18:40 +00004108$as_echo "$xsi_shell" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004109
4110
drhf922ca42015-05-14 15:39:18 +00004111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
drh8b727472009-01-19 18:18:40 +00004112$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004113lt_shell_append=no
4114( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4115 >/dev/null 2>&1 \
4116 && lt_shell_append=yes
drhf922ca42015-05-14 15:39:18 +00004117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
drh8b727472009-01-19 18:18:40 +00004118$as_echo "$lt_shell_append" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004119
4120
4121if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4122 lt_unset=unset
4123else
4124 lt_unset=false
4125fi
4126
4127
4128
4129
4130
4131# test EBCDIC or ASCII
4132case `echo X|tr X '\101'` in
4133 A) # ASCII based system
4134 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4135 lt_SP2NL='tr \040 \012'
4136 lt_NL2SP='tr \015\012 \040\040'
4137 ;;
4138 *) # EBCDIC based system
4139 lt_SP2NL='tr \100 \n'
4140 lt_NL2SP='tr \r\n \100\100'
4141 ;;
4142esac
4143
4144
4145
4146
4147
4148
4149
4150
4151
drhf922ca42015-05-14 15:39:18 +00004152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
drh8b727472009-01-19 18:18:40 +00004153$as_echo_n "checking for $LD option to reload object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004154if ${lt_cv_ld_reload_flag+:} false; then :
drh8b727472009-01-19 18:18:40 +00004155 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004156else
4157 lt_cv_ld_reload_flag='-r'
4158fi
drhf922ca42015-05-14 15:39:18 +00004159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
drh8b727472009-01-19 18:18:40 +00004160$as_echo "$lt_cv_ld_reload_flag" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004161reload_flag=$lt_cv_ld_reload_flag
4162case $reload_flag in
4163"" | " "*) ;;
4164*) reload_flag=" $reload_flag" ;;
4165esac
4166reload_cmds='$LD$reload_flag -o $output$reload_objs'
4167case $host_os in
4168 darwin*)
4169 if test "$GCC" = yes; then
4170 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4171 else
4172 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4173 fi
4174 ;;
4175esac
4176
4177
4178
4179
4180
4181
4182
4183
4184
vapier6acb2cf2009-01-28 04:46:28 +00004185if test -n "$ac_tool_prefix"; then
4186 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4187set dummy ${ac_tool_prefix}objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004189$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004190if ${ac_cv_prog_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004191 $as_echo_n "(cached) " >&6
4192else
4193 if test -n "$OBJDUMP"; then
4194 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4195else
4196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197for as_dir in $PATH
4198do
4199 IFS=$as_save_IFS
4200 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004203 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
drhf922ca42015-05-14 15:39:18 +00004204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004205 break 2
4206 fi
4207done
drhf922ca42015-05-14 15:39:18 +00004208 done
vapier6acb2cf2009-01-28 04:46:28 +00004209IFS=$as_save_IFS
4210
4211fi
4212fi
4213OBJDUMP=$ac_cv_prog_OBJDUMP
4214if test -n "$OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004216$as_echo "$OBJDUMP" >&6; }
4217else
drhf922ca42015-05-14 15:39:18 +00004218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004219$as_echo "no" >&6; }
4220fi
4221
4222
4223fi
4224if test -z "$ac_cv_prog_OBJDUMP"; then
4225 ac_ct_OBJDUMP=$OBJDUMP
4226 # Extract the first word of "objdump", so it can be a program name with args.
4227set dummy objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004229$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004230if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004231 $as_echo_n "(cached) " >&6
4232else
4233 if test -n "$ac_ct_OBJDUMP"; then
4234 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4235else
4236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237for as_dir in $PATH
4238do
4239 IFS=$as_save_IFS
4240 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004243 ac_cv_prog_ac_ct_OBJDUMP="objdump"
drhf922ca42015-05-14 15:39:18 +00004244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004245 break 2
4246 fi
4247done
drhf922ca42015-05-14 15:39:18 +00004248 done
vapier6acb2cf2009-01-28 04:46:28 +00004249IFS=$as_save_IFS
4250
4251fi
4252fi
4253ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4254if test -n "$ac_ct_OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004256$as_echo "$ac_ct_OBJDUMP" >&6; }
4257else
drhf922ca42015-05-14 15:39:18 +00004258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004259$as_echo "no" >&6; }
4260fi
4261
4262 if test "x$ac_ct_OBJDUMP" = x; then
4263 OBJDUMP="false"
4264 else
4265 case $cross_compiling:$ac_tool_warned in
4266yes:)
drhf922ca42015-05-14 15:39:18 +00004267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00004269ac_tool_warned=yes ;;
4270esac
4271 OBJDUMP=$ac_ct_OBJDUMP
4272 fi
4273else
4274 OBJDUMP="$ac_cv_prog_OBJDUMP"
4275fi
4276
4277test -z "$OBJDUMP" && OBJDUMP=objdump
4278
4279
4280
4281
4282
4283
4284
4285
mlcreech636a9952008-05-05 22:52:56 +00004286
drhf922ca42015-05-14 15:39:18 +00004287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
drh8b727472009-01-19 18:18:40 +00004288$as_echo_n "checking how to recognize dependent libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004289if ${lt_cv_deplibs_check_method+:} false; then :
drh8b727472009-01-19 18:18:40 +00004290 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00004291else
4292 lt_cv_file_magic_cmd='$MAGIC_CMD'
4293lt_cv_file_magic_test_file=
4294lt_cv_deplibs_check_method='unknown'
4295# Need to set the preceding variable on all platforms that support
4296# interlibrary dependencies.
4297# 'none' -- dependencies not supported.
4298# `unknown' -- same as none, but documents that we really don't know.
4299# 'pass_all' -- all dependencies passed with no checks.
4300# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00004301# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00004302# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00004303# If you have `file' or equivalent on your system and you're not sure
4304# whether `pass_all' will *always* work, you probably want this one.
4305
4306case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00004307aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00004308 lt_cv_deplibs_check_method=pass_all
4309 ;;
4310
4311beos*)
4312 lt_cv_deplibs_check_method=pass_all
4313 ;;
4314
vapier7f19c022007-02-17 14:46:31 +00004315bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00004316 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4317 lt_cv_file_magic_cmd='/usr/bin/file -L'
4318 lt_cv_file_magic_test_file=/shlib/libc.so
4319 ;;
4320
a.rottmann9bc8b932004-02-29 15:18:31 +00004321cygwin*)
vapier7f19c022007-02-17 14:46:31 +00004322 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00004323 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00004324 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00004325 ;;
4326
4327mingw* | pw32*)
4328 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00004329 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4330 # unless we find 'file', for example because we are cross-compiling.
4331 if ( file / ) >/dev/null 2>&1; then
4332 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4333 lt_cv_file_magic_cmd='func_win32_libid'
4334 else
4335 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4336 lt_cv_file_magic_cmd='$OBJDUMP -f'
4337 fi
drh71eb93e2001-09-28 01:34:43 +00004338 ;;
4339
vapier6acb2cf2009-01-28 04:46:28 +00004340cegcc)
4341 # use the weaker test based on 'objdump'. See mingw*.
4342 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4343 lt_cv_file_magic_cmd='$OBJDUMP -f'
4344 ;;
4345
drh71eb93e2001-09-28 01:34:43 +00004346darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004347 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004348 ;;
4349
mlcreech636a9952008-05-05 22:52:56 +00004350freebsd* | dragonfly*)
4351 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004352 case $host_cpu in
4353 i*86 )
4354 # Not sure whether the presence of OpenBSD here was a mistake.
4355 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00004356 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 +00004357 lt_cv_file_magic_cmd=/usr/bin/file
4358 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4359 ;;
4360 esac
4361 else
4362 lt_cv_deplibs_check_method=pass_all
4363 fi
4364 ;;
4365
4366gnu*)
4367 lt_cv_deplibs_check_method=pass_all
4368 ;;
4369
a.rottmann9bc8b932004-02-29 15:18:31 +00004370hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00004371 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00004372 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00004373 ia64*)
4374 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4375 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4376 ;;
4377 hppa*64*)
4378 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]'
4379 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4380 ;;
4381 *)
4382 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4383 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4384 ;;
4385 esac
drh71eb93e2001-09-28 01:34:43 +00004386 ;;
4387
mlcreech636a9952008-05-05 22:52:56 +00004388interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00004389 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4390 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4391 ;;
4392
a.rottmann84e63352003-03-24 09:42:16 +00004393irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004394 case $LD in
4395 *-32|*"-32 ") libmagic=32-bit;;
4396 *-n32|*"-n32 ") libmagic=N32;;
4397 *-64|*"-64 ") libmagic=64-bit;;
4398 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00004399 esac
drh71eb93e2001-09-28 01:34:43 +00004400 lt_cv_deplibs_check_method=pass_all
4401 ;;
4402
4403# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00004404linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00004405 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004406 ;;
4407
vapier7f19c022007-02-17 14:46:31 +00004408netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004409 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004410 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004411 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004412 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004413 fi
4414 ;;
4415
4416newos6*)
4417 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4418 lt_cv_file_magic_cmd=/usr/bin/file
4419 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4420 ;;
4421
mlcreech636a9952008-05-05 22:52:56 +00004422*nto* | *qnx*)
4423 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00004424 ;;
4425
a.rottmann84e63352003-03-24 09:42:16 +00004426openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004427 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00004428 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004429 else
vapier7f19c022007-02-17 14:46:31 +00004430 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004431 fi
drh71eb93e2001-09-28 01:34:43 +00004432 ;;
4433
4434osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004435 lt_cv_deplibs_check_method=pass_all
4436 ;;
4437
mlcreech636a9952008-05-05 22:52:56 +00004438rdos*)
4439 lt_cv_deplibs_check_method=pass_all
4440 ;;
4441
drh71eb93e2001-09-28 01:34:43 +00004442solaris*)
4443 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00004444 ;;
4445
mlcreech636a9952008-05-05 22:52:56 +00004446sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4447 lt_cv_deplibs_check_method=pass_all
4448 ;;
4449
vapier7f19c022007-02-17 14:46:31 +00004450sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00004451 case $host_vendor in
4452 motorola)
4453 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]'
4454 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4455 ;;
4456 ncr)
4457 lt_cv_deplibs_check_method=pass_all
4458 ;;
4459 sequent)
4460 lt_cv_file_magic_cmd='/bin/file'
4461 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4462 ;;
4463 sni)
4464 lt_cv_file_magic_cmd='/bin/file'
4465 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4466 lt_cv_file_magic_test_file=/lib/libc.so
4467 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004468 siemens)
4469 lt_cv_deplibs_check_method=pass_all
4470 ;;
vapier7f19c022007-02-17 14:46:31 +00004471 pc)
4472 lt_cv_deplibs_check_method=pass_all
4473 ;;
drh71eb93e2001-09-28 01:34:43 +00004474 esac
4475 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004476
mlcreech636a9952008-05-05 22:52:56 +00004477tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004478 lt_cv_deplibs_check_method=pass_all
4479 ;;
drh71eb93e2001-09-28 01:34:43 +00004480esac
4481
4482fi
drhf922ca42015-05-14 15:39:18 +00004483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
drh8b727472009-01-19 18:18:40 +00004484$as_echo "$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004485file_magic_cmd=$lt_cv_file_magic_cmd
4486deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00004487test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00004488
drh71eb93e2001-09-28 01:34:43 +00004489
drh71eb93e2001-09-28 01:34:43 +00004490
drh71eb93e2001-09-28 01:34:43 +00004491
mlcreech636a9952008-05-05 22:52:56 +00004492
4493
4494
4495
4496
4497
4498
4499
4500if test -n "$ac_tool_prefix"; then
4501 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4502set dummy ${ac_tool_prefix}ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004504$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004505if ${ac_cv_prog_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004506 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004507else
4508 if test -n "$AR"; then
4509 ac_cv_prog_AR="$AR" # Let the user override the test.
4510else
4511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4512for as_dir in $PATH
4513do
4514 IFS=$as_save_IFS
4515 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004518 ac_cv_prog_AR="${ac_tool_prefix}ar"
drhf922ca42015-05-14 15:39:18 +00004519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004520 break 2
4521 fi
4522done
drhf922ca42015-05-14 15:39:18 +00004523 done
drh8b727472009-01-19 18:18:40 +00004524IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004525
4526fi
4527fi
4528AR=$ac_cv_prog_AR
4529if test -n "$AR"; then
drhf922ca42015-05-14 15:39:18 +00004530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
drh8b727472009-01-19 18:18:40 +00004531$as_echo "$AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004532else
drhf922ca42015-05-14 15:39:18 +00004533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004534$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004535fi
4536
drh8b727472009-01-19 18:18:40 +00004537
mlcreech636a9952008-05-05 22:52:56 +00004538fi
4539if test -z "$ac_cv_prog_AR"; then
4540 ac_ct_AR=$AR
4541 # Extract the first word of "ar", so it can be a program name with args.
4542set dummy ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004544$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004545if ${ac_cv_prog_ac_ct_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004546 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004547else
4548 if test -n "$ac_ct_AR"; then
4549 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4550else
4551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552for as_dir in $PATH
4553do
4554 IFS=$as_save_IFS
4555 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004558 ac_cv_prog_ac_ct_AR="ar"
drhf922ca42015-05-14 15:39:18 +00004559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004560 break 2
4561 fi
4562done
drhf922ca42015-05-14 15:39:18 +00004563 done
drh8b727472009-01-19 18:18:40 +00004564IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004565
4566fi
4567fi
4568ac_ct_AR=$ac_cv_prog_ac_ct_AR
4569if test -n "$ac_ct_AR"; then
drhf922ca42015-05-14 15:39:18 +00004570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
drh8b727472009-01-19 18:18:40 +00004571$as_echo "$ac_ct_AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004572else
drhf922ca42015-05-14 15:39:18 +00004573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004574$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004575fi
4576
drh8b727472009-01-19 18:18:40 +00004577 if test "x$ac_ct_AR" = x; then
4578 AR="false"
4579 else
4580 case $cross_compiling:$ac_tool_warned in
4581yes:)
drhf922ca42015-05-14 15:39:18 +00004582{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4583$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004584ac_tool_warned=yes ;;
4585esac
4586 AR=$ac_ct_AR
4587 fi
mlcreech636a9952008-05-05 22:52:56 +00004588else
4589 AR="$ac_cv_prog_AR"
4590fi
4591
4592test -z "$AR" && AR=ar
4593test -z "$AR_FLAGS" && AR_FLAGS=cru
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605if test -n "$ac_tool_prefix"; then
4606 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4607set dummy ${ac_tool_prefix}strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004609$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004610if ${ac_cv_prog_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004611 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004612else
4613 if test -n "$STRIP"; then
4614 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4615else
4616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617for as_dir in $PATH
4618do
4619 IFS=$as_save_IFS
4620 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004623 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
drhf922ca42015-05-14 15:39:18 +00004624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004625 break 2
4626 fi
4627done
drhf922ca42015-05-14 15:39:18 +00004628 done
drh8b727472009-01-19 18:18:40 +00004629IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004630
4631fi
4632fi
4633STRIP=$ac_cv_prog_STRIP
4634if test -n "$STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004636$as_echo "$STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004637else
drhf922ca42015-05-14 15:39:18 +00004638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004639$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004640fi
4641
drh8b727472009-01-19 18:18:40 +00004642
mlcreech636a9952008-05-05 22:52:56 +00004643fi
4644if test -z "$ac_cv_prog_STRIP"; then
4645 ac_ct_STRIP=$STRIP
4646 # Extract the first word of "strip", so it can be a program name with args.
4647set dummy strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004649$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004650if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004651 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004652else
4653 if test -n "$ac_ct_STRIP"; then
4654 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4655else
4656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657for as_dir in $PATH
4658do
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004663 ac_cv_prog_ac_ct_STRIP="strip"
drhf922ca42015-05-14 15:39:18 +00004664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004665 break 2
4666 fi
4667done
drhf922ca42015-05-14 15:39:18 +00004668 done
drh8b727472009-01-19 18:18:40 +00004669IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004670
4671fi
4672fi
4673ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4674if test -n "$ac_ct_STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004676$as_echo "$ac_ct_STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004677else
drhf922ca42015-05-14 15:39:18 +00004678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004679$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004680fi
4681
drh8b727472009-01-19 18:18:40 +00004682 if test "x$ac_ct_STRIP" = x; then
4683 STRIP=":"
4684 else
4685 case $cross_compiling:$ac_tool_warned in
4686yes:)
drhf922ca42015-05-14 15:39:18 +00004687{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4688$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004689ac_tool_warned=yes ;;
4690esac
4691 STRIP=$ac_ct_STRIP
4692 fi
mlcreech636a9952008-05-05 22:52:56 +00004693else
4694 STRIP="$ac_cv_prog_STRIP"
4695fi
4696
4697test -z "$STRIP" && STRIP=:
4698
4699
4700
4701
4702
4703
4704if test -n "$ac_tool_prefix"; then
4705 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4706set dummy ${ac_tool_prefix}ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004708$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004709if ${ac_cv_prog_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004710 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004711else
4712 if test -n "$RANLIB"; then
4713 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4714else
4715as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716for as_dir in $PATH
4717do
4718 IFS=$as_save_IFS
4719 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004722 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
drhf922ca42015-05-14 15:39:18 +00004723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004724 break 2
4725 fi
4726done
drhf922ca42015-05-14 15:39:18 +00004727 done
drh8b727472009-01-19 18:18:40 +00004728IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004729
4730fi
4731fi
4732RANLIB=$ac_cv_prog_RANLIB
4733if test -n "$RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004735$as_echo "$RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004736else
drhf922ca42015-05-14 15:39:18 +00004737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004738$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004739fi
4740
drh8b727472009-01-19 18:18:40 +00004741
mlcreech636a9952008-05-05 22:52:56 +00004742fi
4743if test -z "$ac_cv_prog_RANLIB"; then
4744 ac_ct_RANLIB=$RANLIB
4745 # Extract the first word of "ranlib", so it can be a program name with args.
4746set dummy ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004748$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004749if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004750 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004751else
4752 if test -n "$ac_ct_RANLIB"; then
4753 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4754else
4755as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756for as_dir in $PATH
4757do
4758 IFS=$as_save_IFS
4759 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004762 ac_cv_prog_ac_ct_RANLIB="ranlib"
drhf922ca42015-05-14 15:39:18 +00004763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004764 break 2
4765 fi
4766done
drhf922ca42015-05-14 15:39:18 +00004767 done
drh8b727472009-01-19 18:18:40 +00004768IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004769
4770fi
4771fi
4772ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4773if test -n "$ac_ct_RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004775$as_echo "$ac_ct_RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004776else
drhf922ca42015-05-14 15:39:18 +00004777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004778$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004779fi
4780
drh8b727472009-01-19 18:18:40 +00004781 if test "x$ac_ct_RANLIB" = x; then
4782 RANLIB=":"
4783 else
4784 case $cross_compiling:$ac_tool_warned in
4785yes:)
drhf922ca42015-05-14 15:39:18 +00004786{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004788ac_tool_warned=yes ;;
4789esac
4790 RANLIB=$ac_ct_RANLIB
4791 fi
mlcreech636a9952008-05-05 22:52:56 +00004792else
4793 RANLIB="$ac_cv_prog_RANLIB"
4794fi
4795
4796test -z "$RANLIB" && RANLIB=:
4797
4798
4799
4800
4801
4802
4803# Determine commands to create old-style static archives.
4804old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4805old_postinstall_cmds='chmod 644 $oldlib'
4806old_postuninstall_cmds=
4807
4808if test -n "$RANLIB"; then
4809 case $host_os in
4810 openbsd*)
4811 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4812 ;;
4813 *)
4814 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4815 ;;
4816 esac
4817 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4818fi
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
a.rottmann9bc8b932004-02-29 15:18:31 +00004853# If no C compiler was specified, use CC.
4854LTCC=${LTCC-"$CC"}
4855
vapier7f19c022007-02-17 14:46:31 +00004856# If no C compiler flags were specified, use CFLAGS.
4857LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4858
a.rottmann9bc8b932004-02-29 15:18:31 +00004859# Allow CC to be a program name with arguments.
4860compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00004861
drh71eb93e2001-09-28 01:34:43 +00004862
mlcreech636a9952008-05-05 22:52:56 +00004863# Check for command to grab the raw symbol name followed by C symbol from nm.
drhf922ca42015-05-14 15:39:18 +00004864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
drh8b727472009-01-19 18:18:40 +00004865$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004866if ${lt_cv_sys_global_symbol_pipe+:} false; then :
drh8b727472009-01-19 18:18:40 +00004867 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004868else
4869
4870# These are sane defaults that work on at least a few old systems.
4871# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4872
4873# Character class describing NM global symbol codes.
4874symcode='[BCDEGRST]'
4875
4876# Regexp to match symbols that can be accessed directly from C.
4877sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4878
4879# Define system-specific variables.
4880case $host_os in
4881aix*)
4882 symcode='[BCDT]'
4883 ;;
vapier6acb2cf2009-01-28 04:46:28 +00004884cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00004885 symcode='[ABCDGISTW]'
4886 ;;
4887hpux*)
4888 if test "$host_cpu" = ia64; then
4889 symcode='[ABCDEGRST]'
4890 fi
4891 ;;
4892irix* | nonstopux*)
4893 symcode='[BCDEGRST]'
4894 ;;
4895osf*)
4896 symcode='[BCDEGQRST]'
4897 ;;
4898solaris*)
4899 symcode='[BDRT]'
4900 ;;
4901sco3.2v5*)
4902 symcode='[DT]'
4903 ;;
4904sysv4.2uw2*)
4905 symcode='[DT]'
4906 ;;
4907sysv5* | sco5v6* | unixware* | OpenUNIX*)
4908 symcode='[ABDT]'
4909 ;;
4910sysv4)
4911 symcode='[DFNSTU]'
4912 ;;
4913esac
4914
4915# If we're using GNU nm, then use its standard symbol codes.
4916case `$NM -V 2>&1` in
4917*GNU* | *'with BFD'*)
4918 symcode='[ABCDGIRSTW]' ;;
4919esac
4920
4921# Transform an extracted symbol line into a proper C declaration.
4922# Some systems (esp. on ia64) link data and code symbols differently,
4923# so use this general approach.
4924lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4925
4926# Transform an extracted symbol line into symbol name and symbol address
4927lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4928lt_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'"
4929
4930# Handle CRLF in mingw tool chain
4931opt_cr=
4932case $build_os in
4933mingw*)
4934 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4935 ;;
4936esac
4937
4938# Try without a prefix underscore, then with it.
4939for ac_symprfx in "" "_"; do
4940
4941 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4942 symxfrm="\\1 $ac_symprfx\\2 \\2"
4943
4944 # Write the raw and C identifiers.
4945 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4946 # Fake it for dumpbin and say T for any non-static function
4947 # and D for any global variable.
4948 # Also find C++ and __fastcall symbols from MSVC++,
4949 # which start with @ or ?.
4950 lt_cv_sys_global_symbol_pipe="$AWK '"\
4951" {last_section=section; section=\$ 3};"\
4952" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4953" \$ 0!~/External *\|/{next};"\
4954" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4955" {if(hide[section]) next};"\
4956" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4957" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4958" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4959" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4960" ' prfx=^$ac_symprfx"
4961 else
4962 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4963 fi
4964
4965 # Check to see that the pipe works correctly.
4966 pipe_works=no
4967
4968 rm -f conftest*
4969 cat > conftest.$ac_ext <<_LT_EOF
4970#ifdef __cplusplus
4971extern "C" {
4972#endif
4973char nm_test_var;
4974void nm_test_func(void);
4975void nm_test_func(void){}
4976#ifdef __cplusplus
4977}
4978#endif
4979int main(){nm_test_var='a';nm_test_func();return(0);}
4980_LT_EOF
4981
drhf922ca42015-05-14 15:39:18 +00004982 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00004983 (eval $ac_compile) 2>&5
4984 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00004985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4986 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00004987 # Now try to grab the symbols.
4988 nlist=conftest.nm
drhf922ca42015-05-14 15:39:18 +00004989 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 +00004990 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4991 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00004992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4993 test $ac_status = 0; } && test -s "$nlist"; then
mlcreech636a9952008-05-05 22:52:56 +00004994 # Try sorting and uniquifying the output.
4995 if sort "$nlist" | uniq > "$nlist"T; then
4996 mv -f "$nlist"T "$nlist"
4997 else
4998 rm -f "$nlist"T
4999 fi
5000
5001 # Make sure that we snagged all the symbols we need.
5002 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5003 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5004 cat <<_LT_EOF > conftest.$ac_ext
5005#ifdef __cplusplus
5006extern "C" {
5007#endif
5008
5009_LT_EOF
5010 # Now generate the symbol file.
5011 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5012
5013 cat <<_LT_EOF >> conftest.$ac_ext
5014
5015/* The mapping between symbol names and symbols. */
5016const struct {
5017 const char *name;
5018 void *address;
5019}
5020lt__PROGRAM__LTX_preloaded_symbols[] =
5021{
5022 { "@PROGRAM@", (void *) 0 },
5023_LT_EOF
5024 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5025 cat <<\_LT_EOF >> conftest.$ac_ext
5026 {0, (void *) 0}
5027};
5028
5029/* This works around a problem in FreeBSD linker */
5030#ifdef FREEBSD_WORKAROUND
5031static const void *lt_preloaded_setup() {
5032 return lt__PROGRAM__LTX_preloaded_symbols;
5033}
5034#endif
5035
5036#ifdef __cplusplus
5037}
5038#endif
5039_LT_EOF
5040 # Now try linking the two files.
5041 mv conftest.$ac_objext conftstm.$ac_objext
5042 lt_save_LIBS="$LIBS"
5043 lt_save_CFLAGS="$CFLAGS"
5044 LIBS="conftstm.$ac_objext"
5045 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
drhf922ca42015-05-14 15:39:18 +00005046 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00005047 (eval $ac_link) 2>&5
5048 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5050 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
mlcreech636a9952008-05-05 22:52:56 +00005051 pipe_works=yes
5052 fi
5053 LIBS="$lt_save_LIBS"
5054 CFLAGS="$lt_save_CFLAGS"
5055 else
5056 echo "cannot find nm_test_func in $nlist" >&5
5057 fi
5058 else
5059 echo "cannot find nm_test_var in $nlist" >&5
5060 fi
5061 else
5062 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5063 fi
5064 else
5065 echo "$progname: failed program was:" >&5
5066 cat conftest.$ac_ext >&5
5067 fi
5068 rm -rf conftest* conftst*
5069
5070 # Do not use the global_symbol_pipe unless it works.
5071 if test "$pipe_works" = yes; then
5072 break
5073 else
5074 lt_cv_sys_global_symbol_pipe=
5075 fi
5076done
5077
5078fi
5079
5080if test -z "$lt_cv_sys_global_symbol_pipe"; then
5081 lt_cv_sys_global_symbol_to_cdecl=
5082fi
5083if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
drhf922ca42015-05-14 15:39:18 +00005084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
drh8b727472009-01-19 18:18:40 +00005085$as_echo "failed" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005086else
drhf922ca42015-05-14 15:39:18 +00005087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
drh8b727472009-01-19 18:18:40 +00005088$as_echo "ok" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005089fi
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
drh8b727472009-01-19 18:18:40 +00005113# Check whether --enable-libtool-lock was given.
drhf922ca42015-05-14 15:39:18 +00005114if test "${enable_libtool_lock+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005115 enableval=$enable_libtool_lock;
5116fi
drh71eb93e2001-09-28 01:34:43 +00005117
a.rottmann9bc8b932004-02-29 15:18:31 +00005118test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00005119
a.rottmann9bc8b932004-02-29 15:18:31 +00005120# Some flags need to be propagated to the compiler or linker for good
5121# libtool support.
5122case $host in
5123ia64-*-hpux*)
5124 # Find out which ABI we are using.
5125 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00005127 (eval $ac_compile) 2>&5
5128 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5130 test $ac_status = 0; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005131 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00005132 *ELF-32*)
5133 HPUX_IA64_MODE="32"
5134 ;;
5135 *ELF-64*)
5136 HPUX_IA64_MODE="64"
5137 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005138 esac
5139 fi
5140 rm -rf conftest*
5141 ;;
5142*-*-irix6*)
5143 # Find out which ABI we are using.
drh6fe4c182016-07-25 11:39:24 +00005144 echo '#line 5144 "configure"' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005145 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005146 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00005147 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5149 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00005150 if test "$lt_cv_prog_gnu_ld" = yes; then
5151 case `/usr/bin/file conftest.$ac_objext` in
5152 *32-bit*)
5153 LD="${LD-ld} -melf32bsmip"
5154 ;;
5155 *N32*)
5156 LD="${LD-ld} -melf32bmipn32"
5157 ;;
5158 *64-bit*)
5159 LD="${LD-ld} -melf64bmip"
5160 ;;
5161 esac
5162 else
5163 case `/usr/bin/file conftest.$ac_objext` in
5164 *32-bit*)
5165 LD="${LD-ld} -32"
5166 ;;
5167 *N32*)
5168 LD="${LD-ld} -n32"
5169 ;;
5170 *64-bit*)
5171 LD="${LD-ld} -64"
5172 ;;
5173 esac
5174 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005175 fi
5176 rm -rf conftest*
5177 ;;
drh71eb93e2001-09-28 01:34:43 +00005178
mlcreech636a9952008-05-05 22:52:56 +00005179x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5180s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005181 # Find out which ABI we are using.
5182 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005184 (eval $ac_compile) 2>&5
5185 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5187 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005188 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00005189 *32-bit*)
5190 case $host in
5191 x86_64-*kfreebsd*-gnu)
5192 LD="${LD-ld} -m elf_i386_fbsd"
5193 ;;
5194 x86_64-*linux*)
5195 LD="${LD-ld} -m elf_i386"
5196 ;;
5197 ppc64-*linux*|powerpc64-*linux*)
5198 LD="${LD-ld} -m elf32ppclinux"
5199 ;;
5200 s390x-*linux*)
5201 LD="${LD-ld} -m elf_s390"
5202 ;;
5203 sparc64-*linux*)
5204 LD="${LD-ld} -m elf32_sparc"
5205 ;;
5206 esac
5207 ;;
5208 *64-bit*)
5209 case $host in
5210 x86_64-*kfreebsd*-gnu)
5211 LD="${LD-ld} -m elf_x86_64_fbsd"
5212 ;;
5213 x86_64-*linux*)
5214 LD="${LD-ld} -m elf_x86_64"
5215 ;;
5216 ppc*-*linux*|powerpc*-*linux*)
5217 LD="${LD-ld} -m elf64ppc"
5218 ;;
5219 s390*-*linux*|s390*-*tpf*)
5220 LD="${LD-ld} -m elf64_s390"
5221 ;;
5222 sparc*-*linux*)
5223 LD="${LD-ld} -m elf64_sparc"
5224 ;;
5225 esac
5226 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005227 esac
5228 fi
5229 rm -rf conftest*
5230 ;;
drh71eb93e2001-09-28 01:34:43 +00005231
a.rottmann9bc8b932004-02-29 15:18:31 +00005232*-*-sco3.2v5*)
5233 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5234 SAVE_CFLAGS="$CFLAGS"
5235 CFLAGS="$CFLAGS -belf"
drhf922ca42015-05-14 15:39:18 +00005236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
drh8b727472009-01-19 18:18:40 +00005237$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005238if ${lt_cv_cc_needs_belf+:} false; then :
drh8b727472009-01-19 18:18:40 +00005239 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005240else
5241 ac_ext=c
5242ac_cpp='$CPP $CPPFLAGS'
5243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5245ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00005246
drhf922ca42015-05-14 15:39:18 +00005247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005248/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00005249
a.rottmann9bc8b932004-02-29 15:18:31 +00005250int
5251main ()
drh71eb93e2001-09-28 01:34:43 +00005252{
drh71eb93e2001-09-28 01:34:43 +00005253
a.rottmann9bc8b932004-02-29 15:18:31 +00005254 ;
5255 return 0;
drh71eb93e2001-09-28 01:34:43 +00005256}
a.rottmann9bc8b932004-02-29 15:18:31 +00005257_ACEOF
drhf922ca42015-05-14 15:39:18 +00005258if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00005259 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00005260else
drhf922ca42015-05-14 15:39:18 +00005261 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00005262fi
drhf922ca42015-05-14 15:39:18 +00005263rm -f core conftest.err conftest.$ac_objext \
5264 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005265 ac_ext=c
5266ac_cpp='$CPP $CPPFLAGS'
5267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5269ac_compiler_gnu=$ac_cv_c_compiler_gnu
5270
drh71eb93e2001-09-28 01:34:43 +00005271fi
drhf922ca42015-05-14 15:39:18 +00005272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
drh8b727472009-01-19 18:18:40 +00005273$as_echo "$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005274 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5275 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5276 CFLAGS="$SAVE_CFLAGS"
5277 fi
5278 ;;
vapier7f19c022007-02-17 14:46:31 +00005279sparc*-*solaris*)
5280 # Find out which ABI we are using.
5281 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
vapier7f19c022007-02-17 14:46:31 +00005283 (eval $ac_compile) 2>&5
5284 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5286 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005287 case `/usr/bin/file conftest.o` in
5288 *64-bit*)
5289 case $lt_cv_prog_gnu_ld in
5290 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00005291 *)
5292 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5293 LD="${LD-ld} -64"
5294 fi
5295 ;;
vapier7f19c022007-02-17 14:46:31 +00005296 esac
5297 ;;
5298 esac
5299 fi
5300 rm -rf conftest*
5301 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005302esac
5303
5304need_locks="$enable_libtool_lock"
5305
drh71eb93e2001-09-28 01:34:43 +00005306
mlcreech636a9952008-05-05 22:52:56 +00005307 case $host_os in
5308 rhapsody* | darwin*)
5309 if test -n "$ac_tool_prefix"; then
5310 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5311set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005313$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005314if ${ac_cv_prog_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005315 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005316else
5317 if test -n "$DSYMUTIL"; then
5318 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5319else
5320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321for as_dir in $PATH
5322do
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005327 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
drhf922ca42015-05-14 15:39:18 +00005328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005329 break 2
5330 fi
5331done
drhf922ca42015-05-14 15:39:18 +00005332 done
drh8b727472009-01-19 18:18:40 +00005333IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005334
5335fi
5336fi
5337DSYMUTIL=$ac_cv_prog_DSYMUTIL
5338if test -n "$DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005340$as_echo "$DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005341else
drhf922ca42015-05-14 15:39:18 +00005342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005343$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005344fi
5345
drh8b727472009-01-19 18:18:40 +00005346
mlcreech636a9952008-05-05 22:52:56 +00005347fi
5348if test -z "$ac_cv_prog_DSYMUTIL"; then
5349 ac_ct_DSYMUTIL=$DSYMUTIL
5350 # Extract the first word of "dsymutil", so it can be a program name with args.
5351set dummy dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005353$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005354if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005355 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005356else
5357 if test -n "$ac_ct_DSYMUTIL"; then
5358 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5359else
5360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361for as_dir in $PATH
5362do
5363 IFS=$as_save_IFS
5364 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005367 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
drhf922ca42015-05-14 15:39:18 +00005368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005369 break 2
5370 fi
5371done
drhf922ca42015-05-14 15:39:18 +00005372 done
drh8b727472009-01-19 18:18:40 +00005373IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005374
5375fi
5376fi
5377ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5378if test -n "$ac_ct_DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005380$as_echo "$ac_ct_DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005381else
drhf922ca42015-05-14 15:39:18 +00005382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005383$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005384fi
5385
drh8b727472009-01-19 18:18:40 +00005386 if test "x$ac_ct_DSYMUTIL" = x; then
5387 DSYMUTIL=":"
5388 else
5389 case $cross_compiling:$ac_tool_warned in
5390yes:)
drhf922ca42015-05-14 15:39:18 +00005391{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5392$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005393ac_tool_warned=yes ;;
5394esac
5395 DSYMUTIL=$ac_ct_DSYMUTIL
5396 fi
mlcreech636a9952008-05-05 22:52:56 +00005397else
5398 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5399fi
5400
5401 if test -n "$ac_tool_prefix"; then
5402 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5403set dummy ${ac_tool_prefix}nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005405$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005406if ${ac_cv_prog_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005407 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005408else
5409 if test -n "$NMEDIT"; then
5410 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5411else
5412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5413for as_dir in $PATH
5414do
5415 IFS=$as_save_IFS
5416 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005417 for ac_exec_ext in '' $ac_executable_extensions; do
5418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005419 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
drhf922ca42015-05-14 15:39:18 +00005420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005421 break 2
5422 fi
5423done
drhf922ca42015-05-14 15:39:18 +00005424 done
drh8b727472009-01-19 18:18:40 +00005425IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005426
5427fi
5428fi
5429NMEDIT=$ac_cv_prog_NMEDIT
5430if test -n "$NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005432$as_echo "$NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005433else
drhf922ca42015-05-14 15:39:18 +00005434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005435$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005436fi
5437
drh8b727472009-01-19 18:18:40 +00005438
mlcreech636a9952008-05-05 22:52:56 +00005439fi
5440if test -z "$ac_cv_prog_NMEDIT"; then
5441 ac_ct_NMEDIT=$NMEDIT
5442 # Extract the first word of "nmedit", so it can be a program name with args.
5443set dummy nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005445$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005446if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005447 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005448else
5449 if test -n "$ac_ct_NMEDIT"; then
5450 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5451else
5452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453for as_dir in $PATH
5454do
5455 IFS=$as_save_IFS
5456 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005457 for ac_exec_ext in '' $ac_executable_extensions; do
5458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005459 ac_cv_prog_ac_ct_NMEDIT="nmedit"
drhf922ca42015-05-14 15:39:18 +00005460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005461 break 2
5462 fi
5463done
drhf922ca42015-05-14 15:39:18 +00005464 done
drh8b727472009-01-19 18:18:40 +00005465IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005466
5467fi
5468fi
5469ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5470if test -n "$ac_ct_NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005472$as_echo "$ac_ct_NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005473else
drhf922ca42015-05-14 15:39:18 +00005474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005475$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005476fi
5477
drh8b727472009-01-19 18:18:40 +00005478 if test "x$ac_ct_NMEDIT" = x; then
5479 NMEDIT=":"
5480 else
5481 case $cross_compiling:$ac_tool_warned in
5482yes:)
drhf922ca42015-05-14 15:39:18 +00005483{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5484$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005485ac_tool_warned=yes ;;
5486esac
5487 NMEDIT=$ac_ct_NMEDIT
5488 fi
mlcreech636a9952008-05-05 22:52:56 +00005489else
5490 NMEDIT="$ac_cv_prog_NMEDIT"
5491fi
5492
5493 if test -n "$ac_tool_prefix"; then
5494 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5495set dummy ${ac_tool_prefix}lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005497$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005498if ${ac_cv_prog_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005499 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005500else
5501 if test -n "$LIPO"; then
5502 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5503else
5504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5505for as_dir in $PATH
5506do
5507 IFS=$as_save_IFS
5508 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005509 for ac_exec_ext in '' $ac_executable_extensions; do
5510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005511 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
drhf922ca42015-05-14 15:39:18 +00005512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005513 break 2
5514 fi
5515done
drhf922ca42015-05-14 15:39:18 +00005516 done
drh8b727472009-01-19 18:18:40 +00005517IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005518
5519fi
5520fi
5521LIPO=$ac_cv_prog_LIPO
5522if test -n "$LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005524$as_echo "$LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005525else
drhf922ca42015-05-14 15:39:18 +00005526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005527$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005528fi
5529
drh8b727472009-01-19 18:18:40 +00005530
mlcreech636a9952008-05-05 22:52:56 +00005531fi
5532if test -z "$ac_cv_prog_LIPO"; then
5533 ac_ct_LIPO=$LIPO
5534 # Extract the first word of "lipo", so it can be a program name with args.
5535set dummy lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005537$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005538if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005539 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005540else
5541 if test -n "$ac_ct_LIPO"; then
5542 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5543else
5544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545for as_dir in $PATH
5546do
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005551 ac_cv_prog_ac_ct_LIPO="lipo"
drhf922ca42015-05-14 15:39:18 +00005552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005553 break 2
5554 fi
5555done
drhf922ca42015-05-14 15:39:18 +00005556 done
drh8b727472009-01-19 18:18:40 +00005557IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005558
5559fi
5560fi
5561ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5562if test -n "$ac_ct_LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005564$as_echo "$ac_ct_LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005565else
drhf922ca42015-05-14 15:39:18 +00005566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005567$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005568fi
5569
drh8b727472009-01-19 18:18:40 +00005570 if test "x$ac_ct_LIPO" = x; then
5571 LIPO=":"
5572 else
5573 case $cross_compiling:$ac_tool_warned in
5574yes:)
drhf922ca42015-05-14 15:39:18 +00005575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005577ac_tool_warned=yes ;;
5578esac
5579 LIPO=$ac_ct_LIPO
5580 fi
mlcreech636a9952008-05-05 22:52:56 +00005581else
5582 LIPO="$ac_cv_prog_LIPO"
5583fi
5584
5585 if test -n "$ac_tool_prefix"; then
5586 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5587set dummy ${ac_tool_prefix}otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005589$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005590if ${ac_cv_prog_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005591 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005592else
5593 if test -n "$OTOOL"; then
5594 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5595else
5596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5597for as_dir in $PATH
5598do
5599 IFS=$as_save_IFS
5600 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005601 for ac_exec_ext in '' $ac_executable_extensions; do
5602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005603 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
drhf922ca42015-05-14 15:39:18 +00005604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005605 break 2
5606 fi
5607done
drhf922ca42015-05-14 15:39:18 +00005608 done
drh8b727472009-01-19 18:18:40 +00005609IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005610
5611fi
5612fi
5613OTOOL=$ac_cv_prog_OTOOL
5614if test -n "$OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005616$as_echo "$OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005617else
drhf922ca42015-05-14 15:39:18 +00005618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005619$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005620fi
5621
drh8b727472009-01-19 18:18:40 +00005622
mlcreech636a9952008-05-05 22:52:56 +00005623fi
5624if test -z "$ac_cv_prog_OTOOL"; then
5625 ac_ct_OTOOL=$OTOOL
5626 # Extract the first word of "otool", so it can be a program name with args.
5627set dummy otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005629$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005630if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005631 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005632else
5633 if test -n "$ac_ct_OTOOL"; then
5634 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5635else
5636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637for as_dir in $PATH
5638do
5639 IFS=$as_save_IFS
5640 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005641 for ac_exec_ext in '' $ac_executable_extensions; do
5642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005643 ac_cv_prog_ac_ct_OTOOL="otool"
drhf922ca42015-05-14 15:39:18 +00005644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005645 break 2
5646 fi
5647done
drhf922ca42015-05-14 15:39:18 +00005648 done
drh8b727472009-01-19 18:18:40 +00005649IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005650
5651fi
5652fi
5653ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5654if test -n "$ac_ct_OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005656$as_echo "$ac_ct_OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005657else
drhf922ca42015-05-14 15:39:18 +00005658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005659$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005660fi
5661
drh8b727472009-01-19 18:18:40 +00005662 if test "x$ac_ct_OTOOL" = x; then
5663 OTOOL=":"
5664 else
5665 case $cross_compiling:$ac_tool_warned in
5666yes:)
drhf922ca42015-05-14 15:39:18 +00005667{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005669ac_tool_warned=yes ;;
5670esac
5671 OTOOL=$ac_ct_OTOOL
5672 fi
mlcreech636a9952008-05-05 22:52:56 +00005673else
5674 OTOOL="$ac_cv_prog_OTOOL"
5675fi
5676
5677 if test -n "$ac_tool_prefix"; then
5678 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5679set dummy ${ac_tool_prefix}otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005681$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005682if ${ac_cv_prog_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005683 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005684else
5685 if test -n "$OTOOL64"; then
5686 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5687else
5688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689for as_dir in $PATH
5690do
5691 IFS=$as_save_IFS
5692 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005693 for ac_exec_ext in '' $ac_executable_extensions; do
5694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005695 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
drhf922ca42015-05-14 15:39:18 +00005696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005697 break 2
5698 fi
5699done
drhf922ca42015-05-14 15:39:18 +00005700 done
drh8b727472009-01-19 18:18:40 +00005701IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005702
5703fi
5704fi
5705OTOOL64=$ac_cv_prog_OTOOL64
5706if test -n "$OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005708$as_echo "$OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005709else
drhf922ca42015-05-14 15:39:18 +00005710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005711$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005712fi
5713
drh8b727472009-01-19 18:18:40 +00005714
mlcreech636a9952008-05-05 22:52:56 +00005715fi
5716if test -z "$ac_cv_prog_OTOOL64"; then
5717 ac_ct_OTOOL64=$OTOOL64
5718 # Extract the first word of "otool64", so it can be a program name with args.
5719set dummy otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005721$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005722if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005723 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005724else
5725 if test -n "$ac_ct_OTOOL64"; then
5726 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5727else
5728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5729for as_dir in $PATH
5730do
5731 IFS=$as_save_IFS
5732 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005733 for ac_exec_ext in '' $ac_executable_extensions; do
5734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005735 ac_cv_prog_ac_ct_OTOOL64="otool64"
drhf922ca42015-05-14 15:39:18 +00005736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005737 break 2
5738 fi
5739done
drhf922ca42015-05-14 15:39:18 +00005740 done
drh8b727472009-01-19 18:18:40 +00005741IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005742
5743fi
5744fi
5745ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5746if test -n "$ac_ct_OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005748$as_echo "$ac_ct_OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005749else
drhf922ca42015-05-14 15:39:18 +00005750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005751$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005752fi
5753
drh8b727472009-01-19 18:18:40 +00005754 if test "x$ac_ct_OTOOL64" = x; then
5755 OTOOL64=":"
5756 else
5757 case $cross_compiling:$ac_tool_warned in
5758yes:)
drhf922ca42015-05-14 15:39:18 +00005759{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5760$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005761ac_tool_warned=yes ;;
5762esac
5763 OTOOL64=$ac_ct_OTOOL64
5764 fi
mlcreech636a9952008-05-05 22:52:56 +00005765else
5766 OTOOL64="$ac_cv_prog_OTOOL64"
5767fi
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
drhf922ca42015-05-14 15:39:18 +00005795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005796$as_echo_n "checking for -single_module linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005797if ${lt_cv_apple_cc_single_mod+:} false; then :
drh8b727472009-01-19 18:18:40 +00005798 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005799else
5800 lt_cv_apple_cc_single_mod=no
5801 if test -z "${LT_MULTI_MODULE}"; then
5802 # By default we will add the -single_module flag. You can override
5803 # by either setting the environment variable LT_MULTI_MODULE
5804 # non-empty at configure time, or by adding -multi_module to the
5805 # link flags.
5806 rm -rf libconftest.dylib*
5807 echo "int foo(void){return 1;}" > conftest.c
5808 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5809-dynamiclib -Wl,-single_module conftest.c" >&5
5810 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5811 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5812 _lt_result=$?
5813 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5814 lt_cv_apple_cc_single_mod=yes
5815 else
5816 cat conftest.err >&5
5817 fi
5818 rm -rf libconftest.dylib*
5819 rm -f conftest.*
5820 fi
5821fi
drhf922ca42015-05-14 15:39:18 +00005822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
drh8b727472009-01-19 18:18:40 +00005823$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
drhf922ca42015-05-14 15:39:18 +00005824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005825$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005826if ${lt_cv_ld_exported_symbols_list+:} false; then :
drh8b727472009-01-19 18:18:40 +00005827 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005828else
5829 lt_cv_ld_exported_symbols_list=no
5830 save_LDFLAGS=$LDFLAGS
5831 echo "_main" > conftest.sym
5832 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
drhf922ca42015-05-14 15:39:18 +00005833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005834/* end confdefs.h. */
5835
5836int
5837main ()
5838{
5839
5840 ;
5841 return 0;
5842}
5843_ACEOF
drhf922ca42015-05-14 15:39:18 +00005844if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00005845 lt_cv_ld_exported_symbols_list=yes
5846else
drhf922ca42015-05-14 15:39:18 +00005847 lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00005848fi
drhf922ca42015-05-14 15:39:18 +00005849rm -f core conftest.err conftest.$ac_objext \
5850 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005851 LDFLAGS="$save_LDFLAGS"
5852
5853fi
drhf922ca42015-05-14 15:39:18 +00005854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
drh8b727472009-01-19 18:18:40 +00005855$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005856 case $host_os in
5857 rhapsody* | darwin1.[012])
5858 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5859 darwin1.*)
5860 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5861 darwin*) # darwin 5.x on
5862 # if running on 10.5 or later, the deployment target defaults
5863 # to the OS version, if on x86, and 10.4, the deployment
5864 # target defaults to 10.4. Don't you love it?
5865 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5866 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5867 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5868 10.[012]*)
5869 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5870 10.*)
5871 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5872 esac
5873 ;;
5874 esac
5875 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5876 _lt_dar_single_mod='$single_module'
5877 fi
5878 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5879 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5880 else
5881 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5882 fi
5883 if test "$DSYMUTIL" != ":"; then
5884 _lt_dsymutil='~$DSYMUTIL $lib || :'
5885 else
5886 _lt_dsymutil=
5887 fi
5888 ;;
5889 esac
5890
a.rottmann84e63352003-03-24 09:42:16 +00005891ac_ext=c
5892ac_cpp='$CPP $CPPFLAGS'
5893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5895ac_compiler_gnu=$ac_cv_c_compiler_gnu
drhf922ca42015-05-14 15:39:18 +00005896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
drh8b727472009-01-19 18:18:40 +00005897$as_echo_n "checking how to run the C preprocessor... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005898# On Suns, sometimes $CPP names a directory.
5899if test -n "$CPP" && test -d "$CPP"; then
5900 CPP=
5901fi
5902if test -z "$CPP"; then
drhf922ca42015-05-14 15:39:18 +00005903 if ${ac_cv_prog_CPP+:} false; then :
drh8b727472009-01-19 18:18:40 +00005904 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00005905else
a.rottmann84e63352003-03-24 09:42:16 +00005906 # Double quotes because CPP needs to be expanded
5907 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5908 do
5909 ac_preproc_ok=false
5910for ac_c_preproc_warn_flag in '' yes
5911do
5912 # Use a header file that comes with gcc, so configuring glibc
5913 # with a fresh cross-compiler works.
5914 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5915 # <limits.h> exists even on freestanding compilers.
5916 # On the NeXT, cc -E runs the code through the compiler's parser,
5917 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005919/* end confdefs.h. */
5920#ifdef __STDC__
5921# include <limits.h>
5922#else
5923# include <assert.h>
5924#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005925 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005926_ACEOF
drhf922ca42015-05-14 15:39:18 +00005927if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005928
drhf922ca42015-05-14 15:39:18 +00005929else
a.rottmann84e63352003-03-24 09:42:16 +00005930 # Broken: fails on valid input.
5931continue
5932fi
drhf922ca42015-05-14 15:39:18 +00005933rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005934
drh8b727472009-01-19 18:18:40 +00005935 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005936 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00005937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005938/* end confdefs.h. */
5939#include <ac_nonexistent.h>
5940_ACEOF
drhf922ca42015-05-14 15:39:18 +00005941if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005942 # Broken: success on invalid input.
5943continue
5944else
a.rottmann84e63352003-03-24 09:42:16 +00005945 # Passes both tests.
5946ac_preproc_ok=:
5947break
5948fi
drhf922ca42015-05-14 15:39:18 +00005949rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005950
5951done
5952# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00005953rm -f conftest.i conftest.err conftest.$ac_ext
5954if $ac_preproc_ok; then :
a.rottmann84e63352003-03-24 09:42:16 +00005955 break
5956fi
5957
5958 done
5959 ac_cv_prog_CPP=$CPP
5960
5961fi
5962 CPP=$ac_cv_prog_CPP
5963else
5964 ac_cv_prog_CPP=$CPP
5965fi
drhf922ca42015-05-14 15:39:18 +00005966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
drh8b727472009-01-19 18:18:40 +00005967$as_echo "$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005968ac_preproc_ok=false
5969for ac_c_preproc_warn_flag in '' yes
5970do
5971 # Use a header file that comes with gcc, so configuring glibc
5972 # with a fresh cross-compiler works.
5973 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5974 # <limits.h> exists even on freestanding compilers.
5975 # On the NeXT, cc -E runs the code through the compiler's parser,
5976 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005978/* end confdefs.h. */
5979#ifdef __STDC__
5980# include <limits.h>
5981#else
5982# include <assert.h>
5983#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005984 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005985_ACEOF
drhf922ca42015-05-14 15:39:18 +00005986if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005987
drhf922ca42015-05-14 15:39:18 +00005988else
a.rottmann84e63352003-03-24 09:42:16 +00005989 # Broken: fails on valid input.
5990continue
5991fi
drhf922ca42015-05-14 15:39:18 +00005992rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005993
drh8b727472009-01-19 18:18:40 +00005994 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005995 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00005996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005997/* end confdefs.h. */
5998#include <ac_nonexistent.h>
5999_ACEOF
drhf922ca42015-05-14 15:39:18 +00006000if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006001 # Broken: success on invalid input.
6002continue
6003else
a.rottmann84e63352003-03-24 09:42:16 +00006004 # Passes both tests.
6005ac_preproc_ok=:
6006break
6007fi
drhf922ca42015-05-14 15:39:18 +00006008rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006009
6010done
6011# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00006012rm -f conftest.i conftest.err conftest.$ac_ext
6013if $ac_preproc_ok; then :
6014
a.rottmann84e63352003-03-24 09:42:16 +00006015else
drhf922ca42015-05-14 15:39:18 +00006016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6017$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6018as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6019See \`config.log' for more details" "$LINENO" 5; }
a.rottmann84e63352003-03-24 09:42:16 +00006020fi
6021
6022ac_ext=c
6023ac_cpp='$CPP $CPPFLAGS'
6024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6026ac_compiler_gnu=$ac_cv_c_compiler_gnu
6027
6028
drhf922ca42015-05-14 15:39:18 +00006029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
drh8b727472009-01-19 18:18:40 +00006030$as_echo_n "checking for ANSI C header files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006031if ${ac_cv_header_stdc+:} false; then :
drh8b727472009-01-19 18:18:40 +00006032 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006033else
drhf922ca42015-05-14 15:39:18 +00006034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006035/* end confdefs.h. */
6036#include <stdlib.h>
6037#include <stdarg.h>
6038#include <string.h>
6039#include <float.h>
6040
6041int
6042main ()
6043{
6044
6045 ;
6046 return 0;
6047}
6048_ACEOF
drhf922ca42015-05-14 15:39:18 +00006049if ac_fn_c_try_compile "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006050 ac_cv_header_stdc=yes
6051else
drhf922ca42015-05-14 15:39:18 +00006052 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006053fi
drh8b727472009-01-19 18:18:40 +00006054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006055
6056if test $ac_cv_header_stdc = yes; then
6057 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006059/* end confdefs.h. */
6060#include <string.h>
6061
6062_ACEOF
6063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006064 $EGREP "memchr" >/dev/null 2>&1; then :
6065
a.rottmann84e63352003-03-24 09:42:16 +00006066else
6067 ac_cv_header_stdc=no
6068fi
6069rm -f conftest*
6070
6071fi
6072
6073if test $ac_cv_header_stdc = yes; then
6074 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006076/* end confdefs.h. */
6077#include <stdlib.h>
6078
6079_ACEOF
6080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006081 $EGREP "free" >/dev/null 2>&1; then :
6082
a.rottmann84e63352003-03-24 09:42:16 +00006083else
6084 ac_cv_header_stdc=no
6085fi
6086rm -f conftest*
6087
6088fi
6089
6090if test $ac_cv_header_stdc = yes; then
6091 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
drhf922ca42015-05-14 15:39:18 +00006092 if test "$cross_compiling" = yes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006093 :
6094else
drhf922ca42015-05-14 15:39:18 +00006095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006096/* end confdefs.h. */
6097#include <ctype.h>
drh8b727472009-01-19 18:18:40 +00006098#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00006099#if ((' ' & 0x0FF) == 0x020)
6100# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6101# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6102#else
6103# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00006104 (('a' <= (c) && (c) <= 'i') \
6105 || ('j' <= (c) && (c) <= 'r') \
6106 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00006107# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6108#endif
6109
6110#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6111int
6112main ()
6113{
6114 int i;
6115 for (i = 0; i < 256; i++)
6116 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00006117 || toupper (i) != TOUPPER (i))
drh8b727472009-01-19 18:18:40 +00006118 return 2;
6119 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00006120}
6121_ACEOF
drhf922ca42015-05-14 15:39:18 +00006122if ac_fn_c_try_run "$LINENO"; then :
6123
a.rottmann84e63352003-03-24 09:42:16 +00006124else
drhf922ca42015-05-14 15:39:18 +00006125 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006126fi
drhf922ca42015-05-14 15:39:18 +00006127rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6128 conftest.$ac_objext conftest.beam conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00006129fi
6130
a.rottmann84e63352003-03-24 09:42:16 +00006131fi
6132fi
drhf922ca42015-05-14 15:39:18 +00006133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
drh8b727472009-01-19 18:18:40 +00006134$as_echo "$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006135if test $ac_cv_header_stdc = yes; then
6136
drhf922ca42015-05-14 15:39:18 +00006137$as_echo "#define STDC_HEADERS 1" >>confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00006138
6139fi
6140
6141# On IRIX 5.3, sys/types and inttypes.h are conflicting.
a.rottmann84e63352003-03-24 09:42:16 +00006142for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00006143 inttypes.h stdint.h unistd.h
drhf922ca42015-05-14 15:39:18 +00006144do :
6145 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6146ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6147"
6148if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006149 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006150#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006151_ACEOF
6152
6153fi
6154
6155done
6156
6157
a.rottmann84e63352003-03-24 09:42:16 +00006158for ac_header in dlfcn.h
drhf922ca42015-05-14 15:39:18 +00006159do :
6160 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6161"
6162if test "x$ac_cv_header_dlfcn_h" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006163 cat >>confdefs.h <<_ACEOF
drhf922ca42015-05-14 15:39:18 +00006164#define HAVE_DLFCN_H 1
a.rottmann84e63352003-03-24 09:42:16 +00006165_ACEOF
6166
6167fi
6168
drh71eb93e2001-09-28 01:34:43 +00006169done
6170
drh71eb93e2001-09-28 01:34:43 +00006171
drh71eb93e2001-09-28 01:34:43 +00006172
mlcreech636a9952008-05-05 22:52:56 +00006173# Set options
mlcreech94984912008-03-04 19:03:08 +00006174
drh71eb93e2001-09-28 01:34:43 +00006175
drh71eb93e2001-09-28 01:34:43 +00006176
mlcreech636a9952008-05-05 22:52:56 +00006177 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00006178
a.rottmann9bc8b932004-02-29 15:18:31 +00006179
mlcreech636a9952008-05-05 22:52:56 +00006180 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006181
a.rottmann9bc8b932004-02-29 15:18:31 +00006182
drh8b727472009-01-19 18:18:40 +00006183 # Check whether --enable-shared was given.
drhf922ca42015-05-14 15:39:18 +00006184if test "${enable_shared+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006185 enableval=$enable_shared; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006186 case $enableval in
6187 yes) enable_shared=yes ;;
6188 no) enable_shared=no ;;
6189 *)
6190 enable_shared=no
6191 # Look at the argument we got. We use all the common list separators.
6192 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6193 for pkg in $enableval; do
6194 IFS="$lt_save_ifs"
6195 if test "X$pkg" = "X$p"; then
6196 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006197 fi
mlcreech636a9952008-05-05 22:52:56 +00006198 done
6199 IFS="$lt_save_ifs"
6200 ;;
6201 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006202else
mlcreech636a9952008-05-05 22:52:56 +00006203 enable_shared=yes
drh8b727472009-01-19 18:18:40 +00006204fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006205
mlcreech636a9952008-05-05 22:52:56 +00006206
6207
6208
6209
6210
6211
6212
drh8b727472009-01-19 18:18:40 +00006213
6214 # Check whether --enable-static was given.
drhf922ca42015-05-14 15:39:18 +00006215if test "${enable_static+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006216 enableval=$enable_static; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006217 case $enableval in
6218 yes) enable_static=yes ;;
6219 no) enable_static=no ;;
6220 *)
6221 enable_static=no
6222 # Look at the argument we got. We use all the common list separators.
6223 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6224 for pkg in $enableval; do
6225 IFS="$lt_save_ifs"
6226 if test "X$pkg" = "X$p"; then
6227 enable_static=yes
6228 fi
6229 done
6230 IFS="$lt_save_ifs"
6231 ;;
6232 esac
6233else
6234 enable_static=yes
drh8b727472009-01-19 18:18:40 +00006235fi
mlcreech636a9952008-05-05 22:52:56 +00006236
6237
6238
6239
6240
6241
6242
6243
6244
drh8b727472009-01-19 18:18:40 +00006245
6246# Check whether --with-pic was given.
drhf922ca42015-05-14 15:39:18 +00006247if test "${with_pic+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006248 withval=$with_pic; pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00006249else
6250 pic_mode=default
drh8b727472009-01-19 18:18:40 +00006251fi
6252
mlcreech636a9952008-05-05 22:52:56 +00006253
6254test -z "$pic_mode" && pic_mode=default
6255
6256
6257
6258
6259
6260
6261
drh8b727472009-01-19 18:18:40 +00006262 # Check whether --enable-fast-install was given.
drhf922ca42015-05-14 15:39:18 +00006263if test "${enable_fast_install+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006264 enableval=$enable_fast_install; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006265 case $enableval in
6266 yes) enable_fast_install=yes ;;
6267 no) enable_fast_install=no ;;
6268 *)
6269 enable_fast_install=no
6270 # Look at the argument we got. We use all the common list separators.
6271 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6272 for pkg in $enableval; do
6273 IFS="$lt_save_ifs"
6274 if test "X$pkg" = "X$p"; then
6275 enable_fast_install=yes
6276 fi
6277 done
6278 IFS="$lt_save_ifs"
6279 ;;
6280 esac
6281else
6282 enable_fast_install=yes
drh8b727472009-01-19 18:18:40 +00006283fi
6284
mlcreech636a9952008-05-05 22:52:56 +00006285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295# This can be used to rebuild libtool when needed
6296LIBTOOL_DEPS="$ltmain"
6297
6298# Always use our own libtool.
6299LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325test -z "$LN_S" && LN_S="ln -s"
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340if test -n "${ZSH_VERSION+set}" ; then
6341 setopt NO_GLOB_SUBST
6342fi
6343
drhf922ca42015-05-14 15:39:18 +00006344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
drh8b727472009-01-19 18:18:40 +00006345$as_echo_n "checking for objdir... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006346if ${lt_cv_objdir+:} false; then :
drh8b727472009-01-19 18:18:40 +00006347 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006348else
6349 rm -f .libs 2>/dev/null
6350mkdir .libs 2>/dev/null
6351if test -d .libs; then
6352 lt_cv_objdir=.libs
6353else
6354 # MS-DOS does not allow filenames that begin with a dot.
6355 lt_cv_objdir=_libs
6356fi
6357rmdir .libs 2>/dev/null
6358fi
drhf922ca42015-05-14 15:39:18 +00006359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
drh8b727472009-01-19 18:18:40 +00006360$as_echo "$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006361objdir=$lt_cv_objdir
6362
6363
6364
6365
6366
mlcreech636a9952008-05-05 22:52:56 +00006367cat >>confdefs.h <<_ACEOF
6368#define LT_OBJDIR "$lt_cv_objdir/"
6369_ACEOF
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
a.rottmann9bc8b932004-02-29 15:18:31 +00006387case $host_os in
6388aix3*)
6389 # AIX sometimes has problems with the GCC collect2 program. For some
6390 # reason, if we set the COLLECT_NAMES environment variable, the problems
6391 # vanish in a puff of smoke.
6392 if test "X${COLLECT_NAMES+set}" != Xset; then
6393 COLLECT_NAMES=
6394 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00006395 fi
6396 ;;
6397esac
6398
a.rottmann9bc8b932004-02-29 15:18:31 +00006399# Sed substitution that helps us do robust quoting. It backslashifies
6400# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00006401sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006402
6403# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00006404double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006405
6406# Sed substitution to delay expansion of an escaped shell variable in a
6407# double_quote_subst'ed string.
6408delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6409
mlcreech636a9952008-05-05 22:52:56 +00006410# Sed substitution to delay expansion of an escaped single quote.
6411delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6412
a.rottmann9bc8b932004-02-29 15:18:31 +00006413# Sed substitution to avoid accidental globbing in evaled expressions
6414no_glob_subst='s/\*/\\\*/g'
6415
a.rottmann9bc8b932004-02-29 15:18:31 +00006416# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00006417ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00006418can_build_shared=yes
6419
vapier7f19c022007-02-17 14:46:31 +00006420# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00006421# which needs '.lib').
6422libext=a
mlcreech636a9952008-05-05 22:52:56 +00006423
a.rottmann9bc8b932004-02-29 15:18:31 +00006424with_gnu_ld="$lt_cv_prog_gnu_ld"
6425
a.rottmann84e63352003-03-24 09:42:16 +00006426old_CC="$CC"
6427old_CFLAGS="$CFLAGS"
6428
6429# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00006430test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006431test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006432test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006433test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00006434test -z "$ac_objext" && ac_objext=o
6435
vapier7f19c022007-02-17 14:46:31 +00006436for cc_temp in $compiler""; do
6437 case $cc_temp in
6438 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6439 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6440 \-*) ;;
6441 *) break;;
6442 esac
6443done
mlcreech636a9952008-05-05 22:52:56 +00006444cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00006445
6446
a.rottmann9bc8b932004-02-29 15:18:31 +00006447# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00006448test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00006449case $deplibs_check_method in
6450file_magic*)
6451 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
drhf922ca42015-05-14 15:39:18 +00006452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
drh8b727472009-01-19 18:18:40 +00006453$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006454if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006455 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006456else
a.rottmann9bc8b932004-02-29 15:18:31 +00006457 case $MAGIC_CMD in
6458[\\/*] | ?:[\\/]*)
6459 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6460 ;;
6461*)
6462 lt_save_MAGIC_CMD="$MAGIC_CMD"
6463 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6464 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6465 for ac_dir in $ac_dummy; do
6466 IFS="$lt_save_ifs"
6467 test -z "$ac_dir" && ac_dir=.
6468 if test -f $ac_dir/${ac_tool_prefix}file; then
6469 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6470 if test -n "$file_magic_test_file"; then
6471 case $deplibs_check_method in
6472 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006473 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006474 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6475 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6476 $EGREP "$file_magic_regex" > /dev/null; then
6477 :
6478 else
mlcreech636a9952008-05-05 22:52:56 +00006479 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006480
a.rottmann9bc8b932004-02-29 15:18:31 +00006481*** Warning: the command libtool uses to detect shared libraries,
6482*** $file_magic_cmd, produces output that libtool cannot recognize.
6483*** The result is that libtool may fail to recognize shared libraries
6484*** as such. This will affect the creation of libtool libraries that
6485*** depend on shared libraries, but programs linked with such libtool
6486*** libraries will work regardless of this problem. Nevertheless, you
6487*** may want to report the problem to your system manager and/or to
6488*** bug-libtool@gnu.org
6489
mlcreech636a9952008-05-05 22:52:56 +00006490_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006491 fi ;;
6492 esac
6493 fi
6494 break
6495 fi
6496 done
6497 IFS="$lt_save_ifs"
6498 MAGIC_CMD="$lt_save_MAGIC_CMD"
6499 ;;
6500esac
6501fi
6502
6503MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6504if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006506$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006507else
drhf922ca42015-05-14 15:39:18 +00006508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006509$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006510fi
6511
mlcreech636a9952008-05-05 22:52:56 +00006512
6513
6514
6515
a.rottmann9bc8b932004-02-29 15:18:31 +00006516if test -z "$lt_cv_path_MAGIC_CMD"; then
6517 if test -n "$ac_tool_prefix"; then
drhf922ca42015-05-14 15:39:18 +00006518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
drh8b727472009-01-19 18:18:40 +00006519$as_echo_n "checking for file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006520if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006521 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006522else
6523 case $MAGIC_CMD in
6524[\\/*] | ?:[\\/]*)
6525 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6526 ;;
6527*)
6528 lt_save_MAGIC_CMD="$MAGIC_CMD"
6529 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6530 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6531 for ac_dir in $ac_dummy; do
6532 IFS="$lt_save_ifs"
6533 test -z "$ac_dir" && ac_dir=.
6534 if test -f $ac_dir/file; then
6535 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6536 if test -n "$file_magic_test_file"; then
6537 case $deplibs_check_method in
6538 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006539 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006540 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6541 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6542 $EGREP "$file_magic_regex" > /dev/null; then
6543 :
6544 else
mlcreech636a9952008-05-05 22:52:56 +00006545 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006546
6547*** Warning: the command libtool uses to detect shared libraries,
6548*** $file_magic_cmd, produces output that libtool cannot recognize.
6549*** The result is that libtool may fail to recognize shared libraries
6550*** as such. This will affect the creation of libtool libraries that
6551*** depend on shared libraries, but programs linked with such libtool
6552*** libraries will work regardless of this problem. Nevertheless, you
6553*** may want to report the problem to your system manager and/or to
6554*** bug-libtool@gnu.org
6555
mlcreech636a9952008-05-05 22:52:56 +00006556_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006557 fi ;;
6558 esac
6559 fi
6560 break
6561 fi
6562 done
6563 IFS="$lt_save_ifs"
6564 MAGIC_CMD="$lt_save_MAGIC_CMD"
6565 ;;
6566esac
6567fi
6568
6569MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6570if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006572$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006573else
drhf922ca42015-05-14 15:39:18 +00006574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006575$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006576fi
6577
mlcreech636a9952008-05-05 22:52:56 +00006578
a.rottmann9bc8b932004-02-29 15:18:31 +00006579 else
6580 MAGIC_CMD=:
6581 fi
6582fi
6583
6584 fi
6585 ;;
6586esac
6587
a.rottmann9bc8b932004-02-29 15:18:31 +00006588# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00006589
a.rottmann9bc8b932004-02-29 15:18:31 +00006590lt_save_CC="$CC"
6591ac_ext=c
6592ac_cpp='$CPP $CPPFLAGS'
6593ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6594ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6595ac_compiler_gnu=$ac_cv_c_compiler_gnu
6596
6597
6598# Source file extension for C test sources.
6599ac_ext=c
6600
6601# Object file extension for compiled C test sources.
6602objext=o
6603objext=$objext
6604
6605# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00006606lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00006607
6608# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00006609lt_simple_link_test_code='int main(){return(0);}'
6610
6611
6612
6613
6614
a.rottmann9bc8b932004-02-29 15:18:31 +00006615
6616
6617# If no C compiler was specified, use CC.
6618LTCC=${LTCC-"$CC"}
6619
vapier7f19c022007-02-17 14:46:31 +00006620# If no C compiler flags were specified, use CFLAGS.
6621LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6622
a.rottmann9bc8b932004-02-29 15:18:31 +00006623# Allow CC to be a program name with arguments.
6624compiler=$CC
6625
mlcreech636a9952008-05-05 22:52:56 +00006626# Save the default compiler, since it gets overwritten when the other
6627# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6628compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00006629
vapier7f19c022007-02-17 14:46:31 +00006630# save warnings/boilerplate of simple test code
6631ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006632echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006633eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6634_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006635$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006636
vapier7f19c022007-02-17 14:46:31 +00006637ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006638echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006639eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6640_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006641$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006642
6643
mlcreech636a9952008-05-05 22:52:56 +00006644if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006645
6646lt_prog_compiler_no_builtin_flag=
6647
6648if test "$GCC" = yes; then
6649 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6650
drhf922ca42015-05-14 15:39:18 +00006651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006652$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006653if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
drh8b727472009-01-19 18:18:40 +00006654 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006655else
6656 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00006657 ac_outfile=conftest.$ac_objext
6658 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006659 lt_compiler_flag="-fno-rtti -fno-exceptions"
6660 # Insert the option either (1) after the last *FLAGS variable, or
6661 # (2) before a word containing "conftest.", or (3) at the end.
6662 # Note that $ac_compile itself does not contain backslashes and begins
6663 # with a dollar sign (not a hyphen), so the echo should work correctly.
6664 # The option is referenced via a variable to avoid confusing sed.
6665 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006666 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006667 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6668 -e 's:$: $lt_compiler_flag:'`
drh6fe4c182016-07-25 11:39:24 +00006669 (eval echo "\"\$as_me:6669: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006670 (eval "$lt_compile" 2>conftest.err)
6671 ac_status=$?
6672 cat conftest.err >&5
drh6fe4c182016-07-25 11:39:24 +00006673 echo "$as_me:6673: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006674 if (exit $ac_status) && test -s "$ac_outfile"; then
6675 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006676 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006677 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006678 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6679 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006680 lt_cv_prog_compiler_rtti_exceptions=yes
6681 fi
6682 fi
mlcreech636a9952008-05-05 22:52:56 +00006683 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006684
6685fi
drhf922ca42015-05-14 15:39:18 +00006686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006687$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006688
6689if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6690 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6691else
6692 :
6693fi
6694
6695fi
6696
mlcreech636a9952008-05-05 22:52:56 +00006697
6698
6699
6700
6701
6702 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00006703lt_prog_compiler_pic=
6704lt_prog_compiler_static=
6705
drhf922ca42015-05-14 15:39:18 +00006706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
drh8b727472009-01-19 18:18:40 +00006707$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006708
drh71eb93e2001-09-28 01:34:43 +00006709 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006710 lt_prog_compiler_wl='-Wl,'
6711 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006712
6713 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006714 aix*)
6715 # All AIX code is PIC.
6716 if test "$host_cpu" = ia64; then
6717 # AIX 5 now supports IA64 processor
6718 lt_prog_compiler_static='-Bstatic'
6719 fi
drh71eb93e2001-09-28 01:34:43 +00006720 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006721
drh71eb93e2001-09-28 01:34:43 +00006722 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006723 case $host_cpu in
6724 powerpc)
6725 # see comment about AmigaOS4 .so support
6726 lt_prog_compiler_pic='-fPIC'
6727 ;;
6728 m68k)
6729 # FIXME: we need at least 68020 code to build shared libraries, but
6730 # adding the `-m68020' flag to GCC prevents building anything better,
6731 # like `-m68040'.
6732 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6733 ;;
6734 esac
drh71eb93e2001-09-28 01:34:43 +00006735 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006736
mlcreech636a9952008-05-05 22:52:56 +00006737 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006738 # PIC is the default for these OSes.
6739 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006740
vapier6acb2cf2009-01-28 04:46:28 +00006741 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006742 # This hack is so that the source file can tell whether it is being
6743 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00006744 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6745 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00006746 lt_prog_compiler_pic='-DDLL_EXPORT'
6747 ;;
6748
drh71eb93e2001-09-28 01:34:43 +00006749 darwin* | rhapsody*)
6750 # PIC is the default on this platform
6751 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006752 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006753 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006754
a.rottmann9bc8b932004-02-29 15:18:31 +00006755 hpux*)
vapier6acb2cf2009-01-28 04:46:28 +00006756 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6757 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6758 # sets the default TLS model and affects inlining.
vapier7f19c022007-02-17 14:46:31 +00006759 case $host_cpu in
vapier6acb2cf2009-01-28 04:46:28 +00006760 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006761 # +Z the default
6762 ;;
6763 *)
6764 lt_prog_compiler_pic='-fPIC'
6765 ;;
6766 esac
6767 ;;
6768
mlcreech636a9952008-05-05 22:52:56 +00006769 interix[3-9]*)
6770 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6771 # Instead, we relocate shared libraries at runtime.
6772 ;;
6773
6774 msdosdjgpp*)
6775 # Just because we use GCC doesn't mean we suddenly get shared libraries
6776 # on systems that don't support them.
6777 lt_prog_compiler_can_build_shared=no
6778 enable_shared=no
6779 ;;
6780
6781 *nto* | *qnx*)
6782 # QNX uses GNU C++, but need to define -shared option too, otherwise
6783 # it will coredump.
6784 lt_prog_compiler_pic='-fPIC -shared'
6785 ;;
6786
6787 sysv4*MP*)
6788 if test -d /usr/nec; then
6789 lt_prog_compiler_pic=-Kconform_pic
6790 fi
6791 ;;
6792
drh71eb93e2001-09-28 01:34:43 +00006793 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006794 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006795 ;;
6796 esac
6797 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006798 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006799 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006800 aix*)
6801 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006802 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006803 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006804 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006805 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006806 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006807 fi
6808 ;;
6809
vapier6acb2cf2009-01-28 04:46:28 +00006810 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006811 # This hack is so that the source file can tell whether it is being
6812 # built for inclusion in a dll (and should export symbols for example).
6813 lt_prog_compiler_pic='-DDLL_EXPORT'
6814 ;;
6815
a.rottmann84e63352003-03-24 09:42:16 +00006816 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006817 lt_prog_compiler_wl='-Wl,'
6818 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6819 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006820 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006821 hppa*64*|ia64*)
6822 # +Z the default
6823 ;;
6824 *)
6825 lt_prog_compiler_pic='+Z'
6826 ;;
6827 esac
6828 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6829 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006830 ;;
6831
6832 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006833 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006834 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006835 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006836 ;;
6837
mlcreech636a9952008-05-05 22:52:56 +00006838 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00006839 case $cc_basename in
vapier6acb2cf2009-01-28 04:46:28 +00006840 # old Intel for x86_64 which still supported -KPIC.
6841 ecc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006842 lt_prog_compiler_wl='-Wl,'
6843 lt_prog_compiler_pic='-KPIC'
6844 lt_prog_compiler_static='-static'
6845 ;;
vapier6acb2cf2009-01-28 04:46:28 +00006846 # icc used to be incompatible with GCC.
6847 # ICC 10 doesn't accept -KPIC any more.
6848 icc* | ifort*)
6849 lt_prog_compiler_wl='-Wl,'
6850 lt_prog_compiler_pic='-fPIC'
6851 lt_prog_compiler_static='-static'
6852 ;;
6853 # Lahey Fortran 8.1.
6854 lf95*)
6855 lt_prog_compiler_wl='-Wl,'
6856 lt_prog_compiler_pic='--shared'
6857 lt_prog_compiler_static='--static'
6858 ;;
vapier7f19c022007-02-17 14:46:31 +00006859 pgcc* | pgf77* | pgf90* | pgf95*)
6860 # Portland Group compilers (*not* the Pentium gcc compiler,
6861 # which looks to be a dead project)
6862 lt_prog_compiler_wl='-Wl,'
6863 lt_prog_compiler_pic='-fpic'
6864 lt_prog_compiler_static='-Bstatic'
6865 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006866 ccc*)
6867 lt_prog_compiler_wl='-Wl,'
6868 # All Alpha code is PIC.
6869 lt_prog_compiler_static='-non_shared'
6870 ;;
mlcreech636a9952008-05-05 22:52:56 +00006871 xl*)
6872 # IBM XL C 8.0/Fortran 10.1 on PPC
6873 lt_prog_compiler_wl='-Wl,'
6874 lt_prog_compiler_pic='-qpic'
6875 lt_prog_compiler_static='-qstaticlink'
6876 ;;
6877 *)
6878 case `$CC -V 2>&1 | sed 5q` in
6879 *Sun\ C*)
6880 # Sun C 5.9
6881 lt_prog_compiler_pic='-KPIC'
6882 lt_prog_compiler_static='-Bstatic'
6883 lt_prog_compiler_wl='-Wl,'
6884 ;;
6885 *Sun\ F*)
6886 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6887 lt_prog_compiler_pic='-KPIC'
6888 lt_prog_compiler_static='-Bstatic'
6889 lt_prog_compiler_wl=''
6890 ;;
6891 esac
6892 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006893 esac
drh71eb93e2001-09-28 01:34:43 +00006894 ;;
6895
mlcreech636a9952008-05-05 22:52:56 +00006896 newsos6)
6897 lt_prog_compiler_pic='-KPIC'
6898 lt_prog_compiler_static='-Bstatic'
6899 ;;
6900
6901 *nto* | *qnx*)
6902 # QNX uses GNU C++, but need to define -shared option too, otherwise
6903 # it will coredump.
6904 lt_prog_compiler_pic='-fPIC -shared'
6905 ;;
6906
drh71eb93e2001-09-28 01:34:43 +00006907 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006908 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006909 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00006910 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006911 ;;
6912
mlcreech636a9952008-05-05 22:52:56 +00006913 rdos*)
6914 lt_prog_compiler_static='-non_shared'
6915 ;;
6916
drh71eb93e2001-09-28 01:34:43 +00006917 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006918 lt_prog_compiler_pic='-KPIC'
6919 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00006920 case $cc_basename in
6921 f77* | f90* | f95*)
6922 lt_prog_compiler_wl='-Qoption ld ';;
6923 *)
6924 lt_prog_compiler_wl='-Wl,';;
6925 esac
drh71eb93e2001-09-28 01:34:43 +00006926 ;;
6927
6928 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006929 lt_prog_compiler_wl='-Qoption ld '
6930 lt_prog_compiler_pic='-PIC'
6931 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006932 ;;
6933
vapier7f19c022007-02-17 14:46:31 +00006934 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006935 lt_prog_compiler_wl='-Wl,'
6936 lt_prog_compiler_pic='-KPIC'
6937 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006938 ;;
6939
6940 sysv4*MP*)
6941 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00006942 lt_prog_compiler_pic='-Kconform_pic'
6943 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006944 fi
6945 ;;
6946
vapier7f19c022007-02-17 14:46:31 +00006947 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6948 lt_prog_compiler_wl='-Wl,'
6949 lt_prog_compiler_pic='-KPIC'
6950 lt_prog_compiler_static='-Bstatic'
6951 ;;
6952
6953 unicos*)
6954 lt_prog_compiler_wl='-Wl,'
6955 lt_prog_compiler_can_build_shared=no
6956 ;;
6957
a.rottmann9bc8b932004-02-29 15:18:31 +00006958 uts4*)
6959 lt_prog_compiler_pic='-pic'
6960 lt_prog_compiler_static='-Bstatic'
6961 ;;
6962
drh71eb93e2001-09-28 01:34:43 +00006963 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006964 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006965 ;;
6966 esac
6967 fi
6968
mlcreech636a9952008-05-05 22:52:56 +00006969case $host_os in
6970 # For platforms which do not support PIC, -DPIC is meaningless:
6971 *djgpp*)
6972 lt_prog_compiler_pic=
6973 ;;
6974 *)
6975 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6976 ;;
6977esac
drhf922ca42015-05-14 15:39:18 +00006978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
drh8b727472009-01-19 18:18:40 +00006979$as_echo "$lt_prog_compiler_pic" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00006980
6981
6982
6983
6984
drh71eb93e2001-09-28 01:34:43 +00006985
a.rottmann9bc8b932004-02-29 15:18:31 +00006986#
6987# Check to make sure the PIC flag actually works.
6988#
6989if test -n "$lt_prog_compiler_pic"; then
drhf922ca42015-05-14 15:39:18 +00006990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
drh8b727472009-01-19 18:18:40 +00006991$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006992if ${lt_cv_prog_compiler_pic_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00006993 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00006994else
mlcreech636a9952008-05-05 22:52:56 +00006995 lt_cv_prog_compiler_pic_works=no
6996 ac_outfile=conftest.$ac_objext
6997 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006998 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6999 # Insert the option either (1) after the last *FLAGS variable, or
7000 # (2) before a word containing "conftest.", or (3) at the end.
7001 # Note that $ac_compile itself does not contain backslashes and begins
7002 # with a dollar sign (not a hyphen), so the echo should work correctly.
7003 # The option is referenced via a variable to avoid confusing sed.
7004 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007005 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007006 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7007 -e 's:$: $lt_compiler_flag:'`
drh6fe4c182016-07-25 11:39:24 +00007008 (eval echo "\"\$as_me:7008: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007009 (eval "$lt_compile" 2>conftest.err)
7010 ac_status=$?
7011 cat conftest.err >&5
drh6fe4c182016-07-25 11:39:24 +00007012 echo "$as_me:7012: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007013 if (exit $ac_status) && test -s "$ac_outfile"; then
7014 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00007015 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00007016 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007017 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7018 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007019 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007020 fi
7021 fi
mlcreech636a9952008-05-05 22:52:56 +00007022 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007023
a.rottmann9bc8b932004-02-29 15:18:31 +00007024fi
drhf922ca42015-05-14 15:39:18 +00007025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
drh8b727472009-01-19 18:18:40 +00007026$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007027
mlcreech636a9952008-05-05 22:52:56 +00007028if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007029 case $lt_prog_compiler_pic in
7030 "" | " "*) ;;
7031 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7032 esac
drh71eb93e2001-09-28 01:34:43 +00007033else
a.rottmann9bc8b932004-02-29 15:18:31 +00007034 lt_prog_compiler_pic=
7035 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00007036fi
7037
a.rottmann84e63352003-03-24 09:42:16 +00007038fi
mlcreech636a9952008-05-05 22:52:56 +00007039
7040
7041
7042
7043
a.rottmann84e63352003-03-24 09:42:16 +00007044
vapier7f19c022007-02-17 14:46:31 +00007045#
7046# Check to make sure the static flag actually works.
7047#
7048wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00007049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
drh8b727472009-01-19 18:18:40 +00007050$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007051if ${lt_cv_prog_compiler_static_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00007052 $as_echo_n "(cached) " >&6
vapier7f19c022007-02-17 14:46:31 +00007053else
mlcreech636a9952008-05-05 22:52:56 +00007054 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00007055 save_LDFLAGS="$LDFLAGS"
7056 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00007057 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00007058 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7059 # The linker can only warn and ignore the option if not recognized
7060 # So say no if there are warnings
7061 if test -s conftest.err; then
7062 # Append any errors to the config.log.
7063 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00007064 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007065 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7066 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007067 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007068 fi
7069 else
mlcreech636a9952008-05-05 22:52:56 +00007070 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007071 fi
7072 fi
mlcreech636a9952008-05-05 22:52:56 +00007073 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00007074 LDFLAGS="$save_LDFLAGS"
7075
7076fi
drhf922ca42015-05-14 15:39:18 +00007077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
drh8b727472009-01-19 18:18:40 +00007078$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00007079
mlcreech636a9952008-05-05 22:52:56 +00007080if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00007081 :
7082else
7083 lt_prog_compiler_static=
7084fi
7085
7086
mlcreech636a9952008-05-05 22:52:56 +00007087
7088
7089
7090
7091
drhf922ca42015-05-14 15:39:18 +00007092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007093$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007094if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007095 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007096else
a.rottmann9bc8b932004-02-29 15:18:31 +00007097 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00007098 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007099 mkdir conftest
7100 cd conftest
7101 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00007102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007103
a.rottmann9bc8b932004-02-29 15:18:31 +00007104 lt_compiler_flag="-o out/conftest2.$ac_objext"
7105 # Insert the option either (1) after the last *FLAGS variable, or
7106 # (2) before a word containing "conftest.", or (3) at the end.
7107 # Note that $ac_compile itself does not contain backslashes and begins
7108 # with a dollar sign (not a hyphen), so the echo should work correctly.
7109 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7112 -e 's:$: $lt_compiler_flag:'`
drh6fe4c182016-07-25 11:39:24 +00007113 (eval echo "\"\$as_me:7113: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007114 (eval "$lt_compile" 2>out/conftest.err)
7115 ac_status=$?
7116 cat out/conftest.err >&5
drh6fe4c182016-07-25 11:39:24 +00007117 echo "$as_me:7117: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007118 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7119 then
7120 # The compiler can only warn and ignore the option if not recognized
7121 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00007122 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007123 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7124 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007125 lt_cv_prog_compiler_c_o=yes
7126 fi
7127 fi
vapier7f19c022007-02-17 14:46:31 +00007128 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00007129 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00007130 # SGI C++ compiler will create directory out/ii_files/ for
7131 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00007132 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7133 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00007134 cd ..
mlcreech636a9952008-05-05 22:52:56 +00007135 $RM -r conftest
7136 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007137
7138fi
drhf922ca42015-05-14 15:39:18 +00007139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007140$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007141
7142
7143
7144
7145
7146
drhf922ca42015-05-14 15:39:18 +00007147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007148$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007149if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007150 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00007151else
7152 lt_cv_prog_compiler_c_o=no
7153 $RM -r conftest 2>/dev/null
7154 mkdir conftest
7155 cd conftest
7156 mkdir out
7157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7158
7159 lt_compiler_flag="-o out/conftest2.$ac_objext"
7160 # Insert the option either (1) after the last *FLAGS variable, or
7161 # (2) before a word containing "conftest.", or (3) at the end.
7162 # Note that $ac_compile itself does not contain backslashes and begins
7163 # with a dollar sign (not a hyphen), so the echo should work correctly.
7164 lt_compile=`echo "$ac_compile" | $SED \
7165 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7166 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7167 -e 's:$: $lt_compiler_flag:'`
drh6fe4c182016-07-25 11:39:24 +00007168 (eval echo "\"\$as_me:7168: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00007169 (eval "$lt_compile" 2>out/conftest.err)
7170 ac_status=$?
7171 cat out/conftest.err >&5
drh6fe4c182016-07-25 11:39:24 +00007172 echo "$as_me:7172: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00007173 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7174 then
7175 # The compiler can only warn and ignore the option if not recognized
7176 # So say no if there are warnings
7177 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7178 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7179 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7180 lt_cv_prog_compiler_c_o=yes
7181 fi
7182 fi
7183 chmod u+w . 2>&5
7184 $RM conftest*
7185 # SGI C++ compiler will create directory out/ii_files/ for
7186 # template instantiation
7187 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7188 $RM out/* && rmdir out
7189 cd ..
7190 $RM -r conftest
7191 $RM conftest*
7192
7193fi
drhf922ca42015-05-14 15:39:18 +00007194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007195$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007196
7197
drh71eb93e2001-09-28 01:34:43 +00007198
a.rottmann84e63352003-03-24 09:42:16 +00007199
drh71eb93e2001-09-28 01:34:43 +00007200hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00007201if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00007202 # do not overwrite the value of need_locks provided by the user
drhf922ca42015-05-14 15:39:18 +00007203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
drh8b727472009-01-19 18:18:40 +00007204$as_echo_n "checking if we can lock with hard links... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00007205 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00007206 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007207 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7208 touch conftest.a
7209 ln conftest.a conftest.b 2>&5 || hard_links=no
7210 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drhf922ca42015-05-14 15:39:18 +00007211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
drh8b727472009-01-19 18:18:40 +00007212$as_echo "$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007213 if test "$hard_links" = no; then
drhf922ca42015-05-14 15:39:18 +00007214 { $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 +00007215$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00007216 need_locks=warn
7217 fi
7218else
7219 need_locks=no
7220fi
7221
mlcreech636a9952008-05-05 22:52:56 +00007222
7223
7224
7225
7226
drhf922ca42015-05-14 15:39:18 +00007227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00007228$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007229
7230 runpath_var=
7231 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007232 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007233 archive_cmds=
7234 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007235 compiler_needs_object=no
7236 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007237 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00007238 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7239 hardcode_automatic=no
7240 hardcode_direct=no
7241 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007242 hardcode_libdir_flag_spec=
7243 hardcode_libdir_flag_spec_ld=
7244 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007245 hardcode_minus_L=no
7246 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007247 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007248 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00007249 module_cmds=
7250 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007251 old_archive_from_new_cmds=
7252 old_archive_from_expsyms_cmds=
7253 thread_safe_flag_spec=
7254 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007255 # include_expsyms should be a list of space-separated symbols to be *always*
7256 # included in the symbol list
7257 include_expsyms=
7258 # exclude_expsyms can be an extended regexp of symbols to exclude
7259 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7260 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7261 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00007262 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00007263 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7264 # platforms (ab)use it in PIC code, but their linkers get confused if
7265 # the symbol is explicitly referenced. Since portable code cannot
7266 # rely on this symbol name, it's probably fine to never include it in
7267 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00007268 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00007269 extract_expsyms_cmds=
7270
7271 case $host_os in
vapier6acb2cf2009-01-28 04:46:28 +00007272 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007273 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7274 # When not using gcc, we currently assume that we are using
7275 # Microsoft Visual C++.
7276 if test "$GCC" != yes; then
7277 with_gnu_ld=no
7278 fi
7279 ;;
vapier7f19c022007-02-17 14:46:31 +00007280 interix*)
7281 # we just hope/assume this is gcc and not c89 (= MSVC++)
7282 with_gnu_ld=yes
7283 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007284 openbsd*)
7285 with_gnu_ld=no
7286 ;;
7287 esac
7288
7289 ld_shlibs=yes
7290 if test "$with_gnu_ld" = yes; then
7291 # If archive_cmds runs LD, not CC, wlarc should be empty
7292 wlarc='${wl}'
7293
vapier7f19c022007-02-17 14:46:31 +00007294 # Set some defaults for GNU ld with shared library support. These
7295 # are reset later if shared libraries are not supported. Putting them
7296 # here allows them to be overridden if necessary.
7297 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00007298 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00007299 export_dynamic_flag_spec='${wl}--export-dynamic'
7300 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00007301 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7302 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7303 else
7304 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00007305 fi
7306 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00007307 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00007308 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7309 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7310 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7311 *\ 2.11.*) ;; # other 2.11 versions
7312 *) supports_anon_versioning=yes ;;
7313 esac
7314
a.rottmann9bc8b932004-02-29 15:18:31 +00007315 # See if GNU ld supports shared libraries.
7316 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007317 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007318 # On AIX/PPC, the GNU linker is very broken
7319 if test "$host_cpu" != ia64; then
7320 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007321 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007322
7323*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7324*** to be unable to reliably create shared libraries on AIX.
7325*** Therefore, libtool is disabling shared libraries support. If you
7326*** really care for shared libraries, you may want to modify your PATH
7327*** so that a non-GNU linker is found, and then restart.
7328
mlcreech636a9952008-05-05 22:52:56 +00007329_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007330 fi
7331 ;;
7332
7333 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007334 case $host_cpu in
7335 powerpc)
7336 # see comment about AmigaOS4 .so support
7337 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7338 archive_expsym_cmds=''
7339 ;;
7340 m68k)
7341 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)'
7342 hardcode_libdir_flag_spec='-L$libdir'
7343 hardcode_minus_L=yes
7344 ;;
7345 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007346 ;;
7347
7348 beos*)
mlcreech636a9952008-05-05 22:52:56 +00007349 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007350 allow_undefined_flag=unsupported
7351 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7352 # support --undefined. This deserves some investigation. FIXME
7353 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7354 else
7355 ld_shlibs=no
7356 fi
7357 ;;
7358
vapier6acb2cf2009-01-28 04:46:28 +00007359 cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00007360 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00007361 # as there is no search path for DLLs.
7362 hardcode_libdir_flag_spec='-L$libdir'
7363 allow_undefined_flag=unsupported
7364 always_export_symbols=no
7365 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00007366 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 +00007367
mlcreech636a9952008-05-05 22:52:56 +00007368 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00007369 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 +00007370 # If the export-symbols file already is a .def file (1st line
7371 # is EXPORTS), use it as is; otherwise, prepend...
7372 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7373 cp $export_symbols $output_objdir/$soname.def;
7374 else
7375 echo EXPORTS > $output_objdir/$soname.def;
7376 cat $export_symbols >> $output_objdir/$soname.def;
7377 fi~
vapier7f19c022007-02-17 14:46:31 +00007378 $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 +00007379 else
7380 ld_shlibs=no
7381 fi
7382 ;;
7383
mlcreech636a9952008-05-05 22:52:56 +00007384 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007385 hardcode_direct=no
7386 hardcode_shlibpath_var=no
7387 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7388 export_dynamic_flag_spec='${wl}-E'
7389 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7390 # Instead, shared libraries are loaded at an image base (0x10000000 by
7391 # default) and relocated if they conflict, which is a slow very memory
7392 # consuming and fragmenting process. To avoid this, we pick a random,
7393 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7394 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7395 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7396 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'
7397 ;;
7398
mlcreech636a9952008-05-05 22:52:56 +00007399 gnu* | linux* | tpf* | k*bsd*-gnu)
7400 tmp_diet=no
7401 if test "$host_os" = linux-dietlibc; then
7402 case $cc_basename in
7403 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7404 esac
7405 fi
7406 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7407 && test "$tmp_diet" = no
7408 then
vapier7f19c022007-02-17 14:46:31 +00007409 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00007410 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007411 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00007412 pgcc*) # Portland Group C compiler
7413 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 +00007414 tmp_addflag=' $pic_flag'
7415 ;;
7416 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00007417 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 +00007418 tmp_addflag=' $pic_flag -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00007419 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00007420 tmp_addflag=' -i_dynamic' ;;
7421 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7422 tmp_addflag=' -i_dynamic -nofor_main' ;;
7423 ifc* | ifort*) # Intel Fortran compiler
7424 tmp_addflag=' -nofor_main' ;;
vapier6acb2cf2009-01-28 04:46:28 +00007425 lf95*) # Lahey Fortran 8.1
7426 whole_archive_flag_spec=
7427 tmp_sharedflag='--shared' ;;
mlcreech636a9952008-05-05 22:52:56 +00007428 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7429 tmp_sharedflag='-qmkshrobj'
7430 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00007431 esac
mlcreech636a9952008-05-05 22:52:56 +00007432 case `$CC -V 2>&1 | sed 5q` in
7433 *Sun\ C*) # Sun C 5.9
7434 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'
7435 compiler_needs_object=yes
7436 tmp_sharedflag='-G' ;;
7437 *Sun\ F*) # Sun Fortran 8.3
7438 tmp_sharedflag='-G' ;;
7439 esac
7440 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007441
mlcreech636a9952008-05-05 22:52:56 +00007442 if test "x$supports_anon_versioning" = xyes; then
7443 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7444 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7445 echo "local: *; };" >> $output_objdir/$libname.ver~
7446 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7447 fi
7448
7449 case $cc_basename in
7450 xlf*)
7451 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7452 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7453 hardcode_libdir_flag_spec=
7454 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7455 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7456 if test "x$supports_anon_versioning" = xyes; then
7457 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7458 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7459 echo "local: *; };" >> $output_objdir/$libname.ver~
7460 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7461 fi
7462 ;;
7463 esac
vapier7f19c022007-02-17 14:46:31 +00007464 else
mlcreech636a9952008-05-05 22:52:56 +00007465 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00007466 fi
7467 ;;
7468
7469 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007470 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007471 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7472 wlarc=
7473 else
7474 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7475 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7476 fi
7477 ;;
7478
vapier7f19c022007-02-17 14:46:31 +00007479 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007480 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007481 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007482 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007483
7484*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7485*** create shared libraries on Solaris systems. Therefore, libtool
7486*** is disabling shared libraries support. We urge you to upgrade GNU
7487*** binutils to release 2.9.1 or newer. Another option is to modify
7488*** your PATH or compiler configuration so that the native linker is
7489*** used, and then restart.
7490
mlcreech636a9952008-05-05 22:52:56 +00007491_LT_EOF
7492 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7494 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7495 else
7496 ld_shlibs=no
7497 fi
7498 ;;
7499
vapier7f19c022007-02-17 14:46:31 +00007500 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7501 case `$LD -v 2>&1` in
7502 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7503 ld_shlibs=no
7504 cat <<_LT_EOF 1>&2
7505
7506*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7507*** reliably create shared libraries on SCO systems. Therefore, libtool
7508*** is disabling shared libraries support. We urge you to upgrade GNU
7509*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7510*** your PATH or compiler configuration so that the native linker is
7511*** used, and then restart.
7512
7513_LT_EOF
7514 ;;
7515 *)
mlcreech636a9952008-05-05 22:52:56 +00007516 # For security reasons, it is highly recommended that you always
7517 # use absolute paths for naming shared libraries, and exclude the
7518 # DT_RUNPATH tag from executables and libraries. But doing so
7519 # requires that you compile everything twice, which is a pain.
7520 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7521 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7523 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 +00007524 else
7525 ld_shlibs=no
7526 fi
7527 ;;
7528 esac
7529 ;;
7530
a.rottmann9bc8b932004-02-29 15:18:31 +00007531 sunos4*)
7532 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7533 wlarc=
7534 hardcode_direct=yes
7535 hardcode_shlibpath_var=no
7536 ;;
7537
a.rottmann9bc8b932004-02-29 15:18:31 +00007538 *)
mlcreech636a9952008-05-05 22:52:56 +00007539 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007540 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7541 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7542 else
7543 ld_shlibs=no
7544 fi
7545 ;;
7546 esac
7547
vapier7f19c022007-02-17 14:46:31 +00007548 if test "$ld_shlibs" = no; then
7549 runpath_var=
7550 hardcode_libdir_flag_spec=
7551 export_dynamic_flag_spec=
7552 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007553 fi
7554 else
7555 # PORTME fill in a description of your system's linker (not GNU ld)
7556 case $host_os in
7557 aix3*)
7558 allow_undefined_flag=unsupported
7559 always_export_symbols=yes
7560 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'
7561 # Note: this linker hardcodes the directories in LIBPATH if there
7562 # are no directories specified by -L.
7563 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007564 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007565 # Neither direct hardcoding nor static linking is supported with a
7566 # broken collect2.
7567 hardcode_direct=unsupported
7568 fi
7569 ;;
7570
mlcreech636a9952008-05-05 22:52:56 +00007571 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007572 if test "$host_cpu" = ia64; then
7573 # On IA64, the linker does run time linking by default, so we don't
7574 # have to do anything special.
7575 aix_use_runtimelinking=no
7576 exp_sym_flag='-Bexport'
7577 no_entry_flag=""
7578 else
7579 # If we're using GNU nm, then we don't want the "-C" option.
7580 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00007581 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7582 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 +00007583 else
mlcreech636a9952008-05-05 22:52:56 +00007584 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 +00007585 fi
7586 aix_use_runtimelinking=no
7587
7588 # Test if we are trying to use run time linking or normal
7589 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7590 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00007591 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007592 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00007593 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7594 aix_use_runtimelinking=yes
7595 break
7596 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007597 done
vapier7f19c022007-02-17 14:46:31 +00007598 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007599 esac
7600
7601 exp_sym_flag='-bexport'
7602 no_entry_flag='-bnoentry'
7603 fi
7604
7605 # When large executables or shared objects are built, AIX ld can
7606 # have problems creating the table of contents. If linking a library
7607 # or program results in "error TOC overflow" add -mminimal-toc to
7608 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7609 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7610
7611 archive_cmds=''
7612 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007613 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007614 hardcode_libdir_separator=':'
7615 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00007616 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00007617
7618 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007619 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007620 # We only want to do this on AIX 4.2 and lower, the check
7621 # below for broken collect2 doesn't work under 4.3+
7622 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00007623 if test -f "$collect2name" &&
7624 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007625 then
mlcreech636a9952008-05-05 22:52:56 +00007626 # We have reworked collect2
7627 :
a.rottmann9bc8b932004-02-29 15:18:31 +00007628 else
mlcreech636a9952008-05-05 22:52:56 +00007629 # We have old collect2
7630 hardcode_direct=unsupported
7631 # It fails to find uninstalled libraries when the uninstalled
7632 # path is not listed in the libpath. Setting hardcode_minus_L
7633 # to unsupported forces relinking
7634 hardcode_minus_L=yes
7635 hardcode_libdir_flag_spec='-L$libdir'
7636 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007637 fi
vapier7f19c022007-02-17 14:46:31 +00007638 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007639 esac
7640 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007641 if test "$aix_use_runtimelinking" = yes; then
7642 shared_flag="$shared_flag "'${wl}-G'
7643 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007644 else
7645 # not using gcc
7646 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00007647 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7648 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00007649 shared_flag='-G'
7650 else
vapier7f19c022007-02-17 14:46:31 +00007651 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007652 shared_flag='${wl}-G'
7653 else
7654 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007655 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007656 fi
7657 fi
7658
vapier6acb2cf2009-01-28 04:46:28 +00007659 export_dynamic_flag_spec='${wl}-bexpall'
a.rottmann9bc8b932004-02-29 15:18:31 +00007660 # It seems that -bexpall does not export symbols beginning with
7661 # underscore (_), so it is better to generate a list of symbols to export.
7662 always_export_symbols=yes
7663 if test "$aix_use_runtimelinking" = yes; then
7664 # Warning - without using the other runtime loading flags (-brtl),
7665 # -berok will link without error, but may produce a broken library.
7666 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00007667 # Determine the default libpath from the value encoded in an
7668 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007670/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007671
a.rottmann84e63352003-03-24 09:42:16 +00007672int
7673main ()
7674{
a.rottmann9bc8b932004-02-29 15:18:31 +00007675
a.rottmann84e63352003-03-24 09:42:16 +00007676 ;
7677 return 0;
7678}
7679_ACEOF
drhf922ca42015-05-14 15:39:18 +00007680if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007681
mlcreech636a9952008-05-05 22:52:56 +00007682lt_aix_libpath_sed='
7683 /Import File Strings/,/^$/ {
7684 /^0/ {
7685 s/^0 *\(.*\)$/\1/
7686 p
7687 }
7688 }'
7689aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007690# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007691if test -z "$aix_libpath"; then
7692 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7693fi
a.rottmann84e63352003-03-24 09:42:16 +00007694fi
drhf922ca42015-05-14 15:39:18 +00007695rm -f core conftest.err conftest.$ac_objext \
7696 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007697if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007698
mlcreech636a9952008-05-05 22:52:56 +00007699 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7700 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"
7701 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007702 if test "$host_cpu" = ia64; then
7703 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7704 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007705 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 +00007706 else
mlcreech636a9952008-05-05 22:52:56 +00007707 # Determine the default libpath from the value encoded in an
7708 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007710/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007711
a.rottmann9bc8b932004-02-29 15:18:31 +00007712int
7713main ()
7714{
a.rottmann84e63352003-03-24 09:42:16 +00007715
a.rottmann9bc8b932004-02-29 15:18:31 +00007716 ;
7717 return 0;
7718}
7719_ACEOF
drhf922ca42015-05-14 15:39:18 +00007720if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007721
mlcreech636a9952008-05-05 22:52:56 +00007722lt_aix_libpath_sed='
7723 /Import File Strings/,/^$/ {
7724 /^0/ {
7725 s/^0 *\(.*\)$/\1/
7726 p
7727 }
7728 }'
7729aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007730# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007731if test -z "$aix_libpath"; then
7732 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7733fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007734fi
drhf922ca42015-05-14 15:39:18 +00007735rm -f core conftest.err conftest.$ac_objext \
7736 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007737if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007738
a.rottmann9bc8b932004-02-29 15:18:31 +00007739 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7740 # Warning - without using the other run time loading flags,
7741 # -berok will link without error, but may produce a broken library.
7742 no_undefined_flag=' ${wl}-bernotok'
7743 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007744 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007745 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007746 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007747 # This is similar to how AIX traditionally builds its shared libraries.
7748 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 +00007749 fi
7750 fi
a.rottmann84e63352003-03-24 09:42:16 +00007751 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007752
7753 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007754 case $host_cpu in
7755 powerpc)
7756 # see comment about AmigaOS4 .so support
7757 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7758 archive_expsym_cmds=''
7759 ;;
7760 m68k)
7761 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)'
7762 hardcode_libdir_flag_spec='-L$libdir'
7763 hardcode_minus_L=yes
7764 ;;
7765 esac
a.rottmann84e63352003-03-24 09:42:16 +00007766 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007767
vapier7f19c022007-02-17 14:46:31 +00007768 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007769 export_dynamic_flag_spec=-rdynamic
7770 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007771
vapier6acb2cf2009-01-28 04:46:28 +00007772 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007773 # When not using gcc, we currently assume that we are using
7774 # Microsoft Visual C++.
7775 # hardcode_libdir_flag_spec is actually meaningless, as there is
7776 # no search path for DLLs.
7777 hardcode_libdir_flag_spec=' '
7778 allow_undefined_flag=unsupported
7779 # Tell ltmain to make .lib files, not .a files.
7780 libext=lib
7781 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00007782 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00007783 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00007784 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 +00007785 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00007786 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00007787 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00007788 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00007789 fix_srcfile_path='`cygpath -w "$srcfile"`'
7790 enable_shared_with_static_runtimes=yes
7791 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007792
a.rottmann9bc8b932004-02-29 15:18:31 +00007793 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00007794
7795
7796 archive_cmds_need_lc=no
7797 hardcode_direct=no
7798 hardcode_automatic=yes
7799 hardcode_shlibpath_var=unsupported
7800 whole_archive_flag_spec=''
7801 link_all_deplibs=yes
7802 allow_undefined_flag="$_lt_dar_allow_undefined"
vapier6acb2cf2009-01-28 04:46:28 +00007803 case $cc_basename in
7804 ifort*) _lt_dar_can_shared=yes ;;
7805 *) _lt_dar_can_shared=$GCC ;;
7806 esac
7807 if test "$_lt_dar_can_shared" = "yes"; then
mlcreech636a9952008-05-05 22:52:56 +00007808 output_verbose_link_cmd=echo
7809 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7810 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7811 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}"
7812 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}"
7813
7814 else
7815 ld_shlibs=no
7816 fi
7817
a.rottmann9bc8b932004-02-29 15:18:31 +00007818 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007819
a.rottmann9bc8b932004-02-29 15:18:31 +00007820 dgux*)
7821 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7822 hardcode_libdir_flag_spec='-L$libdir'
7823 hardcode_shlibpath_var=no
7824 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007825
a.rottmann9bc8b932004-02-29 15:18:31 +00007826 freebsd1*)
7827 ld_shlibs=no
7828 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007829
a.rottmann9bc8b932004-02-29 15:18:31 +00007830 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7831 # support. Future versions do this automatically, but an explicit c++rt0.o
7832 # does not break anything, and helps significantly (at the cost of a little
7833 # extra space).
7834 freebsd2.2*)
7835 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7836 hardcode_libdir_flag_spec='-R$libdir'
7837 hardcode_direct=yes
7838 hardcode_shlibpath_var=no
7839 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007840
a.rottmann9bc8b932004-02-29 15:18:31 +00007841 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7842 freebsd2*)
7843 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7844 hardcode_direct=yes
7845 hardcode_minus_L=yes
7846 hardcode_shlibpath_var=no
7847 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007848
a.rottmann9bc8b932004-02-29 15:18:31 +00007849 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00007850 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007851 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7852 hardcode_libdir_flag_spec='-R$libdir'
7853 hardcode_direct=yes
7854 hardcode_shlibpath_var=no
7855 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007856
a.rottmann9bc8b932004-02-29 15:18:31 +00007857 hpux9*)
7858 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007859 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 +00007860 else
mlcreech636a9952008-05-05 22:52:56 +00007861 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 +00007862 fi
7863 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7864 hardcode_libdir_separator=:
7865 hardcode_direct=yes
7866
7867 # hardcode_minus_L: Not really in the search PATH,
7868 # but as the default location of the library.
7869 hardcode_minus_L=yes
7870 export_dynamic_flag_spec='${wl}-E'
7871 ;;
7872
vapier7f19c022007-02-17 14:46:31 +00007873 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007874 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007875 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7876 else
7877 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7878 fi
7879 if test "$with_gnu_ld" = no; then
7880 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00007881 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00007882 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00007883 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007884 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00007885 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00007886 # hardcode_minus_L: Not really in the search PATH,
7887 # but as the default location of the library.
7888 hardcode_minus_L=yes
7889 fi
7890 ;;
7891
7892 hpux11*)
7893 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7894 case $host_cpu in
7895 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007896 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7897 ;;
vapier7f19c022007-02-17 14:46:31 +00007898 ia64*)
vapier6acb2cf2009-01-28 04:46:28 +00007899 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00007900 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007901 *)
7902 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7903 ;;
7904 esac
7905 else
vapier7f19c022007-02-17 14:46:31 +00007906 case $host_cpu in
7907 hppa*64*)
7908 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7909 ;;
7910 ia64*)
7911 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007912 ;;
7913 *)
vapier7f19c022007-02-17 14:46:31 +00007914 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 +00007915 ;;
7916 esac
7917 fi
7918 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007919 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7920 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00007921
vapier7f19c022007-02-17 14:46:31 +00007922 case $host_cpu in
7923 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00007924 hardcode_direct=no
7925 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007926 ;;
7927 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007928 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007929 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007930 export_dynamic_flag_spec='${wl}-E'
7931
7932 # hardcode_minus_L: Not really in the search PATH,
7933 # but as the default location of the library.
7934 hardcode_minus_L=yes
7935 ;;
7936 esac
7937 fi
7938 ;;
7939
7940 irix5* | irix6* | nonstopux*)
7941 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007942 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'
7943 # Try to use the -exported_symbol ld option, if it does not
7944 # work, assume that -exports_file does not work either and
7945 # implicitly export all symbols.
7946 save_LDFLAGS="$LDFLAGS"
7947 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
drhf922ca42015-05-14 15:39:18 +00007948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +00007950int foo(void) {}
7951_ACEOF
drhf922ca42015-05-14 15:39:18 +00007952if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00007953 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'
7954
mlcreech636a9952008-05-05 22:52:56 +00007955fi
drhf922ca42015-05-14 15:39:18 +00007956rm -f core conftest.err conftest.$ac_objext \
7957 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00007958 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00007959 else
mlcreech636a9952008-05-05 22:52:56 +00007960 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'
7961 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 +00007962 fi
mlcreech636a9952008-05-05 22:52:56 +00007963 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00007964 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7965 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00007966 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007967 link_all_deplibs=yes
7968 ;;
7969
vapier7f19c022007-02-17 14:46:31 +00007970 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007971 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007972 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7973 else
7974 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7975 fi
7976 hardcode_libdir_flag_spec='-R$libdir'
7977 hardcode_direct=yes
7978 hardcode_shlibpath_var=no
7979 ;;
7980
7981 newsos6)
7982 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7983 hardcode_direct=yes
7984 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7985 hardcode_libdir_separator=:
7986 hardcode_shlibpath_var=no
7987 ;;
7988
mlcreech636a9952008-05-05 22:52:56 +00007989 *nto* | *qnx*)
7990 ;;
7991
a.rottmann9bc8b932004-02-29 15:18:31 +00007992 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007993 if test -f /usr/libexec/ld.so; then
7994 hardcode_direct=yes
7995 hardcode_shlibpath_var=no
7996 hardcode_direct_absolute=yes
7997 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7998 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7999 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8000 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8001 export_dynamic_flag_spec='${wl}-E'
8002 else
8003 case $host_os in
8004 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8005 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8006 hardcode_libdir_flag_spec='-R$libdir'
8007 ;;
8008 *)
8009 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8010 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8011 ;;
8012 esac
8013 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008014 else
mlcreech636a9952008-05-05 22:52:56 +00008015 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008016 fi
8017 ;;
8018
8019 os2*)
8020 hardcode_libdir_flag_spec='-L$libdir'
8021 hardcode_minus_L=yes
8022 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00008023 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'
8024 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00008025 ;;
8026
8027 osf3*)
8028 if test "$GCC" = yes; then
8029 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008030 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 +00008031 else
8032 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008033 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 +00008034 fi
mlcreech636a9952008-05-05 22:52:56 +00008035 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008036 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8037 hardcode_libdir_separator=:
8038 ;;
8039
8040 osf4* | osf5*) # as osf3* with the addition of -msym flag
8041 if test "$GCC" = yes; then
8042 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008043 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 +00008044 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8045 else
8046 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008047 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'
8048 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~
8049 $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 +00008050
8051 # Both c and cxx compiler support -rpath directly
8052 hardcode_libdir_flag_spec='-rpath $libdir'
8053 fi
mlcreech636a9952008-05-05 22:52:56 +00008054 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008055 hardcode_libdir_separator=:
8056 ;;
8057
a.rottmann9bc8b932004-02-29 15:18:31 +00008058 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00008059 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008060 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008061 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00008062 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8063 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8064 $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 +00008065 else
mlcreech636a9952008-05-05 22:52:56 +00008066 case `$CC -V 2>&1` in
8067 *"Compilers 5.0"*)
8068 wlarc=''
8069 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8070 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8071 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8072 ;;
8073 *)
8074 wlarc='${wl}'
8075 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8076 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8077 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8078 ;;
8079 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008080 fi
8081 hardcode_libdir_flag_spec='-R$libdir'
8082 hardcode_shlibpath_var=no
8083 case $host_os in
8084 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00008085 *)
mlcreech636a9952008-05-05 22:52:56 +00008086 # The compiler driver will combine and reorder linker options,
8087 # but understands `-z linker_flag'. GCC discards it without `$wl',
8088 # but is careful enough not to reorder.
8089 # Supported since Solaris 2.6 (maybe 2.5.1?)
8090 if test "$GCC" = yes; then
8091 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8092 else
8093 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8094 fi
8095 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008096 esac
8097 link_all_deplibs=yes
8098 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008099
a.rottmann9bc8b932004-02-29 15:18:31 +00008100 sunos4*)
8101 if test "x$host_vendor" = xsequent; then
8102 # Use $CC to link under sequent, because it throws in some extra .o
8103 # files that make .init and .fini sections work.
8104 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8105 else
8106 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8107 fi
8108 hardcode_libdir_flag_spec='-L$libdir'
8109 hardcode_direct=yes
8110 hardcode_minus_L=yes
8111 hardcode_shlibpath_var=no
8112 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008113
a.rottmann9bc8b932004-02-29 15:18:31 +00008114 sysv4)
8115 case $host_vendor in
8116 sni)
8117 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8118 hardcode_direct=yes # is this really true???
8119 ;;
8120 siemens)
8121 ## LD is ld it makes a PLAMLIB
8122 ## CC just makes a GrossModule.
8123 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8124 reload_cmds='$CC -r -o $output$reload_objs'
8125 hardcode_direct=no
8126 ;;
8127 motorola)
8128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8129 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8130 ;;
8131 esac
8132 runpath_var='LD_RUN_PATH'
8133 hardcode_shlibpath_var=no
8134 ;;
8135
8136 sysv4.3*)
8137 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8138 hardcode_shlibpath_var=no
8139 export_dynamic_flag_spec='-Bexport'
8140 ;;
8141
8142 sysv4*MP*)
8143 if test -d /usr/nec; then
8144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8145 hardcode_shlibpath_var=no
8146 runpath_var=LD_RUN_PATH
8147 hardcode_runpath_var=yes
8148 ld_shlibs=yes
8149 fi
8150 ;;
8151
mlcreech636a9952008-05-05 22:52:56 +00008152 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00008153 no_undefined_flag='${wl}-z,text'
8154 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008155 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00008156 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00008157
a.rottmann9bc8b932004-02-29 15:18:31 +00008158 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008159 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8160 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 +00008161 else
vapier7f19c022007-02-17 14:46:31 +00008162 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8163 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 +00008164 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008165 ;;
8166
vapier7f19c022007-02-17 14:46:31 +00008167 sysv5* | sco3.2v5* | sco5v6*)
8168 # Note: We can NOT use -z defs as we might desire, because we do not
8169 # link with -lc, and that would cause any symbols used from libc to
8170 # always be unresolved, which means just about no library would
8171 # ever link correctly. If we're not using GNU ld we use -z text
8172 # though, which does catch some bad symbols but isn't as heavy-handed
8173 # as -z defs.
8174 no_undefined_flag='${wl}-z,text'
8175 allow_undefined_flag='${wl}-z,nodefs'
8176 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008177 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00008178 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00008179 hardcode_libdir_separator=':'
8180 link_all_deplibs=yes
8181 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00008182 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00008183
8184 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008185 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8186 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008187 else
mlcreech636a9952008-05-05 22:52:56 +00008188 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8189 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008190 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008191 ;;
8192
8193 uts4*)
8194 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8195 hardcode_libdir_flag_spec='-L$libdir'
8196 hardcode_shlibpath_var=no
8197 ;;
8198
8199 *)
8200 ld_shlibs=no
8201 ;;
8202 esac
mlcreech636a9952008-05-05 22:52:56 +00008203
8204 if test x$host_vendor = xsni; then
8205 case $host in
8206 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8207 export_dynamic_flag_spec='${wl}-Blargedynsym'
8208 ;;
8209 esac
8210 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008211 fi
8212
drhf922ca42015-05-14 15:39:18 +00008213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
drh8b727472009-01-19 18:18:40 +00008214$as_echo "$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008215test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00008216
mlcreech636a9952008-05-05 22:52:56 +00008217with_gnu_ld=$with_gnu_ld
8218
8219
danielk197733a14782008-08-04 14:50:05 +00008220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
a.rottmann9bc8b932004-02-29 15:18:31 +00008233#
8234# Do we need to explicitly link libc?
8235#
8236case "x$archive_cmds_need_lc" in
8237x|xyes)
8238 # Assume -lc should be added
8239 archive_cmds_need_lc=yes
8240
8241 if test "$enable_shared" = yes && test "$GCC" = yes; then
8242 case $archive_cmds in
8243 *'~'*)
8244 # FIXME: we may have to deal with multi-command sequences.
8245 ;;
8246 '$CC '*)
8247 # Test whether the compiler implicitly links with -lc since on some
8248 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8249 # to ld, don't add -lc before -lgcc.
drhf922ca42015-05-14 15:39:18 +00008250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
drh8b727472009-01-19 18:18:40 +00008251$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008252 $RM conftest*
8253 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00008254
drhf922ca42015-05-14 15:39:18 +00008255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008256 (eval $ac_compile) 2>&5
8257 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8259 test $ac_status = 0; } 2>conftest.err; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008260 soname=conftest
8261 lib=conftest
8262 libobjs=conftest.$ac_objext
8263 deplibs=
8264 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00008265 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00008266 compiler_flags=-v
8267 linker_flags=-v
8268 verstring=
8269 output_objdir=.
8270 libname=conftest
8271 lt_save_allow_undefined_flag=$allow_undefined_flag
8272 allow_undefined_flag=
drhf922ca42015-05-14 15:39:18 +00008273 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 +00008274 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008275 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8277 test $ac_status = 0; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008278 then
8279 archive_cmds_need_lc=no
8280 else
8281 archive_cmds_need_lc=yes
8282 fi
8283 allow_undefined_flag=$lt_save_allow_undefined_flag
8284 else
8285 cat conftest.err 1>&5
8286 fi
mlcreech636a9952008-05-05 22:52:56 +00008287 $RM conftest*
drhf922ca42015-05-14 15:39:18 +00008288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
drh8b727472009-01-19 18:18:40 +00008289$as_echo "$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008290 ;;
8291 esac
drh71eb93e2001-09-28 01:34:43 +00008292 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008293 ;;
8294esac
drh71eb93e2001-09-28 01:34:43 +00008295
mlcreech636a9952008-05-05 22:52:56 +00008296
danielk197733a14782008-08-04 14:50:05 +00008297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
drhf922ca42015-05-14 15:39:18 +00008452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
drh8b727472009-01-19 18:18:40 +00008453$as_echo_n "checking dynamic linker characteristics... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008454
8455if test "$GCC" = yes; then
8456 case $host_os in
8457 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8458 *) lt_awk_arg="/^libraries:/" ;;
8459 esac
8460 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8461 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8462 # if the path contains ";" then we assume it to be the separator
8463 # otherwise default to the standard path separator (i.e. ":") - it is
8464 # assumed that no part of a normal pathname contains ";" but that should
8465 # okay in the real world where ";" in dirpaths is itself problematic.
8466 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8467 else
8468 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8469 fi
8470 # Ok, now we have the path, separated by spaces, we can step through it
8471 # and add multilib dir if necessary.
8472 lt_tmp_lt_search_path_spec=
8473 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8474 for lt_sys_path in $lt_search_path_spec; do
8475 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8476 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8477 else
8478 test -d "$lt_sys_path" && \
8479 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8480 fi
8481 done
8482 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8483BEGIN {RS=" "; FS="/|\n";} {
8484 lt_foo="";
8485 lt_count=0;
8486 for (lt_i = NF; lt_i > 0; lt_i--) {
8487 if ($lt_i != "" && $lt_i != ".") {
8488 if ($lt_i == "..") {
8489 lt_count++;
8490 } else {
8491 if (lt_count == 0) {
8492 lt_foo="/" $lt_i lt_foo;
8493 } else {
8494 lt_count--;
8495 }
8496 }
8497 }
8498 }
8499 if (lt_foo != "") { lt_freq[lt_foo]++; }
8500 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8501}'`
8502 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8503else
8504 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8505fi
drh71eb93e2001-09-28 01:34:43 +00008506library_names_spec=
8507libname_spec='lib$name'
8508soname_spec=
vapier7f19c022007-02-17 14:46:31 +00008509shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00008510postinstall_cmds=
8511postuninstall_cmds=
8512finish_cmds=
8513finish_eval=
8514shlibpath_var=
8515shlibpath_overrides_runpath=unknown
8516version_type=none
8517dynamic_linker="$host_os ld.so"
8518sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008519need_lib_prefix=unknown
8520hardcode_into_libs=no
8521
8522# when you set need_version to no, make sure it does not cause -set_version
8523# flags to be left without arguments
8524need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00008525
8526case $host_os in
8527aix3*)
8528 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008529 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008530 shlibpath_var=LIBPATH
8531
a.rottmann9bc8b932004-02-29 15:18:31 +00008532 # AIX 3 has no versioning support, so we append a major version to the name.
8533 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008534 ;;
8535
mlcreech636a9952008-05-05 22:52:56 +00008536aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00008537 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00008538 need_lib_prefix=no
8539 need_version=no
8540 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008541 if test "$host_cpu" = ia64; then
8542 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00008543 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008544 shlibpath_var=LD_LIBRARY_PATH
8545 else
8546 # With GCC up to 2.95.x, collect2 would create an import file
8547 # for dependence libraries. The import file would start with
8548 # the line `#! .'. This would cause the generated library to
8549 # depend on `.', always an invalid library. This was fixed in
8550 # development snapshots of GCC prior to 3.0.
8551 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008552 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008553 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8554 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00008555 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008556 :
8557 else
8558 can_build_shared=no
8559 fi
8560 ;;
drh71eb93e2001-09-28 01:34:43 +00008561 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008562 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8563 # soname into executable. Probably we can add versioning support to
8564 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00008565 if test "$aix_use_runtimelinking" = yes; then
8566 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8567 # instead of lib<name>.a to let people know that these are not
8568 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008570 else
8571 # We preserve .a as extension for shared libraries through AIX4.2
8572 # and later when we are not doing run time linking.
8573 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008574 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008575 fi
8576 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00008577 fi
8578 ;;
8579
8580amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00008581 case $host_cpu in
8582 powerpc)
8583 # Since July 2007 AmigaOS4 officially supports .so libraries.
8584 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8586 ;;
8587 m68k)
8588 library_names_spec='$libname.ixlibrary $libname.a'
8589 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8590 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'
8591 ;;
8592 esac
drh71eb93e2001-09-28 01:34:43 +00008593 ;;
8594
8595beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008596 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008597 dynamic_linker="$host_os ld.so"
8598 shlibpath_var=LIBRARY_PATH
8599 ;;
8600
vapier7f19c022007-02-17 14:46:31 +00008601bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00008602 version_type=linux
8603 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8605 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008606 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8607 shlibpath_var=LD_LIBRARY_PATH
8608 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8609 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8610 # the default ld.so.conf also contains /usr/contrib/lib and
8611 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8612 # libtool to hard-code these into programs
8613 ;;
8614
vapier6acb2cf2009-01-28 04:46:28 +00008615cygwin* | mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008616 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00008617 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008618 need_version=no
8619 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008620
drh71eb93e2001-09-28 01:34:43 +00008621 case $GCC,$host_os in
vapier6acb2cf2009-01-28 04:46:28 +00008622 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008623 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008624 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8625 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00008626 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008627 dldir=$destdir/`dirname \$dlpath`~
8628 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00008629 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00008630 chmod a+x \$dldir/$dlname~
8631 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8632 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8633 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00008634 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008635 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00008636 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00008637 shlibpath_overrides_runpath=yes
8638
8639 case $host_os in
8640 cygwin*)
8641 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8642 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8643 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8644 ;;
vapier6acb2cf2009-01-28 04:46:28 +00008645 mingw* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008646 # MinGW DLLs use traditional 'lib' prefix
8647 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00008648 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8649 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008650 # It is most probably a Windows format PATH printed by
8651 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8652 # path with ; separators, and with drive letters. We can handle the
8653 # drive letters (cygwin fileutils understands them), so leave them,
8654 # especially as we might pass files found there to a mingw objdump,
8655 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00008656 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00008657 else
mlcreech636a9952008-05-05 22:52:56 +00008658 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00008659 fi
8660 ;;
8661 pw32*)
8662 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00008663 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 +00008664 ;;
8665 esac
drh71eb93e2001-09-28 01:34:43 +00008666 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008667
drh71eb93e2001-09-28 01:34:43 +00008668 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008669 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008670 ;;
8671 esac
8672 dynamic_linker='Win32 ld.exe'
8673 # FIXME: first we should search . and the directory the executable is in
8674 shlibpath_var=PATH
8675 ;;
8676
8677darwin* | rhapsody*)
8678 dynamic_linker="$host_os dyld"
8679 version_type=darwin
8680 need_lib_prefix=no
8681 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008682 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00008683 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008684 shlibpath_overrides_runpath=yes
8685 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008686 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00008687
8688 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008689 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8690 ;;
8691
8692dgux*)
8693 version_type=linux
8694 need_lib_prefix=no
8695 need_version=no
8696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8697 soname_spec='${libname}${release}${shared_ext}$major'
8698 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008699 ;;
8700
a.rottmann84e63352003-03-24 09:42:16 +00008701freebsd1*)
8702 dynamic_linker=no
8703 ;;
8704
vapier7f19c022007-02-17 14:46:31 +00008705freebsd* | dragonfly*)
8706 # DragonFly does not have aout. When/if they implement a new
8707 # versioning mechanism, adjust this.
8708 if test -x /usr/bin/objformat; then
8709 objformat=`/usr/bin/objformat`
8710 else
8711 case $host_os in
8712 freebsd[123]*) objformat=aout ;;
8713 *) objformat=elf ;;
8714 esac
8715 fi
8716 # Handle Gentoo/FreeBSD as it was Linux
8717 case $host_vendor in
8718 gentoo)
8719 version_type=linux ;;
8720 *)
8721 version_type=freebsd-$objformat ;;
8722 esac
8723
drh71eb93e2001-09-28 01:34:43 +00008724 case $version_type in
8725 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008727 need_version=no
8728 need_lib_prefix=no
8729 ;;
8730 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008731 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008732 need_version=yes
8733 ;;
vapier7f19c022007-02-17 14:46:31 +00008734 linux)
8735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8736 soname_spec='${libname}${release}${shared_ext}$major'
8737 need_lib_prefix=no
8738 need_version=no
8739 ;;
drh71eb93e2001-09-28 01:34:43 +00008740 esac
8741 shlibpath_var=LD_LIBRARY_PATH
8742 case $host_os in
8743 freebsd2*)
8744 shlibpath_overrides_runpath=yes
8745 ;;
vapier7f19c022007-02-17 14:46:31 +00008746 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008747 shlibpath_overrides_runpath=yes
8748 hardcode_into_libs=yes
8749 ;;
vapier7f19c022007-02-17 14:46:31 +00008750 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8751 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00008752 shlibpath_overrides_runpath=no
8753 hardcode_into_libs=yes
8754 ;;
mlcreech636a9952008-05-05 22:52:56 +00008755 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00008756 shlibpath_overrides_runpath=yes
8757 hardcode_into_libs=yes
8758 ;;
drh71eb93e2001-09-28 01:34:43 +00008759 esac
8760 ;;
8761
8762gnu*)
8763 version_type=linux
8764 need_lib_prefix=no
8765 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8767 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008768 shlibpath_var=LD_LIBRARY_PATH
8769 hardcode_into_libs=yes
8770 ;;
8771
8772hpux9* | hpux10* | hpux11*)
8773 # Give a soname corresponding to the major version so that dld.sl refuses to
8774 # link against other versions.
8775 version_type=sunos
8776 need_lib_prefix=no
8777 need_version=no
vapier7f19c022007-02-17 14:46:31 +00008778 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00008779 ia64*)
vapier7f19c022007-02-17 14:46:31 +00008780 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00008781 hardcode_into_libs=yes
8782 dynamic_linker="$host_os dld.so"
8783 shlibpath_var=LD_LIBRARY_PATH
8784 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8786 soname_spec='${libname}${release}${shared_ext}$major'
8787 if test "X$HPUX_IA64_MODE" = X32; then
8788 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8789 else
8790 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8791 fi
8792 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8793 ;;
mlcreech636a9952008-05-05 22:52:56 +00008794 hppa*64*)
8795 shrext_cmds='.sl'
8796 hardcode_into_libs=yes
8797 dynamic_linker="$host_os dld.sl"
8798 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8799 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8801 soname_spec='${libname}${release}${shared_ext}$major'
8802 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8804 ;;
8805 *)
vapier7f19c022007-02-17 14:46:31 +00008806 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00008807 dynamic_linker="$host_os dld.sl"
8808 shlibpath_var=SHLIB_PATH
8809 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8811 soname_spec='${libname}${release}${shared_ext}$major'
8812 ;;
8813 esac
drh71eb93e2001-09-28 01:34:43 +00008814 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8815 postinstall_cmds='chmod 555 $lib'
8816 ;;
8817
mlcreech636a9952008-05-05 22:52:56 +00008818interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00008819 version_type=linux
8820 need_lib_prefix=no
8821 need_version=no
8822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8823 soname_spec='${libname}${release}${shared_ext}$major'
8824 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8825 shlibpath_var=LD_LIBRARY_PATH
8826 shlibpath_overrides_runpath=no
8827 hardcode_into_libs=yes
8828 ;;
8829
a.rottmann84e63352003-03-24 09:42:16 +00008830irix5* | irix6* | nonstopux*)
8831 case $host_os in
8832 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008833 *)
8834 if test "$lt_cv_prog_gnu_ld" = yes; then
8835 version_type=linux
8836 else
8837 version_type=irix
8838 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00008839 esac
drh71eb93e2001-09-28 01:34:43 +00008840 need_lib_prefix=no
8841 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008842 soname_spec='${libname}${release}${shared_ext}$major'
8843 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 +00008844 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008845 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00008846 libsuff= shlibsuff=
8847 ;;
8848 *)
8849 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00008850 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8851 libsuff= shlibsuff= libmagic=32-bit;;
8852 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8853 libsuff=32 shlibsuff=N32 libmagic=N32;;
8854 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8855 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00008856 *) libsuff= shlibsuff= libmagic=never-match;;
8857 esac
8858 ;;
8859 esac
8860 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8861 shlibpath_overrides_runpath=no
8862 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8863 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00008864 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008865 ;;
8866
8867# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00008868linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00008869 dynamic_linker=no
8870 ;;
8871
8872# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00008873linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00008874 version_type=linux
8875 need_lib_prefix=no
8876 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8878 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008879 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8880 shlibpath_var=LD_LIBRARY_PATH
8881 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00008882 # Some binutils ld are patched to set DT_RUNPATH
8883 save_LDFLAGS=$LDFLAGS
8884 save_libdir=$libdir
8885 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8886 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
drhf922ca42015-05-14 15:39:18 +00008887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008888/* end confdefs.h. */
8889
8890int
8891main ()
8892{
8893
8894 ;
8895 return 0;
8896}
8897_ACEOF
drhf922ca42015-05-14 15:39:18 +00008898if ac_fn_c_try_link "$LINENO"; then :
8899 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
mlcreech636a9952008-05-05 22:52:56 +00008900 shlibpath_overrides_runpath=yes
8901fi
mlcreech636a9952008-05-05 22:52:56 +00008902fi
drhf922ca42015-05-14 15:39:18 +00008903rm -f core conftest.err conftest.$ac_objext \
8904 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008905 LDFLAGS=$save_LDFLAGS
8906 libdir=$save_libdir
8907
drh71eb93e2001-09-28 01:34:43 +00008908 # This implies no fast_install, which is unacceptable.
8909 # Some rework will be needed to allow for fast_install
8910 # before this can be enabled.
8911 hardcode_into_libs=yes
8912
a.rottmann9bc8b932004-02-29 15:18:31 +00008913 # Append ld.so.conf contents to the search path
8914 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00008915 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 +00008916 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00008917 fi
8918
drh71eb93e2001-09-28 01:34:43 +00008919 # We used to test for /lib/ld.so.1 and disable shared libraries on
8920 # powerpc, because MkLinux only supported shared libraries with the
8921 # GNU dynamic linker. Since this was broken with cross compilers,
8922 # most powerpc-linux boxes support dynamic linking these days and
8923 # people can always --disable-shared, the test was removed, and we
8924 # assume the GNU/Linux dynamic linker is in use.
8925 dynamic_linker='GNU/Linux ld.so'
8926 ;;
8927
8928netbsd*)
8929 version_type=sunos
8930 need_lib_prefix=no
8931 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008932 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8935 dynamic_linker='NetBSD (a.out) ld.so'
8936 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8938 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008939 dynamic_linker='NetBSD ld.elf_so'
8940 fi
8941 shlibpath_var=LD_LIBRARY_PATH
8942 shlibpath_overrides_runpath=yes
8943 hardcode_into_libs=yes
8944 ;;
8945
8946newsos6)
8947 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8949 shlibpath_var=LD_LIBRARY_PATH
8950 shlibpath_overrides_runpath=yes
8951 ;;
8952
mlcreech636a9952008-05-05 22:52:56 +00008953*nto* | *qnx*)
8954 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00008955 need_lib_prefix=no
8956 need_version=no
8957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8958 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008959 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008960 shlibpath_overrides_runpath=no
8961 hardcode_into_libs=yes
8962 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00008963 ;;
8964
drh71eb93e2001-09-28 01:34:43 +00008965openbsd*)
8966 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00008967 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00008968 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00008969 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8970 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00008971 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8972 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00008973 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8975 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8976 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008977 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 +00008978 case $host_os in
8979 openbsd2.[89] | openbsd2.[89].*)
8980 shlibpath_overrides_runpath=no
8981 ;;
8982 *)
8983 shlibpath_overrides_runpath=yes
8984 ;;
8985 esac
a.rottmann84e63352003-03-24 09:42:16 +00008986 else
8987 shlibpath_overrides_runpath=yes
8988 fi
drh71eb93e2001-09-28 01:34:43 +00008989 ;;
8990
8991os2*)
8992 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00008993 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008994 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008995 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008996 dynamic_linker='OS/2 ld.exe'
8997 shlibpath_var=LIBPATH
8998 ;;
8999
9000osf3* | osf4* | osf5*)
9001 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00009002 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009003 need_version=no
9004 soname_spec='${libname}${release}${shared_ext}$major'
9005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00009006 shlibpath_var=LD_LIBRARY_PATH
9007 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9008 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9009 ;;
9010
mlcreech636a9952008-05-05 22:52:56 +00009011rdos*)
9012 dynamic_linker=no
9013 ;;
9014
drh71eb93e2001-09-28 01:34:43 +00009015solaris*)
9016 version_type=linux
9017 need_lib_prefix=no
9018 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9020 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009021 shlibpath_var=LD_LIBRARY_PATH
9022 shlibpath_overrides_runpath=yes
9023 hardcode_into_libs=yes
9024 # ldd complains unless libraries are executable
9025 postinstall_cmds='chmod +x $lib'
9026 ;;
9027
9028sunos4*)
9029 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00009030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009031 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9032 shlibpath_var=LD_LIBRARY_PATH
9033 shlibpath_overrides_runpath=yes
9034 if test "$with_gnu_ld" = yes; then
9035 need_lib_prefix=no
9036 fi
9037 need_version=yes
9038 ;;
9039
vapier7f19c022007-02-17 14:46:31 +00009040sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00009041 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9043 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009044 shlibpath_var=LD_LIBRARY_PATH
9045 case $host_vendor in
9046 sni)
9047 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00009048 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00009049 runpath_var=LD_RUN_PATH
9050 ;;
9051 siemens)
9052 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00009053 ;;
9054 motorola)
9055 need_lib_prefix=no
9056 need_version=no
9057 shlibpath_overrides_runpath=no
9058 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9059 ;;
9060 esac
9061 ;;
9062
9063sysv4*MP*)
9064 if test -d /usr/nec ;then
9065 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009066 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9067 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00009068 shlibpath_var=LD_LIBRARY_PATH
9069 fi
9070 ;;
9071
vapier7f19c022007-02-17 14:46:31 +00009072sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9073 version_type=freebsd-elf
9074 need_lib_prefix=no
9075 need_version=no
9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009079 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00009080 hardcode_into_libs=yes
9081 if test "$with_gnu_ld" = yes; then
9082 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00009083 else
9084 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00009085 case $host_os in
9086 sco3.2v5*)
9087 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9088 ;;
9089 esac
9090 fi
9091 sys_lib_dlsearch_path_spec='/usr/lib'
9092 ;;
9093
mlcreech636a9952008-05-05 22:52:56 +00009094tpf*)
9095 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9096 version_type=linux
9097 need_lib_prefix=no
9098 need_version=no
vapier6acb2cf2009-01-28 04:46:28 +00009099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00009100 shlibpath_var=LD_LIBRARY_PATH
9101 shlibpath_overrides_runpath=no
9102 hardcode_into_libs=yes
9103 ;;
9104
a.rottmann9bc8b932004-02-29 15:18:31 +00009105uts4*)
9106 version_type=linux
9107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9108 soname_spec='${libname}${release}${shared_ext}$major'
9109 shlibpath_var=LD_LIBRARY_PATH
9110 ;;
9111
drh71eb93e2001-09-28 01:34:43 +00009112*)
9113 dynamic_linker=no
9114 ;;
9115esac
drhf922ca42015-05-14 15:39:18 +00009116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
drh8b727472009-01-19 18:18:40 +00009117$as_echo "$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009118test "$dynamic_linker" = no && can_build_shared=no
9119
vapier7f19c022007-02-17 14:46:31 +00009120variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9121if test "$GCC" = yes; then
9122 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9123fi
9124
mlcreech636a9952008-05-05 22:52:56 +00009125if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9126 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9127fi
9128if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9129 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9130fi
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
drhf922ca42015-05-14 15:39:18 +00009218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
drh8b727472009-01-19 18:18:40 +00009219$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009220hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00009221if test -n "$hardcode_libdir_flag_spec" ||
9222 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00009223 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00009224
mlcreech636a9952008-05-05 22:52:56 +00009225 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00009226 if test "$hardcode_direct" != no &&
9227 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9228 # have to relink, otherwise we might link with an installed library
9229 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00009230 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00009231 test "$hardcode_minus_L" != no; then
9232 # Linking always hardcodes the temporary library directory.
9233 hardcode_action=relink
9234 else
9235 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9236 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00009237 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009238else
9239 # We cannot hardcode anything, or else we can only hardcode existing
9240 # directories.
9241 hardcode_action=unsupported
9242fi
drhf922ca42015-05-14 15:39:18 +00009243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
drh8b727472009-01-19 18:18:40 +00009244$as_echo "$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009245
mlcreech636a9952008-05-05 22:52:56 +00009246if test "$hardcode_action" = relink ||
9247 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009248 # Fast installation is not supported
9249 enable_fast_install=no
9250elif test "$shlibpath_overrides_runpath" = yes ||
9251 test "$enable_shared" = no; then
9252 # Fast installation is not necessary
9253 enable_fast_install=needless
9254fi
9255
a.rottmann84e63352003-03-24 09:42:16 +00009256
mlcreech636a9952008-05-05 22:52:56 +00009257
9258
9259
9260
9261 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00009262 enable_dlopen=unknown
9263 enable_dlopen_self=unknown
9264 enable_dlopen_self_static=unknown
9265else
9266 lt_cv_dlopen=no
9267 lt_cv_dlopen_libs=
9268
9269 case $host_os in
9270 beos*)
9271 lt_cv_dlopen="load_add_on"
9272 lt_cv_dlopen_libs=
9273 lt_cv_dlopen_self=yes
9274 ;;
9275
vapier6acb2cf2009-01-28 04:46:28 +00009276 mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00009277 lt_cv_dlopen="LoadLibrary"
9278 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009279 ;;
drh71eb93e2001-09-28 01:34:43 +00009280
a.rottmann9bc8b932004-02-29 15:18:31 +00009281 cygwin*)
9282 lt_cv_dlopen="dlopen"
9283 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009284 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009285
9286 darwin*)
9287 # if libdl is installed we need to link against it
drhf922ca42015-05-14 15:39:18 +00009288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009289$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009290if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009291 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009292else
9293 ac_check_lib_save_LIBS=$LIBS
9294LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009296/* end confdefs.h. */
9297
drh8b727472009-01-19 18:18:40 +00009298/* Override any GCC internal prototype to avoid an error.
9299 Use char because int might match the return type of a GCC
9300 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00009301#ifdef __cplusplus
9302extern "C"
9303#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00009304char dlopen ();
9305int
9306main ()
9307{
drh8b727472009-01-19 18:18:40 +00009308return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00009309 ;
9310 return 0;
9311}
9312_ACEOF
drhf922ca42015-05-14 15:39:18 +00009313if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009314 ac_cv_lib_dl_dlopen=yes
9315else
drhf922ca42015-05-14 15:39:18 +00009316 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009317fi
drhf922ca42015-05-14 15:39:18 +00009318rm -f core conftest.err conftest.$ac_objext \
9319 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009320LIBS=$ac_check_lib_save_LIBS
9321fi
drhf922ca42015-05-14 15:39:18 +00009322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009323$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009324if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009325 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9326else
9327
9328 lt_cv_dlopen="dyld"
9329 lt_cv_dlopen_libs=
9330 lt_cv_dlopen_self=yes
9331
9332fi
9333
mlcreech636a9952008-05-05 22:52:56 +00009334 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009335
drh71eb93e2001-09-28 01:34:43 +00009336 *)
drhf922ca42015-05-14 15:39:18 +00009337 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9338if test "x$ac_cv_func_shl_load" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009339 lt_cv_dlopen="shl_load"
9340else
drhf922ca42015-05-14 15:39:18 +00009341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009342$as_echo_n "checking for shl_load in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009343if ${ac_cv_lib_dld_shl_load+:} false; then :
drh8b727472009-01-19 18:18:40 +00009344 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009345else
9346 ac_check_lib_save_LIBS=$LIBS
9347LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009348cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009349/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009350
drh8b727472009-01-19 18:18:40 +00009351/* Override any GCC internal prototype to avoid an error.
9352 Use char because int might match the return type of a GCC
9353 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009354#ifdef __cplusplus
9355extern "C"
9356#endif
drh71eb93e2001-09-28 01:34:43 +00009357char shl_load ();
9358int
9359main ()
9360{
drh8b727472009-01-19 18:18:40 +00009361return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009362 ;
9363 return 0;
9364}
9365_ACEOF
drhf922ca42015-05-14 15:39:18 +00009366if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009367 ac_cv_lib_dld_shl_load=yes
9368else
drhf922ca42015-05-14 15:39:18 +00009369 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009370fi
drhf922ca42015-05-14 15:39:18 +00009371rm -f core conftest.err conftest.$ac_objext \
9372 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009373LIBS=$ac_check_lib_save_LIBS
9374fi
drhf922ca42015-05-14 15:39:18 +00009375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
drh8b727472009-01-19 18:18:40 +00009376$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
drhf922ca42015-05-14 15:39:18 +00009377if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009378 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00009379else
drhf922ca42015-05-14 15:39:18 +00009380 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9381if test "x$ac_cv_func_dlopen" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00009382 lt_cv_dlopen="dlopen"
9383else
drhf922ca42015-05-14 15:39:18 +00009384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009385$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009386if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009387 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009388else
9389 ac_check_lib_save_LIBS=$LIBS
9390LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009392/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009393
drh8b727472009-01-19 18:18:40 +00009394/* Override any GCC internal prototype to avoid an error.
9395 Use char because int might match the return type of a GCC
9396 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009397#ifdef __cplusplus
9398extern "C"
9399#endif
drh71eb93e2001-09-28 01:34:43 +00009400char dlopen ();
9401int
9402main ()
9403{
drh8b727472009-01-19 18:18:40 +00009404return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009405 ;
9406 return 0;
9407}
9408_ACEOF
drhf922ca42015-05-14 15:39:18 +00009409if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009410 ac_cv_lib_dl_dlopen=yes
9411else
drhf922ca42015-05-14 15:39:18 +00009412 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009413fi
drhf922ca42015-05-14 15:39:18 +00009414rm -f core conftest.err conftest.$ac_objext \
9415 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009416LIBS=$ac_check_lib_save_LIBS
9417fi
drhf922ca42015-05-14 15:39:18 +00009418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009419$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009420if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009421 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9422else
drhf922ca42015-05-14 15:39:18 +00009423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
drh8b727472009-01-19 18:18:40 +00009424$as_echo_n "checking for dlopen in -lsvld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009425if ${ac_cv_lib_svld_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009426 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009427else
9428 ac_check_lib_save_LIBS=$LIBS
9429LIBS="-lsvld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009430cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009431/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009432
drh8b727472009-01-19 18:18:40 +00009433/* Override any GCC internal prototype to avoid an error.
9434 Use char because int might match the return type of a GCC
9435 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009436#ifdef __cplusplus
9437extern "C"
9438#endif
drh71eb93e2001-09-28 01:34:43 +00009439char dlopen ();
9440int
9441main ()
9442{
drh8b727472009-01-19 18:18:40 +00009443return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009444 ;
9445 return 0;
9446}
9447_ACEOF
drhf922ca42015-05-14 15:39:18 +00009448if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009449 ac_cv_lib_svld_dlopen=yes
9450else
drhf922ca42015-05-14 15:39:18 +00009451 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009452fi
drhf922ca42015-05-14 15:39:18 +00009453rm -f core conftest.err conftest.$ac_objext \
9454 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009455LIBS=$ac_check_lib_save_LIBS
9456fi
drhf922ca42015-05-14 15:39:18 +00009457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009458$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009459if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009460 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00009461else
drhf922ca42015-05-14 15:39:18 +00009462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009463$as_echo_n "checking for dld_link in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009464if ${ac_cv_lib_dld_dld_link+:} false; then :
drh8b727472009-01-19 18:18:40 +00009465 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00009466else
9467 ac_check_lib_save_LIBS=$LIBS
9468LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009470/* end confdefs.h. */
9471
drh8b727472009-01-19 18:18:40 +00009472/* Override any GCC internal prototype to avoid an error.
9473 Use char because int might match the return type of a GCC
9474 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00009475#ifdef __cplusplus
9476extern "C"
9477#endif
a.rottmann84e63352003-03-24 09:42:16 +00009478char dld_link ();
9479int
9480main ()
9481{
drh8b727472009-01-19 18:18:40 +00009482return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +00009483 ;
9484 return 0;
9485}
9486_ACEOF
drhf922ca42015-05-14 15:39:18 +00009487if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00009488 ac_cv_lib_dld_dld_link=yes
9489else
drhf922ca42015-05-14 15:39:18 +00009490 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00009491fi
drhf922ca42015-05-14 15:39:18 +00009492rm -f core conftest.err conftest.$ac_objext \
9493 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009494LIBS=$ac_check_lib_save_LIBS
9495fi
drhf922ca42015-05-14 15:39:18 +00009496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
drh8b727472009-01-19 18:18:40 +00009497$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
drhf922ca42015-05-14 15:39:18 +00009498if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009499 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +00009500fi
9501
drh71eb93e2001-09-28 01:34:43 +00009502
9503fi
9504
drh71eb93e2001-09-28 01:34:43 +00009505
9506fi
9507
a.rottmann84e63352003-03-24 09:42:16 +00009508
9509fi
9510
9511
9512fi
9513
9514
drh71eb93e2001-09-28 01:34:43 +00009515fi
9516
9517 ;;
9518 esac
9519
9520 if test "x$lt_cv_dlopen" != xno; then
9521 enable_dlopen=yes
9522 else
9523 enable_dlopen=no
9524 fi
9525
9526 case $lt_cv_dlopen in
9527 dlopen)
9528 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00009529 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00009530
9531 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +00009532 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +00009533
9534 save_LIBS="$LIBS"
9535 LIBS="$lt_cv_dlopen_libs $LIBS"
9536
drhf922ca42015-05-14 15:39:18 +00009537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009538$as_echo_n "checking whether a program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009539if ${lt_cv_dlopen_self+:} false; then :
drh8b727472009-01-19 18:18:40 +00009540 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009541else
9542 if test "$cross_compiling" = yes; then :
9543 lt_cv_dlopen_self=cross
9544else
a.rottmann9bc8b932004-02-29 15:18:31 +00009545 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009546 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009547 cat > conftest.$ac_ext <<_LT_EOF
drh6fe4c182016-07-25 11:39:24 +00009548#line 9548 "configure"
drh71eb93e2001-09-28 01:34:43 +00009549#include "confdefs.h"
9550
9551#if HAVE_DLFCN_H
9552#include <dlfcn.h>
9553#endif
9554
9555#include <stdio.h>
9556
9557#ifdef RTLD_GLOBAL
9558# define LT_DLGLOBAL RTLD_GLOBAL
9559#else
9560# ifdef DL_GLOBAL
9561# define LT_DLGLOBAL DL_GLOBAL
9562# else
9563# define LT_DLGLOBAL 0
9564# endif
9565#endif
9566
9567/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9568 find out it does not work in some platform. */
9569#ifndef LT_DLLAZY_OR_NOW
9570# ifdef RTLD_LAZY
9571# define LT_DLLAZY_OR_NOW RTLD_LAZY
9572# else
9573# ifdef DL_LAZY
9574# define LT_DLLAZY_OR_NOW DL_LAZY
9575# else
9576# ifdef RTLD_NOW
9577# define LT_DLLAZY_OR_NOW RTLD_NOW
9578# else
9579# ifdef DL_NOW
9580# define LT_DLLAZY_OR_NOW DL_NOW
9581# else
9582# define LT_DLLAZY_OR_NOW 0
9583# endif
9584# endif
9585# endif
9586# endif
9587#endif
9588
drh71eb93e2001-09-28 01:34:43 +00009589void fnord() { int i=42;}
9590int main ()
9591{
9592 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9593 int status = $lt_dlunknown;
9594
9595 if (self)
9596 {
9597 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9598 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9599 /* dlclose (self); */
9600 }
vapier7f19c022007-02-17 14:46:31 +00009601 else
9602 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009603
vapier6acb2cf2009-01-28 04:46:28 +00009604 return status;
drh71eb93e2001-09-28 01:34:43 +00009605}
mlcreech636a9952008-05-05 22:52:56 +00009606_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009608 (eval $ac_link) 2>&5
9609 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9611 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009612 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009613 lt_status=$?
9614 case x$lt_status in
9615 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9616 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009617 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +00009618 esac
9619 else :
9620 # compilation failed
9621 lt_cv_dlopen_self=no
9622 fi
9623fi
9624rm -fr conftest*
9625
a.rottmann84e63352003-03-24 09:42:16 +00009626
drh71eb93e2001-09-28 01:34:43 +00009627fi
drhf922ca42015-05-14 15:39:18 +00009628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
drh8b727472009-01-19 18:18:40 +00009629$as_echo "$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009630
9631 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00009632 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00009633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009634$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009635if ${lt_cv_dlopen_self_static+:} false; then :
drh8b727472009-01-19 18:18:40 +00009636 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009637else
9638 if test "$cross_compiling" = yes; then :
9639 lt_cv_dlopen_self_static=cross
9640else
a.rottmann9bc8b932004-02-29 15:18:31 +00009641 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009642 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009643 cat > conftest.$ac_ext <<_LT_EOF
drh6fe4c182016-07-25 11:39:24 +00009644#line 9644 "configure"
drh71eb93e2001-09-28 01:34:43 +00009645#include "confdefs.h"
9646
9647#if HAVE_DLFCN_H
9648#include <dlfcn.h>
9649#endif
9650
9651#include <stdio.h>
9652
9653#ifdef RTLD_GLOBAL
9654# define LT_DLGLOBAL RTLD_GLOBAL
9655#else
9656# ifdef DL_GLOBAL
9657# define LT_DLGLOBAL DL_GLOBAL
9658# else
9659# define LT_DLGLOBAL 0
9660# endif
9661#endif
9662
9663/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9664 find out it does not work in some platform. */
9665#ifndef LT_DLLAZY_OR_NOW
9666# ifdef RTLD_LAZY
9667# define LT_DLLAZY_OR_NOW RTLD_LAZY
9668# else
9669# ifdef DL_LAZY
9670# define LT_DLLAZY_OR_NOW DL_LAZY
9671# else
9672# ifdef RTLD_NOW
9673# define LT_DLLAZY_OR_NOW RTLD_NOW
9674# else
9675# ifdef DL_NOW
9676# define LT_DLLAZY_OR_NOW DL_NOW
9677# else
9678# define LT_DLLAZY_OR_NOW 0
9679# endif
9680# endif
9681# endif
9682# endif
9683#endif
9684
drh71eb93e2001-09-28 01:34:43 +00009685void fnord() { int i=42;}
9686int main ()
9687{
9688 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9689 int status = $lt_dlunknown;
9690
9691 if (self)
9692 {
9693 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9694 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9695 /* dlclose (self); */
9696 }
vapier7f19c022007-02-17 14:46:31 +00009697 else
9698 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009699
vapier6acb2cf2009-01-28 04:46:28 +00009700 return status;
drh71eb93e2001-09-28 01:34:43 +00009701}
mlcreech636a9952008-05-05 22:52:56 +00009702_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009704 (eval $ac_link) 2>&5
9705 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9707 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009708 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009709 lt_status=$?
9710 case x$lt_status in
9711 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9712 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009713 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +00009714 esac
9715 else :
9716 # compilation failed
9717 lt_cv_dlopen_self_static=no
9718 fi
9719fi
9720rm -fr conftest*
9721
a.rottmann84e63352003-03-24 09:42:16 +00009722
drh71eb93e2001-09-28 01:34:43 +00009723fi
drhf922ca42015-05-14 15:39:18 +00009724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
drh8b727472009-01-19 18:18:40 +00009725$as_echo "$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009726 fi
9727
9728 CPPFLAGS="$save_CPPFLAGS"
9729 LDFLAGS="$save_LDFLAGS"
9730 LIBS="$save_LIBS"
9731 ;;
9732 esac
9733
9734 case $lt_cv_dlopen_self in
9735 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9736 *) enable_dlopen_self=unknown ;;
9737 esac
9738
9739 case $lt_cv_dlopen_self_static in
9740 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9741 *) enable_dlopen_self_static=unknown ;;
9742 esac
9743fi
9744
drh71eb93e2001-09-28 01:34:43 +00009745
drh71eb93e2001-09-28 01:34:43 +00009746
a.rottmann9bc8b932004-02-29 15:18:31 +00009747
a.rottmann9bc8b932004-02-29 15:18:31 +00009748
mlcreech636a9952008-05-05 22:52:56 +00009749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761striplib=
9762old_striplib=
drhf922ca42015-05-14 15:39:18 +00009763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
drh8b727472009-01-19 18:18:40 +00009764$as_echo_n "checking whether stripping libraries is possible... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009765if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9766 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9767 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
drhf922ca42015-05-14 15:39:18 +00009768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009769$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009770else
9771# FIXME - insert some real tests, host_os isn't really good enough
9772 case $host_os in
9773 darwin*)
9774 if test -n "$STRIP" ; then
9775 striplib="$STRIP -x"
9776 old_striplib="$STRIP -S"
drhf922ca42015-05-14 15:39:18 +00009777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009778$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009779 else
drhf922ca42015-05-14 15:39:18 +00009780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009781$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009782 fi
a.rottmann84e63352003-03-24 09:42:16 +00009783 ;;
mlcreech636a9952008-05-05 22:52:56 +00009784 *)
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; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009787 ;;
9788 esac
mlcreech636a9952008-05-05 22:52:56 +00009789fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009790
a.rottmann9bc8b932004-02-29 15:18:31 +00009791
drh71eb93e2001-09-28 01:34:43 +00009792
drh71eb93e2001-09-28 01:34:43 +00009793
a.rottmann84e63352003-03-24 09:42:16 +00009794
drh71eb93e2001-09-28 01:34:43 +00009795
drh71eb93e2001-09-28 01:34:43 +00009796
a.rottmann9bc8b932004-02-29 15:18:31 +00009797
drh71eb93e2001-09-28 01:34:43 +00009798
drh71eb93e2001-09-28 01:34:43 +00009799
drh71eb93e2001-09-28 01:34:43 +00009800
drh71eb93e2001-09-28 01:34:43 +00009801
mlcreech636a9952008-05-05 22:52:56 +00009802 # Report which library types will actually be built
drhf922ca42015-05-14 15:39:18 +00009803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009804$as_echo_n "checking if libtool supports shared libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
drh8b727472009-01-19 18:18:40 +00009806$as_echo "$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009807
drhf922ca42015-05-14 15:39:18 +00009808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009809$as_echo_n "checking whether to build shared libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009810 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009811
mlcreech636a9952008-05-05 22:52:56 +00009812 # On AIX, shared libraries and static libraries use the same namespace, and
9813 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +00009814 case $host_os in
9815 aix3*)
vapier7f19c022007-02-17 14:46:31 +00009816 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +00009817 if test -n "$RANLIB"; then
9818 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9819 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +00009820 fi
9821 ;;
9822
mlcreech636a9952008-05-05 22:52:56 +00009823 aix[4-9]*)
9824 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9825 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009826 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009827 ;;
9828 esac
drhf922ca42015-05-14 15:39:18 +00009829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
drh8b727472009-01-19 18:18:40 +00009830$as_echo "$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009831
drhf922ca42015-05-14 15:39:18 +00009832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
drh8b727472009-01-19 18:18:40 +00009833$as_echo_n "checking whether to build static libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009834 # Make sure either enable_shared or enable_static is yes.
9835 test "$enable_shared" = yes || enable_static=yes
drhf922ca42015-05-14 15:39:18 +00009836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
drh8b727472009-01-19 18:18:40 +00009837$as_echo "$enable_static" >&6; }
vapier7f19c022007-02-17 14:46:31 +00009838
a.rottmann9bc8b932004-02-29 15:18:31 +00009839
a.rottmann9bc8b932004-02-29 15:18:31 +00009840
a.rottmann9bc8b932004-02-29 15:18:31 +00009841
vapier7f19c022007-02-17 14:46:31 +00009842fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009843ac_ext=c
9844ac_cpp='$CPP $CPPFLAGS'
9845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9847ac_compiler_gnu=$ac_cv_c_compiler_gnu
9848
9849CC="$lt_save_CC"
9850
a.rottmann9bc8b932004-02-29 15:18:31 +00009851
a.rottmann9bc8b932004-02-29 15:18:31 +00009852
9853
a.rottmann9bc8b932004-02-29 15:18:31 +00009854
a.rottmann9bc8b932004-02-29 15:18:31 +00009855
a.rottmann9bc8b932004-02-29 15:18:31 +00009856
a.rottmann9bc8b932004-02-29 15:18:31 +00009857
a.rottmann9bc8b932004-02-29 15:18:31 +00009858
a.rottmann9bc8b932004-02-29 15:18:31 +00009859
vapier7f19c022007-02-17 14:46:31 +00009860
a.rottmann9bc8b932004-02-29 15:18:31 +00009861
9862
drh8b727472009-01-19 18:18:40 +00009863 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +00009864
vapier7f19c022007-02-17 14:46:31 +00009865
9866
vapier7f19c022007-02-17 14:46:31 +00009867
mlcreech636a9952008-05-05 22:52:56 +00009868# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +00009869
9870
drh71eb93e2001-09-28 01:34:43 +00009871# Find a good install program. We prefer a C program (faster),
9872# so one script is as good as another. But avoid the broken or
9873# incompatible versions:
9874# SysV /etc/install, /usr/sbin/install
9875# SunOS /usr/etc/install
9876# IRIX /sbin/install
9877# AIX /bin/install
9878# AmigaOS /C/install, which installs bootblocks on floppy discs
9879# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9880# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9881# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +00009882# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +00009883# ./install, which can be erroneously created by make from ./install.sh.
drh8b727472009-01-19 18:18:40 +00009884# Reject install programs that cannot install multiple files.
drhf922ca42015-05-14 15:39:18 +00009885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
drh8b727472009-01-19 18:18:40 +00009886$as_echo_n "checking for a BSD-compatible install... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009887if test -z "$INSTALL"; then
drhf922ca42015-05-14 15:39:18 +00009888if ${ac_cv_path_install+:} false; then :
drh8b727472009-01-19 18:18:40 +00009889 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009890else
a.rottmann84e63352003-03-24 09:42:16 +00009891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9892for as_dir in $PATH
9893do
9894 IFS=$as_save_IFS
9895 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00009896 # Account for people who put trailing slashes in PATH elements.
9897case $as_dir/ in #((
9898 ./ | .// | /[cC]/* | \
a.rottmann84e63352003-03-24 09:42:16 +00009899 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
drhf922ca42015-05-14 15:39:18 +00009900 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
a.rottmann84e63352003-03-24 09:42:16 +00009901 /usr/ucb/* ) ;;
9902 *)
9903 # OSF1 and SCO ODT 3.0 have their own names for install.
9904 # Don't use installbsd from OSF since it installs stuff as root
9905 # by default.
9906 for ac_prog in ginstall scoinst install; do
9907 for ac_exec_ext in '' $ac_executable_extensions; do
drhf922ca42015-05-14 15:39:18 +00009908 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
a.rottmann964dbb12004-02-26 19:47:42 +00009909 if test $ac_prog = install &&
9910 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9911 # AIX install. It has an incompatible calling convention.
9912 :
9913 elif test $ac_prog = install &&
9914 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9915 # program-specific install script used by HP pwplus--don't use.
9916 :
9917 else
drh8b727472009-01-19 18:18:40 +00009918 rm -rf conftest.one conftest.two conftest.dir
9919 echo one > conftest.one
9920 echo two > conftest.two
9921 mkdir conftest.dir
9922 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9923 test -s conftest.one && test -s conftest.two &&
9924 test -s conftest.dir/conftest.one &&
9925 test -s conftest.dir/conftest.two
9926 then
9927 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9928 break 3
9929 fi
a.rottmann964dbb12004-02-26 19:47:42 +00009930 fi
9931 fi
drh71eb93e2001-09-28 01:34:43 +00009932 done
a.rottmann84e63352003-03-24 09:42:16 +00009933 done
9934 ;;
9935esac
a.rottmann84e63352003-03-24 09:42:16 +00009936
drhf922ca42015-05-14 15:39:18 +00009937 done
drh8b727472009-01-19 18:18:40 +00009938IFS=$as_save_IFS
9939
9940rm -rf conftest.one conftest.two conftest.dir
drh71eb93e2001-09-28 01:34:43 +00009941
9942fi
9943 if test "${ac_cv_path_install+set}" = set; then
9944 INSTALL=$ac_cv_path_install
9945 else
drh8b727472009-01-19 18:18:40 +00009946 # As a last resort, use the slow shell script. Don't cache a
9947 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +00009948 # break other packages using the cache if that directory is
drh8b727472009-01-19 18:18:40 +00009949 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +00009950 INSTALL=$ac_install_sh
9951 fi
9952fi
drhf922ca42015-05-14 15:39:18 +00009953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
drh8b727472009-01-19 18:18:40 +00009954$as_echo "$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009955
9956# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9957# It thinks the first close brace ends the variable substitution.
9958test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9959
9960test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9961
9962test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9963
a.rottmann84e63352003-03-24 09:42:16 +00009964
drh75897232000-05-29 14:26:00 +00009965#########
mlcreech636a9952008-05-05 22:52:56 +00009966# Enable large file support (if special flags are necessary)
9967#
drh8b727472009-01-19 18:18:40 +00009968# Check whether --enable-largefile was given.
drhf922ca42015-05-14 15:39:18 +00009969if test "${enable_largefile+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00009970 enableval=$enable_largefile;
9971fi
mlcreech636a9952008-05-05 22:52:56 +00009972
9973if test "$enable_largefile" != no; then
9974
drhf922ca42015-05-14 15:39:18 +00009975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
drh8b727472009-01-19 18:18:40 +00009976$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009977if ${ac_cv_sys_largefile_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00009978 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +00009979else
mlcreech636a9952008-05-05 22:52:56 +00009980 ac_cv_sys_largefile_CC=no
9981 if test "$GCC" != yes; then
9982 ac_save_CC=$CC
9983 while :; do
drh8b727472009-01-19 18:18:40 +00009984 # IRIX 6.2 and later do not support large files by default,
9985 # so use the C compiler's -n32 option if that helps.
drhf922ca42015-05-14 15:39:18 +00009986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009987/* end confdefs.h. */
9988#include <sys/types.h>
9989 /* Check that off_t can represent 2**63 - 1 correctly.
9990 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9991 since some C++ compilers masquerading as C compilers
9992 incorrectly reject 9223372036854775807. */
9993#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9994 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9995 && LARGE_OFF_T % 2147483647 == 1)
9996 ? 1 : -1];
9997int
9998main ()
9999{
10000
10001 ;
10002 return 0;
10003}
10004_ACEOF
drhf922ca42015-05-14 15:39:18 +000010005 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010006 break
mlcreech636a9952008-05-05 22:52:56 +000010007fi
drh8b727472009-01-19 18:18:40 +000010008rm -f core conftest.err conftest.$ac_objext
10009 CC="$CC -n32"
drhf922ca42015-05-14 15:39:18 +000010010 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010011 ac_cv_sys_largefile_CC=' -n32'; break
mlcreech636a9952008-05-05 22:52:56 +000010012fi
drh8b727472009-01-19 18:18:40 +000010013rm -f core conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +000010014 break
10015 done
10016 CC=$ac_save_CC
10017 rm -f conftest.$ac_ext
10018 fi
10019fi
drhf922ca42015-05-14 15:39:18 +000010020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
drh8b727472009-01-19 18:18:40 +000010021$as_echo "$ac_cv_sys_largefile_CC" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010022 if test "$ac_cv_sys_largefile_CC" != no; then
10023 CC=$CC$ac_cv_sys_largefile_CC
10024 fi
10025
drhf922ca42015-05-14 15:39:18 +000010026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010027$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010028if ${ac_cv_sys_file_offset_bits+:} false; then :
drh8b727472009-01-19 18:18:40 +000010029 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010030else
10031 while :; do
drhf922ca42015-05-14 15:39:18 +000010032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010033/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +000010034#include <sys/types.h>
10035 /* Check that off_t can represent 2**63 - 1 correctly.
10036 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10037 since some C++ compilers masquerading as C compilers
10038 incorrectly reject 9223372036854775807. */
10039#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10040 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10041 && LARGE_OFF_T % 2147483647 == 1)
10042 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +000010043int
10044main ()
10045{
mlcreech636a9952008-05-05 22:52:56 +000010046
mlcreechb87057f2008-03-06 07:19:20 +000010047 ;
10048 return 0;
10049}
10050_ACEOF
drhf922ca42015-05-14 15:39:18 +000010051if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010052 ac_cv_sys_file_offset_bits=no; break
mlcreech636a9952008-05-05 22:52:56 +000010053fi
drh8b727472009-01-19 18:18:40 +000010054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010056/* end confdefs.h. */
10057#define _FILE_OFFSET_BITS 64
10058#include <sys/types.h>
10059 /* Check that off_t can represent 2**63 - 1 correctly.
10060 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10061 since some C++ compilers masquerading as C compilers
10062 incorrectly reject 9223372036854775807. */
10063#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10064 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10065 && LARGE_OFF_T % 2147483647 == 1)
10066 ? 1 : -1];
10067int
10068main ()
10069{
10070
10071 ;
10072 return 0;
10073}
10074_ACEOF
drhf922ca42015-05-14 15:39:18 +000010075if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010076 ac_cv_sys_file_offset_bits=64; break
mlcreech636a9952008-05-05 22:52:56 +000010077fi
drh8b727472009-01-19 18:18:40 +000010078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10079 ac_cv_sys_file_offset_bits=unknown
mlcreech636a9952008-05-05 22:52:56 +000010080 break
10081done
10082fi
drhf922ca42015-05-14 15:39:18 +000010083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
drh8b727472009-01-19 18:18:40 +000010084$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10085case $ac_cv_sys_file_offset_bits in #(
10086 no | unknown) ;;
10087 *)
mlcreech636a9952008-05-05 22:52:56 +000010088cat >>confdefs.h <<_ACEOF
10089#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10090_ACEOF
drh8b727472009-01-19 18:18:40 +000010091;;
10092esac
10093rm -rf conftest*
10094 if test $ac_cv_sys_file_offset_bits = unknown; then
drhf922ca42015-05-14 15:39:18 +000010095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010096$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010097if ${ac_cv_sys_large_files+:} false; then :
drh8b727472009-01-19 18:18:40 +000010098 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010099else
10100 while :; do
drhf922ca42015-05-14 15:39:18 +000010101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010102/* end confdefs.h. */
10103#include <sys/types.h>
10104 /* Check that off_t can represent 2**63 - 1 correctly.
10105 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10106 since some C++ compilers masquerading as C compilers
10107 incorrectly reject 9223372036854775807. */
10108#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10109 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10110 && LARGE_OFF_T % 2147483647 == 1)
10111 ? 1 : -1];
10112int
10113main ()
10114{
10115
10116 ;
10117 return 0;
10118}
10119_ACEOF
drhf922ca42015-05-14 15:39:18 +000010120if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010121 ac_cv_sys_large_files=no; break
mlcreech636a9952008-05-05 22:52:56 +000010122fi
drh8b727472009-01-19 18:18:40 +000010123rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010125/* end confdefs.h. */
10126#define _LARGE_FILES 1
10127#include <sys/types.h>
10128 /* Check that off_t can represent 2**63 - 1 correctly.
10129 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10130 since some C++ compilers masquerading as C compilers
10131 incorrectly reject 9223372036854775807. */
10132#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10133 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10134 && LARGE_OFF_T % 2147483647 == 1)
10135 ? 1 : -1];
10136int
10137main ()
10138{
10139
10140 ;
10141 return 0;
10142}
10143_ACEOF
drhf922ca42015-05-14 15:39:18 +000010144if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010145 ac_cv_sys_large_files=1; break
mlcreech636a9952008-05-05 22:52:56 +000010146fi
drh8b727472009-01-19 18:18:40 +000010147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10148 ac_cv_sys_large_files=unknown
mlcreech636a9952008-05-05 22:52:56 +000010149 break
10150done
10151fi
drhf922ca42015-05-14 15:39:18 +000010152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
drh8b727472009-01-19 18:18:40 +000010153$as_echo "$ac_cv_sys_large_files" >&6; }
10154case $ac_cv_sys_large_files in #(
10155 no | unknown) ;;
10156 *)
mlcreech636a9952008-05-05 22:52:56 +000010157cat >>confdefs.h <<_ACEOF
10158#define _LARGE_FILES $ac_cv_sys_large_files
10159_ACEOF
drh8b727472009-01-19 18:18:40 +000010160;;
10161esac
10162rm -rf conftest*
10163 fi
drhf922ca42015-05-14 15:39:18 +000010164
10165
mlcreech636a9952008-05-05 22:52:56 +000010166fi
10167
10168
10169#########
10170# Check for needed/wanted data types
drhf922ca42015-05-14 15:39:18 +000010171ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10172if test "x$ac_cv_type_int8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010173
10174cat >>confdefs.h <<_ACEOF
10175#define HAVE_INT8_T 1
10176_ACEOF
10177
10178
10179fi
drhf922ca42015-05-14 15:39:18 +000010180ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10181if test "x$ac_cv_type_int16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010182
10183cat >>confdefs.h <<_ACEOF
10184#define HAVE_INT16_T 1
10185_ACEOF
10186
10187
10188fi
drhf922ca42015-05-14 15:39:18 +000010189ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10190if test "x$ac_cv_type_int32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010191
10192cat >>confdefs.h <<_ACEOF
10193#define HAVE_INT32_T 1
10194_ACEOF
10195
10196
10197fi
drhf922ca42015-05-14 15:39:18 +000010198ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10199if test "x$ac_cv_type_int64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010200
10201cat >>confdefs.h <<_ACEOF
10202#define HAVE_INT64_T 1
10203_ACEOF
10204
10205
10206fi
drhf922ca42015-05-14 15:39:18 +000010207ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10208if test "x$ac_cv_type_intptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010209
10210cat >>confdefs.h <<_ACEOF
10211#define HAVE_INTPTR_T 1
10212_ACEOF
10213
10214
10215fi
drhf922ca42015-05-14 15:39:18 +000010216ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10217if test "x$ac_cv_type_uint8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010218
10219cat >>confdefs.h <<_ACEOF
10220#define HAVE_UINT8_T 1
10221_ACEOF
10222
10223
10224fi
drhf922ca42015-05-14 15:39:18 +000010225ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10226if test "x$ac_cv_type_uint16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010227
10228cat >>confdefs.h <<_ACEOF
10229#define HAVE_UINT16_T 1
10230_ACEOF
10231
10232
10233fi
drhf922ca42015-05-14 15:39:18 +000010234ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10235if test "x$ac_cv_type_uint32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010236
10237cat >>confdefs.h <<_ACEOF
10238#define HAVE_UINT32_T 1
10239_ACEOF
10240
10241
10242fi
drhf922ca42015-05-14 15:39:18 +000010243ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10244if test "x$ac_cv_type_uint64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010245
10246cat >>confdefs.h <<_ACEOF
10247#define HAVE_UINT64_T 1
10248_ACEOF
10249
10250
10251fi
drhf922ca42015-05-14 15:39:18 +000010252ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10253if test "x$ac_cv_type_uintptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010254
10255cat >>confdefs.h <<_ACEOF
10256#define HAVE_UINTPTR_T 1
10257_ACEOF
10258
10259
10260fi
mlcreechb87057f2008-03-06 07:19:20 +000010261
10262
10263#########
10264# Check for needed/wanted headers
drh86c5a932012-02-08 12:13:28 +000010265for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
drhf922ca42015-05-14 15:39:18 +000010266do :
10267 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10268ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10269if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
mlcreechb87057f2008-03-06 07:19:20 +000010270 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010271#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000010272_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000010273
mlcreechb87057f2008-03-06 07:19:20 +000010274fi
10275
10276done
10277
10278
10279#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000010280# Figure out whether or not we have these functions
10281#
drhe32a2562016-03-04 02:38:00 +000010282for 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 +000010283do :
10284 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10285ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10286if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
mlcreech5b0a9eb2008-03-09 01:38:09 +000010287 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010288#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000010289_ACEOF
10290
10291fi
10292done
10293
10294
mlcreechab1c47b2008-03-09 02:51:10 +000010295#########
mlcreechf3868112008-03-11 18:03:30 +000010296# By default, we use the amalgamation (this may be changed below...)
10297#
10298USE_AMALGAMATION=1
10299
10300#########
mlcreechab1c47b2008-03-09 02:51:10 +000010301# See whether we can run specific tclsh versions known to work well;
10302# if not, then we fall back to plain tclsh.
10303# TODO: try other versions before falling back?
10304#
mistachkinfe27b082013-08-28 18:06:26 +000010305for ac_prog in tclsh8.6 tclsh8.5 tclsh
mlcreechab1c47b2008-03-09 02:51:10 +000010306do
10307 # Extract the first word of "$ac_prog", so it can be a program name with args.
10308set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010310$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010311if ${ac_cv_prog_TCLSH_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +000010312 $as_echo_n "(cached) " >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010313else
10314 if test -n "$TCLSH_CMD"; then
10315 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10316else
10317as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10318for as_dir in $PATH
10319do
10320 IFS=$as_save_IFS
10321 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010322 for ac_exec_ext in '' $ac_executable_extensions; do
10323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreechab1c47b2008-03-09 02:51:10 +000010324 ac_cv_prog_TCLSH_CMD="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000010326 break 2
10327 fi
10328done
drhf922ca42015-05-14 15:39:18 +000010329 done
drh8b727472009-01-19 18:18:40 +000010330IFS=$as_save_IFS
mlcreechab1c47b2008-03-09 02:51:10 +000010331
10332fi
10333fi
10334TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10335if test -n "$TCLSH_CMD"; then
drhf922ca42015-05-14 15:39:18 +000010336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
drh8b727472009-01-19 18:18:40 +000010337$as_echo "$TCLSH_CMD" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010338else
drhf922ca42015-05-14 15:39:18 +000010339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010340$as_echo "no" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010341fi
10342
drh8b727472009-01-19 18:18:40 +000010343
mlcreechab1c47b2008-03-09 02:51:10 +000010344 test -n "$TCLSH_CMD" && break
10345done
mlcreechf3868112008-03-11 18:03:30 +000010346test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000010347
mlcreechf3868112008-03-11 18:03:30 +000010348if test "$TCLSH_CMD" = "none"; then
10349 # If we can't find a local tclsh, then building the amalgamation will fail.
10350 # We act as though --disable-amalgamation has been used.
10351 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10352 USE_AMALGAMATION=0
10353 TCLSH_CMD="tclsh"
10354fi
mlcreechab1c47b2008-03-09 02:51:10 +000010355
10356
mlcreech5b0a9eb2008-03-09 01:38:09 +000010357
vapier6acb2cf2009-01-28 04:46:28 +000010358if test "x${TCLLIBDIR+set}" != "xset" ; then
10359 TCLLIBDIR='$(libdir)'
10360 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10361 TCLLIBDIR=$i
10362 break
10363 done
10364 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10365fi
10366
10367
mlcreech5b0a9eb2008-03-09 01:38:09 +000010368#########
drh75897232000-05-29 14:26:00 +000010369# Set up an appropriate program prefix
10370#
10371if test "$program_prefix" = "NONE"; then
10372 program_prefix=""
10373fi
10374
a.rottmann84e63352003-03-24 09:42:16 +000010375
drh4b2266a2004-11-27 15:52:16 +000010376VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
drhf922ca42015-05-14 15:39:18 +000010377{ $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010378$as_echo "$as_me: Version set to $VERSION" >&6;}
drh4b2266a2004-11-27 15:52:16 +000010379
10380RELEASE=`cat $srcdir/VERSION`
drhf922ca42015-05-14 15:39:18 +000010381{ $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010382$as_echo "$as_me: Release set to $RELEASE" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010383
vapier6acb2cf2009-01-28 04:46:28 +000010384VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000010385 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000010386 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
drhf922ca42015-05-14 15:39:18 +000010387{ $as_echo "$as_me:${as_lineno-$LINENO}: Version number set to $VERSION_NUMBER" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010388$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010389
drh26d0e2a2005-07-06 13:51:27 +000010390
drh75897232000-05-29 14:26:00 +000010391#########
drh75897232000-05-29 14:26:00 +000010392# Locate a compiler for the build machine. This compiler should
10393# generate command-line programs that run on the build machine.
10394#
vapier7f19c022007-02-17 14:46:31 +000010395if test x"$cross_compiling" = xno; then
10396 BUILD_CC=$CC
10397 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000010398else
vapier7f19c022007-02-17 14:46:31 +000010399 if test "${BUILD_CC+set}" != set; then
10400 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000010401do
10402 # Extract the first word of "$ac_prog", so it can be a program name with args.
10403set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010405$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010406if ${ac_cv_prog_BUILD_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +000010407 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010408else
vapier7f19c022007-02-17 14:46:31 +000010409 if test -n "$BUILD_CC"; then
10410 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000010411else
a.rottmann84e63352003-03-24 09:42:16 +000010412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10413for as_dir in $PATH
10414do
10415 IFS=$as_save_IFS
10416 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010417 for ac_exec_ext in '' $ac_executable_extensions; do
10418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier7f19c022007-02-17 14:46:31 +000010419 ac_cv_prog_BUILD_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000010421 break 2
10422 fi
10423done
drhf922ca42015-05-14 15:39:18 +000010424 done
drh8b727472009-01-19 18:18:40 +000010425IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000010426
drh71eb93e2001-09-28 01:34:43 +000010427fi
10428fi
vapier7f19c022007-02-17 14:46:31 +000010429BUILD_CC=$ac_cv_prog_BUILD_CC
10430if test -n "$BUILD_CC"; then
drhf922ca42015-05-14 15:39:18 +000010431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
drh8b727472009-01-19 18:18:40 +000010432$as_echo "$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010433else
drhf922ca42015-05-14 15:39:18 +000010434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010435$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010436fi
drh75897232000-05-29 14:26:00 +000010437
drh8b727472009-01-19 18:18:40 +000010438
vapier7f19c022007-02-17 14:46:31 +000010439 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000010440done
drh75897232000-05-29 14:26:00 +000010441
vapier7f19c022007-02-17 14:46:31 +000010442 fi
10443 if test "${BUILD_CFLAGS+set}" != set; then
10444 BUILD_CFLAGS="-g"
10445 fi
drh71eb93e2001-09-28 01:34:43 +000010446fi
10447
a.rottmann84e63352003-03-24 09:42:16 +000010448
drh297ecf12001-04-05 15:57:13 +000010449##########
dougcurrie0f290bf2004-06-21 18:57:29 +000010450# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000010451#
drh8b727472009-01-19 18:18:40 +000010452# Check whether --enable-threadsafe was given.
drhf922ca42015-05-14 15:39:18 +000010453if test "${enable_threadsafe+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010454 enableval=$enable_threadsafe;
drh297ecf12001-04-05 15:57:13 +000010455else
drh5a3032b2007-09-03 16:12:09 +000010456 enable_threadsafe=yes
drh8b727472009-01-19 18:18:40 +000010457fi
10458
drhf922ca42015-05-14 15:39:18 +000010459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
drh8b727472009-01-19 18:18:40 +000010460$as_echo_n "checking whether to support threadsafe operation... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010461if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000010462 SQLITE_THREADSAFE=0
drhf922ca42015-05-14 15:39:18 +000010463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010464$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010465else
drh5a3032b2007-09-03 16:12:09 +000010466 SQLITE_THREADSAFE=1
drhf922ca42015-05-14 15:39:18 +000010467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010468$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010469fi
10470
a.rottmann964dbb12004-02-26 19:47:42 +000010471
drh5a3032b2007-09-03 16:12:09 +000010472if test "$SQLITE_THREADSAFE" = "1"; then
drhba60fbb2016-01-28 02:47:32 +000010473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10474$as_echo_n "checking for library containing pthread_create... " >&6; }
10475if ${ac_cv_search_pthread_create+:} false; then :
10476 $as_echo_n "(cached) " >&6
10477else
10478 ac_func_search_save_LIBS=$LIBS
10479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10480/* end confdefs.h. */
10481
10482/* Override any GCC internal prototype to avoid an error.
10483 Use char because int might match the return type of a GCC
10484 builtin and then its argument prototype would still apply. */
10485#ifdef __cplusplus
10486extern "C"
10487#endif
10488char pthread_create ();
10489int
10490main ()
10491{
10492return pthread_create ();
10493 ;
10494 return 0;
10495}
10496_ACEOF
10497for ac_lib in '' pthread; do
10498 if test -z "$ac_lib"; then
10499 ac_res="none required"
10500 else
10501 ac_res=-l$ac_lib
10502 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10503 fi
10504 if ac_fn_c_try_link "$LINENO"; then :
10505 ac_cv_search_pthread_create=$ac_res
10506fi
10507rm -f core conftest.err conftest.$ac_objext \
10508 conftest$ac_exeext
10509 if ${ac_cv_search_pthread_create+:} false; then :
10510 break
10511fi
10512done
10513if ${ac_cv_search_pthread_create+:} false; then :
10514
10515else
10516 ac_cv_search_pthread_create=no
10517fi
10518rm conftest.$ac_ext
10519LIBS=$ac_func_search_save_LIBS
10520fi
10521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10522$as_echo "$ac_cv_search_pthread_create" >&6; }
10523ac_res=$ac_cv_search_pthread_create
10524if test "$ac_res" != no; then :
10525 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10526
10527fi
10528
drh13c808a2016-01-13 21:23:48 +000010529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
10530$as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
10531if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drh8b727472009-01-19 18:18:40 +000010532 $as_echo_n "(cached) " >&6
dougcurrie65623c72004-09-20 14:57:23 +000010533else
mlcreechc658b0f2008-03-09 02:20:11 +000010534 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000010535cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dougcurrie65623c72004-09-20 14:57:23 +000010536/* end confdefs.h. */
10537
drh8b727472009-01-19 18:18:40 +000010538/* Override any GCC internal prototype to avoid an error.
10539 Use char because int might match the return type of a GCC
10540 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000010541#ifdef __cplusplus
10542extern "C"
10543#endif
drh13c808a2016-01-13 21:23:48 +000010544char pthread_mutexattr_init ();
dougcurrie65623c72004-09-20 14:57:23 +000010545int
10546main ()
10547{
drh13c808a2016-01-13 21:23:48 +000010548return pthread_mutexattr_init ();
dougcurrie65623c72004-09-20 14:57:23 +000010549 ;
10550 return 0;
10551}
10552_ACEOF
drh8b727472009-01-19 18:18:40 +000010553for ac_lib in '' pthread; do
10554 if test -z "$ac_lib"; then
10555 ac_res="none required"
10556 else
10557 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000010558 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000010559 fi
drhf922ca42015-05-14 15:39:18 +000010560 if ac_fn_c_try_link "$LINENO"; then :
drh13c808a2016-01-13 21:23:48 +000010561 ac_cv_search_pthread_mutexattr_init=$ac_res
mlcreechc658b0f2008-03-09 02:20:11 +000010562fi
drhf922ca42015-05-14 15:39:18 +000010563rm -f core conftest.err conftest.$ac_objext \
10564 conftest$ac_exeext
drh13c808a2016-01-13 21:23:48 +000010565 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drh8b727472009-01-19 18:18:40 +000010566 break
drh866108f2008-05-13 00:57:21 +000010567fi
drh8b727472009-01-19 18:18:40 +000010568done
drh13c808a2016-01-13 21:23:48 +000010569if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drhf922ca42015-05-14 15:39:18 +000010570
drh8b727472009-01-19 18:18:40 +000010571else
drh13c808a2016-01-13 21:23:48 +000010572 ac_cv_search_pthread_mutexattr_init=no
drh8b727472009-01-19 18:18:40 +000010573fi
10574rm conftest.$ac_ext
mlcreechc658b0f2008-03-09 02:20:11 +000010575LIBS=$ac_func_search_save_LIBS
10576fi
drh13c808a2016-01-13 21:23:48 +000010577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
10578$as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
10579ac_res=$ac_cv_search_pthread_mutexattr_init
drhf922ca42015-05-14 15:39:18 +000010580if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000010581 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000010582
dougcurrie65623c72004-09-20 14:57:23 +000010583fi
10584
mlcreechc658b0f2008-03-09 02:20:11 +000010585fi
dougcurrie65623c72004-09-20 14:57:23 +000010586
xdong28f79f72003-09-23 00:35:21 +000010587##########
10588# Do we want to support release
10589#
drh8b727472009-01-19 18:18:40 +000010590# Check whether --enable-releasemode was given.
drhf922ca42015-05-14 15:39:18 +000010591if test "${enable_releasemode+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010592 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000010593else
10594 enable_releasemode=no
drh8b727472009-01-19 18:18:40 +000010595fi
10596
drhf922ca42015-05-14 15:39:18 +000010597{ $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 +000010598$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
xdong28f79f72003-09-23 00:35:21 +000010599if test "$enable_releasemode" = "no"; then
10600 ALLOWRELEASE=""
drhf922ca42015-05-14 15:39:18 +000010601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010602$as_echo "no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010603else
drh0b47d342007-11-27 14:50:06 +000010604 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
drhf922ca42015-05-14 15:39:18 +000010605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010606$as_echo "yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010607fi
paulb0208cc2003-04-13 18:26:49 +000010608
a.rottmann964dbb12004-02-26 19:47:42 +000010609
paulb0208cc2003-04-13 18:26:49 +000010610##########
10611# Do we want temporary databases in memory
10612#
drh8b727472009-01-19 18:18:40 +000010613# Check whether --enable-tempstore was given.
drhf922ca42015-05-14 15:39:18 +000010614if test "${enable_tempstore+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010615 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000010616else
drh54414bb2005-10-10 00:05:50 +000010617 enable_tempstore=no
drh8b727472009-01-19 18:18:40 +000010618fi
10619
drhf922ca42015-05-14 15:39:18 +000010620{ $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 +000010621$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010622case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000010623 never )
paul2dc96f92003-04-20 11:46:34 +000010624 TEMP_STORE=0
drhf922ca42015-05-14 15:39:18 +000010625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
drh8b727472009-01-19 18:18:40 +000010626$as_echo "never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010627 ;;
10628 no )
paul2dc96f92003-04-20 11:46:34 +000010629 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010631$as_echo "no" >&6; }
10632 ;;
10633 yes )
10634 TEMP_STORE=2
drhf922ca42015-05-14 15:39:18 +000010635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010636$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010637 ;;
10638 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000010639 TEMP_STORE=3
drhf922ca42015-05-14 15:39:18 +000010640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
drh8b727472009-01-19 18:18:40 +000010641$as_echo "always" >&6; }
drh54414bb2005-10-10 00:05:50 +000010642 ;;
paulb0208cc2003-04-13 18:26:49 +000010643 * )
drh54414bb2005-10-10 00:05:50 +000010644 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010646$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010647 ;;
10648esac
10649
10650
10651
drh75897232000-05-29 14:26:00 +000010652###########
10653# Lots of things are different if we are compiling for Windows using
10654# the CYGWIN environment. So check for that special case and handle
10655# things accordingly.
10656#
drhf922ca42015-05-14 15:39:18 +000010657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
drh8b727472009-01-19 18:18:40 +000010658$as_echo_n "checking if executables have the .exe suffix... " >&6; }
drh75897232000-05-29 14:26:00 +000010659if test "$config_BUILD_EXEEXT" = ".exe"; then
10660 CYGWIN=yes
drhf922ca42015-05-14 15:39:18 +000010661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010662$as_echo "yes" >&6; }
drh75897232000-05-29 14:26:00 +000010663else
drhf922ca42015-05-14 15:39:18 +000010664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
drh8b727472009-01-19 18:18:40 +000010665$as_echo "unknown" >&6; }
drh75897232000-05-29 14:26:00 +000010666fi
10667if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000010668
10669case $host_os in
drh71eb93e2001-09-28 01:34:43 +000010670 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000010671 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000010672esac
drh75897232000-05-29 14:26:00 +000010673
drh75897232000-05-29 14:26:00 +000010674fi
10675if test "$CYGWIN" = "yes"; then
10676 BUILD_EXEEXT=.exe
10677else
dougcurrie6194a5f2003-12-19 20:09:51 +000010678 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000010679fi
vapier7f19c022007-02-17 14:46:31 +000010680if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000010681 TARGET_EXEEXT=$BUILD_EXEEXT
10682else
10683 TARGET_EXEEXT=$config_TARGET_EXEEXT
10684fi
10685if test "$TARGET_EXEEXT" = ".exe"; then
mistachkinfe27b082013-08-28 18:06:26 +000010686 SQLITE_OS_UNIX=0
10687 SQLITE_OS_WIN=1
10688 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh75897232000-05-29 14:26:00 +000010689else
danielk197729bafea2008-06-26 10:41:19 +000010690 SQLITE_OS_UNIX=1
10691 SQLITE_OS_WIN=0
danielk197729bafea2008-06-26 10:41:19 +000010692 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000010693fi
drh75897232000-05-29 14:26:00 +000010694
a.rottmann84e63352003-03-24 09:42:16 +000010695
10696
10697
10698
10699
drh75897232000-05-29 14:26:00 +000010700##########
drh7b5717e2004-11-25 13:50:01 +000010701# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000010702#
drh7b5717e2004-11-25 13:50:01 +000010703# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10704# macros in the in the tcl.m4 file of the standard TCL distribution.
10705# Those macros could not be used directly since we have to make some
10706# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000010707#
drh8b727472009-01-19 18:18:40 +000010708# Check whether --enable-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010709if test "${enable_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010710 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000010711else
drh7b5717e2004-11-25 13:50:01 +000010712 use_tcl=yes
drh8b727472009-01-19 18:18:40 +000010713fi
10714
drh7b5717e2004-11-25 13:50:01 +000010715if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000010716
drh8b727472009-01-19 18:18:40 +000010717# Check whether --with-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010718if test "${with_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010719 withval=$with_tcl; with_tclconfig=${withval}
10720fi
10721
drhf922ca42015-05-14 15:39:18 +000010722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
drh8b727472009-01-19 18:18:40 +000010723$as_echo_n "checking for Tcl configuration... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010724 if ${ac_cv_c_tclconfig+:} false; then :
drh8b727472009-01-19 18:18:40 +000010725 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000010726else
a.rottmann84e63352003-03-24 09:42:16 +000010727
drh7b5717e2004-11-25 13:50:01 +000010728 # First check to see if --with-tcl was specified.
10729 if test x"${with_tclconfig}" != x ; then
10730 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10731 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10732 else
drhf922ca42015-05-14 15:39:18 +000010733 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
drh7b5717e2004-11-25 13:50:01 +000010734 fi
10735 fi
vapier6acb2cf2009-01-28 04:46:28 +000010736
10737 # Start autosearch by asking tclsh
drhe74f4652012-08-15 16:06:54 +000010738 if test x"${ac_cv_c_tclconfig}" = x ; then
10739 if test x"$cross_compiling" = xno; then
10740 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10741 do
10742 if test -f "$i/tclConfig.sh" ; then
10743 ac_cv_c_tclconfig="$i"
10744 break
10745 fi
10746 done
10747 fi
vapier6acb2cf2009-01-28 04:46:28 +000010748 fi
10749
drhf960a642015-05-30 22:57:49 +000010750 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
10751 # So try again after applying corrections.
10752 if test x"${ac_cv_c_tclconfig}" = x ; then
10753 if test x"$cross_compiling" = xno; then
10754 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
10755 do
10756 if test -f "$i/tclConfig.sh" ; then
10757 ac_cv_c_tclconfig="$i"
10758 break
10759 fi
10760 done
10761 fi
10762 fi
10763
drh68314742016-05-23 00:10:58 +000010764 # Recent versions of Xcode on Macs hid the tclConfig.sh file
10765 # in a strange place.
10766 if test x"${ac_cv_c_tclconfig}" = x ; then
10767 if test x"$cross_compiling" = xno; then
10768 for i in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.sdk/usr/lib
10769 do
10770 if test -f "$i/tclConfig.sh" ; then
10771 ac_cv_c_tclconfig="$i"
10772 break
10773 fi
10774 done
10775 fi
10776 fi
10777
drh7b5717e2004-11-25 13:50:01 +000010778 # then check for a private Tcl installation
10779 if test x"${ac_cv_c_tclconfig}" = x ; then
10780 for i in \
10781 ../tcl \
10782 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10783 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10784 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
10785 ../../tcl \
10786 `ls -dr ../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10787 `ls -dr ../../tcl[8-9].[0-9] 2>/dev/null` \
10788 `ls -dr ../../tcl[8-9].[0-9]* 2>/dev/null` \
10789 ../../../tcl \
10790 `ls -dr ../../../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10791 `ls -dr ../../../tcl[8-9].[0-9] 2>/dev/null` \
10792 `ls -dr ../../../tcl[8-9].[0-9]* 2>/dev/null`
10793 do
10794 if test -f "$i/unix/tclConfig.sh" ; then
10795 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10796 break
10797 fi
10798 done
10799 fi
10800
10801 # check in a few common install locations
10802 if test x"${ac_cv_c_tclconfig}" = x ; then
10803 for i in \
10804 `ls -d ${libdir} 2>/dev/null` \
10805 `ls -d /usr/local/lib 2>/dev/null` \
10806 `ls -d /usr/contrib/lib 2>/dev/null` \
10807 `ls -d /usr/lib 2>/dev/null`
10808 do
10809 if test -f "$i/tclConfig.sh" ; then
10810 ac_cv_c_tclconfig=`(cd $i; pwd)`
10811 break
10812 fi
10813 done
10814 fi
10815
10816 # check in a few other private locations
10817 if test x"${ac_cv_c_tclconfig}" = x ; then
10818 for i in \
10819 ${srcdir}/../tcl \
10820 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10821 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10822 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10823 do
10824 if test -f "$i/unix/tclConfig.sh" ; then
10825 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10826 break
10827 fi
10828 done
10829 fi
10830
drh75897232000-05-29 14:26:00 +000010831fi
10832
drh7b5717e2004-11-25 13:50:01 +000010833
10834 if test x"${ac_cv_c_tclconfig}" = x ; then
10835 use_tcl=no
drhf922ca42015-05-14 15:39:18 +000010836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
drh8b727472009-01-19 18:18:40 +000010837$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
drhf922ca42015-05-14 15:39:18 +000010838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
drh8b727472009-01-19 18:18:40 +000010839$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
drhf922ca42015-05-14 15:39:18 +000010840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
drh8b727472009-01-19 18:18:40 +000010841$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000010842 else
10843 TCL_BIN_DIR=${ac_cv_c_tclconfig}
drhf922ca42015-05-14 15:39:18 +000010844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010845$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010846
drhf922ca42015-05-14 15:39:18 +000010847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010848$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000010849 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
drhf922ca42015-05-14 15:39:18 +000010850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
drh8b727472009-01-19 18:18:40 +000010851$as_echo "loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010852 . $TCL_BIN_DIR/tclConfig.sh
10853 else
drhf922ca42015-05-14 15:39:18 +000010854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
drh8b727472009-01-19 18:18:40 +000010855$as_echo "file not found" >&6; }
drh75897232000-05-29 14:26:00 +000010856 fi
drh7b5717e2004-11-25 13:50:01 +000010857
10858 #
10859 # If the TCL_BIN_DIR is the build directory (not the install directory),
10860 # then set the common variable name to the value of the build variables.
10861 # For example, the variable TCL_LIB_SPEC will be set to the value
10862 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10863 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10864 # installed and uninstalled version of Tcl.
10865 #
10866
mlcreechab1c47b2008-03-09 02:51:10 +000010867 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000010868 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10869 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10870 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10871 fi
10872
10873 #
10874 # eval is required to do the TCL_DBGX substitution
10875 #
10876
10877 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10878 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10879 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10880
10881 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10882 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10883 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
drhd881ce82015-03-31 17:01:52 +000010897
drh7b5717e2004-11-25 13:50:01 +000010898 fi
drh75897232000-05-29 14:26:00 +000010899fi
drh7b5717e2004-11-25 13:50:01 +000010900if test "${use_tcl}" = "no" ; then
10901 HAVE_TCL=""
10902else
10903 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000010904fi
drh75897232000-05-29 14:26:00 +000010905
a.rottmann84e63352003-03-24 09:42:16 +000010906
drh75897232000-05-29 14:26:00 +000010907##########
10908# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000010909# that use "readline()" library.
10910#
vapier7f19c022007-02-17 14:46:31 +000010911TARGET_READLINE_LIBS=""
10912TARGET_READLINE_INC=""
10913TARGET_HAVE_READLINE=0
drhe44b8352015-10-30 14:25:57 +000010914TARGET_HAVE_EDITLINE=0
10915# Check whether --enable-editline was given.
10916if test "${enable_editline+set}" = set; then :
10917 enableval=$enable_editline; with_editline=$enableval
10918else
10919 with_editline=auto
10920fi
10921
drh8b727472009-01-19 18:18:40 +000010922# Check whether --enable-readline was given.
drhf922ca42015-05-14 15:39:18 +000010923if test "${enable_readline+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010924 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000010925else
vapier7f19c022007-02-17 14:46:31 +000010926 with_readline=auto
drh8b727472009-01-19 18:18:40 +000010927fi
10928
vapier7f19c022007-02-17 14:46:31 +000010929
drhe44b8352015-10-30 14:25:57 +000010930if test x"$with_editline" != xno; then
10931 sLIBS=$LIBS
10932 LIBS=""
10933 TARGET_HAVE_EDITLINE=1
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
10935$as_echo_n "checking for library containing readline... " >&6; }
10936if ${ac_cv_search_readline+:} false; then :
10937 $as_echo_n "(cached) " >&6
10938else
10939 ac_func_search_save_LIBS=$LIBS
10940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10941/* end confdefs.h. */
10942
10943/* Override any GCC internal prototype to avoid an error.
10944 Use char because int might match the return type of a GCC
10945 builtin and then its argument prototype would still apply. */
10946#ifdef __cplusplus
10947extern "C"
10948#endif
10949char readline ();
10950int
10951main ()
10952{
10953return readline ();
10954 ;
10955 return 0;
10956}
10957_ACEOF
10958for ac_lib in '' edit; do
10959 if test -z "$ac_lib"; then
10960 ac_res="none required"
10961 else
10962 ac_res=-l$ac_lib
10963 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10964 fi
10965 if ac_fn_c_try_link "$LINENO"; then :
10966 ac_cv_search_readline=$ac_res
10967fi
10968rm -f core conftest.err conftest.$ac_objext \
10969 conftest$ac_exeext
10970 if ${ac_cv_search_readline+:} false; then :
10971 break
10972fi
10973done
10974if ${ac_cv_search_readline+:} false; then :
10975
10976else
10977 ac_cv_search_readline=no
10978fi
10979rm conftest.$ac_ext
10980LIBS=$ac_func_search_save_LIBS
10981fi
10982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
10983$as_echo "$ac_cv_search_readline" >&6; }
10984ac_res=$ac_cv_search_readline
10985if test "$ac_res" != no; then :
10986 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10987 with_readline=no
10988else
10989 TARGET_HAVE_EDITLINE=0
10990fi
10991
10992 TARGET_READLINE_LIBS=$LIBS
10993 LIBS=$sLIBS
10994fi
vapier7f19c022007-02-17 14:46:31 +000010995if test x"$with_readline" != xno; then
10996 found="yes"
10997
10998
drh8b727472009-01-19 18:18:40 +000010999# Check whether --with-readline-lib was given.
drhf922ca42015-05-14 15:39:18 +000011000if test "${with_readline_lib+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011001 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000011002else
11003 with_readline_lib="auto"
drh8b727472009-01-19 18:18:40 +000011004fi
11005
vapier7f19c022007-02-17 14:46:31 +000011006 if test "x$with_readline_lib" = xauto; then
11007 save_LIBS="$LIBS"
11008 LIBS=""
drhf922ca42015-05-14 15:39:18 +000011009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
drh8b727472009-01-19 18:18:40 +000011010$as_echo_n "checking for library containing tgetent... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011011if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000011012 $as_echo_n "(cached) " >&6
drh75897232000-05-29 14:26:00 +000011013else
drh71eb93e2001-09-28 01:34:43 +000011014 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011016/* end confdefs.h. */
11017
drh8b727472009-01-19 18:18:40 +000011018/* Override any GCC internal prototype to avoid an error.
11019 Use char because int might match the return type of a GCC
11020 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000011021#ifdef __cplusplus
11022extern "C"
11023#endif
paul38372372003-04-22 08:04:49 +000011024char tgetent ();
11025int
11026main ()
11027{
drh8b727472009-01-19 18:18:40 +000011028return tgetent ();
paul38372372003-04-22 08:04:49 +000011029 ;
11030 return 0;
11031}
11032_ACEOF
drh8b727472009-01-19 18:18:40 +000011033for ac_lib in '' readline ncurses curses termcap; do
11034 if test -z "$ac_lib"; then
11035 ac_res="none required"
11036 else
11037 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011038 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011039 fi
drhf922ca42015-05-14 15:39:18 +000011040 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011041 ac_cv_search_tgetent=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011042fi
drhf922ca42015-05-14 15:39:18 +000011043rm -f core conftest.err conftest.$ac_objext \
11044 conftest$ac_exeext
11045 if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000011046 break
drh866108f2008-05-13 00:57:21 +000011047fi
drh8b727472009-01-19 18:18:40 +000011048done
drhf922ca42015-05-14 15:39:18 +000011049if ${ac_cv_search_tgetent+:} false; then :
11050
drh8b727472009-01-19 18:18:40 +000011051else
11052 ac_cv_search_tgetent=no
11053fi
11054rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011055LIBS=$ac_func_search_save_LIBS
11056fi
drhf922ca42015-05-14 15:39:18 +000011057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
drh8b727472009-01-19 18:18:40 +000011058$as_echo "$ac_cv_search_tgetent" >&6; }
11059ac_res=$ac_cv_search_tgetent
drhf922ca42015-05-14 15:39:18 +000011060if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011061 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000011062 term_LIBS="$LIBS"
11063else
11064 term_LIBS=""
paul38372372003-04-22 08:04:49 +000011065fi
11066
drhf922ca42015-05-14 15:39:18 +000011067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
drh8b727472009-01-19 18:18:40 +000011068$as_echo_n "checking for readline in -lreadline... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011069if ${ac_cv_lib_readline_readline+:} false; then :
drh8b727472009-01-19 18:18:40 +000011070 $as_echo_n "(cached) " >&6
paul38372372003-04-22 08:04:49 +000011071else
11072 ac_check_lib_save_LIBS=$LIBS
11073LIBS="-lreadline $LIBS"
drhf922ca42015-05-14 15:39:18 +000011074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000011075/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011076
drh8b727472009-01-19 18:18:40 +000011077/* Override any GCC internal prototype to avoid an error.
11078 Use char because int might match the return type of a GCC
11079 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000011080#ifdef __cplusplus
11081extern "C"
11082#endif
drh71eb93e2001-09-28 01:34:43 +000011083char readline ();
11084int
11085main ()
11086{
drh8b727472009-01-19 18:18:40 +000011087return readline ();
drh71eb93e2001-09-28 01:34:43 +000011088 ;
11089 return 0;
11090}
11091_ACEOF
drhf922ca42015-05-14 15:39:18 +000011092if ac_fn_c_try_link "$LINENO"; then :
paul38372372003-04-22 08:04:49 +000011093 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000011094else
drhf922ca42015-05-14 15:39:18 +000011095 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000011096fi
drhf922ca42015-05-14 15:39:18 +000011097rm -f core conftest.err conftest.$ac_objext \
11098 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011099LIBS=$ac_check_lib_save_LIBS
11100fi
drhf922ca42015-05-14 15:39:18 +000011101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
drh8b727472009-01-19 18:18:40 +000011102$as_echo "$ac_cv_lib_readline_readline" >&6; }
drhf922ca42015-05-14 15:39:18 +000011103if test "x$ac_cv_lib_readline_readline" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011104 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000011105else
vapier7f19c022007-02-17 14:46:31 +000011106 found="no"
11107fi
drhf1878b42006-01-23 18:06:52 +000011108
vapier7f19c022007-02-17 14:46:31 +000011109 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11110 LIBS="$save_LIBS"
11111 else
11112 TARGET_READLINE_LIBS="$with_readline_lib"
11113 fi
11114
11115
drh8b727472009-01-19 18:18:40 +000011116# Check whether --with-readline-inc was given.
drhf922ca42015-05-14 15:39:18 +000011117if test "${with_readline_inc+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011118 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000011119else
vapier7f19c022007-02-17 14:46:31 +000011120 with_readline_inc="auto"
drh8b727472009-01-19 18:18:40 +000011121fi
11122
vapier7f19c022007-02-17 14:46:31 +000011123 if test "x$with_readline_inc" = xauto; then
drhf922ca42015-05-14 15:39:18 +000011124 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
11125if test "x$ac_cv_header_readline_h" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011126 found="yes"
11127else
drh75897232000-05-29 14:26:00 +000011128
vapier7f19c022007-02-17 14:46:31 +000011129 found="no"
11130 if test "$cross_compiling" != yes; then
11131 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11132 for subdir in include include/readline; do
drh8b727472009-01-19 18:18:40 +000011133 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
drhf922ca42015-05-14 15:39:18 +000011134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
drh8b727472009-01-19 18:18:40 +000011135$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011136if eval \${$as_ac_File+:} false; then :
drh8b727472009-01-19 18:18:40 +000011137 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011138else
11139 test "$cross_compiling" = yes &&
drhf922ca42015-05-14 15:39:18 +000011140 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
vapier7f19c022007-02-17 14:46:31 +000011141if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000011142 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000011143else
drh71eb93e2001-09-28 01:34:43 +000011144 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000011145fi
11146fi
drhf922ca42015-05-14 15:39:18 +000011147eval ac_res=\$$as_ac_File
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
drh8b727472009-01-19 18:18:40 +000011149$as_echo "$ac_res" >&6; }
drhf922ca42015-05-14 15:39:18 +000011150if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
drh75897232000-05-29 14:26:00 +000011151 found=yes
drh75897232000-05-29 14:26:00 +000011152fi
11153
vapier7f19c022007-02-17 14:46:31 +000011154 if test "$found" = "yes"; then
11155 TARGET_READLINE_INC="-I$dir/$subdir"
11156 break
11157 fi
11158 done
11159 test "$found" = "yes" && break
11160 done
11161 fi
11162
11163fi
11164
11165
11166 else
11167 TARGET_READLINE_INC="$with_readline_inc"
11168 fi
11169
11170 if test x"$found" = xno; then
11171 TARGET_READLINE_LIBS=""
11172 TARGET_READLINE_INC=""
11173 TARGET_HAVE_READLINE=0
11174 else
11175 TARGET_HAVE_READLINE=1
11176 fi
11177fi
11178
11179
11180
11181
11182
drhe44b8352015-10-30 14:25:57 +000011183
vapier7f19c022007-02-17 14:46:31 +000011184##########
11185# Figure out what C libraries are required to compile programs
11186# that use "fdatasync()" function.
11187#
drhf922ca42015-05-14 15:39:18 +000011188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011189$as_echo_n "checking for library containing fdatasync... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011190if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011191 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011192else
vapier7f19c022007-02-17 14:46:31 +000011193 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011195/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011196
drh8b727472009-01-19 18:18:40 +000011197/* Override any GCC internal prototype to avoid an error.
11198 Use char because int might match the return type of a GCC
11199 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000011200#ifdef __cplusplus
11201extern "C"
11202#endif
11203char fdatasync ();
11204int
11205main ()
11206{
drh8b727472009-01-19 18:18:40 +000011207return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000011208 ;
11209 return 0;
11210}
11211_ACEOF
drh8b727472009-01-19 18:18:40 +000011212for ac_lib in '' rt; do
11213 if test -z "$ac_lib"; then
11214 ac_res="none required"
11215 else
11216 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011217 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011218 fi
drhf922ca42015-05-14 15:39:18 +000011219 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011220 ac_cv_search_fdatasync=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011221fi
drhf922ca42015-05-14 15:39:18 +000011222rm -f core conftest.err conftest.$ac_objext \
11223 conftest$ac_exeext
11224 if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011225 break
drh866108f2008-05-13 00:57:21 +000011226fi
drh8b727472009-01-19 18:18:40 +000011227done
drhf922ca42015-05-14 15:39:18 +000011228if ${ac_cv_search_fdatasync+:} false; then :
11229
drh8b727472009-01-19 18:18:40 +000011230else
11231 ac_cv_search_fdatasync=no
11232fi
11233rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011234LIBS=$ac_func_search_save_LIBS
11235fi
drhf922ca42015-05-14 15:39:18 +000011236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011237$as_echo "$ac_cv_search_fdatasync" >&6; }
11238ac_res=$ac_cv_search_fdatasync
drhf922ca42015-05-14 15:39:18 +000011239if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011240 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000011241
vapier7f19c022007-02-17 14:46:31 +000011242fi
11243
a.rottmann84e63352003-03-24 09:42:16 +000011244
drh75897232000-05-29 14:26:00 +000011245#########
tpoindex9d9f76c2005-01-03 21:28:56 +000011246# check for debug enabled
drh8b727472009-01-19 18:18:40 +000011247# Check whether --enable-debug was given.
drhf922ca42015-05-14 15:39:18 +000011248if test "${enable_debug+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011249 enableval=$enable_debug; use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000011250else
11251 use_debug=no
drh8b727472009-01-19 18:18:40 +000011252fi
11253
tpoindex9d9f76c2005-01-03 21:28:56 +000011254if test "${use_debug}" = "yes" ; then
drheae3a0d2006-03-03 20:37:52 +000011255 TARGET_DEBUG="-DSQLITE_DEBUG=1"
tpoindex9d9f76c2005-01-03 21:28:56 +000011256else
11257 TARGET_DEBUG="-DNDEBUG"
11258fi
11259
11260
11261#########
mlcreech94984912008-03-04 19:03:08 +000011262# See whether we should use the amalgamation to build
drh8b727472009-01-19 18:18:40 +000011263# Check whether --enable-amalgamation was given.
drhf922ca42015-05-14 15:39:18 +000011264if test "${enable_amalgamation+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011265 enableval=$enable_amalgamation; use_amalgamation=$enableval
mlcreech94984912008-03-04 19:03:08 +000011266else
11267 use_amalgamation=yes
drh8b727472009-01-19 18:18:40 +000011268fi
11269
mlcreechf3868112008-03-11 18:03:30 +000011270if test "${use_amalgamation}" != "yes" ; then
mlcreech94984912008-03-04 19:03:08 +000011271 USE_AMALGAMATION=0
11272fi
11273
11274
11275#########
mlcreecha4edab02008-03-06 04:14:17 +000011276# See whether we should allow loadable extensions
drh8b727472009-01-19 18:18:40 +000011277# Check whether --enable-load-extension was given.
drhf922ca42015-05-14 15:39:18 +000011278if test "${enable_load_extension+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011279 enableval=$enable_load_extension; use_loadextension=$enableval
mlcreecha4edab02008-03-06 04:14:17 +000011280else
drh05c7e0b2015-01-10 14:27:17 +000011281 use_loadextension=yes
drh8b727472009-01-19 18:18:40 +000011282fi
11283
mlcreecha4edab02008-03-06 04:14:17 +000011284if test "${use_loadextension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000011285 OPT_FEATURE_FLAGS=""
drhf922ca42015-05-14 15:39:18 +000011286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011287$as_echo_n "checking for library containing dlopen... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011288if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011289 $as_echo_n "(cached) " >&6
11290else
11291 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drhdbe4b882011-06-20 18:00:17 +000011293/* end confdefs.h. */
11294
11295/* Override any GCC internal prototype to avoid an error.
11296 Use char because int might match the return type of a GCC
11297 builtin and then its argument prototype would still apply. */
11298#ifdef __cplusplus
11299extern "C"
11300#endif
11301char dlopen ();
11302int
11303main ()
11304{
11305return dlopen ();
11306 ;
11307 return 0;
11308}
11309_ACEOF
11310for ac_lib in '' dl; do
11311 if test -z "$ac_lib"; then
11312 ac_res="none required"
11313 else
11314 ac_res=-l$ac_lib
11315 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11316 fi
drhf922ca42015-05-14 15:39:18 +000011317 if ac_fn_c_try_link "$LINENO"; then :
drhdbe4b882011-06-20 18:00:17 +000011318 ac_cv_search_dlopen=$ac_res
drhdbe4b882011-06-20 18:00:17 +000011319fi
drhf922ca42015-05-14 15:39:18 +000011320rm -f core conftest.err conftest.$ac_objext \
11321 conftest$ac_exeext
11322 if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011323 break
11324fi
11325done
drhf922ca42015-05-14 15:39:18 +000011326if ${ac_cv_search_dlopen+:} false; then :
11327
drhdbe4b882011-06-20 18:00:17 +000011328else
11329 ac_cv_search_dlopen=no
11330fi
11331rm conftest.$ac_ext
11332LIBS=$ac_func_search_save_LIBS
11333fi
drhf922ca42015-05-14 15:39:18 +000011334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011335$as_echo "$ac_cv_search_dlopen" >&6; }
11336ac_res=$ac_cv_search_dlopen
drhf922ca42015-05-14 15:39:18 +000011337if test "$ac_res" != no; then :
drhdbe4b882011-06-20 18:00:17 +000011338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11339
11340fi
11341
mlcreecha4edab02008-03-06 04:14:17 +000011342else
shanefbedede2008-07-22 05:05:01 +000011343 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000011344fi
11345
drhc530b9c2016-07-25 11:27:22 +000011346##########
11347# Do we want to support memsys3 and/or memsys5
11348#
drhc530b9c2016-07-25 11:27:22 +000011349# Check whether --enable-memsys5 was given.
11350if test "${enable_memsys5+set}" = set; then :
drh26197d12016-07-25 11:32:09 +000011351 enableval=$enable_memsys5; enable_memsys5=yes
drhc530b9c2016-07-25 11:27:22 +000011352else
drh26197d12016-07-25 11:32:09 +000011353 enable_memsys5=no
drhc530b9c2016-07-25 11:27:22 +000011354fi
11355
11356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS5" >&5
11357$as_echo_n "checking whether to support MEMSYS5... " >&6; }
drh26197d12016-07-25 11:32:09 +000011358if test "${enable_memsys5}" = "yes"; then
drh6fe4c182016-07-25 11:39:24 +000011359 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_MEMSYS5"
drhc530b9c2016-07-25 11:27:22 +000011360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11361$as_echo "yes" >&6; }
11362else
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11364$as_echo "no" >&6; }
11365fi
drh5d513ba2016-07-25 11:57:21 +000011366# Check whether --enable-memsys3 was given.
11367if test "${enable_memsys3+set}" = set; then :
11368 enableval=$enable_memsys3; enable_memsys3=yes
11369else
11370 enable_memsys3=no
11371fi
11372
11373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support MEMSYS3" >&5
11374$as_echo_n "checking whether to support MEMSYS3... " >&6; }
11375if test "${enable_memsys3}" = "yes" -a "${enable_memsys5}" = "no"; then
11376 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_MEMSYS3"
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11378$as_echo "yes" >&6; }
11379else
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11381$as_echo "no" >&6; }
11382fi
drhc530b9c2016-07-25 11:27:22 +000011383
mlcreechaac7b932008-04-01 02:45:22 +000011384#########
drhce1d9f52015-10-09 12:48:33 +000011385# See whether we should enable Full Text Search extensions
11386# Check whether --enable-fts3 was given.
11387if test "${enable_fts3+set}" = set; then :
11388 enableval=$enable_fts3; enable_fts3=yes
11389else
11390 enable_fts3=no
11391fi
11392
11393if test "${enable_fts3}" = "yes" ; then
11394 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS3"
11395fi
11396# Check whether --enable-fts4 was given.
11397if test "${enable_fts4+set}" = set; then :
11398 enableval=$enable_fts4; enable_fts4=yes
11399else
11400 enable_fts4=no
11401fi
11402
11403if test "${enable_fts4}" = "yes" ; then
11404 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS4"
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11406$as_echo_n "checking for library containing log... " >&6; }
11407if ${ac_cv_search_log+:} false; then :
11408 $as_echo_n "(cached) " >&6
11409else
11410 ac_func_search_save_LIBS=$LIBS
11411cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11412/* end confdefs.h. */
11413
11414/* Override any GCC internal prototype to avoid an error.
11415 Use char because int might match the return type of a GCC
11416 builtin and then its argument prototype would still apply. */
11417#ifdef __cplusplus
11418extern "C"
11419#endif
11420char log ();
11421int
11422main ()
11423{
11424return log ();
11425 ;
11426 return 0;
11427}
11428_ACEOF
11429for ac_lib in '' m; do
11430 if test -z "$ac_lib"; then
11431 ac_res="none required"
11432 else
11433 ac_res=-l$ac_lib
11434 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11435 fi
11436 if ac_fn_c_try_link "$LINENO"; then :
11437 ac_cv_search_log=$ac_res
11438fi
11439rm -f core conftest.err conftest.$ac_objext \
11440 conftest$ac_exeext
11441 if ${ac_cv_search_log+:} false; then :
11442 break
11443fi
11444done
11445if ${ac_cv_search_log+:} false; then :
11446
11447else
11448 ac_cv_search_log=no
11449fi
11450rm conftest.$ac_ext
11451LIBS=$ac_func_search_save_LIBS
11452fi
11453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11454$as_echo "$ac_cv_search_log" >&6; }
11455ac_res=$ac_cv_search_log
11456if test "$ac_res" != no; then :
11457 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11458
11459fi
11460
11461fi
11462# Check whether --enable-fts5 was given.
11463if test "${enable_fts5+set}" = set; then :
11464 enableval=$enable_fts5; enable_fts5=yes
11465else
11466 enable_fts5=no
11467fi
11468
11469if test "${enable_fts5}" = "yes" ; then
11470 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS5"
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11472$as_echo_n "checking for library containing log... " >&6; }
11473if ${ac_cv_search_log+:} false; then :
11474 $as_echo_n "(cached) " >&6
11475else
11476 ac_func_search_save_LIBS=$LIBS
11477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11478/* end confdefs.h. */
11479
11480/* Override any GCC internal prototype to avoid an error.
11481 Use char because int might match the return type of a GCC
11482 builtin and then its argument prototype would still apply. */
11483#ifdef __cplusplus
11484extern "C"
11485#endif
11486char log ();
11487int
11488main ()
11489{
11490return log ();
11491 ;
11492 return 0;
11493}
11494_ACEOF
11495for ac_lib in '' m; do
11496 if test -z "$ac_lib"; then
11497 ac_res="none required"
11498 else
11499 ac_res=-l$ac_lib
11500 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11501 fi
11502 if ac_fn_c_try_link "$LINENO"; then :
11503 ac_cv_search_log=$ac_res
11504fi
11505rm -f core conftest.err conftest.$ac_objext \
11506 conftest$ac_exeext
11507 if ${ac_cv_search_log+:} false; then :
11508 break
11509fi
11510done
11511if ${ac_cv_search_log+:} false; then :
11512
11513else
11514 ac_cv_search_log=no
11515fi
11516rm conftest.$ac_ext
11517LIBS=$ac_func_search_save_LIBS
11518fi
11519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11520$as_echo "$ac_cv_search_log" >&6; }
11521ac_res=$ac_cv_search_log
11522if test "$ac_res" != no; then :
11523 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11524
11525fi
11526
11527fi
11528
11529#########
11530# See whether we should enable JSON1
11531# Check whether --enable-json1 was given.
11532if test "${enable_json1+set}" = set; then :
11533 enableval=$enable_json1; enable_json1=yes
11534else
11535 enable_json1=no
11536fi
11537
11538if test "${enable_json1}" = "yes" ; then
11539 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_JSON1"
11540fi
11541
11542#########
11543# See whether we should enable RTREE
11544# Check whether --enable-rtree was given.
11545if test "${enable_rtree+set}" = set; then :
11546 enableval=$enable_rtree; enable_rtree=yes
11547else
11548 enable_rtree=no
11549fi
11550
11551if test "${enable_rtree}" = "yes" ; then
11552 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_RTREE"
11553fi
11554
11555#########
drh5e18d402016-05-03 13:14:18 +000011556# See whether we should enable the SESSION extension
11557# Check whether --enable-session was given.
11558if test "${enable_session+set}" = set; then :
11559 enableval=$enable_session; enable_session=yes
11560else
11561 enable_session=no
11562fi
11563
11564if test "${enable_session}" = "yes" ; then
11565 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_SESSION"
11566 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_PREUPDATE_HOOK"
11567fi
11568
11569#########
shaneb1cd7302008-10-22 18:27:31 +000011570# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011571for option in $CFLAGS $CPPFLAGS
11572do
11573 case $option in
danielk197733a14782008-08-04 14:50:05 +000011574 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shaneb1cd7302008-10-22 18:27:31 +000011575 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011576 esac
11577done
11578
11579
danielk197733a14782008-08-04 14:50:05 +000011580
shaneb1cd7302008-10-22 18:27:31 +000011581# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011582ac_temp_CFLAGS=""
11583for option in $CFLAGS
11584do
11585 case $option in
11586 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011587 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011588 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011589 esac
11590done
11591CFLAGS=$ac_temp_CFLAGS
11592
11593
shaneb1cd7302008-10-22 18:27:31 +000011594# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011595ac_temp_CPPFLAGS=""
11596for option in $CPPFLAGS
11597do
11598 case $option in
11599 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011600 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011601 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011602 esac
11603done
11604CPPFLAGS=$ac_temp_CPPFLAGS
11605
danielk197733a14782008-08-04 14:50:05 +000011606
drh8b727472009-01-19 18:18:40 +000011607# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011608ac_temp_BUILD_CFLAGS=""
11609for option in $BUILD_CFLAGS
11610do
11611 case $option in
11612 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011613 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011614 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011615 esac
11616done
11617BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11618
11619
11620#########
11621# See whether we should use GCOV
drh8b727472009-01-19 18:18:40 +000011622# Check whether --enable-gcov was given.
drhf922ca42015-05-14 15:39:18 +000011623if test "${enable_gcov+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011624 enableval=$enable_gcov; use_gcov=$enableval
mlcreechaac7b932008-04-01 02:45:22 +000011625else
11626 use_gcov=no
drh8b727472009-01-19 18:18:40 +000011627fi
11628
mlcreechaac7b932008-04-01 02:45:22 +000011629if test "${use_gcov}" = "yes" ; then
11630 USE_GCOV=1
11631else
11632 USE_GCOV=0
11633fi
11634
11635
danielk197733a14782008-08-04 14:50:05 +000011636
drh2dfbbca2000-07-28 14:32:48 +000011637#########
mlcreechb87057f2008-03-06 07:19:20 +000011638# Output the config header
drh8b727472009-01-19 18:18:40 +000011639ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000011640
11641
11642#########
drh75897232000-05-29 14:26:00 +000011643# Generate the output files.
11644#
mlcreechdf59c7c2008-03-06 07:51:15 +000011645
drh8b727472009-01-19 18:18:40 +000011646ac_config_files="$ac_config_files Makefile sqlite3.pc"
11647
drh71eb93e2001-09-28 01:34:43 +000011648cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000011649# This file is a shell script that caches the results of configure
11650# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000011651# scripts and configure runs, see configure's option --config-cache.
11652# It is not useful on other systems. If it contains results you don't
11653# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000011654#
drh71eb93e2001-09-28 01:34:43 +000011655# config.status only pays attention to the cache file if you give it
11656# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000011657#
a.rottmann84e63352003-03-24 09:42:16 +000011658# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000011659# loading this file, other *unset* `ac_cv_foo' will be assigned the
11660# following values.
11661
11662_ACEOF
11663
drh75897232000-05-29 14:26:00 +000011664# The following way of writing the cache mishandles newlines in values,
11665# but we know of no workaround that is simple, portable, and efficient.
drh8b727472009-01-19 18:18:40 +000011666# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000011667# Ultrix sh set writes to stderr and can't be redirected directly,
11668# and sets the high bit in the cache file unless we assign to the vars.
drh8b727472009-01-19 18:18:40 +000011669(
11670 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11671 eval ac_val=\$$ac_var
11672 case $ac_val in #(
11673 *${as_nl}*)
11674 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +000011675 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11676$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +000011677 esac
11678 case $ac_var in #(
11679 _ | IFS | as_nl) ;; #(
11680 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +000011681 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +000011682 esac ;;
11683 esac
11684 done
11685
drh71eb93e2001-09-28 01:34:43 +000011686 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +000011687 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11688 *${as_nl}ac_space=\ *)
drhf922ca42015-05-14 15:39:18 +000011689 # `set' does not quote correctly, so add quotes: double-quote
11690 # substitution turns \\\\ into \\, and sed turns \\ into \.
drh71eb93e2001-09-28 01:34:43 +000011691 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000011692 "s/'/'\\\\''/g;
11693 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh8b727472009-01-19 18:18:40 +000011694 ;; #(
drh71eb93e2001-09-28 01:34:43 +000011695 *)
11696 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh8b727472009-01-19 18:18:40 +000011697 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000011698 ;;
drh8b727472009-01-19 18:18:40 +000011699 esac |
11700 sort
11701) |
drh71eb93e2001-09-28 01:34:43 +000011702 sed '
drh8b727472009-01-19 18:18:40 +000011703 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000011704 t clear
drh8b727472009-01-19 18:18:40 +000011705 :clear
drh71eb93e2001-09-28 01:34:43 +000011706 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11707 t end
drh8b727472009-01-19 18:18:40 +000011708 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11709 :end' >>confcache
11710if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11711 if test -w "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +000011712 if test "x$cache_file" != "x/dev/null"; then
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011714$as_echo "$as_me: updating cache $cache_file" >&6;}
drhf922ca42015-05-14 15:39:18 +000011715 if test ! -f "$cache_file" || test -h "$cache_file"; then
11716 cat confcache >"$cache_file"
11717 else
11718 case $cache_file in #(
11719 */* | ?:*)
11720 mv -f confcache "$cache_file"$$ &&
11721 mv -f "$cache_file"$$ "$cache_file" ;; #(
11722 *)
11723 mv -f confcache "$cache_file" ;;
11724 esac
11725 fi
11726 fi
drh75897232000-05-29 14:26:00 +000011727 else
drhf922ca42015-05-14 15:39:18 +000011728 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011729$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000011730 fi
11731fi
11732rm -f confcache
11733
drh75897232000-05-29 14:26:00 +000011734test "x$prefix" = xNONE && prefix=$ac_default_prefix
11735# Let make expand exec_prefix.
11736test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11737
mlcreechb87057f2008-03-06 07:19:20 +000011738DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000011739
11740ac_libobjs=
11741ac_ltlibobjs=
drhf922ca42015-05-14 15:39:18 +000011742U=
a.rottmann84e63352003-03-24 09:42:16 +000011743for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11744 # 1. Remove the extension, and $U if already installed.
drh8b727472009-01-19 18:18:40 +000011745 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11746 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11747 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11748 # will be set to the directory where LIBOBJS objects are built.
drhf922ca42015-05-14 15:39:18 +000011749 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11750 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000011751done
11752LIBOBJS=$ac_libobjs
11753
11754LTLIBOBJS=$ac_ltlibobjs
11755
11756
11757
drhf922ca42015-05-14 15:39:18 +000011758: "${CONFIG_STATUS=./config.status}"
drh8b727472009-01-19 18:18:40 +000011759ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000011760ac_clean_files_save=$ac_clean_files
11761ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drhf922ca42015-05-14 15:39:18 +000011762{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
drh8b727472009-01-19 18:18:40 +000011763$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
drhf922ca42015-05-14 15:39:18 +000011764as_write_fail=0
11765cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011766#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000011767# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000011768# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000011769# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000011770# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000011771
drh71eb93e2001-09-28 01:34:43 +000011772debug=false
a.rottmann84e63352003-03-24 09:42:16 +000011773ac_cs_recheck=false
11774ac_cs_silent=false
drh710658c2012-01-16 13:00:05 +000011775
drhf922ca42015-05-14 15:39:18 +000011776SHELL=\${CONFIG_SHELL-$SHELL}
11777export SHELL
11778_ASEOF
11779cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11780## -------------------- ##
11781## M4sh Initialization. ##
11782## -------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000011783
drh8b727472009-01-19 18:18:40 +000011784# Be more Bourne compatible
11785DUALCASE=1; export DUALCASE # for MKS sh
drhf922ca42015-05-14 15:39:18 +000011786if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
drh71eb93e2001-09-28 01:34:43 +000011787 emulate sh
11788 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000011789 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000011790 # is contrary to our usage. Disable this feature.
11791 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000011792 setopt NO_GLOB_SUBST
11793else
drhf922ca42015-05-14 15:39:18 +000011794 case `(set -o) 2>/dev/null` in #(
11795 *posix*) :
11796 set -o posix ;; #(
11797 *) :
11798 ;;
drh8b727472009-01-19 18:18:40 +000011799esac
a.rottmann84e63352003-03-24 09:42:16 +000011800fi
drh8b727472009-01-19 18:18:40 +000011801
11802
drh8b727472009-01-19 18:18:40 +000011803as_nl='
11804'
11805export as_nl
11806# Printing a long string crashes Solaris 7 /usr/bin/printf.
11807as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11808as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11809as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
drhf922ca42015-05-14 15:39:18 +000011810# Prefer a ksh shell builtin over an external printf program on Solaris,
11811# but without wasting forks for bash or zsh.
11812if test -z "$BASH_VERSION$ZSH_VERSION" \
11813 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11814 as_echo='print -r --'
11815 as_echo_n='print -rn --'
11816elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
drh8b727472009-01-19 18:18:40 +000011817 as_echo='printf %s\n'
11818 as_echo_n='printf %s'
11819else
11820 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11821 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11822 as_echo_n='/usr/ucb/echo -n'
11823 else
11824 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11825 as_echo_n_body='eval
11826 arg=$1;
drhf922ca42015-05-14 15:39:18 +000011827 case $arg in #(
drh8b727472009-01-19 18:18:40 +000011828 *"$as_nl"*)
11829 expr "X$arg" : "X\\(.*\\)$as_nl";
11830 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11831 esac;
11832 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11833 '
11834 export as_echo_n_body
11835 as_echo_n='sh -c $as_echo_n_body as_echo'
11836 fi
11837 export as_echo_body
11838 as_echo='sh -c $as_echo_body as_echo'
11839fi
11840
11841# The user is always right.
11842if test "${PATH_SEPARATOR+set}" != set; then
11843 PATH_SEPARATOR=:
11844 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11845 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11846 PATH_SEPARATOR=';'
11847 }
11848fi
a.rottmann84e63352003-03-24 09:42:16 +000011849
mlcreech94984912008-03-04 19:03:08 +000011850
drh8b727472009-01-19 18:18:40 +000011851# IFS
11852# We need space, tab and new line, in precisely that order. Quoting is
11853# there to prevent editors from complaining about space-tab.
11854# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11855# splitting by setting IFS to empty value.)
11856IFS=" "" $as_nl"
11857
11858# Find who we are. Look in the path if we contain no directory separator.
drhf922ca42015-05-14 15:39:18 +000011859as_myself=
11860case $0 in #((
drh8b727472009-01-19 18:18:40 +000011861 *[\\/]* ) as_myself=$0 ;;
11862 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11863for as_dir in $PATH
11864do
11865 IFS=$as_save_IFS
11866 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000011867 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11868 done
drh8b727472009-01-19 18:18:40 +000011869IFS=$as_save_IFS
11870
11871 ;;
11872esac
11873# We did not find ourselves, most probably we were run as `sh COMMAND'
11874# in which case we are not to be found in the path.
11875if test "x$as_myself" = x; then
11876 as_myself=$0
11877fi
11878if test ! -f "$as_myself"; then
11879 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
drhf922ca42015-05-14 15:39:18 +000011880 exit 1
drh8b727472009-01-19 18:18:40 +000011881fi
11882
drhf922ca42015-05-14 15:39:18 +000011883# Unset variables that we do not need and which cause bugs (e.g. in
11884# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11885# suppresses any "Segmentation fault" message there. '((' could
11886# trigger a bug in pdksh 5.2.14.
11887for as_var in BASH_ENV ENV MAIL MAILPATH
11888do eval test x\${$as_var+set} = xset \
11889 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
drh8b727472009-01-19 18:18:40 +000011890done
mlcreech94984912008-03-04 19:03:08 +000011891PS1='$ '
11892PS2='> '
11893PS4='+ '
11894
11895# NLS nuisances.
drh8b727472009-01-19 18:18:40 +000011896LC_ALL=C
11897export LC_ALL
11898LANGUAGE=C
11899export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000011900
drhf922ca42015-05-14 15:39:18 +000011901# CDPATH.
11902(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11903
11904
11905# as_fn_error STATUS ERROR [LINENO LOG_FD]
11906# ----------------------------------------
11907# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11908# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11909# script with STATUS, using 1 if that was 0.
11910as_fn_error ()
11911{
11912 as_status=$1; test $as_status -eq 0 && as_status=1
11913 if test "$4"; then
11914 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11915 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11916 fi
11917 $as_echo "$as_me: error: $2" >&2
11918 as_fn_exit $as_status
11919} # as_fn_error
11920
11921
11922# as_fn_set_status STATUS
11923# -----------------------
11924# Set $? to STATUS, without forking.
11925as_fn_set_status ()
11926{
11927 return $1
11928} # as_fn_set_status
11929
11930# as_fn_exit STATUS
11931# -----------------
11932# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11933as_fn_exit ()
11934{
11935 set +e
11936 as_fn_set_status $1
11937 exit $1
11938} # as_fn_exit
11939
11940# as_fn_unset VAR
11941# ---------------
11942# Portably unset VAR.
11943as_fn_unset ()
11944{
11945 { eval $1=; unset $1;}
11946}
11947as_unset=as_fn_unset
11948# as_fn_append VAR VALUE
11949# ----------------------
11950# Append the text in VALUE to the end of the definition contained in VAR. Take
11951# advantage of any shell optimizations that allow amortized linear growth over
11952# repeated appends, instead of the typical quadratic growth present in naive
11953# implementations.
11954if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11955 eval 'as_fn_append ()
11956 {
11957 eval $1+=\$2
11958 }'
11959else
11960 as_fn_append ()
11961 {
11962 eval $1=\$$1\$2
11963 }
11964fi # as_fn_append
11965
11966# as_fn_arith ARG...
11967# ------------------
11968# Perform arithmetic evaluation on the ARGs, and store the result in the
11969# global $as_val. Take advantage of shells that can avoid forks. The arguments
11970# must be portable across $(()) and expr.
11971if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11972 eval 'as_fn_arith ()
11973 {
11974 as_val=$(( $* ))
11975 }'
11976else
11977 as_fn_arith ()
11978 {
11979 as_val=`expr "$@" || test $? -eq 1`
11980 }
11981fi # as_fn_arith
11982
11983
drh8b727472009-01-19 18:18:40 +000011984if expr a : '\(a\)' >/dev/null 2>&1 &&
11985 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +000011986 as_expr=expr
11987else
11988 as_expr=false
11989fi
11990
drh8b727472009-01-19 18:18:40 +000011991if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000011992 as_basename=basename
11993else
11994 as_basename=false
11995fi
11996
drhf922ca42015-05-14 15:39:18 +000011997if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11998 as_dirname=dirname
11999else
12000 as_dirname=false
12001fi
mlcreech94984912008-03-04 19:03:08 +000012002
drh8b727472009-01-19 18:18:40 +000012003as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +000012004$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12005 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000012006 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12007$as_echo X/"$0" |
12008 sed '/^.*\/\([^/][^/]*\)\/*$/{
12009 s//\1/
12010 q
12011 }
12012 /^X\/\(\/\/\)$/{
12013 s//\1/
12014 q
12015 }
12016 /^X\/\(\/\).*/{
12017 s//\1/
12018 q
12019 }
12020 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000012021
drhf922ca42015-05-14 15:39:18 +000012022# Avoid depending upon Character Ranges.
12023as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12024as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12025as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12026as_cr_digits='0123456789'
12027as_cr_alnum=$as_cr_Letters$as_cr_digits
drh866108f2008-05-13 00:57:21 +000012028
drh8b727472009-01-19 18:18:40 +000012029ECHO_C= ECHO_N= ECHO_T=
drhf922ca42015-05-14 15:39:18 +000012030case `echo -n x` in #(((((
drh8b727472009-01-19 18:18:40 +000012031-n*)
drhf922ca42015-05-14 15:39:18 +000012032 case `echo 'xy\c'` in
drh8b727472009-01-19 18:18:40 +000012033 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drhf922ca42015-05-14 15:39:18 +000012034 xy) ECHO_C='\c';;
12035 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12036 ECHO_T=' ';;
drh8b727472009-01-19 18:18:40 +000012037 esac;;
12038*)
12039 ECHO_N='-n';;
12040esac
drh71eb93e2001-09-28 01:34:43 +000012041
12042rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +000012043if test -d conf$$.dir; then
12044 rm -f conf$$.dir/conf$$.file
12045else
12046 rm -f conf$$.dir
12047 mkdir conf$$.dir 2>/dev/null
12048fi
12049if (echo >conf$$.file) 2>/dev/null; then
12050 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +000012051 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +000012052 # ... but there are two gotchas:
12053 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12054 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
drhf922ca42015-05-14 15:39:18 +000012055 # In both cases, we have to default to `cp -pR'.
drh8b727472009-01-19 18:18:40 +000012056 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
drhf922ca42015-05-14 15:39:18 +000012057 as_ln_s='cp -pR'
drh8b727472009-01-19 18:18:40 +000012058 elif ln conf$$.file conf$$ 2>/dev/null; then
12059 as_ln_s=ln
12060 else
drhf922ca42015-05-14 15:39:18 +000012061 as_ln_s='cp -pR'
mlcreech636a9952008-05-05 22:52:56 +000012062 fi
drh71eb93e2001-09-28 01:34:43 +000012063else
drhf922ca42015-05-14 15:39:18 +000012064 as_ln_s='cp -pR'
drh71eb93e2001-09-28 01:34:43 +000012065fi
drh8b727472009-01-19 18:18:40 +000012066rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12067rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000012068
drhf922ca42015-05-14 15:39:18 +000012069
12070# as_fn_mkdir_p
12071# -------------
12072# Create "$as_dir" as a directory, including parents if necessary.
12073as_fn_mkdir_p ()
12074{
12075
12076 case $as_dir in #(
12077 -*) as_dir=./$as_dir;;
12078 esac
12079 test -d "$as_dir" || eval $as_mkdir_p || {
12080 as_dirs=
12081 while :; do
12082 case $as_dir in #(
12083 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12084 *) as_qdir=$as_dir;;
12085 esac
12086 as_dirs="'$as_qdir' $as_dirs"
12087 as_dir=`$as_dirname -- "$as_dir" ||
12088$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12089 X"$as_dir" : 'X\(//\)[^/]' \| \
12090 X"$as_dir" : 'X\(//\)$' \| \
12091 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12092$as_echo X"$as_dir" |
12093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12094 s//\1/
12095 q
12096 }
12097 /^X\(\/\/\)[^/].*/{
12098 s//\1/
12099 q
12100 }
12101 /^X\(\/\/\)$/{
12102 s//\1/
12103 q
12104 }
12105 /^X\(\/\).*/{
12106 s//\1/
12107 q
12108 }
12109 s/.*/./; q'`
12110 test -d "$as_dir" && break
12111 done
12112 test -z "$as_dirs" || eval "mkdir $as_dirs"
12113 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12114
12115
12116} # as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000012117if mkdir -p . 2>/dev/null; then
drhf922ca42015-05-14 15:39:18 +000012118 as_mkdir_p='mkdir -p "$as_dir"'
drh71eb93e2001-09-28 01:34:43 +000012119else
a.rottmann964dbb12004-02-26 19:47:42 +000012120 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000012121 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000012122fi
12123
drhf922ca42015-05-14 15:39:18 +000012124
12125# as_fn_executable_p FILE
12126# -----------------------
12127# Test if FILE is an executable regular file.
12128as_fn_executable_p ()
12129{
12130 test -f "$1" && test -x "$1"
12131} # as_fn_executable_p
12132as_test_x='test -x'
12133as_executable_p=as_fn_executable_p
a.rottmann84e63352003-03-24 09:42:16 +000012134
12135# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000012136as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012137
12138# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000012139as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012140
drh71eb93e2001-09-28 01:34:43 +000012141
drh71eb93e2001-09-28 01:34:43 +000012142exec 6>&1
drhf922ca42015-05-14 15:39:18 +000012143## ----------------------------------- ##
12144## Main body of $CONFIG_STATUS script. ##
12145## ----------------------------------- ##
12146_ASEOF
12147test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012148
drhf922ca42015-05-14 15:39:18 +000012149cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12150# Save the log message, to keep $0 and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000012151# report actual input values of CONFIG_FILES etc. instead of their
drh8b727472009-01-19 18:18:40 +000012152# values after options handling.
12153ac_log="
drh9e31fe02016-10-14 21:16:27 +000012154This file was extended by sqlite $as_me 3.16.0, which was
drhf922ca42015-05-14 15:39:18 +000012155generated by GNU Autoconf 2.69. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000012156
12157 CONFIG_FILES = $CONFIG_FILES
12158 CONFIG_HEADERS = $CONFIG_HEADERS
12159 CONFIG_LINKS = $CONFIG_LINKS
12160 CONFIG_COMMANDS = $CONFIG_COMMANDS
12161 $ $0 $@
12162
drh8b727472009-01-19 18:18:40 +000012163on `(hostname || uname -n) 2>/dev/null | sed 1q`
12164"
12165
drh71eb93e2001-09-28 01:34:43 +000012166_ACEOF
12167
drhf922ca42015-05-14 15:39:18 +000012168case $ac_config_files in *"
12169"*) set x $ac_config_files; shift; ac_config_files=$*;;
12170esac
12171
12172case $ac_config_headers in *"
12173"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12174esac
12175
12176
drh8b727472009-01-19 18:18:40 +000012177cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012178# Files that config.status was made for.
drh8b727472009-01-19 18:18:40 +000012179config_files="$ac_config_files"
12180config_headers="$ac_config_headers"
12181config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000012182
drh8b727472009-01-19 18:18:40 +000012183_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012184
drh8b727472009-01-19 18:18:40 +000012185cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012186ac_cs_usage="\
drhf922ca42015-05-14 15:39:18 +000012187\`$as_me' instantiates files and other configuration actions
12188from templates according to the current configuration. Unless the files
12189and actions are specified as TAGs, all are instantiated by default.
drh71eb93e2001-09-28 01:34:43 +000012190
drhf922ca42015-05-14 15:39:18 +000012191Usage: $0 [OPTION]... [TAG]...
drh71eb93e2001-09-28 01:34:43 +000012192
12193 -h, --help print this help, then exit
drh8b727472009-01-19 18:18:40 +000012194 -V, --version print version number and configuration settings, then exit
drhf922ca42015-05-14 15:39:18 +000012195 --config print configuration, then exit
12196 -q, --quiet, --silent
12197 do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000012198 -d, --debug don't remove temporary files
12199 --recheck update $as_me by reconfiguring in the same conditions
drhf922ca42015-05-14 15:39:18 +000012200 --file=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012201 instantiate the configuration file FILE
drhf922ca42015-05-14 15:39:18 +000012202 --header=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012203 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000012204
12205Configuration files:
12206$config_files
12207
mlcreechb87057f2008-03-06 07:19:20 +000012208Configuration headers:
12209$config_headers
12210
mlcreech636a9952008-05-05 22:52:56 +000012211Configuration commands:
12212$config_commands
12213
drhf922ca42015-05-14 15:39:18 +000012214Report bugs to the package provider."
drh8b727472009-01-19 18:18:40 +000012215
mlcreech94984912008-03-04 19:03:08 +000012216_ACEOF
drh8b727472009-01-19 18:18:40 +000012217cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012218ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
drh866108f2008-05-13 00:57:21 +000012219ac_cs_version="\\
drh9e31fe02016-10-14 21:16:27 +000012220sqlite config.status 3.16.0
drhf922ca42015-05-14 15:39:18 +000012221configured by $0, generated by GNU Autoconf 2.69,
12222 with options \\"\$ac_cs_config\\"
drh866108f2008-05-13 00:57:21 +000012223
drhf922ca42015-05-14 15:39:18 +000012224Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000012225This config.status script is free software; the Free Software Foundation
12226gives unlimited permission to copy, distribute and modify it."
drh8b727472009-01-19 18:18:40 +000012227
12228ac_pwd='$ac_pwd'
12229srcdir='$srcdir'
12230INSTALL='$INSTALL'
drh8b727472009-01-19 18:18:40 +000012231test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000012232_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012233
drh8b727472009-01-19 18:18:40 +000012234cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12235# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000012236ac_need_defaults=:
12237while test $# != 0
12238do
12239 case $1 in
drhf922ca42015-05-14 15:39:18 +000012240 --*=?*)
drh8b727472009-01-19 18:18:40 +000012241 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12242 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000012243 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000012244 ;;
drhf922ca42015-05-14 15:39:18 +000012245 --*=)
12246 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12247 ac_optarg=
12248 ac_shift=:
12249 ;;
drh8b727472009-01-19 18:18:40 +000012250 *)
a.rottmann84e63352003-03-24 09:42:16 +000012251 ac_option=$1
12252 ac_optarg=$2
12253 ac_shift=shift
12254 ;;
drh75897232000-05-29 14:26:00 +000012255 esac
12256
a.rottmann84e63352003-03-24 09:42:16 +000012257 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000012258 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000012259 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000012260 ac_cs_recheck=: ;;
drh8b727472009-01-19 18:18:40 +000012261 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12262 $as_echo "$ac_cs_version"; exit ;;
drhf922ca42015-05-14 15:39:18 +000012263 --config | --confi | --conf | --con | --co | --c )
12264 $as_echo "$ac_cs_config"; exit ;;
drh8b727472009-01-19 18:18:40 +000012265 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000012266 debug=: ;;
12267 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000012268 $ac_shift
drh8b727472009-01-19 18:18:40 +000012269 case $ac_optarg in
12270 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
drhf922ca42015-05-14 15:39:18 +000012271 '') as_fn_error $? "missing file argument" ;;
drh8b727472009-01-19 18:18:40 +000012272 esac
drhf922ca42015-05-14 15:39:18 +000012273 as_fn_append CONFIG_FILES " '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000012274 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000012275 --header | --heade | --head | --hea )
12276 $ac_shift
drh8b727472009-01-19 18:18:40 +000012277 case $ac_optarg in
12278 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12279 esac
drhf922ca42015-05-14 15:39:18 +000012280 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000012281 ac_need_defaults=false;;
drh8b727472009-01-19 18:18:40 +000012282 --he | --h)
12283 # Conflict between --help and --header
drhf922ca42015-05-14 15:39:18 +000012284 as_fn_error $? "ambiguous option: \`$1'
12285Try \`$0 --help' for more information.";;
drh8b727472009-01-19 18:18:40 +000012286 --help | --hel | -h )
12287 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000012288 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12289 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12290 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000012291
drh71eb93e2001-09-28 01:34:43 +000012292 # This is an error.
drhf922ca42015-05-14 15:39:18 +000012293 -*) as_fn_error $? "unrecognized option: \`$1'
12294Try \`$0 --help' for more information." ;;
drh71eb93e2001-09-28 01:34:43 +000012295
drhf922ca42015-05-14 15:39:18 +000012296 *) as_fn_append ac_config_targets " $1"
drh8b727472009-01-19 18:18:40 +000012297 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000012298
12299 esac
12300 shift
12301done
12302
a.rottmann84e63352003-03-24 09:42:16 +000012303ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000012304
a.rottmann84e63352003-03-24 09:42:16 +000012305if $ac_cs_silent; then
12306 exec 6>/dev/null
12307 ac_configure_extra_args="$ac_configure_extra_args --silent"
12308fi
drh71eb93e2001-09-28 01:34:43 +000012309
12310_ACEOF
drh8b727472009-01-19 18:18:40 +000012311cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000012312if \$ac_cs_recheck; then
drhf922ca42015-05-14 15:39:18 +000012313 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
drh8b727472009-01-19 18:18:40 +000012314 shift
12315 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12316 CONFIG_SHELL='$SHELL'
12317 export CONFIG_SHELL
12318 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000012319fi
drh71eb93e2001-09-28 01:34:43 +000012320
a.rottmann84e63352003-03-24 09:42:16 +000012321_ACEOF
drh8b727472009-01-19 18:18:40 +000012322cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12323exec 5>>config.log
12324{
12325 echo
12326 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12327## Running $as_me. ##
12328_ASBOX
12329 $as_echo "$ac_log"
12330} >&5
a.rottmann84e63352003-03-24 09:42:16 +000012331
drh8b727472009-01-19 18:18:40 +000012332_ACEOF
12333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech636a9952008-05-05 22:52:56 +000012334#
drh8b727472009-01-19 18:18:40 +000012335# INIT-COMMANDS
mlcreech636a9952008-05-05 22:52:56 +000012336#
12337
12338
12339# The HP-UX ksh and POSIX shell print the target directory to stdout
12340# if CDPATH is set.
12341(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12342
12343sed_quote_subst='$sed_quote_subst'
12344double_quote_subst='$double_quote_subst'
12345delay_variable_subst='$delay_variable_subst'
12346macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12347macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12348enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12349enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12350pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12351enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12352host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12353host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12354host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12355build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12356build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12357build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12358SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12359Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12360GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12361EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12362FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12363LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12364NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12365LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12366max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12367ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12368exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12369lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12370lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12371lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12372reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12373reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
vapier6acb2cf2009-01-28 04:46:28 +000012374OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
mlcreech636a9952008-05-05 22:52:56 +000012375deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12376file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12377AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12378AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12379STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12380RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12381old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12382old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12383old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12384CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12385CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12386compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12387GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12388lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12389lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12390lt_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"`'
12391lt_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"`'
12392objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12393SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12394ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12395MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12396lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12397lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12398lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12399lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12400lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12401need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12402DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12403NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12404LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12405OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12406OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12407libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12408shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12409extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12410archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12411enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12412export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12413whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12414compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12415old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12416old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12417archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12418archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12419module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12420module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12421with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12422allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12423no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12424hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12425hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12426hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12427hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12428hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12429hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12430hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12431hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12432inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12433link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12434fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12435always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12436export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12437exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12438include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12439prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12440file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12441variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12442need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12443need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12444version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12445runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12446shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12447shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12448libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12449library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12450soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12451postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12452postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12453finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12454finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12455hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12456sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12457sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12458hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12459enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12460enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12461enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12462old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12463striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12464
12465LTCC='$LTCC'
12466LTCFLAGS='$LTCFLAGS'
12467compiler='$compiler_DEFAULT'
12468
12469# Quote evaled strings.
12470for var in SED \
12471GREP \
12472EGREP \
12473FGREP \
12474LD \
12475NM \
12476LN_S \
12477lt_SP2NL \
12478lt_NL2SP \
12479reload_flag \
vapier6acb2cf2009-01-28 04:46:28 +000012480OBJDUMP \
mlcreech636a9952008-05-05 22:52:56 +000012481deplibs_check_method \
12482file_magic_cmd \
12483AR \
12484AR_FLAGS \
12485STRIP \
12486RANLIB \
12487CC \
12488CFLAGS \
12489compiler \
12490lt_cv_sys_global_symbol_pipe \
12491lt_cv_sys_global_symbol_to_cdecl \
12492lt_cv_sys_global_symbol_to_c_name_address \
12493lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12494SHELL \
12495ECHO \
12496lt_prog_compiler_no_builtin_flag \
12497lt_prog_compiler_wl \
12498lt_prog_compiler_pic \
12499lt_prog_compiler_static \
12500lt_cv_prog_compiler_c_o \
12501need_locks \
12502DSYMUTIL \
12503NMEDIT \
12504LIPO \
12505OTOOL \
12506OTOOL64 \
12507shrext_cmds \
12508export_dynamic_flag_spec \
12509whole_archive_flag_spec \
12510compiler_needs_object \
12511with_gnu_ld \
12512allow_undefined_flag \
12513no_undefined_flag \
12514hardcode_libdir_flag_spec \
12515hardcode_libdir_flag_spec_ld \
12516hardcode_libdir_separator \
12517fix_srcfile_path \
12518exclude_expsyms \
12519include_expsyms \
12520file_list_spec \
12521variables_saved_for_relink \
12522libname_spec \
12523library_names_spec \
12524soname_spec \
12525finish_eval \
12526old_striplib \
12527striplib; do
12528 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12529 *[\\\\\\\`\\"\\\$]*)
12530 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12531 ;;
12532 *)
12533 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12534 ;;
12535 esac
12536done
12537
12538# Double-quote double-evaled strings.
12539for var in reload_cmds \
12540old_postinstall_cmds \
12541old_postuninstall_cmds \
12542old_archive_cmds \
12543extract_expsyms_cmds \
12544old_archive_from_new_cmds \
12545old_archive_from_expsyms_cmds \
12546archive_cmds \
12547archive_expsym_cmds \
12548module_cmds \
12549module_expsym_cmds \
12550export_symbols_cmds \
12551prelink_cmds \
12552postinstall_cmds \
12553postuninstall_cmds \
12554finish_cmds \
12555sys_lib_search_path_spec \
12556sys_lib_dlsearch_path_spec; do
12557 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12558 *[\\\\\\\`\\"\\\$]*)
12559 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12560 ;;
12561 *)
12562 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12563 ;;
12564 esac
12565done
12566
12567# Fix-up fallback echo if it was mangled by the above quoting rules.
12568case \$lt_ECHO in
12569*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12570 ;;
12571esac
12572
12573ac_aux_dir='$ac_aux_dir'
12574xsi_shell='$xsi_shell'
12575lt_shell_append='$lt_shell_append'
12576
12577# See if we are running on zsh, and set the options which allow our
12578# commands through without removal of \ escapes INIT.
12579if test -n "\${ZSH_VERSION+set}" ; then
12580 setopt NO_GLOB_SUBST
12581fi
12582
12583
12584 PACKAGE='$PACKAGE'
12585 VERSION='$VERSION'
12586 TIMESTAMP='$TIMESTAMP'
12587 RM='$RM'
12588 ofile='$ofile'
12589
12590
12591
12592
mlcreech94984912008-03-04 19:03:08 +000012593_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012594
drh8b727472009-01-19 18:18:40 +000012595cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000012596
drh8b727472009-01-19 18:18:40 +000012597# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000012598for ac_config_target in $ac_config_targets
12599do
drh8b727472009-01-19 18:18:40 +000012600 case $ac_config_target in
12601 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12602 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12603 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12604 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12605
drhf922ca42015-05-14 15:39:18 +000012606 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
drh71eb93e2001-09-28 01:34:43 +000012607 esac
12608done
12609
drh8b727472009-01-19 18:18:40 +000012610
drh71eb93e2001-09-28 01:34:43 +000012611# If the user did not use the arguments to specify the items to instantiate,
12612# then the envvar interface is used. Set only those that are not.
12613# We use the long form for the default assignment because of an extremely
12614# bizarre bug on SunOS 4.1.3.
12615if $ac_need_defaults; then
12616 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000012617 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000012618 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000012619fi
12620
a.rottmann84e63352003-03-24 09:42:16 +000012621# Have a temporary directory for convenience. Make it in the build tree
drh8b727472009-01-19 18:18:40 +000012622# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000012623# creating and moving files from /tmp can sometimes cause problems.
drh8b727472009-01-19 18:18:40 +000012624# Hook for its removal unless debugging.
12625# Note that there is a small window in which the directory will not be cleaned:
12626# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000012627$debug ||
12628{
drhf922ca42015-05-14 15:39:18 +000012629 tmp= ac_tmp=
drh8b727472009-01-19 18:18:40 +000012630 trap 'exit_status=$?
drhf922ca42015-05-14 15:39:18 +000012631 : "${ac_tmp:=$tmp}"
12632 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
drh8b727472009-01-19 18:18:40 +000012633' 0
drhf922ca42015-05-14 15:39:18 +000012634 trap 'as_fn_exit 1' 1 2 13 15
drh71eb93e2001-09-28 01:34:43 +000012635}
drh71eb93e2001-09-28 01:34:43 +000012636# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000012637
drh71eb93e2001-09-28 01:34:43 +000012638{
drh8b727472009-01-19 18:18:40 +000012639 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drhf922ca42015-05-14 15:39:18 +000012640 test -d "$tmp"
drh71eb93e2001-09-28 01:34:43 +000012641} ||
12642{
drh8b727472009-01-19 18:18:40 +000012643 tmp=./conf$$-$RANDOM
12644 (umask 077 && mkdir "$tmp")
drhf922ca42015-05-14 15:39:18 +000012645} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12646ac_tmp=$tmp
drh71eb93e2001-09-28 01:34:43 +000012647
drh8b727472009-01-19 18:18:40 +000012648# Set up the scripts for CONFIG_FILES section.
12649# No need to generate them if there are no CONFIG_FILES.
12650# This happens for instance with `./config.status config.h'.
12651if test -n "$CONFIG_FILES"; then
12652
12653
drhf922ca42015-05-14 15:39:18 +000012654ac_cr=`echo X | tr X '\015'`
12655# On cygwin, bash can eat \r inside `` if the user requested igncr.
12656# But we know of no other shell where ac_cr would be empty at this
12657# point, so we can use a bashism as a fallback.
12658if test "x$ac_cr" = x; then
12659 eval ac_cr=\$\'\\r\'
12660fi
drh8b727472009-01-19 18:18:40 +000012661ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12662if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
drh0fe0c462011-09-22 00:56:38 +000012663 ac_cs_awk_cr='\\r'
drh8b727472009-01-19 18:18:40 +000012664else
12665 ac_cs_awk_cr=$ac_cr
12666fi
12667
drhf922ca42015-05-14 15:39:18 +000012668echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000012669_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012670
mlcreech94984912008-03-04 19:03:08 +000012671
drh8b727472009-01-19 18:18:40 +000012672{
12673 echo "cat >conf$$subs.awk <<_ACEOF" &&
12674 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12675 echo "_ACEOF"
12676} >conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012677 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12678ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
drh8b727472009-01-19 18:18:40 +000012679ac_delim='%!_!# '
12680for ac_last_try in false false false false false :; do
12681 . ./conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012682 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000012683
drhf922ca42015-05-14 15:39:18 +000012684 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12685 if test $ac_delim_n = $ac_delim_num; then
drh8b727472009-01-19 18:18:40 +000012686 break
12687 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012688 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012689 else
12690 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000012691 fi
drh8b727472009-01-19 18:18:40 +000012692done
12693rm -f conf$$subs.sh
12694
12695cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012696cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012697_ACEOF
12698sed -n '
12699h
12700s/^/S["/; s/!.*/"]=/
12701p
12702g
12703s/^[^!]*!//
12704:repl
12705t repl
12706s/'"$ac_delim"'$//
12707t delim
12708:nl
12709h
drhf922ca42015-05-14 15:39:18 +000012710s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012711t more1
12712s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12713p
12714n
12715b repl
12716:more1
12717s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12718p
12719g
12720s/.\{148\}//
12721t nl
12722:delim
12723h
drhf922ca42015-05-14 15:39:18 +000012724s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012725t more2
12726s/["\\]/\\&/g; s/^/"/; s/$/"/
12727p
12728b
12729:more2
12730s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12731p
12732g
12733s/.\{148\}//
12734t delim
12735' <conf$$subs.awk | sed '
12736/^[^""]/{
12737 N
12738 s/\n//
12739}
12740' >>$CONFIG_STATUS || ac_write_fail=1
12741rm -f conf$$subs.awk
12742cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12743_ACAWK
drhf922ca42015-05-14 15:39:18 +000012744cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012745 for (key in S) S_is_set[key] = 1
12746 FS = ""
12747
12748}
12749{
12750 line = $ 0
12751 nfields = split(line, field, "@")
12752 substed = 0
12753 len = length(field[1])
12754 for (i = 2; i < nfields; i++) {
12755 key = field[i]
12756 keylen = length(key)
12757 if (S_is_set[key]) {
12758 value = S[key]
12759 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12760 len += length(value) + length(field[++i])
12761 substed = 1
12762 } else
12763 len += 1 + keylen
12764 }
12765
12766 print line
12767}
12768
12769_ACAWK
12770_ACEOF
12771cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12772if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12773 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12774else
12775 cat
drhf922ca42015-05-14 15:39:18 +000012776fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12777 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012778_ACEOF
12779
drhf922ca42015-05-14 15:39:18 +000012780# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12781# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
drh8b727472009-01-19 18:18:40 +000012782# trailing colons and then remove the whole line if VPATH becomes empty
12783# (actually we leave an empty line to preserve line numbers).
12784if test "x$srcdir" = x.; then
drhf922ca42015-05-14 15:39:18 +000012785 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12786h
12787s///
12788s/^/:/
12789s/[ ]*$/:/
12790s/:\$(srcdir):/:/g
12791s/:\${srcdir}:/:/g
12792s/:@srcdir@:/:/g
12793s/^:*//
drh8b727472009-01-19 18:18:40 +000012794s/:*$//
drhf922ca42015-05-14 15:39:18 +000012795x
12796s/\(=[ ]*\).*/\1/
12797G
12798s/\n//
drh8b727472009-01-19 18:18:40 +000012799s/^[^=]*=[ ]*$//
12800}'
12801fi
12802
12803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012804fi # test -n "$CONFIG_FILES"
12805
drh8b727472009-01-19 18:18:40 +000012806# Set up the scripts for CONFIG_HEADERS section.
12807# No need to generate them if there are no CONFIG_HEADERS.
12808# This happens for instance with `./config.status Makefile'.
12809if test -n "$CONFIG_HEADERS"; then
drhf922ca42015-05-14 15:39:18 +000012810cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
drh8b727472009-01-19 18:18:40 +000012811BEGIN {
mlcreech636a9952008-05-05 22:52:56 +000012812_ACEOF
drh8b727472009-01-19 18:18:40 +000012813
12814# Transform confdefs.h into an awk script `defines.awk', embedded as
12815# here-document in config.status, that substitutes the proper values into
12816# config.h.in to produce config.h.
12817
12818# Create a delimiter string that does not exist in confdefs.h, to ease
12819# handling of long lines.
12820ac_delim='%!_!# '
12821for ac_last_try in false false :; do
drhf922ca42015-05-14 15:39:18 +000012822 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12823 if test -z "$ac_tt"; then
drh8b727472009-01-19 18:18:40 +000012824 break
12825 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012826 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012827 else
12828 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12829 fi
12830done
12831
12832# For the awk script, D is an array of macro values keyed by name,
12833# likewise P contains macro parameters if any. Preserve backslash
12834# newline sequences.
12835
12836ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12837sed -n '
12838s/.\{148\}/&'"$ac_delim"'/g
12839t rset
12840:rset
12841s/^[ ]*#[ ]*define[ ][ ]*/ /
12842t def
12843d
12844:def
12845s/\\$//
12846t bsnl
12847s/["\\]/\\&/g
12848s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12849D["\1"]=" \3"/p
12850s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12851d
12852:bsnl
12853s/["\\]/\\&/g
12854s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12855D["\1"]=" \3\\\\\\n"\\/p
12856t cont
12857s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12858t cont
12859d
12860:cont
12861n
12862s/.\{148\}/&'"$ac_delim"'/g
12863t clear
12864:clear
12865s/\\$//
12866t bsnlc
12867s/["\\]/\\&/g; s/^/"/; s/$/"/p
12868d
12869:bsnlc
12870s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12871b cont
12872' <confdefs.h | sed '
12873s/'"$ac_delim"'/"\\\
12874"/g' >>$CONFIG_STATUS || ac_write_fail=1
12875
12876cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12877 for (key in D) D_is_set[key] = 1
12878 FS = ""
12879}
12880/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12881 line = \$ 0
12882 split(line, arg, " ")
12883 if (arg[1] == "#") {
12884 defundef = arg[2]
12885 mac1 = arg[3]
12886 } else {
12887 defundef = substr(arg[1], 2)
12888 mac1 = arg[2]
12889 }
12890 split(mac1, mac2, "(") #)
12891 macro = mac2[1]
drhf922ca42015-05-14 15:39:18 +000012892 prefix = substr(line, 1, index(line, defundef) - 1)
drh8b727472009-01-19 18:18:40 +000012893 if (D_is_set[macro]) {
12894 # Preserve the white space surrounding the "#".
drh8b727472009-01-19 18:18:40 +000012895 print prefix "define", macro P[macro] D[macro]
12896 next
12897 } else {
12898 # Replace #undef with comments. This is necessary, for example,
12899 # in the case of _POSIX_SOURCE, which is predefined and required
12900 # on some systems where configure will not decide to define it.
12901 if (defundef == "undef") {
drhf922ca42015-05-14 15:39:18 +000012902 print "/*", prefix defundef, macro, "*/"
drh8b727472009-01-19 18:18:40 +000012903 next
12904 }
12905 }
12906}
12907{ print }
12908_ACAWK
12909_ACEOF
12910cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012911 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012912fi # test -n "$CONFIG_HEADERS"
12913
12914
12915eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12916shift
12917for ac_tag
12918do
12919 case $ac_tag in
12920 :[FHLC]) ac_mode=$ac_tag; continue;;
12921 esac
12922 case $ac_mode$ac_tag in
12923 :[FHL]*:*);;
drhf922ca42015-05-14 15:39:18 +000012924 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000012925 :[FH]-) ac_tag=-:-;;
12926 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12927 esac
12928 ac_save_IFS=$IFS
12929 IFS=:
12930 set x $ac_tag
12931 IFS=$ac_save_IFS
12932 shift
12933 ac_file=$1
12934 shift
12935
12936 case $ac_mode in
12937 :L) ac_source=$1;;
12938 :[FH])
12939 ac_file_inputs=
12940 for ac_f
12941 do
12942 case $ac_f in
drhf922ca42015-05-14 15:39:18 +000012943 -) ac_f="$ac_tmp/stdin";;
drh8b727472009-01-19 18:18:40 +000012944 *) # Look for the file first in the build tree, then in the source tree
12945 # (if the path is not absolute). The absolute path cannot be DOS-style,
12946 # because $ac_f cannot contain `:'.
12947 test -f "$ac_f" ||
12948 case $ac_f in
12949 [\\/$]*) false;;
12950 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12951 esac ||
drhf922ca42015-05-14 15:39:18 +000012952 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000012953 esac
12954 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
drhf922ca42015-05-14 15:39:18 +000012955 as_fn_append ac_file_inputs " '$ac_f'"
drh8b727472009-01-19 18:18:40 +000012956 done
12957
12958 # Let's still pretend it is `configure' which instantiates (i.e., don't
12959 # use $as_me), people would be surprised to read:
12960 # /* config.h. Generated by config.status. */
12961 configure_input='Generated from '`
12962 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12963 `' by configure.'
12964 if test x"$ac_file" != x-; then
12965 configure_input="$ac_file. $configure_input"
drhf922ca42015-05-14 15:39:18 +000012966 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
drh8b727472009-01-19 18:18:40 +000012967$as_echo "$as_me: creating $ac_file" >&6;}
12968 fi
12969 # Neutralize special characters interpreted by sed in replacement strings.
12970 case $configure_input in #(
12971 *\&* | *\|* | *\\* )
12972 ac_sed_conf_input=`$as_echo "$configure_input" |
12973 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12974 *) ac_sed_conf_input=$configure_input;;
12975 esac
12976
12977 case $ac_tag in
drhf922ca42015-05-14 15:39:18 +000012978 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12979 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
drh8b727472009-01-19 18:18:40 +000012980 esac
12981 ;;
drh71eb93e2001-09-28 01:34:43 +000012982 esac
12983
drh8b727472009-01-19 18:18:40 +000012984 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000012985$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000012986 X"$ac_file" : 'X\(//\)[^/]' \| \
12987 X"$ac_file" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000012988 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12989$as_echo X"$ac_file" |
12990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12991 s//\1/
12992 q
12993 }
12994 /^X\(\/\/\)[^/].*/{
12995 s//\1/
12996 q
12997 }
12998 /^X\(\/\/\)$/{
12999 s//\1/
13000 q
13001 }
13002 /^X\(\/\).*/{
13003 s//\1/
13004 q
13005 }
13006 s/.*/./; q'`
drhf922ca42015-05-14 15:39:18 +000013007 as_dir="$ac_dir"; as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000013008 ac_builddir=.
13009
drh8b727472009-01-19 18:18:40 +000013010case "$ac_dir" in
13011.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13012*)
13013 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13014 # A ".." for each directory in $ac_dir_suffix.
13015 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13016 case $ac_top_builddir_sub in
13017 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13018 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13019 esac ;;
13020esac
13021ac_abs_top_builddir=$ac_pwd
13022ac_abs_builddir=$ac_pwd$ac_dir_suffix
13023# for backward compatibility:
13024ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000013025
13026case $srcdir in
drh8b727472009-01-19 18:18:40 +000013027 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000013028 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +000013029 ac_top_srcdir=$ac_top_builddir_sub
13030 ac_abs_top_srcdir=$ac_pwd ;;
13031 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000013032 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +000013033 ac_top_srcdir=$srcdir
13034 ac_abs_top_srcdir=$srcdir ;;
13035 *) # Relative name.
13036 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13037 ac_top_srcdir=$ac_top_build_prefix$srcdir
13038 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000013039esac
drh8b727472009-01-19 18:18:40 +000013040ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000013041
a.rottmann84e63352003-03-24 09:42:16 +000013042
drh8b727472009-01-19 18:18:40 +000013043 case $ac_mode in
13044 :F)
13045 #
13046 # CONFIG_FILE
13047 #
drh75897232000-05-29 14:26:00 +000013048
drh71eb93e2001-09-28 01:34:43 +000013049 case $INSTALL in
13050 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh8b727472009-01-19 18:18:40 +000013051 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000013052 esac
mlcreech94984912008-03-04 19:03:08 +000013053_ACEOF
drh8b727472009-01-19 18:18:40 +000013054
13055cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13056# If the template does not know about datarootdir, expand it.
13057# FIXME: This hack should be removed a few years after 2.60.
13058ac_datarootdir_hack=; ac_datarootdir_seen=
drh8b727472009-01-19 18:18:40 +000013059ac_sed_dataroot='
13060/datarootdir/ {
13061 p
13062 q
13063}
13064/@datadir@/p
13065/@docdir@/p
13066/@infodir@/p
13067/@localedir@/p
drhf922ca42015-05-14 15:39:18 +000013068/@mandir@/p'
drh8b727472009-01-19 18:18:40 +000013069case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13070*datarootdir*) ac_datarootdir_seen=yes;;
13071*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
drhf922ca42015-05-14 15:39:18 +000013072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
drh8b727472009-01-19 18:18:40 +000013073$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13074_ACEOF
13075cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13076 ac_datarootdir_hack='
13077 s&@datadir@&$datadir&g
13078 s&@docdir@&$docdir&g
13079 s&@infodir@&$infodir&g
13080 s&@localedir@&$localedir&g
13081 s&@mandir@&$mandir&g
drhf922ca42015-05-14 15:39:18 +000013082 s&\\\${datarootdir}&$datarootdir&g' ;;
drh8b727472009-01-19 18:18:40 +000013083esac
13084_ACEOF
13085
13086# Neutralize VPATH when `$srcdir' = `.'.
13087# Shell code in configure.ac might set extrasub.
13088# FIXME: do we really want to maintain this feature?
13089cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13090ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000013091$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000013092_ACEOF
drh8b727472009-01-19 18:18:40 +000013093cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013094:t
13095/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh8b727472009-01-19 18:18:40 +000013096s|@configure_input@|$ac_sed_conf_input|;t t
13097s&@top_builddir@&$ac_top_builddir_sub&;t t
13098s&@top_build_prefix@&$ac_top_build_prefix&;t t
13099s&@srcdir@&$ac_srcdir&;t t
13100s&@abs_srcdir@&$ac_abs_srcdir&;t t
13101s&@top_srcdir@&$ac_top_srcdir&;t t
13102s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13103s&@builddir@&$ac_builddir&;t t
13104s&@abs_builddir@&$ac_abs_builddir&;t t
13105s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13106s&@INSTALL@&$ac_INSTALL&;t t
13107$ac_datarootdir_hack
13108"
drhf922ca42015-05-14 15:39:18 +000013109eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13110 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000013111
drh8b727472009-01-19 18:18:40 +000013112test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
drhf922ca42015-05-14 15:39:18 +000013113 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13114 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13115 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13117which seems to be undefined. Please make sure it is defined" >&5
drh8b727472009-01-19 18:18:40 +000013118$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
drhf922ca42015-05-14 15:39:18 +000013119which seems to be undefined. Please make sure it is defined" >&2;}
drh866108f2008-05-13 00:57:21 +000013120
drhf922ca42015-05-14 15:39:18 +000013121 rm -f "$ac_tmp/stdin"
drh866108f2008-05-13 00:57:21 +000013122 case $ac_file in
drhf922ca42015-05-14 15:39:18 +000013123 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13124 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
drh8b727472009-01-19 18:18:40 +000013125 esac \
drhf922ca42015-05-14 15:39:18 +000013126 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013127 ;;
13128 :H)
13129 #
13130 # CONFIG_HEADER
13131 #
drh866108f2008-05-13 00:57:21 +000013132 if test x"$ac_file" != x-; then
drh8b727472009-01-19 18:18:40 +000013133 {
13134 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000013135 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13136 } >"$ac_tmp/config.h" \
13137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13138 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
drh8b727472009-01-19 18:18:40 +000013140$as_echo "$as_me: $ac_file is unchanged" >&6;}
drh866108f2008-05-13 00:57:21 +000013141 else
drh8b727472009-01-19 18:18:40 +000013142 rm -f "$ac_file"
drhf922ca42015-05-14 15:39:18 +000013143 mv "$ac_tmp/config.h" "$ac_file" \
13144 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000013145 fi
13146 else
drh8b727472009-01-19 18:18:40 +000013147 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000013148 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13149 || as_fn_error $? "could not create -" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000013150 fi
drh8b727472009-01-19 18:18:40 +000013151 ;;
drh866108f2008-05-13 00:57:21 +000013152
drhf922ca42015-05-14 15:39:18 +000013153 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
drh8b727472009-01-19 18:18:40 +000013154$as_echo "$as_me: executing $ac_file commands" >&6;}
13155 ;;
13156 esac
drh866108f2008-05-13 00:57:21 +000013157
13158
drh8b727472009-01-19 18:18:40 +000013159 case $ac_file$ac_mode in
13160 "libtool":C)
mlcreech636a9952008-05-05 22:52:56 +000013161
13162 # See if we are running on zsh, and set the options which allow our
13163 # commands through without removal of \ escapes.
13164 if test -n "${ZSH_VERSION+set}" ; then
13165 setopt NO_GLOB_SUBST
13166 fi
13167
13168 cfgfile="${ofile}T"
13169 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13170 $RM "$cfgfile"
13171
13172 cat <<_LT_EOF >> "$cfgfile"
13173#! $SHELL
13174
13175# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13176# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13177# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13178# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13179#
13180# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13181# 2006, 2007, 2008 Free Software Foundation, Inc.
13182# Written by Gordon Matzigkeit, 1996
13183#
13184# This file is part of GNU Libtool.
13185#
13186# GNU Libtool is free software; you can redistribute it and/or
13187# modify it under the terms of the GNU General Public License as
13188# published by the Free Software Foundation; either version 2 of
13189# the License, or (at your option) any later version.
13190#
13191# As a special exception to the GNU General Public License,
13192# if you distribute this file as part of a program or library that
13193# is built using GNU Libtool, you may include this file under the
13194# same distribution terms that you use for the rest of that program.
13195#
13196# GNU Libtool is distributed in the hope that it will be useful,
13197# but WITHOUT ANY WARRANTY; without even the implied warranty of
13198# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13199# GNU General Public License for more details.
13200#
13201# You should have received a copy of the GNU General Public License
13202# along with GNU Libtool; see the file COPYING. If not, a copy
13203# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13204# obtained by writing to the Free Software Foundation, Inc.,
13205# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13206
13207
13208# The names of the tagged configurations supported by this script.
13209available_tags=""
13210
13211# ### BEGIN LIBTOOL CONFIG
13212
13213# Which release of libtool.m4 was used?
13214macro_version=$macro_version
13215macro_revision=$macro_revision
13216
13217# Whether or not to build shared libraries.
13218build_libtool_libs=$enable_shared
13219
13220# Whether or not to build static libraries.
13221build_old_libs=$enable_static
13222
13223# What type of objects to build.
13224pic_mode=$pic_mode
13225
13226# Whether or not to optimize for fast installation.
13227fast_install=$enable_fast_install
13228
13229# The host system.
13230host_alias=$host_alias
13231host=$host
13232host_os=$host_os
13233
13234# The build system.
13235build_alias=$build_alias
13236build=$build
13237build_os=$build_os
13238
13239# A sed program that does not truncate output.
13240SED=$lt_SED
13241
13242# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13243Xsed="\$SED -e 1s/^X//"
13244
13245# A grep program that handles long lines.
13246GREP=$lt_GREP
13247
13248# An ERE matcher.
13249EGREP=$lt_EGREP
13250
13251# A literal string matcher.
13252FGREP=$lt_FGREP
13253
13254# A BSD- or MS-compatible name lister.
13255NM=$lt_NM
13256
13257# Whether we need soft or hard links.
13258LN_S=$lt_LN_S
13259
13260# What is the maximum length of a command?
13261max_cmd_len=$max_cmd_len
13262
13263# Object file suffix (normally "o").
13264objext=$ac_objext
13265
13266# Executable file suffix (normally "").
13267exeext=$exeext
13268
13269# whether the shell understands "unset".
13270lt_unset=$lt_unset
13271
13272# turn spaces into newlines.
13273SP2NL=$lt_lt_SP2NL
13274
13275# turn newlines into spaces.
13276NL2SP=$lt_lt_NL2SP
13277
13278# How to create reloadable object files.
13279reload_flag=$lt_reload_flag
13280reload_cmds=$lt_reload_cmds
13281
vapier6acb2cf2009-01-28 04:46:28 +000013282# An object symbol dumper.
13283OBJDUMP=$lt_OBJDUMP
13284
mlcreech636a9952008-05-05 22:52:56 +000013285# Method to check whether dependent libraries are shared objects.
13286deplibs_check_method=$lt_deplibs_check_method
13287
13288# Command to use when deplibs_check_method == "file_magic".
13289file_magic_cmd=$lt_file_magic_cmd
13290
13291# The archiver.
13292AR=$lt_AR
13293AR_FLAGS=$lt_AR_FLAGS
13294
13295# A symbol stripping program.
13296STRIP=$lt_STRIP
13297
13298# Commands used to install an old-style archive.
13299RANLIB=$lt_RANLIB
13300old_postinstall_cmds=$lt_old_postinstall_cmds
13301old_postuninstall_cmds=$lt_old_postuninstall_cmds
13302
13303# A C compiler.
13304LTCC=$lt_CC
13305
13306# LTCC compiler flags.
13307LTCFLAGS=$lt_CFLAGS
13308
13309# Take the output of nm and produce a listing of raw symbols and C names.
13310global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13311
13312# Transform the output of nm in a proper C declaration.
13313global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13314
13315# Transform the output of nm in a C name address pair.
13316global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13317
13318# Transform the output of nm in a C name address pair when lib prefix is needed.
13319global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13320
13321# The name of the directory that contains temporary libtool files.
13322objdir=$objdir
13323
13324# Shell to use when invoking shell scripts.
13325SHELL=$lt_SHELL
13326
13327# An echo program that does not interpret backslashes.
13328ECHO=$lt_ECHO
13329
13330# Used to examine libraries when file_magic_cmd begins with "file".
13331MAGIC_CMD=$MAGIC_CMD
13332
13333# Must we lock files when doing compilation?
13334need_locks=$lt_need_locks
13335
13336# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13337DSYMUTIL=$lt_DSYMUTIL
13338
13339# Tool to change global to local symbols on Mac OS X.
13340NMEDIT=$lt_NMEDIT
13341
13342# Tool to manipulate fat objects and archives on Mac OS X.
13343LIPO=$lt_LIPO
13344
13345# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13346OTOOL=$lt_OTOOL
13347
13348# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13349OTOOL64=$lt_OTOOL64
13350
13351# Old archive suffix (normally "a").
13352libext=$libext
13353
13354# Shared library suffix (normally ".so").
13355shrext_cmds=$lt_shrext_cmds
13356
13357# The commands to extract the exported symbol list from a shared archive.
13358extract_expsyms_cmds=$lt_extract_expsyms_cmds
13359
13360# Variables whose values should be saved in libtool wrapper scripts and
13361# restored at link time.
13362variables_saved_for_relink=$lt_variables_saved_for_relink
13363
13364# Do we need the "lib" prefix for modules?
13365need_lib_prefix=$need_lib_prefix
13366
13367# Do we need a version for libraries?
13368need_version=$need_version
13369
13370# Library versioning type.
13371version_type=$version_type
13372
13373# Shared library runtime path variable.
13374runpath_var=$runpath_var
13375
13376# Shared library path variable.
13377shlibpath_var=$shlibpath_var
13378
13379# Is shlibpath searched before the hard-coded library search path?
13380shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13381
13382# Format of library name prefix.
13383libname_spec=$lt_libname_spec
13384
13385# List of archive names. First name is the real one, the rest are links.
13386# The last name is the one that the linker finds with -lNAME
13387library_names_spec=$lt_library_names_spec
13388
13389# The coded name of the library, if different from the real name.
13390soname_spec=$lt_soname_spec
13391
13392# Command to use after installation of a shared archive.
13393postinstall_cmds=$lt_postinstall_cmds
13394
13395# Command to use after uninstallation of a shared archive.
13396postuninstall_cmds=$lt_postuninstall_cmds
13397
13398# Commands used to finish a libtool library installation in a directory.
13399finish_cmds=$lt_finish_cmds
13400
13401# As "finish_cmds", except a single script fragment to be evaled but
13402# not shown.
13403finish_eval=$lt_finish_eval
13404
13405# Whether we should hardcode library paths into libraries.
13406hardcode_into_libs=$hardcode_into_libs
13407
13408# Compile-time system search path for libraries.
13409sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13410
13411# Run-time system search path for libraries.
13412sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13413
13414# Whether dlopen is supported.
13415dlopen_support=$enable_dlopen
13416
13417# Whether dlopen of programs is supported.
13418dlopen_self=$enable_dlopen_self
13419
13420# Whether dlopen of statically linked programs is supported.
13421dlopen_self_static=$enable_dlopen_self_static
13422
13423# Commands to strip libraries.
13424old_striplib=$lt_old_striplib
13425striplib=$lt_striplib
13426
13427
13428# The linker used to build libraries.
13429LD=$lt_LD
13430
13431# Commands used to build an old-style archive.
13432old_archive_cmds=$lt_old_archive_cmds
13433
13434# A language specific compiler.
13435CC=$lt_compiler
13436
13437# Is the compiler the GNU compiler?
13438with_gcc=$GCC
13439
13440# Compiler flag to turn off builtin functions.
13441no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13442
13443# How to pass a linker flag through the compiler.
13444wl=$lt_lt_prog_compiler_wl
13445
13446# Additional compiler flags for building library objects.
13447pic_flag=$lt_lt_prog_compiler_pic
13448
13449# Compiler flag to prevent dynamic linking.
13450link_static_flag=$lt_lt_prog_compiler_static
13451
13452# Does compiler simultaneously support -c and -o options?
13453compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13454
13455# Whether or not to add -lc for building shared libraries.
13456build_libtool_need_lc=$archive_cmds_need_lc
13457
13458# Whether or not to disallow shared libs when runtime libs are static.
13459allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13460
13461# Compiler flag to allow reflexive dlopens.
13462export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13463
13464# Compiler flag to generate shared objects directly from archives.
13465whole_archive_flag_spec=$lt_whole_archive_flag_spec
13466
13467# Whether the compiler copes with passing no objects directly.
13468compiler_needs_object=$lt_compiler_needs_object
13469
13470# Create an old-style archive from a shared archive.
13471old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13472
13473# Create a temporary old-style archive to link instead of a shared archive.
13474old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13475
13476# Commands used to build a shared archive.
13477archive_cmds=$lt_archive_cmds
13478archive_expsym_cmds=$lt_archive_expsym_cmds
13479
13480# Commands used to build a loadable module if different from building
13481# a shared archive.
13482module_cmds=$lt_module_cmds
13483module_expsym_cmds=$lt_module_expsym_cmds
13484
13485# Whether we are building with GNU ld or not.
13486with_gnu_ld=$lt_with_gnu_ld
13487
13488# Flag that allows shared libraries with undefined symbols to be built.
13489allow_undefined_flag=$lt_allow_undefined_flag
13490
13491# Flag that enforces no undefined symbols.
13492no_undefined_flag=$lt_no_undefined_flag
13493
13494# Flag to hardcode \$libdir into a binary during linking.
13495# This must work even if \$libdir does not exist
13496hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13497
13498# If ld is used when linking, flag to hardcode \$libdir into a binary
13499# during linking. This must work even if \$libdir does not exist.
13500hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13501
13502# Whether we need a single "-rpath" flag with a separated argument.
13503hardcode_libdir_separator=$lt_hardcode_libdir_separator
13504
13505# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13506# DIR into the resulting binary.
13507hardcode_direct=$hardcode_direct
13508
13509# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13510# DIR into the resulting binary and the resulting library dependency is
13511# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13512# library is relocated.
13513hardcode_direct_absolute=$hardcode_direct_absolute
13514
13515# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13516# into the resulting binary.
13517hardcode_minus_L=$hardcode_minus_L
13518
13519# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13520# into the resulting binary.
13521hardcode_shlibpath_var=$hardcode_shlibpath_var
13522
13523# Set to "yes" if building a shared library automatically hardcodes DIR
13524# into the library and all subsequent libraries and executables linked
13525# against it.
13526hardcode_automatic=$hardcode_automatic
13527
13528# Set to yes if linker adds runtime paths of dependent libraries
13529# to runtime path list.
13530inherit_rpath=$inherit_rpath
13531
13532# Whether libtool must link a program against all its dependency libraries.
13533link_all_deplibs=$link_all_deplibs
13534
13535# Fix the shell variable \$srcfile for the compiler.
13536fix_srcfile_path=$lt_fix_srcfile_path
13537
13538# Set to "yes" if exported symbols are required.
13539always_export_symbols=$always_export_symbols
13540
13541# The commands to list exported symbols.
13542export_symbols_cmds=$lt_export_symbols_cmds
13543
13544# Symbols that should not be listed in the preloaded symbols.
13545exclude_expsyms=$lt_exclude_expsyms
13546
13547# Symbols that must always be exported.
13548include_expsyms=$lt_include_expsyms
13549
13550# Commands necessary for linking programs (against libraries) with templates.
13551prelink_cmds=$lt_prelink_cmds
13552
13553# Specify filename containing input files.
13554file_list_spec=$lt_file_list_spec
13555
13556# How to hardcode a shared library path into an executable.
13557hardcode_action=$hardcode_action
13558
13559# ### END LIBTOOL CONFIG
13560
13561_LT_EOF
13562
13563 case $host_os in
13564 aix3*)
13565 cat <<\_LT_EOF >> "$cfgfile"
13566# AIX sometimes has problems with the GCC collect2 program. For some
13567# reason, if we set the COLLECT_NAMES environment variable, the problems
13568# vanish in a puff of smoke.
13569if test "X${COLLECT_NAMES+set}" != Xset; then
13570 COLLECT_NAMES=
13571 export COLLECT_NAMES
13572fi
13573_LT_EOF
13574 ;;
13575 esac
13576
13577
13578ltmain="$ac_aux_dir/ltmain.sh"
13579
13580
13581 # We use sed instead of cat because bash on DJGPP gets confused if
13582 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13583 # text mode, it properly converts lines to CR/LF. This bash problem
13584 # is reportedly fixed, but why not run on old versions too?
13585 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13586 || (rm -f "$cfgfile"; exit 1)
13587
13588 case $xsi_shell in
13589 yes)
13590 cat << \_LT_EOF >> "$cfgfile"
13591
13592# func_dirname file append nondir_replacement
13593# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13594# otherwise set result to NONDIR_REPLACEMENT.
13595func_dirname ()
13596{
13597 case ${1} in
13598 */*) func_dirname_result="${1%/*}${2}" ;;
13599 * ) func_dirname_result="${3}" ;;
13600 esac
13601}
13602
13603# func_basename file
13604func_basename ()
13605{
13606 func_basename_result="${1##*/}"
13607}
13608
13609# func_dirname_and_basename file append nondir_replacement
13610# perform func_basename and func_dirname in a single function
13611# call:
13612# dirname: Compute the dirname of FILE. If nonempty,
13613# add APPEND to the result, otherwise set result
13614# to NONDIR_REPLACEMENT.
13615# value returned in "$func_dirname_result"
13616# basename: Compute filename of FILE.
13617# value retuned in "$func_basename_result"
13618# Implementation must be kept synchronized with func_dirname
13619# and func_basename. For efficiency, we do not delegate to
13620# those functions but instead duplicate the functionality here.
13621func_dirname_and_basename ()
13622{
13623 case ${1} in
13624 */*) func_dirname_result="${1%/*}${2}" ;;
13625 * ) func_dirname_result="${3}" ;;
13626 esac
13627 func_basename_result="${1##*/}"
13628}
13629
13630# func_stripname prefix suffix name
13631# strip PREFIX and SUFFIX off of NAME.
13632# PREFIX and SUFFIX must not contain globbing or regex special
13633# characters, hashes, percent signs, but SUFFIX may contain a leading
13634# dot (in which case that matches only a dot).
13635func_stripname ()
13636{
13637 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13638 # positional parameters, so assign one to ordinary parameter first.
13639 func_stripname_result=${3}
13640 func_stripname_result=${func_stripname_result#"${1}"}
13641 func_stripname_result=${func_stripname_result%"${2}"}
13642}
13643
13644# func_opt_split
13645func_opt_split ()
13646{
13647 func_opt_split_opt=${1%%=*}
13648 func_opt_split_arg=${1#*=}
13649}
13650
13651# func_lo2o object
13652func_lo2o ()
13653{
13654 case ${1} in
13655 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13656 *) func_lo2o_result=${1} ;;
13657 esac
13658}
13659
13660# func_xform libobj-or-source
13661func_xform ()
13662{
13663 func_xform_result=${1%.*}.lo
13664}
13665
13666# func_arith arithmetic-term...
13667func_arith ()
13668{
13669 func_arith_result=$(( $* ))
13670}
13671
13672# func_len string
13673# STRING may not start with a hyphen.
13674func_len ()
13675{
13676 func_len_result=${#1}
13677}
13678
13679_LT_EOF
13680 ;;
13681 *) # Bourne compatible functions.
13682 cat << \_LT_EOF >> "$cfgfile"
13683
13684# func_dirname file append nondir_replacement
13685# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13686# otherwise set result to NONDIR_REPLACEMENT.
13687func_dirname ()
13688{
13689 # Extract subdirectory from the argument.
13690 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13691 if test "X$func_dirname_result" = "X${1}"; then
13692 func_dirname_result="${3}"
13693 else
13694 func_dirname_result="$func_dirname_result${2}"
13695 fi
13696}
13697
13698# func_basename file
13699func_basename ()
13700{
13701 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13702}
13703
13704
13705# func_stripname prefix suffix name
13706# strip PREFIX and SUFFIX off of NAME.
13707# PREFIX and SUFFIX must not contain globbing or regex special
13708# characters, hashes, percent signs, but SUFFIX may contain a leading
13709# dot (in which case that matches only a dot).
13710# func_strip_suffix prefix name
13711func_stripname ()
13712{
13713 case ${2} in
13714 .*) func_stripname_result=`$ECHO "X${3}" \
13715 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13716 *) func_stripname_result=`$ECHO "X${3}" \
13717 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13718 esac
13719}
13720
13721# sed scripts:
13722my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13723my_sed_long_arg='1s/^-[^=]*=//'
13724
13725# func_opt_split
13726func_opt_split ()
13727{
13728 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13729 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13730}
13731
13732# func_lo2o object
13733func_lo2o ()
13734{
13735 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13736}
13737
13738# func_xform libobj-or-source
13739func_xform ()
13740{
13741 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13742}
13743
13744# func_arith arithmetic-term...
13745func_arith ()
13746{
13747 func_arith_result=`expr "$@"`
13748}
13749
13750# func_len string
13751# STRING may not start with a hyphen.
13752func_len ()
13753{
13754 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13755}
13756
13757_LT_EOF
13758esac
13759
13760case $lt_shell_append in
13761 yes)
13762 cat << \_LT_EOF >> "$cfgfile"
13763
13764# func_append var value
13765# Append VALUE to the end of shell variable VAR.
13766func_append ()
13767{
13768 eval "$1+=\$2"
13769}
13770_LT_EOF
13771 ;;
13772 *)
13773 cat << \_LT_EOF >> "$cfgfile"
13774
13775# func_append var value
13776# Append VALUE to the end of shell variable VAR.
13777func_append ()
13778{
13779 eval "$1=\$$1\$2"
13780}
13781
13782_LT_EOF
13783 ;;
13784 esac
13785
13786
13787 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13788 || (rm -f "$cfgfile"; exit 1)
13789
13790 mv -f "$cfgfile" "$ofile" ||
13791 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13792 chmod +x "$ofile"
13793
13794 ;;
mlcreech94984912008-03-04 19:03:08 +000013795
drh8b727472009-01-19 18:18:40 +000013796 esac
13797done # for ac_tag
13798
drh71eb93e2001-09-28 01:34:43 +000013799
drhf922ca42015-05-14 15:39:18 +000013800as_fn_exit 0
a.rottmann84e63352003-03-24 09:42:16 +000013801_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013802ac_clean_files=$ac_clean_files_save
13803
drh8b727472009-01-19 18:18:40 +000013804test $ac_write_fail = 0 ||
drhf922ca42015-05-14 15:39:18 +000013805 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013806
a.rottmann84e63352003-03-24 09:42:16 +000013807
drh71eb93e2001-09-28 01:34:43 +000013808# configure is writing to config.log, and then calls config.status.
13809# config.status does its own redirection, appending to config.log.
13810# Unfortunately, on DOS this fails, as config.log is still kept open
13811# by configure, so config.status won't be able to write to it; its
13812# output is simply discarded. So we exec the FD to /dev/null,
13813# effectively closing config.log, so it can be properly (re)opened and
13814# appended to by config.status. When coming back to configure, we
13815# need to make the FD available again.
13816if test "$no_create" != yes; then
13817 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000013818 ac_config_status_args=
13819 test "$silent" = yes &&
13820 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000013821 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000013822 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000013823 exec 5>>config.log
13824 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13825 # would make configure fail if this is the last instruction.
drhf922ca42015-05-14 15:39:18 +000013826 $ac_cs_success || as_fn_exit 1
drh71eb93e2001-09-28 01:34:43 +000013827fi
drh8b727472009-01-19 18:18:40 +000013828if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
drhf922ca42015-05-14 15:39:18 +000013829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13830$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
drh8b727472009-01-19 18:18:40 +000013831fi
drhbc7a22d2009-10-13 22:47:13 +000013832