blob: f4d4c48077c83fd2045a35bc84403e4a11ed1aab [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.
drhc0a195b2016-05-20 15:24:14 +00003# Generated by GNU Autoconf 2.69 for sqlite 3.14.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'
drhc0a195b2016-05-20 15:24:14 +0000729PACKAGE_VERSION='3.14.0'
730PACKAGE_STRING='sqlite 3.14.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
drhce1d9f52015-10-09 12:48:33 +0000906enable_fts3
907enable_fts4
908enable_fts5
909enable_json1
910enable_rtree
drh5e18d402016-05-03 13:14:18 +0000911enable_session
drh8b727472009-01-19 18:18:40 +0000912enable_gcov
913'
914 ac_precious_vars='build_alias
915host_alias
916target_alias
917CC
918CFLAGS
919LDFLAGS
920LIBS
921CPPFLAGS
vapier6acb2cf2009-01-28 04:46:28 +0000922CPP
923TCLLIBDIR'
drh8b727472009-01-19 18:18:40 +0000924
drh75897232000-05-29 14:26:00 +0000925
926# Initialize some variables set by options.
drh71eb93e2001-09-28 01:34:43 +0000927ac_init_help=
928ac_init_version=false
drh8b727472009-01-19 18:18:40 +0000929ac_unrecognized_opts=
930ac_unrecognized_sep=
drh75897232000-05-29 14:26:00 +0000931# The variables have the same names as the options, with
932# dashes changed to underlines.
drh71eb93e2001-09-28 01:34:43 +0000933cache_file=/dev/null
drh75897232000-05-29 14:26:00 +0000934exec_prefix=NONE
drh75897232000-05-29 14:26:00 +0000935no_create=
drh75897232000-05-29 14:26:00 +0000936no_recursion=
937prefix=NONE
938program_prefix=NONE
939program_suffix=NONE
940program_transform_name=s,x,x,
941silent=
942site=
943srcdir=
drh75897232000-05-29 14:26:00 +0000944verbose=
945x_includes=NONE
946x_libraries=NONE
drh71eb93e2001-09-28 01:34:43 +0000947
948# Installation directory options.
949# These are left unexpanded so users can "make install exec_prefix=/foo"
950# and all the variables that are supposed to be based on exec_prefix
951# by default will actually change.
952# Use braces instead of parens because sh, perl, etc. also accept them.
drh8b727472009-01-19 18:18:40 +0000953# (The list follows the same order as the GNU Coding Standards.)
drh75897232000-05-29 14:26:00 +0000954bindir='${exec_prefix}/bin'
955sbindir='${exec_prefix}/sbin'
956libexecdir='${exec_prefix}/libexec'
drh8b727472009-01-19 18:18:40 +0000957datarootdir='${prefix}/share'
958datadir='${datarootdir}'
drh75897232000-05-29 14:26:00 +0000959sysconfdir='${prefix}/etc'
960sharedstatedir='${prefix}/com'
961localstatedir='${prefix}/var'
drh75897232000-05-29 14:26:00 +0000962includedir='${prefix}/include'
963oldincludedir='/usr/include'
drh8b727472009-01-19 18:18:40 +0000964docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
965infodir='${datarootdir}/info'
966htmldir='${docdir}'
967dvidir='${docdir}'
968pdfdir='${docdir}'
969psdir='${docdir}'
970libdir='${exec_prefix}/lib'
971localedir='${datarootdir}/locale'
972mandir='${datarootdir}/man'
drh75897232000-05-29 14:26:00 +0000973
drh75897232000-05-29 14:26:00 +0000974ac_prev=
drh8b727472009-01-19 18:18:40 +0000975ac_dashdash=
drh75897232000-05-29 14:26:00 +0000976for ac_option
977do
drh75897232000-05-29 14:26:00 +0000978 # If the previous option needs an argument, assign it.
979 if test -n "$ac_prev"; then
drh8b727472009-01-19 18:18:40 +0000980 eval $ac_prev=\$ac_option
drh75897232000-05-29 14:26:00 +0000981 ac_prev=
982 continue
983 fi
984
drh8b727472009-01-19 18:18:40 +0000985 case $ac_option in
drhf922ca42015-05-14 15:39:18 +0000986 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
987 *=) ac_optarg= ;;
988 *) ac_optarg=yes ;;
drh8b727472009-01-19 18:18:40 +0000989 esac
drh75897232000-05-29 14:26:00 +0000990
991 # Accept the important Cygnus configure options, so we can diagnose typos.
992
drh8b727472009-01-19 18:18:40 +0000993 case $ac_dashdash$ac_option in
994 --)
995 ac_dashdash=yes ;;
drh75897232000-05-29 14:26:00 +0000996
997 -bindir | --bindir | --bindi | --bind | --bin | --bi)
998 ac_prev=bindir ;;
999 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
drh71eb93e2001-09-28 01:34:43 +00001000 bindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001001
1002 -build | --build | --buil | --bui | --bu)
drh71eb93e2001-09-28 01:34:43 +00001003 ac_prev=build_alias ;;
drh75897232000-05-29 14:26:00 +00001004 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
drh71eb93e2001-09-28 01:34:43 +00001005 build_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001006
1007 -cache-file | --cache-file | --cache-fil | --cache-fi \
1008 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1009 ac_prev=cache_file ;;
1010 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1011 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
drh71eb93e2001-09-28 01:34:43 +00001012 cache_file=$ac_optarg ;;
1013
1014 --config-cache | -C)
1015 cache_file=config.cache ;;
drh75897232000-05-29 14:26:00 +00001016
drh8b727472009-01-19 18:18:40 +00001017 -datadir | --datadir | --datadi | --datad)
drh75897232000-05-29 14:26:00 +00001018 ac_prev=datadir ;;
drh8b727472009-01-19 18:18:40 +00001019 -datadir=* | --datadir=* | --datadi=* | --datad=*)
drh71eb93e2001-09-28 01:34:43 +00001020 datadir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001021
drh8b727472009-01-19 18:18:40 +00001022 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1023 | --dataroo | --dataro | --datar)
1024 ac_prev=datarootdir ;;
1025 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1026 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1027 datarootdir=$ac_optarg ;;
1028
drh75897232000-05-29 14:26:00 +00001029 -disable-* | --disable-*)
drh8b727472009-01-19 18:18:40 +00001030 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001031 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001032 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001033 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001034 ac_useropt_orig=$ac_useropt
1035 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036 case $ac_user_opts in
1037 *"
1038"enable_$ac_useropt"
1039"*) ;;
1040 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1041 ac_unrecognized_sep=', ';;
1042 esac
1043 eval enable_$ac_useropt=no ;;
1044
1045 -docdir | --docdir | --docdi | --doc | --do)
1046 ac_prev=docdir ;;
1047 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1048 docdir=$ac_optarg ;;
1049
1050 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1051 ac_prev=dvidir ;;
1052 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1053 dvidir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001054
1055 -enable-* | --enable-*)
drh8b727472009-01-19 18:18:40 +00001056 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001057 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001059 as_fn_error $? "invalid feature name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001060 ac_useropt_orig=$ac_useropt
1061 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1063 *"
1064"enable_$ac_useropt"
1065"*) ;;
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001068 esac
drh8b727472009-01-19 18:18:40 +00001069 eval enable_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001070
1071 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1072 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1073 | --exec | --exe | --ex)
1074 ac_prev=exec_prefix ;;
1075 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1076 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1077 | --exec=* | --exe=* | --ex=*)
drh71eb93e2001-09-28 01:34:43 +00001078 exec_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001079
1080 -gas | --gas | --ga | --g)
1081 # Obsolete; use --with-gas.
1082 with_gas=yes ;;
1083
drh71eb93e2001-09-28 01:34:43 +00001084 -help | --help | --hel | --he | -h)
1085 ac_init_help=long ;;
1086 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1087 ac_init_help=recursive ;;
1088 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1089 ac_init_help=short ;;
drh75897232000-05-29 14:26:00 +00001090
1091 -host | --host | --hos | --ho)
drh71eb93e2001-09-28 01:34:43 +00001092 ac_prev=host_alias ;;
drh75897232000-05-29 14:26:00 +00001093 -host=* | --host=* | --hos=* | --ho=*)
drh71eb93e2001-09-28 01:34:43 +00001094 host_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001095
drh8b727472009-01-19 18:18:40 +00001096 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1097 ac_prev=htmldir ;;
1098 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1099 | --ht=*)
1100 htmldir=$ac_optarg ;;
1101
drh75897232000-05-29 14:26:00 +00001102 -includedir | --includedir | --includedi | --included | --include \
1103 | --includ | --inclu | --incl | --inc)
1104 ac_prev=includedir ;;
1105 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1106 | --includ=* | --inclu=* | --incl=* | --inc=*)
drh71eb93e2001-09-28 01:34:43 +00001107 includedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001108
1109 -infodir | --infodir | --infodi | --infod | --info | --inf)
1110 ac_prev=infodir ;;
1111 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
drh71eb93e2001-09-28 01:34:43 +00001112 infodir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001113
1114 -libdir | --libdir | --libdi | --libd)
1115 ac_prev=libdir ;;
1116 -libdir=* | --libdir=* | --libdi=* | --libd=*)
drh71eb93e2001-09-28 01:34:43 +00001117 libdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001118
1119 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1120 | --libexe | --libex | --libe)
1121 ac_prev=libexecdir ;;
1122 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1123 | --libexe=* | --libex=* | --libe=*)
drh71eb93e2001-09-28 01:34:43 +00001124 libexecdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001125
drh8b727472009-01-19 18:18:40 +00001126 -localedir | --localedir | --localedi | --localed | --locale)
1127 ac_prev=localedir ;;
1128 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1129 localedir=$ac_optarg ;;
1130
drh75897232000-05-29 14:26:00 +00001131 -localstatedir | --localstatedir | --localstatedi | --localstated \
drh8b727472009-01-19 18:18:40 +00001132 | --localstate | --localstat | --localsta | --localst | --locals)
drh75897232000-05-29 14:26:00 +00001133 ac_prev=localstatedir ;;
1134 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
drh8b727472009-01-19 18:18:40 +00001135 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
drh71eb93e2001-09-28 01:34:43 +00001136 localstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001137
1138 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1139 ac_prev=mandir ;;
1140 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
drh71eb93e2001-09-28 01:34:43 +00001141 mandir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001142
1143 -nfp | --nfp | --nf)
1144 # Obsolete; use --without-fp.
1145 with_fp=no ;;
1146
1147 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
a.rottmann84e63352003-03-24 09:42:16 +00001148 | --no-cr | --no-c | -n)
drh75897232000-05-29 14:26:00 +00001149 no_create=yes ;;
1150
1151 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1152 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1153 no_recursion=yes ;;
1154
1155 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1156 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1157 | --oldin | --oldi | --old | --ol | --o)
1158 ac_prev=oldincludedir ;;
1159 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1160 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1161 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
drh71eb93e2001-09-28 01:34:43 +00001162 oldincludedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001163
1164 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1165 ac_prev=prefix ;;
1166 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
drh71eb93e2001-09-28 01:34:43 +00001167 prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001168
1169 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1170 | --program-pre | --program-pr | --program-p)
1171 ac_prev=program_prefix ;;
1172 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1173 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
drh71eb93e2001-09-28 01:34:43 +00001174 program_prefix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001175
1176 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1177 | --program-suf | --program-su | --program-s)
1178 ac_prev=program_suffix ;;
1179 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1180 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
drh71eb93e2001-09-28 01:34:43 +00001181 program_suffix=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001182
1183 -program-transform-name | --program-transform-name \
1184 | --program-transform-nam | --program-transform-na \
1185 | --program-transform-n | --program-transform- \
1186 | --program-transform | --program-transfor \
1187 | --program-transfo | --program-transf \
1188 | --program-trans | --program-tran \
1189 | --progr-tra | --program-tr | --program-t)
1190 ac_prev=program_transform_name ;;
1191 -program-transform-name=* | --program-transform-name=* \
1192 | --program-transform-nam=* | --program-transform-na=* \
1193 | --program-transform-n=* | --program-transform-=* \
1194 | --program-transform=* | --program-transfor=* \
1195 | --program-transfo=* | --program-transf=* \
1196 | --program-trans=* | --program-tran=* \
1197 | --progr-tra=* | --program-tr=* | --program-t=*)
drh71eb93e2001-09-28 01:34:43 +00001198 program_transform_name=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001199
drh8b727472009-01-19 18:18:40 +00001200 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1201 ac_prev=pdfdir ;;
1202 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1203 pdfdir=$ac_optarg ;;
1204
1205 -psdir | --psdir | --psdi | --psd | --ps)
1206 ac_prev=psdir ;;
1207 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1208 psdir=$ac_optarg ;;
1209
drh75897232000-05-29 14:26:00 +00001210 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1211 | -silent | --silent | --silen | --sile | --sil)
1212 silent=yes ;;
1213
1214 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1215 ac_prev=sbindir ;;
1216 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1217 | --sbi=* | --sb=*)
drh71eb93e2001-09-28 01:34:43 +00001218 sbindir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001219
1220 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1221 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1222 | --sharedst | --shareds | --shared | --share | --shar \
1223 | --sha | --sh)
1224 ac_prev=sharedstatedir ;;
1225 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1226 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1227 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1228 | --sha=* | --sh=*)
drh71eb93e2001-09-28 01:34:43 +00001229 sharedstatedir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001230
1231 -site | --site | --sit)
1232 ac_prev=site ;;
1233 -site=* | --site=* | --sit=*)
drh71eb93e2001-09-28 01:34:43 +00001234 site=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001235
1236 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1237 ac_prev=srcdir ;;
1238 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
drh71eb93e2001-09-28 01:34:43 +00001239 srcdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001240
1241 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1242 | --syscon | --sysco | --sysc | --sys | --sy)
1243 ac_prev=sysconfdir ;;
1244 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1245 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
drh71eb93e2001-09-28 01:34:43 +00001246 sysconfdir=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001247
1248 -target | --target | --targe | --targ | --tar | --ta | --t)
drh71eb93e2001-09-28 01:34:43 +00001249 ac_prev=target_alias ;;
drh75897232000-05-29 14:26:00 +00001250 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
drh71eb93e2001-09-28 01:34:43 +00001251 target_alias=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001252
1253 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1254 verbose=yes ;;
1255
drh71eb93e2001-09-28 01:34:43 +00001256 -version | --version | --versio | --versi | --vers | -V)
1257 ac_init_version=: ;;
drh75897232000-05-29 14:26:00 +00001258
1259 -with-* | --with-*)
drh8b727472009-01-19 18:18:40 +00001260 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
drh75897232000-05-29 14:26:00 +00001261 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001262 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001263 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001264 ac_useropt_orig=$ac_useropt
1265 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1266 case $ac_user_opts in
1267 *"
1268"with_$ac_useropt"
1269"*) ;;
1270 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1271 ac_unrecognized_sep=', ';;
mlcreech636a9952008-05-05 22:52:56 +00001272 esac
drh8b727472009-01-19 18:18:40 +00001273 eval with_$ac_useropt=\$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001274
1275 -without-* | --without-*)
drh8b727472009-01-19 18:18:40 +00001276 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
drh75897232000-05-29 14:26:00 +00001277 # Reject names that are not valid shell variable names.
drh8b727472009-01-19 18:18:40 +00001278 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
drhf922ca42015-05-14 15:39:18 +00001279 as_fn_error $? "invalid package name: $ac_useropt"
drh8b727472009-01-19 18:18:40 +00001280 ac_useropt_orig=$ac_useropt
1281 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282 case $ac_user_opts in
1283 *"
1284"with_$ac_useropt"
1285"*) ;;
1286 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1287 ac_unrecognized_sep=', ';;
1288 esac
1289 eval with_$ac_useropt=no ;;
drh75897232000-05-29 14:26:00 +00001290
1291 --x)
1292 # Obsolete; use --with-x.
1293 with_x=yes ;;
1294
1295 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1296 | --x-incl | --x-inc | --x-in | --x-i)
1297 ac_prev=x_includes ;;
1298 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1299 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
drh71eb93e2001-09-28 01:34:43 +00001300 x_includes=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001301
1302 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1303 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1304 ac_prev=x_libraries ;;
1305 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1306 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
drh71eb93e2001-09-28 01:34:43 +00001307 x_libraries=$ac_optarg ;;
drh75897232000-05-29 14:26:00 +00001308
drhf922ca42015-05-14 15:39:18 +00001309 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1310Try \`$0 --help' for more information"
drh75897232000-05-29 14:26:00 +00001311 ;;
1312
drh71eb93e2001-09-28 01:34:43 +00001313 *=*)
1314 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1315 # Reject names that are not valid shell variable names.
drhf922ca42015-05-14 15:39:18 +00001316 case $ac_envvar in #(
1317 '' | [0-9]* | *[!_$as_cr_alnum]* )
1318 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1319 esac
drh8b727472009-01-19 18:18:40 +00001320 eval $ac_envvar=\$ac_optarg
drh71eb93e2001-09-28 01:34:43 +00001321 export $ac_envvar ;;
1322
drh75897232000-05-29 14:26:00 +00001323 *)
drh71eb93e2001-09-28 01:34:43 +00001324 # FIXME: should be removed in autoconf 3.0.
drh8b727472009-01-19 18:18:40 +00001325 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
drh71eb93e2001-09-28 01:34:43 +00001326 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
drh8b727472009-01-19 18:18:40 +00001327 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
drhf922ca42015-05-14 15:39:18 +00001328 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
drh75897232000-05-29 14:26:00 +00001329 ;;
1330
1331 esac
1332done
1333
1334if test -n "$ac_prev"; then
drh71eb93e2001-09-28 01:34:43 +00001335 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
drhf922ca42015-05-14 15:39:18 +00001336 as_fn_error $? "missing argument to $ac_option"
drh75897232000-05-29 14:26:00 +00001337fi
1338
drh8b727472009-01-19 18:18:40 +00001339if test -n "$ac_unrecognized_opts"; then
1340 case $enable_option_checking in
1341 no) ;;
drhf922ca42015-05-14 15:39:18 +00001342 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1343 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
mlcreech636a9952008-05-05 22:52:56 +00001344 esac
drh8b727472009-01-19 18:18:40 +00001345fi
drh866108f2008-05-13 00:57:21 +00001346
drh8b727472009-01-19 18:18:40 +00001347# Check all directory arguments for consistency.
1348for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1349 datadir sysconfdir sharedstatedir localstatedir includedir \
1350 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1351 libdir localedir mandir
drh866108f2008-05-13 00:57:21 +00001352do
drh8b727472009-01-19 18:18:40 +00001353 eval ac_val=\$$ac_var
1354 # Remove trailing slashes.
drh71eb93e2001-09-28 01:34:43 +00001355 case $ac_val in
drh8b727472009-01-19 18:18:40 +00001356 */ )
1357 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1358 eval $ac_var=\$ac_val;;
drh75897232000-05-29 14:26:00 +00001359 esac
drh8b727472009-01-19 18:18:40 +00001360 # Be sure to have absolute directory names.
1361 case $ac_val in
1362 [\\/$]* | ?:[\\/]* ) continue;;
1363 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1364 esac
drhf922ca42015-05-14 15:39:18 +00001365 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
drh71eb93e2001-09-28 01:34:43 +00001366done
drh75897232000-05-29 14:26:00 +00001367
drh71eb93e2001-09-28 01:34:43 +00001368# There might be people who depend on the old broken behavior: `$host'
1369# used to hold the argument of --host etc.
a.rottmann84e63352003-03-24 09:42:16 +00001370# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001371build=$build_alias
1372host=$host_alias
1373target=$target_alias
drh75897232000-05-29 14:26:00 +00001374
a.rottmann84e63352003-03-24 09:42:16 +00001375# FIXME: To remove some day.
drh71eb93e2001-09-28 01:34:43 +00001376if test "x$host_alias" != x; then
1377 if test "x$build_alias" = x; then
1378 cross_compiling=maybe
drh71eb93e2001-09-28 01:34:43 +00001379 elif test "x$build_alias" != "x$host_alias"; then
1380 cross_compiling=yes
1381 fi
1382fi
1383
1384ac_tool_prefix=
1385test -n "$host_alias" && ac_tool_prefix=$host_alias-
1386
1387test "$silent" = yes && exec 6>/dev/null
drh75897232000-05-29 14:26:00 +00001388
a.rottmann84e63352003-03-24 09:42:16 +00001389
drh8b727472009-01-19 18:18:40 +00001390ac_pwd=`pwd` && test -n "$ac_pwd" &&
1391ac_ls_di=`ls -di .` &&
1392ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
drhf922ca42015-05-14 15:39:18 +00001393 as_fn_error $? "working directory cannot be determined"
drh8b727472009-01-19 18:18:40 +00001394test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
drhf922ca42015-05-14 15:39:18 +00001395 as_fn_error $? "pwd does not report name of working directory"
drh8b727472009-01-19 18:18:40 +00001396
1397
drh75897232000-05-29 14:26:00 +00001398# Find the source files, if location was not specified.
1399if test -z "$srcdir"; then
1400 ac_srcdir_defaulted=yes
drh8b727472009-01-19 18:18:40 +00001401 # Try the directory containing this script, then the parent directory.
1402 ac_confdir=`$as_dirname -- "$as_myself" ||
1403$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1404 X"$as_myself" : 'X\(//\)[^/]' \| \
1405 X"$as_myself" : 'X\(//\)$' \| \
1406 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1407$as_echo X"$as_myself" |
1408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1409 s//\1/
1410 q
1411 }
1412 /^X\(\/\/\)[^/].*/{
1413 s//\1/
1414 q
1415 }
1416 /^X\(\/\/\)$/{
1417 s//\1/
1418 q
1419 }
1420 /^X\(\/\).*/{
1421 s//\1/
1422 q
1423 }
1424 s/.*/./; q'`
drh75897232000-05-29 14:26:00 +00001425 srcdir=$ac_confdir
drh8b727472009-01-19 18:18:40 +00001426 if test ! -r "$srcdir/$ac_unique_file"; then
drh75897232000-05-29 14:26:00 +00001427 srcdir=..
1428 fi
1429else
1430 ac_srcdir_defaulted=no
1431fi
drh8b727472009-01-19 18:18:40 +00001432if test ! -r "$srcdir/$ac_unique_file"; then
1433 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
drhf922ca42015-05-14 15:39:18 +00001434 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
mlcreech94984912008-03-04 19:03:08 +00001435fi
drh8b727472009-01-19 18:18:40 +00001436ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1437ac_abs_confdir=`(
drhf922ca42015-05-14 15:39:18 +00001438 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
drh8b727472009-01-19 18:18:40 +00001439 pwd)`
1440# When building in place, set srcdir=.
1441if test "$ac_abs_confdir" = "$ac_pwd"; then
1442 srcdir=.
1443fi
1444# Remove unnecessary trailing slashes from srcdir.
1445# Double slashes in file names in object file debugging info
1446# mess up M-x gdb in Emacs.
1447case $srcdir in
1448*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1449esac
1450for ac_var in $ac_precious_vars; do
1451 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_env_${ac_var}_value=\$${ac_var}
1453 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1454 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1455done
drh75897232000-05-29 14:26:00 +00001456
drh71eb93e2001-09-28 01:34:43 +00001457#
1458# Report the --help message.
1459#
1460if test "$ac_init_help" = "long"; then
1461 # Omit some internal or obsolete options to make the list less imposing.
1462 # This message is too long to be a string in the A/UX 3.1 sh.
a.rottmann84e63352003-03-24 09:42:16 +00001463 cat <<_ACEOF
drhc0a195b2016-05-20 15:24:14 +00001464\`configure' configures sqlite 3.14.0 to adapt to many kinds of systems.
drh71eb93e2001-09-28 01:34:43 +00001465
1466Usage: $0 [OPTION]... [VAR=VALUE]...
1467
1468To assign environment variables (e.g., CC, CFLAGS...), specify them as
1469VAR=VALUE. See below for descriptions of some of the useful variables.
1470
1471Defaults for the options are specified in brackets.
1472
1473Configuration:
1474 -h, --help display this help and exit
1475 --help=short display options specific to this package
1476 --help=recursive display the short help of all the included packages
1477 -V, --version display version information and exit
drhf922ca42015-05-14 15:39:18 +00001478 -q, --quiet, --silent do not print \`checking ...' messages
drh71eb93e2001-09-28 01:34:43 +00001479 --cache-file=FILE cache test results in FILE [disabled]
1480 -C, --config-cache alias for \`--cache-file=config.cache'
1481 -n, --no-create do not create output files
1482 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1483
drh71eb93e2001-09-28 01:34:43 +00001484Installation directories:
1485 --prefix=PREFIX install architecture-independent files in PREFIX
drh8b727472009-01-19 18:18:40 +00001486 [$ac_default_prefix]
drh71eb93e2001-09-28 01:34:43 +00001487 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
drh8b727472009-01-19 18:18:40 +00001488 [PREFIX]
drh71eb93e2001-09-28 01:34:43 +00001489
1490By default, \`make install' will install all the files in
1491\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1492an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1493for instance \`--prefix=\$HOME'.
1494
1495For better control, use the options below.
1496
1497Fine tuning of the installation directories:
drh8b727472009-01-19 18:18:40 +00001498 --bindir=DIR user executables [EPREFIX/bin]
1499 --sbindir=DIR system admin executables [EPREFIX/sbin]
1500 --libexecdir=DIR program executables [EPREFIX/libexec]
1501 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1502 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1503 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1504 --libdir=DIR object code libraries [EPREFIX/lib]
1505 --includedir=DIR C header files [PREFIX/include]
1506 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1507 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1508 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1509 --infodir=DIR info documentation [DATAROOTDIR/info]
1510 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1511 --mandir=DIR man documentation [DATAROOTDIR/man]
1512 --docdir=DIR documentation root [DATAROOTDIR/doc/sqlite]
1513 --htmldir=DIR html documentation [DOCDIR]
1514 --dvidir=DIR dvi documentation [DOCDIR]
1515 --pdfdir=DIR pdf documentation [DOCDIR]
1516 --psdir=DIR ps documentation [DOCDIR]
a.rottmann84e63352003-03-24 09:42:16 +00001517_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001518
a.rottmann84e63352003-03-24 09:42:16 +00001519 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001520
1521System types:
1522 --build=BUILD configure for building on BUILD [guessed]
a.rottmann84e63352003-03-24 09:42:16 +00001523 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1524_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001525fi
1526
1527if test -n "$ac_init_help"; then
mlcreechb87057f2008-03-06 07:19:20 +00001528 case $ac_init_help in
drhc0a195b2016-05-20 15:24:14 +00001529 short | recursive ) echo "Configuration of sqlite 3.14.0:";;
mlcreechb87057f2008-03-06 07:19:20 +00001530 esac
a.rottmann84e63352003-03-24 09:42:16 +00001531 cat <<\_ACEOF
drh71eb93e2001-09-28 01:34:43 +00001532
1533Optional Features:
drh8b727472009-01-19 18:18:40 +00001534 --disable-option-checking ignore unrecognized --enable/--with options
drh71eb93e2001-09-28 01:34:43 +00001535 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1536 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
drh8b727472009-01-19 18:18:40 +00001537 --enable-shared[=PKGS] build shared libraries [default=yes]
1538 --enable-static[=PKGS] build static libraries [default=yes]
a.rottmann9bc8b932004-02-29 15:18:31 +00001539 --enable-fast-install[=PKGS]
1540 optimize for fast installation [default=yes]
drh71eb93e2001-09-28 01:34:43 +00001541 --disable-libtool-lock avoid locking (might break parallel builds)
mlcreech636a9952008-05-05 22:52:56 +00001542 --disable-largefile omit support for large files
drh05c7e0b2015-01-10 14:27:17 +00001543 --disable-threadsafe Disable mutexing
drh94e4f822006-02-15 02:00:25 +00001544 --enable-releasemode Support libtool link to release mode
1545 --enable-tempstore Use an in-ram database for temporary tables
1546 (never,no,yes,always)
1547 --disable-tcl do not build TCL extension
drhe44b8352015-10-30 14:25:57 +00001548 --enable-editline enable BSD editline support
1549 --disable-readline disable readline support
drh94e4f822006-02-15 02:00:25 +00001550 --enable-debug enable debugging & verbose explain
mlcreech94984912008-03-04 19:03:08 +00001551 --disable-amalgamation Disable the amalgamation and instead build all files
mlcreech969b2cd2008-03-14 04:11:03 +00001552 separately
drh05c7e0b2015-01-10 14:27:17 +00001553 --disable-load-extension
1554 Disable loading of external extensions
drhce1d9f52015-10-09 12:48:33 +00001555 --enable-fts3 Enable the FTS3 extension
1556 --enable-fts4 Enable the FTS4 extension
1557 --enable-fts5 Enable the FTS5 extension
1558 --enable-json1 Enable the JSON1 extension
1559 --enable-rtree Enable the RTREE extension
drh5e18d402016-05-03 13:14:18 +00001560 --enable-session Enable the SESSION extension
mlcreechaac7b932008-04-01 02:45:22 +00001561 --enable-gcov Enable coverage testing using gcov
drh71eb93e2001-09-28 01:34:43 +00001562
1563Optional Packages:
1564 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1565 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
a.rottmann9bc8b932004-02-29 15:18:31 +00001566 --with-pic try to use only PIC/non-PIC objects [default=use
1567 both]
mlcreech636a9952008-05-05 22:52:56 +00001568 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
drh94e4f822006-02-15 02:00:25 +00001569 --with-tcl=DIR directory containing tcl configuration
1570 (tclConfig.sh)
vapier7f19c022007-02-17 14:46:31 +00001571 --with-readline-lib specify readline library
1572 --with-readline-inc specify readline include paths
drh71eb93e2001-09-28 01:34:43 +00001573
1574Some influential environment variables:
1575 CC C compiler command
1576 CFLAGS C compiler flags
1577 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1578 nonstandard directory <lib dir>
drh8b727472009-01-19 18:18:40 +00001579 LIBS libraries to pass to the linker, e.g. -l<library>
drhf922ca42015-05-14 15:39:18 +00001580 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
drh8b727472009-01-19 18:18:40 +00001581 you have headers in a nonstandard directory <include dir>
drh71eb93e2001-09-28 01:34:43 +00001582 CPP C preprocessor
vapier6acb2cf2009-01-28 04:46:28 +00001583 TCLLIBDIR Where to install tcl plugin
drh71eb93e2001-09-28 01:34:43 +00001584
1585Use these variables to override the choices made by `configure' or to help
1586it to find libraries and programs with nonstandard names/locations.
1587
drhf922ca42015-05-14 15:39:18 +00001588Report bugs to the package provider.
a.rottmann84e63352003-03-24 09:42:16 +00001589_ACEOF
drh8b727472009-01-19 18:18:40 +00001590ac_status=$?
drh71eb93e2001-09-28 01:34:43 +00001591fi
1592
1593if test "$ac_init_help" = "recursive"; then
1594 # If there are subdirs, report their specific --help.
a.rottmann84e63352003-03-24 09:42:16 +00001595 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
drh8b727472009-01-19 18:18:40 +00001596 test -d "$ac_dir" ||
1597 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1598 continue
a.rottmann84e63352003-03-24 09:42:16 +00001599 ac_builddir=.
drh71eb93e2001-09-28 01:34:43 +00001600
drh8b727472009-01-19 18:18:40 +00001601case "$ac_dir" in
1602.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603*)
1604 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1605 # A ".." for each directory in $ac_dir_suffix.
1606 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1607 case $ac_top_builddir_sub in
1608 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1610 esac ;;
1611esac
1612ac_abs_top_builddir=$ac_pwd
1613ac_abs_builddir=$ac_pwd$ac_dir_suffix
1614# for backward compatibility:
1615ac_top_builddir=$ac_top_build_prefix
drh71eb93e2001-09-28 01:34:43 +00001616
a.rottmann84e63352003-03-24 09:42:16 +00001617case $srcdir in
drh8b727472009-01-19 18:18:40 +00001618 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +00001619 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +00001620 ac_top_srcdir=$ac_top_builddir_sub
1621 ac_abs_top_srcdir=$ac_pwd ;;
1622 [\\/]* | ?:[\\/]* ) # Absolute name.
drh866108f2008-05-13 00:57:21 +00001623 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +00001624 ac_top_srcdir=$srcdir
1625 ac_abs_top_srcdir=$srcdir ;;
1626 *) # Relative name.
1627 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1628 ac_top_srcdir=$ac_top_build_prefix$srcdir
1629 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
drh866108f2008-05-13 00:57:21 +00001630esac
drh8b727472009-01-19 18:18:40 +00001631ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
drh866108f2008-05-13 00:57:21 +00001632
drh8b727472009-01-19 18:18:40 +00001633 cd "$ac_dir" || { ac_status=$?; continue; }
1634 # Check for guested configure.
1635 if test -f "$ac_srcdir/configure.gnu"; then
1636 echo &&
1637 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1638 elif test -f "$ac_srcdir/configure"; then
1639 echo &&
1640 $SHELL "$ac_srcdir/configure" --help=recursive
drh866108f2008-05-13 00:57:21 +00001641 else
drh8b727472009-01-19 18:18:40 +00001642 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1643 fi || ac_status=$?
1644 cd "$ac_pwd" || { ac_status=$?; break; }
drh71eb93e2001-09-28 01:34:43 +00001645 done
1646fi
1647
drh8b727472009-01-19 18:18:40 +00001648test -n "$ac_init_help" && exit $ac_status
drh71eb93e2001-09-28 01:34:43 +00001649if $ac_init_version; then
a.rottmann84e63352003-03-24 09:42:16 +00001650 cat <<\_ACEOF
drhc0a195b2016-05-20 15:24:14 +00001651sqlite configure 3.14.0
drhf922ca42015-05-14 15:39:18 +00001652generated by GNU Autoconf 2.69
drh71eb93e2001-09-28 01:34:43 +00001653
drhf922ca42015-05-14 15:39:18 +00001654Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +00001655This configure script is free software; the Free Software Foundation
1656gives unlimited permission to copy, distribute and modify it.
a.rottmann84e63352003-03-24 09:42:16 +00001657_ACEOF
drh8b727472009-01-19 18:18:40 +00001658 exit
drh71eb93e2001-09-28 01:34:43 +00001659fi
drhf922ca42015-05-14 15:39:18 +00001660
1661## ------------------------ ##
1662## Autoconf initialization. ##
1663## ------------------------ ##
1664
1665# ac_fn_c_try_compile LINENO
1666# --------------------------
1667# Try to compile conftest.$ac_ext, and return whether this succeeded.
1668ac_fn_c_try_compile ()
1669{
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 rm -f conftest.$ac_objext
1672 if { { ac_try="$ac_compile"
1673case "(($ac_try" in
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1676esac
1677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678$as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_compile") 2>conftest.err
1680 ac_status=$?
1681 if test -s conftest.err; then
1682 grep -v '^ *+' conftest.err >conftest.er1
1683 cat conftest.er1 >&5
1684 mv -f conftest.er1 conftest.err
1685 fi
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && {
1688 test -z "$ac_c_werror_flag" ||
1689 test ! -s conftest.err
1690 } && test -s conftest.$ac_objext; then :
1691 ac_retval=0
1692else
1693 $as_echo "$as_me: failed program was:" >&5
1694sed 's/^/| /' conftest.$ac_ext >&5
1695
1696 ac_retval=1
1697fi
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1700
1701} # ac_fn_c_try_compile
1702
1703# ac_fn_c_try_link LINENO
1704# -----------------------
1705# Try to link conftest.$ac_ext, and return whether this succeeded.
1706ac_fn_c_try_link ()
1707{
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 rm -f conftest.$ac_objext conftest$ac_exeext
1710 if { { ac_try="$ac_link"
1711case "(($ac_try" in
1712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1713 *) ac_try_echo=$ac_try;;
1714esac
1715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1716$as_echo "$ac_try_echo"; } >&5
1717 (eval "$ac_link") 2>conftest.err
1718 ac_status=$?
1719 if test -s conftest.err; then
1720 grep -v '^ *+' conftest.err >conftest.er1
1721 cat conftest.er1 >&5
1722 mv -f conftest.er1 conftest.err
1723 fi
1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1725 test $ac_status = 0; } && {
1726 test -z "$ac_c_werror_flag" ||
1727 test ! -s conftest.err
1728 } && test -s conftest$ac_exeext && {
1729 test "$cross_compiling" = yes ||
1730 test -x conftest$ac_exeext
1731 }; then :
1732 ac_retval=0
1733else
1734 $as_echo "$as_me: failed program was:" >&5
1735sed 's/^/| /' conftest.$ac_ext >&5
1736
1737 ac_retval=1
1738fi
1739 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1740 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1741 # interfere with the next link command; also delete a directory that is
1742 # left behind by Apple's compiler. We do this before executing the actions.
1743 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745 as_fn_set_status $ac_retval
1746
1747} # ac_fn_c_try_link
1748
1749# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1750# -------------------------------------------------------
1751# Tests whether HEADER exists and can be compiled using the include files in
1752# INCLUDES, setting the cache variable VAR accordingly.
1753ac_fn_c_check_header_compile ()
1754{
1755 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757$as_echo_n "checking for $2... " >&6; }
1758if eval \${$3+:} false; then :
1759 $as_echo_n "(cached) " >&6
1760else
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762/* end confdefs.h. */
1763$4
1764#include <$2>
1765_ACEOF
1766if ac_fn_c_try_compile "$LINENO"; then :
1767 eval "$3=yes"
1768else
1769 eval "$3=no"
1770fi
1771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772fi
1773eval ac_res=\$$3
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1775$as_echo "$ac_res" >&6; }
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777
1778} # ac_fn_c_check_header_compile
1779
1780# ac_fn_c_try_cpp LINENO
1781# ----------------------
1782# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1783ac_fn_c_try_cpp ()
1784{
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 if { { ac_try="$ac_cpp conftest.$ac_ext"
1787case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790esac
1791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792$as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1794 ac_status=$?
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1799 fi
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } > conftest.i && {
1802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1803 test ! -s conftest.err
1804 }; then :
1805 ac_retval=0
1806else
1807 $as_echo "$as_me: failed program was:" >&5
1808sed 's/^/| /' conftest.$ac_ext >&5
1809
1810 ac_retval=1
1811fi
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 as_fn_set_status $ac_retval
1814
1815} # ac_fn_c_try_cpp
1816
1817# ac_fn_c_try_run LINENO
1818# ----------------------
1819# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1820# that executables *can* be run.
1821ac_fn_c_try_run ()
1822{
1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824 if { { ac_try="$ac_link"
1825case "(($ac_try" in
1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1828esac
1829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830$as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_link") 2>&5
1832 ac_status=$?
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1835 { { case "(($ac_try" in
1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1838esac
1839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840$as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_try") 2>&5
1842 ac_status=$?
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1844 test $ac_status = 0; }; }; then :
1845 ac_retval=0
1846else
1847 $as_echo "$as_me: program exited with status $ac_status" >&5
1848 $as_echo "$as_me: failed program was:" >&5
1849sed 's/^/| /' conftest.$ac_ext >&5
1850
1851 ac_retval=$ac_status
1852fi
1853 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1854 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1855 as_fn_set_status $ac_retval
1856
1857} # ac_fn_c_try_run
1858
1859# ac_fn_c_check_func LINENO FUNC VAR
1860# ----------------------------------
1861# Tests whether FUNC exists, setting the cache variable VAR accordingly
1862ac_fn_c_check_func ()
1863{
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866$as_echo_n "checking for $2... " >&6; }
1867if eval \${$3+:} false; then :
1868 $as_echo_n "(cached) " >&6
1869else
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871/* end confdefs.h. */
1872/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1874#define $2 innocuous_$2
1875
1876/* System header to define __stub macros and hopefully few prototypes,
1877 which can conflict with char $2 (); below.
1878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1879 <limits.h> exists even on freestanding compilers. */
1880
1881#ifdef __STDC__
1882# include <limits.h>
1883#else
1884# include <assert.h>
1885#endif
1886
1887#undef $2
1888
1889/* Override any GCC internal prototype to avoid an error.
1890 Use char because int might match the return type of a GCC
1891 builtin and then its argument prototype would still apply. */
1892#ifdef __cplusplus
1893extern "C"
1894#endif
1895char $2 ();
1896/* The GNU C library defines this for functions which it implements
1897 to always fail with ENOSYS. Some functions are actually named
1898 something starting with __ and the normal name is an alias. */
1899#if defined __stub_$2 || defined __stub___$2
1900choke me
1901#endif
1902
1903int
1904main ()
1905{
1906return $2 ();
1907 ;
1908 return 0;
1909}
1910_ACEOF
1911if ac_fn_c_try_link "$LINENO"; then :
1912 eval "$3=yes"
1913else
1914 eval "$3=no"
1915fi
1916rm -f core conftest.err conftest.$ac_objext \
1917 conftest$ac_exeext conftest.$ac_ext
1918fi
1919eval ac_res=\$$3
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921$as_echo "$ac_res" >&6; }
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923
1924} # ac_fn_c_check_func
1925
1926# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1927# -------------------------------------------
1928# Tests whether TYPE exists after having included INCLUDES, setting cache
1929# variable VAR accordingly.
1930ac_fn_c_check_type ()
1931{
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1934$as_echo_n "checking for $2... " >&6; }
1935if eval \${$3+:} false; then :
1936 $as_echo_n "(cached) " >&6
1937else
1938 eval "$3=no"
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940/* end confdefs.h. */
1941$4
1942int
1943main ()
1944{
1945if (sizeof ($2))
1946 return 0;
1947 ;
1948 return 0;
1949}
1950_ACEOF
1951if ac_fn_c_try_compile "$LINENO"; then :
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953/* end confdefs.h. */
1954$4
1955int
1956main ()
1957{
1958if (sizeof (($2)))
1959 return 0;
1960 ;
1961 return 0;
1962}
1963_ACEOF
1964if ac_fn_c_try_compile "$LINENO"; then :
1965
1966else
1967 eval "$3=yes"
1968fi
1969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970fi
1971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972fi
1973eval ac_res=\$$3
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1975$as_echo "$ac_res" >&6; }
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977
1978} # ac_fn_c_check_type
1979
1980# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1981# -------------------------------------------------------
1982# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1983# the include files in INCLUDES and setting the cache variable VAR
1984# accordingly.
1985ac_fn_c_check_header_mongrel ()
1986{
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 if eval \${$3+:} false; then :
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990$as_echo_n "checking for $2... " >&6; }
1991if eval \${$3+:} false; then :
1992 $as_echo_n "(cached) " >&6
1993fi
1994eval ac_res=\$$3
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996$as_echo "$ac_res" >&6; }
1997else
1998 # Is the header compilable?
1999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2000$as_echo_n "checking $2 usability... " >&6; }
2001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002/* end confdefs.h. */
2003$4
2004#include <$2>
2005_ACEOF
2006if ac_fn_c_try_compile "$LINENO"; then :
2007 ac_header_compiler=yes
2008else
2009 ac_header_compiler=no
2010fi
2011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2013$as_echo "$ac_header_compiler" >&6; }
2014
2015# Is the header present?
2016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2017$as_echo_n "checking $2 presence... " >&6; }
2018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019/* end confdefs.h. */
2020#include <$2>
2021_ACEOF
2022if ac_fn_c_try_cpp "$LINENO"; then :
2023 ac_header_preproc=yes
2024else
2025 ac_header_preproc=no
2026fi
2027rm -f conftest.err conftest.i conftest.$ac_ext
2028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2029$as_echo "$ac_header_preproc" >&6; }
2030
2031# So? What about this header?
2032case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2033 yes:no: )
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2035$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2037$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2038 ;;
2039 no:yes:* )
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2041$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2043$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2045$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2047$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2049$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2050 ;;
2051esac
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2053$as_echo_n "checking for $2... " >&6; }
2054if eval \${$3+:} false; then :
2055 $as_echo_n "(cached) " >&6
2056else
2057 eval "$3=\$ac_header_compiler"
2058fi
2059eval ac_res=\$$3
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061$as_echo "$ac_res" >&6; }
2062fi
2063 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2064
2065} # ac_fn_c_check_header_mongrel
drh8b727472009-01-19 18:18:40 +00002066cat >config.log <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002067This file contains any messages produced by compilers while
2068running configure, to aid debugging if configure makes a mistake.
2069
drhc0a195b2016-05-20 15:24:14 +00002070It was created by sqlite $as_me 3.14.0, which was
drhf922ca42015-05-14 15:39:18 +00002071generated by GNU Autoconf 2.69. Invocation command line was
drh71eb93e2001-09-28 01:34:43 +00002072
2073 $ $0 $@
2074
a.rottmann84e63352003-03-24 09:42:16 +00002075_ACEOF
drh8b727472009-01-19 18:18:40 +00002076exec 5>>config.log
drh71eb93e2001-09-28 01:34:43 +00002077{
2078cat <<_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002079## --------- ##
2080## Platform. ##
2081## --------- ##
drh71eb93e2001-09-28 01:34:43 +00002082
2083hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2084uname -m = `(uname -m) 2>/dev/null || echo unknown`
2085uname -r = `(uname -r) 2>/dev/null || echo unknown`
2086uname -s = `(uname -s) 2>/dev/null || echo unknown`
2087uname -v = `(uname -v) 2>/dev/null || echo unknown`
2088
2089/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2090/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2091
2092/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2093/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2094/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
drh8b727472009-01-19 18:18:40 +00002095/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
drh71eb93e2001-09-28 01:34:43 +00002096/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2097/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2098/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2099
drh71eb93e2001-09-28 01:34:43 +00002100_ASUNAME
a.rottmann84e63352003-03-24 09:42:16 +00002101
2102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103for as_dir in $PATH
2104do
2105 IFS=$as_save_IFS
2106 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002107 $as_echo "PATH: $as_dir"
2108 done
drh8b727472009-01-19 18:18:40 +00002109IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00002110
drh71eb93e2001-09-28 01:34:43 +00002111} >&5
2112
a.rottmann84e63352003-03-24 09:42:16 +00002113cat >&5 <<_ACEOF
drh71eb93e2001-09-28 01:34:43 +00002114
a.rottmann84e63352003-03-24 09:42:16 +00002115
2116## ----------- ##
2117## Core tests. ##
2118## ----------- ##
2119
2120_ACEOF
2121
drh71eb93e2001-09-28 01:34:43 +00002122
2123# Keep a trace of the command line.
2124# Strip out --no-create and --no-recursion so they do not pile up.
a.rottmann84e63352003-03-24 09:42:16 +00002125# Strip out --silent because we don't want to record it for future runs.
drh71eb93e2001-09-28 01:34:43 +00002126# Also quote any args containing shell meta-characters.
a.rottmann84e63352003-03-24 09:42:16 +00002127# Make two passes to allow for proper duplicate-argument suppression.
drh71eb93e2001-09-28 01:34:43 +00002128ac_configure_args=
a.rottmann84e63352003-03-24 09:42:16 +00002129ac_configure_args0=
2130ac_configure_args1=
a.rottmann84e63352003-03-24 09:42:16 +00002131ac_must_keep_next=false
2132for ac_pass in 1 2
drh71eb93e2001-09-28 01:34:43 +00002133do
a.rottmann84e63352003-03-24 09:42:16 +00002134 for ac_arg
2135 do
2136 case $ac_arg in
2137 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2138 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2139 | -silent | --silent | --silen | --sile | --sil)
2140 continue ;;
drh8b727472009-01-19 18:18:40 +00002141 *\'*)
2142 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002143 esac
2144 case $ac_pass in
drhf922ca42015-05-14 15:39:18 +00002145 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
a.rottmann84e63352003-03-24 09:42:16 +00002146 2)
drhf922ca42015-05-14 15:39:18 +00002147 as_fn_append ac_configure_args1 " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002148 if test $ac_must_keep_next = true; then
a.rottmann964dbb12004-02-26 19:47:42 +00002149 ac_must_keep_next=false # Got value, back to normal.
a.rottmann84e63352003-03-24 09:42:16 +00002150 else
a.rottmann964dbb12004-02-26 19:47:42 +00002151 case $ac_arg in
2152 *=* | --config-cache | -C | -disable-* | --disable-* \
2153 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2154 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2155 | -with-* | --with-* | -without-* | --without-* | --x)
2156 case "$ac_configure_args0 " in
2157 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2158 esac
2159 ;;
2160 -* ) ac_must_keep_next=true ;;
2161 esac
a.rottmann84e63352003-03-24 09:42:16 +00002162 fi
drhf922ca42015-05-14 15:39:18 +00002163 as_fn_append ac_configure_args " '$ac_arg'"
a.rottmann84e63352003-03-24 09:42:16 +00002164 ;;
2165 esac
2166 done
drh71eb93e2001-09-28 01:34:43 +00002167done
drhf922ca42015-05-14 15:39:18 +00002168{ ac_configure_args0=; unset ac_configure_args0;}
2169{ ac_configure_args1=; unset ac_configure_args1;}
drh71eb93e2001-09-28 01:34:43 +00002170
2171# When interrupted or exit'd, cleanup temporary files, and complete
2172# config.log. We remove comments because anyway the quotes in there
2173# would cause problems or look ugly.
drh8b727472009-01-19 18:18:40 +00002174# WARNING: Use '\'' to represent an apostrophe within the trap.
2175# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
drh71eb93e2001-09-28 01:34:43 +00002176trap 'exit_status=$?
2177 # Save into config.log some information that might help in debugging.
a.rottmann84e63352003-03-24 09:42:16 +00002178 {
2179 echo
2180
drhf922ca42015-05-14 15:39:18 +00002181 $as_echo "## ---------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002182## Cache variables. ##
drhf922ca42015-05-14 15:39:18 +00002183## ---------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002184 echo
2185 # The following way of writing the cache mishandles newlines in values,
drh8b727472009-01-19 18:18:40 +00002186(
2187 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2188 eval ac_val=\$$ac_var
2189 case $ac_val in #(
2190 *${as_nl}*)
2191 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +00002192 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2193$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +00002194 esac
2195 case $ac_var in #(
2196 _ | IFS | as_nl) ;; #(
2197 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +00002198 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +00002199 esac ;;
2200 esac
2201 done
drh71eb93e2001-09-28 01:34:43 +00002202 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +00002203 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2204 *${as_nl}ac_space=\ *)
drh71eb93e2001-09-28 01:34:43 +00002205 sed -n \
drh8b727472009-01-19 18:18:40 +00002206 "s/'\''/'\''\\\\'\'''\''/g;
2207 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2208 ;; #(
drh866108f2008-05-13 00:57:21 +00002209 *)
drh8b727472009-01-19 18:18:40 +00002210 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh866108f2008-05-13 00:57:21 +00002211 ;;
drh8b727472009-01-19 18:18:40 +00002212 esac |
2213 sort
2214)
a.rottmann84e63352003-03-24 09:42:16 +00002215 echo
2216
drhf922ca42015-05-14 15:39:18 +00002217 $as_echo "## ----------------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002218## Output variables. ##
drhf922ca42015-05-14 15:39:18 +00002219## ----------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002220 echo
2221 for ac_var in $ac_subst_vars
2222 do
drh8b727472009-01-19 18:18:40 +00002223 eval ac_val=\$$ac_var
2224 case $ac_val in
2225 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2226 esac
2227 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002228 done | sort
2229 echo
2230
2231 if test -n "$ac_subst_files"; then
drhf922ca42015-05-14 15:39:18 +00002232 $as_echo "## ------------------- ##
drh8b727472009-01-19 18:18:40 +00002233## File substitutions. ##
drhf922ca42015-05-14 15:39:18 +00002234## ------------------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002235 echo
2236 for ac_var in $ac_subst_files
2237 do
drh8b727472009-01-19 18:18:40 +00002238 eval ac_val=\$$ac_var
2239 case $ac_val in
2240 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2241 esac
2242 $as_echo "$ac_var='\''$ac_val'\''"
a.rottmann84e63352003-03-24 09:42:16 +00002243 done | sort
2244 echo
2245 fi
2246
2247 if test -s confdefs.h; then
drhf922ca42015-05-14 15:39:18 +00002248 $as_echo "## ----------- ##
a.rottmann84e63352003-03-24 09:42:16 +00002249## confdefs.h. ##
drhf922ca42015-05-14 15:39:18 +00002250## ----------- ##"
a.rottmann84e63352003-03-24 09:42:16 +00002251 echo
drh8b727472009-01-19 18:18:40 +00002252 cat confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00002253 echo
2254 fi
2255 test "$ac_signal" != 0 &&
drh8b727472009-01-19 18:18:40 +00002256 $as_echo "$as_me: caught signal $ac_signal"
2257 $as_echo "$as_me: exit $exit_status"
a.rottmann84e63352003-03-24 09:42:16 +00002258 } >&5
drh8b727472009-01-19 18:18:40 +00002259 rm -f core *.core core.conftest.* &&
2260 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
drh71eb93e2001-09-28 01:34:43 +00002261 exit $exit_status
drh8b727472009-01-19 18:18:40 +00002262' 0
drh71eb93e2001-09-28 01:34:43 +00002263for ac_signal in 1 2 13 15; do
drhf922ca42015-05-14 15:39:18 +00002264 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
drh71eb93e2001-09-28 01:34:43 +00002265done
2266ac_signal=0
2267
2268# confdefs.h avoids OS command line length limits that DEFS can exceed.
drh8b727472009-01-19 18:18:40 +00002269rm -f -r conftest* confdefs.h
drh71eb93e2001-09-28 01:34:43 +00002270
drhf922ca42015-05-14 15:39:18 +00002271$as_echo "/* confdefs.h */" > confdefs.h
2272
a.rottmann84e63352003-03-24 09:42:16 +00002273# Predefined preprocessor variables.
2274
2275cat >>confdefs.h <<_ACEOF
2276#define PACKAGE_NAME "$PACKAGE_NAME"
2277_ACEOF
2278
a.rottmann84e63352003-03-24 09:42:16 +00002279cat >>confdefs.h <<_ACEOF
2280#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2281_ACEOF
2282
a.rottmann84e63352003-03-24 09:42:16 +00002283cat >>confdefs.h <<_ACEOF
2284#define PACKAGE_VERSION "$PACKAGE_VERSION"
2285_ACEOF
2286
a.rottmann84e63352003-03-24 09:42:16 +00002287cat >>confdefs.h <<_ACEOF
2288#define PACKAGE_STRING "$PACKAGE_STRING"
2289_ACEOF
2290
dana9f39fd2011-08-12 16:34:42 +00002291cat >>confdefs.h <<_ACEOF
drh710658c2012-01-16 13:00:05 +00002292#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
dana9f39fd2011-08-12 16:34:42 +00002293_ACEOF
2294
drhf922ca42015-05-14 15:39:18 +00002295cat >>confdefs.h <<_ACEOF
2296#define PACKAGE_URL "$PACKAGE_URL"
2297_ACEOF
2298
a.rottmann84e63352003-03-24 09:42:16 +00002299
drh71eb93e2001-09-28 01:34:43 +00002300# Let the site file select an alternate cache file if it wants to.
drh8b727472009-01-19 18:18:40 +00002301# Prefer an explicitly selected file to automatically selected ones.
2302ac_site_file1=NONE
2303ac_site_file2=NONE
2304if test -n "$CONFIG_SITE"; then
drhf922ca42015-05-14 15:39:18 +00002305 # We do not want a PATH search for config.site.
2306 case $CONFIG_SITE in #((
2307 -*) ac_site_file1=./$CONFIG_SITE;;
2308 */*) ac_site_file1=$CONFIG_SITE;;
2309 *) ac_site_file1=./$CONFIG_SITE;;
2310 esac
drh8b727472009-01-19 18:18:40 +00002311elif test "x$prefix" != xNONE; then
2312 ac_site_file1=$prefix/share/config.site
2313 ac_site_file2=$prefix/etc/config.site
2314else
2315 ac_site_file1=$ac_default_prefix/share/config.site
2316 ac_site_file2=$ac_default_prefix/etc/config.site
drh75897232000-05-29 14:26:00 +00002317fi
drh8b727472009-01-19 18:18:40 +00002318for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2319do
2320 test "x$ac_site_file" = xNONE && continue
drhf922ca42015-05-14 15:39:18 +00002321 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
drh8b727472009-01-19 18:18:40 +00002323$as_echo "$as_me: loading site script $ac_site_file" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +00002324 sed 's/^/| /' "$ac_site_file" >&5
drhf922ca42015-05-14 15:39:18 +00002325 . "$ac_site_file" \
2326 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2328as_fn_error $? "failed to load site script $ac_site_file
2329See \`config.log' for more details" "$LINENO" 5; }
drh75897232000-05-29 14:26:00 +00002330 fi
2331done
2332
2333if test -r "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +00002334 # Some versions of bash will fail to source /dev/null (special files
2335 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2336 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002338$as_echo "$as_me: loading cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002339 case $cache_file in
drh8b727472009-01-19 18:18:40 +00002340 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2341 *) . "./$cache_file";;
drh71eb93e2001-09-28 01:34:43 +00002342 esac
2343 fi
drh75897232000-05-29 14:26:00 +00002344else
drhf922ca42015-05-14 15:39:18 +00002345 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +00002346$as_echo "$as_me: creating cache $cache_file" >&6;}
drh71eb93e2001-09-28 01:34:43 +00002347 >$cache_file
2348fi
2349
2350# Check that the precious variables saved in the cache have kept the same
2351# value.
2352ac_cache_corrupted=false
drh8b727472009-01-19 18:18:40 +00002353for ac_var in $ac_precious_vars; do
drh71eb93e2001-09-28 01:34:43 +00002354 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2355 eval ac_new_set=\$ac_env_${ac_var}_set
drh8b727472009-01-19 18:18:40 +00002356 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2357 eval ac_new_val=\$ac_env_${ac_var}_value
drh71eb93e2001-09-28 01:34:43 +00002358 case $ac_old_set,$ac_new_set in
2359 set,)
drhf922ca42015-05-14 15:39:18 +00002360 { $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 +00002361$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002362 ac_cache_corrupted=: ;;
2363 ,set)
drhf922ca42015-05-14 15:39:18 +00002364 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
drh8b727472009-01-19 18:18:40 +00002365$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002366 ac_cache_corrupted=: ;;
2367 ,);;
2368 *)
2369 if test "x$ac_old_val" != "x$ac_new_val"; then
drh8b727472009-01-19 18:18:40 +00002370 # differences in whitespace do not lead to failure.
2371 ac_old_val_w=`echo x $ac_old_val`
2372 ac_new_val_w=`echo x $ac_new_val`
2373 if test "$ac_old_val_w" != "$ac_new_val_w"; then
drhf922ca42015-05-14 15:39:18 +00002374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
drh8b727472009-01-19 18:18:40 +00002375$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2376 ac_cache_corrupted=:
2377 else
drhf922ca42015-05-14 15:39:18 +00002378 { $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 +00002379$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2380 eval $ac_var=\$ac_old_val
2381 fi
drhf922ca42015-05-14 15:39:18 +00002382 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
drh8b727472009-01-19 18:18:40 +00002383$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
drhf922ca42015-05-14 15:39:18 +00002384 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
drh8b727472009-01-19 18:18:40 +00002385$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
drh71eb93e2001-09-28 01:34:43 +00002386 fi;;
2387 esac
a.rottmann84e63352003-03-24 09:42:16 +00002388 # Pass precious variables to config.status.
drh71eb93e2001-09-28 01:34:43 +00002389 if test "$ac_new_set" = set; then
2390 case $ac_new_val in
drh8b727472009-01-19 18:18:40 +00002391 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
a.rottmann84e63352003-03-24 09:42:16 +00002392 *) ac_arg=$ac_var=$ac_new_val ;;
2393 esac
2394 case " $ac_configure_args " in
2395 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
drhf922ca42015-05-14 15:39:18 +00002396 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
drh71eb93e2001-09-28 01:34:43 +00002397 esac
2398 fi
2399done
2400if $ac_cache_corrupted; then
drhf922ca42015-05-14 15:39:18 +00002401 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
drh8b727472009-01-19 18:18:40 +00002404$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
drhf922ca42015-05-14 15:39:18 +00002405 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
drh75897232000-05-29 14:26:00 +00002406fi
drhf922ca42015-05-14 15:39:18 +00002407## -------------------- ##
2408## Main body of script. ##
2409## -------------------- ##
drh8b727472009-01-19 18:18:40 +00002410
drh75897232000-05-29 14:26:00 +00002411ac_ext=c
drh75897232000-05-29 14:26:00 +00002412ac_cpp='$CPP $CPPFLAGS'
drh71eb93e2001-09-28 01:34:43 +00002413ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2414ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2415ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh75897232000-05-29 14:26:00 +00002416
a.rottmann84e63352003-03-24 09:42:16 +00002417
2418
drh04446102009-06-15 00:04:06 +00002419sqlite_version_sanity_check=`cat $srcdir/VERSION | tr -d '\n'`
vapierfaa68db2009-04-01 07:38:31 +00002420if test "$PACKAGE_VERSION" != "$sqlite_version_sanity_check" ; then
drhf922ca42015-05-14 15:39:18 +00002421as_fn_error $? "configure script is out of date:
vapierfaa68db2009-04-01 07:38:31 +00002422 configure \$PACKAGE_VERSION = $PACKAGE_VERSION
2423 top level VERSION file = $sqlite_version_sanity_check
drhf922ca42015-05-14 15:39:18 +00002424please regen with autoconf" "$LINENO" 5
vapierfaa68db2009-04-01 07:38:31 +00002425fi
2426
drh75897232000-05-29 14:26:00 +00002427#########
drh71eb93e2001-09-28 01:34:43 +00002428# Programs needed
drh75897232000-05-29 14:26:00 +00002429#
mlcreech636a9952008-05-05 22:52:56 +00002430case `pwd` in
2431 *\ * | *\ *)
drhf922ca42015-05-14 15:39:18 +00002432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
drh8b727472009-01-19 18:18:40 +00002433$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
mlcreech636a9952008-05-05 22:52:56 +00002434esac
a.rottmann9bc8b932004-02-29 15:18:31 +00002435
mlcreech94984912008-03-04 19:03:08 +00002436
mlcreech636a9952008-05-05 22:52:56 +00002437
vapier6acb2cf2009-01-28 04:46:28 +00002438macro_version='2.2.6'
2439macro_revision='1.3012'
a.rottmann9bc8b932004-02-29 15:18:31 +00002440
mlcreech94984912008-03-04 19:03:08 +00002441
mlcreech94984912008-03-04 19:03:08 +00002442
a.rottmann9bc8b932004-02-29 15:18:31 +00002443
mlcreech636a9952008-05-05 22:52:56 +00002444
2445
2446
2447
2448
2449
2450
2451
2452
2453ltmain="$ac_aux_dir/ltmain.sh"
2454
drh71eb93e2001-09-28 01:34:43 +00002455ac_aux_dir=
drh8b727472009-01-19 18:18:40 +00002456for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
drh0fe0c462011-09-22 00:56:38 +00002457 if test -f "$ac_dir/install-sh"; then
2458 ac_aux_dir=$ac_dir
2459 ac_install_sh="$ac_aux_dir/install-sh -c"
2460 break
2461 elif 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/shtool"; then
2466 ac_aux_dir=$ac_dir
2467 ac_install_sh="$ac_aux_dir/shtool install -c"
2468 break
2469 fi
drh71eb93e2001-09-28 01:34:43 +00002470done
2471if test -z "$ac_aux_dir"; then
drhf922ca42015-05-14 15:39:18 +00002472 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002473fi
drh8b727472009-01-19 18:18:40 +00002474
2475# These three variables are undocumented and unsupported,
2476# and are intended to be withdrawn in a future Autoconf release.
2477# They can cause serious problems if a builder's source tree is in a directory
2478# whose full name contains unusual characters.
2479ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2480ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2481ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2482
drh71eb93e2001-09-28 01:34:43 +00002483
2484# Make sure we can run config.sub.
drh8b727472009-01-19 18:18:40 +00002485$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
drhf922ca42015-05-14 15:39:18 +00002486 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002487
drhf922ca42015-05-14 15:39:18 +00002488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
drh8b727472009-01-19 18:18:40 +00002489$as_echo_n "checking build system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002490if ${ac_cv_build+:} false; then :
drh8b727472009-01-19 18:18:40 +00002491 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002492else
drh8b727472009-01-19 18:18:40 +00002493 ac_build_alias=$build_alias
2494test "x$ac_build_alias" = x &&
2495 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2496test "x$ac_build_alias" = x &&
drhf922ca42015-05-14 15:39:18 +00002497 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002498ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
drhf922ca42015-05-14 15:39:18 +00002499 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
drh71eb93e2001-09-28 01:34:43 +00002500
2501fi
drhf922ca42015-05-14 15:39:18 +00002502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
drh8b727472009-01-19 18:18:40 +00002503$as_echo "$ac_cv_build" >&6; }
2504case $ac_cv_build in
2505*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002506*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002507esac
drh71eb93e2001-09-28 01:34:43 +00002508build=$ac_cv_build
drh8b727472009-01-19 18:18:40 +00002509ac_save_IFS=$IFS; IFS='-'
2510set x $ac_cv_build
2511shift
2512build_cpu=$1
2513build_vendor=$2
2514shift; shift
2515# Remember, the first character of IFS is used to create $*,
2516# except with old shells:
2517build_os=$*
2518IFS=$ac_save_IFS
2519case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002520
a.rottmann84e63352003-03-24 09:42:16 +00002521
drhf922ca42015-05-14 15:39:18 +00002522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
drh8b727472009-01-19 18:18:40 +00002523$as_echo_n "checking host system type... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002524if ${ac_cv_host+:} false; then :
drh8b727472009-01-19 18:18:40 +00002525 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002526else
drh8b727472009-01-19 18:18:40 +00002527 if test "x$host_alias" = x; then
2528 ac_cv_host=$ac_cv_build
2529else
2530 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
drhf922ca42015-05-14 15:39:18 +00002531 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00002532fi
drh71eb93e2001-09-28 01:34:43 +00002533
2534fi
drhf922ca42015-05-14 15:39:18 +00002535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
drh8b727472009-01-19 18:18:40 +00002536$as_echo "$ac_cv_host" >&6; }
2537case $ac_cv_host in
2538*-*-*) ;;
drhf922ca42015-05-14 15:39:18 +00002539*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +00002540esac
drh71eb93e2001-09-28 01:34:43 +00002541host=$ac_cv_host
drh8b727472009-01-19 18:18:40 +00002542ac_save_IFS=$IFS; IFS='-'
2543set x $ac_cv_host
2544shift
2545host_cpu=$1
2546host_vendor=$2
2547shift; shift
2548# Remember, the first character of IFS is used to create $*,
2549# except with old shells:
2550host_os=$*
2551IFS=$ac_save_IFS
2552case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
drh71eb93e2001-09-28 01:34:43 +00002553
a.rottmann84e63352003-03-24 09:42:16 +00002554
drh71eb93e2001-09-28 01:34:43 +00002555ac_ext=c
2556ac_cpp='$CPP $CPPFLAGS'
2557ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2558ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2559ac_compiler_gnu=$ac_cv_c_compiler_gnu
2560if test -n "$ac_tool_prefix"; then
2561 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2562set dummy ${ac_tool_prefix}gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002564$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002565if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002566 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002567else
2568 if test -n "$CC"; then
2569 ac_cv_prog_CC="$CC" # Let the user override the test.
2570else
a.rottmann84e63352003-03-24 09:42:16 +00002571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572for as_dir in $PATH
2573do
2574 IFS=$as_save_IFS
2575 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002576 for ac_exec_ext in '' $ac_executable_extensions; do
2577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002578 ac_cv_prog_CC="${ac_tool_prefix}gcc"
drhf922ca42015-05-14 15:39:18 +00002579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002580 break 2
2581 fi
2582done
drhf922ca42015-05-14 15:39:18 +00002583 done
drh8b727472009-01-19 18:18:40 +00002584IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002585
2586fi
2587fi
2588CC=$ac_cv_prog_CC
2589if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002591$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002592else
drhf922ca42015-05-14 15:39:18 +00002593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002594$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002595fi
2596
drh8b727472009-01-19 18:18:40 +00002597
drh71eb93e2001-09-28 01:34:43 +00002598fi
2599if test -z "$ac_cv_prog_CC"; then
2600 ac_ct_CC=$CC
2601 # Extract the first word of "gcc", so it can be a program name with args.
2602set dummy gcc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002604$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002605if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002606 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002607else
2608 if test -n "$ac_ct_CC"; then
2609 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2610else
a.rottmann84e63352003-03-24 09:42:16 +00002611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612for as_dir in $PATH
2613do
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002618 ac_cv_prog_ac_ct_CC="gcc"
drhf922ca42015-05-14 15:39:18 +00002619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002620 break 2
2621 fi
2622done
drhf922ca42015-05-14 15:39:18 +00002623 done
drh8b727472009-01-19 18:18:40 +00002624IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002625
2626fi
2627fi
2628ac_ct_CC=$ac_cv_prog_ac_ct_CC
2629if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002631$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002632else
drhf922ca42015-05-14 15:39:18 +00002633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002634$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002635fi
2636
drh8b727472009-01-19 18:18:40 +00002637 if test "x$ac_ct_CC" = x; then
2638 CC=""
2639 else
2640 case $cross_compiling:$ac_tool_warned in
2641yes:)
drhf922ca42015-05-14 15:39:18 +00002642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002644ac_tool_warned=yes ;;
2645esac
2646 CC=$ac_ct_CC
2647 fi
drh71eb93e2001-09-28 01:34:43 +00002648else
2649 CC="$ac_cv_prog_CC"
2650fi
2651
2652if test -z "$CC"; then
drh8b727472009-01-19 18:18:40 +00002653 if test -n "$ac_tool_prefix"; then
2654 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
drh71eb93e2001-09-28 01:34:43 +00002655set dummy ${ac_tool_prefix}cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002657$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002658if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002659 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002660else
2661 if test -n "$CC"; then
2662 ac_cv_prog_CC="$CC" # Let the user override the test.
2663else
a.rottmann84e63352003-03-24 09:42:16 +00002664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2665for as_dir in $PATH
2666do
2667 IFS=$as_save_IFS
2668 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002669 for ac_exec_ext in '' $ac_executable_extensions; do
2670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002671 ac_cv_prog_CC="${ac_tool_prefix}cc"
drhf922ca42015-05-14 15:39:18 +00002672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002673 break 2
2674 fi
2675done
drhf922ca42015-05-14 15:39:18 +00002676 done
drh8b727472009-01-19 18:18:40 +00002677IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002678
2679fi
2680fi
2681CC=$ac_cv_prog_CC
2682if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002684$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002685else
drhf922ca42015-05-14 15:39:18 +00002686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002687$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002688fi
2689
drh8b727472009-01-19 18:18:40 +00002690
a.rottmann84e63352003-03-24 09:42:16 +00002691 fi
drh71eb93e2001-09-28 01:34:43 +00002692fi
2693if test -z "$CC"; then
2694 # Extract the first word of "cc", so it can be a program name with args.
2695set dummy cc; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002697$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002698if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002699 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002700else
2701 if test -n "$CC"; then
2702 ac_cv_prog_CC="$CC" # Let the user override the test.
2703else
2704 ac_prog_rejected=no
a.rottmann84e63352003-03-24 09:42:16 +00002705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2706for as_dir in $PATH
2707do
2708 IFS=$as_save_IFS
2709 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002710 for ac_exec_ext in '' $ac_executable_extensions; do
2711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002712 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2713 ac_prog_rejected=yes
2714 continue
2715 fi
2716 ac_cv_prog_CC="cc"
drhf922ca42015-05-14 15:39:18 +00002717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002718 break 2
2719 fi
2720done
drhf922ca42015-05-14 15:39:18 +00002721 done
drh8b727472009-01-19 18:18:40 +00002722IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002723
2724if test $ac_prog_rejected = yes; then
2725 # We found a bogon in the path, so make sure we never use it.
2726 set dummy $ac_cv_prog_CC
2727 shift
2728 if test $# != 0; then
2729 # We chose a different compiler from the bogus one.
2730 # However, it has the same basename, so the bogon will be chosen
2731 # first if we set CC to just the basename; use the full file name.
2732 shift
a.rottmann84e63352003-03-24 09:42:16 +00002733 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
drh71eb93e2001-09-28 01:34:43 +00002734 fi
2735fi
2736fi
2737fi
2738CC=$ac_cv_prog_CC
2739if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002741$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002742else
drhf922ca42015-05-14 15:39:18 +00002743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002744$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002745fi
2746
drh8b727472009-01-19 18:18:40 +00002747
drh71eb93e2001-09-28 01:34:43 +00002748fi
2749if test -z "$CC"; then
2750 if test -n "$ac_tool_prefix"; then
drh8b727472009-01-19 18:18:40 +00002751 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002752 do
2753 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2754set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002756$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002757if ${ac_cv_prog_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002758 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002759else
2760 if test -n "$CC"; then
2761 ac_cv_prog_CC="$CC" # Let the user override the test.
2762else
a.rottmann84e63352003-03-24 09:42:16 +00002763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764for as_dir in $PATH
2765do
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002770 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002772 break 2
2773 fi
2774done
drhf922ca42015-05-14 15:39:18 +00002775 done
drh8b727472009-01-19 18:18:40 +00002776IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002777
2778fi
2779fi
2780CC=$ac_cv_prog_CC
2781if test -n "$CC"; then
drhf922ca42015-05-14 15:39:18 +00002782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
drh8b727472009-01-19 18:18:40 +00002783$as_echo "$CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002784else
drhf922ca42015-05-14 15:39:18 +00002785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002786$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002787fi
2788
drh8b727472009-01-19 18:18:40 +00002789
drh71eb93e2001-09-28 01:34:43 +00002790 test -n "$CC" && break
2791 done
2792fi
2793if test -z "$CC"; then
2794 ac_ct_CC=$CC
drh8b727472009-01-19 18:18:40 +00002795 for ac_prog in cl.exe
drh71eb93e2001-09-28 01:34:43 +00002796do
2797 # Extract the first word of "$ac_prog", so it can be a program name with args.
2798set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00002799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00002800$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002801if ${ac_cv_prog_ac_ct_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00002802 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00002803else
2804 if test -n "$ac_ct_CC"; then
2805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2806else
a.rottmann84e63352003-03-24 09:42:16 +00002807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808for as_dir in $PATH
2809do
2810 IFS=$as_save_IFS
2811 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00002812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
a.rottmann84e63352003-03-24 09:42:16 +00002814 ac_cv_prog_ac_ct_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00002815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002816 break 2
2817 fi
2818done
drhf922ca42015-05-14 15:39:18 +00002819 done
drh8b727472009-01-19 18:18:40 +00002820IFS=$as_save_IFS
drh71eb93e2001-09-28 01:34:43 +00002821
2822fi
2823fi
2824ac_ct_CC=$ac_cv_prog_ac_ct_CC
2825if test -n "$ac_ct_CC"; then
drhf922ca42015-05-14 15:39:18 +00002826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
drh8b727472009-01-19 18:18:40 +00002827$as_echo "$ac_ct_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002828else
drhf922ca42015-05-14 15:39:18 +00002829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00002830$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00002831fi
2832
drh8b727472009-01-19 18:18:40 +00002833
drh71eb93e2001-09-28 01:34:43 +00002834 test -n "$ac_ct_CC" && break
2835done
2836
drh8b727472009-01-19 18:18:40 +00002837 if test "x$ac_ct_CC" = x; then
2838 CC=""
2839 else
2840 case $cross_compiling:$ac_tool_warned in
2841yes:)
drhf922ca42015-05-14 15:39:18 +00002842{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2843$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00002844ac_tool_warned=yes ;;
2845esac
2846 CC=$ac_ct_CC
2847 fi
drh71eb93e2001-09-28 01:34:43 +00002848fi
2849
2850fi
2851
a.rottmann84e63352003-03-24 09:42:16 +00002852
drhf922ca42015-05-14 15:39:18 +00002853test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2855as_fn_error $? "no acceptable C compiler found in \$PATH
2856See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00002857
2858# Provide some information about the compiler.
drhf922ca42015-05-14 15:39:18 +00002859$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
drh8b727472009-01-19 18:18:40 +00002860set X $ac_compile
2861ac_compiler=$2
drhf922ca42015-05-14 15:39:18 +00002862for ac_option in --version -v -V -qversion; do
2863 { { ac_try="$ac_compiler $ac_option >&5"
drh8b727472009-01-19 18:18:40 +00002864case "(($ac_try" in
2865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2866 *) ac_try_echo=$ac_try;;
2867esac
drhf922ca42015-05-14 15:39:18 +00002868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2869$as_echo "$ac_try_echo"; } >&5
2870 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
drh71eb93e2001-09-28 01:34:43 +00002871 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002872 if test -s conftest.err; then
2873 sed '10a\
2874... rest of stderr output deleted ...
2875 10q' conftest.err >conftest.er1
2876 cat conftest.er1 >&5
2877 fi
2878 rm -f conftest.er1 conftest.err
2879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2880 test $ac_status = 0; }
2881done
drh71eb93e2001-09-28 01:34:43 +00002882
drhf922ca42015-05-14 15:39:18 +00002883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00002884/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00002885
2886int
2887main ()
2888{
2889
2890 ;
2891 return 0;
2892}
2893_ACEOF
2894ac_clean_files_save=$ac_clean_files
drh8b727472009-01-19 18:18:40 +00002895ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
drh71eb93e2001-09-28 01:34:43 +00002896# Try to create an executable without -o first, disregard a.out.
2897# It will help us diagnose broken compilers, and finding out an intuition
2898# of exeext.
drhf922ca42015-05-14 15:39:18 +00002899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2900$as_echo_n "checking whether the C compiler works... " >&6; }
drh8b727472009-01-19 18:18:40 +00002901ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
drh866108f2008-05-13 00:57:21 +00002902
drh8b727472009-01-19 18:18:40 +00002903# The possible output files:
2904ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2905
2906ac_rmfiles=
2907for ac_file in $ac_files
2908do
2909 case $ac_file in
2910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2911 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2912 esac
2913done
2914rm -f $ac_rmfiles
2915
drhf922ca42015-05-14 15:39:18 +00002916if { { ac_try="$ac_link_default"
drh8b727472009-01-19 18:18:40 +00002917case "(($ac_try" in
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2920esac
drhf922ca42015-05-14 15:39:18 +00002921eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2922$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00002923 (eval "$ac_link_default") 2>&5
2924 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2926 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00002927 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2928# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2929# in a Makefile. We should not override ac_cv_exeext if it was cached,
2930# so that the user can short-circuit this test for compilers unknown to
2931# Autoconf.
2932for ac_file in $ac_files ''
a.rottmann84e63352003-03-24 09:42:16 +00002933do
2934 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00002935 case $ac_file in
drh8b727472009-01-19 18:18:40 +00002936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
a.rottmann964dbb12004-02-26 19:47:42 +00002937 ;;
a.rottmann84e63352003-03-24 09:42:16 +00002938 [ab].out )
a.rottmann964dbb12004-02-26 19:47:42 +00002939 # We found the default executable, but exeext='' is most
2940 # certainly right.
2941 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002942 *.* )
drhf922ca42015-05-14 15:39:18 +00002943 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
drh8b727472009-01-19 18:18:40 +00002944 then :; else
2945 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2946 fi
2947 # We set ac_cv_exeext here because the later test for it is not
2948 # safe: cross compilers may not add the suffix if given an `-o'
2949 # argument, so we may need to know it at that point already.
2950 # Even if this section looks crufty: it has the advantage of
2951 # actually working.
a.rottmann964dbb12004-02-26 19:47:42 +00002952 break;;
a.rottmann84e63352003-03-24 09:42:16 +00002953 * )
a.rottmann964dbb12004-02-26 19:47:42 +00002954 break;;
drh71eb93e2001-09-28 01:34:43 +00002955 esac
2956done
drh8b727472009-01-19 18:18:40 +00002957test "$ac_cv_exeext" = no && ac_cv_exeext=
2958
drh71eb93e2001-09-28 01:34:43 +00002959else
drh8b727472009-01-19 18:18:40 +00002960 ac_file=''
2961fi
drhf922ca42015-05-14 15:39:18 +00002962if test -z "$ac_file"; then :
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964$as_echo "no" >&6; }
2965$as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00002966sed 's/^/| /' conftest.$ac_ext >&5
2967
drhf922ca42015-05-14 15:39:18 +00002968{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2969$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2970as_fn_error 77 "C compiler cannot create executables
2971See \`config.log' for more details" "$LINENO" 5; }
2972else
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh710658c2012-01-16 13:00:05 +00002974$as_echo "yes" >&6; }
drhf922ca42015-05-14 15:39:18 +00002975fi
2976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2977$as_echo_n "checking for C compiler default output file name... " >&6; }
2978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2979$as_echo "$ac_file" >&6; }
2980ac_exeext=$ac_cv_exeext
drh710658c2012-01-16 13:00:05 +00002981
drh8b727472009-01-19 18:18:40 +00002982rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
drh71eb93e2001-09-28 01:34:43 +00002983ac_clean_files=$ac_clean_files_save
drhf922ca42015-05-14 15:39:18 +00002984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
drh8b727472009-01-19 18:18:40 +00002985$as_echo_n "checking for suffix of executables... " >&6; }
drhf922ca42015-05-14 15:39:18 +00002986if { { ac_try="$ac_link"
drh8b727472009-01-19 18:18:40 +00002987case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2990esac
drhf922ca42015-05-14 15:39:18 +00002991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2992$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00002993 (eval "$ac_link") 2>&5
drh71eb93e2001-09-28 01:34:43 +00002994 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00002995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2996 test $ac_status = 0; }; then :
drh71eb93e2001-09-28 01:34:43 +00002997 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2998# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2999# work properly (i.e., refer to `conftest.exe'), while it won't with
3000# `rm'.
a.rottmann84e63352003-03-24 09:42:16 +00003001for ac_file in conftest.exe conftest conftest.*; do
3002 test -f "$ac_file" || continue
drh71eb93e2001-09-28 01:34:43 +00003003 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
drh71eb93e2001-09-28 01:34:43 +00003005 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
a.rottmann964dbb12004-02-26 19:47:42 +00003006 break;;
drh71eb93e2001-09-28 01:34:43 +00003007 * ) break;;
3008 esac
3009done
3010else
drhf922ca42015-05-14 15:39:18 +00003011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3012$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3013as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3014See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003015fi
drhf922ca42015-05-14 15:39:18 +00003016rm -f conftest conftest$ac_cv_exeext
3017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
drh8b727472009-01-19 18:18:40 +00003018$as_echo "$ac_cv_exeext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003019
3020rm -f conftest.$ac_ext
3021EXEEXT=$ac_cv_exeext
3022ac_exeext=$EXEEXT
drhf922ca42015-05-14 15:39:18 +00003023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3024/* end confdefs.h. */
3025#include <stdio.h>
3026int
3027main ()
3028{
3029FILE *f = fopen ("conftest.out", "w");
3030 return ferror (f) || fclose (f) != 0;
3031
3032 ;
3033 return 0;
3034}
3035_ACEOF
3036ac_clean_files="$ac_clean_files conftest.out"
3037# Check that the compiler produces executables we can run. If not, either
3038# the compiler is broken, or we cross compile.
3039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3040$as_echo_n "checking whether we are cross compiling... " >&6; }
3041if test "$cross_compiling" != yes; then
3042 { { ac_try="$ac_link"
3043case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046esac
3047eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3048$as_echo "$ac_try_echo"; } >&5
3049 (eval "$ac_link") 2>&5
3050 ac_status=$?
3051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3052 test $ac_status = 0; }
3053 if { ac_try='./conftest$ac_cv_exeext'
3054 { { case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057esac
3058eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3059$as_echo "$ac_try_echo"; } >&5
3060 (eval "$ac_try") 2>&5
3061 ac_status=$?
3062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3063 test $ac_status = 0; }; }; then
3064 cross_compiling=no
3065 else
3066 if test "$cross_compiling" = maybe; then
3067 cross_compiling=yes
3068 else
3069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3070$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3071as_fn_error $? "cannot run C compiled programs.
3072If you meant to cross compile, use \`--host'.
3073See \`config.log' for more details" "$LINENO" 5; }
3074 fi
3075 fi
3076fi
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3078$as_echo "$cross_compiling" >&6; }
3079
3080rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3081ac_clean_files=$ac_clean_files_save
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
drh8b727472009-01-19 18:18:40 +00003083$as_echo_n "checking for suffix of object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003084if ${ac_cv_objext+:} false; then :
drh8b727472009-01-19 18:18:40 +00003085 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003086else
drhf922ca42015-05-14 15:39:18 +00003087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003088/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003089
3090int
3091main ()
3092{
3093
3094 ;
3095 return 0;
3096}
3097_ACEOF
3098rm -f conftest.o conftest.obj
drhf922ca42015-05-14 15:39:18 +00003099if { { ac_try="$ac_compile"
drh8b727472009-01-19 18:18:40 +00003100case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103esac
drhf922ca42015-05-14 15:39:18 +00003104eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3105$as_echo "$ac_try_echo"; } >&5
drh8b727472009-01-19 18:18:40 +00003106 (eval "$ac_compile") 2>&5
drh71eb93e2001-09-28 01:34:43 +00003107 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00003108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3109 test $ac_status = 0; }; then :
drh8b727472009-01-19 18:18:40 +00003110 for ac_file in conftest.o conftest.obj conftest.*; do
3111 test -f "$ac_file" || continue;
drh71eb93e2001-09-28 01:34:43 +00003112 case $ac_file in
drh8b727472009-01-19 18:18:40 +00003113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
drh71eb93e2001-09-28 01:34:43 +00003114 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3115 break;;
3116 esac
3117done
3118else
drh8b727472009-01-19 18:18:40 +00003119 $as_echo "$as_me: failed program was:" >&5
a.rottmann84e63352003-03-24 09:42:16 +00003120sed 's/^/| /' conftest.$ac_ext >&5
3121
drhf922ca42015-05-14 15:39:18 +00003122{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3123$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3124as_fn_error $? "cannot compute suffix of object files: cannot compile
3125See \`config.log' for more details" "$LINENO" 5; }
drh71eb93e2001-09-28 01:34:43 +00003126fi
drh71eb93e2001-09-28 01:34:43 +00003127rm -f conftest.$ac_cv_objext conftest.$ac_ext
3128fi
drhf922ca42015-05-14 15:39:18 +00003129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
drh8b727472009-01-19 18:18:40 +00003130$as_echo "$ac_cv_objext" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003131OBJEXT=$ac_cv_objext
3132ac_objext=$OBJEXT
drhf922ca42015-05-14 15:39:18 +00003133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
drh8b727472009-01-19 18:18:40 +00003134$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003135if ${ac_cv_c_compiler_gnu+:} false; then :
drh8b727472009-01-19 18:18:40 +00003136 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003137else
drhf922ca42015-05-14 15:39:18 +00003138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003139/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003140
3141int
3142main ()
3143{
3144#ifndef __GNUC__
3145 choke me
3146#endif
3147
3148 ;
3149 return 0;
3150}
3151_ACEOF
drhf922ca42015-05-14 15:39:18 +00003152if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003153 ac_compiler_gnu=yes
3154else
drhf922ca42015-05-14 15:39:18 +00003155 ac_compiler_gnu=no
drh71eb93e2001-09-28 01:34:43 +00003156fi
drh8b727472009-01-19 18:18:40 +00003157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003158ac_cv_c_compiler_gnu=$ac_compiler_gnu
3159
3160fi
drhf922ca42015-05-14 15:39:18 +00003161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
drh8b727472009-01-19 18:18:40 +00003162$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3163if test $ac_compiler_gnu = yes; then
3164 GCC=yes
3165else
3166 GCC=
3167fi
drh71eb93e2001-09-28 01:34:43 +00003168ac_test_CFLAGS=${CFLAGS+set}
3169ac_save_CFLAGS=$CFLAGS
drhf922ca42015-05-14 15:39:18 +00003170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
drh8b727472009-01-19 18:18:40 +00003171$as_echo_n "checking whether $CC accepts -g... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003172if ${ac_cv_prog_cc_g+:} false; then :
drh8b727472009-01-19 18:18:40 +00003173 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003174else
drh8b727472009-01-19 18:18:40 +00003175 ac_save_c_werror_flag=$ac_c_werror_flag
3176 ac_c_werror_flag=yes
3177 ac_cv_prog_cc_g=no
3178 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003180/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00003181
3182int
3183main ()
3184{
3185
3186 ;
3187 return 0;
3188}
3189_ACEOF
drhf922ca42015-05-14 15:39:18 +00003190if ac_fn_c_try_compile "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00003191 ac_cv_prog_cc_g=yes
3192else
drhf922ca42015-05-14 15:39:18 +00003193 CFLAGS=""
3194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003195/* end confdefs.h. */
3196
3197int
3198main ()
3199{
3200
3201 ;
3202 return 0;
3203}
3204_ACEOF
drhf922ca42015-05-14 15:39:18 +00003205if ac_fn_c_try_compile "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00003206
drhf922ca42015-05-14 15:39:18 +00003207else
3208 ac_c_werror_flag=$ac_save_c_werror_flag
drh8b727472009-01-19 18:18:40 +00003209 CFLAGS="-g"
drhf922ca42015-05-14 15:39:18 +00003210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00003211/* end confdefs.h. */
3212
3213int
3214main ()
3215{
3216
3217 ;
3218 return 0;
3219}
3220_ACEOF
drhf922ca42015-05-14 15:39:18 +00003221if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003222 ac_cv_prog_cc_g=yes
drh71eb93e2001-09-28 01:34:43 +00003223fi
drh8b727472009-01-19 18:18:40 +00003224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00003225fi
drh8b727472009-01-19 18:18:40 +00003226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227fi
drh8b727472009-01-19 18:18:40 +00003228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 ac_c_werror_flag=$ac_save_c_werror_flag
3230fi
drhf922ca42015-05-14 15:39:18 +00003231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
drh8b727472009-01-19 18:18:40 +00003232$as_echo "$ac_cv_prog_cc_g" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003233if test "$ac_test_CFLAGS" = set; then
3234 CFLAGS=$ac_save_CFLAGS
3235elif test $ac_cv_prog_cc_g = yes; then
3236 if test "$GCC" = yes; then
3237 CFLAGS="-g -O2"
3238 else
3239 CFLAGS="-g"
3240 fi
3241else
3242 if test "$GCC" = yes; then
3243 CFLAGS="-O2"
3244 else
3245 CFLAGS=
3246 fi
3247fi
drhf922ca42015-05-14 15:39:18 +00003248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
drh8b727472009-01-19 18:18:40 +00003249$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003250if ${ac_cv_prog_cc_c89+:} false; then :
drh8b727472009-01-19 18:18:40 +00003251 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00003252else
drh8b727472009-01-19 18:18:40 +00003253 ac_cv_prog_cc_c89=no
a.rottmann84e63352003-03-24 09:42:16 +00003254ac_save_CC=$CC
drhf922ca42015-05-14 15:39:18 +00003255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003256/* end confdefs.h. */
3257#include <stdarg.h>
3258#include <stdio.h>
drhf922ca42015-05-14 15:39:18 +00003259struct stat;
a.rottmann84e63352003-03-24 09:42:16 +00003260/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3261struct buf { int x; };
3262FILE * (*rcsopen) (struct buf *, struct stat *, int);
3263static char *e (p, i)
3264 char **p;
3265 int i;
3266{
3267 return p[i];
3268}
3269static char *f (char * (*g) (char **, int), char **p, ...)
3270{
3271 char *s;
3272 va_list v;
3273 va_start (v,p);
3274 s = g (p, va_arg (v,int));
3275 va_end (v);
3276 return s;
3277}
a.rottmann964dbb12004-02-26 19:47:42 +00003278
3279/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3280 function prototypes and stuff, but not '\xHH' hex character constants.
3281 These don't provoke an error unfortunately, instead are silently treated
drh8b727472009-01-19 18:18:40 +00003282 as 'x'. The following induces an error, until -std is added to get
a.rottmann964dbb12004-02-26 19:47:42 +00003283 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3284 array size at least. It's necessary to write '\x00'==0 to get something
drh8b727472009-01-19 18:18:40 +00003285 that's true only with -std. */
a.rottmann964dbb12004-02-26 19:47:42 +00003286int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3287
drh8b727472009-01-19 18:18:40 +00003288/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3289 inside strings and character constants. */
3290#define FOO(x) 'x'
3291int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3292
a.rottmann84e63352003-03-24 09:42:16 +00003293int test (int i, double x);
3294struct s1 {int (*f) (int a);};
3295struct s2 {int (*f) (double a);};
3296int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3297int argc;
3298char **argv;
3299int
3300main ()
3301{
3302return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3303 ;
3304 return 0;
3305}
3306_ACEOF
drh8b727472009-01-19 18:18:40 +00003307for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3308 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
a.rottmann84e63352003-03-24 09:42:16 +00003309do
3310 CC="$ac_save_CC $ac_arg"
drhf922ca42015-05-14 15:39:18 +00003311 if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +00003312 ac_cv_prog_cc_c89=$ac_arg
a.rottmann84e63352003-03-24 09:42:16 +00003313fi
drh8b727472009-01-19 18:18:40 +00003314rm -f core conftest.err conftest.$ac_objext
3315 test "x$ac_cv_prog_cc_c89" != "xno" && break
a.rottmann84e63352003-03-24 09:42:16 +00003316done
drh8b727472009-01-19 18:18:40 +00003317rm -f conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00003318CC=$ac_save_CC
3319
3320fi
drh8b727472009-01-19 18:18:40 +00003321# AC_CACHE_VAL
3322case "x$ac_cv_prog_cc_c89" in
3323 x)
drhf922ca42015-05-14 15:39:18 +00003324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
drh8b727472009-01-19 18:18:40 +00003325$as_echo "none needed" >&6; } ;;
3326 xno)
drhf922ca42015-05-14 15:39:18 +00003327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
drh8b727472009-01-19 18:18:40 +00003328$as_echo "unsupported" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003329 *)
drh8b727472009-01-19 18:18:40 +00003330 CC="$CC $ac_cv_prog_cc_c89"
drhf922ca42015-05-14 15:39:18 +00003331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
drh8b727472009-01-19 18:18:40 +00003332$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
a.rottmann84e63352003-03-24 09:42:16 +00003333esac
drhf922ca42015-05-14 15:39:18 +00003334if test "x$ac_cv_prog_cc_c89" != xno; then :
a.rottmann84e63352003-03-24 09:42:16 +00003335
drhf922ca42015-05-14 15:39:18 +00003336fi
a.rottmann84e63352003-03-24 09:42:16 +00003337
drh71eb93e2001-09-28 01:34:43 +00003338ac_ext=c
3339ac_cpp='$CPP $CPPFLAGS'
3340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342ac_compiler_gnu=$ac_cv_c_compiler_gnu
3343
drhf922ca42015-05-14 15:39:18 +00003344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
drh8b727472009-01-19 18:18:40 +00003345$as_echo_n "checking for a sed that does not truncate output... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003346if ${ac_cv_path_SED+:} false; then :
drh8b727472009-01-19 18:18:40 +00003347 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003348else
drh8b727472009-01-19 18:18:40 +00003349 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3350 for ac_i in 1 2 3 4 5 6 7; do
3351 ac_script="$ac_script$as_nl$ac_script"
3352 done
3353 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
drhf922ca42015-05-14 15:39:18 +00003354 { ac_script=; unset ac_script;}
drh8b727472009-01-19 18:18:40 +00003355 if test -z "$SED"; then
3356 ac_path_SED_found=false
3357 # Loop through the user's path and test for each of PROGNAME-LIST
3358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
a.rottmann9bc8b932004-02-29 15:18:31 +00003359for as_dir in $PATH
3360do
3361 IFS=$as_save_IFS
3362 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003363 for ac_prog in sed gsed; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003364 for ac_exec_ext in '' $ac_executable_extensions; do
drh8b727472009-01-19 18:18:40 +00003365 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003366 as_fn_executable_p "$ac_path_SED" || continue
drh8b727472009-01-19 18:18:40 +00003367# Check for GNU ac_path_SED and select it if it is found.
3368 # Check for GNU $ac_path_SED
3369case `"$ac_path_SED" --version 2>&1` in
3370*GNU*)
3371 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3372*)
3373 ac_count=0
3374 $as_echo_n 0123456789 >"conftest.in"
3375 while :
3376 do
3377 cat "conftest.in" "conftest.in" >"conftest.tmp"
3378 mv "conftest.tmp" "conftest.in"
3379 cp "conftest.in" "conftest.nl"
3380 $as_echo '' >> "conftest.nl"
3381 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3382 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003383 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003384 if test $ac_count -gt ${ac_path_SED_max-0}; then
3385 # Best one so far, save it but keep looking for a better one
3386 ac_cv_path_SED="$ac_path_SED"
3387 ac_path_SED_max=$ac_count
3388 fi
3389 # 10*(2^10) chars as input seems more than enough
3390 test $ac_count -gt 10 && break
3391 done
3392 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3393esac
3394
3395 $ac_path_SED_found && break 3
a.rottmann9bc8b932004-02-29 15:18:31 +00003396 done
3397 done
drhf922ca42015-05-14 15:39:18 +00003398 done
mlcreech636a9952008-05-05 22:52:56 +00003399IFS=$as_save_IFS
drh8b727472009-01-19 18:18:40 +00003400 if test -z "$ac_cv_path_SED"; then
drhf922ca42015-05-14 15:39:18 +00003401 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
a.rottmann9bc8b932004-02-29 15:18:31 +00003402 fi
drh8b727472009-01-19 18:18:40 +00003403else
3404 ac_cv_path_SED=$SED
mlcreech636a9952008-05-05 22:52:56 +00003405fi
drh866108f2008-05-13 00:57:21 +00003406
drh8b727472009-01-19 18:18:40 +00003407fi
drhf922ca42015-05-14 15:39:18 +00003408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
drh8b727472009-01-19 18:18:40 +00003409$as_echo "$ac_cv_path_SED" >&6; }
3410 SED="$ac_cv_path_SED"
3411 rm -f conftest.sed
a.rottmann9bc8b932004-02-29 15:18:31 +00003412
mlcreech636a9952008-05-05 22:52:56 +00003413test -z "$SED" && SED=sed
3414Xsed="$SED -e 1s/^X//"
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
drhf922ca42015-05-14 15:39:18 +00003426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
drh8b727472009-01-19 18:18:40 +00003427$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003428if ${ac_cv_path_GREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003429 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00003430else
drh8b727472009-01-19 18:18:40 +00003431 if test -z "$GREP"; then
3432 ac_path_GREP_found=false
3433 # Loop through the user's path and test for each of PROGNAME-LIST
3434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3436do
3437 IFS=$as_save_IFS
3438 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003439 for ac_prog in grep ggrep; do
drh8b727472009-01-19 18:18:40 +00003440 for ac_exec_ext in '' $ac_executable_extensions; do
3441 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003442 as_fn_executable_p "$ac_path_GREP" || continue
drh8b727472009-01-19 18:18:40 +00003443# Check for GNU ac_path_GREP and select it if it is found.
3444 # Check for GNU $ac_path_GREP
3445case `"$ac_path_GREP" --version 2>&1` in
3446*GNU*)
3447 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3448*)
3449 ac_count=0
3450 $as_echo_n 0123456789 >"conftest.in"
3451 while :
3452 do
3453 cat "conftest.in" "conftest.in" >"conftest.tmp"
3454 mv "conftest.tmp" "conftest.in"
3455 cp "conftest.in" "conftest.nl"
3456 $as_echo 'GREP' >> "conftest.nl"
3457 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3458 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003459 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003460 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3461 # Best one so far, save it but keep looking for a better one
3462 ac_cv_path_GREP="$ac_path_GREP"
3463 ac_path_GREP_max=$ac_count
a.rottmann9bc8b932004-02-29 15:18:31 +00003464 fi
drh8b727472009-01-19 18:18:40 +00003465 # 10*(2^10) chars as input seems more than enough
3466 test $ac_count -gt 10 && break
3467 done
3468 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3469esac
3470
3471 $ac_path_GREP_found && break 3
3472 done
3473 done
drhf922ca42015-05-14 15:39:18 +00003474 done
drh8b727472009-01-19 18:18:40 +00003475IFS=$as_save_IFS
3476 if test -z "$ac_cv_path_GREP"; then
drhf922ca42015-05-14 15:39:18 +00003477 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003478 fi
3479else
3480 ac_cv_path_GREP=$GREP
mlcreech94984912008-03-04 19:03:08 +00003481fi
drh8b727472009-01-19 18:18:40 +00003482
3483fi
drhf922ca42015-05-14 15:39:18 +00003484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
drh8b727472009-01-19 18:18:40 +00003485$as_echo "$ac_cv_path_GREP" >&6; }
3486 GREP="$ac_cv_path_GREP"
mlcreech94984912008-03-04 19:03:08 +00003487
3488
drhf922ca42015-05-14 15:39:18 +00003489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
drh8b727472009-01-19 18:18:40 +00003490$as_echo_n "checking for egrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003491if ${ac_cv_path_EGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003492 $as_echo_n "(cached) " >&6
mlcreech94984912008-03-04 19:03:08 +00003493else
drh8b727472009-01-19 18:18:40 +00003494 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3495 then ac_cv_path_EGREP="$GREP -E"
3496 else
3497 if test -z "$EGREP"; then
3498 ac_path_EGREP_found=false
3499 # Loop through the user's path and test for each of PROGNAME-LIST
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3502do
3503 IFS=$as_save_IFS
3504 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003505 for ac_prog in egrep; do
drh8b727472009-01-19 18:18:40 +00003506 for ac_exec_ext in '' $ac_executable_extensions; do
3507 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003508 as_fn_executable_p "$ac_path_EGREP" || continue
drh8b727472009-01-19 18:18:40 +00003509# Check for GNU ac_path_EGREP and select it if it is found.
3510 # Check for GNU $ac_path_EGREP
3511case `"$ac_path_EGREP" --version 2>&1` in
3512*GNU*)
3513 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3514*)
3515 ac_count=0
3516 $as_echo_n 0123456789 >"conftest.in"
3517 while :
3518 do
3519 cat "conftest.in" "conftest.in" >"conftest.tmp"
3520 mv "conftest.tmp" "conftest.in"
3521 cp "conftest.in" "conftest.nl"
3522 $as_echo 'EGREP' >> "conftest.nl"
3523 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3524 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003525 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003526 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3527 # Best one so far, save it but keep looking for a better one
3528 ac_cv_path_EGREP="$ac_path_EGREP"
3529 ac_path_EGREP_max=$ac_count
mlcreech94984912008-03-04 19:03:08 +00003530 fi
drh8b727472009-01-19 18:18:40 +00003531 # 10*(2^10) chars as input seems more than enough
3532 test $ac_count -gt 10 && break
3533 done
3534 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3535esac
3536
3537 $ac_path_EGREP_found && break 3
3538 done
3539 done
drhf922ca42015-05-14 15:39:18 +00003540 done
drh8b727472009-01-19 18:18:40 +00003541IFS=$as_save_IFS
3542 if test -z "$ac_cv_path_EGREP"; then
drhf922ca42015-05-14 15:39:18 +00003543 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003544 fi
3545else
3546 ac_cv_path_EGREP=$EGREP
mlcreech94984912008-03-04 19:03:08 +00003547fi
drh8b727472009-01-19 18:18:40 +00003548
3549 fi
3550fi
drhf922ca42015-05-14 15:39:18 +00003551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
drh8b727472009-01-19 18:18:40 +00003552$as_echo "$ac_cv_path_EGREP" >&6; }
3553 EGREP="$ac_cv_path_EGREP"
3554
3555
drhf922ca42015-05-14 15:39:18 +00003556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
drh8b727472009-01-19 18:18:40 +00003557$as_echo_n "checking for fgrep... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003558if ${ac_cv_path_FGREP+:} false; then :
drh8b727472009-01-19 18:18:40 +00003559 $as_echo_n "(cached) " >&6
3560else
3561 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3562 then ac_cv_path_FGREP="$GREP -F"
3563 else
3564 if test -z "$FGREP"; then
3565 ac_path_FGREP_found=false
3566 # Loop through the user's path and test for each of PROGNAME-LIST
3567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3569do
3570 IFS=$as_save_IFS
3571 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003572 for ac_prog in fgrep; do
drh8b727472009-01-19 18:18:40 +00003573 for ac_exec_ext in '' $ac_executable_extensions; do
3574 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
drhf922ca42015-05-14 15:39:18 +00003575 as_fn_executable_p "$ac_path_FGREP" || continue
drh8b727472009-01-19 18:18:40 +00003576# Check for GNU ac_path_FGREP and select it if it is found.
3577 # Check for GNU $ac_path_FGREP
3578case `"$ac_path_FGREP" --version 2>&1` in
3579*GNU*)
3580 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3581*)
3582 ac_count=0
3583 $as_echo_n 0123456789 >"conftest.in"
3584 while :
3585 do
3586 cat "conftest.in" "conftest.in" >"conftest.tmp"
3587 mv "conftest.tmp" "conftest.in"
3588 cp "conftest.in" "conftest.nl"
3589 $as_echo 'FGREP' >> "conftest.nl"
3590 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3591 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
drhf922ca42015-05-14 15:39:18 +00003592 as_fn_arith $ac_count + 1 && ac_count=$as_val
drh8b727472009-01-19 18:18:40 +00003593 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3594 # Best one so far, save it but keep looking for a better one
3595 ac_cv_path_FGREP="$ac_path_FGREP"
3596 ac_path_FGREP_max=$ac_count
3597 fi
3598 # 10*(2^10) chars as input seems more than enough
3599 test $ac_count -gt 10 && break
3600 done
3601 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3602esac
3603
3604 $ac_path_FGREP_found && break 3
3605 done
3606 done
drhf922ca42015-05-14 15:39:18 +00003607 done
drh8b727472009-01-19 18:18:40 +00003608IFS=$as_save_IFS
3609 if test -z "$ac_cv_path_FGREP"; then
drhf922ca42015-05-14 15:39:18 +00003610 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +00003611 fi
3612else
3613 ac_cv_path_FGREP=$FGREP
3614fi
3615
3616 fi
3617fi
drhf922ca42015-05-14 15:39:18 +00003618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
drh8b727472009-01-19 18:18:40 +00003619$as_echo "$ac_cv_path_FGREP" >&6; }
3620 FGREP="$ac_cv_path_FGREP"
mlcreech636a9952008-05-05 22:52:56 +00003621
3622
3623test -z "$GREP" && GREP=grep
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
a.rottmann9bc8b932004-02-29 15:18:31 +00003640
3641
a.rottmann84e63352003-03-24 09:42:16 +00003642
drh8b727472009-01-19 18:18:40 +00003643# Check whether --with-gnu-ld was given.
drhf922ca42015-05-14 15:39:18 +00003644if test "${with_gnu_ld+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00003645 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
drh71eb93e2001-09-28 01:34:43 +00003646else
3647 with_gnu_ld=no
drh8b727472009-01-19 18:18:40 +00003648fi
3649
drh71eb93e2001-09-28 01:34:43 +00003650ac_prog=ld
3651if test "$GCC" = yes; then
3652 # Check if gcc -print-prog-name=ld gives a path.
drhf922ca42015-05-14 15:39:18 +00003653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
drh8b727472009-01-19 18:18:40 +00003654$as_echo_n "checking for ld used by $CC... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003655 case $host in
3656 *-*-mingw*)
3657 # gcc leaves a trailing carriage return which upsets mingw
3658 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3659 *)
3660 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3661 esac
3662 case $ac_prog in
3663 # Accept absolute paths.
a.rottmann9bc8b932004-02-29 15:18:31 +00003664 [\\/]* | ?:[\\/]*)
drh71eb93e2001-09-28 01:34:43 +00003665 re_direlt='/[^/][^/]*/\.\./'
a.rottmann9bc8b932004-02-29 15:18:31 +00003666 # Canonicalize the pathname of ld
mlcreech636a9952008-05-05 22:52:56 +00003667 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3668 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3669 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
drh71eb93e2001-09-28 01:34:43 +00003670 done
3671 test -z "$LD" && LD="$ac_prog"
3672 ;;
3673 "")
3674 # If it fails, then pretend we aren't using GCC.
3675 ac_prog=ld
3676 ;;
3677 *)
3678 # If it is relative, then search for the first ld in PATH.
3679 with_gnu_ld=unknown
3680 ;;
3681 esac
3682elif test "$with_gnu_ld" = yes; then
drhf922ca42015-05-14 15:39:18 +00003683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003684$as_echo_n "checking for GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003685else
drhf922ca42015-05-14 15:39:18 +00003686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003687$as_echo_n "checking for non-GNU ld... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003688fi
drhf922ca42015-05-14 15:39:18 +00003689if ${lt_cv_path_LD+:} false; then :
drh8b727472009-01-19 18:18:40 +00003690 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003691else
3692 if test -z "$LD"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00003693 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
drh71eb93e2001-09-28 01:34:43 +00003694 for ac_dir in $PATH; do
a.rottmann9bc8b932004-02-29 15:18:31 +00003695 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003696 test -z "$ac_dir" && ac_dir=.
3697 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3698 lt_cv_path_LD="$ac_dir/$ac_prog"
3699 # Check to see if the program is GNU ld. I'd rather use --version,
vapier7f19c022007-02-17 14:46:31 +00003700 # but apparently some variants of GNU ld only accept -v.
drh71eb93e2001-09-28 01:34:43 +00003701 # Break only if it was the GNU/non-GNU ld that we prefer.
a.rottmann9bc8b932004-02-29 15:18:31 +00003702 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3703 *GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003704 test "$with_gnu_ld" != no && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003705 ;;
3706 *)
drh71eb93e2001-09-28 01:34:43 +00003707 test "$with_gnu_ld" != yes && break
a.rottmann9bc8b932004-02-29 15:18:31 +00003708 ;;
3709 esac
drh71eb93e2001-09-28 01:34:43 +00003710 fi
3711 done
a.rottmann9bc8b932004-02-29 15:18:31 +00003712 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003713else
3714 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3715fi
3716fi
3717
3718LD="$lt_cv_path_LD"
3719if test -n "$LD"; then
drhf922ca42015-05-14 15:39:18 +00003720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
drh8b727472009-01-19 18:18:40 +00003721$as_echo "$LD" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003722else
drhf922ca42015-05-14 15:39:18 +00003723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003724$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003725fi
drhf922ca42015-05-14 15:39:18 +00003726test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
3727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
drh8b727472009-01-19 18:18:40 +00003728$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003729if ${lt_cv_prog_gnu_ld+:} false; then :
drh8b727472009-01-19 18:18:40 +00003730 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003731else
vapier7f19c022007-02-17 14:46:31 +00003732 # I'd rather use --version here, but apparently some GNU lds only accept -v.
a.rottmann9bc8b932004-02-29 15:18:31 +00003733case `$LD -v 2>&1 </dev/null` in
3734*GNU* | *'with BFD'*)
drh71eb93e2001-09-28 01:34:43 +00003735 lt_cv_prog_gnu_ld=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00003736 ;;
3737*)
drh71eb93e2001-09-28 01:34:43 +00003738 lt_cv_prog_gnu_ld=no
a.rottmann9bc8b932004-02-29 15:18:31 +00003739 ;;
3740esac
drh71eb93e2001-09-28 01:34:43 +00003741fi
drhf922ca42015-05-14 15:39:18 +00003742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
drh8b727472009-01-19 18:18:40 +00003743$as_echo "$lt_cv_prog_gnu_ld" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003744with_gnu_ld=$lt_cv_prog_gnu_ld
3745
a.rottmann84e63352003-03-24 09:42:16 +00003746
drh71eb93e2001-09-28 01:34:43 +00003747
mlcreech636a9952008-05-05 22:52:56 +00003748
3749
3750
3751
3752
3753
drhf922ca42015-05-14 15:39:18 +00003754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
drh8b727472009-01-19 18:18:40 +00003755$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003756if ${lt_cv_path_NM+:} false; then :
drh8b727472009-01-19 18:18:40 +00003757 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00003758else
3759 if test -n "$NM"; then
3760 # Let the user override the test.
3761 lt_cv_path_NM="$NM"
3762else
vapier7f19c022007-02-17 14:46:31 +00003763 lt_nm_to_check="${ac_tool_prefix}nm"
3764 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3765 lt_nm_to_check="$lt_nm_to_check nm"
3766 fi
3767 for lt_tmp_nm in $lt_nm_to_check; do
3768 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3769 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3770 IFS="$lt_save_ifs"
3771 test -z "$ac_dir" && ac_dir=.
3772 tmp_nm="$ac_dir/$lt_tmp_nm"
3773 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3774 # Check to see if the nm accepts a BSD-compat flag.
3775 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3776 # nm: unknown option "B" ignored
3777 # Tru64's nm complains that /dev/null is an invalid object file
3778 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3779 */dev/null* | *'Invalid file or object type'*)
3780 lt_cv_path_NM="$tmp_nm -B"
a.rottmann9bc8b932004-02-29 15:18:31 +00003781 break
3782 ;;
3783 *)
vapier7f19c022007-02-17 14:46:31 +00003784 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3785 */dev/null*)
3786 lt_cv_path_NM="$tmp_nm -p"
3787 break
3788 ;;
3789 *)
3790 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3791 continue # so that we can try to find one that supports BSD flags
3792 ;;
3793 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00003794 ;;
3795 esac
vapier7f19c022007-02-17 14:46:31 +00003796 fi
3797 done
3798 IFS="$lt_save_ifs"
drh71eb93e2001-09-28 01:34:43 +00003799 done
mlcreech636a9952008-05-05 22:52:56 +00003800 : ${lt_cv_path_NM=no}
drh71eb93e2001-09-28 01:34:43 +00003801fi
3802fi
drhf922ca42015-05-14 15:39:18 +00003803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
drh8b727472009-01-19 18:18:40 +00003804$as_echo "$lt_cv_path_NM" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003805if test "$lt_cv_path_NM" != "no"; then
3806 NM="$lt_cv_path_NM"
3807else
3808 # Didn't find any BSD compatible name lister, look for dumpbin.
3809 if test -n "$ac_tool_prefix"; then
3810 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3811 do
3812 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3813set dummy $ac_tool_prefix$ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003815$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003816if ${ac_cv_prog_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003817 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003818else
3819 if test -n "$DUMPBIN"; then
3820 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3821else
3822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823for as_dir in $PATH
3824do
3825 IFS=$as_save_IFS
3826 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003829 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003831 break 2
3832 fi
3833done
drhf922ca42015-05-14 15:39:18 +00003834 done
drh8b727472009-01-19 18:18:40 +00003835IFS=$as_save_IFS
a.rottmann84e63352003-03-24 09:42:16 +00003836
mlcreech636a9952008-05-05 22:52:56 +00003837fi
3838fi
3839DUMPBIN=$ac_cv_prog_DUMPBIN
3840if test -n "$DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003842$as_echo "$DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003843else
drhf922ca42015-05-14 15:39:18 +00003844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003845$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003846fi
3847
drh8b727472009-01-19 18:18:40 +00003848
mlcreech636a9952008-05-05 22:52:56 +00003849 test -n "$DUMPBIN" && break
3850 done
3851fi
3852if test -z "$DUMPBIN"; then
3853 ac_ct_DUMPBIN=$DUMPBIN
3854 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3855do
3856 # Extract the first word of "$ac_prog", so it can be a program name with args.
3857set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00003858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00003859$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003860if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
drh8b727472009-01-19 18:18:40 +00003861 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003862else
3863 if test -n "$ac_ct_DUMPBIN"; then
3864 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3865else
3866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867for as_dir in $PATH
3868do
3869 IFS=$as_save_IFS
3870 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00003871 for ac_exec_ext in '' $ac_executable_extensions; do
3872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00003873 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
drhf922ca42015-05-14 15:39:18 +00003874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00003875 break 2
3876 fi
3877done
drhf922ca42015-05-14 15:39:18 +00003878 done
drh8b727472009-01-19 18:18:40 +00003879IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00003880
3881fi
3882fi
3883ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
3884if test -n "$ac_ct_DUMPBIN"; then
drhf922ca42015-05-14 15:39:18 +00003885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
drh8b727472009-01-19 18:18:40 +00003886$as_echo "$ac_ct_DUMPBIN" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003887else
drhf922ca42015-05-14 15:39:18 +00003888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00003889$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003890fi
3891
drh8b727472009-01-19 18:18:40 +00003892
mlcreech636a9952008-05-05 22:52:56 +00003893 test -n "$ac_ct_DUMPBIN" && break
3894done
3895
drh8b727472009-01-19 18:18:40 +00003896 if test "x$ac_ct_DUMPBIN" = x; then
3897 DUMPBIN=":"
3898 else
3899 case $cross_compiling:$ac_tool_warned in
3900yes:)
drhf922ca42015-05-14 15:39:18 +00003901{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3902$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00003903ac_tool_warned=yes ;;
3904esac
3905 DUMPBIN=$ac_ct_DUMPBIN
3906 fi
mlcreech636a9952008-05-05 22:52:56 +00003907fi
3908
3909
3910 if test "$DUMPBIN" != ":"; then
3911 NM="$DUMPBIN"
3912 fi
3913fi
3914test -z "$NM" && NM=nm
3915
3916
3917
3918
3919
3920
drhf922ca42015-05-14 15:39:18 +00003921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
drh8b727472009-01-19 18:18:40 +00003922$as_echo_n "checking the name lister ($NM) interface... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003923if ${lt_cv_nm_interface+:} false; then :
drh8b727472009-01-19 18:18:40 +00003924 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003925else
3926 lt_cv_nm_interface="BSD nm"
3927 echo "int some_variable = 0;" > conftest.$ac_ext
drh5e18d402016-05-03 13:14:18 +00003928 (eval echo "\"\$as_me:3928: $ac_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003929 (eval "$ac_compile" 2>conftest.err)
3930 cat conftest.err >&5
drh5e18d402016-05-03 13:14:18 +00003931 (eval echo "\"\$as_me:3931: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003932 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3933 cat conftest.err >&5
drh5e18d402016-05-03 13:14:18 +00003934 (eval echo "\"\$as_me:3934: output\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00003935 cat conftest.out >&5
3936 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3937 lt_cv_nm_interface="MS dumpbin"
3938 fi
3939 rm -f conftest*
3940fi
drhf922ca42015-05-14 15:39:18 +00003941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
drh8b727472009-01-19 18:18:40 +00003942$as_echo "$lt_cv_nm_interface" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00003943
drhf922ca42015-05-14 15:39:18 +00003944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
drh8b727472009-01-19 18:18:40 +00003945$as_echo_n "checking whether ln -s works... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00003946LN_S=$as_ln_s
3947if test "$LN_S" = "ln -s"; then
drhf922ca42015-05-14 15:39:18 +00003948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00003949$as_echo "yes" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003950else
drhf922ca42015-05-14 15:39:18 +00003951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
drh8b727472009-01-19 18:18:40 +00003952$as_echo "no, using $LN_S" >&6; }
drh71eb93e2001-09-28 01:34:43 +00003953fi
3954
mlcreech636a9952008-05-05 22:52:56 +00003955# find the maximum length of command line arguments
drhf922ca42015-05-14 15:39:18 +00003956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
drh8b727472009-01-19 18:18:40 +00003957$as_echo_n "checking the maximum length of command line arguments... " >&6; }
drhf922ca42015-05-14 15:39:18 +00003958if ${lt_cv_sys_max_cmd_len+:} false; then :
drh8b727472009-01-19 18:18:40 +00003959 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00003960else
3961 i=0
3962 teststring="ABCD"
3963
3964 case $build_os in
3965 msdosdjgpp*)
3966 # On DJGPP, this test can blow up pretty badly due to problems in libc
3967 # (any single argument exceeding 2000 bytes causes a buffer overrun
3968 # during glob expansion). Even if it were fixed, the result of this
3969 # check would be larger than it should be.
3970 lt_cv_sys_max_cmd_len=12288; # 12K is about right
3971 ;;
3972
3973 gnu*)
3974 # Under GNU Hurd, this test is not required because there is
3975 # no limit to the length of command line arguments.
3976 # Libtool will interpret -1 as no limit whatsoever
3977 lt_cv_sys_max_cmd_len=-1;
3978 ;;
3979
vapier6acb2cf2009-01-28 04:46:28 +00003980 cygwin* | mingw* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00003981 # On Win9x/ME, this test blows up -- it succeeds, but takes
3982 # about 5 minutes as the teststring grows exponentially.
3983 # Worse, since 9x/ME are not pre-emptively multitasking,
3984 # you end up with a "frozen" computer, even though with patience
3985 # the test eventually succeeds (with a max line length of 256k).
3986 # Instead, let's just punt: use the minimum linelength reported by
3987 # all of the supported platforms: 8192 (on NT/2K/XP).
3988 lt_cv_sys_max_cmd_len=8192;
3989 ;;
3990
3991 amigaos*)
3992 # On AmigaOS with pdksh, this test takes hours, literally.
3993 # So we just punt and use a minimum line length of 8192.
3994 lt_cv_sys_max_cmd_len=8192;
3995 ;;
3996
3997 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
3998 # This has been around since 386BSD, at least. Likely further.
3999 if test -x /sbin/sysctl; then
4000 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4001 elif test -x /usr/sbin/sysctl; then
4002 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4003 else
4004 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4005 fi
4006 # And add a safety zone
4007 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4008 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4009 ;;
4010
4011 interix*)
4012 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4013 lt_cv_sys_max_cmd_len=196608
4014 ;;
4015
4016 osf*)
4017 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4018 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4019 # nice to cause kernel panics so lets avoid the loop below.
4020 # First set a reasonable default.
4021 lt_cv_sys_max_cmd_len=16384
4022 #
4023 if test -x /sbin/sysconfig; then
4024 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4025 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4026 esac
4027 fi
4028 ;;
4029 sco3.2v5*)
4030 lt_cv_sys_max_cmd_len=102400
4031 ;;
4032 sysv5* | sco5v6* | sysv4.2uw2*)
4033 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4034 if test -n "$kargmax"; then
4035 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4036 else
4037 lt_cv_sys_max_cmd_len=32768
4038 fi
4039 ;;
4040 *)
4041 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4042 if test -n "$lt_cv_sys_max_cmd_len"; then
4043 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4044 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4045 else
4046 # Make teststring a little bigger before we do anything with it.
4047 # a 1K string should be a reasonable start.
4048 for i in 1 2 3 4 5 6 7 8 ; do
4049 teststring=$teststring$teststring
4050 done
4051 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4052 # If test is not a shell built-in, we'll probably end up computing a
4053 # maximum length that is only half of the actual maximum length, but
4054 # we can't tell.
4055 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4056 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4057 test $i != 17 # 1/2 MB should be enough
4058 do
4059 i=`expr $i + 1`
4060 teststring=$teststring$teststring
4061 done
4062 # Only check the string length outside the loop.
4063 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4064 teststring=
4065 # Add a significant safety factor because C++ compilers can tack on
4066 # massive amounts of additional arguments before passing them to the
4067 # linker. It appears as though 1/2 is a usable value.
4068 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4069 fi
4070 ;;
4071 esac
4072
4073fi
4074
4075if test -n $lt_cv_sys_max_cmd_len ; then
drhf922ca42015-05-14 15:39:18 +00004076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
drh8b727472009-01-19 18:18:40 +00004077$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004078else
drhf922ca42015-05-14 15:39:18 +00004079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
drh8b727472009-01-19 18:18:40 +00004080$as_echo "none" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004081fi
4082max_cmd_len=$lt_cv_sys_max_cmd_len
4083
4084
4085
4086
4087
4088
4089: ${CP="cp -f"}
4090: ${MV="mv -f"}
4091: ${RM="rm -f"}
4092
drhf922ca42015-05-14 15:39:18 +00004093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
drh8b727472009-01-19 18:18:40 +00004094$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004095# Try some XSI features
4096xsi_shell=no
4097( _lt_dummy="a/b/c"
4098 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4099 = c,a/b,, \
4100 && eval 'test $(( 1 + 1 )) -eq 2 \
4101 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4102 && xsi_shell=yes
drhf922ca42015-05-14 15:39:18 +00004103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
drh8b727472009-01-19 18:18:40 +00004104$as_echo "$xsi_shell" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004105
4106
drhf922ca42015-05-14 15:39:18 +00004107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
drh8b727472009-01-19 18:18:40 +00004108$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004109lt_shell_append=no
4110( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4111 >/dev/null 2>&1 \
4112 && lt_shell_append=yes
drhf922ca42015-05-14 15:39:18 +00004113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
drh8b727472009-01-19 18:18:40 +00004114$as_echo "$lt_shell_append" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004115
4116
4117if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4118 lt_unset=unset
4119else
4120 lt_unset=false
4121fi
4122
4123
4124
4125
4126
4127# test EBCDIC or ASCII
4128case `echo X|tr X '\101'` in
4129 A) # ASCII based system
4130 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4131 lt_SP2NL='tr \040 \012'
4132 lt_NL2SP='tr \015\012 \040\040'
4133 ;;
4134 *) # EBCDIC based system
4135 lt_SP2NL='tr \100 \n'
4136 lt_NL2SP='tr \r\n \100\100'
4137 ;;
4138esac
4139
4140
4141
4142
4143
4144
4145
4146
4147
drhf922ca42015-05-14 15:39:18 +00004148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
drh8b727472009-01-19 18:18:40 +00004149$as_echo_n "checking for $LD option to reload object files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004150if ${lt_cv_ld_reload_flag+:} false; then :
drh8b727472009-01-19 18:18:40 +00004151 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004152else
4153 lt_cv_ld_reload_flag='-r'
4154fi
drhf922ca42015-05-14 15:39:18 +00004155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
drh8b727472009-01-19 18:18:40 +00004156$as_echo "$lt_cv_ld_reload_flag" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004157reload_flag=$lt_cv_ld_reload_flag
4158case $reload_flag in
4159"" | " "*) ;;
4160*) reload_flag=" $reload_flag" ;;
4161esac
4162reload_cmds='$LD$reload_flag -o $output$reload_objs'
4163case $host_os in
4164 darwin*)
4165 if test "$GCC" = yes; then
4166 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4167 else
4168 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4169 fi
4170 ;;
4171esac
4172
4173
4174
4175
4176
4177
4178
4179
4180
vapier6acb2cf2009-01-28 04:46:28 +00004181if test -n "$ac_tool_prefix"; then
4182 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4183set dummy ${ac_tool_prefix}objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004185$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004186if ${ac_cv_prog_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004187 $as_echo_n "(cached) " >&6
4188else
4189 if test -n "$OBJDUMP"; then
4190 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4191else
4192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193for as_dir in $PATH
4194do
4195 IFS=$as_save_IFS
4196 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004197 for ac_exec_ext in '' $ac_executable_extensions; do
4198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004199 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
drhf922ca42015-05-14 15:39:18 +00004200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004201 break 2
4202 fi
4203done
drhf922ca42015-05-14 15:39:18 +00004204 done
vapier6acb2cf2009-01-28 04:46:28 +00004205IFS=$as_save_IFS
4206
4207fi
4208fi
4209OBJDUMP=$ac_cv_prog_OBJDUMP
4210if test -n "$OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004212$as_echo "$OBJDUMP" >&6; }
4213else
drhf922ca42015-05-14 15:39:18 +00004214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004215$as_echo "no" >&6; }
4216fi
4217
4218
4219fi
4220if test -z "$ac_cv_prog_OBJDUMP"; then
4221 ac_ct_OBJDUMP=$OBJDUMP
4222 # Extract the first word of "objdump", so it can be a program name with args.
4223set dummy objdump; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004225$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004226if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
vapier6acb2cf2009-01-28 04:46:28 +00004227 $as_echo_n "(cached) " >&6
4228else
4229 if test -n "$ac_ct_OBJDUMP"; then
4230 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4231else
4232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4233for as_dir in $PATH
4234do
4235 IFS=$as_save_IFS
4236 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004237 for ac_exec_ext in '' $ac_executable_extensions; do
4238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier6acb2cf2009-01-28 04:46:28 +00004239 ac_cv_prog_ac_ct_OBJDUMP="objdump"
drhf922ca42015-05-14 15:39:18 +00004240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004241 break 2
4242 fi
4243done
drhf922ca42015-05-14 15:39:18 +00004244 done
vapier6acb2cf2009-01-28 04:46:28 +00004245IFS=$as_save_IFS
4246
4247fi
4248fi
4249ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4250if test -n "$ac_ct_OBJDUMP"; then
drhf922ca42015-05-14 15:39:18 +00004251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004252$as_echo "$ac_ct_OBJDUMP" >&6; }
4253else
drhf922ca42015-05-14 15:39:18 +00004254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
vapier6acb2cf2009-01-28 04:46:28 +00004255$as_echo "no" >&6; }
4256fi
4257
4258 if test "x$ac_ct_OBJDUMP" = x; then
4259 OBJDUMP="false"
4260 else
4261 case $cross_compiling:$ac_tool_warned in
4262yes:)
drhf922ca42015-05-14 15:39:18 +00004263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
vapier6acb2cf2009-01-28 04:46:28 +00004265ac_tool_warned=yes ;;
4266esac
4267 OBJDUMP=$ac_ct_OBJDUMP
4268 fi
4269else
4270 OBJDUMP="$ac_cv_prog_OBJDUMP"
4271fi
4272
4273test -z "$OBJDUMP" && OBJDUMP=objdump
4274
4275
4276
4277
4278
4279
4280
4281
mlcreech636a9952008-05-05 22:52:56 +00004282
drhf922ca42015-05-14 15:39:18 +00004283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
drh8b727472009-01-19 18:18:40 +00004284$as_echo_n "checking how to recognize dependent libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004285if ${lt_cv_deplibs_check_method+:} false; then :
drh8b727472009-01-19 18:18:40 +00004286 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00004287else
4288 lt_cv_file_magic_cmd='$MAGIC_CMD'
4289lt_cv_file_magic_test_file=
4290lt_cv_deplibs_check_method='unknown'
4291# Need to set the preceding variable on all platforms that support
4292# interlibrary dependencies.
4293# 'none' -- dependencies not supported.
4294# `unknown' -- same as none, but documents that we really don't know.
4295# 'pass_all' -- all dependencies passed with no checks.
4296# 'test_compile' -- check by making test program.
a.rottmann84e63352003-03-24 09:42:16 +00004297# 'file_magic [[regex]]' -- check by looking for files in library path
a.rottmann9bc8b932004-02-29 15:18:31 +00004298# which responds to the $file_magic_cmd with a given extended regex.
drh71eb93e2001-09-28 01:34:43 +00004299# If you have `file' or equivalent on your system and you're not sure
4300# whether `pass_all' will *always* work, you probably want this one.
4301
4302case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00004303aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00004304 lt_cv_deplibs_check_method=pass_all
4305 ;;
4306
4307beos*)
4308 lt_cv_deplibs_check_method=pass_all
4309 ;;
4310
vapier7f19c022007-02-17 14:46:31 +00004311bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00004312 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4313 lt_cv_file_magic_cmd='/usr/bin/file -L'
4314 lt_cv_file_magic_test_file=/shlib/libc.so
4315 ;;
4316
a.rottmann9bc8b932004-02-29 15:18:31 +00004317cygwin*)
vapier7f19c022007-02-17 14:46:31 +00004318 # func_win32_libid is a shell function defined in ltmain.sh
a.rottmann9bc8b932004-02-29 15:18:31 +00004319 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
vapier7f19c022007-02-17 14:46:31 +00004320 lt_cv_file_magic_cmd='func_win32_libid'
a.rottmann9bc8b932004-02-29 15:18:31 +00004321 ;;
4322
4323mingw* | pw32*)
4324 # Base MSYS/MinGW do not provide the 'file' command needed by
mlcreech636a9952008-05-05 22:52:56 +00004325 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4326 # unless we find 'file', for example because we are cross-compiling.
4327 if ( file / ) >/dev/null 2>&1; then
4328 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4329 lt_cv_file_magic_cmd='func_win32_libid'
4330 else
4331 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4332 lt_cv_file_magic_cmd='$OBJDUMP -f'
4333 fi
drh71eb93e2001-09-28 01:34:43 +00004334 ;;
4335
vapier6acb2cf2009-01-28 04:46:28 +00004336cegcc)
4337 # use the weaker test based on 'objdump'. See mingw*.
4338 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4339 lt_cv_file_magic_cmd='$OBJDUMP -f'
4340 ;;
4341
drh71eb93e2001-09-28 01:34:43 +00004342darwin* | rhapsody*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004343 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004344 ;;
4345
mlcreech636a9952008-05-05 22:52:56 +00004346freebsd* | dragonfly*)
4347 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
drh71eb93e2001-09-28 01:34:43 +00004348 case $host_cpu in
4349 i*86 )
4350 # Not sure whether the presence of OpenBSD here was a mistake.
4351 # Let's accept both of them until this is cleared up.
vapier7f19c022007-02-17 14:46:31 +00004352 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 +00004353 lt_cv_file_magic_cmd=/usr/bin/file
4354 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4355 ;;
4356 esac
4357 else
4358 lt_cv_deplibs_check_method=pass_all
4359 fi
4360 ;;
4361
4362gnu*)
4363 lt_cv_deplibs_check_method=pass_all
4364 ;;
4365
a.rottmann9bc8b932004-02-29 15:18:31 +00004366hpux10.20* | hpux11*)
drh71eb93e2001-09-28 01:34:43 +00004367 lt_cv_file_magic_cmd=/usr/bin/file
vapier7f19c022007-02-17 14:46:31 +00004368 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00004369 ia64*)
4370 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4371 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4372 ;;
4373 hppa*64*)
4374 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]'
4375 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4376 ;;
4377 *)
4378 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4379 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4380 ;;
4381 esac
drh71eb93e2001-09-28 01:34:43 +00004382 ;;
4383
mlcreech636a9952008-05-05 22:52:56 +00004384interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00004385 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4386 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4387 ;;
4388
a.rottmann84e63352003-03-24 09:42:16 +00004389irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004390 case $LD in
4391 *-32|*"-32 ") libmagic=32-bit;;
4392 *-n32|*"-n32 ") libmagic=N32;;
4393 *-64|*"-64 ") libmagic=64-bit;;
4394 *) libmagic=never-match;;
drh71eb93e2001-09-28 01:34:43 +00004395 esac
drh71eb93e2001-09-28 01:34:43 +00004396 lt_cv_deplibs_check_method=pass_all
4397 ;;
4398
4399# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00004400linux* | k*bsd*-gnu)
a.rottmann9bc8b932004-02-29 15:18:31 +00004401 lt_cv_deplibs_check_method=pass_all
drh71eb93e2001-09-28 01:34:43 +00004402 ;;
4403
vapier7f19c022007-02-17 14:46:31 +00004404netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004405 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00004406 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004407 else
a.rottmann9bc8b932004-02-29 15:18:31 +00004408 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
drh71eb93e2001-09-28 01:34:43 +00004409 fi
4410 ;;
4411
4412newos6*)
4413 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4414 lt_cv_file_magic_cmd=/usr/bin/file
4415 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4416 ;;
4417
mlcreech636a9952008-05-05 22:52:56 +00004418*nto* | *qnx*)
4419 lt_cv_deplibs_check_method=pass_all
a.rottmann9bc8b932004-02-29 15:18:31 +00004420 ;;
4421
a.rottmann84e63352003-03-24 09:42:16 +00004422openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00004423 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
vapier7f19c022007-02-17 14:46:31 +00004424 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004425 else
vapier7f19c022007-02-17 14:46:31 +00004426 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
a.rottmann84e63352003-03-24 09:42:16 +00004427 fi
drh71eb93e2001-09-28 01:34:43 +00004428 ;;
4429
4430osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00004431 lt_cv_deplibs_check_method=pass_all
4432 ;;
4433
mlcreech636a9952008-05-05 22:52:56 +00004434rdos*)
4435 lt_cv_deplibs_check_method=pass_all
4436 ;;
4437
drh71eb93e2001-09-28 01:34:43 +00004438solaris*)
4439 lt_cv_deplibs_check_method=pass_all
a.rottmann84e63352003-03-24 09:42:16 +00004440 ;;
4441
mlcreech636a9952008-05-05 22:52:56 +00004442sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4443 lt_cv_deplibs_check_method=pass_all
4444 ;;
4445
vapier7f19c022007-02-17 14:46:31 +00004446sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00004447 case $host_vendor in
4448 motorola)
4449 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]'
4450 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4451 ;;
4452 ncr)
4453 lt_cv_deplibs_check_method=pass_all
4454 ;;
4455 sequent)
4456 lt_cv_file_magic_cmd='/bin/file'
4457 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4458 ;;
4459 sni)
4460 lt_cv_file_magic_cmd='/bin/file'
4461 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4462 lt_cv_file_magic_test_file=/lib/libc.so
4463 ;;
a.rottmann84e63352003-03-24 09:42:16 +00004464 siemens)
4465 lt_cv_deplibs_check_method=pass_all
4466 ;;
vapier7f19c022007-02-17 14:46:31 +00004467 pc)
4468 lt_cv_deplibs_check_method=pass_all
4469 ;;
drh71eb93e2001-09-28 01:34:43 +00004470 esac
4471 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00004472
mlcreech636a9952008-05-05 22:52:56 +00004473tpf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00004474 lt_cv_deplibs_check_method=pass_all
4475 ;;
drh71eb93e2001-09-28 01:34:43 +00004476esac
4477
4478fi
drhf922ca42015-05-14 15:39:18 +00004479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
drh8b727472009-01-19 18:18:40 +00004480$as_echo "$lt_cv_deplibs_check_method" >&6; }
drh71eb93e2001-09-28 01:34:43 +00004481file_magic_cmd=$lt_cv_file_magic_cmd
4482deplibs_check_method=$lt_cv_deplibs_check_method
a.rottmann9bc8b932004-02-29 15:18:31 +00004483test -z "$deplibs_check_method" && deplibs_check_method=unknown
drh71eb93e2001-09-28 01:34:43 +00004484
drh71eb93e2001-09-28 01:34:43 +00004485
drh71eb93e2001-09-28 01:34:43 +00004486
drh71eb93e2001-09-28 01:34:43 +00004487
mlcreech636a9952008-05-05 22:52:56 +00004488
4489
4490
4491
4492
4493
4494
4495
4496if test -n "$ac_tool_prefix"; then
4497 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4498set dummy ${ac_tool_prefix}ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004500$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004501if ${ac_cv_prog_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004502 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004503else
4504 if test -n "$AR"; then
4505 ac_cv_prog_AR="$AR" # Let the user override the test.
4506else
4507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508for as_dir in $PATH
4509do
4510 IFS=$as_save_IFS
4511 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004514 ac_cv_prog_AR="${ac_tool_prefix}ar"
drhf922ca42015-05-14 15:39:18 +00004515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004516 break 2
4517 fi
4518done
drhf922ca42015-05-14 15:39:18 +00004519 done
drh8b727472009-01-19 18:18:40 +00004520IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004521
4522fi
4523fi
4524AR=$ac_cv_prog_AR
4525if test -n "$AR"; then
drhf922ca42015-05-14 15:39:18 +00004526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
drh8b727472009-01-19 18:18:40 +00004527$as_echo "$AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004528else
drhf922ca42015-05-14 15:39:18 +00004529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004530$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004531fi
4532
drh8b727472009-01-19 18:18:40 +00004533
mlcreech636a9952008-05-05 22:52:56 +00004534fi
4535if test -z "$ac_cv_prog_AR"; then
4536 ac_ct_AR=$AR
4537 # Extract the first word of "ar", so it can be a program name with args.
4538set dummy ar; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004540$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004541if ${ac_cv_prog_ac_ct_AR+:} false; then :
drh8b727472009-01-19 18:18:40 +00004542 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004543else
4544 if test -n "$ac_ct_AR"; then
4545 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4546else
4547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548for as_dir in $PATH
4549do
4550 IFS=$as_save_IFS
4551 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004552 for ac_exec_ext in '' $ac_executable_extensions; do
4553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004554 ac_cv_prog_ac_ct_AR="ar"
drhf922ca42015-05-14 15:39:18 +00004555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004556 break 2
4557 fi
4558done
drhf922ca42015-05-14 15:39:18 +00004559 done
drh8b727472009-01-19 18:18:40 +00004560IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004561
4562fi
4563fi
4564ac_ct_AR=$ac_cv_prog_ac_ct_AR
4565if test -n "$ac_ct_AR"; then
drhf922ca42015-05-14 15:39:18 +00004566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
drh8b727472009-01-19 18:18:40 +00004567$as_echo "$ac_ct_AR" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004568else
drhf922ca42015-05-14 15:39:18 +00004569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004570$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004571fi
4572
drh8b727472009-01-19 18:18:40 +00004573 if test "x$ac_ct_AR" = x; then
4574 AR="false"
4575 else
4576 case $cross_compiling:$ac_tool_warned in
4577yes:)
drhf922ca42015-05-14 15:39:18 +00004578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004580ac_tool_warned=yes ;;
4581esac
4582 AR=$ac_ct_AR
4583 fi
mlcreech636a9952008-05-05 22:52:56 +00004584else
4585 AR="$ac_cv_prog_AR"
4586fi
4587
4588test -z "$AR" && AR=ar
4589test -z "$AR_FLAGS" && AR_FLAGS=cru
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601if test -n "$ac_tool_prefix"; then
4602 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4603set dummy ${ac_tool_prefix}strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004605$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004606if ${ac_cv_prog_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004607 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004608else
4609 if test -n "$STRIP"; then
4610 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4611else
4612as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613for as_dir in $PATH
4614do
4615 IFS=$as_save_IFS
4616 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004619 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
drhf922ca42015-05-14 15:39:18 +00004620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004621 break 2
4622 fi
4623done
drhf922ca42015-05-14 15:39:18 +00004624 done
drh8b727472009-01-19 18:18:40 +00004625IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004626
4627fi
4628fi
4629STRIP=$ac_cv_prog_STRIP
4630if test -n "$STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004632$as_echo "$STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004633else
drhf922ca42015-05-14 15:39:18 +00004634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004635$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004636fi
4637
drh8b727472009-01-19 18:18:40 +00004638
mlcreech636a9952008-05-05 22:52:56 +00004639fi
4640if test -z "$ac_cv_prog_STRIP"; then
4641 ac_ct_STRIP=$STRIP
4642 # Extract the first word of "strip", so it can be a program name with args.
4643set dummy strip; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004645$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004646if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
drh8b727472009-01-19 18:18:40 +00004647 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004648else
4649 if test -n "$ac_ct_STRIP"; then
4650 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4651else
4652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653for as_dir in $PATH
4654do
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004659 ac_cv_prog_ac_ct_STRIP="strip"
drhf922ca42015-05-14 15:39:18 +00004660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004661 break 2
4662 fi
4663done
drhf922ca42015-05-14 15:39:18 +00004664 done
drh8b727472009-01-19 18:18:40 +00004665IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004666
4667fi
4668fi
4669ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4670if test -n "$ac_ct_STRIP"; then
drhf922ca42015-05-14 15:39:18 +00004671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
drh8b727472009-01-19 18:18:40 +00004672$as_echo "$ac_ct_STRIP" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004673else
drhf922ca42015-05-14 15:39:18 +00004674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004675$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004676fi
4677
drh8b727472009-01-19 18:18:40 +00004678 if test "x$ac_ct_STRIP" = x; then
4679 STRIP=":"
4680 else
4681 case $cross_compiling:$ac_tool_warned in
4682yes:)
drhf922ca42015-05-14 15:39:18 +00004683{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4684$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004685ac_tool_warned=yes ;;
4686esac
4687 STRIP=$ac_ct_STRIP
4688 fi
mlcreech636a9952008-05-05 22:52:56 +00004689else
4690 STRIP="$ac_cv_prog_STRIP"
4691fi
4692
4693test -z "$STRIP" && STRIP=:
4694
4695
4696
4697
4698
4699
4700if test -n "$ac_tool_prefix"; then
4701 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4702set dummy ${ac_tool_prefix}ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004704$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004705if ${ac_cv_prog_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004706 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004707else
4708 if test -n "$RANLIB"; then
4709 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4710else
4711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712for as_dir in $PATH
4713do
4714 IFS=$as_save_IFS
4715 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004716 for ac_exec_ext in '' $ac_executable_extensions; do
4717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004718 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
drhf922ca42015-05-14 15:39:18 +00004719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004720 break 2
4721 fi
4722done
drhf922ca42015-05-14 15:39:18 +00004723 done
drh8b727472009-01-19 18:18:40 +00004724IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004725
4726fi
4727fi
4728RANLIB=$ac_cv_prog_RANLIB
4729if test -n "$RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004731$as_echo "$RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004732else
drhf922ca42015-05-14 15:39:18 +00004733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004734$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004735fi
4736
drh8b727472009-01-19 18:18:40 +00004737
mlcreech636a9952008-05-05 22:52:56 +00004738fi
4739if test -z "$ac_cv_prog_RANLIB"; then
4740 ac_ct_RANLIB=$RANLIB
4741 # Extract the first word of "ranlib", so it can be a program name with args.
4742set dummy ranlib; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00004743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00004744$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004745if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
drh8b727472009-01-19 18:18:40 +00004746 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004747else
4748 if test -n "$ac_ct_RANLIB"; then
4749 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4750else
4751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4752for as_dir in $PATH
4753do
4754 IFS=$as_save_IFS
4755 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00004756 for ac_exec_ext in '' $ac_executable_extensions; do
4757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00004758 ac_cv_prog_ac_ct_RANLIB="ranlib"
drhf922ca42015-05-14 15:39:18 +00004759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00004760 break 2
4761 fi
4762done
drhf922ca42015-05-14 15:39:18 +00004763 done
drh8b727472009-01-19 18:18:40 +00004764IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00004765
4766fi
4767fi
4768ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4769if test -n "$ac_ct_RANLIB"; then
drhf922ca42015-05-14 15:39:18 +00004770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
drh8b727472009-01-19 18:18:40 +00004771$as_echo "$ac_ct_RANLIB" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004772else
drhf922ca42015-05-14 15:39:18 +00004773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00004774$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00004775fi
4776
drh8b727472009-01-19 18:18:40 +00004777 if test "x$ac_ct_RANLIB" = x; then
4778 RANLIB=":"
4779 else
4780 case $cross_compiling:$ac_tool_warned in
4781yes:)
drhf922ca42015-05-14 15:39:18 +00004782{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4783$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00004784ac_tool_warned=yes ;;
4785esac
4786 RANLIB=$ac_ct_RANLIB
4787 fi
mlcreech636a9952008-05-05 22:52:56 +00004788else
4789 RANLIB="$ac_cv_prog_RANLIB"
4790fi
4791
4792test -z "$RANLIB" && RANLIB=:
4793
4794
4795
4796
4797
4798
4799# Determine commands to create old-style static archives.
4800old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
4801old_postinstall_cmds='chmod 644 $oldlib'
4802old_postuninstall_cmds=
4803
4804if test -n "$RANLIB"; then
4805 case $host_os in
4806 openbsd*)
4807 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
4808 ;;
4809 *)
4810 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
4811 ;;
4812 esac
4813 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4814fi
4815
4816
4817
4818
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
a.rottmann9bc8b932004-02-29 15:18:31 +00004849# If no C compiler was specified, use CC.
4850LTCC=${LTCC-"$CC"}
4851
vapier7f19c022007-02-17 14:46:31 +00004852# If no C compiler flags were specified, use CFLAGS.
4853LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4854
a.rottmann9bc8b932004-02-29 15:18:31 +00004855# Allow CC to be a program name with arguments.
4856compiler=$CC
drh71eb93e2001-09-28 01:34:43 +00004857
drh71eb93e2001-09-28 01:34:43 +00004858
mlcreech636a9952008-05-05 22:52:56 +00004859# Check for command to grab the raw symbol name followed by C symbol from nm.
drhf922ca42015-05-14 15:39:18 +00004860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
drh8b727472009-01-19 18:18:40 +00004861$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
drhf922ca42015-05-14 15:39:18 +00004862if ${lt_cv_sys_global_symbol_pipe+:} false; then :
drh8b727472009-01-19 18:18:40 +00004863 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00004864else
4865
4866# These are sane defaults that work on at least a few old systems.
4867# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4868
4869# Character class describing NM global symbol codes.
4870symcode='[BCDEGRST]'
4871
4872# Regexp to match symbols that can be accessed directly from C.
4873sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4874
4875# Define system-specific variables.
4876case $host_os in
4877aix*)
4878 symcode='[BCDT]'
4879 ;;
vapier6acb2cf2009-01-28 04:46:28 +00004880cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00004881 symcode='[ABCDGISTW]'
4882 ;;
4883hpux*)
4884 if test "$host_cpu" = ia64; then
4885 symcode='[ABCDEGRST]'
4886 fi
4887 ;;
4888irix* | nonstopux*)
4889 symcode='[BCDEGRST]'
4890 ;;
4891osf*)
4892 symcode='[BCDEGQRST]'
4893 ;;
4894solaris*)
4895 symcode='[BDRT]'
4896 ;;
4897sco3.2v5*)
4898 symcode='[DT]'
4899 ;;
4900sysv4.2uw2*)
4901 symcode='[DT]'
4902 ;;
4903sysv5* | sco5v6* | unixware* | OpenUNIX*)
4904 symcode='[ABDT]'
4905 ;;
4906sysv4)
4907 symcode='[DFNSTU]'
4908 ;;
4909esac
4910
4911# If we're using GNU nm, then use its standard symbol codes.
4912case `$NM -V 2>&1` in
4913*GNU* | *'with BFD'*)
4914 symcode='[ABCDGIRSTW]' ;;
4915esac
4916
4917# Transform an extracted symbol line into a proper C declaration.
4918# Some systems (esp. on ia64) link data and code symbols differently,
4919# so use this general approach.
4920lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4921
4922# Transform an extracted symbol line into symbol name and symbol address
4923lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
4924lt_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'"
4925
4926# Handle CRLF in mingw tool chain
4927opt_cr=
4928case $build_os in
4929mingw*)
4930 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4931 ;;
4932esac
4933
4934# Try without a prefix underscore, then with it.
4935for ac_symprfx in "" "_"; do
4936
4937 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4938 symxfrm="\\1 $ac_symprfx\\2 \\2"
4939
4940 # Write the raw and C identifiers.
4941 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4942 # Fake it for dumpbin and say T for any non-static function
4943 # and D for any global variable.
4944 # Also find C++ and __fastcall symbols from MSVC++,
4945 # which start with @ or ?.
4946 lt_cv_sys_global_symbol_pipe="$AWK '"\
4947" {last_section=section; section=\$ 3};"\
4948" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4949" \$ 0!~/External *\|/{next};"\
4950" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4951" {if(hide[section]) next};"\
4952" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4953" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4954" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4955" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4956" ' prfx=^$ac_symprfx"
4957 else
4958 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4959 fi
4960
4961 # Check to see that the pipe works correctly.
4962 pipe_works=no
4963
4964 rm -f conftest*
4965 cat > conftest.$ac_ext <<_LT_EOF
4966#ifdef __cplusplus
4967extern "C" {
4968#endif
4969char nm_test_var;
4970void nm_test_func(void);
4971void nm_test_func(void){}
4972#ifdef __cplusplus
4973}
4974#endif
4975int main(){nm_test_var='a';nm_test_func();return(0);}
4976_LT_EOF
4977
drhf922ca42015-05-14 15:39:18 +00004978 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00004979 (eval $ac_compile) 2>&5
4980 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00004981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4982 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00004983 # Now try to grab the symbols.
4984 nlist=conftest.nm
drhf922ca42015-05-14 15:39:18 +00004985 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 +00004986 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4987 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00004988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4989 test $ac_status = 0; } && test -s "$nlist"; then
mlcreech636a9952008-05-05 22:52:56 +00004990 # Try sorting and uniquifying the output.
4991 if sort "$nlist" | uniq > "$nlist"T; then
4992 mv -f "$nlist"T "$nlist"
4993 else
4994 rm -f "$nlist"T
4995 fi
4996
4997 # Make sure that we snagged all the symbols we need.
4998 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4999 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5000 cat <<_LT_EOF > conftest.$ac_ext
5001#ifdef __cplusplus
5002extern "C" {
5003#endif
5004
5005_LT_EOF
5006 # Now generate the symbol file.
5007 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5008
5009 cat <<_LT_EOF >> conftest.$ac_ext
5010
5011/* The mapping between symbol names and symbols. */
5012const struct {
5013 const char *name;
5014 void *address;
5015}
5016lt__PROGRAM__LTX_preloaded_symbols[] =
5017{
5018 { "@PROGRAM@", (void *) 0 },
5019_LT_EOF
5020 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5021 cat <<\_LT_EOF >> conftest.$ac_ext
5022 {0, (void *) 0}
5023};
5024
5025/* This works around a problem in FreeBSD linker */
5026#ifdef FREEBSD_WORKAROUND
5027static const void *lt_preloaded_setup() {
5028 return lt__PROGRAM__LTX_preloaded_symbols;
5029}
5030#endif
5031
5032#ifdef __cplusplus
5033}
5034#endif
5035_LT_EOF
5036 # Now try linking the two files.
5037 mv conftest.$ac_objext conftstm.$ac_objext
5038 lt_save_LIBS="$LIBS"
5039 lt_save_CFLAGS="$CFLAGS"
5040 LIBS="conftstm.$ac_objext"
5041 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
drhf922ca42015-05-14 15:39:18 +00005042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
mlcreech636a9952008-05-05 22:52:56 +00005043 (eval $ac_link) 2>&5
5044 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5046 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
mlcreech636a9952008-05-05 22:52:56 +00005047 pipe_works=yes
5048 fi
5049 LIBS="$lt_save_LIBS"
5050 CFLAGS="$lt_save_CFLAGS"
5051 else
5052 echo "cannot find nm_test_func in $nlist" >&5
5053 fi
5054 else
5055 echo "cannot find nm_test_var in $nlist" >&5
5056 fi
5057 else
5058 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5059 fi
5060 else
5061 echo "$progname: failed program was:" >&5
5062 cat conftest.$ac_ext >&5
5063 fi
5064 rm -rf conftest* conftst*
5065
5066 # Do not use the global_symbol_pipe unless it works.
5067 if test "$pipe_works" = yes; then
5068 break
5069 else
5070 lt_cv_sys_global_symbol_pipe=
5071 fi
5072done
5073
5074fi
5075
5076if test -z "$lt_cv_sys_global_symbol_pipe"; then
5077 lt_cv_sys_global_symbol_to_cdecl=
5078fi
5079if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
drhf922ca42015-05-14 15:39:18 +00005080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
drh8b727472009-01-19 18:18:40 +00005081$as_echo "failed" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005082else
drhf922ca42015-05-14 15:39:18 +00005083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
drh8b727472009-01-19 18:18:40 +00005084$as_echo "ok" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005085fi
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
drh8b727472009-01-19 18:18:40 +00005109# Check whether --enable-libtool-lock was given.
drhf922ca42015-05-14 15:39:18 +00005110if test "${enable_libtool_lock+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00005111 enableval=$enable_libtool_lock;
5112fi
drh71eb93e2001-09-28 01:34:43 +00005113
a.rottmann9bc8b932004-02-29 15:18:31 +00005114test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
drh71eb93e2001-09-28 01:34:43 +00005115
a.rottmann9bc8b932004-02-29 15:18:31 +00005116# Some flags need to be propagated to the compiler or linker for good
5117# libtool support.
5118case $host in
5119ia64-*-hpux*)
5120 # Find out which ABI we are using.
5121 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00005123 (eval $ac_compile) 2>&5
5124 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5126 test $ac_status = 0; }; then
a.rottmann9bc8b932004-02-29 15:18:31 +00005127 case `/usr/bin/file conftest.$ac_objext` in
mlcreech636a9952008-05-05 22:52:56 +00005128 *ELF-32*)
5129 HPUX_IA64_MODE="32"
5130 ;;
5131 *ELF-64*)
5132 HPUX_IA64_MODE="64"
5133 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005134 esac
5135 fi
5136 rm -rf conftest*
5137 ;;
5138*-*-irix6*)
5139 # Find out which ABI we are using.
drh5e18d402016-05-03 13:14:18 +00005140 echo '#line 5140 "configure"' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005141 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005142 (eval $ac_compile) 2>&5
drh71eb93e2001-09-28 01:34:43 +00005143 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5145 test $ac_status = 0; }; then
mlcreech636a9952008-05-05 22:52:56 +00005146 if test "$lt_cv_prog_gnu_ld" = yes; then
5147 case `/usr/bin/file conftest.$ac_objext` in
5148 *32-bit*)
5149 LD="${LD-ld} -melf32bsmip"
5150 ;;
5151 *N32*)
5152 LD="${LD-ld} -melf32bmipn32"
5153 ;;
5154 *64-bit*)
5155 LD="${LD-ld} -melf64bmip"
5156 ;;
5157 esac
5158 else
5159 case `/usr/bin/file conftest.$ac_objext` in
5160 *32-bit*)
5161 LD="${LD-ld} -32"
5162 ;;
5163 *N32*)
5164 LD="${LD-ld} -n32"
5165 ;;
5166 *64-bit*)
5167 LD="${LD-ld} -64"
5168 ;;
5169 esac
5170 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00005171 fi
5172 rm -rf conftest*
5173 ;;
drh71eb93e2001-09-28 01:34:43 +00005174
mlcreech636a9952008-05-05 22:52:56 +00005175x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5176s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00005177 # Find out which ABI we are using.
5178 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00005180 (eval $ac_compile) 2>&5
5181 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5183 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005184 case `/usr/bin/file conftest.o` in
mlcreech636a9952008-05-05 22:52:56 +00005185 *32-bit*)
5186 case $host in
5187 x86_64-*kfreebsd*-gnu)
5188 LD="${LD-ld} -m elf_i386_fbsd"
5189 ;;
5190 x86_64-*linux*)
5191 LD="${LD-ld} -m elf_i386"
5192 ;;
5193 ppc64-*linux*|powerpc64-*linux*)
5194 LD="${LD-ld} -m elf32ppclinux"
5195 ;;
5196 s390x-*linux*)
5197 LD="${LD-ld} -m elf_s390"
5198 ;;
5199 sparc64-*linux*)
5200 LD="${LD-ld} -m elf32_sparc"
5201 ;;
5202 esac
5203 ;;
5204 *64-bit*)
5205 case $host in
5206 x86_64-*kfreebsd*-gnu)
5207 LD="${LD-ld} -m elf_x86_64_fbsd"
5208 ;;
5209 x86_64-*linux*)
5210 LD="${LD-ld} -m elf_x86_64"
5211 ;;
5212 ppc*-*linux*|powerpc*-*linux*)
5213 LD="${LD-ld} -m elf64ppc"
5214 ;;
5215 s390*-*linux*|s390*-*tpf*)
5216 LD="${LD-ld} -m elf64_s390"
5217 ;;
5218 sparc*-*linux*)
5219 LD="${LD-ld} -m elf64_sparc"
5220 ;;
5221 esac
5222 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005223 esac
5224 fi
5225 rm -rf conftest*
5226 ;;
drh71eb93e2001-09-28 01:34:43 +00005227
a.rottmann9bc8b932004-02-29 15:18:31 +00005228*-*-sco3.2v5*)
5229 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5230 SAVE_CFLAGS="$CFLAGS"
5231 CFLAGS="$CFLAGS -belf"
drhf922ca42015-05-14 15:39:18 +00005232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
drh8b727472009-01-19 18:18:40 +00005233$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005234if ${lt_cv_cc_needs_belf+:} false; then :
drh8b727472009-01-19 18:18:40 +00005235 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00005236else
5237 ac_ext=c
5238ac_cpp='$CPP $CPPFLAGS'
5239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5241ac_compiler_gnu=$ac_cv_c_compiler_gnu
drh71eb93e2001-09-28 01:34:43 +00005242
drhf922ca42015-05-14 15:39:18 +00005243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005244/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00005245
a.rottmann9bc8b932004-02-29 15:18:31 +00005246int
5247main ()
drh71eb93e2001-09-28 01:34:43 +00005248{
drh71eb93e2001-09-28 01:34:43 +00005249
a.rottmann9bc8b932004-02-29 15:18:31 +00005250 ;
5251 return 0;
drh71eb93e2001-09-28 01:34:43 +00005252}
a.rottmann9bc8b932004-02-29 15:18:31 +00005253_ACEOF
drhf922ca42015-05-14 15:39:18 +00005254if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00005255 lt_cv_cc_needs_belf=yes
a.rottmann84e63352003-03-24 09:42:16 +00005256else
drhf922ca42015-05-14 15:39:18 +00005257 lt_cv_cc_needs_belf=no
drh71eb93e2001-09-28 01:34:43 +00005258fi
drhf922ca42015-05-14 15:39:18 +00005259rm -f core conftest.err conftest.$ac_objext \
5260 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00005261 ac_ext=c
5262ac_cpp='$CPP $CPPFLAGS'
5263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5265ac_compiler_gnu=$ac_cv_c_compiler_gnu
5266
drh71eb93e2001-09-28 01:34:43 +00005267fi
drhf922ca42015-05-14 15:39:18 +00005268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
drh8b727472009-01-19 18:18:40 +00005269$as_echo "$lt_cv_cc_needs_belf" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00005270 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5271 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5272 CFLAGS="$SAVE_CFLAGS"
5273 fi
5274 ;;
vapier7f19c022007-02-17 14:46:31 +00005275sparc*-*solaris*)
5276 # Find out which ABI we are using.
5277 echo 'int i;' > conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +00005278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
vapier7f19c022007-02-17 14:46:31 +00005279 (eval $ac_compile) 2>&5
5280 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00005281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5282 test $ac_status = 0; }; then
vapier7f19c022007-02-17 14:46:31 +00005283 case `/usr/bin/file conftest.o` in
5284 *64-bit*)
5285 case $lt_cv_prog_gnu_ld in
5286 yes*) LD="${LD-ld} -m elf64_sparc" ;;
mlcreech636a9952008-05-05 22:52:56 +00005287 *)
5288 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5289 LD="${LD-ld} -64"
5290 fi
5291 ;;
vapier7f19c022007-02-17 14:46:31 +00005292 esac
5293 ;;
5294 esac
5295 fi
5296 rm -rf conftest*
5297 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00005298esac
5299
5300need_locks="$enable_libtool_lock"
5301
drh71eb93e2001-09-28 01:34:43 +00005302
mlcreech636a9952008-05-05 22:52:56 +00005303 case $host_os in
5304 rhapsody* | darwin*)
5305 if test -n "$ac_tool_prefix"; then
5306 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5307set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005309$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005310if ${ac_cv_prog_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005311 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005312else
5313 if test -n "$DSYMUTIL"; then
5314 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5315else
5316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317for as_dir in $PATH
5318do
5319 IFS=$as_save_IFS
5320 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005321 for ac_exec_ext in '' $ac_executable_extensions; do
5322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005323 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
drhf922ca42015-05-14 15:39:18 +00005324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005325 break 2
5326 fi
5327done
drhf922ca42015-05-14 15:39:18 +00005328 done
drh8b727472009-01-19 18:18:40 +00005329IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005330
5331fi
5332fi
5333DSYMUTIL=$ac_cv_prog_DSYMUTIL
5334if test -n "$DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005336$as_echo "$DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005337else
drhf922ca42015-05-14 15:39:18 +00005338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005339$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005340fi
5341
drh8b727472009-01-19 18:18:40 +00005342
mlcreech636a9952008-05-05 22:52:56 +00005343fi
5344if test -z "$ac_cv_prog_DSYMUTIL"; then
5345 ac_ct_DSYMUTIL=$DSYMUTIL
5346 # Extract the first word of "dsymutil", so it can be a program name with args.
5347set dummy dsymutil; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005349$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005350if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005351 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005352else
5353 if test -n "$ac_ct_DSYMUTIL"; then
5354 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5355else
5356as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357for as_dir in $PATH
5358do
5359 IFS=$as_save_IFS
5360 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005361 for ac_exec_ext in '' $ac_executable_extensions; do
5362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005363 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
drhf922ca42015-05-14 15:39:18 +00005364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005365 break 2
5366 fi
5367done
drhf922ca42015-05-14 15:39:18 +00005368 done
drh8b727472009-01-19 18:18:40 +00005369IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005370
5371fi
5372fi
5373ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5374if test -n "$ac_ct_DSYMUTIL"; then
drhf922ca42015-05-14 15:39:18 +00005375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
drh8b727472009-01-19 18:18:40 +00005376$as_echo "$ac_ct_DSYMUTIL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005377else
drhf922ca42015-05-14 15:39:18 +00005378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005379$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005380fi
5381
drh8b727472009-01-19 18:18:40 +00005382 if test "x$ac_ct_DSYMUTIL" = x; then
5383 DSYMUTIL=":"
5384 else
5385 case $cross_compiling:$ac_tool_warned in
5386yes:)
drhf922ca42015-05-14 15:39:18 +00005387{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5388$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005389ac_tool_warned=yes ;;
5390esac
5391 DSYMUTIL=$ac_ct_DSYMUTIL
5392 fi
mlcreech636a9952008-05-05 22:52:56 +00005393else
5394 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5395fi
5396
5397 if test -n "$ac_tool_prefix"; then
5398 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5399set dummy ${ac_tool_prefix}nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005401$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005402if ${ac_cv_prog_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005403 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005404else
5405 if test -n "$NMEDIT"; then
5406 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5407else
5408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409for as_dir in $PATH
5410do
5411 IFS=$as_save_IFS
5412 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005413 for ac_exec_ext in '' $ac_executable_extensions; do
5414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005415 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
drhf922ca42015-05-14 15:39:18 +00005416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005417 break 2
5418 fi
5419done
drhf922ca42015-05-14 15:39:18 +00005420 done
drh8b727472009-01-19 18:18:40 +00005421IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005422
5423fi
5424fi
5425NMEDIT=$ac_cv_prog_NMEDIT
5426if test -n "$NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005428$as_echo "$NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005429else
drhf922ca42015-05-14 15:39:18 +00005430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005431$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005432fi
5433
drh8b727472009-01-19 18:18:40 +00005434
mlcreech636a9952008-05-05 22:52:56 +00005435fi
5436if test -z "$ac_cv_prog_NMEDIT"; then
5437 ac_ct_NMEDIT=$NMEDIT
5438 # Extract the first word of "nmedit", so it can be a program name with args.
5439set dummy nmedit; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005441$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005442if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
drh8b727472009-01-19 18:18:40 +00005443 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005444else
5445 if test -n "$ac_ct_NMEDIT"; then
5446 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5447else
5448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449for as_dir in $PATH
5450do
5451 IFS=$as_save_IFS
5452 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005453 for ac_exec_ext in '' $ac_executable_extensions; do
5454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005455 ac_cv_prog_ac_ct_NMEDIT="nmedit"
drhf922ca42015-05-14 15:39:18 +00005456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005457 break 2
5458 fi
5459done
drhf922ca42015-05-14 15:39:18 +00005460 done
drh8b727472009-01-19 18:18:40 +00005461IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005462
5463fi
5464fi
5465ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5466if test -n "$ac_ct_NMEDIT"; then
drhf922ca42015-05-14 15:39:18 +00005467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
drh8b727472009-01-19 18:18:40 +00005468$as_echo "$ac_ct_NMEDIT" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005469else
drhf922ca42015-05-14 15:39:18 +00005470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005471$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005472fi
5473
drh8b727472009-01-19 18:18:40 +00005474 if test "x$ac_ct_NMEDIT" = x; then
5475 NMEDIT=":"
5476 else
5477 case $cross_compiling:$ac_tool_warned in
5478yes:)
drhf922ca42015-05-14 15:39:18 +00005479{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5480$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005481ac_tool_warned=yes ;;
5482esac
5483 NMEDIT=$ac_ct_NMEDIT
5484 fi
mlcreech636a9952008-05-05 22:52:56 +00005485else
5486 NMEDIT="$ac_cv_prog_NMEDIT"
5487fi
5488
5489 if test -n "$ac_tool_prefix"; then
5490 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5491set dummy ${ac_tool_prefix}lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005493$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005494if ${ac_cv_prog_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005495 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005496else
5497 if test -n "$LIPO"; then
5498 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5499else
5500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501for as_dir in $PATH
5502do
5503 IFS=$as_save_IFS
5504 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005507 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
drhf922ca42015-05-14 15:39:18 +00005508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005509 break 2
5510 fi
5511done
drhf922ca42015-05-14 15:39:18 +00005512 done
drh8b727472009-01-19 18:18:40 +00005513IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005514
5515fi
5516fi
5517LIPO=$ac_cv_prog_LIPO
5518if test -n "$LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005520$as_echo "$LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005521else
drhf922ca42015-05-14 15:39:18 +00005522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005523$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005524fi
5525
drh8b727472009-01-19 18:18:40 +00005526
mlcreech636a9952008-05-05 22:52:56 +00005527fi
5528if test -z "$ac_cv_prog_LIPO"; then
5529 ac_ct_LIPO=$LIPO
5530 # Extract the first word of "lipo", so it can be a program name with args.
5531set dummy lipo; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005533$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005534if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
drh8b727472009-01-19 18:18:40 +00005535 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005536else
5537 if test -n "$ac_ct_LIPO"; then
5538 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
5539else
5540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541for as_dir in $PATH
5542do
5543 IFS=$as_save_IFS
5544 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005547 ac_cv_prog_ac_ct_LIPO="lipo"
drhf922ca42015-05-14 15:39:18 +00005548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005549 break 2
5550 fi
5551done
drhf922ca42015-05-14 15:39:18 +00005552 done
drh8b727472009-01-19 18:18:40 +00005553IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005554
5555fi
5556fi
5557ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
5558if test -n "$ac_ct_LIPO"; then
drhf922ca42015-05-14 15:39:18 +00005559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
drh8b727472009-01-19 18:18:40 +00005560$as_echo "$ac_ct_LIPO" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005561else
drhf922ca42015-05-14 15:39:18 +00005562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005563$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005564fi
5565
drh8b727472009-01-19 18:18:40 +00005566 if test "x$ac_ct_LIPO" = x; then
5567 LIPO=":"
5568 else
5569 case $cross_compiling:$ac_tool_warned in
5570yes:)
drhf922ca42015-05-14 15:39:18 +00005571{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5572$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005573ac_tool_warned=yes ;;
5574esac
5575 LIPO=$ac_ct_LIPO
5576 fi
mlcreech636a9952008-05-05 22:52:56 +00005577else
5578 LIPO="$ac_cv_prog_LIPO"
5579fi
5580
5581 if test -n "$ac_tool_prefix"; then
5582 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
5583set dummy ${ac_tool_prefix}otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005585$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005586if ${ac_cv_prog_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005587 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005588else
5589 if test -n "$OTOOL"; then
5590 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
5591else
5592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593for as_dir in $PATH
5594do
5595 IFS=$as_save_IFS
5596 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005597 for ac_exec_ext in '' $ac_executable_extensions; do
5598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005599 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
drhf922ca42015-05-14 15:39:18 +00005600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005601 break 2
5602 fi
5603done
drhf922ca42015-05-14 15:39:18 +00005604 done
drh8b727472009-01-19 18:18:40 +00005605IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005606
5607fi
5608fi
5609OTOOL=$ac_cv_prog_OTOOL
5610if test -n "$OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005612$as_echo "$OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005613else
drhf922ca42015-05-14 15:39:18 +00005614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005615$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005616fi
5617
drh8b727472009-01-19 18:18:40 +00005618
mlcreech636a9952008-05-05 22:52:56 +00005619fi
5620if test -z "$ac_cv_prog_OTOOL"; then
5621 ac_ct_OTOOL=$OTOOL
5622 # Extract the first word of "otool", so it can be a program name with args.
5623set dummy otool; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005625$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005626if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
drh8b727472009-01-19 18:18:40 +00005627 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005628else
5629 if test -n "$ac_ct_OTOOL"; then
5630 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
5631else
5632as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633for as_dir in $PATH
5634do
5635 IFS=$as_save_IFS
5636 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005637 for ac_exec_ext in '' $ac_executable_extensions; do
5638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005639 ac_cv_prog_ac_ct_OTOOL="otool"
drhf922ca42015-05-14 15:39:18 +00005640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005641 break 2
5642 fi
5643done
drhf922ca42015-05-14 15:39:18 +00005644 done
drh8b727472009-01-19 18:18:40 +00005645IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005646
5647fi
5648fi
5649ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
5650if test -n "$ac_ct_OTOOL"; then
drhf922ca42015-05-14 15:39:18 +00005651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
drh8b727472009-01-19 18:18:40 +00005652$as_echo "$ac_ct_OTOOL" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005653else
drhf922ca42015-05-14 15:39:18 +00005654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005655$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005656fi
5657
drh8b727472009-01-19 18:18:40 +00005658 if test "x$ac_ct_OTOOL" = x; then
5659 OTOOL=":"
5660 else
5661 case $cross_compiling:$ac_tool_warned in
5662yes:)
drhf922ca42015-05-14 15:39:18 +00005663{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5664$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005665ac_tool_warned=yes ;;
5666esac
5667 OTOOL=$ac_ct_OTOOL
5668 fi
mlcreech636a9952008-05-05 22:52:56 +00005669else
5670 OTOOL="$ac_cv_prog_OTOOL"
5671fi
5672
5673 if test -n "$ac_tool_prefix"; then
5674 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
5675set dummy ${ac_tool_prefix}otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005677$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005678if ${ac_cv_prog_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005679 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005680else
5681 if test -n "$OTOOL64"; then
5682 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
5683else
5684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685for as_dir in $PATH
5686do
5687 IFS=$as_save_IFS
5688 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005691 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
drhf922ca42015-05-14 15:39:18 +00005692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005693 break 2
5694 fi
5695done
drhf922ca42015-05-14 15:39:18 +00005696 done
drh8b727472009-01-19 18:18:40 +00005697IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005698
5699fi
5700fi
5701OTOOL64=$ac_cv_prog_OTOOL64
5702if test -n "$OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005704$as_echo "$OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005705else
drhf922ca42015-05-14 15:39:18 +00005706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005707$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005708fi
5709
drh8b727472009-01-19 18:18:40 +00005710
mlcreech636a9952008-05-05 22:52:56 +00005711fi
5712if test -z "$ac_cv_prog_OTOOL64"; then
5713 ac_ct_OTOOL64=$OTOOL64
5714 # Extract the first word of "otool64", so it can be a program name with args.
5715set dummy otool64; ac_word=$2
drhf922ca42015-05-14 15:39:18 +00005716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +00005717$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005718if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
drh8b727472009-01-19 18:18:40 +00005719 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005720else
5721 if test -n "$ac_ct_OTOOL64"; then
5722 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
5723else
5724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725for as_dir in $PATH
5726do
5727 IFS=$as_save_IFS
5728 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00005729 for ac_exec_ext in '' $ac_executable_extensions; do
5730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreech636a9952008-05-05 22:52:56 +00005731 ac_cv_prog_ac_ct_OTOOL64="otool64"
drhf922ca42015-05-14 15:39:18 +00005732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreech636a9952008-05-05 22:52:56 +00005733 break 2
5734 fi
5735done
drhf922ca42015-05-14 15:39:18 +00005736 done
drh8b727472009-01-19 18:18:40 +00005737IFS=$as_save_IFS
mlcreech636a9952008-05-05 22:52:56 +00005738
5739fi
5740fi
5741ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
5742if test -n "$ac_ct_OTOOL64"; then
drhf922ca42015-05-14 15:39:18 +00005743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
drh8b727472009-01-19 18:18:40 +00005744$as_echo "$ac_ct_OTOOL64" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005745else
drhf922ca42015-05-14 15:39:18 +00005746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00005747$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005748fi
5749
drh8b727472009-01-19 18:18:40 +00005750 if test "x$ac_ct_OTOOL64" = x; then
5751 OTOOL64=":"
5752 else
5753 case $cross_compiling:$ac_tool_warned in
5754yes:)
drhf922ca42015-05-14 15:39:18 +00005755{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5756$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
drh8b727472009-01-19 18:18:40 +00005757ac_tool_warned=yes ;;
5758esac
5759 OTOOL64=$ac_ct_OTOOL64
5760 fi
mlcreech636a9952008-05-05 22:52:56 +00005761else
5762 OTOOL64="$ac_cv_prog_OTOOL64"
5763fi
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
drhf922ca42015-05-14 15:39:18 +00005791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005792$as_echo_n "checking for -single_module linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005793if ${lt_cv_apple_cc_single_mod+:} false; then :
drh8b727472009-01-19 18:18:40 +00005794 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005795else
5796 lt_cv_apple_cc_single_mod=no
5797 if test -z "${LT_MULTI_MODULE}"; then
5798 # By default we will add the -single_module flag. You can override
5799 # by either setting the environment variable LT_MULTI_MODULE
5800 # non-empty at configure time, or by adding -multi_module to the
5801 # link flags.
5802 rm -rf libconftest.dylib*
5803 echo "int foo(void){return 1;}" > conftest.c
5804 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5805-dynamiclib -Wl,-single_module conftest.c" >&5
5806 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
5807 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
5808 _lt_result=$?
5809 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
5810 lt_cv_apple_cc_single_mod=yes
5811 else
5812 cat conftest.err >&5
5813 fi
5814 rm -rf libconftest.dylib*
5815 rm -f conftest.*
5816 fi
5817fi
drhf922ca42015-05-14 15:39:18 +00005818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
drh8b727472009-01-19 18:18:40 +00005819$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
drhf922ca42015-05-14 15:39:18 +00005820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
drh8b727472009-01-19 18:18:40 +00005821$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
drhf922ca42015-05-14 15:39:18 +00005822if ${lt_cv_ld_exported_symbols_list+:} false; then :
drh8b727472009-01-19 18:18:40 +00005823 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00005824else
5825 lt_cv_ld_exported_symbols_list=no
5826 save_LDFLAGS=$LDFLAGS
5827 echo "_main" > conftest.sym
5828 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
drhf922ca42015-05-14 15:39:18 +00005829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005830/* end confdefs.h. */
5831
5832int
5833main ()
5834{
5835
5836 ;
5837 return 0;
5838}
5839_ACEOF
drhf922ca42015-05-14 15:39:18 +00005840if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00005841 lt_cv_ld_exported_symbols_list=yes
5842else
drhf922ca42015-05-14 15:39:18 +00005843 lt_cv_ld_exported_symbols_list=no
mlcreech636a9952008-05-05 22:52:56 +00005844fi
drhf922ca42015-05-14 15:39:18 +00005845rm -f core conftest.err conftest.$ac_objext \
5846 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00005847 LDFLAGS="$save_LDFLAGS"
5848
5849fi
drhf922ca42015-05-14 15:39:18 +00005850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
drh8b727472009-01-19 18:18:40 +00005851$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00005852 case $host_os in
5853 rhapsody* | darwin1.[012])
5854 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
5855 darwin1.*)
5856 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5857 darwin*) # darwin 5.x on
5858 # if running on 10.5 or later, the deployment target defaults
5859 # to the OS version, if on x86, and 10.4, the deployment
5860 # target defaults to 10.4. Don't you love it?
5861 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
5862 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
5863 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5864 10.[012]*)
5865 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
5866 10.*)
5867 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
5868 esac
5869 ;;
5870 esac
5871 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
5872 _lt_dar_single_mod='$single_module'
5873 fi
5874 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
5875 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
5876 else
5877 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
5878 fi
5879 if test "$DSYMUTIL" != ":"; then
5880 _lt_dsymutil='~$DSYMUTIL $lib || :'
5881 else
5882 _lt_dsymutil=
5883 fi
5884 ;;
5885 esac
5886
a.rottmann84e63352003-03-24 09:42:16 +00005887ac_ext=c
5888ac_cpp='$CPP $CPPFLAGS'
5889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5891ac_compiler_gnu=$ac_cv_c_compiler_gnu
drhf922ca42015-05-14 15:39:18 +00005892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
drh8b727472009-01-19 18:18:40 +00005893$as_echo_n "checking how to run the C preprocessor... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005894# On Suns, sometimes $CPP names a directory.
5895if test -n "$CPP" && test -d "$CPP"; then
5896 CPP=
5897fi
5898if test -z "$CPP"; then
drhf922ca42015-05-14 15:39:18 +00005899 if ${ac_cv_prog_CPP+:} false; then :
drh8b727472009-01-19 18:18:40 +00005900 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00005901else
a.rottmann84e63352003-03-24 09:42:16 +00005902 # Double quotes because CPP needs to be expanded
5903 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5904 do
5905 ac_preproc_ok=false
5906for ac_c_preproc_warn_flag in '' yes
5907do
5908 # Use a header file that comes with gcc, so configuring glibc
5909 # with a fresh cross-compiler works.
5910 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5911 # <limits.h> exists even on freestanding compilers.
5912 # On the NeXT, cc -E runs the code through the compiler's parser,
5913 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005915/* end confdefs.h. */
5916#ifdef __STDC__
5917# include <limits.h>
5918#else
5919# include <assert.h>
5920#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005921 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005922_ACEOF
drhf922ca42015-05-14 15:39:18 +00005923if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005924
drhf922ca42015-05-14 15:39:18 +00005925else
a.rottmann84e63352003-03-24 09:42:16 +00005926 # Broken: fails on valid input.
5927continue
5928fi
drhf922ca42015-05-14 15:39:18 +00005929rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005930
drh8b727472009-01-19 18:18:40 +00005931 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005932 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00005933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005934/* end confdefs.h. */
5935#include <ac_nonexistent.h>
5936_ACEOF
drhf922ca42015-05-14 15:39:18 +00005937if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005938 # Broken: success on invalid input.
5939continue
5940else
a.rottmann84e63352003-03-24 09:42:16 +00005941 # Passes both tests.
5942ac_preproc_ok=:
5943break
5944fi
drhf922ca42015-05-14 15:39:18 +00005945rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005946
5947done
5948# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00005949rm -f conftest.i conftest.err conftest.$ac_ext
5950if $ac_preproc_ok; then :
a.rottmann84e63352003-03-24 09:42:16 +00005951 break
5952fi
5953
5954 done
5955 ac_cv_prog_CPP=$CPP
5956
5957fi
5958 CPP=$ac_cv_prog_CPP
5959else
5960 ac_cv_prog_CPP=$CPP
5961fi
drhf922ca42015-05-14 15:39:18 +00005962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
drh8b727472009-01-19 18:18:40 +00005963$as_echo "$CPP" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00005964ac_preproc_ok=false
5965for ac_c_preproc_warn_flag in '' yes
5966do
5967 # Use a header file that comes with gcc, so configuring glibc
5968 # with a fresh cross-compiler works.
5969 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5970 # <limits.h> exists even on freestanding compilers.
5971 # On the NeXT, cc -E runs the code through the compiler's parser,
5972 # not just through cpp. "Syntax error" is here to catch this case.
drhf922ca42015-05-14 15:39:18 +00005973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005974/* end confdefs.h. */
5975#ifdef __STDC__
5976# include <limits.h>
5977#else
5978# include <assert.h>
5979#endif
a.rottmann964dbb12004-02-26 19:47:42 +00005980 Syntax error
a.rottmann84e63352003-03-24 09:42:16 +00005981_ACEOF
drhf922ca42015-05-14 15:39:18 +00005982if ac_fn_c_try_cpp "$LINENO"; then :
drh710658c2012-01-16 13:00:05 +00005983
drhf922ca42015-05-14 15:39:18 +00005984else
a.rottmann84e63352003-03-24 09:42:16 +00005985 # Broken: fails on valid input.
5986continue
5987fi
drhf922ca42015-05-14 15:39:18 +00005988rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005989
drh8b727472009-01-19 18:18:40 +00005990 # OK, works on sane cases. Now check whether nonexistent headers
a.rottmann84e63352003-03-24 09:42:16 +00005991 # can be detected and how.
drhf922ca42015-05-14 15:39:18 +00005992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00005993/* end confdefs.h. */
5994#include <ac_nonexistent.h>
5995_ACEOF
drhf922ca42015-05-14 15:39:18 +00005996if ac_fn_c_try_cpp "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00005997 # Broken: success on invalid input.
5998continue
5999else
a.rottmann84e63352003-03-24 09:42:16 +00006000 # Passes both tests.
6001ac_preproc_ok=:
6002break
6003fi
drhf922ca42015-05-14 15:39:18 +00006004rm -f conftest.err conftest.i conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006005
6006done
6007# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
drhf922ca42015-05-14 15:39:18 +00006008rm -f conftest.i conftest.err conftest.$ac_ext
6009if $ac_preproc_ok; then :
6010
a.rottmann84e63352003-03-24 09:42:16 +00006011else
drhf922ca42015-05-14 15:39:18 +00006012 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6013$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6014as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6015See \`config.log' for more details" "$LINENO" 5; }
a.rottmann84e63352003-03-24 09:42:16 +00006016fi
6017
6018ac_ext=c
6019ac_cpp='$CPP $CPPFLAGS'
6020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6022ac_compiler_gnu=$ac_cv_c_compiler_gnu
6023
6024
drhf922ca42015-05-14 15:39:18 +00006025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
drh8b727472009-01-19 18:18:40 +00006026$as_echo_n "checking for ANSI C header files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006027if ${ac_cv_header_stdc+:} false; then :
drh8b727472009-01-19 18:18:40 +00006028 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006029else
drhf922ca42015-05-14 15:39:18 +00006030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006031/* end confdefs.h. */
6032#include <stdlib.h>
6033#include <stdarg.h>
6034#include <string.h>
6035#include <float.h>
6036
6037int
6038main ()
6039{
6040
6041 ;
6042 return 0;
6043}
6044_ACEOF
drhf922ca42015-05-14 15:39:18 +00006045if ac_fn_c_try_compile "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006046 ac_cv_header_stdc=yes
6047else
drhf922ca42015-05-14 15:39:18 +00006048 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006049fi
drh8b727472009-01-19 18:18:40 +00006050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006051
6052if test $ac_cv_header_stdc = yes; then
6053 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006055/* end confdefs.h. */
6056#include <string.h>
6057
6058_ACEOF
6059if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006060 $EGREP "memchr" >/dev/null 2>&1; then :
6061
a.rottmann84e63352003-03-24 09:42:16 +00006062else
6063 ac_cv_header_stdc=no
6064fi
6065rm -f conftest*
6066
6067fi
6068
6069if test $ac_cv_header_stdc = yes; then
6070 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
drhf922ca42015-05-14 15:39:18 +00006071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006072/* end confdefs.h. */
6073#include <stdlib.h>
6074
6075_ACEOF
6076if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
drhf922ca42015-05-14 15:39:18 +00006077 $EGREP "free" >/dev/null 2>&1; then :
6078
a.rottmann84e63352003-03-24 09:42:16 +00006079else
6080 ac_cv_header_stdc=no
6081fi
6082rm -f conftest*
6083
6084fi
6085
6086if test $ac_cv_header_stdc = yes; then
6087 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
drhf922ca42015-05-14 15:39:18 +00006088 if test "$cross_compiling" = yes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006089 :
6090else
drhf922ca42015-05-14 15:39:18 +00006091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00006092/* end confdefs.h. */
6093#include <ctype.h>
drh8b727472009-01-19 18:18:40 +00006094#include <stdlib.h>
a.rottmann84e63352003-03-24 09:42:16 +00006095#if ((' ' & 0x0FF) == 0x020)
6096# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6097# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6098#else
6099# define ISLOWER(c) \
a.rottmann964dbb12004-02-26 19:47:42 +00006100 (('a' <= (c) && (c) <= 'i') \
6101 || ('j' <= (c) && (c) <= 'r') \
6102 || ('s' <= (c) && (c) <= 'z'))
a.rottmann84e63352003-03-24 09:42:16 +00006103# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6104#endif
6105
6106#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6107int
6108main ()
6109{
6110 int i;
6111 for (i = 0; i < 256; i++)
6112 if (XOR (islower (i), ISLOWER (i))
a.rottmann964dbb12004-02-26 19:47:42 +00006113 || toupper (i) != TOUPPER (i))
drh8b727472009-01-19 18:18:40 +00006114 return 2;
6115 return 0;
a.rottmann84e63352003-03-24 09:42:16 +00006116}
6117_ACEOF
drhf922ca42015-05-14 15:39:18 +00006118if ac_fn_c_try_run "$LINENO"; then :
6119
a.rottmann84e63352003-03-24 09:42:16 +00006120else
drhf922ca42015-05-14 15:39:18 +00006121 ac_cv_header_stdc=no
a.rottmann84e63352003-03-24 09:42:16 +00006122fi
drhf922ca42015-05-14 15:39:18 +00006123rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6124 conftest.$ac_objext conftest.beam conftest.$ac_ext
drh8b727472009-01-19 18:18:40 +00006125fi
6126
a.rottmann84e63352003-03-24 09:42:16 +00006127fi
6128fi
drhf922ca42015-05-14 15:39:18 +00006129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
drh8b727472009-01-19 18:18:40 +00006130$as_echo "$ac_cv_header_stdc" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006131if test $ac_cv_header_stdc = yes; then
6132
drhf922ca42015-05-14 15:39:18 +00006133$as_echo "#define STDC_HEADERS 1" >>confdefs.h
a.rottmann84e63352003-03-24 09:42:16 +00006134
6135fi
6136
6137# On IRIX 5.3, sys/types and inttypes.h are conflicting.
a.rottmann84e63352003-03-24 09:42:16 +00006138for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
a.rottmann964dbb12004-02-26 19:47:42 +00006139 inttypes.h stdint.h unistd.h
drhf922ca42015-05-14 15:39:18 +00006140do :
6141 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6142ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6143"
6144if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
a.rottmann84e63352003-03-24 09:42:16 +00006145 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +00006146#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
a.rottmann84e63352003-03-24 09:42:16 +00006147_ACEOF
6148
6149fi
6150
6151done
6152
6153
a.rottmann84e63352003-03-24 09:42:16 +00006154for ac_header in dlfcn.h
drhf922ca42015-05-14 15:39:18 +00006155do :
6156 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6157"
6158if test "x$ac_cv_header_dlfcn_h" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00006159 cat >>confdefs.h <<_ACEOF
drhf922ca42015-05-14 15:39:18 +00006160#define HAVE_DLFCN_H 1
a.rottmann84e63352003-03-24 09:42:16 +00006161_ACEOF
6162
6163fi
6164
drh71eb93e2001-09-28 01:34:43 +00006165done
6166
drh71eb93e2001-09-28 01:34:43 +00006167
drh71eb93e2001-09-28 01:34:43 +00006168
mlcreech636a9952008-05-05 22:52:56 +00006169# Set options
mlcreech94984912008-03-04 19:03:08 +00006170
drh71eb93e2001-09-28 01:34:43 +00006171
drh71eb93e2001-09-28 01:34:43 +00006172
mlcreech636a9952008-05-05 22:52:56 +00006173 enable_dlopen=no
mlcreech94984912008-03-04 19:03:08 +00006174
a.rottmann9bc8b932004-02-29 15:18:31 +00006175
mlcreech636a9952008-05-05 22:52:56 +00006176 enable_win32_dll=no
a.rottmann9bc8b932004-02-29 15:18:31 +00006177
a.rottmann9bc8b932004-02-29 15:18:31 +00006178
drh8b727472009-01-19 18:18:40 +00006179 # Check whether --enable-shared was given.
drhf922ca42015-05-14 15:39:18 +00006180if test "${enable_shared+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006181 enableval=$enable_shared; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006182 case $enableval in
6183 yes) enable_shared=yes ;;
6184 no) enable_shared=no ;;
6185 *)
6186 enable_shared=no
6187 # Look at the argument we got. We use all the common list separators.
6188 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6189 for pkg in $enableval; do
6190 IFS="$lt_save_ifs"
6191 if test "X$pkg" = "X$p"; then
6192 enable_shared=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00006193 fi
mlcreech636a9952008-05-05 22:52:56 +00006194 done
6195 IFS="$lt_save_ifs"
6196 ;;
6197 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00006198else
mlcreech636a9952008-05-05 22:52:56 +00006199 enable_shared=yes
drh8b727472009-01-19 18:18:40 +00006200fi
a.rottmann9bc8b932004-02-29 15:18:31 +00006201
mlcreech636a9952008-05-05 22:52:56 +00006202
6203
6204
6205
6206
6207
6208
drh8b727472009-01-19 18:18:40 +00006209
6210 # Check whether --enable-static was given.
drhf922ca42015-05-14 15:39:18 +00006211if test "${enable_static+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006212 enableval=$enable_static; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006213 case $enableval in
6214 yes) enable_static=yes ;;
6215 no) enable_static=no ;;
6216 *)
6217 enable_static=no
6218 # Look at the argument we got. We use all the common list separators.
6219 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6220 for pkg in $enableval; do
6221 IFS="$lt_save_ifs"
6222 if test "X$pkg" = "X$p"; then
6223 enable_static=yes
6224 fi
6225 done
6226 IFS="$lt_save_ifs"
6227 ;;
6228 esac
6229else
6230 enable_static=yes
drh8b727472009-01-19 18:18:40 +00006231fi
mlcreech636a9952008-05-05 22:52:56 +00006232
6233
6234
6235
6236
6237
6238
6239
6240
drh8b727472009-01-19 18:18:40 +00006241
6242# Check whether --with-pic was given.
drhf922ca42015-05-14 15:39:18 +00006243if test "${with_pic+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006244 withval=$with_pic; pic_mode="$withval"
mlcreech636a9952008-05-05 22:52:56 +00006245else
6246 pic_mode=default
drh8b727472009-01-19 18:18:40 +00006247fi
6248
mlcreech636a9952008-05-05 22:52:56 +00006249
6250test -z "$pic_mode" && pic_mode=default
6251
6252
6253
6254
6255
6256
6257
drh8b727472009-01-19 18:18:40 +00006258 # Check whether --enable-fast-install was given.
drhf922ca42015-05-14 15:39:18 +00006259if test "${enable_fast_install+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00006260 enableval=$enable_fast_install; p=${PACKAGE-default}
mlcreech636a9952008-05-05 22:52:56 +00006261 case $enableval in
6262 yes) enable_fast_install=yes ;;
6263 no) enable_fast_install=no ;;
6264 *)
6265 enable_fast_install=no
6266 # Look at the argument we got. We use all the common list separators.
6267 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6268 for pkg in $enableval; do
6269 IFS="$lt_save_ifs"
6270 if test "X$pkg" = "X$p"; then
6271 enable_fast_install=yes
6272 fi
6273 done
6274 IFS="$lt_save_ifs"
6275 ;;
6276 esac
6277else
6278 enable_fast_install=yes
drh8b727472009-01-19 18:18:40 +00006279fi
6280
mlcreech636a9952008-05-05 22:52:56 +00006281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291# This can be used to rebuild libtool when needed
6292LIBTOOL_DEPS="$ltmain"
6293
6294# Always use our own libtool.
6295LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321test -z "$LN_S" && LN_S="ln -s"
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336if test -n "${ZSH_VERSION+set}" ; then
6337 setopt NO_GLOB_SUBST
6338fi
6339
drhf922ca42015-05-14 15:39:18 +00006340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
drh8b727472009-01-19 18:18:40 +00006341$as_echo_n "checking for objdir... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006342if ${lt_cv_objdir+:} false; then :
drh8b727472009-01-19 18:18:40 +00006343 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006344else
6345 rm -f .libs 2>/dev/null
6346mkdir .libs 2>/dev/null
6347if test -d .libs; then
6348 lt_cv_objdir=.libs
6349else
6350 # MS-DOS does not allow filenames that begin with a dot.
6351 lt_cv_objdir=_libs
6352fi
6353rmdir .libs 2>/dev/null
6354fi
drhf922ca42015-05-14 15:39:18 +00006355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
drh8b727472009-01-19 18:18:40 +00006356$as_echo "$lt_cv_objdir" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006357objdir=$lt_cv_objdir
6358
6359
6360
6361
6362
mlcreech636a9952008-05-05 22:52:56 +00006363cat >>confdefs.h <<_ACEOF
6364#define LT_OBJDIR "$lt_cv_objdir/"
6365_ACEOF
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
a.rottmann9bc8b932004-02-29 15:18:31 +00006383case $host_os in
6384aix3*)
6385 # AIX sometimes has problems with the GCC collect2 program. For some
6386 # reason, if we set the COLLECT_NAMES environment variable, the problems
6387 # vanish in a puff of smoke.
6388 if test "X${COLLECT_NAMES+set}" != Xset; then
6389 COLLECT_NAMES=
6390 export COLLECT_NAMES
drh71eb93e2001-09-28 01:34:43 +00006391 fi
6392 ;;
6393esac
6394
a.rottmann9bc8b932004-02-29 15:18:31 +00006395# Sed substitution that helps us do robust quoting. It backslashifies
6396# metacharacters that are still active within double-quoted strings.
mlcreech636a9952008-05-05 22:52:56 +00006397sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006398
6399# Same as above, but do not quote variable references.
mlcreech636a9952008-05-05 22:52:56 +00006400double_quote_subst='s/\(["`\\]\)/\\\1/g'
a.rottmann9bc8b932004-02-29 15:18:31 +00006401
6402# Sed substitution to delay expansion of an escaped shell variable in a
6403# double_quote_subst'ed string.
6404delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6405
mlcreech636a9952008-05-05 22:52:56 +00006406# Sed substitution to delay expansion of an escaped single quote.
6407delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6408
a.rottmann9bc8b932004-02-29 15:18:31 +00006409# Sed substitution to avoid accidental globbing in evaled expressions
6410no_glob_subst='s/\*/\\\*/g'
6411
a.rottmann9bc8b932004-02-29 15:18:31 +00006412# Global variables:
mlcreech636a9952008-05-05 22:52:56 +00006413ofile=libtool
a.rottmann9bc8b932004-02-29 15:18:31 +00006414can_build_shared=yes
6415
vapier7f19c022007-02-17 14:46:31 +00006416# All known linkers require a `.a' archive for static linking (except MSVC,
a.rottmann9bc8b932004-02-29 15:18:31 +00006417# which needs '.lib').
6418libext=a
mlcreech636a9952008-05-05 22:52:56 +00006419
a.rottmann9bc8b932004-02-29 15:18:31 +00006420with_gnu_ld="$lt_cv_prog_gnu_ld"
6421
a.rottmann84e63352003-03-24 09:42:16 +00006422old_CC="$CC"
6423old_CFLAGS="$CFLAGS"
6424
6425# Set sane defaults for various variables
a.rottmann84e63352003-03-24 09:42:16 +00006426test -z "$CC" && CC=cc
a.rottmann9bc8b932004-02-29 15:18:31 +00006427test -z "$LTCC" && LTCC=$CC
vapier7f19c022007-02-17 14:46:31 +00006428test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
a.rottmann84e63352003-03-24 09:42:16 +00006429test -z "$LD" && LD=ld
a.rottmann84e63352003-03-24 09:42:16 +00006430test -z "$ac_objext" && ac_objext=o
6431
vapier7f19c022007-02-17 14:46:31 +00006432for cc_temp in $compiler""; do
6433 case $cc_temp in
6434 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6435 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6436 \-*) ;;
6437 *) break;;
6438 esac
6439done
mlcreech636a9952008-05-05 22:52:56 +00006440cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
vapier7f19c022007-02-17 14:46:31 +00006441
6442
a.rottmann9bc8b932004-02-29 15:18:31 +00006443# Only perform the check for file, if the check method requires it
mlcreech636a9952008-05-05 22:52:56 +00006444test -z "$MAGIC_CMD" && MAGIC_CMD=file
a.rottmann9bc8b932004-02-29 15:18:31 +00006445case $deplibs_check_method in
6446file_magic*)
6447 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
drhf922ca42015-05-14 15:39:18 +00006448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
drh8b727472009-01-19 18:18:40 +00006449$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006450if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006451 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00006452else
a.rottmann9bc8b932004-02-29 15:18:31 +00006453 case $MAGIC_CMD in
6454[\\/*] | ?:[\\/]*)
6455 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6456 ;;
6457*)
6458 lt_save_MAGIC_CMD="$MAGIC_CMD"
6459 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6460 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6461 for ac_dir in $ac_dummy; do
6462 IFS="$lt_save_ifs"
6463 test -z "$ac_dir" && ac_dir=.
6464 if test -f $ac_dir/${ac_tool_prefix}file; then
6465 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6466 if test -n "$file_magic_test_file"; then
6467 case $deplibs_check_method in
6468 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006469 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006470 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6471 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6472 $EGREP "$file_magic_regex" > /dev/null; then
6473 :
6474 else
mlcreech636a9952008-05-05 22:52:56 +00006475 cat <<_LT_EOF 1>&2
a.rottmann84e63352003-03-24 09:42:16 +00006476
a.rottmann9bc8b932004-02-29 15:18:31 +00006477*** Warning: the command libtool uses to detect shared libraries,
6478*** $file_magic_cmd, produces output that libtool cannot recognize.
6479*** The result is that libtool may fail to recognize shared libraries
6480*** as such. This will affect the creation of libtool libraries that
6481*** depend on shared libraries, but programs linked with such libtool
6482*** libraries will work regardless of this problem. Nevertheless, you
6483*** may want to report the problem to your system manager and/or to
6484*** bug-libtool@gnu.org
6485
mlcreech636a9952008-05-05 22:52:56 +00006486_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006487 fi ;;
6488 esac
6489 fi
6490 break
6491 fi
6492 done
6493 IFS="$lt_save_ifs"
6494 MAGIC_CMD="$lt_save_MAGIC_CMD"
6495 ;;
6496esac
6497fi
6498
6499MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6500if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006502$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006503else
drhf922ca42015-05-14 15:39:18 +00006504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006505$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006506fi
6507
mlcreech636a9952008-05-05 22:52:56 +00006508
6509
6510
6511
a.rottmann9bc8b932004-02-29 15:18:31 +00006512if test -z "$lt_cv_path_MAGIC_CMD"; then
6513 if test -n "$ac_tool_prefix"; then
drhf922ca42015-05-14 15:39:18 +00006514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
drh8b727472009-01-19 18:18:40 +00006515$as_echo_n "checking for file... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006516if ${lt_cv_path_MAGIC_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +00006517 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006518else
6519 case $MAGIC_CMD in
6520[\\/*] | ?:[\\/]*)
6521 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6522 ;;
6523*)
6524 lt_save_MAGIC_CMD="$MAGIC_CMD"
6525 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6526 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6527 for ac_dir in $ac_dummy; do
6528 IFS="$lt_save_ifs"
6529 test -z "$ac_dir" && ac_dir=.
6530 if test -f $ac_dir/file; then
6531 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6532 if test -n "$file_magic_test_file"; then
6533 case $deplibs_check_method in
6534 "file_magic "*)
vapier7f19c022007-02-17 14:46:31 +00006535 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
a.rottmann9bc8b932004-02-29 15:18:31 +00006536 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6537 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6538 $EGREP "$file_magic_regex" > /dev/null; then
6539 :
6540 else
mlcreech636a9952008-05-05 22:52:56 +00006541 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00006542
6543*** Warning: the command libtool uses to detect shared libraries,
6544*** $file_magic_cmd, produces output that libtool cannot recognize.
6545*** The result is that libtool may fail to recognize shared libraries
6546*** as such. This will affect the creation of libtool libraries that
6547*** depend on shared libraries, but programs linked with such libtool
6548*** libraries will work regardless of this problem. Nevertheless, you
6549*** may want to report the problem to your system manager and/or to
6550*** bug-libtool@gnu.org
6551
mlcreech636a9952008-05-05 22:52:56 +00006552_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00006553 fi ;;
6554 esac
6555 fi
6556 break
6557 fi
6558 done
6559 IFS="$lt_save_ifs"
6560 MAGIC_CMD="$lt_save_MAGIC_CMD"
6561 ;;
6562esac
6563fi
6564
6565MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6566if test -n "$MAGIC_CMD"; then
drhf922ca42015-05-14 15:39:18 +00006567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
drh8b727472009-01-19 18:18:40 +00006568$as_echo "$MAGIC_CMD" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006569else
drhf922ca42015-05-14 15:39:18 +00006570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00006571$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006572fi
6573
mlcreech636a9952008-05-05 22:52:56 +00006574
a.rottmann9bc8b932004-02-29 15:18:31 +00006575 else
6576 MAGIC_CMD=:
6577 fi
6578fi
6579
6580 fi
6581 ;;
6582esac
6583
a.rottmann9bc8b932004-02-29 15:18:31 +00006584# Use C for the default configuration in the libtool script
mlcreech636a9952008-05-05 22:52:56 +00006585
a.rottmann9bc8b932004-02-29 15:18:31 +00006586lt_save_CC="$CC"
6587ac_ext=c
6588ac_cpp='$CPP $CPPFLAGS'
6589ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6590ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6591ac_compiler_gnu=$ac_cv_c_compiler_gnu
6592
6593
6594# Source file extension for C test sources.
6595ac_ext=c
6596
6597# Object file extension for compiled C test sources.
6598objext=o
6599objext=$objext
6600
6601# Code to be used in simple compile tests
mlcreech636a9952008-05-05 22:52:56 +00006602lt_simple_compile_test_code="int some_variable = 0;"
a.rottmann9bc8b932004-02-29 15:18:31 +00006603
6604# Code to be used in simple link tests
mlcreech636a9952008-05-05 22:52:56 +00006605lt_simple_link_test_code='int main(){return(0);}'
6606
6607
6608
6609
6610
a.rottmann9bc8b932004-02-29 15:18:31 +00006611
6612
6613# If no C compiler was specified, use CC.
6614LTCC=${LTCC-"$CC"}
6615
vapier7f19c022007-02-17 14:46:31 +00006616# If no C compiler flags were specified, use CFLAGS.
6617LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6618
a.rottmann9bc8b932004-02-29 15:18:31 +00006619# Allow CC to be a program name with arguments.
6620compiler=$CC
6621
mlcreech636a9952008-05-05 22:52:56 +00006622# Save the default compiler, since it gets overwritten when the other
6623# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6624compiler_DEFAULT=$CC
a.rottmann9bc8b932004-02-29 15:18:31 +00006625
vapier7f19c022007-02-17 14:46:31 +00006626# save warnings/boilerplate of simple test code
6627ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006628echo "$lt_simple_compile_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006629eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6630_lt_compiler_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006631$RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006632
vapier7f19c022007-02-17 14:46:31 +00006633ac_outfile=conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +00006634echo "$lt_simple_link_test_code" >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00006635eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6636_lt_linker_boilerplate=`cat conftest.err`
mlcreech636a9952008-05-05 22:52:56 +00006637$RM -r conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006638
6639
mlcreech636a9952008-05-05 22:52:56 +00006640if test -n "$compiler"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006641
6642lt_prog_compiler_no_builtin_flag=
6643
6644if test "$GCC" = yes; then
6645 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6646
drhf922ca42015-05-14 15:39:18 +00006647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006648$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006649if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
drh8b727472009-01-19 18:18:40 +00006650 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00006651else
6652 lt_cv_prog_compiler_rtti_exceptions=no
mlcreech636a9952008-05-05 22:52:56 +00006653 ac_outfile=conftest.$ac_objext
6654 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006655 lt_compiler_flag="-fno-rtti -fno-exceptions"
6656 # Insert the option either (1) after the last *FLAGS variable, or
6657 # (2) before a word containing "conftest.", or (3) at the end.
6658 # Note that $ac_compile itself does not contain backslashes and begins
6659 # with a dollar sign (not a hyphen), so the echo should work correctly.
6660 # The option is referenced via a variable to avoid confusing sed.
6661 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00006662 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00006663 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6664 -e 's:$: $lt_compiler_flag:'`
drh5e18d402016-05-03 13:14:18 +00006665 (eval echo "\"\$as_me:6665: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00006666 (eval "$lt_compile" 2>conftest.err)
6667 ac_status=$?
6668 cat conftest.err >&5
drh5e18d402016-05-03 13:14:18 +00006669 echo "$as_me:6669: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00006670 if (exit $ac_status) && test -s "$ac_outfile"; then
6671 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00006672 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00006673 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00006674 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6675 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006676 lt_cv_prog_compiler_rtti_exceptions=yes
6677 fi
6678 fi
mlcreech636a9952008-05-05 22:52:56 +00006679 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00006680
6681fi
drhf922ca42015-05-14 15:39:18 +00006682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
drh8b727472009-01-19 18:18:40 +00006683$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00006684
6685if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6686 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6687else
6688 :
6689fi
6690
6691fi
6692
mlcreech636a9952008-05-05 22:52:56 +00006693
6694
6695
6696
6697
6698 lt_prog_compiler_wl=
a.rottmann9bc8b932004-02-29 15:18:31 +00006699lt_prog_compiler_pic=
6700lt_prog_compiler_static=
6701
drhf922ca42015-05-14 15:39:18 +00006702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
drh8b727472009-01-19 18:18:40 +00006703$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00006704
drh71eb93e2001-09-28 01:34:43 +00006705 if test "$GCC" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00006706 lt_prog_compiler_wl='-Wl,'
6707 lt_prog_compiler_static='-static'
drh71eb93e2001-09-28 01:34:43 +00006708
6709 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006710 aix*)
6711 # All AIX code is PIC.
6712 if test "$host_cpu" = ia64; then
6713 # AIX 5 now supports IA64 processor
6714 lt_prog_compiler_static='-Bstatic'
6715 fi
drh71eb93e2001-09-28 01:34:43 +00006716 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006717
drh71eb93e2001-09-28 01:34:43 +00006718 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00006719 case $host_cpu in
6720 powerpc)
6721 # see comment about AmigaOS4 .so support
6722 lt_prog_compiler_pic='-fPIC'
6723 ;;
6724 m68k)
6725 # FIXME: we need at least 68020 code to build shared libraries, but
6726 # adding the `-m68020' flag to GCC prevents building anything better,
6727 # like `-m68040'.
6728 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6729 ;;
6730 esac
drh71eb93e2001-09-28 01:34:43 +00006731 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006732
mlcreech636a9952008-05-05 22:52:56 +00006733 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
drh71eb93e2001-09-28 01:34:43 +00006734 # PIC is the default for these OSes.
6735 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006736
vapier6acb2cf2009-01-28 04:46:28 +00006737 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006738 # This hack is so that the source file can tell whether it is being
6739 # built for inclusion in a dll (and should export symbols for example).
mlcreech636a9952008-05-05 22:52:56 +00006740 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6741 # (--disable-auto-import) libraries
a.rottmann9bc8b932004-02-29 15:18:31 +00006742 lt_prog_compiler_pic='-DDLL_EXPORT'
6743 ;;
6744
drh71eb93e2001-09-28 01:34:43 +00006745 darwin* | rhapsody*)
6746 # PIC is the default on this platform
6747 # Common symbols not allowed in MH_DYLIB files
a.rottmann9bc8b932004-02-29 15:18:31 +00006748 lt_prog_compiler_pic='-fno-common'
drh71eb93e2001-09-28 01:34:43 +00006749 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006750
a.rottmann9bc8b932004-02-29 15:18:31 +00006751 hpux*)
vapier6acb2cf2009-01-28 04:46:28 +00006752 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
6753 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
6754 # sets the default TLS model and affects inlining.
vapier7f19c022007-02-17 14:46:31 +00006755 case $host_cpu in
vapier6acb2cf2009-01-28 04:46:28 +00006756 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006757 # +Z the default
6758 ;;
6759 *)
6760 lt_prog_compiler_pic='-fPIC'
6761 ;;
6762 esac
6763 ;;
6764
mlcreech636a9952008-05-05 22:52:56 +00006765 interix[3-9]*)
6766 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6767 # Instead, we relocate shared libraries at runtime.
6768 ;;
6769
6770 msdosdjgpp*)
6771 # Just because we use GCC doesn't mean we suddenly get shared libraries
6772 # on systems that don't support them.
6773 lt_prog_compiler_can_build_shared=no
6774 enable_shared=no
6775 ;;
6776
6777 *nto* | *qnx*)
6778 # QNX uses GNU C++, but need to define -shared option too, otherwise
6779 # it will coredump.
6780 lt_prog_compiler_pic='-fPIC -shared'
6781 ;;
6782
6783 sysv4*MP*)
6784 if test -d /usr/nec; then
6785 lt_prog_compiler_pic=-Kconform_pic
6786 fi
6787 ;;
6788
drh71eb93e2001-09-28 01:34:43 +00006789 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006790 lt_prog_compiler_pic='-fPIC'
drh71eb93e2001-09-28 01:34:43 +00006791 ;;
6792 esac
6793 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006794 # PORTME Check for flag to pass linker flags through the system compiler.
drh71eb93e2001-09-28 01:34:43 +00006795 case $host_os in
a.rottmann9bc8b932004-02-29 15:18:31 +00006796 aix*)
6797 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006798 if test "$host_cpu" = ia64; then
a.rottmann84e63352003-03-24 09:42:16 +00006799 # AIX 5 now supports IA64 processor
a.rottmann9bc8b932004-02-29 15:18:31 +00006800 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006801 else
a.rottmann9bc8b932004-02-29 15:18:31 +00006802 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
drh71eb93e2001-09-28 01:34:43 +00006803 fi
6804 ;;
6805
vapier6acb2cf2009-01-28 04:46:28 +00006806 mingw* | cygwin* | pw32* | os2* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006807 # This hack is so that the source file can tell whether it is being
6808 # built for inclusion in a dll (and should export symbols for example).
6809 lt_prog_compiler_pic='-DDLL_EXPORT'
6810 ;;
6811
a.rottmann84e63352003-03-24 09:42:16 +00006812 hpux9* | hpux10* | hpux11*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006813 lt_prog_compiler_wl='-Wl,'
6814 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6815 # not for PA HP-UX.
vapier7f19c022007-02-17 14:46:31 +00006816 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00006817 hppa*64*|ia64*)
6818 # +Z the default
6819 ;;
6820 *)
6821 lt_prog_compiler_pic='+Z'
6822 ;;
6823 esac
6824 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6825 lt_prog_compiler_static='${wl}-a ${wl}archive'
a.rottmann84e63352003-03-24 09:42:16 +00006826 ;;
6827
6828 irix5* | irix6* | nonstopux*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006829 lt_prog_compiler_wl='-Wl,'
a.rottmann84e63352003-03-24 09:42:16 +00006830 # PIC (with -KPIC) is the default.
a.rottmann9bc8b932004-02-29 15:18:31 +00006831 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006832 ;;
6833
mlcreech636a9952008-05-05 22:52:56 +00006834 linux* | k*bsd*-gnu)
vapier7f19c022007-02-17 14:46:31 +00006835 case $cc_basename in
vapier6acb2cf2009-01-28 04:46:28 +00006836 # old Intel for x86_64 which still supported -KPIC.
6837 ecc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006838 lt_prog_compiler_wl='-Wl,'
6839 lt_prog_compiler_pic='-KPIC'
6840 lt_prog_compiler_static='-static'
6841 ;;
vapier6acb2cf2009-01-28 04:46:28 +00006842 # icc used to be incompatible with GCC.
6843 # ICC 10 doesn't accept -KPIC any more.
6844 icc* | ifort*)
6845 lt_prog_compiler_wl='-Wl,'
6846 lt_prog_compiler_pic='-fPIC'
6847 lt_prog_compiler_static='-static'
6848 ;;
6849 # Lahey Fortran 8.1.
6850 lf95*)
6851 lt_prog_compiler_wl='-Wl,'
6852 lt_prog_compiler_pic='--shared'
6853 lt_prog_compiler_static='--static'
6854 ;;
vapier7f19c022007-02-17 14:46:31 +00006855 pgcc* | pgf77* | pgf90* | pgf95*)
6856 # Portland Group compilers (*not* the Pentium gcc compiler,
6857 # which looks to be a dead project)
6858 lt_prog_compiler_wl='-Wl,'
6859 lt_prog_compiler_pic='-fpic'
6860 lt_prog_compiler_static='-Bstatic'
6861 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006862 ccc*)
6863 lt_prog_compiler_wl='-Wl,'
6864 # All Alpha code is PIC.
6865 lt_prog_compiler_static='-non_shared'
6866 ;;
mlcreech636a9952008-05-05 22:52:56 +00006867 xl*)
6868 # IBM XL C 8.0/Fortran 10.1 on PPC
6869 lt_prog_compiler_wl='-Wl,'
6870 lt_prog_compiler_pic='-qpic'
6871 lt_prog_compiler_static='-qstaticlink'
6872 ;;
6873 *)
6874 case `$CC -V 2>&1 | sed 5q` in
6875 *Sun\ C*)
6876 # Sun C 5.9
6877 lt_prog_compiler_pic='-KPIC'
6878 lt_prog_compiler_static='-Bstatic'
6879 lt_prog_compiler_wl='-Wl,'
6880 ;;
6881 *Sun\ F*)
6882 # Sun Fortran 8.3 passes all unrecognized flags to the linker
6883 lt_prog_compiler_pic='-KPIC'
6884 lt_prog_compiler_static='-Bstatic'
6885 lt_prog_compiler_wl=''
6886 ;;
6887 esac
6888 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00006889 esac
drh71eb93e2001-09-28 01:34:43 +00006890 ;;
6891
mlcreech636a9952008-05-05 22:52:56 +00006892 newsos6)
6893 lt_prog_compiler_pic='-KPIC'
6894 lt_prog_compiler_static='-Bstatic'
6895 ;;
6896
6897 *nto* | *qnx*)
6898 # QNX uses GNU C++, but need to define -shared option too, otherwise
6899 # it will coredump.
6900 lt_prog_compiler_pic='-fPIC -shared'
6901 ;;
6902
drh71eb93e2001-09-28 01:34:43 +00006903 osf3* | osf4* | osf5*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006904 lt_prog_compiler_wl='-Wl,'
drh71eb93e2001-09-28 01:34:43 +00006905 # All OSF/1 code is PIC.
a.rottmann9bc8b932004-02-29 15:18:31 +00006906 lt_prog_compiler_static='-non_shared'
drh71eb93e2001-09-28 01:34:43 +00006907 ;;
6908
mlcreech636a9952008-05-05 22:52:56 +00006909 rdos*)
6910 lt_prog_compiler_static='-non_shared'
6911 ;;
6912
drh71eb93e2001-09-28 01:34:43 +00006913 solaris*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006914 lt_prog_compiler_pic='-KPIC'
6915 lt_prog_compiler_static='-Bstatic'
vapier7f19c022007-02-17 14:46:31 +00006916 case $cc_basename in
6917 f77* | f90* | f95*)
6918 lt_prog_compiler_wl='-Qoption ld ';;
6919 *)
6920 lt_prog_compiler_wl='-Wl,';;
6921 esac
drh71eb93e2001-09-28 01:34:43 +00006922 ;;
6923
6924 sunos4*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006925 lt_prog_compiler_wl='-Qoption ld '
6926 lt_prog_compiler_pic='-PIC'
6927 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006928 ;;
6929
vapier7f19c022007-02-17 14:46:31 +00006930 sysv4 | sysv4.2uw2* | sysv4.3*)
a.rottmann9bc8b932004-02-29 15:18:31 +00006931 lt_prog_compiler_wl='-Wl,'
6932 lt_prog_compiler_pic='-KPIC'
6933 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006934 ;;
6935
6936 sysv4*MP*)
6937 if test -d /usr/nec ;then
a.rottmann9bc8b932004-02-29 15:18:31 +00006938 lt_prog_compiler_pic='-Kconform_pic'
6939 lt_prog_compiler_static='-Bstatic'
drh71eb93e2001-09-28 01:34:43 +00006940 fi
6941 ;;
6942
vapier7f19c022007-02-17 14:46:31 +00006943 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6944 lt_prog_compiler_wl='-Wl,'
6945 lt_prog_compiler_pic='-KPIC'
6946 lt_prog_compiler_static='-Bstatic'
6947 ;;
6948
6949 unicos*)
6950 lt_prog_compiler_wl='-Wl,'
6951 lt_prog_compiler_can_build_shared=no
6952 ;;
6953
a.rottmann9bc8b932004-02-29 15:18:31 +00006954 uts4*)
6955 lt_prog_compiler_pic='-pic'
6956 lt_prog_compiler_static='-Bstatic'
6957 ;;
6958
drh71eb93e2001-09-28 01:34:43 +00006959 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00006960 lt_prog_compiler_can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00006961 ;;
6962 esac
6963 fi
6964
mlcreech636a9952008-05-05 22:52:56 +00006965case $host_os in
6966 # For platforms which do not support PIC, -DPIC is meaningless:
6967 *djgpp*)
6968 lt_prog_compiler_pic=
6969 ;;
6970 *)
6971 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6972 ;;
6973esac
drhf922ca42015-05-14 15:39:18 +00006974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
drh8b727472009-01-19 18:18:40 +00006975$as_echo "$lt_prog_compiler_pic" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00006976
6977
6978
6979
6980
drh71eb93e2001-09-28 01:34:43 +00006981
a.rottmann9bc8b932004-02-29 15:18:31 +00006982#
6983# Check to make sure the PIC flag actually works.
6984#
6985if test -n "$lt_prog_compiler_pic"; then
drhf922ca42015-05-14 15:39:18 +00006986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
drh8b727472009-01-19 18:18:40 +00006987$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00006988if ${lt_cv_prog_compiler_pic_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00006989 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00006990else
mlcreech636a9952008-05-05 22:52:56 +00006991 lt_cv_prog_compiler_pic_works=no
6992 ac_outfile=conftest.$ac_objext
6993 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00006994 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6995 # Insert the option either (1) after the last *FLAGS variable, or
6996 # (2) before a word containing "conftest.", or (3) at the end.
6997 # Note that $ac_compile itself does not contain backslashes and begins
6998 # with a dollar sign (not a hyphen), so the echo should work correctly.
6999 # The option is referenced via a variable to avoid confusing sed.
7000 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007001 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7003 -e 's:$: $lt_compiler_flag:'`
drh5e18d402016-05-03 13:14:18 +00007004 (eval echo "\"\$as_me:7004: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007005 (eval "$lt_compile" 2>conftest.err)
7006 ac_status=$?
7007 cat conftest.err >&5
drh5e18d402016-05-03 13:14:18 +00007008 echo "$as_me:7008: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007009 if (exit $ac_status) && test -s "$ac_outfile"; then
7010 # The compiler can only warn and ignore the option if not recognized
vapier7f19c022007-02-17 14:46:31 +00007011 # So say no if there are warnings other than the usual output.
mlcreech636a9952008-05-05 22:52:56 +00007012 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007013 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7014 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007015 lt_cv_prog_compiler_pic_works=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007016 fi
7017 fi
mlcreech636a9952008-05-05 22:52:56 +00007018 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007019
a.rottmann9bc8b932004-02-29 15:18:31 +00007020fi
drhf922ca42015-05-14 15:39:18 +00007021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
drh8b727472009-01-19 18:18:40 +00007022$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007023
mlcreech636a9952008-05-05 22:52:56 +00007024if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007025 case $lt_prog_compiler_pic in
7026 "" | " "*) ;;
7027 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7028 esac
drh71eb93e2001-09-28 01:34:43 +00007029else
a.rottmann9bc8b932004-02-29 15:18:31 +00007030 lt_prog_compiler_pic=
7031 lt_prog_compiler_can_build_shared=no
a.rottmann84e63352003-03-24 09:42:16 +00007032fi
7033
a.rottmann84e63352003-03-24 09:42:16 +00007034fi
mlcreech636a9952008-05-05 22:52:56 +00007035
7036
7037
7038
7039
a.rottmann84e63352003-03-24 09:42:16 +00007040
vapier7f19c022007-02-17 14:46:31 +00007041#
7042# Check to make sure the static flag actually works.
7043#
7044wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00007045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
drh8b727472009-01-19 18:18:40 +00007046$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007047if ${lt_cv_prog_compiler_static_works+:} false; then :
drh8b727472009-01-19 18:18:40 +00007048 $as_echo_n "(cached) " >&6
vapier7f19c022007-02-17 14:46:31 +00007049else
mlcreech636a9952008-05-05 22:52:56 +00007050 lt_cv_prog_compiler_static_works=no
vapier7f19c022007-02-17 14:46:31 +00007051 save_LDFLAGS="$LDFLAGS"
7052 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
mlcreech636a9952008-05-05 22:52:56 +00007053 echo "$lt_simple_link_test_code" > conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +00007054 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7055 # The linker can only warn and ignore the option if not recognized
7056 # So say no if there are warnings
7057 if test -s conftest.err; then
7058 # Append any errors to the config.log.
7059 cat conftest.err 1>&5
mlcreech636a9952008-05-05 22:52:56 +00007060 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007061 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7062 if diff conftest.exp conftest.er2 >/dev/null; then
mlcreech636a9952008-05-05 22:52:56 +00007063 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007064 fi
7065 else
mlcreech636a9952008-05-05 22:52:56 +00007066 lt_cv_prog_compiler_static_works=yes
vapier7f19c022007-02-17 14:46:31 +00007067 fi
7068 fi
mlcreech636a9952008-05-05 22:52:56 +00007069 $RM -r conftest*
vapier7f19c022007-02-17 14:46:31 +00007070 LDFLAGS="$save_LDFLAGS"
7071
7072fi
drhf922ca42015-05-14 15:39:18 +00007073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
drh8b727472009-01-19 18:18:40 +00007074$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
vapier7f19c022007-02-17 14:46:31 +00007075
mlcreech636a9952008-05-05 22:52:56 +00007076if test x"$lt_cv_prog_compiler_static_works" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00007077 :
7078else
7079 lt_prog_compiler_static=
7080fi
7081
7082
mlcreech636a9952008-05-05 22:52:56 +00007083
7084
7085
7086
7087
drhf922ca42015-05-14 15:39:18 +00007088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007089$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007090if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007091 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00007092else
a.rottmann9bc8b932004-02-29 15:18:31 +00007093 lt_cv_prog_compiler_c_o=no
mlcreech636a9952008-05-05 22:52:56 +00007094 $RM -r conftest 2>/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007095 mkdir conftest
7096 cd conftest
7097 mkdir out
mlcreech636a9952008-05-05 22:52:56 +00007098 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00007099
a.rottmann9bc8b932004-02-29 15:18:31 +00007100 lt_compiler_flag="-o out/conftest2.$ac_objext"
7101 # Insert the option either (1) after the last *FLAGS variable, or
7102 # (2) before a word containing "conftest.", or (3) at the end.
7103 # Note that $ac_compile itself does not contain backslashes and begins
7104 # with a dollar sign (not a hyphen), so the echo should work correctly.
7105 lt_compile=`echo "$ac_compile" | $SED \
vapier7f19c022007-02-17 14:46:31 +00007106 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
a.rottmann9bc8b932004-02-29 15:18:31 +00007107 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7108 -e 's:$: $lt_compiler_flag:'`
drh5e18d402016-05-03 13:14:18 +00007109 (eval echo "\"\$as_me:7109: $lt_compile\"" >&5)
a.rottmann9bc8b932004-02-29 15:18:31 +00007110 (eval "$lt_compile" 2>out/conftest.err)
7111 ac_status=$?
7112 cat out/conftest.err >&5
drh5e18d402016-05-03 13:14:18 +00007113 echo "$as_me:7113: \$? = $ac_status" >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00007114 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7115 then
7116 # The compiler can only warn and ignore the option if not recognized
7117 # So say no if there are warnings
mlcreech636a9952008-05-05 22:52:56 +00007118 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
vapier7f19c022007-02-17 14:46:31 +00007119 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7120 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007121 lt_cv_prog_compiler_c_o=yes
7122 fi
7123 fi
vapier7f19c022007-02-17 14:46:31 +00007124 chmod u+w . 2>&5
mlcreech636a9952008-05-05 22:52:56 +00007125 $RM conftest*
a.rottmann9bc8b932004-02-29 15:18:31 +00007126 # SGI C++ compiler will create directory out/ii_files/ for
7127 # template instantiation
mlcreech636a9952008-05-05 22:52:56 +00007128 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7129 $RM out/* && rmdir out
a.rottmann9bc8b932004-02-29 15:18:31 +00007130 cd ..
mlcreech636a9952008-05-05 22:52:56 +00007131 $RM -r conftest
7132 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007133
7134fi
drhf922ca42015-05-14 15:39:18 +00007135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007136$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007137
7138
7139
7140
7141
7142
drhf922ca42015-05-14 15:39:18 +00007143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
drh8b727472009-01-19 18:18:40 +00007144$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
drhf922ca42015-05-14 15:39:18 +00007145if ${lt_cv_prog_compiler_c_o+:} false; then :
drh8b727472009-01-19 18:18:40 +00007146 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +00007147else
7148 lt_cv_prog_compiler_c_o=no
7149 $RM -r conftest 2>/dev/null
7150 mkdir conftest
7151 cd conftest
7152 mkdir out
7153 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7154
7155 lt_compiler_flag="-o out/conftest2.$ac_objext"
7156 # Insert the option either (1) after the last *FLAGS variable, or
7157 # (2) before a word containing "conftest.", or (3) at the end.
7158 # Note that $ac_compile itself does not contain backslashes and begins
7159 # with a dollar sign (not a hyphen), so the echo should work correctly.
7160 lt_compile=`echo "$ac_compile" | $SED \
7161 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7162 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7163 -e 's:$: $lt_compiler_flag:'`
drh5e18d402016-05-03 13:14:18 +00007164 (eval echo "\"\$as_me:7164: $lt_compile\"" >&5)
mlcreech636a9952008-05-05 22:52:56 +00007165 (eval "$lt_compile" 2>out/conftest.err)
7166 ac_status=$?
7167 cat out/conftest.err >&5
drh5e18d402016-05-03 13:14:18 +00007168 echo "$as_me:7168: \$? = $ac_status" >&5
mlcreech636a9952008-05-05 22:52:56 +00007169 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7170 then
7171 # The compiler can only warn and ignore the option if not recognized
7172 # So say no if there are warnings
7173 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7174 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7175 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7176 lt_cv_prog_compiler_c_o=yes
7177 fi
7178 fi
7179 chmod u+w . 2>&5
7180 $RM conftest*
7181 # SGI C++ compiler will create directory out/ii_files/ for
7182 # template instantiation
7183 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7184 $RM out/* && rmdir out
7185 cd ..
7186 $RM -r conftest
7187 $RM conftest*
7188
7189fi
drhf922ca42015-05-14 15:39:18 +00007190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
drh8b727472009-01-19 18:18:40 +00007191$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00007192
7193
drh71eb93e2001-09-28 01:34:43 +00007194
a.rottmann84e63352003-03-24 09:42:16 +00007195
drh71eb93e2001-09-28 01:34:43 +00007196hard_links="nottested"
a.rottmann9bc8b932004-02-29 15:18:31 +00007197if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
drh71eb93e2001-09-28 01:34:43 +00007198 # do not overwrite the value of need_locks provided by the user
drhf922ca42015-05-14 15:39:18 +00007199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
drh8b727472009-01-19 18:18:40 +00007200$as_echo_n "checking if we can lock with hard links... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00007201 hard_links=yes
mlcreech636a9952008-05-05 22:52:56 +00007202 $RM conftest*
drh71eb93e2001-09-28 01:34:43 +00007203 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7204 touch conftest.a
7205 ln conftest.a conftest.b 2>&5 || hard_links=no
7206 ln conftest.a conftest.b 2>/dev/null && hard_links=no
drhf922ca42015-05-14 15:39:18 +00007207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
drh8b727472009-01-19 18:18:40 +00007208$as_echo "$hard_links" >&6; }
drh71eb93e2001-09-28 01:34:43 +00007209 if test "$hard_links" = no; then
drhf922ca42015-05-14 15:39:18 +00007210 { $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 +00007211$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
drh71eb93e2001-09-28 01:34:43 +00007212 need_locks=warn
7213 fi
7214else
7215 need_locks=no
7216fi
7217
mlcreech636a9952008-05-05 22:52:56 +00007218
7219
7220
7221
7222
drhf922ca42015-05-14 15:39:18 +00007223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00007224$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00007225
7226 runpath_var=
7227 allow_undefined_flag=
mlcreech636a9952008-05-05 22:52:56 +00007228 always_export_symbols=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007229 archive_cmds=
7230 archive_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007231 compiler_needs_object=no
7232 enable_shared_with_static_runtimes=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007233 export_dynamic_flag_spec=
mlcreech636a9952008-05-05 22:52:56 +00007234 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7235 hardcode_automatic=no
7236 hardcode_direct=no
7237 hardcode_direct_absolute=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007238 hardcode_libdir_flag_spec=
7239 hardcode_libdir_flag_spec_ld=
7240 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007241 hardcode_minus_L=no
7242 hardcode_shlibpath_var=unsupported
mlcreech636a9952008-05-05 22:52:56 +00007243 inherit_rpath=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007244 link_all_deplibs=unknown
a.rottmann9bc8b932004-02-29 15:18:31 +00007245 module_cmds=
7246 module_expsym_cmds=
mlcreech636a9952008-05-05 22:52:56 +00007247 old_archive_from_new_cmds=
7248 old_archive_from_expsyms_cmds=
7249 thread_safe_flag_spec=
7250 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007251 # include_expsyms should be a list of space-separated symbols to be *always*
7252 # included in the symbol list
7253 include_expsyms=
7254 # exclude_expsyms can be an extended regexp of symbols to exclude
7255 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7256 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7257 # as well as any symbol that contains `d'.
mlcreech636a9952008-05-05 22:52:56 +00007258 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
a.rottmann9bc8b932004-02-29 15:18:31 +00007259 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7260 # platforms (ab)use it in PIC code, but their linkers get confused if
7261 # the symbol is explicitly referenced. Since portable code cannot
7262 # rely on this symbol name, it's probably fine to never include it in
7263 # preloaded symbol tables.
mlcreech636a9952008-05-05 22:52:56 +00007264 # Exclude shared library initialization/finalization symbols.
a.rottmann9bc8b932004-02-29 15:18:31 +00007265 extract_expsyms_cmds=
7266
7267 case $host_os in
vapier6acb2cf2009-01-28 04:46:28 +00007268 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007269 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7270 # When not using gcc, we currently assume that we are using
7271 # Microsoft Visual C++.
7272 if test "$GCC" != yes; then
7273 with_gnu_ld=no
7274 fi
7275 ;;
vapier7f19c022007-02-17 14:46:31 +00007276 interix*)
7277 # we just hope/assume this is gcc and not c89 (= MSVC++)
7278 with_gnu_ld=yes
7279 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007280 openbsd*)
7281 with_gnu_ld=no
7282 ;;
7283 esac
7284
7285 ld_shlibs=yes
7286 if test "$with_gnu_ld" = yes; then
7287 # If archive_cmds runs LD, not CC, wlarc should be empty
7288 wlarc='${wl}'
7289
vapier7f19c022007-02-17 14:46:31 +00007290 # Set some defaults for GNU ld with shared library support. These
7291 # are reset later if shared libraries are not supported. Putting them
7292 # here allows them to be overridden if necessary.
7293 runpath_var=LD_RUN_PATH
mlcreech636a9952008-05-05 22:52:56 +00007294 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
vapier7f19c022007-02-17 14:46:31 +00007295 export_dynamic_flag_spec='${wl}--export-dynamic'
7296 # ancient GNU ld didn't support --whole-archive et. al.
mlcreech636a9952008-05-05 22:52:56 +00007297 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7298 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7299 else
7300 whole_archive_flag_spec=
vapier7f19c022007-02-17 14:46:31 +00007301 fi
7302 supports_anon_versioning=no
mlcreech636a9952008-05-05 22:52:56 +00007303 case `$LD -v 2>&1` in
vapier7f19c022007-02-17 14:46:31 +00007304 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7305 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7306 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7307 *\ 2.11.*) ;; # other 2.11 versions
7308 *) supports_anon_versioning=yes ;;
7309 esac
7310
a.rottmann9bc8b932004-02-29 15:18:31 +00007311 # See if GNU ld supports shared libraries.
7312 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00007313 aix[3-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007314 # On AIX/PPC, the GNU linker is very broken
7315 if test "$host_cpu" != ia64; then
7316 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007317 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007318
7319*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7320*** to be unable to reliably create shared libraries on AIX.
7321*** Therefore, libtool is disabling shared libraries support. If you
7322*** really care for shared libraries, you may want to modify your PATH
7323*** so that a non-GNU linker is found, and then restart.
7324
mlcreech636a9952008-05-05 22:52:56 +00007325_LT_EOF
a.rottmann9bc8b932004-02-29 15:18:31 +00007326 fi
7327 ;;
7328
7329 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007330 case $host_cpu in
7331 powerpc)
7332 # see comment about AmigaOS4 .so support
7333 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7334 archive_expsym_cmds=''
7335 ;;
7336 m68k)
7337 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)'
7338 hardcode_libdir_flag_spec='-L$libdir'
7339 hardcode_minus_L=yes
7340 ;;
7341 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00007342 ;;
7343
7344 beos*)
mlcreech636a9952008-05-05 22:52:56 +00007345 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007346 allow_undefined_flag=unsupported
7347 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7348 # support --undefined. This deserves some investigation. FIXME
7349 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7350 else
7351 ld_shlibs=no
7352 fi
7353 ;;
7354
vapier6acb2cf2009-01-28 04:46:28 +00007355 cygwin* | mingw* | pw32* | cegcc*)
mlcreech636a9952008-05-05 22:52:56 +00007356 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
a.rottmann9bc8b932004-02-29 15:18:31 +00007357 # as there is no search path for DLLs.
7358 hardcode_libdir_flag_spec='-L$libdir'
7359 allow_undefined_flag=unsupported
7360 always_export_symbols=no
7361 enable_shared_with_static_runtimes=yes
mlcreech636a9952008-05-05 22:52:56 +00007362 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 +00007363
mlcreech636a9952008-05-05 22:52:56 +00007364 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
vapier7f19c022007-02-17 14:46:31 +00007365 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 +00007366 # If the export-symbols file already is a .def file (1st line
7367 # is EXPORTS), use it as is; otherwise, prepend...
7368 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7369 cp $export_symbols $output_objdir/$soname.def;
7370 else
7371 echo EXPORTS > $output_objdir/$soname.def;
7372 cat $export_symbols >> $output_objdir/$soname.def;
7373 fi~
vapier7f19c022007-02-17 14:46:31 +00007374 $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 +00007375 else
7376 ld_shlibs=no
7377 fi
7378 ;;
7379
mlcreech636a9952008-05-05 22:52:56 +00007380 interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00007381 hardcode_direct=no
7382 hardcode_shlibpath_var=no
7383 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7384 export_dynamic_flag_spec='${wl}-E'
7385 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7386 # Instead, shared libraries are loaded at an image base (0x10000000 by
7387 # default) and relocated if they conflict, which is a slow very memory
7388 # consuming and fragmenting process. To avoid this, we pick a random,
7389 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7390 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7391 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7392 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'
7393 ;;
7394
mlcreech636a9952008-05-05 22:52:56 +00007395 gnu* | linux* | tpf* | k*bsd*-gnu)
7396 tmp_diet=no
7397 if test "$host_os" = linux-dietlibc; then
7398 case $cc_basename in
7399 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7400 esac
7401 fi
7402 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7403 && test "$tmp_diet" = no
7404 then
vapier7f19c022007-02-17 14:46:31 +00007405 tmp_addflag=
mlcreech636a9952008-05-05 22:52:56 +00007406 tmp_sharedflag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007407 case $cc_basename,$host_cpu in
mlcreech636a9952008-05-05 22:52:56 +00007408 pgcc*) # Portland Group C compiler
7409 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 +00007410 tmp_addflag=' $pic_flag'
7411 ;;
7412 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
mlcreech636a9952008-05-05 22:52:56 +00007413 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 -Mnomain' ;;
mlcreech636a9952008-05-05 22:52:56 +00007415 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
vapier7f19c022007-02-17 14:46:31 +00007416 tmp_addflag=' -i_dynamic' ;;
7417 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7418 tmp_addflag=' -i_dynamic -nofor_main' ;;
7419 ifc* | ifort*) # Intel Fortran compiler
7420 tmp_addflag=' -nofor_main' ;;
vapier6acb2cf2009-01-28 04:46:28 +00007421 lf95*) # Lahey Fortran 8.1
7422 whole_archive_flag_spec=
7423 tmp_sharedflag='--shared' ;;
mlcreech636a9952008-05-05 22:52:56 +00007424 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7425 tmp_sharedflag='-qmkshrobj'
7426 tmp_addflag= ;;
vapier7f19c022007-02-17 14:46:31 +00007427 esac
mlcreech636a9952008-05-05 22:52:56 +00007428 case `$CC -V 2>&1 | sed 5q` in
7429 *Sun\ C*) # Sun C 5.9
7430 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'
7431 compiler_needs_object=yes
7432 tmp_sharedflag='-G' ;;
7433 *Sun\ F*) # Sun Fortran 8.3
7434 tmp_sharedflag='-G' ;;
7435 esac
7436 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
vapier7f19c022007-02-17 14:46:31 +00007437
mlcreech636a9952008-05-05 22:52:56 +00007438 if test "x$supports_anon_versioning" = xyes; then
7439 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7440 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7441 echo "local: *; };" >> $output_objdir/$libname.ver~
7442 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7443 fi
7444
7445 case $cc_basename in
7446 xlf*)
7447 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
7448 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
7449 hardcode_libdir_flag_spec=
7450 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7451 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
7452 if test "x$supports_anon_versioning" = xyes; then
7453 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7454 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7455 echo "local: *; };" >> $output_objdir/$libname.ver~
7456 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
7457 fi
7458 ;;
7459 esac
vapier7f19c022007-02-17 14:46:31 +00007460 else
mlcreech636a9952008-05-05 22:52:56 +00007461 ld_shlibs=no
vapier7f19c022007-02-17 14:46:31 +00007462 fi
7463 ;;
7464
7465 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007466 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007467 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7468 wlarc=
7469 else
7470 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7471 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7472 fi
7473 ;;
7474
vapier7f19c022007-02-17 14:46:31 +00007475 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00007476 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007477 ld_shlibs=no
mlcreech636a9952008-05-05 22:52:56 +00007478 cat <<_LT_EOF 1>&2
a.rottmann9bc8b932004-02-29 15:18:31 +00007479
7480*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7481*** create shared libraries on Solaris systems. Therefore, libtool
7482*** is disabling shared libraries support. We urge you to upgrade GNU
7483*** binutils to release 2.9.1 or newer. Another option is to modify
7484*** your PATH or compiler configuration so that the native linker is
7485*** used, and then restart.
7486
mlcreech636a9952008-05-05 22:52:56 +00007487_LT_EOF
7488 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007489 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7490 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7491 else
7492 ld_shlibs=no
7493 fi
7494 ;;
7495
vapier7f19c022007-02-17 14:46:31 +00007496 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7497 case `$LD -v 2>&1` in
7498 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7499 ld_shlibs=no
7500 cat <<_LT_EOF 1>&2
7501
7502*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7503*** reliably create shared libraries on SCO systems. Therefore, libtool
7504*** is disabling shared libraries support. We urge you to upgrade GNU
7505*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7506*** your PATH or compiler configuration so that the native linker is
7507*** used, and then restart.
7508
7509_LT_EOF
7510 ;;
7511 *)
mlcreech636a9952008-05-05 22:52:56 +00007512 # For security reasons, it is highly recommended that you always
7513 # use absolute paths for naming shared libraries, and exclude the
7514 # DT_RUNPATH tag from executables and libraries. But doing so
7515 # requires that you compile everything twice, which is a pain.
7516 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7517 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7518 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7519 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 +00007520 else
7521 ld_shlibs=no
7522 fi
7523 ;;
7524 esac
7525 ;;
7526
a.rottmann9bc8b932004-02-29 15:18:31 +00007527 sunos4*)
7528 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7529 wlarc=
7530 hardcode_direct=yes
7531 hardcode_shlibpath_var=no
7532 ;;
7533
a.rottmann9bc8b932004-02-29 15:18:31 +00007534 *)
mlcreech636a9952008-05-05 22:52:56 +00007535 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007536 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7537 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7538 else
7539 ld_shlibs=no
7540 fi
7541 ;;
7542 esac
7543
vapier7f19c022007-02-17 14:46:31 +00007544 if test "$ld_shlibs" = no; then
7545 runpath_var=
7546 hardcode_libdir_flag_spec=
7547 export_dynamic_flag_spec=
7548 whole_archive_flag_spec=
a.rottmann9bc8b932004-02-29 15:18:31 +00007549 fi
7550 else
7551 # PORTME fill in a description of your system's linker (not GNU ld)
7552 case $host_os in
7553 aix3*)
7554 allow_undefined_flag=unsupported
7555 always_export_symbols=yes
7556 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'
7557 # Note: this linker hardcodes the directories in LIBPATH if there
7558 # are no directories specified by -L.
7559 hardcode_minus_L=yes
vapier7f19c022007-02-17 14:46:31 +00007560 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007561 # Neither direct hardcoding nor static linking is supported with a
7562 # broken collect2.
7563 hardcode_direct=unsupported
7564 fi
7565 ;;
7566
mlcreech636a9952008-05-05 22:52:56 +00007567 aix[4-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007568 if test "$host_cpu" = ia64; then
7569 # On IA64, the linker does run time linking by default, so we don't
7570 # have to do anything special.
7571 aix_use_runtimelinking=no
7572 exp_sym_flag='-Bexport'
7573 no_entry_flag=""
7574 else
7575 # If we're using GNU nm, then we don't want the "-C" option.
7576 # -C means demangle to AIX nm, but means don't demangle with GNU nm
mlcreech636a9952008-05-05 22:52:56 +00007577 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
7578 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 +00007579 else
mlcreech636a9952008-05-05 22:52:56 +00007580 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 +00007581 fi
7582 aix_use_runtimelinking=no
7583
7584 # Test if we are trying to use run time linking or normal
7585 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7586 # need to do runtime linking.
mlcreech636a9952008-05-05 22:52:56 +00007587 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007588 for ld_flag in $LDFLAGS; do
mlcreech636a9952008-05-05 22:52:56 +00007589 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7590 aix_use_runtimelinking=yes
7591 break
7592 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007593 done
vapier7f19c022007-02-17 14:46:31 +00007594 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007595 esac
7596
7597 exp_sym_flag='-bexport'
7598 no_entry_flag='-bnoentry'
7599 fi
7600
7601 # When large executables or shared objects are built, AIX ld can
7602 # have problems creating the table of contents. If linking a library
7603 # or program results in "error TOC overflow" add -mminimal-toc to
7604 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7605 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7606
7607 archive_cmds=''
7608 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007609 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007610 hardcode_libdir_separator=':'
7611 link_all_deplibs=yes
mlcreech636a9952008-05-05 22:52:56 +00007612 file_list_spec='${wl}-f,'
a.rottmann9bc8b932004-02-29 15:18:31 +00007613
7614 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00007615 case $host_os in aix4.[012]|aix4.[012].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007616 # We only want to do this on AIX 4.2 and lower, the check
7617 # below for broken collect2 doesn't work under 4.3+
7618 collect2name=`${CC} -print-prog-name=collect2`
mlcreech636a9952008-05-05 22:52:56 +00007619 if test -f "$collect2name" &&
7620 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
a.rottmann9bc8b932004-02-29 15:18:31 +00007621 then
mlcreech636a9952008-05-05 22:52:56 +00007622 # We have reworked collect2
7623 :
a.rottmann9bc8b932004-02-29 15:18:31 +00007624 else
mlcreech636a9952008-05-05 22:52:56 +00007625 # We have old collect2
7626 hardcode_direct=unsupported
7627 # It fails to find uninstalled libraries when the uninstalled
7628 # path is not listed in the libpath. Setting hardcode_minus_L
7629 # to unsupported forces relinking
7630 hardcode_minus_L=yes
7631 hardcode_libdir_flag_spec='-L$libdir'
7632 hardcode_libdir_separator=
a.rottmann9bc8b932004-02-29 15:18:31 +00007633 fi
vapier7f19c022007-02-17 14:46:31 +00007634 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007635 esac
7636 shared_flag='-shared'
vapier7f19c022007-02-17 14:46:31 +00007637 if test "$aix_use_runtimelinking" = yes; then
7638 shared_flag="$shared_flag "'${wl}-G'
7639 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007640 else
7641 # not using gcc
7642 if test "$host_cpu" = ia64; then
mlcreech636a9952008-05-05 22:52:56 +00007643 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7644 # chokes on -Wl,-G. The following line is correct:
a.rottmann9bc8b932004-02-29 15:18:31 +00007645 shared_flag='-G'
7646 else
vapier7f19c022007-02-17 14:46:31 +00007647 if test "$aix_use_runtimelinking" = yes; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007648 shared_flag='${wl}-G'
7649 else
7650 shared_flag='${wl}-bM:SRE'
vapier7f19c022007-02-17 14:46:31 +00007651 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007652 fi
7653 fi
7654
vapier6acb2cf2009-01-28 04:46:28 +00007655 export_dynamic_flag_spec='${wl}-bexpall'
a.rottmann9bc8b932004-02-29 15:18:31 +00007656 # It seems that -bexpall does not export symbols beginning with
7657 # underscore (_), so it is better to generate a list of symbols to export.
7658 always_export_symbols=yes
7659 if test "$aix_use_runtimelinking" = yes; then
7660 # Warning - without using the other runtime loading flags (-brtl),
7661 # -berok will link without error, but may produce a broken library.
7662 allow_undefined_flag='-berok'
mlcreech636a9952008-05-05 22:52:56 +00007663 # Determine the default libpath from the value encoded in an
7664 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00007666/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00007667
a.rottmann84e63352003-03-24 09:42:16 +00007668int
7669main ()
7670{
a.rottmann9bc8b932004-02-29 15:18:31 +00007671
a.rottmann84e63352003-03-24 09:42:16 +00007672 ;
7673 return 0;
7674}
7675_ACEOF
drhf922ca42015-05-14 15:39:18 +00007676if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007677
mlcreech636a9952008-05-05 22:52:56 +00007678lt_aix_libpath_sed='
7679 /Import File Strings/,/^$/ {
7680 /^0/ {
7681 s/^0 *\(.*\)$/\1/
7682 p
7683 }
7684 }'
7685aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007686# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007687if test -z "$aix_libpath"; then
7688 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7689fi
a.rottmann84e63352003-03-24 09:42:16 +00007690fi
drhf922ca42015-05-14 15:39:18 +00007691rm -f core conftest.err conftest.$ac_objext \
7692 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007693if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007694
mlcreech636a9952008-05-05 22:52:56 +00007695 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7696 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"
7697 else
a.rottmann9bc8b932004-02-29 15:18:31 +00007698 if test "$host_cpu" = ia64; then
7699 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7700 allow_undefined_flag="-z nodefs"
vapier7f19c022007-02-17 14:46:31 +00007701 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 +00007702 else
mlcreech636a9952008-05-05 22:52:56 +00007703 # Determine the default libpath from the value encoded in an
7704 # empty executable.
drhf922ca42015-05-14 15:39:18 +00007705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007706/* end confdefs.h. */
a.rottmann84e63352003-03-24 09:42:16 +00007707
a.rottmann9bc8b932004-02-29 15:18:31 +00007708int
7709main ()
7710{
a.rottmann84e63352003-03-24 09:42:16 +00007711
a.rottmann9bc8b932004-02-29 15:18:31 +00007712 ;
7713 return 0;
7714}
7715_ACEOF
drhf922ca42015-05-14 15:39:18 +00007716if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00007717
mlcreech636a9952008-05-05 22:52:56 +00007718lt_aix_libpath_sed='
7719 /Import File Strings/,/^$/ {
7720 /^0/ {
7721 s/^0 *\(.*\)$/\1/
7722 p
7723 }
7724 }'
7725aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
a.rottmann9bc8b932004-02-29 15:18:31 +00007726# Check for a 64-bit object if we didn't find anything.
mlcreech636a9952008-05-05 22:52:56 +00007727if test -z "$aix_libpath"; then
7728 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7729fi
a.rottmann9bc8b932004-02-29 15:18:31 +00007730fi
drhf922ca42015-05-14 15:39:18 +00007731rm -f core conftest.err conftest.$ac_objext \
7732 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00007733if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
a.rottmann84e63352003-03-24 09:42:16 +00007734
a.rottmann9bc8b932004-02-29 15:18:31 +00007735 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7736 # Warning - without using the other run time loading flags,
7737 # -berok will link without error, but may produce a broken library.
7738 no_undefined_flag=' ${wl}-bernotok'
7739 allow_undefined_flag=' ${wl}-berok'
a.rottmann9bc8b932004-02-29 15:18:31 +00007740 # Exported symbols can be pulled into shared objects from archives
vapier7f19c022007-02-17 14:46:31 +00007741 whole_archive_flag_spec='$convenience'
a.rottmann9bc8b932004-02-29 15:18:31 +00007742 archive_cmds_need_lc=yes
vapier7f19c022007-02-17 14:46:31 +00007743 # This is similar to how AIX traditionally builds its shared libraries.
7744 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 +00007745 fi
7746 fi
a.rottmann84e63352003-03-24 09:42:16 +00007747 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007748
7749 amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00007750 case $host_cpu in
7751 powerpc)
7752 # see comment about AmigaOS4 .so support
7753 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7754 archive_expsym_cmds=''
7755 ;;
7756 m68k)
7757 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)'
7758 hardcode_libdir_flag_spec='-L$libdir'
7759 hardcode_minus_L=yes
7760 ;;
7761 esac
a.rottmann84e63352003-03-24 09:42:16 +00007762 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007763
vapier7f19c022007-02-17 14:46:31 +00007764 bsdi[45]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007765 export_dynamic_flag_spec=-rdynamic
7766 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007767
vapier6acb2cf2009-01-28 04:46:28 +00007768 cygwin* | mingw* | pw32* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007769 # When not using gcc, we currently assume that we are using
7770 # Microsoft Visual C++.
7771 # hardcode_libdir_flag_spec is actually meaningless, as there is
7772 # no search path for DLLs.
7773 hardcode_libdir_flag_spec=' '
7774 allow_undefined_flag=unsupported
7775 # Tell ltmain to make .lib files, not .a files.
7776 libext=lib
7777 # Tell ltmain to make .dll files, not .so files.
vapier7f19c022007-02-17 14:46:31 +00007778 shrext_cmds=".dll"
a.rottmann9bc8b932004-02-29 15:18:31 +00007779 # FIXME: Setting linknames here is a bad hack.
mlcreech636a9952008-05-05 22:52:56 +00007780 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 +00007781 # The linker will automatically build a .lib file if we build a DLL.
mlcreech636a9952008-05-05 22:52:56 +00007782 old_archive_from_new_cmds='true'
a.rottmann9bc8b932004-02-29 15:18:31 +00007783 # FIXME: Should let the user specify the lib program.
mlcreech636a9952008-05-05 22:52:56 +00007784 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
a.rottmann9bc8b932004-02-29 15:18:31 +00007785 fix_srcfile_path='`cygpath -w "$srcfile"`'
7786 enable_shared_with_static_runtimes=yes
7787 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007788
a.rottmann9bc8b932004-02-29 15:18:31 +00007789 darwin* | rhapsody*)
mlcreech636a9952008-05-05 22:52:56 +00007790
7791
7792 archive_cmds_need_lc=no
7793 hardcode_direct=no
7794 hardcode_automatic=yes
7795 hardcode_shlibpath_var=unsupported
7796 whole_archive_flag_spec=''
7797 link_all_deplibs=yes
7798 allow_undefined_flag="$_lt_dar_allow_undefined"
vapier6acb2cf2009-01-28 04:46:28 +00007799 case $cc_basename in
7800 ifort*) _lt_dar_can_shared=yes ;;
7801 *) _lt_dar_can_shared=$GCC ;;
7802 esac
7803 if test "$_lt_dar_can_shared" = "yes"; then
mlcreech636a9952008-05-05 22:52:56 +00007804 output_verbose_link_cmd=echo
7805 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7806 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7807 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}"
7808 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}"
7809
7810 else
7811 ld_shlibs=no
7812 fi
7813
a.rottmann9bc8b932004-02-29 15:18:31 +00007814 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007815
a.rottmann9bc8b932004-02-29 15:18:31 +00007816 dgux*)
7817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7818 hardcode_libdir_flag_spec='-L$libdir'
7819 hardcode_shlibpath_var=no
7820 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007821
a.rottmann9bc8b932004-02-29 15:18:31 +00007822 freebsd1*)
7823 ld_shlibs=no
7824 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007825
a.rottmann9bc8b932004-02-29 15:18:31 +00007826 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7827 # support. Future versions do this automatically, but an explicit c++rt0.o
7828 # does not break anything, and helps significantly (at the cost of a little
7829 # extra space).
7830 freebsd2.2*)
7831 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7832 hardcode_libdir_flag_spec='-R$libdir'
7833 hardcode_direct=yes
7834 hardcode_shlibpath_var=no
7835 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007836
a.rottmann9bc8b932004-02-29 15:18:31 +00007837 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7838 freebsd2*)
7839 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7840 hardcode_direct=yes
7841 hardcode_minus_L=yes
7842 hardcode_shlibpath_var=no
7843 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007844
a.rottmann9bc8b932004-02-29 15:18:31 +00007845 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
mlcreech636a9952008-05-05 22:52:56 +00007846 freebsd* | dragonfly*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007847 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7848 hardcode_libdir_flag_spec='-R$libdir'
7849 hardcode_direct=yes
7850 hardcode_shlibpath_var=no
7851 ;;
a.rottmann84e63352003-03-24 09:42:16 +00007852
a.rottmann9bc8b932004-02-29 15:18:31 +00007853 hpux9*)
7854 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007855 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 +00007856 else
mlcreech636a9952008-05-05 22:52:56 +00007857 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 +00007858 fi
7859 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7860 hardcode_libdir_separator=:
7861 hardcode_direct=yes
7862
7863 # hardcode_minus_L: Not really in the search PATH,
7864 # but as the default location of the library.
7865 hardcode_minus_L=yes
7866 export_dynamic_flag_spec='${wl}-E'
7867 ;;
7868
vapier7f19c022007-02-17 14:46:31 +00007869 hpux10*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007870 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007871 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7872 else
7873 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7874 fi
7875 if test "$with_gnu_ld" = no; then
7876 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
mlcreech636a9952008-05-05 22:52:56 +00007877 hardcode_libdir_flag_spec_ld='+b $libdir'
vapier7f19c022007-02-17 14:46:31 +00007878 hardcode_libdir_separator=:
vapier7f19c022007-02-17 14:46:31 +00007879 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007880 hardcode_direct_absolute=yes
vapier7f19c022007-02-17 14:46:31 +00007881 export_dynamic_flag_spec='${wl}-E'
vapier7f19c022007-02-17 14:46:31 +00007882 # hardcode_minus_L: Not really in the search PATH,
7883 # but as the default location of the library.
7884 hardcode_minus_L=yes
7885 fi
7886 ;;
7887
7888 hpux11*)
7889 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7890 case $host_cpu in
7891 hppa*64*)
a.rottmann9bc8b932004-02-29 15:18:31 +00007892 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7893 ;;
vapier7f19c022007-02-17 14:46:31 +00007894 ia64*)
vapier6acb2cf2009-01-28 04:46:28 +00007895 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00007896 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00007897 *)
7898 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7899 ;;
7900 esac
7901 else
vapier7f19c022007-02-17 14:46:31 +00007902 case $host_cpu in
7903 hppa*64*)
7904 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7905 ;;
7906 ia64*)
7907 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
a.rottmann9bc8b932004-02-29 15:18:31 +00007908 ;;
7909 *)
vapier7f19c022007-02-17 14:46:31 +00007910 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 +00007911 ;;
7912 esac
7913 fi
7914 if test "$with_gnu_ld" = no; then
vapier7f19c022007-02-17 14:46:31 +00007915 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7916 hardcode_libdir_separator=:
a.rottmann9bc8b932004-02-29 15:18:31 +00007917
vapier7f19c022007-02-17 14:46:31 +00007918 case $host_cpu in
7919 hppa*64*|ia64*)
vapier7f19c022007-02-17 14:46:31 +00007920 hardcode_direct=no
7921 hardcode_shlibpath_var=no
a.rottmann9bc8b932004-02-29 15:18:31 +00007922 ;;
7923 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00007924 hardcode_direct=yes
mlcreech636a9952008-05-05 22:52:56 +00007925 hardcode_direct_absolute=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007926 export_dynamic_flag_spec='${wl}-E'
7927
7928 # hardcode_minus_L: Not really in the search PATH,
7929 # but as the default location of the library.
7930 hardcode_minus_L=yes
7931 ;;
7932 esac
7933 fi
7934 ;;
7935
7936 irix5* | irix6* | nonstopux*)
7937 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00007938 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'
7939 # Try to use the -exported_symbol ld option, if it does not
7940 # work, assume that -exports_file does not work either and
7941 # implicitly export all symbols.
7942 save_LDFLAGS="$LDFLAGS"
7943 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
drhf922ca42015-05-14 15:39:18 +00007944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +00007946int foo(void) {}
7947_ACEOF
drhf922ca42015-05-14 15:39:18 +00007948if ac_fn_c_try_link "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +00007949 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'
7950
mlcreech636a9952008-05-05 22:52:56 +00007951fi
drhf922ca42015-05-14 15:39:18 +00007952rm -f core conftest.err conftest.$ac_objext \
7953 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00007954 LDFLAGS="$save_LDFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00007955 else
mlcreech636a9952008-05-05 22:52:56 +00007956 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'
7957 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 +00007958 fi
mlcreech636a9952008-05-05 22:52:56 +00007959 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00007960 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7961 hardcode_libdir_separator=:
mlcreech636a9952008-05-05 22:52:56 +00007962 inherit_rpath=yes
a.rottmann9bc8b932004-02-29 15:18:31 +00007963 link_all_deplibs=yes
7964 ;;
7965
vapier7f19c022007-02-17 14:46:31 +00007966 netbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007967 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00007968 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7969 else
7970 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7971 fi
7972 hardcode_libdir_flag_spec='-R$libdir'
7973 hardcode_direct=yes
7974 hardcode_shlibpath_var=no
7975 ;;
7976
7977 newsos6)
7978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7979 hardcode_direct=yes
7980 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7981 hardcode_libdir_separator=:
7982 hardcode_shlibpath_var=no
7983 ;;
7984
mlcreech636a9952008-05-05 22:52:56 +00007985 *nto* | *qnx*)
7986 ;;
7987
a.rottmann9bc8b932004-02-29 15:18:31 +00007988 openbsd*)
mlcreech636a9952008-05-05 22:52:56 +00007989 if test -f /usr/libexec/ld.so; then
7990 hardcode_direct=yes
7991 hardcode_shlibpath_var=no
7992 hardcode_direct_absolute=yes
7993 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7994 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7995 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7996 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7997 export_dynamic_flag_spec='${wl}-E'
7998 else
7999 case $host_os in
8000 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8001 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8002 hardcode_libdir_flag_spec='-R$libdir'
8003 ;;
8004 *)
8005 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8006 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8007 ;;
8008 esac
8009 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008010 else
mlcreech636a9952008-05-05 22:52:56 +00008011 ld_shlibs=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008012 fi
8013 ;;
8014
8015 os2*)
8016 hardcode_libdir_flag_spec='-L$libdir'
8017 hardcode_minus_L=yes
8018 allow_undefined_flag=unsupported
mlcreech636a9952008-05-05 22:52:56 +00008019 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'
8020 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
a.rottmann9bc8b932004-02-29 15:18:31 +00008021 ;;
8022
8023 osf3*)
8024 if test "$GCC" = yes; then
8025 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008026 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 +00008027 else
8028 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008029 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 +00008030 fi
mlcreech636a9952008-05-05 22:52:56 +00008031 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008032 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8033 hardcode_libdir_separator=:
8034 ;;
8035
8036 osf4* | osf5*) # as osf3* with the addition of -msym flag
8037 if test "$GCC" = yes; then
8038 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
mlcreech636a9952008-05-05 22:52:56 +00008039 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 +00008040 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8041 else
8042 allow_undefined_flag=' -expect_unresolved \*'
mlcreech636a9952008-05-05 22:52:56 +00008043 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'
8044 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~
8045 $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 +00008046
8047 # Both c and cxx compiler support -rpath directly
8048 hardcode_libdir_flag_spec='-rpath $libdir'
8049 fi
mlcreech636a9952008-05-05 22:52:56 +00008050 archive_cmds_need_lc='no'
a.rottmann9bc8b932004-02-29 15:18:31 +00008051 hardcode_libdir_separator=:
8052 ;;
8053
a.rottmann9bc8b932004-02-29 15:18:31 +00008054 solaris*)
mlcreech636a9952008-05-05 22:52:56 +00008055 no_undefined_flag=' -z defs'
a.rottmann9bc8b932004-02-29 15:18:31 +00008056 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008057 wlarc='${wl}'
mlcreech636a9952008-05-05 22:52:56 +00008058 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8059 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8060 $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 +00008061 else
mlcreech636a9952008-05-05 22:52:56 +00008062 case `$CC -V 2>&1` in
8063 *"Compilers 5.0"*)
8064 wlarc=''
8065 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8066 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8067 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8068 ;;
8069 *)
8070 wlarc='${wl}'
8071 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8072 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8073 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8074 ;;
8075 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008076 fi
8077 hardcode_libdir_flag_spec='-R$libdir'
8078 hardcode_shlibpath_var=no
8079 case $host_os in
8080 solaris2.[0-5] | solaris2.[0-5].*) ;;
vapier7f19c022007-02-17 14:46:31 +00008081 *)
mlcreech636a9952008-05-05 22:52:56 +00008082 # The compiler driver will combine and reorder linker options,
8083 # but understands `-z linker_flag'. GCC discards it without `$wl',
8084 # but is careful enough not to reorder.
8085 # Supported since Solaris 2.6 (maybe 2.5.1?)
8086 if test "$GCC" = yes; then
8087 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8088 else
8089 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8090 fi
8091 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008092 esac
8093 link_all_deplibs=yes
8094 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008095
a.rottmann9bc8b932004-02-29 15:18:31 +00008096 sunos4*)
8097 if test "x$host_vendor" = xsequent; then
8098 # Use $CC to link under sequent, because it throws in some extra .o
8099 # files that make .init and .fini sections work.
8100 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8101 else
8102 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8103 fi
8104 hardcode_libdir_flag_spec='-L$libdir'
8105 hardcode_direct=yes
8106 hardcode_minus_L=yes
8107 hardcode_shlibpath_var=no
8108 ;;
a.rottmann84e63352003-03-24 09:42:16 +00008109
a.rottmann9bc8b932004-02-29 15:18:31 +00008110 sysv4)
8111 case $host_vendor in
8112 sni)
8113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8114 hardcode_direct=yes # is this really true???
8115 ;;
8116 siemens)
8117 ## LD is ld it makes a PLAMLIB
8118 ## CC just makes a GrossModule.
8119 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8120 reload_cmds='$CC -r -o $output$reload_objs'
8121 hardcode_direct=no
8122 ;;
8123 motorola)
8124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8125 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8126 ;;
8127 esac
8128 runpath_var='LD_RUN_PATH'
8129 hardcode_shlibpath_var=no
8130 ;;
8131
8132 sysv4.3*)
8133 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8134 hardcode_shlibpath_var=no
8135 export_dynamic_flag_spec='-Bexport'
8136 ;;
8137
8138 sysv4*MP*)
8139 if test -d /usr/nec; then
8140 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8141 hardcode_shlibpath_var=no
8142 runpath_var=LD_RUN_PATH
8143 hardcode_runpath_var=yes
8144 ld_shlibs=yes
8145 fi
8146 ;;
8147
mlcreech636a9952008-05-05 22:52:56 +00008148 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
vapier7f19c022007-02-17 14:46:31 +00008149 no_undefined_flag='${wl}-z,text'
8150 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008151 hardcode_shlibpath_var=no
vapier7f19c022007-02-17 14:46:31 +00008152 runpath_var='LD_RUN_PATH'
a.rottmann9bc8b932004-02-29 15:18:31 +00008153
a.rottmann9bc8b932004-02-29 15:18:31 +00008154 if test "$GCC" = yes; then
vapier7f19c022007-02-17 14:46:31 +00008155 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8156 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 +00008157 else
vapier7f19c022007-02-17 14:46:31 +00008158 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8159 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 +00008160 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008161 ;;
8162
vapier7f19c022007-02-17 14:46:31 +00008163 sysv5* | sco3.2v5* | sco5v6*)
8164 # Note: We can NOT use -z defs as we might desire, because we do not
8165 # link with -lc, and that would cause any symbols used from libc to
8166 # always be unresolved, which means just about no library would
8167 # ever link correctly. If we're not using GNU ld we use -z text
8168 # though, which does catch some bad symbols but isn't as heavy-handed
8169 # as -z defs.
8170 no_undefined_flag='${wl}-z,text'
8171 allow_undefined_flag='${wl}-z,nodefs'
8172 archive_cmds_need_lc=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008173 hardcode_shlibpath_var=no
mlcreech636a9952008-05-05 22:52:56 +00008174 hardcode_libdir_flag_spec='${wl}-R,$libdir'
vapier7f19c022007-02-17 14:46:31 +00008175 hardcode_libdir_separator=':'
8176 link_all_deplibs=yes
8177 export_dynamic_flag_spec='${wl}-Bexport'
a.rottmann9bc8b932004-02-29 15:18:31 +00008178 runpath_var='LD_RUN_PATH'
vapier7f19c022007-02-17 14:46:31 +00008179
8180 if test "$GCC" = yes; then
mlcreech636a9952008-05-05 22:52:56 +00008181 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8182 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008183 else
mlcreech636a9952008-05-05 22:52:56 +00008184 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8185 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
vapier7f19c022007-02-17 14:46:31 +00008186 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008187 ;;
8188
8189 uts4*)
8190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8191 hardcode_libdir_flag_spec='-L$libdir'
8192 hardcode_shlibpath_var=no
8193 ;;
8194
8195 *)
8196 ld_shlibs=no
8197 ;;
8198 esac
mlcreech636a9952008-05-05 22:52:56 +00008199
8200 if test x$host_vendor = xsni; then
8201 case $host in
8202 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8203 export_dynamic_flag_spec='${wl}-Blargedynsym'
8204 ;;
8205 esac
8206 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008207 fi
8208
drhf922ca42015-05-14 15:39:18 +00008209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
drh8b727472009-01-19 18:18:40 +00008210$as_echo "$ld_shlibs" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00008211test "$ld_shlibs" = no && can_build_shared=no
drh71eb93e2001-09-28 01:34:43 +00008212
mlcreech636a9952008-05-05 22:52:56 +00008213with_gnu_ld=$with_gnu_ld
8214
8215
danielk197733a14782008-08-04 14:50:05 +00008216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
a.rottmann9bc8b932004-02-29 15:18:31 +00008229#
8230# Do we need to explicitly link libc?
8231#
8232case "x$archive_cmds_need_lc" in
8233x|xyes)
8234 # Assume -lc should be added
8235 archive_cmds_need_lc=yes
8236
8237 if test "$enable_shared" = yes && test "$GCC" = yes; then
8238 case $archive_cmds in
8239 *'~'*)
8240 # FIXME: we may have to deal with multi-command sequences.
8241 ;;
8242 '$CC '*)
8243 # Test whether the compiler implicitly links with -lc since on some
8244 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8245 # to ld, don't add -lc before -lgcc.
drhf922ca42015-05-14 15:39:18 +00008246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
drh8b727472009-01-19 18:18:40 +00008247$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008248 $RM conftest*
8249 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00008250
drhf922ca42015-05-14 15:39:18 +00008251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008252 (eval $ac_compile) 2>&5
8253 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8255 test $ac_status = 0; } 2>conftest.err; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008256 soname=conftest
8257 lib=conftest
8258 libobjs=conftest.$ac_objext
8259 deplibs=
8260 wl=$lt_prog_compiler_wl
vapier7f19c022007-02-17 14:46:31 +00008261 pic_flag=$lt_prog_compiler_pic
a.rottmann9bc8b932004-02-29 15:18:31 +00008262 compiler_flags=-v
8263 linker_flags=-v
8264 verstring=
8265 output_objdir=.
8266 libname=conftest
8267 lt_save_allow_undefined_flag=$allow_undefined_flag
8268 allow_undefined_flag=
drhf922ca42015-05-14 15:39:18 +00008269 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 +00008270 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
a.rottmann9bc8b932004-02-29 15:18:31 +00008271 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00008272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8273 test $ac_status = 0; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008274 then
8275 archive_cmds_need_lc=no
8276 else
8277 archive_cmds_need_lc=yes
8278 fi
8279 allow_undefined_flag=$lt_save_allow_undefined_flag
8280 else
8281 cat conftest.err 1>&5
8282 fi
mlcreech636a9952008-05-05 22:52:56 +00008283 $RM conftest*
drhf922ca42015-05-14 15:39:18 +00008284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
drh8b727472009-01-19 18:18:40 +00008285$as_echo "$archive_cmds_need_lc" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00008286 ;;
8287 esac
drh71eb93e2001-09-28 01:34:43 +00008288 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00008289 ;;
8290esac
drh71eb93e2001-09-28 01:34:43 +00008291
mlcreech636a9952008-05-05 22:52:56 +00008292
danielk197733a14782008-08-04 14:50:05 +00008293
8294
8295
8296
8297
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
drhf922ca42015-05-14 15:39:18 +00008448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
drh8b727472009-01-19 18:18:40 +00008449$as_echo_n "checking dynamic linker characteristics... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00008450
8451if test "$GCC" = yes; then
8452 case $host_os in
8453 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8454 *) lt_awk_arg="/^libraries:/" ;;
8455 esac
8456 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8457 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
8458 # if the path contains ";" then we assume it to be the separator
8459 # otherwise default to the standard path separator (i.e. ":") - it is
8460 # assumed that no part of a normal pathname contains ";" but that should
8461 # okay in the real world where ";" in dirpaths is itself problematic.
8462 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8463 else
8464 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8465 fi
8466 # Ok, now we have the path, separated by spaces, we can step through it
8467 # and add multilib dir if necessary.
8468 lt_tmp_lt_search_path_spec=
8469 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8470 for lt_sys_path in $lt_search_path_spec; do
8471 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8472 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8473 else
8474 test -d "$lt_sys_path" && \
8475 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8476 fi
8477 done
8478 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
8479BEGIN {RS=" "; FS="/|\n";} {
8480 lt_foo="";
8481 lt_count=0;
8482 for (lt_i = NF; lt_i > 0; lt_i--) {
8483 if ($lt_i != "" && $lt_i != ".") {
8484 if ($lt_i == "..") {
8485 lt_count++;
8486 } else {
8487 if (lt_count == 0) {
8488 lt_foo="/" $lt_i lt_foo;
8489 } else {
8490 lt_count--;
8491 }
8492 }
8493 }
8494 }
8495 if (lt_foo != "") { lt_freq[lt_foo]++; }
8496 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8497}'`
8498 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
8499else
8500 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8501fi
drh71eb93e2001-09-28 01:34:43 +00008502library_names_spec=
8503libname_spec='lib$name'
8504soname_spec=
vapier7f19c022007-02-17 14:46:31 +00008505shrext_cmds=".so"
drh71eb93e2001-09-28 01:34:43 +00008506postinstall_cmds=
8507postuninstall_cmds=
8508finish_cmds=
8509finish_eval=
8510shlibpath_var=
8511shlibpath_overrides_runpath=unknown
8512version_type=none
8513dynamic_linker="$host_os ld.so"
8514sys_lib_dlsearch_path_spec="/lib /usr/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008515need_lib_prefix=unknown
8516hardcode_into_libs=no
8517
8518# when you set need_version to no, make sure it does not cause -set_version
8519# flags to be left without arguments
8520need_version=unknown
drh71eb93e2001-09-28 01:34:43 +00008521
8522case $host_os in
8523aix3*)
8524 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008525 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008526 shlibpath_var=LIBPATH
8527
a.rottmann9bc8b932004-02-29 15:18:31 +00008528 # AIX 3 has no versioning support, so we append a major version to the name.
8529 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008530 ;;
8531
mlcreech636a9952008-05-05 22:52:56 +00008532aix[4-9]*)
drh71eb93e2001-09-28 01:34:43 +00008533 version_type=linux
a.rottmann84e63352003-03-24 09:42:16 +00008534 need_lib_prefix=no
8535 need_version=no
8536 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008537 if test "$host_cpu" = ia64; then
8538 # AIX 5 supports IA64
a.rottmann9bc8b932004-02-29 15:18:31 +00008539 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008540 shlibpath_var=LD_LIBRARY_PATH
8541 else
8542 # With GCC up to 2.95.x, collect2 would create an import file
8543 # for dependence libraries. The import file would start with
8544 # the line `#! .'. This would cause the generated library to
8545 # depend on `.', always an invalid library. This was fixed in
8546 # development snapshots of GCC prior to 3.0.
8547 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008548 aix4 | aix4.[01] | aix4.[01].*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008549 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8550 echo ' yes '
mlcreech636a9952008-05-05 22:52:56 +00008551 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008552 :
8553 else
8554 can_build_shared=no
8555 fi
8556 ;;
drh71eb93e2001-09-28 01:34:43 +00008557 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008558 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8559 # soname into executable. Probably we can add versioning support to
8560 # collect2, so additional links can be useful in future.
drh71eb93e2001-09-28 01:34:43 +00008561 if test "$aix_use_runtimelinking" = yes; then
8562 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8563 # instead of lib<name>.a to let people know that these are not
8564 # typical AIX shared libraries.
a.rottmann9bc8b932004-02-29 15:18:31 +00008565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008566 else
8567 # We preserve .a as extension for shared libraries through AIX4.2
8568 # and later when we are not doing run time linking.
8569 library_names_spec='${libname}${release}.a $libname.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008570 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008571 fi
8572 shlibpath_var=LIBPATH
drh71eb93e2001-09-28 01:34:43 +00008573 fi
8574 ;;
8575
8576amigaos*)
mlcreech636a9952008-05-05 22:52:56 +00008577 case $host_cpu in
8578 powerpc)
8579 # Since July 2007 AmigaOS4 officially supports .so libraries.
8580 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
8581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8582 ;;
8583 m68k)
8584 library_names_spec='$libname.ixlibrary $libname.a'
8585 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8586 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'
8587 ;;
8588 esac
drh71eb93e2001-09-28 01:34:43 +00008589 ;;
8590
8591beos*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008592 library_names_spec='${libname}${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008593 dynamic_linker="$host_os ld.so"
8594 shlibpath_var=LIBRARY_PATH
8595 ;;
8596
vapier7f19c022007-02-17 14:46:31 +00008597bsdi[45]*)
drh71eb93e2001-09-28 01:34:43 +00008598 version_type=linux
8599 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8601 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008602 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8603 shlibpath_var=LD_LIBRARY_PATH
8604 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8605 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8606 # the default ld.so.conf also contains /usr/contrib/lib and
8607 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8608 # libtool to hard-code these into programs
8609 ;;
8610
vapier6acb2cf2009-01-28 04:46:28 +00008611cygwin* | mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008612 version_type=windows
vapier7f19c022007-02-17 14:46:31 +00008613 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008614 need_version=no
8615 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008616
drh71eb93e2001-09-28 01:34:43 +00008617 case $GCC,$host_os in
vapier6acb2cf2009-01-28 04:46:28 +00008618 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
drh71eb93e2001-09-28 01:34:43 +00008619 library_names_spec='$libname.dll.a'
a.rottmann9bc8b932004-02-29 15:18:31 +00008620 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8621 postinstall_cmds='base_file=`basename \${file}`~
mlcreech636a9952008-05-05 22:52:56 +00008622 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008623 dldir=$destdir/`dirname \$dlpath`~
8624 test -d \$dldir || mkdir -p \$dldir~
vapier7f19c022007-02-17 14:46:31 +00008625 $install_prog $dir/$dlname \$dldir/$dlname~
mlcreech636a9952008-05-05 22:52:56 +00008626 chmod a+x \$dldir/$dlname~
8627 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
8628 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
8629 fi'
a.rottmann9bc8b932004-02-29 15:18:31 +00008630 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
drh71eb93e2001-09-28 01:34:43 +00008631 dlpath=$dir/\$dldll~
mlcreech636a9952008-05-05 22:52:56 +00008632 $RM \$dlpath'
a.rottmann9bc8b932004-02-29 15:18:31 +00008633 shlibpath_overrides_runpath=yes
8634
8635 case $host_os in
8636 cygwin*)
8637 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8638 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8639 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8640 ;;
vapier6acb2cf2009-01-28 04:46:28 +00008641 mingw* | cegcc*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008642 # MinGW DLLs use traditional 'lib' prefix
8643 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00008644 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8645 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008646 # It is most probably a Windows format PATH printed by
8647 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8648 # path with ; separators, and with drive letters. We can handle the
8649 # drive letters (cygwin fileutils understands them), so leave them,
8650 # especially as we might pass files found there to a mingw objdump,
8651 # which wouldn't understand a cygwinified path. Ahh.
mlcreech636a9952008-05-05 22:52:56 +00008652 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
a.rottmann9bc8b932004-02-29 15:18:31 +00008653 else
mlcreech636a9952008-05-05 22:52:56 +00008654 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
a.rottmann9bc8b932004-02-29 15:18:31 +00008655 fi
8656 ;;
8657 pw32*)
8658 # pw32 DLLs use 'pw' prefix rather than 'lib'
vapier7f19c022007-02-17 14:46:31 +00008659 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 +00008660 ;;
8661 esac
drh71eb93e2001-09-28 01:34:43 +00008662 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008663
drh71eb93e2001-09-28 01:34:43 +00008664 *)
a.rottmann9bc8b932004-02-29 15:18:31 +00008665 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
drh71eb93e2001-09-28 01:34:43 +00008666 ;;
8667 esac
8668 dynamic_linker='Win32 ld.exe'
8669 # FIXME: first we should search . and the directory the executable is in
8670 shlibpath_var=PATH
8671 ;;
8672
8673darwin* | rhapsody*)
8674 dynamic_linker="$host_os dyld"
8675 version_type=darwin
8676 need_lib_prefix=no
8677 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008678 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
a.rottmann9bc8b932004-02-29 15:18:31 +00008679 soname_spec='${libname}${release}${major}$shared_ext'
drh71eb93e2001-09-28 01:34:43 +00008680 shlibpath_overrides_runpath=yes
8681 shlibpath_var=DYLD_LIBRARY_PATH
vapier7f19c022007-02-17 14:46:31 +00008682 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
mlcreech636a9952008-05-05 22:52:56 +00008683
8684 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
a.rottmann9bc8b932004-02-29 15:18:31 +00008685 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8686 ;;
8687
8688dgux*)
8689 version_type=linux
8690 need_lib_prefix=no
8691 need_version=no
8692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8693 soname_spec='${libname}${release}${shared_ext}$major'
8694 shlibpath_var=LD_LIBRARY_PATH
drh71eb93e2001-09-28 01:34:43 +00008695 ;;
8696
a.rottmann84e63352003-03-24 09:42:16 +00008697freebsd1*)
8698 dynamic_linker=no
8699 ;;
8700
vapier7f19c022007-02-17 14:46:31 +00008701freebsd* | dragonfly*)
8702 # DragonFly does not have aout. When/if they implement a new
8703 # versioning mechanism, adjust this.
8704 if test -x /usr/bin/objformat; then
8705 objformat=`/usr/bin/objformat`
8706 else
8707 case $host_os in
8708 freebsd[123]*) objformat=aout ;;
8709 *) objformat=elf ;;
8710 esac
8711 fi
8712 # Handle Gentoo/FreeBSD as it was Linux
8713 case $host_vendor in
8714 gentoo)
8715 version_type=linux ;;
8716 *)
8717 version_type=freebsd-$objformat ;;
8718 esac
8719
drh71eb93e2001-09-28 01:34:43 +00008720 case $version_type in
8721 freebsd-elf*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00008723 need_version=no
8724 need_lib_prefix=no
8725 ;;
8726 freebsd-*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008727 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008728 need_version=yes
8729 ;;
vapier7f19c022007-02-17 14:46:31 +00008730 linux)
8731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8732 soname_spec='${libname}${release}${shared_ext}$major'
8733 need_lib_prefix=no
8734 need_version=no
8735 ;;
drh71eb93e2001-09-28 01:34:43 +00008736 esac
8737 shlibpath_var=LD_LIBRARY_PATH
8738 case $host_os in
8739 freebsd2*)
8740 shlibpath_overrides_runpath=yes
8741 ;;
vapier7f19c022007-02-17 14:46:31 +00008742 freebsd3.[01]* | freebsdelf3.[01]*)
a.rottmann9bc8b932004-02-29 15:18:31 +00008743 shlibpath_overrides_runpath=yes
8744 hardcode_into_libs=yes
8745 ;;
vapier7f19c022007-02-17 14:46:31 +00008746 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8747 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
drh71eb93e2001-09-28 01:34:43 +00008748 shlibpath_overrides_runpath=no
8749 hardcode_into_libs=yes
8750 ;;
mlcreech636a9952008-05-05 22:52:56 +00008751 *) # from 4.6 on, and DragonFly
vapier7f19c022007-02-17 14:46:31 +00008752 shlibpath_overrides_runpath=yes
8753 hardcode_into_libs=yes
8754 ;;
drh71eb93e2001-09-28 01:34:43 +00008755 esac
8756 ;;
8757
8758gnu*)
8759 version_type=linux
8760 need_lib_prefix=no
8761 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8763 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008764 shlibpath_var=LD_LIBRARY_PATH
8765 hardcode_into_libs=yes
8766 ;;
8767
8768hpux9* | hpux10* | hpux11*)
8769 # Give a soname corresponding to the major version so that dld.sl refuses to
8770 # link against other versions.
8771 version_type=sunos
8772 need_lib_prefix=no
8773 need_version=no
vapier7f19c022007-02-17 14:46:31 +00008774 case $host_cpu in
a.rottmann9bc8b932004-02-29 15:18:31 +00008775 ia64*)
vapier7f19c022007-02-17 14:46:31 +00008776 shrext_cmds='.so'
a.rottmann9bc8b932004-02-29 15:18:31 +00008777 hardcode_into_libs=yes
8778 dynamic_linker="$host_os dld.so"
8779 shlibpath_var=LD_LIBRARY_PATH
8780 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8782 soname_spec='${libname}${release}${shared_ext}$major'
8783 if test "X$HPUX_IA64_MODE" = X32; then
8784 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8785 else
8786 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8787 fi
8788 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8789 ;;
mlcreech636a9952008-05-05 22:52:56 +00008790 hppa*64*)
8791 shrext_cmds='.sl'
8792 hardcode_into_libs=yes
8793 dynamic_linker="$host_os dld.sl"
8794 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8795 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8797 soname_spec='${libname}${release}${shared_ext}$major'
8798 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8799 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8800 ;;
8801 *)
vapier7f19c022007-02-17 14:46:31 +00008802 shrext_cmds='.sl'
a.rottmann9bc8b932004-02-29 15:18:31 +00008803 dynamic_linker="$host_os dld.sl"
8804 shlibpath_var=SHLIB_PATH
8805 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8807 soname_spec='${libname}${release}${shared_ext}$major'
8808 ;;
8809 esac
drh71eb93e2001-09-28 01:34:43 +00008810 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8811 postinstall_cmds='chmod 555 $lib'
8812 ;;
8813
mlcreech636a9952008-05-05 22:52:56 +00008814interix[3-9]*)
vapier7f19c022007-02-17 14:46:31 +00008815 version_type=linux
8816 need_lib_prefix=no
8817 need_version=no
8818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8819 soname_spec='${libname}${release}${shared_ext}$major'
8820 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8821 shlibpath_var=LD_LIBRARY_PATH
8822 shlibpath_overrides_runpath=no
8823 hardcode_into_libs=yes
8824 ;;
8825
a.rottmann84e63352003-03-24 09:42:16 +00008826irix5* | irix6* | nonstopux*)
8827 case $host_os in
8828 nonstopux*) version_type=nonstopux ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00008829 *)
8830 if test "$lt_cv_prog_gnu_ld" = yes; then
8831 version_type=linux
8832 else
8833 version_type=irix
8834 fi ;;
a.rottmann84e63352003-03-24 09:42:16 +00008835 esac
drh71eb93e2001-09-28 01:34:43 +00008836 need_lib_prefix=no
8837 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008838 soname_spec='${libname}${release}${shared_ext}$major'
8839 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 +00008840 case $host_os in
a.rottmann84e63352003-03-24 09:42:16 +00008841 irix5* | nonstopux*)
drh71eb93e2001-09-28 01:34:43 +00008842 libsuff= shlibsuff=
8843 ;;
8844 *)
8845 case $LD in # libtool.m4 will add one of these switches to LD
a.rottmann9bc8b932004-02-29 15:18:31 +00008846 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8847 libsuff= shlibsuff= libmagic=32-bit;;
8848 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8849 libsuff=32 shlibsuff=N32 libmagic=N32;;
8850 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8851 libsuff=64 shlibsuff=64 libmagic=64-bit;;
drh71eb93e2001-09-28 01:34:43 +00008852 *) libsuff= shlibsuff= libmagic=never-match;;
8853 esac
8854 ;;
8855 esac
8856 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8857 shlibpath_overrides_runpath=no
8858 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8859 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
a.rottmann9bc8b932004-02-29 15:18:31 +00008860 hardcode_into_libs=yes
drh71eb93e2001-09-28 01:34:43 +00008861 ;;
8862
8863# No shared lib support for Linux oldld, aout, or coff.
a.rottmann9bc8b932004-02-29 15:18:31 +00008864linux*oldld* | linux*aout* | linux*coff*)
drh71eb93e2001-09-28 01:34:43 +00008865 dynamic_linker=no
8866 ;;
8867
8868# This must be Linux ELF.
mlcreech636a9952008-05-05 22:52:56 +00008869linux* | k*bsd*-gnu)
drh71eb93e2001-09-28 01:34:43 +00008870 version_type=linux
8871 need_lib_prefix=no
8872 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8874 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008875 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8876 shlibpath_var=LD_LIBRARY_PATH
8877 shlibpath_overrides_runpath=no
mlcreech636a9952008-05-05 22:52:56 +00008878 # Some binutils ld are patched to set DT_RUNPATH
8879 save_LDFLAGS=$LDFLAGS
8880 save_libdir=$libdir
8881 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
8882 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
drhf922ca42015-05-14 15:39:18 +00008883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008884/* end confdefs.h. */
8885
8886int
8887main ()
8888{
8889
8890 ;
8891 return 0;
8892}
8893_ACEOF
drhf922ca42015-05-14 15:39:18 +00008894if ac_fn_c_try_link "$LINENO"; then :
8895 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
mlcreech636a9952008-05-05 22:52:56 +00008896 shlibpath_overrides_runpath=yes
8897fi
mlcreech636a9952008-05-05 22:52:56 +00008898fi
drhf922ca42015-05-14 15:39:18 +00008899rm -f core conftest.err conftest.$ac_objext \
8900 conftest$ac_exeext conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00008901 LDFLAGS=$save_LDFLAGS
8902 libdir=$save_libdir
8903
drh71eb93e2001-09-28 01:34:43 +00008904 # This implies no fast_install, which is unacceptable.
8905 # Some rework will be needed to allow for fast_install
8906 # before this can be enabled.
8907 hardcode_into_libs=yes
8908
a.rottmann9bc8b932004-02-29 15:18:31 +00008909 # Append ld.so.conf contents to the search path
8910 if test -f /etc/ld.so.conf; then
mlcreech636a9952008-05-05 22:52:56 +00008911 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 +00008912 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
a.rottmann9bc8b932004-02-29 15:18:31 +00008913 fi
8914
drh71eb93e2001-09-28 01:34:43 +00008915 # We used to test for /lib/ld.so.1 and disable shared libraries on
8916 # powerpc, because MkLinux only supported shared libraries with the
8917 # GNU dynamic linker. Since this was broken with cross compilers,
8918 # most powerpc-linux boxes support dynamic linking these days and
8919 # people can always --disable-shared, the test was removed, and we
8920 # assume the GNU/Linux dynamic linker is in use.
8921 dynamic_linker='GNU/Linux ld.so'
8922 ;;
8923
8924netbsd*)
8925 version_type=sunos
8926 need_lib_prefix=no
8927 need_version=no
mlcreech636a9952008-05-05 22:52:56 +00008928 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
a.rottmann9bc8b932004-02-29 15:18:31 +00008929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00008930 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8931 dynamic_linker='NetBSD (a.out) ld.so'
8932 else
a.rottmann9bc8b932004-02-29 15:18:31 +00008933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8934 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008935 dynamic_linker='NetBSD ld.elf_so'
8936 fi
8937 shlibpath_var=LD_LIBRARY_PATH
8938 shlibpath_overrides_runpath=yes
8939 hardcode_into_libs=yes
8940 ;;
8941
8942newsos6)
8943 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00008944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8945 shlibpath_var=LD_LIBRARY_PATH
8946 shlibpath_overrides_runpath=yes
8947 ;;
8948
mlcreech636a9952008-05-05 22:52:56 +00008949*nto* | *qnx*)
8950 version_type=qnx
a.rottmann9bc8b932004-02-29 15:18:31 +00008951 need_lib_prefix=no
8952 need_version=no
8953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8954 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00008955 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008956 shlibpath_overrides_runpath=no
8957 hardcode_into_libs=yes
8958 dynamic_linker='ldqnx.so'
drh71eb93e2001-09-28 01:34:43 +00008959 ;;
8960
drh71eb93e2001-09-28 01:34:43 +00008961openbsd*)
8962 version_type=sunos
vapier7f19c022007-02-17 14:46:31 +00008963 sys_lib_dlsearch_path_spec="/usr/lib"
a.rottmann84e63352003-03-24 09:42:16 +00008964 need_lib_prefix=no
vapier7f19c022007-02-17 14:46:31 +00008965 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8966 case $host_os in
mlcreech636a9952008-05-05 22:52:56 +00008967 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8968 *) need_version=no ;;
vapier7f19c022007-02-17 14:46:31 +00008969 esac
a.rottmann9bc8b932004-02-29 15:18:31 +00008970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8971 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8972 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00008973 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 +00008974 case $host_os in
8975 openbsd2.[89] | openbsd2.[89].*)
8976 shlibpath_overrides_runpath=no
8977 ;;
8978 *)
8979 shlibpath_overrides_runpath=yes
8980 ;;
8981 esac
a.rottmann84e63352003-03-24 09:42:16 +00008982 else
8983 shlibpath_overrides_runpath=yes
8984 fi
drh71eb93e2001-09-28 01:34:43 +00008985 ;;
8986
8987os2*)
8988 libname_spec='$name'
vapier7f19c022007-02-17 14:46:31 +00008989 shrext_cmds=".dll"
drh71eb93e2001-09-28 01:34:43 +00008990 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008991 library_names_spec='$libname${shared_ext} $libname.a'
drh71eb93e2001-09-28 01:34:43 +00008992 dynamic_linker='OS/2 ld.exe'
8993 shlibpath_var=LIBPATH
8994 ;;
8995
8996osf3* | osf4* | osf5*)
8997 version_type=osf
a.rottmann84e63352003-03-24 09:42:16 +00008998 need_lib_prefix=no
a.rottmann9bc8b932004-02-29 15:18:31 +00008999 need_version=no
9000 soname_spec='${libname}${release}${shared_ext}$major'
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
drh71eb93e2001-09-28 01:34:43 +00009002 shlibpath_var=LD_LIBRARY_PATH
9003 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9004 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9005 ;;
9006
mlcreech636a9952008-05-05 22:52:56 +00009007rdos*)
9008 dynamic_linker=no
9009 ;;
9010
drh71eb93e2001-09-28 01:34:43 +00009011solaris*)
9012 version_type=linux
9013 need_lib_prefix=no
9014 need_version=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9016 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009017 shlibpath_var=LD_LIBRARY_PATH
9018 shlibpath_overrides_runpath=yes
9019 hardcode_into_libs=yes
9020 # ldd complains unless libraries are executable
9021 postinstall_cmds='chmod +x $lib'
9022 ;;
9023
9024sunos4*)
9025 version_type=sunos
a.rottmann9bc8b932004-02-29 15:18:31 +00009026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
drh71eb93e2001-09-28 01:34:43 +00009027 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9028 shlibpath_var=LD_LIBRARY_PATH
9029 shlibpath_overrides_runpath=yes
9030 if test "$with_gnu_ld" = yes; then
9031 need_lib_prefix=no
9032 fi
9033 need_version=yes
9034 ;;
9035
vapier7f19c022007-02-17 14:46:31 +00009036sysv4 | sysv4.3*)
drh71eb93e2001-09-28 01:34:43 +00009037 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9039 soname_spec='${libname}${release}${shared_ext}$major'
drh71eb93e2001-09-28 01:34:43 +00009040 shlibpath_var=LD_LIBRARY_PATH
9041 case $host_vendor in
9042 sni)
9043 shlibpath_overrides_runpath=no
a.rottmann84e63352003-03-24 09:42:16 +00009044 need_lib_prefix=no
a.rottmann84e63352003-03-24 09:42:16 +00009045 runpath_var=LD_RUN_PATH
9046 ;;
9047 siemens)
9048 need_lib_prefix=no
drh71eb93e2001-09-28 01:34:43 +00009049 ;;
9050 motorola)
9051 need_lib_prefix=no
9052 need_version=no
9053 shlibpath_overrides_runpath=no
9054 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9055 ;;
9056 esac
9057 ;;
9058
9059sysv4*MP*)
9060 if test -d /usr/nec ;then
9061 version_type=linux
a.rottmann9bc8b932004-02-29 15:18:31 +00009062 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9063 soname_spec='$libname${shared_ext}.$major'
drh71eb93e2001-09-28 01:34:43 +00009064 shlibpath_var=LD_LIBRARY_PATH
9065 fi
9066 ;;
9067
vapier7f19c022007-02-17 14:46:31 +00009068sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9069 version_type=freebsd-elf
9070 need_lib_prefix=no
9071 need_version=no
9072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9073 soname_spec='${libname}${release}${shared_ext}$major'
9074 shlibpath_var=LD_LIBRARY_PATH
mlcreech636a9952008-05-05 22:52:56 +00009075 shlibpath_overrides_runpath=yes
vapier7f19c022007-02-17 14:46:31 +00009076 hardcode_into_libs=yes
9077 if test "$with_gnu_ld" = yes; then
9078 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
vapier7f19c022007-02-17 14:46:31 +00009079 else
9080 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
vapier7f19c022007-02-17 14:46:31 +00009081 case $host_os in
9082 sco3.2v5*)
9083 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9084 ;;
9085 esac
9086 fi
9087 sys_lib_dlsearch_path_spec='/usr/lib'
9088 ;;
9089
mlcreech636a9952008-05-05 22:52:56 +00009090tpf*)
9091 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9092 version_type=linux
9093 need_lib_prefix=no
9094 need_version=no
vapier6acb2cf2009-01-28 04:46:28 +00009095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
mlcreech636a9952008-05-05 22:52:56 +00009096 shlibpath_var=LD_LIBRARY_PATH
9097 shlibpath_overrides_runpath=no
9098 hardcode_into_libs=yes
9099 ;;
9100
a.rottmann9bc8b932004-02-29 15:18:31 +00009101uts4*)
9102 version_type=linux
9103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9104 soname_spec='${libname}${release}${shared_ext}$major'
9105 shlibpath_var=LD_LIBRARY_PATH
9106 ;;
9107
drh71eb93e2001-09-28 01:34:43 +00009108*)
9109 dynamic_linker=no
9110 ;;
9111esac
drhf922ca42015-05-14 15:39:18 +00009112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
drh8b727472009-01-19 18:18:40 +00009113$as_echo "$dynamic_linker" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009114test "$dynamic_linker" = no && can_build_shared=no
9115
vapier7f19c022007-02-17 14:46:31 +00009116variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9117if test "$GCC" = yes; then
9118 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9119fi
9120
mlcreech636a9952008-05-05 22:52:56 +00009121if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9122 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9123fi
9124if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9125 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9126fi
9127
9128
9129
9130
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
drhf922ca42015-05-14 15:39:18 +00009214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
drh8b727472009-01-19 18:18:40 +00009215$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009216hardcode_action=
mlcreech636a9952008-05-05 22:52:56 +00009217if test -n "$hardcode_libdir_flag_spec" ||
9218 test -n "$runpath_var" ||
vapier7f19c022007-02-17 14:46:31 +00009219 test "X$hardcode_automatic" = "Xyes" ; then
a.rottmann84e63352003-03-24 09:42:16 +00009220
mlcreech636a9952008-05-05 22:52:56 +00009221 # We can hardcode non-existent directories.
a.rottmann9bc8b932004-02-29 15:18:31 +00009222 if test "$hardcode_direct" != no &&
9223 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9224 # have to relink, otherwise we might link with an installed library
9225 # when we should be linking with a yet-to-be-installed one
mlcreech636a9952008-05-05 22:52:56 +00009226 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
a.rottmann9bc8b932004-02-29 15:18:31 +00009227 test "$hardcode_minus_L" != no; then
9228 # Linking always hardcodes the temporary library directory.
9229 hardcode_action=relink
9230 else
9231 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9232 hardcode_action=immediate
a.rottmann84e63352003-03-24 09:42:16 +00009233 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009234else
9235 # We cannot hardcode anything, or else we can only hardcode existing
9236 # directories.
9237 hardcode_action=unsupported
9238fi
drhf922ca42015-05-14 15:39:18 +00009239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
drh8b727472009-01-19 18:18:40 +00009240$as_echo "$hardcode_action" >&6; }
a.rottmann84e63352003-03-24 09:42:16 +00009241
mlcreech636a9952008-05-05 22:52:56 +00009242if test "$hardcode_action" = relink ||
9243 test "$inherit_rpath" = yes; then
a.rottmann84e63352003-03-24 09:42:16 +00009244 # Fast installation is not supported
9245 enable_fast_install=no
9246elif test "$shlibpath_overrides_runpath" = yes ||
9247 test "$enable_shared" = no; then
9248 # Fast installation is not necessary
9249 enable_fast_install=needless
9250fi
9251
a.rottmann84e63352003-03-24 09:42:16 +00009252
mlcreech636a9952008-05-05 22:52:56 +00009253
9254
9255
9256
9257 if test "x$enable_dlopen" != xyes; then
drh71eb93e2001-09-28 01:34:43 +00009258 enable_dlopen=unknown
9259 enable_dlopen_self=unknown
9260 enable_dlopen_self_static=unknown
9261else
9262 lt_cv_dlopen=no
9263 lt_cv_dlopen_libs=
9264
9265 case $host_os in
9266 beos*)
9267 lt_cv_dlopen="load_add_on"
9268 lt_cv_dlopen_libs=
9269 lt_cv_dlopen_self=yes
9270 ;;
9271
vapier6acb2cf2009-01-28 04:46:28 +00009272 mingw* | pw32* | cegcc*)
drh71eb93e2001-09-28 01:34:43 +00009273 lt_cv_dlopen="LoadLibrary"
9274 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009275 ;;
drh71eb93e2001-09-28 01:34:43 +00009276
a.rottmann9bc8b932004-02-29 15:18:31 +00009277 cygwin*)
9278 lt_cv_dlopen="dlopen"
9279 lt_cv_dlopen_libs=
mlcreech636a9952008-05-05 22:52:56 +00009280 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009281
9282 darwin*)
9283 # if libdl is installed we need to link against it
drhf922ca42015-05-14 15:39:18 +00009284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009285$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009286if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009287 $as_echo_n "(cached) " >&6
a.rottmann9bc8b932004-02-29 15:18:31 +00009288else
9289 ac_check_lib_save_LIBS=$LIBS
9290LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009292/* end confdefs.h. */
9293
drh8b727472009-01-19 18:18:40 +00009294/* Override any GCC internal prototype to avoid an error.
9295 Use char because int might match the return type of a GCC
9296 builtin and then its argument prototype would still apply. */
a.rottmann9bc8b932004-02-29 15:18:31 +00009297#ifdef __cplusplus
9298extern "C"
9299#endif
a.rottmann9bc8b932004-02-29 15:18:31 +00009300char dlopen ();
9301int
9302main ()
9303{
drh8b727472009-01-19 18:18:40 +00009304return dlopen ();
a.rottmann9bc8b932004-02-29 15:18:31 +00009305 ;
9306 return 0;
9307}
9308_ACEOF
drhf922ca42015-05-14 15:39:18 +00009309if ac_fn_c_try_link "$LINENO"; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009310 ac_cv_lib_dl_dlopen=yes
9311else
drhf922ca42015-05-14 15:39:18 +00009312 ac_cv_lib_dl_dlopen=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009313fi
drhf922ca42015-05-14 15:39:18 +00009314rm -f core conftest.err conftest.$ac_objext \
9315 conftest$ac_exeext conftest.$ac_ext
a.rottmann9bc8b932004-02-29 15:18:31 +00009316LIBS=$ac_check_lib_save_LIBS
9317fi
drhf922ca42015-05-14 15:39:18 +00009318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009319$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009320if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
a.rottmann9bc8b932004-02-29 15:18:31 +00009321 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9322else
9323
9324 lt_cv_dlopen="dyld"
9325 lt_cv_dlopen_libs=
9326 lt_cv_dlopen_self=yes
9327
9328fi
9329
mlcreech636a9952008-05-05 22:52:56 +00009330 ;;
a.rottmann9bc8b932004-02-29 15:18:31 +00009331
drh71eb93e2001-09-28 01:34:43 +00009332 *)
drhf922ca42015-05-14 15:39:18 +00009333 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9334if test "x$ac_cv_func_shl_load" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009335 lt_cv_dlopen="shl_load"
9336else
drhf922ca42015-05-14 15:39:18 +00009337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009338$as_echo_n "checking for shl_load in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009339if ${ac_cv_lib_dld_shl_load+:} false; then :
drh8b727472009-01-19 18:18:40 +00009340 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009341else
9342 ac_check_lib_save_LIBS=$LIBS
9343LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009345/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009346
drh8b727472009-01-19 18:18:40 +00009347/* Override any GCC internal prototype to avoid an error.
9348 Use char because int might match the return type of a GCC
9349 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009350#ifdef __cplusplus
9351extern "C"
9352#endif
drh71eb93e2001-09-28 01:34:43 +00009353char shl_load ();
9354int
9355main ()
9356{
drh8b727472009-01-19 18:18:40 +00009357return shl_load ();
drh71eb93e2001-09-28 01:34:43 +00009358 ;
9359 return 0;
9360}
9361_ACEOF
drhf922ca42015-05-14 15:39:18 +00009362if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009363 ac_cv_lib_dld_shl_load=yes
9364else
drhf922ca42015-05-14 15:39:18 +00009365 ac_cv_lib_dld_shl_load=no
drh71eb93e2001-09-28 01:34:43 +00009366fi
drhf922ca42015-05-14 15:39:18 +00009367rm -f core conftest.err conftest.$ac_objext \
9368 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009369LIBS=$ac_check_lib_save_LIBS
9370fi
drhf922ca42015-05-14 15:39:18 +00009371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
drh8b727472009-01-19 18:18:40 +00009372$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
drhf922ca42015-05-14 15:39:18 +00009373if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009374 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
drh71eb93e2001-09-28 01:34:43 +00009375else
drhf922ca42015-05-14 15:39:18 +00009376 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9377if test "x$ac_cv_func_dlopen" = xyes; then :
a.rottmann84e63352003-03-24 09:42:16 +00009378 lt_cv_dlopen="dlopen"
9379else
drhf922ca42015-05-14 15:39:18 +00009380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
drh8b727472009-01-19 18:18:40 +00009381$as_echo_n "checking for dlopen in -ldl... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009382if ${ac_cv_lib_dl_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009383 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009384else
9385 ac_check_lib_save_LIBS=$LIBS
9386LIBS="-ldl $LIBS"
drhf922ca42015-05-14 15:39:18 +00009387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009388/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009389
drh8b727472009-01-19 18:18:40 +00009390/* Override any GCC internal prototype to avoid an error.
9391 Use char because int might match the return type of a GCC
9392 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009393#ifdef __cplusplus
9394extern "C"
9395#endif
drh71eb93e2001-09-28 01:34:43 +00009396char dlopen ();
9397int
9398main ()
9399{
drh8b727472009-01-19 18:18:40 +00009400return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009401 ;
9402 return 0;
9403}
9404_ACEOF
drhf922ca42015-05-14 15:39:18 +00009405if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009406 ac_cv_lib_dl_dlopen=yes
9407else
drhf922ca42015-05-14 15:39:18 +00009408 ac_cv_lib_dl_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009409fi
drhf922ca42015-05-14 15:39:18 +00009410rm -f core conftest.err conftest.$ac_objext \
9411 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009412LIBS=$ac_check_lib_save_LIBS
9413fi
drhf922ca42015-05-14 15:39:18 +00009414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009415$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009416if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009417 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9418else
drhf922ca42015-05-14 15:39:18 +00009419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
drh8b727472009-01-19 18:18:40 +00009420$as_echo_n "checking for dlopen in -lsvld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009421if ${ac_cv_lib_svld_dlopen+:} false; then :
drh8b727472009-01-19 18:18:40 +00009422 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009423else
9424 ac_check_lib_save_LIBS=$LIBS
9425LIBS="-lsvld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009427/* end confdefs.h. */
drh71eb93e2001-09-28 01:34:43 +00009428
drh8b727472009-01-19 18:18:40 +00009429/* Override any GCC internal prototype to avoid an error.
9430 Use char because int might match the return type of a GCC
9431 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +00009432#ifdef __cplusplus
9433extern "C"
9434#endif
drh71eb93e2001-09-28 01:34:43 +00009435char dlopen ();
9436int
9437main ()
9438{
drh8b727472009-01-19 18:18:40 +00009439return dlopen ();
drh71eb93e2001-09-28 01:34:43 +00009440 ;
9441 return 0;
9442}
9443_ACEOF
drhf922ca42015-05-14 15:39:18 +00009444if ac_fn_c_try_link "$LINENO"; then :
drh71eb93e2001-09-28 01:34:43 +00009445 ac_cv_lib_svld_dlopen=yes
9446else
drhf922ca42015-05-14 15:39:18 +00009447 ac_cv_lib_svld_dlopen=no
drh71eb93e2001-09-28 01:34:43 +00009448fi
drhf922ca42015-05-14 15:39:18 +00009449rm -f core conftest.err conftest.$ac_objext \
9450 conftest$ac_exeext conftest.$ac_ext
drh71eb93e2001-09-28 01:34:43 +00009451LIBS=$ac_check_lib_save_LIBS
9452fi
drhf922ca42015-05-14 15:39:18 +00009453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
drh8b727472009-01-19 18:18:40 +00009454$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
drhf922ca42015-05-14 15:39:18 +00009455if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
drh71eb93e2001-09-28 01:34:43 +00009456 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
a.rottmann84e63352003-03-24 09:42:16 +00009457else
drhf922ca42015-05-14 15:39:18 +00009458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
drh8b727472009-01-19 18:18:40 +00009459$as_echo_n "checking for dld_link in -ldld... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009460if ${ac_cv_lib_dld_dld_link+:} false; then :
drh8b727472009-01-19 18:18:40 +00009461 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +00009462else
9463 ac_check_lib_save_LIBS=$LIBS
9464LIBS="-ldld $LIBS"
drhf922ca42015-05-14 15:39:18 +00009465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009466/* end confdefs.h. */
9467
drh8b727472009-01-19 18:18:40 +00009468/* Override any GCC internal prototype to avoid an error.
9469 Use char because int might match the return type of a GCC
9470 builtin and then its argument prototype would still apply. */
a.rottmann84e63352003-03-24 09:42:16 +00009471#ifdef __cplusplus
9472extern "C"
9473#endif
a.rottmann84e63352003-03-24 09:42:16 +00009474char dld_link ();
9475int
9476main ()
9477{
drh8b727472009-01-19 18:18:40 +00009478return dld_link ();
a.rottmann84e63352003-03-24 09:42:16 +00009479 ;
9480 return 0;
9481}
9482_ACEOF
drhf922ca42015-05-14 15:39:18 +00009483if ac_fn_c_try_link "$LINENO"; then :
a.rottmann84e63352003-03-24 09:42:16 +00009484 ac_cv_lib_dld_dld_link=yes
9485else
drhf922ca42015-05-14 15:39:18 +00009486 ac_cv_lib_dld_dld_link=no
drh71eb93e2001-09-28 01:34:43 +00009487fi
drhf922ca42015-05-14 15:39:18 +00009488rm -f core conftest.err conftest.$ac_objext \
9489 conftest$ac_exeext conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +00009490LIBS=$ac_check_lib_save_LIBS
9491fi
drhf922ca42015-05-14 15:39:18 +00009492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
drh8b727472009-01-19 18:18:40 +00009493$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
drhf922ca42015-05-14 15:39:18 +00009494if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
mlcreech636a9952008-05-05 22:52:56 +00009495 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
a.rottmann84e63352003-03-24 09:42:16 +00009496fi
9497
drh71eb93e2001-09-28 01:34:43 +00009498
9499fi
9500
drh71eb93e2001-09-28 01:34:43 +00009501
9502fi
9503
a.rottmann84e63352003-03-24 09:42:16 +00009504
9505fi
9506
9507
9508fi
9509
9510
drh71eb93e2001-09-28 01:34:43 +00009511fi
9512
9513 ;;
9514 esac
9515
9516 if test "x$lt_cv_dlopen" != xno; then
9517 enable_dlopen=yes
9518 else
9519 enable_dlopen=no
9520 fi
9521
9522 case $lt_cv_dlopen in
9523 dlopen)
9524 save_CPPFLAGS="$CPPFLAGS"
a.rottmann9bc8b932004-02-29 15:18:31 +00009525 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
drh71eb93e2001-09-28 01:34:43 +00009526
9527 save_LDFLAGS="$LDFLAGS"
vapier7f19c022007-02-17 14:46:31 +00009528 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
drh71eb93e2001-09-28 01:34:43 +00009529
9530 save_LIBS="$LIBS"
9531 LIBS="$lt_cv_dlopen_libs $LIBS"
9532
drhf922ca42015-05-14 15:39:18 +00009533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009534$as_echo_n "checking whether a program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009535if ${lt_cv_dlopen_self+:} false; then :
drh8b727472009-01-19 18:18:40 +00009536 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009537else
9538 if test "$cross_compiling" = yes; then :
9539 lt_cv_dlopen_self=cross
9540else
a.rottmann9bc8b932004-02-29 15:18:31 +00009541 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009542 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009543 cat > conftest.$ac_ext <<_LT_EOF
drh5e18d402016-05-03 13:14:18 +00009544#line 9544 "configure"
drh71eb93e2001-09-28 01:34:43 +00009545#include "confdefs.h"
9546
9547#if HAVE_DLFCN_H
9548#include <dlfcn.h>
9549#endif
9550
9551#include <stdio.h>
9552
9553#ifdef RTLD_GLOBAL
9554# define LT_DLGLOBAL RTLD_GLOBAL
9555#else
9556# ifdef DL_GLOBAL
9557# define LT_DLGLOBAL DL_GLOBAL
9558# else
9559# define LT_DLGLOBAL 0
9560# endif
9561#endif
9562
9563/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9564 find out it does not work in some platform. */
9565#ifndef LT_DLLAZY_OR_NOW
9566# ifdef RTLD_LAZY
9567# define LT_DLLAZY_OR_NOW RTLD_LAZY
9568# else
9569# ifdef DL_LAZY
9570# define LT_DLLAZY_OR_NOW DL_LAZY
9571# else
9572# ifdef RTLD_NOW
9573# define LT_DLLAZY_OR_NOW RTLD_NOW
9574# else
9575# ifdef DL_NOW
9576# define LT_DLLAZY_OR_NOW DL_NOW
9577# else
9578# define LT_DLLAZY_OR_NOW 0
9579# endif
9580# endif
9581# endif
9582# endif
9583#endif
9584
drh71eb93e2001-09-28 01:34:43 +00009585void fnord() { int i=42;}
9586int main ()
9587{
9588 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9589 int status = $lt_dlunknown;
9590
9591 if (self)
9592 {
9593 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9594 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9595 /* dlclose (self); */
9596 }
vapier7f19c022007-02-17 14:46:31 +00009597 else
9598 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009599
vapier6acb2cf2009-01-28 04:46:28 +00009600 return status;
drh71eb93e2001-09-28 01:34:43 +00009601}
mlcreech636a9952008-05-05 22:52:56 +00009602_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009604 (eval $ac_link) 2>&5
9605 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9607 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009608 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009609 lt_status=$?
9610 case x$lt_status in
9611 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9612 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009613 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
drh71eb93e2001-09-28 01:34:43 +00009614 esac
9615 else :
9616 # compilation failed
9617 lt_cv_dlopen_self=no
9618 fi
9619fi
9620rm -fr conftest*
9621
a.rottmann84e63352003-03-24 09:42:16 +00009622
drh71eb93e2001-09-28 01:34:43 +00009623fi
drhf922ca42015-05-14 15:39:18 +00009624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
drh8b727472009-01-19 18:18:40 +00009625$as_echo "$lt_cv_dlopen_self" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009626
9627 if test "x$lt_cv_dlopen_self" = xyes; then
vapier7f19c022007-02-17 14:46:31 +00009628 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
drhf922ca42015-05-14 15:39:18 +00009629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
drh8b727472009-01-19 18:18:40 +00009630$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009631if ${lt_cv_dlopen_self_static+:} false; then :
drh8b727472009-01-19 18:18:40 +00009632 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009633else
9634 if test "$cross_compiling" = yes; then :
9635 lt_cv_dlopen_self_static=cross
9636else
a.rottmann9bc8b932004-02-29 15:18:31 +00009637 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
drh71eb93e2001-09-28 01:34:43 +00009638 lt_status=$lt_dlunknown
mlcreech636a9952008-05-05 22:52:56 +00009639 cat > conftest.$ac_ext <<_LT_EOF
drh5e18d402016-05-03 13:14:18 +00009640#line 9640 "configure"
drh71eb93e2001-09-28 01:34:43 +00009641#include "confdefs.h"
9642
9643#if HAVE_DLFCN_H
9644#include <dlfcn.h>
9645#endif
9646
9647#include <stdio.h>
9648
9649#ifdef RTLD_GLOBAL
9650# define LT_DLGLOBAL RTLD_GLOBAL
9651#else
9652# ifdef DL_GLOBAL
9653# define LT_DLGLOBAL DL_GLOBAL
9654# else
9655# define LT_DLGLOBAL 0
9656# endif
9657#endif
9658
9659/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9660 find out it does not work in some platform. */
9661#ifndef LT_DLLAZY_OR_NOW
9662# ifdef RTLD_LAZY
9663# define LT_DLLAZY_OR_NOW RTLD_LAZY
9664# else
9665# ifdef DL_LAZY
9666# define LT_DLLAZY_OR_NOW DL_LAZY
9667# else
9668# ifdef RTLD_NOW
9669# define LT_DLLAZY_OR_NOW RTLD_NOW
9670# else
9671# ifdef DL_NOW
9672# define LT_DLLAZY_OR_NOW DL_NOW
9673# else
9674# define LT_DLLAZY_OR_NOW 0
9675# endif
9676# endif
9677# endif
9678# endif
9679#endif
9680
drh71eb93e2001-09-28 01:34:43 +00009681void fnord() { int i=42;}
9682int main ()
9683{
9684 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9685 int status = $lt_dlunknown;
9686
9687 if (self)
9688 {
9689 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9690 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9691 /* dlclose (self); */
9692 }
vapier7f19c022007-02-17 14:46:31 +00009693 else
9694 puts (dlerror ());
drh71eb93e2001-09-28 01:34:43 +00009695
vapier6acb2cf2009-01-28 04:46:28 +00009696 return status;
drh71eb93e2001-09-28 01:34:43 +00009697}
mlcreech636a9952008-05-05 22:52:56 +00009698_LT_EOF
drhf922ca42015-05-14 15:39:18 +00009699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
drh71eb93e2001-09-28 01:34:43 +00009700 (eval $ac_link) 2>&5
9701 ac_status=$?
drhf922ca42015-05-14 15:39:18 +00009702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9703 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
vapier7f19c022007-02-17 14:46:31 +00009704 (./conftest; exit; ) >&5 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +00009705 lt_status=$?
9706 case x$lt_status in
9707 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9708 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
vapier7f19c022007-02-17 14:46:31 +00009709 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
drh71eb93e2001-09-28 01:34:43 +00009710 esac
9711 else :
9712 # compilation failed
9713 lt_cv_dlopen_self_static=no
9714 fi
9715fi
9716rm -fr conftest*
9717
a.rottmann84e63352003-03-24 09:42:16 +00009718
drh71eb93e2001-09-28 01:34:43 +00009719fi
drhf922ca42015-05-14 15:39:18 +00009720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
drh8b727472009-01-19 18:18:40 +00009721$as_echo "$lt_cv_dlopen_self_static" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009722 fi
9723
9724 CPPFLAGS="$save_CPPFLAGS"
9725 LDFLAGS="$save_LDFLAGS"
9726 LIBS="$save_LIBS"
9727 ;;
9728 esac
9729
9730 case $lt_cv_dlopen_self in
9731 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9732 *) enable_dlopen_self=unknown ;;
9733 esac
9734
9735 case $lt_cv_dlopen_self_static in
9736 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9737 *) enable_dlopen_self_static=unknown ;;
9738 esac
9739fi
9740
drh71eb93e2001-09-28 01:34:43 +00009741
drh71eb93e2001-09-28 01:34:43 +00009742
a.rottmann9bc8b932004-02-29 15:18:31 +00009743
a.rottmann9bc8b932004-02-29 15:18:31 +00009744
mlcreech636a9952008-05-05 22:52:56 +00009745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757striplib=
9758old_striplib=
drhf922ca42015-05-14 15:39:18 +00009759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
drh8b727472009-01-19 18:18:40 +00009760$as_echo_n "checking whether stripping libraries is possible... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009761if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
9762 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9763 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
drhf922ca42015-05-14 15:39:18 +00009764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009765$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009766else
9767# FIXME - insert some real tests, host_os isn't really good enough
9768 case $host_os in
9769 darwin*)
9770 if test -n "$STRIP" ; then
9771 striplib="$STRIP -x"
9772 old_striplib="$STRIP -S"
drhf922ca42015-05-14 15:39:18 +00009773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +00009774$as_echo "yes" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009775 else
drhf922ca42015-05-14 15:39:18 +00009776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009777$as_echo "no" >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009778 fi
a.rottmann84e63352003-03-24 09:42:16 +00009779 ;;
mlcreech636a9952008-05-05 22:52:56 +00009780 *)
drhf922ca42015-05-14 15:39:18 +00009781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +00009782$as_echo "no" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009783 ;;
9784 esac
mlcreech636a9952008-05-05 22:52:56 +00009785fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009786
a.rottmann9bc8b932004-02-29 15:18:31 +00009787
drh71eb93e2001-09-28 01:34:43 +00009788
drh71eb93e2001-09-28 01:34:43 +00009789
a.rottmann84e63352003-03-24 09:42:16 +00009790
drh71eb93e2001-09-28 01:34:43 +00009791
drh71eb93e2001-09-28 01:34:43 +00009792
a.rottmann9bc8b932004-02-29 15:18:31 +00009793
drh71eb93e2001-09-28 01:34:43 +00009794
drh71eb93e2001-09-28 01:34:43 +00009795
drh71eb93e2001-09-28 01:34:43 +00009796
drh71eb93e2001-09-28 01:34:43 +00009797
mlcreech636a9952008-05-05 22:52:56 +00009798 # Report which library types will actually be built
drhf922ca42015-05-14 15:39:18 +00009799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009800$as_echo_n "checking if libtool supports shared libraries... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
drh8b727472009-01-19 18:18:40 +00009802$as_echo "$can_build_shared" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009803
drhf922ca42015-05-14 15:39:18 +00009804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
drh8b727472009-01-19 18:18:40 +00009805$as_echo_n "checking whether to build shared libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009806 test "$can_build_shared" = "no" && enable_shared=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009807
mlcreech636a9952008-05-05 22:52:56 +00009808 # On AIX, shared libraries and static libraries use the same namespace, and
9809 # are all built from PIC.
drh71eb93e2001-09-28 01:34:43 +00009810 case $host_os in
9811 aix3*)
vapier7f19c022007-02-17 14:46:31 +00009812 test "$enable_shared" = yes && enable_static=no
mlcreech636a9952008-05-05 22:52:56 +00009813 if test -n "$RANLIB"; then
9814 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9815 postinstall_cmds='$RANLIB $lib'
vapier7f19c022007-02-17 14:46:31 +00009816 fi
9817 ;;
9818
mlcreech636a9952008-05-05 22:52:56 +00009819 aix[4-9]*)
9820 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9821 test "$enable_shared" = yes && enable_static=no
a.rottmann9bc8b932004-02-29 15:18:31 +00009822 fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009823 ;;
9824 esac
drhf922ca42015-05-14 15:39:18 +00009825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
drh8b727472009-01-19 18:18:40 +00009826$as_echo "$enable_shared" >&6; }
a.rottmann9bc8b932004-02-29 15:18:31 +00009827
drhf922ca42015-05-14 15:39:18 +00009828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
drh8b727472009-01-19 18:18:40 +00009829$as_echo_n "checking whether to build static libraries... " >&6; }
mlcreech636a9952008-05-05 22:52:56 +00009830 # Make sure either enable_shared or enable_static is yes.
9831 test "$enable_shared" = yes || enable_static=yes
drhf922ca42015-05-14 15:39:18 +00009832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
drh8b727472009-01-19 18:18:40 +00009833$as_echo "$enable_static" >&6; }
vapier7f19c022007-02-17 14:46:31 +00009834
a.rottmann9bc8b932004-02-29 15:18:31 +00009835
a.rottmann9bc8b932004-02-29 15:18:31 +00009836
a.rottmann9bc8b932004-02-29 15:18:31 +00009837
vapier7f19c022007-02-17 14:46:31 +00009838fi
a.rottmann9bc8b932004-02-29 15:18:31 +00009839ac_ext=c
9840ac_cpp='$CPP $CPPFLAGS'
9841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9843ac_compiler_gnu=$ac_cv_c_compiler_gnu
9844
9845CC="$lt_save_CC"
9846
a.rottmann9bc8b932004-02-29 15:18:31 +00009847
a.rottmann9bc8b932004-02-29 15:18:31 +00009848
9849
a.rottmann9bc8b932004-02-29 15:18:31 +00009850
a.rottmann9bc8b932004-02-29 15:18:31 +00009851
a.rottmann9bc8b932004-02-29 15:18:31 +00009852
a.rottmann9bc8b932004-02-29 15:18:31 +00009853
a.rottmann9bc8b932004-02-29 15:18:31 +00009854
a.rottmann9bc8b932004-02-29 15:18:31 +00009855
vapier7f19c022007-02-17 14:46:31 +00009856
a.rottmann9bc8b932004-02-29 15:18:31 +00009857
9858
drh8b727472009-01-19 18:18:40 +00009859 ac_config_commands="$ac_config_commands libtool"
vapier7f19c022007-02-17 14:46:31 +00009860
vapier7f19c022007-02-17 14:46:31 +00009861
9862
vapier7f19c022007-02-17 14:46:31 +00009863
mlcreech636a9952008-05-05 22:52:56 +00009864# Only expand once:
a.rottmann9bc8b932004-02-29 15:18:31 +00009865
9866
drh71eb93e2001-09-28 01:34:43 +00009867# Find a good install program. We prefer a C program (faster),
9868# so one script is as good as another. But avoid the broken or
9869# incompatible versions:
9870# SysV /etc/install, /usr/sbin/install
9871# SunOS /usr/etc/install
9872# IRIX /sbin/install
9873# AIX /bin/install
9874# AmigaOS /C/install, which installs bootblocks on floppy discs
9875# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9876# AFS /usr/afsws/bin/install, which mishandles nonexistent args
9877# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
a.rottmann964dbb12004-02-26 19:47:42 +00009878# OS/2's system install, which has a completely different semantic
drh71eb93e2001-09-28 01:34:43 +00009879# ./install, which can be erroneously created by make from ./install.sh.
drh8b727472009-01-19 18:18:40 +00009880# Reject install programs that cannot install multiple files.
drhf922ca42015-05-14 15:39:18 +00009881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
drh8b727472009-01-19 18:18:40 +00009882$as_echo_n "checking for a BSD-compatible install... " >&6; }
drh71eb93e2001-09-28 01:34:43 +00009883if test -z "$INSTALL"; then
drhf922ca42015-05-14 15:39:18 +00009884if ${ac_cv_path_install+:} false; then :
drh8b727472009-01-19 18:18:40 +00009885 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +00009886else
a.rottmann84e63352003-03-24 09:42:16 +00009887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9888for as_dir in $PATH
9889do
9890 IFS=$as_save_IFS
9891 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +00009892 # Account for people who put trailing slashes in PATH elements.
9893case $as_dir/ in #((
9894 ./ | .// | /[cC]/* | \
a.rottmann84e63352003-03-24 09:42:16 +00009895 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
drhf922ca42015-05-14 15:39:18 +00009896 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
a.rottmann84e63352003-03-24 09:42:16 +00009897 /usr/ucb/* ) ;;
9898 *)
9899 # OSF1 and SCO ODT 3.0 have their own names for install.
9900 # Don't use installbsd from OSF since it installs stuff as root
9901 # by default.
9902 for ac_prog in ginstall scoinst install; do
9903 for ac_exec_ext in '' $ac_executable_extensions; do
drhf922ca42015-05-14 15:39:18 +00009904 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
a.rottmann964dbb12004-02-26 19:47:42 +00009905 if test $ac_prog = install &&
9906 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9907 # AIX install. It has an incompatible calling convention.
9908 :
9909 elif test $ac_prog = install &&
9910 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
9911 # program-specific install script used by HP pwplus--don't use.
9912 :
9913 else
drh8b727472009-01-19 18:18:40 +00009914 rm -rf conftest.one conftest.two conftest.dir
9915 echo one > conftest.one
9916 echo two > conftest.two
9917 mkdir conftest.dir
9918 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
9919 test -s conftest.one && test -s conftest.two &&
9920 test -s conftest.dir/conftest.one &&
9921 test -s conftest.dir/conftest.two
9922 then
9923 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
9924 break 3
9925 fi
a.rottmann964dbb12004-02-26 19:47:42 +00009926 fi
9927 fi
drh71eb93e2001-09-28 01:34:43 +00009928 done
a.rottmann84e63352003-03-24 09:42:16 +00009929 done
9930 ;;
9931esac
a.rottmann84e63352003-03-24 09:42:16 +00009932
drhf922ca42015-05-14 15:39:18 +00009933 done
drh8b727472009-01-19 18:18:40 +00009934IFS=$as_save_IFS
9935
9936rm -rf conftest.one conftest.two conftest.dir
drh71eb93e2001-09-28 01:34:43 +00009937
9938fi
9939 if test "${ac_cv_path_install+set}" = set; then
9940 INSTALL=$ac_cv_path_install
9941 else
drh8b727472009-01-19 18:18:40 +00009942 # As a last resort, use the slow shell script. Don't cache a
9943 # value for INSTALL within a source directory, because that will
drh71eb93e2001-09-28 01:34:43 +00009944 # break other packages using the cache if that directory is
drh8b727472009-01-19 18:18:40 +00009945 # removed, or if the value is a relative name.
drh71eb93e2001-09-28 01:34:43 +00009946 INSTALL=$ac_install_sh
9947 fi
9948fi
drhf922ca42015-05-14 15:39:18 +00009949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
drh8b727472009-01-19 18:18:40 +00009950$as_echo "$INSTALL" >&6; }
drh71eb93e2001-09-28 01:34:43 +00009951
9952# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9953# It thinks the first close brace ends the variable substitution.
9954test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9955
9956test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
9957
9958test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9959
a.rottmann84e63352003-03-24 09:42:16 +00009960
drh75897232000-05-29 14:26:00 +00009961#########
mlcreech636a9952008-05-05 22:52:56 +00009962# Enable large file support (if special flags are necessary)
9963#
drh8b727472009-01-19 18:18:40 +00009964# Check whether --enable-largefile was given.
drhf922ca42015-05-14 15:39:18 +00009965if test "${enable_largefile+set}" = set; then :
drh8b727472009-01-19 18:18:40 +00009966 enableval=$enable_largefile;
9967fi
mlcreech636a9952008-05-05 22:52:56 +00009968
9969if test "$enable_largefile" != no; then
9970
drhf922ca42015-05-14 15:39:18 +00009971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
drh8b727472009-01-19 18:18:40 +00009972$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +00009973if ${ac_cv_sys_largefile_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +00009974 $as_echo_n "(cached) " >&6
mlcreechb87057f2008-03-06 07:19:20 +00009975else
mlcreech636a9952008-05-05 22:52:56 +00009976 ac_cv_sys_largefile_CC=no
9977 if test "$GCC" != yes; then
9978 ac_save_CC=$CC
9979 while :; do
drh8b727472009-01-19 18:18:40 +00009980 # IRIX 6.2 and later do not support large files by default,
9981 # so use the C compiler's -n32 option if that helps.
drhf922ca42015-05-14 15:39:18 +00009982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +00009983/* end confdefs.h. */
9984#include <sys/types.h>
9985 /* Check that off_t can represent 2**63 - 1 correctly.
9986 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9987 since some C++ compilers masquerading as C compilers
9988 incorrectly reject 9223372036854775807. */
9989#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9990 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9991 && LARGE_OFF_T % 2147483647 == 1)
9992 ? 1 : -1];
9993int
9994main ()
9995{
9996
9997 ;
9998 return 0;
9999}
10000_ACEOF
drhf922ca42015-05-14 15:39:18 +000010001 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010002 break
mlcreech636a9952008-05-05 22:52:56 +000010003fi
drh8b727472009-01-19 18:18:40 +000010004rm -f core conftest.err conftest.$ac_objext
10005 CC="$CC -n32"
drhf922ca42015-05-14 15:39:18 +000010006 if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010007 ac_cv_sys_largefile_CC=' -n32'; break
mlcreech636a9952008-05-05 22:52:56 +000010008fi
drh8b727472009-01-19 18:18:40 +000010009rm -f core conftest.err conftest.$ac_objext
mlcreech636a9952008-05-05 22:52:56 +000010010 break
10011 done
10012 CC=$ac_save_CC
10013 rm -f conftest.$ac_ext
10014 fi
10015fi
drhf922ca42015-05-14 15:39:18 +000010016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
drh8b727472009-01-19 18:18:40 +000010017$as_echo "$ac_cv_sys_largefile_CC" >&6; }
mlcreech636a9952008-05-05 22:52:56 +000010018 if test "$ac_cv_sys_largefile_CC" != no; then
10019 CC=$CC$ac_cv_sys_largefile_CC
10020 fi
10021
drhf922ca42015-05-14 15:39:18 +000010022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010023$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010024if ${ac_cv_sys_file_offset_bits+:} false; then :
drh8b727472009-01-19 18:18:40 +000010025 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010026else
10027 while :; do
drhf922ca42015-05-14 15:39:18 +000010028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreechb87057f2008-03-06 07:19:20 +000010029/* end confdefs.h. */
mlcreech636a9952008-05-05 22:52:56 +000010030#include <sys/types.h>
10031 /* Check that off_t can represent 2**63 - 1 correctly.
10032 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10033 since some C++ compilers masquerading as C compilers
10034 incorrectly reject 9223372036854775807. */
10035#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10036 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10037 && LARGE_OFF_T % 2147483647 == 1)
10038 ? 1 : -1];
mlcreechb87057f2008-03-06 07:19:20 +000010039int
10040main ()
10041{
mlcreech636a9952008-05-05 22:52:56 +000010042
mlcreechb87057f2008-03-06 07:19:20 +000010043 ;
10044 return 0;
10045}
10046_ACEOF
drhf922ca42015-05-14 15:39:18 +000010047if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010048 ac_cv_sys_file_offset_bits=no; break
mlcreech636a9952008-05-05 22:52:56 +000010049fi
drh8b727472009-01-19 18:18:40 +000010050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010052/* end confdefs.h. */
10053#define _FILE_OFFSET_BITS 64
10054#include <sys/types.h>
10055 /* Check that off_t can represent 2**63 - 1 correctly.
10056 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10057 since some C++ compilers masquerading as C compilers
10058 incorrectly reject 9223372036854775807. */
10059#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10060 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10061 && LARGE_OFF_T % 2147483647 == 1)
10062 ? 1 : -1];
10063int
10064main ()
10065{
10066
10067 ;
10068 return 0;
10069}
10070_ACEOF
drhf922ca42015-05-14 15:39:18 +000010071if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010072 ac_cv_sys_file_offset_bits=64; break
mlcreech636a9952008-05-05 22:52:56 +000010073fi
drh8b727472009-01-19 18:18:40 +000010074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10075 ac_cv_sys_file_offset_bits=unknown
mlcreech636a9952008-05-05 22:52:56 +000010076 break
10077done
10078fi
drhf922ca42015-05-14 15:39:18 +000010079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
drh8b727472009-01-19 18:18:40 +000010080$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10081case $ac_cv_sys_file_offset_bits in #(
10082 no | unknown) ;;
10083 *)
mlcreech636a9952008-05-05 22:52:56 +000010084cat >>confdefs.h <<_ACEOF
10085#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10086_ACEOF
drh8b727472009-01-19 18:18:40 +000010087;;
10088esac
10089rm -rf conftest*
10090 if test $ac_cv_sys_file_offset_bits = unknown; then
drhf922ca42015-05-14 15:39:18 +000010091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
drh8b727472009-01-19 18:18:40 +000010092$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010093if ${ac_cv_sys_large_files+:} false; then :
drh8b727472009-01-19 18:18:40 +000010094 $as_echo_n "(cached) " >&6
mlcreech636a9952008-05-05 22:52:56 +000010095else
10096 while :; do
drhf922ca42015-05-14 15:39:18 +000010097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010098/* end confdefs.h. */
10099#include <sys/types.h>
10100 /* Check that off_t can represent 2**63 - 1 correctly.
10101 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10102 since some C++ compilers masquerading as C compilers
10103 incorrectly reject 9223372036854775807. */
10104#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10105 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10106 && LARGE_OFF_T % 2147483647 == 1)
10107 ? 1 : -1];
10108int
10109main ()
10110{
10111
10112 ;
10113 return 0;
10114}
10115_ACEOF
drhf922ca42015-05-14 15:39:18 +000010116if ac_fn_c_try_compile "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000010117 ac_cv_sys_large_files=no; break
mlcreech636a9952008-05-05 22:52:56 +000010118fi
drh8b727472009-01-19 18:18:40 +000010119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
drhf922ca42015-05-14 15:39:18 +000010120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
mlcreech636a9952008-05-05 22:52:56 +000010121/* end confdefs.h. */
10122#define _LARGE_FILES 1
10123#include <sys/types.h>
10124 /* Check that off_t can represent 2**63 - 1 correctly.
10125 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10126 since some C++ compilers masquerading as C compilers
10127 incorrectly reject 9223372036854775807. */
10128#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10129 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10130 && LARGE_OFF_T % 2147483647 == 1)
10131 ? 1 : -1];
10132int
10133main ()
10134{
10135
10136 ;
10137 return 0;
10138}
10139_ACEOF
drhf922ca42015-05-14 15:39:18 +000010140if ac_fn_c_try_compile "$LINENO"; then :
mlcreech636a9952008-05-05 22:52:56 +000010141 ac_cv_sys_large_files=1; break
mlcreech636a9952008-05-05 22:52:56 +000010142fi
drh8b727472009-01-19 18:18:40 +000010143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10144 ac_cv_sys_large_files=unknown
mlcreech636a9952008-05-05 22:52:56 +000010145 break
10146done
10147fi
drhf922ca42015-05-14 15:39:18 +000010148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
drh8b727472009-01-19 18:18:40 +000010149$as_echo "$ac_cv_sys_large_files" >&6; }
10150case $ac_cv_sys_large_files in #(
10151 no | unknown) ;;
10152 *)
mlcreech636a9952008-05-05 22:52:56 +000010153cat >>confdefs.h <<_ACEOF
10154#define _LARGE_FILES $ac_cv_sys_large_files
10155_ACEOF
drh8b727472009-01-19 18:18:40 +000010156;;
10157esac
10158rm -rf conftest*
10159 fi
drhf922ca42015-05-14 15:39:18 +000010160
10161
mlcreech636a9952008-05-05 22:52:56 +000010162fi
10163
10164
10165#########
10166# Check for needed/wanted data types
drhf922ca42015-05-14 15:39:18 +000010167ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "$ac_includes_default"
10168if test "x$ac_cv_type_int8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010169
10170cat >>confdefs.h <<_ACEOF
10171#define HAVE_INT8_T 1
10172_ACEOF
10173
10174
10175fi
drhf922ca42015-05-14 15:39:18 +000010176ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "$ac_includes_default"
10177if test "x$ac_cv_type_int16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010178
10179cat >>confdefs.h <<_ACEOF
10180#define HAVE_INT16_T 1
10181_ACEOF
10182
10183
10184fi
drhf922ca42015-05-14 15:39:18 +000010185ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "$ac_includes_default"
10186if test "x$ac_cv_type_int32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010187
10188cat >>confdefs.h <<_ACEOF
10189#define HAVE_INT32_T 1
10190_ACEOF
10191
10192
10193fi
drhf922ca42015-05-14 15:39:18 +000010194ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
10195if test "x$ac_cv_type_int64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010196
10197cat >>confdefs.h <<_ACEOF
10198#define HAVE_INT64_T 1
10199_ACEOF
10200
10201
10202fi
drhf922ca42015-05-14 15:39:18 +000010203ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
10204if test "x$ac_cv_type_intptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010205
10206cat >>confdefs.h <<_ACEOF
10207#define HAVE_INTPTR_T 1
10208_ACEOF
10209
10210
10211fi
drhf922ca42015-05-14 15:39:18 +000010212ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "$ac_includes_default"
10213if test "x$ac_cv_type_uint8_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010214
10215cat >>confdefs.h <<_ACEOF
10216#define HAVE_UINT8_T 1
10217_ACEOF
10218
10219
10220fi
drhf922ca42015-05-14 15:39:18 +000010221ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "$ac_includes_default"
10222if test "x$ac_cv_type_uint16_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010223
10224cat >>confdefs.h <<_ACEOF
10225#define HAVE_UINT16_T 1
10226_ACEOF
10227
10228
10229fi
drhf922ca42015-05-14 15:39:18 +000010230ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "$ac_includes_default"
10231if test "x$ac_cv_type_uint32_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010232
10233cat >>confdefs.h <<_ACEOF
10234#define HAVE_UINT32_T 1
10235_ACEOF
10236
10237
10238fi
drhf922ca42015-05-14 15:39:18 +000010239ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
10240if test "x$ac_cv_type_uint64_t" = xyes; then :
mlcreechb87057f2008-03-06 07:19:20 +000010241
10242cat >>confdefs.h <<_ACEOF
10243#define HAVE_UINT64_T 1
10244_ACEOF
10245
10246
10247fi
drhf922ca42015-05-14 15:39:18 +000010248ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
10249if test "x$ac_cv_type_uintptr_t" = xyes; then :
danielk197733a14782008-08-04 14:50:05 +000010250
10251cat >>confdefs.h <<_ACEOF
10252#define HAVE_UINTPTR_T 1
10253_ACEOF
10254
10255
10256fi
mlcreechb87057f2008-03-06 07:19:20 +000010257
10258
10259#########
10260# Check for needed/wanted headers
drh86c5a932012-02-08 12:13:28 +000010261for ac_header in sys/types.h stdlib.h stdint.h inttypes.h malloc.h
drhf922ca42015-05-14 15:39:18 +000010262do :
10263 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10264ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10265if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
mlcreechb87057f2008-03-06 07:19:20 +000010266 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010267#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
mlcreechb87057f2008-03-06 07:19:20 +000010268_ACEOF
mlcreech8390bc32008-03-06 08:54:38 +000010269
mlcreechb87057f2008-03-06 07:19:20 +000010270fi
10271
10272done
10273
10274
10275#########
mlcreech5b0a9eb2008-03-09 01:38:09 +000010276# Figure out whether or not we have these functions
10277#
drhe32a2562016-03-04 02:38:00 +000010278for 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 +000010279do :
10280 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10281ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10282if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
mlcreech5b0a9eb2008-03-09 01:38:09 +000010283 cat >>confdefs.h <<_ACEOF
drh8b727472009-01-19 18:18:40 +000010284#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
mlcreech5b0a9eb2008-03-09 01:38:09 +000010285_ACEOF
10286
10287fi
10288done
10289
10290
mlcreechab1c47b2008-03-09 02:51:10 +000010291#########
mlcreechf3868112008-03-11 18:03:30 +000010292# By default, we use the amalgamation (this may be changed below...)
10293#
10294USE_AMALGAMATION=1
10295
10296#########
mlcreechab1c47b2008-03-09 02:51:10 +000010297# See whether we can run specific tclsh versions known to work well;
10298# if not, then we fall back to plain tclsh.
10299# TODO: try other versions before falling back?
10300#
mistachkinfe27b082013-08-28 18:06:26 +000010301for ac_prog in tclsh8.6 tclsh8.5 tclsh
mlcreechab1c47b2008-03-09 02:51:10 +000010302do
10303 # Extract the first word of "$ac_prog", so it can be a program name with args.
10304set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010306$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010307if ${ac_cv_prog_TCLSH_CMD+:} false; then :
drh8b727472009-01-19 18:18:40 +000010308 $as_echo_n "(cached) " >&6
mlcreechab1c47b2008-03-09 02:51:10 +000010309else
10310 if test -n "$TCLSH_CMD"; then
10311 ac_cv_prog_TCLSH_CMD="$TCLSH_CMD" # Let the user override the test.
10312else
10313as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10314for as_dir in $PATH
10315do
10316 IFS=$as_save_IFS
10317 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010318 for ac_exec_ext in '' $ac_executable_extensions; do
10319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
mlcreechab1c47b2008-03-09 02:51:10 +000010320 ac_cv_prog_TCLSH_CMD="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
mlcreechab1c47b2008-03-09 02:51:10 +000010322 break 2
10323 fi
10324done
drhf922ca42015-05-14 15:39:18 +000010325 done
drh8b727472009-01-19 18:18:40 +000010326IFS=$as_save_IFS
mlcreechab1c47b2008-03-09 02:51:10 +000010327
10328fi
10329fi
10330TCLSH_CMD=$ac_cv_prog_TCLSH_CMD
10331if test -n "$TCLSH_CMD"; then
drhf922ca42015-05-14 15:39:18 +000010332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH_CMD" >&5
drh8b727472009-01-19 18:18:40 +000010333$as_echo "$TCLSH_CMD" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010334else
drhf922ca42015-05-14 15:39:18 +000010335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010336$as_echo "no" >&6; }
mlcreechab1c47b2008-03-09 02:51:10 +000010337fi
10338
drh8b727472009-01-19 18:18:40 +000010339
mlcreechab1c47b2008-03-09 02:51:10 +000010340 test -n "$TCLSH_CMD" && break
10341done
mlcreechf3868112008-03-11 18:03:30 +000010342test -n "$TCLSH_CMD" || TCLSH_CMD="none"
mlcreechab1c47b2008-03-09 02:51:10 +000010343
mlcreechf3868112008-03-11 18:03:30 +000010344if test "$TCLSH_CMD" = "none"; then
10345 # If we can't find a local tclsh, then building the amalgamation will fail.
10346 # We act as though --disable-amalgamation has been used.
10347 echo "Warning: can't find tclsh - defaulting to non-amalgamation build."
10348 USE_AMALGAMATION=0
10349 TCLSH_CMD="tclsh"
10350fi
mlcreechab1c47b2008-03-09 02:51:10 +000010351
10352
mlcreech5b0a9eb2008-03-09 01:38:09 +000010353
vapier6acb2cf2009-01-28 04:46:28 +000010354if test "x${TCLLIBDIR+set}" != "xset" ; then
10355 TCLLIBDIR='$(libdir)'
10356 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}` ; do
10357 TCLLIBDIR=$i
10358 break
10359 done
10360 TCLLIBDIR="${TCLLIBDIR}/sqlite3"
10361fi
10362
10363
mlcreech5b0a9eb2008-03-09 01:38:09 +000010364#########
drh75897232000-05-29 14:26:00 +000010365# Set up an appropriate program prefix
10366#
10367if test "$program_prefix" = "NONE"; then
10368 program_prefix=""
10369fi
10370
a.rottmann84e63352003-03-24 09:42:16 +000010371
drh4b2266a2004-11-27 15:52:16 +000010372VERSION=`cat $srcdir/VERSION | sed 's/^\([0-9]*\.*[0-9]*\).*/\1/'`
drhf922ca42015-05-14 15:39:18 +000010373{ $as_echo "$as_me:${as_lineno-$LINENO}: Version set to $VERSION" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010374$as_echo "$as_me: Version set to $VERSION" >&6;}
drh4b2266a2004-11-27 15:52:16 +000010375
10376RELEASE=`cat $srcdir/VERSION`
drhf922ca42015-05-14 15:39:18 +000010377{ $as_echo "$as_me:${as_lineno-$LINENO}: Release set to $RELEASE" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010378$as_echo "$as_me: Release set to $RELEASE" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010379
vapier6acb2cf2009-01-28 04:46:28 +000010380VERSION_NUMBER=`cat $srcdir/VERSION \
drh26d0e2a2005-07-06 13:51:27 +000010381 | sed 's/[^0-9]/ /g' \
danielk197799ba19e2005-02-05 07:33:34 +000010382 | awk '{printf "%d%03d%03d",$1,$2,$3}'`
drhf922ca42015-05-14 15:39:18 +000010383{ $as_echo "$as_me:${as_lineno-$LINENO}: Version number set to $VERSION_NUMBER" >&5
vapier6acb2cf2009-01-28 04:46:28 +000010384$as_echo "$as_me: Version number set to $VERSION_NUMBER" >&6;}
a.rottmann84e63352003-03-24 09:42:16 +000010385
drh26d0e2a2005-07-06 13:51:27 +000010386
drh75897232000-05-29 14:26:00 +000010387#########
drh75897232000-05-29 14:26:00 +000010388# Locate a compiler for the build machine. This compiler should
10389# generate command-line programs that run on the build machine.
10390#
vapier7f19c022007-02-17 14:46:31 +000010391if test x"$cross_compiling" = xno; then
10392 BUILD_CC=$CC
10393 BUILD_CFLAGS=$CFLAGS
drh75897232000-05-29 14:26:00 +000010394else
vapier7f19c022007-02-17 14:46:31 +000010395 if test "${BUILD_CC+set}" != set; then
10396 for ac_prog in gcc cc cl
drh71eb93e2001-09-28 01:34:43 +000010397do
10398 # Extract the first word of "$ac_prog", so it can be a program name with args.
10399set dummy $ac_prog; ac_word=$2
drhf922ca42015-05-14 15:39:18 +000010400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
drh8b727472009-01-19 18:18:40 +000010401$as_echo_n "checking for $ac_word... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010402if ${ac_cv_prog_BUILD_CC+:} false; then :
drh8b727472009-01-19 18:18:40 +000010403 $as_echo_n "(cached) " >&6
drh71eb93e2001-09-28 01:34:43 +000010404else
vapier7f19c022007-02-17 14:46:31 +000010405 if test -n "$BUILD_CC"; then
10406 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
drh71eb93e2001-09-28 01:34:43 +000010407else
a.rottmann84e63352003-03-24 09:42:16 +000010408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10409for as_dir in $PATH
10410do
10411 IFS=$as_save_IFS
10412 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000010413 for ac_exec_ext in '' $ac_executable_extensions; do
10414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
vapier7f19c022007-02-17 14:46:31 +000010415 ac_cv_prog_BUILD_CC="$ac_prog"
drhf922ca42015-05-14 15:39:18 +000010416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
a.rottmann84e63352003-03-24 09:42:16 +000010417 break 2
10418 fi
10419done
drhf922ca42015-05-14 15:39:18 +000010420 done
drh8b727472009-01-19 18:18:40 +000010421IFS=$as_save_IFS
drh75897232000-05-29 14:26:00 +000010422
drh71eb93e2001-09-28 01:34:43 +000010423fi
10424fi
vapier7f19c022007-02-17 14:46:31 +000010425BUILD_CC=$ac_cv_prog_BUILD_CC
10426if test -n "$BUILD_CC"; then
drhf922ca42015-05-14 15:39:18 +000010427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
drh8b727472009-01-19 18:18:40 +000010428$as_echo "$BUILD_CC" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010429else
drhf922ca42015-05-14 15:39:18 +000010430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010431$as_echo "no" >&6; }
drh71eb93e2001-09-28 01:34:43 +000010432fi
drh75897232000-05-29 14:26:00 +000010433
drh8b727472009-01-19 18:18:40 +000010434
vapier7f19c022007-02-17 14:46:31 +000010435 test -n "$BUILD_CC" && break
drh71eb93e2001-09-28 01:34:43 +000010436done
drh75897232000-05-29 14:26:00 +000010437
vapier7f19c022007-02-17 14:46:31 +000010438 fi
10439 if test "${BUILD_CFLAGS+set}" != set; then
10440 BUILD_CFLAGS="-g"
10441 fi
drh71eb93e2001-09-28 01:34:43 +000010442fi
10443
a.rottmann84e63352003-03-24 09:42:16 +000010444
drh297ecf12001-04-05 15:57:13 +000010445##########
dougcurrie0f290bf2004-06-21 18:57:29 +000010446# Do we want to support multithreaded use of sqlite
drh297ecf12001-04-05 15:57:13 +000010447#
drh8b727472009-01-19 18:18:40 +000010448# Check whether --enable-threadsafe was given.
drhf922ca42015-05-14 15:39:18 +000010449if test "${enable_threadsafe+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010450 enableval=$enable_threadsafe;
drh297ecf12001-04-05 15:57:13 +000010451else
drh5a3032b2007-09-03 16:12:09 +000010452 enable_threadsafe=yes
drh8b727472009-01-19 18:18:40 +000010453fi
10454
drhf922ca42015-05-14 15:39:18 +000010455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support threadsafe operation" >&5
drh8b727472009-01-19 18:18:40 +000010456$as_echo_n "checking whether to support threadsafe operation... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010457if test "$enable_threadsafe" = "no"; then
drh5a3032b2007-09-03 16:12:09 +000010458 SQLITE_THREADSAFE=0
drhf922ca42015-05-14 15:39:18 +000010459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010460$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010461else
drh5a3032b2007-09-03 16:12:09 +000010462 SQLITE_THREADSAFE=1
drhf922ca42015-05-14 15:39:18 +000010463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010464$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010465fi
10466
a.rottmann964dbb12004-02-26 19:47:42 +000010467
drh5a3032b2007-09-03 16:12:09 +000010468if test "$SQLITE_THREADSAFE" = "1"; then
drhba60fbb2016-01-28 02:47:32 +000010469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
10470$as_echo_n "checking for library containing pthread_create... " >&6; }
10471if ${ac_cv_search_pthread_create+:} false; then :
10472 $as_echo_n "(cached) " >&6
10473else
10474 ac_func_search_save_LIBS=$LIBS
10475cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10476/* end confdefs.h. */
10477
10478/* Override any GCC internal prototype to avoid an error.
10479 Use char because int might match the return type of a GCC
10480 builtin and then its argument prototype would still apply. */
10481#ifdef __cplusplus
10482extern "C"
10483#endif
10484char pthread_create ();
10485int
10486main ()
10487{
10488return pthread_create ();
10489 ;
10490 return 0;
10491}
10492_ACEOF
10493for ac_lib in '' pthread; do
10494 if test -z "$ac_lib"; then
10495 ac_res="none required"
10496 else
10497 ac_res=-l$ac_lib
10498 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10499 fi
10500 if ac_fn_c_try_link "$LINENO"; then :
10501 ac_cv_search_pthread_create=$ac_res
10502fi
10503rm -f core conftest.err conftest.$ac_objext \
10504 conftest$ac_exeext
10505 if ${ac_cv_search_pthread_create+:} false; then :
10506 break
10507fi
10508done
10509if ${ac_cv_search_pthread_create+:} false; then :
10510
10511else
10512 ac_cv_search_pthread_create=no
10513fi
10514rm conftest.$ac_ext
10515LIBS=$ac_func_search_save_LIBS
10516fi
10517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
10518$as_echo "$ac_cv_search_pthread_create" >&6; }
10519ac_res=$ac_cv_search_pthread_create
10520if test "$ac_res" != no; then :
10521 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10522
10523fi
10524
drh13c808a2016-01-13 21:23:48 +000010525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutexattr_init" >&5
10526$as_echo_n "checking for library containing pthread_mutexattr_init... " >&6; }
10527if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drh8b727472009-01-19 18:18:40 +000010528 $as_echo_n "(cached) " >&6
dougcurrie65623c72004-09-20 14:57:23 +000010529else
mlcreechc658b0f2008-03-09 02:20:11 +000010530 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000010531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
dougcurrie65623c72004-09-20 14:57:23 +000010532/* end confdefs.h. */
10533
drh8b727472009-01-19 18:18:40 +000010534/* Override any GCC internal prototype to avoid an error.
10535 Use char because int might match the return type of a GCC
10536 builtin and then its argument prototype would still apply. */
dougcurrie65623c72004-09-20 14:57:23 +000010537#ifdef __cplusplus
10538extern "C"
10539#endif
drh13c808a2016-01-13 21:23:48 +000010540char pthread_mutexattr_init ();
dougcurrie65623c72004-09-20 14:57:23 +000010541int
10542main ()
10543{
drh13c808a2016-01-13 21:23:48 +000010544return pthread_mutexattr_init ();
dougcurrie65623c72004-09-20 14:57:23 +000010545 ;
10546 return 0;
10547}
10548_ACEOF
drh8b727472009-01-19 18:18:40 +000010549for ac_lib in '' pthread; do
10550 if test -z "$ac_lib"; then
10551 ac_res="none required"
10552 else
10553 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000010554 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000010555 fi
drhf922ca42015-05-14 15:39:18 +000010556 if ac_fn_c_try_link "$LINENO"; then :
drh13c808a2016-01-13 21:23:48 +000010557 ac_cv_search_pthread_mutexattr_init=$ac_res
mlcreechc658b0f2008-03-09 02:20:11 +000010558fi
drhf922ca42015-05-14 15:39:18 +000010559rm -f core conftest.err conftest.$ac_objext \
10560 conftest$ac_exeext
drh13c808a2016-01-13 21:23:48 +000010561 if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drh8b727472009-01-19 18:18:40 +000010562 break
drh866108f2008-05-13 00:57:21 +000010563fi
drh8b727472009-01-19 18:18:40 +000010564done
drh13c808a2016-01-13 21:23:48 +000010565if ${ac_cv_search_pthread_mutexattr_init+:} false; then :
drhf922ca42015-05-14 15:39:18 +000010566
drh8b727472009-01-19 18:18:40 +000010567else
drh13c808a2016-01-13 21:23:48 +000010568 ac_cv_search_pthread_mutexattr_init=no
drh8b727472009-01-19 18:18:40 +000010569fi
10570rm conftest.$ac_ext
mlcreechc658b0f2008-03-09 02:20:11 +000010571LIBS=$ac_func_search_save_LIBS
10572fi
drh13c808a2016-01-13 21:23:48 +000010573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutexattr_init" >&5
10574$as_echo "$ac_cv_search_pthread_mutexattr_init" >&6; }
10575ac_res=$ac_cv_search_pthread_mutexattr_init
drhf922ca42015-05-14 15:39:18 +000010576if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000010577 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
mlcreechc658b0f2008-03-09 02:20:11 +000010578
dougcurrie65623c72004-09-20 14:57:23 +000010579fi
10580
mlcreechc658b0f2008-03-09 02:20:11 +000010581fi
dougcurrie65623c72004-09-20 14:57:23 +000010582
xdong28f79f72003-09-23 00:35:21 +000010583##########
10584# Do we want to support release
10585#
drh8b727472009-01-19 18:18:40 +000010586# Check whether --enable-releasemode was given.
drhf922ca42015-05-14 15:39:18 +000010587if test "${enable_releasemode+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010588 enableval=$enable_releasemode;
xdong28f79f72003-09-23 00:35:21 +000010589else
10590 enable_releasemode=no
drh8b727472009-01-19 18:18:40 +000010591fi
10592
drhf922ca42015-05-14 15:39:18 +000010593{ $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 +000010594$as_echo_n "checking whether to support shared library linked as release mode or not... " >&6; }
xdong28f79f72003-09-23 00:35:21 +000010595if test "$enable_releasemode" = "no"; then
10596 ALLOWRELEASE=""
drhf922ca42015-05-14 15:39:18 +000010597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010598$as_echo "no" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010599else
drh0b47d342007-11-27 14:50:06 +000010600 ALLOWRELEASE="-release `cat $srcdir/VERSION`"
drhf922ca42015-05-14 15:39:18 +000010601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010602$as_echo "yes" >&6; }
xdong28f79f72003-09-23 00:35:21 +000010603fi
paulb0208cc2003-04-13 18:26:49 +000010604
a.rottmann964dbb12004-02-26 19:47:42 +000010605
paulb0208cc2003-04-13 18:26:49 +000010606##########
10607# Do we want temporary databases in memory
10608#
drh8b727472009-01-19 18:18:40 +000010609# Check whether --enable-tempstore was given.
drhf922ca42015-05-14 15:39:18 +000010610if test "${enable_tempstore+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010611 enableval=$enable_tempstore;
paulb0208cc2003-04-13 18:26:49 +000010612else
drh54414bb2005-10-10 00:05:50 +000010613 enable_tempstore=no
drh8b727472009-01-19 18:18:40 +000010614fi
10615
drhf922ca42015-05-14 15:39:18 +000010616{ $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 +000010617$as_echo_n "checking whether to use an in-ram database for temporary tables... " >&6; }
dougcurrie0f290bf2004-06-21 18:57:29 +000010618case "$enable_tempstore" in
paulb0208cc2003-04-13 18:26:49 +000010619 never )
paul2dc96f92003-04-20 11:46:34 +000010620 TEMP_STORE=0
drhf922ca42015-05-14 15:39:18 +000010621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: never" >&5
drh8b727472009-01-19 18:18:40 +000010622$as_echo "never" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010623 ;;
10624 no )
paul2dc96f92003-04-20 11:46:34 +000010625 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010627$as_echo "no" >&6; }
10628 ;;
10629 yes )
10630 TEMP_STORE=2
drhf922ca42015-05-14 15:39:18 +000010631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010632$as_echo "yes" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010633 ;;
10634 always )
dougcurrie0f290bf2004-06-21 18:57:29 +000010635 TEMP_STORE=3
drhf922ca42015-05-14 15:39:18 +000010636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: always" >&5
drh8b727472009-01-19 18:18:40 +000010637$as_echo "always" >&6; }
drh54414bb2005-10-10 00:05:50 +000010638 ;;
paulb0208cc2003-04-13 18:26:49 +000010639 * )
drh54414bb2005-10-10 00:05:50 +000010640 TEMP_STORE=1
drhf922ca42015-05-14 15:39:18 +000010641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
drh8b727472009-01-19 18:18:40 +000010642$as_echo "no" >&6; }
paulb0208cc2003-04-13 18:26:49 +000010643 ;;
10644esac
10645
10646
10647
drh75897232000-05-29 14:26:00 +000010648###########
10649# Lots of things are different if we are compiling for Windows using
10650# the CYGWIN environment. So check for that special case and handle
10651# things accordingly.
10652#
drhf922ca42015-05-14 15:39:18 +000010653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if executables have the .exe suffix" >&5
drh8b727472009-01-19 18:18:40 +000010654$as_echo_n "checking if executables have the .exe suffix... " >&6; }
drh75897232000-05-29 14:26:00 +000010655if test "$config_BUILD_EXEEXT" = ".exe"; then
10656 CYGWIN=yes
drhf922ca42015-05-14 15:39:18 +000010657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
drh8b727472009-01-19 18:18:40 +000010658$as_echo "yes" >&6; }
drh75897232000-05-29 14:26:00 +000010659else
drhf922ca42015-05-14 15:39:18 +000010660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
drh8b727472009-01-19 18:18:40 +000010661$as_echo "unknown" >&6; }
drh75897232000-05-29 14:26:00 +000010662fi
10663if test "$CYGWIN" != "yes"; then
a.rottmann84e63352003-03-24 09:42:16 +000010664
10665case $host_os in
drh71eb93e2001-09-28 01:34:43 +000010666 *cygwin* ) CYGWIN=yes;;
a.rottmann964dbb12004-02-26 19:47:42 +000010667 * ) CYGWIN=no;;
drh71eb93e2001-09-28 01:34:43 +000010668esac
drh75897232000-05-29 14:26:00 +000010669
drh75897232000-05-29 14:26:00 +000010670fi
10671if test "$CYGWIN" = "yes"; then
10672 BUILD_EXEEXT=.exe
10673else
dougcurrie6194a5f2003-12-19 20:09:51 +000010674 BUILD_EXEEXT=$EXEEXT
drh75897232000-05-29 14:26:00 +000010675fi
vapier7f19c022007-02-17 14:46:31 +000010676if test x"$cross_compiling" = xno; then
drh75897232000-05-29 14:26:00 +000010677 TARGET_EXEEXT=$BUILD_EXEEXT
10678else
10679 TARGET_EXEEXT=$config_TARGET_EXEEXT
10680fi
10681if test "$TARGET_EXEEXT" = ".exe"; then
mistachkinfe27b082013-08-28 18:06:26 +000010682 SQLITE_OS_UNIX=0
10683 SQLITE_OS_WIN=1
10684 CFLAGS="$CFLAGS -DSQLITE_OS_WIN=1"
drh75897232000-05-29 14:26:00 +000010685else
danielk197729bafea2008-06-26 10:41:19 +000010686 SQLITE_OS_UNIX=1
10687 SQLITE_OS_WIN=0
danielk197729bafea2008-06-26 10:41:19 +000010688 CFLAGS="$CFLAGS -DSQLITE_OS_UNIX=1"
drh75897232000-05-29 14:26:00 +000010689fi
drh75897232000-05-29 14:26:00 +000010690
a.rottmann84e63352003-03-24 09:42:16 +000010691
10692
10693
10694
10695
drh75897232000-05-29 14:26:00 +000010696##########
drh7b5717e2004-11-25 13:50:01 +000010697# Figure out all the parameters needed to compile against Tcl.
drh75897232000-05-29 14:26:00 +000010698#
drh7b5717e2004-11-25 13:50:01 +000010699# This code is derived from the SC_PATH_TCLCONFIG and SC_LOAD_TCLCONFIG
10700# macros in the in the tcl.m4 file of the standard TCL distribution.
10701# Those macros could not be used directly since we have to make some
10702# minor changes to accomodate systems that do not have TCL installed.
drh75897232000-05-29 14:26:00 +000010703#
drh8b727472009-01-19 18:18:40 +000010704# Check whether --enable-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010705if test "${enable_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010706 enableval=$enable_tcl; use_tcl=$enableval
drh75897232000-05-29 14:26:00 +000010707else
drh7b5717e2004-11-25 13:50:01 +000010708 use_tcl=yes
drh8b727472009-01-19 18:18:40 +000010709fi
10710
drh7b5717e2004-11-25 13:50:01 +000010711if test "${use_tcl}" = "yes" ; then
a.rottmann84e63352003-03-24 09:42:16 +000010712
drh8b727472009-01-19 18:18:40 +000010713# Check whether --with-tcl was given.
drhf922ca42015-05-14 15:39:18 +000010714if test "${with_tcl+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010715 withval=$with_tcl; with_tclconfig=${withval}
10716fi
10717
drhf922ca42015-05-14 15:39:18 +000010718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Tcl configuration" >&5
drh8b727472009-01-19 18:18:40 +000010719$as_echo_n "checking for Tcl configuration... " >&6; }
drhf922ca42015-05-14 15:39:18 +000010720 if ${ac_cv_c_tclconfig+:} false; then :
drh8b727472009-01-19 18:18:40 +000010721 $as_echo_n "(cached) " >&6
a.rottmann84e63352003-03-24 09:42:16 +000010722else
a.rottmann84e63352003-03-24 09:42:16 +000010723
drh7b5717e2004-11-25 13:50:01 +000010724 # First check to see if --with-tcl was specified.
10725 if test x"${with_tclconfig}" != x ; then
10726 if test -f "${with_tclconfig}/tclConfig.sh" ; then
10727 ac_cv_c_tclconfig=`(cd ${with_tclconfig}; pwd)`
10728 else
drhf922ca42015-05-14 15:39:18 +000010729 as_fn_error $? "${with_tclconfig} directory doesn't contain tclConfig.sh" "$LINENO" 5
drh7b5717e2004-11-25 13:50:01 +000010730 fi
10731 fi
vapier6acb2cf2009-01-28 04:46:28 +000010732
10733 # Start autosearch by asking tclsh
drhe74f4652012-08-15 16:06:54 +000010734 if test x"${ac_cv_c_tclconfig}" = x ; then
10735 if test x"$cross_compiling" = xno; then
10736 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD}`
10737 do
10738 if test -f "$i/tclConfig.sh" ; then
10739 ac_cv_c_tclconfig="$i"
10740 break
10741 fi
10742 done
10743 fi
vapier6acb2cf2009-01-28 04:46:28 +000010744 fi
10745
drhf960a642015-05-30 22:57:49 +000010746 # On ubuntu 14.10, $auto_path on tclsh is not quite correct.
10747 # So try again after applying corrections.
10748 if test x"${ac_cv_c_tclconfig}" = x ; then
10749 if test x"$cross_compiling" = xno; then
10750 for i in `echo 'puts stdout $auto_path' | ${TCLSH_CMD} | sed 's,/tcltk/tcl,/tcl,g'`
10751 do
10752 if test -f "$i/tclConfig.sh" ; then
10753 ac_cv_c_tclconfig="$i"
10754 break
10755 fi
10756 done
10757 fi
10758 fi
10759
drh68314742016-05-23 00:10:58 +000010760 # Recent versions of Xcode on Macs hid the tclConfig.sh file
10761 # in a strange place.
10762 if test x"${ac_cv_c_tclconfig}" = x ; then
10763 if test x"$cross_compiling" = xno; then
10764 for i in /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX*.sdk/usr/lib
10765 do
10766 if test -f "$i/tclConfig.sh" ; then
10767 ac_cv_c_tclconfig="$i"
10768 break
10769 fi
10770 done
10771 fi
10772 fi
10773
drh7b5717e2004-11-25 13:50:01 +000010774 # then check for a private Tcl installation
10775 if test x"${ac_cv_c_tclconfig}" = x ; then
10776 for i in \
10777 ../tcl \
10778 `ls -dr ../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10779 `ls -dr ../tcl[8-9].[0-9] 2>/dev/null` \
10780 `ls -dr ../tcl[8-9].[0-9]* 2>/dev/null` \
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 do
10790 if test -f "$i/unix/tclConfig.sh" ; then
10791 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10792 break
10793 fi
10794 done
10795 fi
10796
10797 # check in a few common install locations
10798 if test x"${ac_cv_c_tclconfig}" = x ; then
10799 for i in \
10800 `ls -d ${libdir} 2>/dev/null` \
10801 `ls -d /usr/local/lib 2>/dev/null` \
10802 `ls -d /usr/contrib/lib 2>/dev/null` \
10803 `ls -d /usr/lib 2>/dev/null`
10804 do
10805 if test -f "$i/tclConfig.sh" ; then
10806 ac_cv_c_tclconfig=`(cd $i; pwd)`
10807 break
10808 fi
10809 done
10810 fi
10811
10812 # check in a few other private locations
10813 if test x"${ac_cv_c_tclconfig}" = x ; then
10814 for i in \
10815 ${srcdir}/../tcl \
10816 `ls -dr ${srcdir}/../tcl[8-9].[0-9].[0-9]* 2>/dev/null` \
10817 `ls -dr ${srcdir}/../tcl[8-9].[0-9] 2>/dev/null` \
10818 `ls -dr ${srcdir}/../tcl[8-9].[0-9]* 2>/dev/null`
10819 do
10820 if test -f "$i/unix/tclConfig.sh" ; then
10821 ac_cv_c_tclconfig=`(cd $i/unix; pwd)`
10822 break
10823 fi
10824 done
10825 fi
10826
drh75897232000-05-29 14:26:00 +000010827fi
10828
drh7b5717e2004-11-25 13:50:01 +000010829
10830 if test x"${ac_cv_c_tclconfig}" = x ; then
10831 use_tcl=no
drhf922ca42015-05-14 15:39:18 +000010832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can't find Tcl configuration definitions" >&5
drh8b727472009-01-19 18:18:40 +000010833$as_echo "$as_me: WARNING: Can't find Tcl configuration definitions" >&2;}
drhf922ca42015-05-14 15:39:18 +000010834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&5
drh8b727472009-01-19 18:18:40 +000010835$as_echo "$as_me: WARNING: *** Without Tcl the regression tests cannot be executed ***" >&2;}
drhf922ca42015-05-14 15:39:18 +000010836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&5
drh8b727472009-01-19 18:18:40 +000010837$as_echo "$as_me: WARNING: *** Consider using --with-tcl=... to define location of Tcl ***" >&2;}
drh7b5717e2004-11-25 13:50:01 +000010838 else
10839 TCL_BIN_DIR=${ac_cv_c_tclconfig}
drhf922ca42015-05-14 15:39:18 +000010840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010841$as_echo "found $TCL_BIN_DIR/tclConfig.sh" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010842
drhf922ca42015-05-14 15:39:18 +000010843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for existence of $TCL_BIN_DIR/tclConfig.sh" >&5
drh8b727472009-01-19 18:18:40 +000010844$as_echo_n "checking for existence of $TCL_BIN_DIR/tclConfig.sh... " >&6; }
drh7b5717e2004-11-25 13:50:01 +000010845 if test -f "$TCL_BIN_DIR/tclConfig.sh" ; then
drhf922ca42015-05-14 15:39:18 +000010846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loading" >&5
drh8b727472009-01-19 18:18:40 +000010847$as_echo "loading" >&6; }
drh7b5717e2004-11-25 13:50:01 +000010848 . $TCL_BIN_DIR/tclConfig.sh
10849 else
drhf922ca42015-05-14 15:39:18 +000010850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: file not found" >&5
drh8b727472009-01-19 18:18:40 +000010851$as_echo "file not found" >&6; }
drh75897232000-05-29 14:26:00 +000010852 fi
drh7b5717e2004-11-25 13:50:01 +000010853
10854 #
10855 # If the TCL_BIN_DIR is the build directory (not the install directory),
10856 # then set the common variable name to the value of the build variables.
10857 # For example, the variable TCL_LIB_SPEC will be set to the value
10858 # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC
10859 # instead of TCL_BUILD_LIB_SPEC since it will work with both an
10860 # installed and uninstalled version of Tcl.
10861 #
10862
mlcreechab1c47b2008-03-09 02:51:10 +000010863 if test -f $TCL_BIN_DIR/Makefile ; then
drh7b5717e2004-11-25 13:50:01 +000010864 TCL_LIB_SPEC=${TCL_BUILD_LIB_SPEC}
10865 TCL_STUB_LIB_SPEC=${TCL_BUILD_STUB_LIB_SPEC}
10866 TCL_STUB_LIB_PATH=${TCL_BUILD_STUB_LIB_PATH}
10867 fi
10868
10869 #
10870 # eval is required to do the TCL_DBGX substitution
10871 #
10872
10873 eval "TCL_LIB_FILE=\"${TCL_LIB_FILE}\""
10874 eval "TCL_LIB_FLAG=\"${TCL_LIB_FLAG}\""
10875 eval "TCL_LIB_SPEC=\"${TCL_LIB_SPEC}\""
10876
10877 eval "TCL_STUB_LIB_FILE=\"${TCL_STUB_LIB_FILE}\""
10878 eval "TCL_STUB_LIB_FLAG=\"${TCL_STUB_LIB_FLAG}\""
10879 eval "TCL_STUB_LIB_SPEC=\"${TCL_STUB_LIB_SPEC}\""
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
drhd881ce82015-03-31 17:01:52 +000010893
drh7b5717e2004-11-25 13:50:01 +000010894 fi
drh75897232000-05-29 14:26:00 +000010895fi
drh7b5717e2004-11-25 13:50:01 +000010896if test "${use_tcl}" = "no" ; then
10897 HAVE_TCL=""
10898else
10899 HAVE_TCL=1
drh6d313162000-09-21 13:01:35 +000010900fi
drh75897232000-05-29 14:26:00 +000010901
a.rottmann84e63352003-03-24 09:42:16 +000010902
drh75897232000-05-29 14:26:00 +000010903##########
10904# Figure out what C libraries are required to compile programs
drh75897232000-05-29 14:26:00 +000010905# that use "readline()" library.
10906#
vapier7f19c022007-02-17 14:46:31 +000010907TARGET_READLINE_LIBS=""
10908TARGET_READLINE_INC=""
10909TARGET_HAVE_READLINE=0
drhe44b8352015-10-30 14:25:57 +000010910TARGET_HAVE_EDITLINE=0
10911# Check whether --enable-editline was given.
10912if test "${enable_editline+set}" = set; then :
10913 enableval=$enable_editline; with_editline=$enableval
10914else
10915 with_editline=auto
10916fi
10917
drh8b727472009-01-19 18:18:40 +000010918# Check whether --enable-readline was given.
drhf922ca42015-05-14 15:39:18 +000010919if test "${enable_readline+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010920 enableval=$enable_readline; with_readline=$enableval
drh75897232000-05-29 14:26:00 +000010921else
vapier7f19c022007-02-17 14:46:31 +000010922 with_readline=auto
drh8b727472009-01-19 18:18:40 +000010923fi
10924
vapier7f19c022007-02-17 14:46:31 +000010925
drhe44b8352015-10-30 14:25:57 +000010926if test x"$with_editline" != xno; then
10927 sLIBS=$LIBS
10928 LIBS=""
10929 TARGET_HAVE_EDITLINE=1
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing readline" >&5
10931$as_echo_n "checking for library containing readline... " >&6; }
10932if ${ac_cv_search_readline+:} false; then :
10933 $as_echo_n "(cached) " >&6
10934else
10935 ac_func_search_save_LIBS=$LIBS
10936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10937/* end confdefs.h. */
10938
10939/* Override any GCC internal prototype to avoid an error.
10940 Use char because int might match the return type of a GCC
10941 builtin and then its argument prototype would still apply. */
10942#ifdef __cplusplus
10943extern "C"
10944#endif
10945char readline ();
10946int
10947main ()
10948{
10949return readline ();
10950 ;
10951 return 0;
10952}
10953_ACEOF
10954for ac_lib in '' edit; do
10955 if test -z "$ac_lib"; then
10956 ac_res="none required"
10957 else
10958 ac_res=-l$ac_lib
10959 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
10960 fi
10961 if ac_fn_c_try_link "$LINENO"; then :
10962 ac_cv_search_readline=$ac_res
10963fi
10964rm -f core conftest.err conftest.$ac_objext \
10965 conftest$ac_exeext
10966 if ${ac_cv_search_readline+:} false; then :
10967 break
10968fi
10969done
10970if ${ac_cv_search_readline+:} false; then :
10971
10972else
10973 ac_cv_search_readline=no
10974fi
10975rm conftest.$ac_ext
10976LIBS=$ac_func_search_save_LIBS
10977fi
10978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_readline" >&5
10979$as_echo "$ac_cv_search_readline" >&6; }
10980ac_res=$ac_cv_search_readline
10981if test "$ac_res" != no; then :
10982 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
10983 with_readline=no
10984else
10985 TARGET_HAVE_EDITLINE=0
10986fi
10987
10988 TARGET_READLINE_LIBS=$LIBS
10989 LIBS=$sLIBS
10990fi
vapier7f19c022007-02-17 14:46:31 +000010991if test x"$with_readline" != xno; then
10992 found="yes"
10993
10994
drh8b727472009-01-19 18:18:40 +000010995# Check whether --with-readline-lib was given.
drhf922ca42015-05-14 15:39:18 +000010996if test "${with_readline_lib+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000010997 withval=$with_readline_lib; with_readline_lib=$withval
vapier7f19c022007-02-17 14:46:31 +000010998else
10999 with_readline_lib="auto"
drh8b727472009-01-19 18:18:40 +000011000fi
11001
vapier7f19c022007-02-17 14:46:31 +000011002 if test "x$with_readline_lib" = xauto; then
11003 save_LIBS="$LIBS"
11004 LIBS=""
drhf922ca42015-05-14 15:39:18 +000011005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
drh8b727472009-01-19 18:18:40 +000011006$as_echo_n "checking for library containing tgetent... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011007if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000011008 $as_echo_n "(cached) " >&6
drh75897232000-05-29 14:26:00 +000011009else
drh71eb93e2001-09-28 01:34:43 +000011010 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011012/* end confdefs.h. */
11013
drh8b727472009-01-19 18:18:40 +000011014/* Override any GCC internal prototype to avoid an error.
11015 Use char because int might match the return type of a GCC
11016 builtin and then its argument prototype would still apply. */
paul38372372003-04-22 08:04:49 +000011017#ifdef __cplusplus
11018extern "C"
11019#endif
paul38372372003-04-22 08:04:49 +000011020char tgetent ();
11021int
11022main ()
11023{
drh8b727472009-01-19 18:18:40 +000011024return tgetent ();
paul38372372003-04-22 08:04:49 +000011025 ;
11026 return 0;
11027}
11028_ACEOF
drh8b727472009-01-19 18:18:40 +000011029for ac_lib in '' readline ncurses curses termcap; do
11030 if test -z "$ac_lib"; then
11031 ac_res="none required"
11032 else
11033 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011035 fi
drhf922ca42015-05-14 15:39:18 +000011036 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011037 ac_cv_search_tgetent=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011038fi
drhf922ca42015-05-14 15:39:18 +000011039rm -f core conftest.err conftest.$ac_objext \
11040 conftest$ac_exeext
11041 if ${ac_cv_search_tgetent+:} false; then :
drh8b727472009-01-19 18:18:40 +000011042 break
drh866108f2008-05-13 00:57:21 +000011043fi
drh8b727472009-01-19 18:18:40 +000011044done
drhf922ca42015-05-14 15:39:18 +000011045if ${ac_cv_search_tgetent+:} false; then :
11046
drh8b727472009-01-19 18:18:40 +000011047else
11048 ac_cv_search_tgetent=no
11049fi
11050rm conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011051LIBS=$ac_func_search_save_LIBS
11052fi
drhf922ca42015-05-14 15:39:18 +000011053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
drh8b727472009-01-19 18:18:40 +000011054$as_echo "$ac_cv_search_tgetent" >&6; }
11055ac_res=$ac_cv_search_tgetent
drhf922ca42015-05-14 15:39:18 +000011056if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011057 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
vapier7f19c022007-02-17 14:46:31 +000011058 term_LIBS="$LIBS"
11059else
11060 term_LIBS=""
paul38372372003-04-22 08:04:49 +000011061fi
11062
drhf922ca42015-05-14 15:39:18 +000011063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
drh8b727472009-01-19 18:18:40 +000011064$as_echo_n "checking for readline in -lreadline... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011065if ${ac_cv_lib_readline_readline+:} false; then :
drh8b727472009-01-19 18:18:40 +000011066 $as_echo_n "(cached) " >&6
paul38372372003-04-22 08:04:49 +000011067else
11068 ac_check_lib_save_LIBS=$LIBS
11069LIBS="-lreadline $LIBS"
drhf922ca42015-05-14 15:39:18 +000011070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a.rottmann84e63352003-03-24 09:42:16 +000011071/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011072
drh8b727472009-01-19 18:18:40 +000011073/* Override any GCC internal prototype to avoid an error.
11074 Use char because int might match the return type of a GCC
11075 builtin and then its argument prototype would still apply. */
drh71eb93e2001-09-28 01:34:43 +000011076#ifdef __cplusplus
11077extern "C"
11078#endif
drh71eb93e2001-09-28 01:34:43 +000011079char readline ();
11080int
11081main ()
11082{
drh8b727472009-01-19 18:18:40 +000011083return readline ();
drh71eb93e2001-09-28 01:34:43 +000011084 ;
11085 return 0;
11086}
11087_ACEOF
drhf922ca42015-05-14 15:39:18 +000011088if ac_fn_c_try_link "$LINENO"; then :
paul38372372003-04-22 08:04:49 +000011089 ac_cv_lib_readline_readline=yes
drh75897232000-05-29 14:26:00 +000011090else
drhf922ca42015-05-14 15:39:18 +000011091 ac_cv_lib_readline_readline=no
drh75897232000-05-29 14:26:00 +000011092fi
drhf922ca42015-05-14 15:39:18 +000011093rm -f core conftest.err conftest.$ac_objext \
11094 conftest$ac_exeext conftest.$ac_ext
paul38372372003-04-22 08:04:49 +000011095LIBS=$ac_check_lib_save_LIBS
11096fi
drhf922ca42015-05-14 15:39:18 +000011097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
drh8b727472009-01-19 18:18:40 +000011098$as_echo "$ac_cv_lib_readline_readline" >&6; }
drhf922ca42015-05-14 15:39:18 +000011099if test "x$ac_cv_lib_readline_readline" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011100 TARGET_READLINE_LIBS="-lreadline"
drhf1878b42006-01-23 18:06:52 +000011101else
vapier7f19c022007-02-17 14:46:31 +000011102 found="no"
11103fi
drhf1878b42006-01-23 18:06:52 +000011104
vapier7f19c022007-02-17 14:46:31 +000011105 TARGET_READLINE_LIBS="$TARGET_READLINE_LIBS $term_LIBS"
11106 LIBS="$save_LIBS"
11107 else
11108 TARGET_READLINE_LIBS="$with_readline_lib"
11109 fi
11110
11111
drh8b727472009-01-19 18:18:40 +000011112# Check whether --with-readline-inc was given.
drhf922ca42015-05-14 15:39:18 +000011113if test "${with_readline_inc+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011114 withval=$with_readline_inc; with_readline_inc=$withval
drhf1878b42006-01-23 18:06:52 +000011115else
vapier7f19c022007-02-17 14:46:31 +000011116 with_readline_inc="auto"
drh8b727472009-01-19 18:18:40 +000011117fi
11118
vapier7f19c022007-02-17 14:46:31 +000011119 if test "x$with_readline_inc" = xauto; then
drhf922ca42015-05-14 15:39:18 +000011120 ac_fn_c_check_header_mongrel "$LINENO" "readline.h" "ac_cv_header_readline_h" "$ac_includes_default"
11121if test "x$ac_cv_header_readline_h" = xyes; then :
vapier7f19c022007-02-17 14:46:31 +000011122 found="yes"
11123else
drh75897232000-05-29 14:26:00 +000011124
vapier7f19c022007-02-17 14:46:31 +000011125 found="no"
11126 if test "$cross_compiling" != yes; then
11127 for dir in /usr /usr/local /usr/local/readline /usr/contrib /mingw; do
11128 for subdir in include include/readline; do
drh8b727472009-01-19 18:18:40 +000011129 as_ac_File=`$as_echo "ac_cv_file_$dir/$subdir/readline.h" | $as_tr_sh`
drhf922ca42015-05-14 15:39:18 +000011130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $dir/$subdir/readline.h" >&5
drh8b727472009-01-19 18:18:40 +000011131$as_echo_n "checking for $dir/$subdir/readline.h... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011132if eval \${$as_ac_File+:} false; then :
drh8b727472009-01-19 18:18:40 +000011133 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011134else
11135 test "$cross_compiling" = yes &&
drhf922ca42015-05-14 15:39:18 +000011136 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
vapier7f19c022007-02-17 14:46:31 +000011137if test -r "$dir/$subdir/readline.h"; then
drh71eb93e2001-09-28 01:34:43 +000011138 eval "$as_ac_File=yes"
drh75897232000-05-29 14:26:00 +000011139else
drh71eb93e2001-09-28 01:34:43 +000011140 eval "$as_ac_File=no"
drh75897232000-05-29 14:26:00 +000011141fi
11142fi
drhf922ca42015-05-14 15:39:18 +000011143eval ac_res=\$$as_ac_File
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
drh8b727472009-01-19 18:18:40 +000011145$as_echo "$ac_res" >&6; }
drhf922ca42015-05-14 15:39:18 +000011146if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
drh75897232000-05-29 14:26:00 +000011147 found=yes
drh75897232000-05-29 14:26:00 +000011148fi
11149
vapier7f19c022007-02-17 14:46:31 +000011150 if test "$found" = "yes"; then
11151 TARGET_READLINE_INC="-I$dir/$subdir"
11152 break
11153 fi
11154 done
11155 test "$found" = "yes" && break
11156 done
11157 fi
11158
11159fi
11160
11161
11162 else
11163 TARGET_READLINE_INC="$with_readline_inc"
11164 fi
11165
11166 if test x"$found" = xno; then
11167 TARGET_READLINE_LIBS=""
11168 TARGET_READLINE_INC=""
11169 TARGET_HAVE_READLINE=0
11170 else
11171 TARGET_HAVE_READLINE=1
11172 fi
11173fi
11174
11175
11176
11177
11178
drhe44b8352015-10-30 14:25:57 +000011179
vapier7f19c022007-02-17 14:46:31 +000011180##########
11181# Figure out what C libraries are required to compile programs
11182# that use "fdatasync()" function.
11183#
drhf922ca42015-05-14 15:39:18 +000011184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011185$as_echo_n "checking for library containing fdatasync... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011186if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011187 $as_echo_n "(cached) " >&6
xdong28f79f72003-09-23 00:35:21 +000011188else
vapier7f19c022007-02-17 14:46:31 +000011189 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011191/* end confdefs.h. */
drh75897232000-05-29 14:26:00 +000011192
drh8b727472009-01-19 18:18:40 +000011193/* Override any GCC internal prototype to avoid an error.
11194 Use char because int might match the return type of a GCC
11195 builtin and then its argument prototype would still apply. */
vapier7f19c022007-02-17 14:46:31 +000011196#ifdef __cplusplus
11197extern "C"
11198#endif
11199char fdatasync ();
11200int
11201main ()
11202{
drh8b727472009-01-19 18:18:40 +000011203return fdatasync ();
vapier7f19c022007-02-17 14:46:31 +000011204 ;
11205 return 0;
11206}
11207_ACEOF
drh8b727472009-01-19 18:18:40 +000011208for ac_lib in '' rt; do
11209 if test -z "$ac_lib"; then
11210 ac_res="none required"
11211 else
11212 ac_res=-l$ac_lib
drh866108f2008-05-13 00:57:21 +000011213 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
drh8b727472009-01-19 18:18:40 +000011214 fi
drhf922ca42015-05-14 15:39:18 +000011215 if ac_fn_c_try_link "$LINENO"; then :
drh8b727472009-01-19 18:18:40 +000011216 ac_cv_search_fdatasync=$ac_res
mlcreech94984912008-03-04 19:03:08 +000011217fi
drhf922ca42015-05-14 15:39:18 +000011218rm -f core conftest.err conftest.$ac_objext \
11219 conftest$ac_exeext
11220 if ${ac_cv_search_fdatasync+:} false; then :
drh8b727472009-01-19 18:18:40 +000011221 break
drh866108f2008-05-13 00:57:21 +000011222fi
drh8b727472009-01-19 18:18:40 +000011223done
drhf922ca42015-05-14 15:39:18 +000011224if ${ac_cv_search_fdatasync+:} false; then :
11225
drh8b727472009-01-19 18:18:40 +000011226else
11227 ac_cv_search_fdatasync=no
11228fi
11229rm conftest.$ac_ext
vapier7f19c022007-02-17 14:46:31 +000011230LIBS=$ac_func_search_save_LIBS
11231fi
drhf922ca42015-05-14 15:39:18 +000011232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
drh8b727472009-01-19 18:18:40 +000011233$as_echo "$ac_cv_search_fdatasync" >&6; }
11234ac_res=$ac_cv_search_fdatasync
drhf922ca42015-05-14 15:39:18 +000011235if test "$ac_res" != no; then :
drh8b727472009-01-19 18:18:40 +000011236 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
a.rottmann84e63352003-03-24 09:42:16 +000011237
vapier7f19c022007-02-17 14:46:31 +000011238fi
11239
a.rottmann84e63352003-03-24 09:42:16 +000011240
drh75897232000-05-29 14:26:00 +000011241#########
tpoindex9d9f76c2005-01-03 21:28:56 +000011242# check for debug enabled
drh8b727472009-01-19 18:18:40 +000011243# Check whether --enable-debug was given.
drhf922ca42015-05-14 15:39:18 +000011244if test "${enable_debug+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011245 enableval=$enable_debug; use_debug=$enableval
tpoindex9d9f76c2005-01-03 21:28:56 +000011246else
11247 use_debug=no
drh8b727472009-01-19 18:18:40 +000011248fi
11249
tpoindex9d9f76c2005-01-03 21:28:56 +000011250if test "${use_debug}" = "yes" ; then
drheae3a0d2006-03-03 20:37:52 +000011251 TARGET_DEBUG="-DSQLITE_DEBUG=1"
tpoindex9d9f76c2005-01-03 21:28:56 +000011252else
11253 TARGET_DEBUG="-DNDEBUG"
11254fi
11255
11256
11257#########
mlcreech94984912008-03-04 19:03:08 +000011258# See whether we should use the amalgamation to build
drh8b727472009-01-19 18:18:40 +000011259# Check whether --enable-amalgamation was given.
drhf922ca42015-05-14 15:39:18 +000011260if test "${enable_amalgamation+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011261 enableval=$enable_amalgamation; use_amalgamation=$enableval
mlcreech94984912008-03-04 19:03:08 +000011262else
11263 use_amalgamation=yes
drh8b727472009-01-19 18:18:40 +000011264fi
11265
mlcreechf3868112008-03-11 18:03:30 +000011266if test "${use_amalgamation}" != "yes" ; then
mlcreech94984912008-03-04 19:03:08 +000011267 USE_AMALGAMATION=0
11268fi
11269
11270
11271#########
mlcreecha4edab02008-03-06 04:14:17 +000011272# See whether we should allow loadable extensions
drh8b727472009-01-19 18:18:40 +000011273# Check whether --enable-load-extension was given.
drhf922ca42015-05-14 15:39:18 +000011274if test "${enable_load_extension+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011275 enableval=$enable_load_extension; use_loadextension=$enableval
mlcreecha4edab02008-03-06 04:14:17 +000011276else
drh05c7e0b2015-01-10 14:27:17 +000011277 use_loadextension=yes
drh8b727472009-01-19 18:18:40 +000011278fi
11279
mlcreecha4edab02008-03-06 04:14:17 +000011280if test "${use_loadextension}" = "yes" ; then
shanefbedede2008-07-22 05:05:01 +000011281 OPT_FEATURE_FLAGS=""
drhf922ca42015-05-14 15:39:18 +000011282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011283$as_echo_n "checking for library containing dlopen... " >&6; }
drhf922ca42015-05-14 15:39:18 +000011284if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011285 $as_echo_n "(cached) " >&6
11286else
11287 ac_func_search_save_LIBS=$LIBS
drhf922ca42015-05-14 15:39:18 +000011288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
drhdbe4b882011-06-20 18:00:17 +000011289/* end confdefs.h. */
11290
11291/* Override any GCC internal prototype to avoid an error.
11292 Use char because int might match the return type of a GCC
11293 builtin and then its argument prototype would still apply. */
11294#ifdef __cplusplus
11295extern "C"
11296#endif
11297char dlopen ();
11298int
11299main ()
11300{
11301return dlopen ();
11302 ;
11303 return 0;
11304}
11305_ACEOF
11306for ac_lib in '' dl; do
11307 if test -z "$ac_lib"; then
11308 ac_res="none required"
11309 else
11310 ac_res=-l$ac_lib
11311 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11312 fi
drhf922ca42015-05-14 15:39:18 +000011313 if ac_fn_c_try_link "$LINENO"; then :
drhdbe4b882011-06-20 18:00:17 +000011314 ac_cv_search_dlopen=$ac_res
drhdbe4b882011-06-20 18:00:17 +000011315fi
drhf922ca42015-05-14 15:39:18 +000011316rm -f core conftest.err conftest.$ac_objext \
11317 conftest$ac_exeext
11318 if ${ac_cv_search_dlopen+:} false; then :
drhdbe4b882011-06-20 18:00:17 +000011319 break
11320fi
11321done
drhf922ca42015-05-14 15:39:18 +000011322if ${ac_cv_search_dlopen+:} false; then :
11323
drhdbe4b882011-06-20 18:00:17 +000011324else
11325 ac_cv_search_dlopen=no
11326fi
11327rm conftest.$ac_ext
11328LIBS=$ac_func_search_save_LIBS
11329fi
drhf922ca42015-05-14 15:39:18 +000011330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
drhdbe4b882011-06-20 18:00:17 +000011331$as_echo "$ac_cv_search_dlopen" >&6; }
11332ac_res=$ac_cv_search_dlopen
drhf922ca42015-05-14 15:39:18 +000011333if test "$ac_res" != no; then :
drhdbe4b882011-06-20 18:00:17 +000011334 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11335
11336fi
11337
mlcreecha4edab02008-03-06 04:14:17 +000011338else
shanefbedede2008-07-22 05:05:01 +000011339 OPT_FEATURE_FLAGS="-DSQLITE_OMIT_LOAD_EXTENSION=1"
mlcreecha4edab02008-03-06 04:14:17 +000011340fi
11341
mlcreechaac7b932008-04-01 02:45:22 +000011342#########
drhce1d9f52015-10-09 12:48:33 +000011343# See whether we should enable Full Text Search extensions
11344# Check whether --enable-fts3 was given.
11345if test "${enable_fts3+set}" = set; then :
11346 enableval=$enable_fts3; enable_fts3=yes
11347else
11348 enable_fts3=no
11349fi
11350
11351if test "${enable_fts3}" = "yes" ; then
11352 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS3"
11353fi
11354# Check whether --enable-fts4 was given.
11355if test "${enable_fts4+set}" = set; then :
11356 enableval=$enable_fts4; enable_fts4=yes
11357else
11358 enable_fts4=no
11359fi
11360
11361if test "${enable_fts4}" = "yes" ; then
11362 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS4"
11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11364$as_echo_n "checking for library containing log... " >&6; }
11365if ${ac_cv_search_log+:} false; then :
11366 $as_echo_n "(cached) " >&6
11367else
11368 ac_func_search_save_LIBS=$LIBS
11369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11370/* end confdefs.h. */
11371
11372/* Override any GCC internal prototype to avoid an error.
11373 Use char because int might match the return type of a GCC
11374 builtin and then its argument prototype would still apply. */
11375#ifdef __cplusplus
11376extern "C"
11377#endif
11378char log ();
11379int
11380main ()
11381{
11382return log ();
11383 ;
11384 return 0;
11385}
11386_ACEOF
11387for ac_lib in '' m; do
11388 if test -z "$ac_lib"; then
11389 ac_res="none required"
11390 else
11391 ac_res=-l$ac_lib
11392 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11393 fi
11394 if ac_fn_c_try_link "$LINENO"; then :
11395 ac_cv_search_log=$ac_res
11396fi
11397rm -f core conftest.err conftest.$ac_objext \
11398 conftest$ac_exeext
11399 if ${ac_cv_search_log+:} false; then :
11400 break
11401fi
11402done
11403if ${ac_cv_search_log+:} false; then :
11404
11405else
11406 ac_cv_search_log=no
11407fi
11408rm conftest.$ac_ext
11409LIBS=$ac_func_search_save_LIBS
11410fi
11411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11412$as_echo "$ac_cv_search_log" >&6; }
11413ac_res=$ac_cv_search_log
11414if test "$ac_res" != no; then :
11415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11416
11417fi
11418
11419fi
11420# Check whether --enable-fts5 was given.
11421if test "${enable_fts5+set}" = set; then :
11422 enableval=$enable_fts5; enable_fts5=yes
11423else
11424 enable_fts5=no
11425fi
11426
11427if test "${enable_fts5}" = "yes" ; then
11428 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_FTS5"
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing log" >&5
11430$as_echo_n "checking for library containing log... " >&6; }
11431if ${ac_cv_search_log+:} false; then :
11432 $as_echo_n "(cached) " >&6
11433else
11434 ac_func_search_save_LIBS=$LIBS
11435cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11436/* end confdefs.h. */
11437
11438/* Override any GCC internal prototype to avoid an error.
11439 Use char because int might match the return type of a GCC
11440 builtin and then its argument prototype would still apply. */
11441#ifdef __cplusplus
11442extern "C"
11443#endif
11444char log ();
11445int
11446main ()
11447{
11448return log ();
11449 ;
11450 return 0;
11451}
11452_ACEOF
11453for ac_lib in '' m; do
11454 if test -z "$ac_lib"; then
11455 ac_res="none required"
11456 else
11457 ac_res=-l$ac_lib
11458 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11459 fi
11460 if ac_fn_c_try_link "$LINENO"; then :
11461 ac_cv_search_log=$ac_res
11462fi
11463rm -f core conftest.err conftest.$ac_objext \
11464 conftest$ac_exeext
11465 if ${ac_cv_search_log+:} false; then :
11466 break
11467fi
11468done
11469if ${ac_cv_search_log+:} false; then :
11470
11471else
11472 ac_cv_search_log=no
11473fi
11474rm conftest.$ac_ext
11475LIBS=$ac_func_search_save_LIBS
11476fi
11477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_log" >&5
11478$as_echo "$ac_cv_search_log" >&6; }
11479ac_res=$ac_cv_search_log
11480if test "$ac_res" != no; then :
11481 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11482
11483fi
11484
11485fi
11486
11487#########
11488# See whether we should enable JSON1
11489# Check whether --enable-json1 was given.
11490if test "${enable_json1+set}" = set; then :
11491 enableval=$enable_json1; enable_json1=yes
11492else
11493 enable_json1=no
11494fi
11495
11496if test "${enable_json1}" = "yes" ; then
11497 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_JSON1"
11498fi
11499
11500#########
11501# See whether we should enable RTREE
11502# Check whether --enable-rtree was given.
11503if test "${enable_rtree+set}" = set; then :
11504 enableval=$enable_rtree; enable_rtree=yes
11505else
11506 enable_rtree=no
11507fi
11508
11509if test "${enable_rtree}" = "yes" ; then
11510 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_RTREE"
11511fi
11512
11513#########
drh5e18d402016-05-03 13:14:18 +000011514# See whether we should enable the SESSION extension
11515# Check whether --enable-session was given.
11516if test "${enable_session+set}" = set; then :
11517 enableval=$enable_session; enable_session=yes
11518else
11519 enable_session=no
11520fi
11521
11522if test "${enable_session}" = "yes" ; then
11523 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_SESSION"
11524 OPT_FEATURE_FLAGS+=" -DSQLITE_ENABLE_PREUPDATE_HOOK"
11525fi
11526
11527#########
shaneb1cd7302008-10-22 18:27:31 +000011528# attempt to duplicate any OMITS and ENABLES into the $(OPT_FEATURE_FLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011529for option in $CFLAGS $CPPFLAGS
11530do
11531 case $option in
danielk197733a14782008-08-04 14:50:05 +000011532 -DSQLITE_OMIT*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shaneb1cd7302008-10-22 18:27:31 +000011533 -DSQLITE_ENABLE*) OPT_FEATURE_FLAGS="$OPT_FEATURE_FLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011534 esac
11535done
11536
11537
danielk197733a14782008-08-04 14:50:05 +000011538
shaneb1cd7302008-10-22 18:27:31 +000011539# attempt to remove any OMITS and ENABLES from the $(CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011540ac_temp_CFLAGS=""
11541for option in $CFLAGS
11542do
11543 case $option in
11544 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011545 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011546 *) ac_temp_CFLAGS="$ac_temp_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011547 esac
11548done
11549CFLAGS=$ac_temp_CFLAGS
11550
11551
shaneb1cd7302008-10-22 18:27:31 +000011552# attempt to remove any OMITS and ENABLES from the $(CPPFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011553ac_temp_CPPFLAGS=""
11554for option in $CPPFLAGS
11555do
11556 case $option in
11557 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011558 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011559 *) ac_temp_CPPFLAGS="$ac_temp_CPPFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011560 esac
11561done
11562CPPFLAGS=$ac_temp_CPPFLAGS
11563
danielk197733a14782008-08-04 14:50:05 +000011564
drh8b727472009-01-19 18:18:40 +000011565# attempt to remove any OMITS and ENABLES from the $(BUILD_CFLAGS) parameter
shanefbedede2008-07-22 05:05:01 +000011566ac_temp_BUILD_CFLAGS=""
11567for option in $BUILD_CFLAGS
11568do
11569 case $option in
11570 -DSQLITE_OMIT*) ;;
shaneb1cd7302008-10-22 18:27:31 +000011571 -DSQLITE_ENABLE*) ;;
danielk197733a14782008-08-04 14:50:05 +000011572 *) ac_temp_BUILD_CFLAGS="$ac_temp_BUILD_CFLAGS $option";;
shanefbedede2008-07-22 05:05:01 +000011573 esac
11574done
11575BUILD_CFLAGS=$ac_temp_BUILD_CFLAGS
11576
11577
11578#########
11579# See whether we should use GCOV
drh8b727472009-01-19 18:18:40 +000011580# Check whether --enable-gcov was given.
drhf922ca42015-05-14 15:39:18 +000011581if test "${enable_gcov+set}" = set; then :
drh8b727472009-01-19 18:18:40 +000011582 enableval=$enable_gcov; use_gcov=$enableval
mlcreechaac7b932008-04-01 02:45:22 +000011583else
11584 use_gcov=no
drh8b727472009-01-19 18:18:40 +000011585fi
11586
mlcreechaac7b932008-04-01 02:45:22 +000011587if test "${use_gcov}" = "yes" ; then
11588 USE_GCOV=1
11589else
11590 USE_GCOV=0
11591fi
11592
11593
danielk197733a14782008-08-04 14:50:05 +000011594
drh2dfbbca2000-07-28 14:32:48 +000011595#########
mlcreechb87057f2008-03-06 07:19:20 +000011596# Output the config header
drh8b727472009-01-19 18:18:40 +000011597ac_config_headers="$ac_config_headers config.h"
mlcreechb87057f2008-03-06 07:19:20 +000011598
11599
11600#########
drh75897232000-05-29 14:26:00 +000011601# Generate the output files.
11602#
mlcreechdf59c7c2008-03-06 07:51:15 +000011603
drh8b727472009-01-19 18:18:40 +000011604ac_config_files="$ac_config_files Makefile sqlite3.pc"
11605
drh71eb93e2001-09-28 01:34:43 +000011606cat >confcache <<\_ACEOF
drh75897232000-05-29 14:26:00 +000011607# This file is a shell script that caches the results of configure
11608# tests run on this system so they can be shared between configure
drh71eb93e2001-09-28 01:34:43 +000011609# scripts and configure runs, see configure's option --config-cache.
11610# It is not useful on other systems. If it contains results you don't
11611# want to keep, you may remove or edit it.
drh75897232000-05-29 14:26:00 +000011612#
drh71eb93e2001-09-28 01:34:43 +000011613# config.status only pays attention to the cache file if you give it
11614# the --recheck option to rerun configure.
drh75897232000-05-29 14:26:00 +000011615#
a.rottmann84e63352003-03-24 09:42:16 +000011616# `ac_cv_env_foo' variables (set or unset) will be overridden when
drh71eb93e2001-09-28 01:34:43 +000011617# loading this file, other *unset* `ac_cv_foo' will be assigned the
11618# following values.
11619
11620_ACEOF
11621
drh75897232000-05-29 14:26:00 +000011622# The following way of writing the cache mishandles newlines in values,
11623# but we know of no workaround that is simple, portable, and efficient.
drh8b727472009-01-19 18:18:40 +000011624# So, we kill variables containing newlines.
drh75897232000-05-29 14:26:00 +000011625# Ultrix sh set writes to stderr and can't be redirected directly,
11626# and sets the high bit in the cache file unless we assign to the vars.
drh8b727472009-01-19 18:18:40 +000011627(
11628 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11629 eval ac_val=\$$ac_var
11630 case $ac_val in #(
11631 *${as_nl}*)
11632 case $ac_var in #(
drhf922ca42015-05-14 15:39:18 +000011633 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11634$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
drh8b727472009-01-19 18:18:40 +000011635 esac
11636 case $ac_var in #(
11637 _ | IFS | as_nl) ;; #(
11638 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
drhf922ca42015-05-14 15:39:18 +000011639 *) { eval $ac_var=; unset $ac_var;} ;;
drh8b727472009-01-19 18:18:40 +000011640 esac ;;
11641 esac
11642 done
11643
drh71eb93e2001-09-28 01:34:43 +000011644 (set) 2>&1 |
drh8b727472009-01-19 18:18:40 +000011645 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11646 *${as_nl}ac_space=\ *)
drhf922ca42015-05-14 15:39:18 +000011647 # `set' does not quote correctly, so add quotes: double-quote
11648 # substitution turns \\\\ into \\, and sed turns \\ into \.
drh71eb93e2001-09-28 01:34:43 +000011649 sed -n \
a.rottmann964dbb12004-02-26 19:47:42 +000011650 "s/'/'\\\\''/g;
11651 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
drh8b727472009-01-19 18:18:40 +000011652 ;; #(
drh71eb93e2001-09-28 01:34:43 +000011653 *)
11654 # `set' quotes correctly as required by POSIX, so do not add quotes.
drh8b727472009-01-19 18:18:40 +000011655 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
drh71eb93e2001-09-28 01:34:43 +000011656 ;;
drh8b727472009-01-19 18:18:40 +000011657 esac |
11658 sort
11659) |
drh71eb93e2001-09-28 01:34:43 +000011660 sed '
drh8b727472009-01-19 18:18:40 +000011661 /^ac_cv_env_/b end
drh71eb93e2001-09-28 01:34:43 +000011662 t clear
drh8b727472009-01-19 18:18:40 +000011663 :clear
drh71eb93e2001-09-28 01:34:43 +000011664 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11665 t end
drh8b727472009-01-19 18:18:40 +000011666 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11667 :end' >>confcache
11668if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11669 if test -w "$cache_file"; then
drhf922ca42015-05-14 15:39:18 +000011670 if test "x$cache_file" != "x/dev/null"; then
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011672$as_echo "$as_me: updating cache $cache_file" >&6;}
drhf922ca42015-05-14 15:39:18 +000011673 if test ! -f "$cache_file" || test -h "$cache_file"; then
11674 cat confcache >"$cache_file"
11675 else
11676 case $cache_file in #(
11677 */* | ?:*)
11678 mv -f confcache "$cache_file"$$ &&
11679 mv -f "$cache_file"$$ "$cache_file" ;; #(
11680 *)
11681 mv -f confcache "$cache_file" ;;
11682 esac
11683 fi
11684 fi
drh75897232000-05-29 14:26:00 +000011685 else
drhf922ca42015-05-14 15:39:18 +000011686 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
drh8b727472009-01-19 18:18:40 +000011687$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
drh75897232000-05-29 14:26:00 +000011688 fi
11689fi
11690rm -f confcache
11691
drh75897232000-05-29 14:26:00 +000011692test "x$prefix" = xNONE && prefix=$ac_default_prefix
11693# Let make expand exec_prefix.
11694test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11695
mlcreechb87057f2008-03-06 07:19:20 +000011696DEFS=-DHAVE_CONFIG_H
a.rottmann84e63352003-03-24 09:42:16 +000011697
11698ac_libobjs=
11699ac_ltlibobjs=
drhf922ca42015-05-14 15:39:18 +000011700U=
a.rottmann84e63352003-03-24 09:42:16 +000011701for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11702 # 1. Remove the extension, and $U if already installed.
drh8b727472009-01-19 18:18:40 +000011703 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11704 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11705 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11706 # will be set to the directory where LIBOBJS objects are built.
drhf922ca42015-05-14 15:39:18 +000011707 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11708 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
a.rottmann84e63352003-03-24 09:42:16 +000011709done
11710LIBOBJS=$ac_libobjs
11711
11712LTLIBOBJS=$ac_ltlibobjs
11713
11714
11715
drhf922ca42015-05-14 15:39:18 +000011716: "${CONFIG_STATUS=./config.status}"
drh8b727472009-01-19 18:18:40 +000011717ac_write_fail=0
drh71eb93e2001-09-28 01:34:43 +000011718ac_clean_files_save=$ac_clean_files
11719ac_clean_files="$ac_clean_files $CONFIG_STATUS"
drhf922ca42015-05-14 15:39:18 +000011720{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
drh8b727472009-01-19 18:18:40 +000011721$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
drhf922ca42015-05-14 15:39:18 +000011722as_write_fail=0
11723cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000011724#! $SHELL
a.rottmann84e63352003-03-24 09:42:16 +000011725# Generated by $as_me.
drh75897232000-05-29 14:26:00 +000011726# Run this file to recreate the current configuration.
drh75897232000-05-29 14:26:00 +000011727# Compiler output produced by configure, useful for debugging
drh71eb93e2001-09-28 01:34:43 +000011728# configure, is in config.log if it exists.
drh75897232000-05-29 14:26:00 +000011729
drh71eb93e2001-09-28 01:34:43 +000011730debug=false
a.rottmann84e63352003-03-24 09:42:16 +000011731ac_cs_recheck=false
11732ac_cs_silent=false
drh710658c2012-01-16 13:00:05 +000011733
drhf922ca42015-05-14 15:39:18 +000011734SHELL=\${CONFIG_SHELL-$SHELL}
11735export SHELL
11736_ASEOF
11737cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11738## -------------------- ##
11739## M4sh Initialization. ##
11740## -------------------- ##
a.rottmann84e63352003-03-24 09:42:16 +000011741
drh8b727472009-01-19 18:18:40 +000011742# Be more Bourne compatible
11743DUALCASE=1; export DUALCASE # for MKS sh
drhf922ca42015-05-14 15:39:18 +000011744if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
drh71eb93e2001-09-28 01:34:43 +000011745 emulate sh
11746 NULLCMD=:
drh8b727472009-01-19 18:18:40 +000011747 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
a.rottmann84e63352003-03-24 09:42:16 +000011748 # is contrary to our usage. Disable this feature.
11749 alias -g '${1+"$@"}'='"$@"'
drh8b727472009-01-19 18:18:40 +000011750 setopt NO_GLOB_SUBST
11751else
drhf922ca42015-05-14 15:39:18 +000011752 case `(set -o) 2>/dev/null` in #(
11753 *posix*) :
11754 set -o posix ;; #(
11755 *) :
11756 ;;
drh8b727472009-01-19 18:18:40 +000011757esac
a.rottmann84e63352003-03-24 09:42:16 +000011758fi
drh8b727472009-01-19 18:18:40 +000011759
11760
drh8b727472009-01-19 18:18:40 +000011761as_nl='
11762'
11763export as_nl
11764# Printing a long string crashes Solaris 7 /usr/bin/printf.
11765as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11766as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11767as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
drhf922ca42015-05-14 15:39:18 +000011768# Prefer a ksh shell builtin over an external printf program on Solaris,
11769# but without wasting forks for bash or zsh.
11770if test -z "$BASH_VERSION$ZSH_VERSION" \
11771 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11772 as_echo='print -r --'
11773 as_echo_n='print -rn --'
11774elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
drh8b727472009-01-19 18:18:40 +000011775 as_echo='printf %s\n'
11776 as_echo_n='printf %s'
11777else
11778 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11779 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11780 as_echo_n='/usr/ucb/echo -n'
11781 else
11782 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11783 as_echo_n_body='eval
11784 arg=$1;
drhf922ca42015-05-14 15:39:18 +000011785 case $arg in #(
drh8b727472009-01-19 18:18:40 +000011786 *"$as_nl"*)
11787 expr "X$arg" : "X\\(.*\\)$as_nl";
11788 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11789 esac;
11790 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11791 '
11792 export as_echo_n_body
11793 as_echo_n='sh -c $as_echo_n_body as_echo'
11794 fi
11795 export as_echo_body
11796 as_echo='sh -c $as_echo_body as_echo'
11797fi
11798
11799# The user is always right.
11800if test "${PATH_SEPARATOR+set}" != set; then
11801 PATH_SEPARATOR=:
11802 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11803 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11804 PATH_SEPARATOR=';'
11805 }
11806fi
a.rottmann84e63352003-03-24 09:42:16 +000011807
mlcreech94984912008-03-04 19:03:08 +000011808
drh8b727472009-01-19 18:18:40 +000011809# IFS
11810# We need space, tab and new line, in precisely that order. Quoting is
11811# there to prevent editors from complaining about space-tab.
11812# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11813# splitting by setting IFS to empty value.)
11814IFS=" "" $as_nl"
11815
11816# Find who we are. Look in the path if we contain no directory separator.
drhf922ca42015-05-14 15:39:18 +000011817as_myself=
11818case $0 in #((
drh8b727472009-01-19 18:18:40 +000011819 *[\\/]* ) as_myself=$0 ;;
11820 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11821for as_dir in $PATH
11822do
11823 IFS=$as_save_IFS
11824 test -z "$as_dir" && as_dir=.
drhf922ca42015-05-14 15:39:18 +000011825 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11826 done
drh8b727472009-01-19 18:18:40 +000011827IFS=$as_save_IFS
11828
11829 ;;
11830esac
11831# We did not find ourselves, most probably we were run as `sh COMMAND'
11832# in which case we are not to be found in the path.
11833if test "x$as_myself" = x; then
11834 as_myself=$0
11835fi
11836if test ! -f "$as_myself"; then
11837 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
drhf922ca42015-05-14 15:39:18 +000011838 exit 1
drh8b727472009-01-19 18:18:40 +000011839fi
11840
drhf922ca42015-05-14 15:39:18 +000011841# Unset variables that we do not need and which cause bugs (e.g. in
11842# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11843# suppresses any "Segmentation fault" message there. '((' could
11844# trigger a bug in pdksh 5.2.14.
11845for as_var in BASH_ENV ENV MAIL MAILPATH
11846do eval test x\${$as_var+set} = xset \
11847 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
drh8b727472009-01-19 18:18:40 +000011848done
mlcreech94984912008-03-04 19:03:08 +000011849PS1='$ '
11850PS2='> '
11851PS4='+ '
11852
11853# NLS nuisances.
drh8b727472009-01-19 18:18:40 +000011854LC_ALL=C
11855export LC_ALL
11856LANGUAGE=C
11857export LANGUAGE
mlcreech94984912008-03-04 19:03:08 +000011858
drhf922ca42015-05-14 15:39:18 +000011859# CDPATH.
11860(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11861
11862
11863# as_fn_error STATUS ERROR [LINENO LOG_FD]
11864# ----------------------------------------
11865# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11866# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11867# script with STATUS, using 1 if that was 0.
11868as_fn_error ()
11869{
11870 as_status=$1; test $as_status -eq 0 && as_status=1
11871 if test "$4"; then
11872 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11873 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11874 fi
11875 $as_echo "$as_me: error: $2" >&2
11876 as_fn_exit $as_status
11877} # as_fn_error
11878
11879
11880# as_fn_set_status STATUS
11881# -----------------------
11882# Set $? to STATUS, without forking.
11883as_fn_set_status ()
11884{
11885 return $1
11886} # as_fn_set_status
11887
11888# as_fn_exit STATUS
11889# -----------------
11890# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11891as_fn_exit ()
11892{
11893 set +e
11894 as_fn_set_status $1
11895 exit $1
11896} # as_fn_exit
11897
11898# as_fn_unset VAR
11899# ---------------
11900# Portably unset VAR.
11901as_fn_unset ()
11902{
11903 { eval $1=; unset $1;}
11904}
11905as_unset=as_fn_unset
11906# as_fn_append VAR VALUE
11907# ----------------------
11908# Append the text in VALUE to the end of the definition contained in VAR. Take
11909# advantage of any shell optimizations that allow amortized linear growth over
11910# repeated appends, instead of the typical quadratic growth present in naive
11911# implementations.
11912if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11913 eval 'as_fn_append ()
11914 {
11915 eval $1+=\$2
11916 }'
11917else
11918 as_fn_append ()
11919 {
11920 eval $1=\$$1\$2
11921 }
11922fi # as_fn_append
11923
11924# as_fn_arith ARG...
11925# ------------------
11926# Perform arithmetic evaluation on the ARGs, and store the result in the
11927# global $as_val. Take advantage of shells that can avoid forks. The arguments
11928# must be portable across $(()) and expr.
11929if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11930 eval 'as_fn_arith ()
11931 {
11932 as_val=$(( $* ))
11933 }'
11934else
11935 as_fn_arith ()
11936 {
11937 as_val=`expr "$@" || test $? -eq 1`
11938 }
11939fi # as_fn_arith
11940
11941
drh8b727472009-01-19 18:18:40 +000011942if expr a : '\(a\)' >/dev/null 2>&1 &&
11943 test "X`expr 00001 : '.*\(...\)'`" = X001; then
mlcreech94984912008-03-04 19:03:08 +000011944 as_expr=expr
11945else
11946 as_expr=false
11947fi
11948
drh8b727472009-01-19 18:18:40 +000011949if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
mlcreech94984912008-03-04 19:03:08 +000011950 as_basename=basename
11951else
11952 as_basename=false
11953fi
11954
drhf922ca42015-05-14 15:39:18 +000011955if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11956 as_dirname=dirname
11957else
11958 as_dirname=false
11959fi
mlcreech94984912008-03-04 19:03:08 +000011960
drh8b727472009-01-19 18:18:40 +000011961as_me=`$as_basename -- "$0" ||
mlcreech94984912008-03-04 19:03:08 +000011962$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11963 X"$0" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000011964 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11965$as_echo X/"$0" |
11966 sed '/^.*\/\([^/][^/]*\)\/*$/{
11967 s//\1/
11968 q
11969 }
11970 /^X\/\(\/\/\)$/{
11971 s//\1/
11972 q
11973 }
11974 /^X\/\(\/\).*/{
11975 s//\1/
11976 q
11977 }
11978 s/.*/./; q'`
mlcreech94984912008-03-04 19:03:08 +000011979
drhf922ca42015-05-14 15:39:18 +000011980# Avoid depending upon Character Ranges.
11981as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11982as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11983as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11984as_cr_digits='0123456789'
11985as_cr_alnum=$as_cr_Letters$as_cr_digits
drh866108f2008-05-13 00:57:21 +000011986
drh8b727472009-01-19 18:18:40 +000011987ECHO_C= ECHO_N= ECHO_T=
drhf922ca42015-05-14 15:39:18 +000011988case `echo -n x` in #(((((
drh8b727472009-01-19 18:18:40 +000011989-n*)
drhf922ca42015-05-14 15:39:18 +000011990 case `echo 'xy\c'` in
drh8b727472009-01-19 18:18:40 +000011991 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
drhf922ca42015-05-14 15:39:18 +000011992 xy) ECHO_C='\c';;
11993 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11994 ECHO_T=' ';;
drh8b727472009-01-19 18:18:40 +000011995 esac;;
11996*)
11997 ECHO_N='-n';;
11998esac
drh71eb93e2001-09-28 01:34:43 +000011999
12000rm -f conf$$ conf$$.exe conf$$.file
drh8b727472009-01-19 18:18:40 +000012001if test -d conf$$.dir; then
12002 rm -f conf$$.dir/conf$$.file
12003else
12004 rm -f conf$$.dir
12005 mkdir conf$$.dir 2>/dev/null
12006fi
12007if (echo >conf$$.file) 2>/dev/null; then
12008 if ln -s conf$$.file conf$$ 2>/dev/null; then
drh866108f2008-05-13 00:57:21 +000012009 as_ln_s='ln -s'
drh8b727472009-01-19 18:18:40 +000012010 # ... but there are two gotchas:
12011 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12012 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
drhf922ca42015-05-14 15:39:18 +000012013 # In both cases, we have to default to `cp -pR'.
drh8b727472009-01-19 18:18:40 +000012014 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
drhf922ca42015-05-14 15:39:18 +000012015 as_ln_s='cp -pR'
drh8b727472009-01-19 18:18:40 +000012016 elif ln conf$$.file conf$$ 2>/dev/null; then
12017 as_ln_s=ln
12018 else
drhf922ca42015-05-14 15:39:18 +000012019 as_ln_s='cp -pR'
mlcreech636a9952008-05-05 22:52:56 +000012020 fi
drh71eb93e2001-09-28 01:34:43 +000012021else
drhf922ca42015-05-14 15:39:18 +000012022 as_ln_s='cp -pR'
drh71eb93e2001-09-28 01:34:43 +000012023fi
drh8b727472009-01-19 18:18:40 +000012024rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12025rmdir conf$$.dir 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +000012026
drhf922ca42015-05-14 15:39:18 +000012027
12028# as_fn_mkdir_p
12029# -------------
12030# Create "$as_dir" as a directory, including parents if necessary.
12031as_fn_mkdir_p ()
12032{
12033
12034 case $as_dir in #(
12035 -*) as_dir=./$as_dir;;
12036 esac
12037 test -d "$as_dir" || eval $as_mkdir_p || {
12038 as_dirs=
12039 while :; do
12040 case $as_dir in #(
12041 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12042 *) as_qdir=$as_dir;;
12043 esac
12044 as_dirs="'$as_qdir' $as_dirs"
12045 as_dir=`$as_dirname -- "$as_dir" ||
12046$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12047 X"$as_dir" : 'X\(//\)[^/]' \| \
12048 X"$as_dir" : 'X\(//\)$' \| \
12049 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12050$as_echo X"$as_dir" |
12051 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12052 s//\1/
12053 q
12054 }
12055 /^X\(\/\/\)[^/].*/{
12056 s//\1/
12057 q
12058 }
12059 /^X\(\/\/\)$/{
12060 s//\1/
12061 q
12062 }
12063 /^X\(\/\).*/{
12064 s//\1/
12065 q
12066 }
12067 s/.*/./; q'`
12068 test -d "$as_dir" && break
12069 done
12070 test -z "$as_dirs" || eval "mkdir $as_dirs"
12071 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12072
12073
12074} # as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000012075if mkdir -p . 2>/dev/null; then
drhf922ca42015-05-14 15:39:18 +000012076 as_mkdir_p='mkdir -p "$as_dir"'
drh71eb93e2001-09-28 01:34:43 +000012077else
a.rottmann964dbb12004-02-26 19:47:42 +000012078 test -d ./-p && rmdir ./-p
a.rottmann84e63352003-03-24 09:42:16 +000012079 as_mkdir_p=false
drh71eb93e2001-09-28 01:34:43 +000012080fi
12081
drhf922ca42015-05-14 15:39:18 +000012082
12083# as_fn_executable_p FILE
12084# -----------------------
12085# Test if FILE is an executable regular file.
12086as_fn_executable_p ()
12087{
12088 test -f "$1" && test -x "$1"
12089} # as_fn_executable_p
12090as_test_x='test -x'
12091as_executable_p=as_fn_executable_p
a.rottmann84e63352003-03-24 09:42:16 +000012092
12093# Sed expression to map a string onto a valid CPP name.
a.rottmann964dbb12004-02-26 19:47:42 +000012094as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012095
12096# Sed expression to map a string onto a valid variable name.
a.rottmann964dbb12004-02-26 19:47:42 +000012097as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
a.rottmann84e63352003-03-24 09:42:16 +000012098
drh71eb93e2001-09-28 01:34:43 +000012099
drh71eb93e2001-09-28 01:34:43 +000012100exec 6>&1
drhf922ca42015-05-14 15:39:18 +000012101## ----------------------------------- ##
12102## Main body of $CONFIG_STATUS script. ##
12103## ----------------------------------- ##
12104_ASEOF
12105test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012106
drhf922ca42015-05-14 15:39:18 +000012107cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12108# Save the log message, to keep $0 and so on meaningful, and to
a.rottmann84e63352003-03-24 09:42:16 +000012109# report actual input values of CONFIG_FILES etc. instead of their
drh8b727472009-01-19 18:18:40 +000012110# values after options handling.
12111ac_log="
drhc0a195b2016-05-20 15:24:14 +000012112This file was extended by sqlite $as_me 3.14.0, which was
drhf922ca42015-05-14 15:39:18 +000012113generated by GNU Autoconf 2.69. Invocation command line was
a.rottmann84e63352003-03-24 09:42:16 +000012114
12115 CONFIG_FILES = $CONFIG_FILES
12116 CONFIG_HEADERS = $CONFIG_HEADERS
12117 CONFIG_LINKS = $CONFIG_LINKS
12118 CONFIG_COMMANDS = $CONFIG_COMMANDS
12119 $ $0 $@
12120
drh8b727472009-01-19 18:18:40 +000012121on `(hostname || uname -n) 2>/dev/null | sed 1q`
12122"
12123
drh71eb93e2001-09-28 01:34:43 +000012124_ACEOF
12125
drhf922ca42015-05-14 15:39:18 +000012126case $ac_config_files in *"
12127"*) set x $ac_config_files; shift; ac_config_files=$*;;
12128esac
12129
12130case $ac_config_headers in *"
12131"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12132esac
12133
12134
drh8b727472009-01-19 18:18:40 +000012135cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012136# Files that config.status was made for.
drh8b727472009-01-19 18:18:40 +000012137config_files="$ac_config_files"
12138config_headers="$ac_config_headers"
12139config_commands="$ac_config_commands"
drh71eb93e2001-09-28 01:34:43 +000012140
drh8b727472009-01-19 18:18:40 +000012141_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012142
drh8b727472009-01-19 18:18:40 +000012143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012144ac_cs_usage="\
drhf922ca42015-05-14 15:39:18 +000012145\`$as_me' instantiates files and other configuration actions
12146from templates according to the current configuration. Unless the files
12147and actions are specified as TAGs, all are instantiated by default.
drh71eb93e2001-09-28 01:34:43 +000012148
drhf922ca42015-05-14 15:39:18 +000012149Usage: $0 [OPTION]... [TAG]...
drh71eb93e2001-09-28 01:34:43 +000012150
12151 -h, --help print this help, then exit
drh8b727472009-01-19 18:18:40 +000012152 -V, --version print version number and configuration settings, then exit
drhf922ca42015-05-14 15:39:18 +000012153 --config print configuration, then exit
12154 -q, --quiet, --silent
12155 do not print progress messages
drh71eb93e2001-09-28 01:34:43 +000012156 -d, --debug don't remove temporary files
12157 --recheck update $as_me by reconfiguring in the same conditions
drhf922ca42015-05-14 15:39:18 +000012158 --file=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012159 instantiate the configuration file FILE
drhf922ca42015-05-14 15:39:18 +000012160 --header=FILE[:TEMPLATE]
drh8b727472009-01-19 18:18:40 +000012161 instantiate the configuration header FILE
drh71eb93e2001-09-28 01:34:43 +000012162
12163Configuration files:
12164$config_files
12165
mlcreechb87057f2008-03-06 07:19:20 +000012166Configuration headers:
12167$config_headers
12168
mlcreech636a9952008-05-05 22:52:56 +000012169Configuration commands:
12170$config_commands
12171
drhf922ca42015-05-14 15:39:18 +000012172Report bugs to the package provider."
drh8b727472009-01-19 18:18:40 +000012173
mlcreech94984912008-03-04 19:03:08 +000012174_ACEOF
drh8b727472009-01-19 18:18:40 +000012175cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012176ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
drh866108f2008-05-13 00:57:21 +000012177ac_cs_version="\\
drhc0a195b2016-05-20 15:24:14 +000012178sqlite config.status 3.14.0
drhf922ca42015-05-14 15:39:18 +000012179configured by $0, generated by GNU Autoconf 2.69,
12180 with options \\"\$ac_cs_config\\"
drh866108f2008-05-13 00:57:21 +000012181
drhf922ca42015-05-14 15:39:18 +000012182Copyright (C) 2012 Free Software Foundation, Inc.
drh71eb93e2001-09-28 01:34:43 +000012183This config.status script is free software; the Free Software Foundation
12184gives unlimited permission to copy, distribute and modify it."
drh8b727472009-01-19 18:18:40 +000012185
12186ac_pwd='$ac_pwd'
12187srcdir='$srcdir'
12188INSTALL='$INSTALL'
drh8b727472009-01-19 18:18:40 +000012189test -n "\$AWK" || AWK=awk
a.rottmann84e63352003-03-24 09:42:16 +000012190_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012191
drh8b727472009-01-19 18:18:40 +000012192cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12193# The default lists apply if the user does not specify any file.
drh71eb93e2001-09-28 01:34:43 +000012194ac_need_defaults=:
12195while test $# != 0
12196do
12197 case $1 in
drhf922ca42015-05-14 15:39:18 +000012198 --*=?*)
drh8b727472009-01-19 18:18:40 +000012199 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12200 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
a.rottmann84e63352003-03-24 09:42:16 +000012201 ac_shift=:
drh71eb93e2001-09-28 01:34:43 +000012202 ;;
drhf922ca42015-05-14 15:39:18 +000012203 --*=)
12204 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12205 ac_optarg=
12206 ac_shift=:
12207 ;;
drh8b727472009-01-19 18:18:40 +000012208 *)
a.rottmann84e63352003-03-24 09:42:16 +000012209 ac_option=$1
12210 ac_optarg=$2
12211 ac_shift=shift
12212 ;;
drh75897232000-05-29 14:26:00 +000012213 esac
12214
a.rottmann84e63352003-03-24 09:42:16 +000012215 case $ac_option in
drh71eb93e2001-09-28 01:34:43 +000012216 # Handling of the options.
drh71eb93e2001-09-28 01:34:43 +000012217 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
a.rottmann84e63352003-03-24 09:42:16 +000012218 ac_cs_recheck=: ;;
drh8b727472009-01-19 18:18:40 +000012219 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12220 $as_echo "$ac_cs_version"; exit ;;
drhf922ca42015-05-14 15:39:18 +000012221 --config | --confi | --conf | --con | --co | --c )
12222 $as_echo "$ac_cs_config"; exit ;;
drh8b727472009-01-19 18:18:40 +000012223 --debug | --debu | --deb | --de | --d | -d )
drh71eb93e2001-09-28 01:34:43 +000012224 debug=: ;;
12225 --file | --fil | --fi | --f )
a.rottmann84e63352003-03-24 09:42:16 +000012226 $ac_shift
drh8b727472009-01-19 18:18:40 +000012227 case $ac_optarg in
12228 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
drhf922ca42015-05-14 15:39:18 +000012229 '') as_fn_error $? "missing file argument" ;;
drh8b727472009-01-19 18:18:40 +000012230 esac
drhf922ca42015-05-14 15:39:18 +000012231 as_fn_append CONFIG_FILES " '$ac_optarg'"
drh71eb93e2001-09-28 01:34:43 +000012232 ac_need_defaults=false;;
mlcreechb87057f2008-03-06 07:19:20 +000012233 --header | --heade | --head | --hea )
12234 $ac_shift
drh8b727472009-01-19 18:18:40 +000012235 case $ac_optarg in
12236 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12237 esac
drhf922ca42015-05-14 15:39:18 +000012238 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
mlcreechb87057f2008-03-06 07:19:20 +000012239 ac_need_defaults=false;;
drh8b727472009-01-19 18:18:40 +000012240 --he | --h)
12241 # Conflict between --help and --header
drhf922ca42015-05-14 15:39:18 +000012242 as_fn_error $? "ambiguous option: \`$1'
12243Try \`$0 --help' for more information.";;
drh8b727472009-01-19 18:18:40 +000012244 --help | --hel | -h )
12245 $as_echo "$ac_cs_usage"; exit ;;
a.rottmann84e63352003-03-24 09:42:16 +000012246 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12247 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12248 ac_cs_silent=: ;;
drh75897232000-05-29 14:26:00 +000012249
drh71eb93e2001-09-28 01:34:43 +000012250 # This is an error.
drhf922ca42015-05-14 15:39:18 +000012251 -*) as_fn_error $? "unrecognized option: \`$1'
12252Try \`$0 --help' for more information." ;;
drh71eb93e2001-09-28 01:34:43 +000012253
drhf922ca42015-05-14 15:39:18 +000012254 *) as_fn_append ac_config_targets " $1"
drh8b727472009-01-19 18:18:40 +000012255 ac_need_defaults=false ;;
drh71eb93e2001-09-28 01:34:43 +000012256
12257 esac
12258 shift
12259done
12260
a.rottmann84e63352003-03-24 09:42:16 +000012261ac_configure_extra_args=
drh71eb93e2001-09-28 01:34:43 +000012262
a.rottmann84e63352003-03-24 09:42:16 +000012263if $ac_cs_silent; then
12264 exec 6>/dev/null
12265 ac_configure_extra_args="$ac_configure_extra_args --silent"
12266fi
drh71eb93e2001-09-28 01:34:43 +000012267
12268_ACEOF
drh8b727472009-01-19 18:18:40 +000012269cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
a.rottmann84e63352003-03-24 09:42:16 +000012270if \$ac_cs_recheck; then
drhf922ca42015-05-14 15:39:18 +000012271 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
drh8b727472009-01-19 18:18:40 +000012272 shift
12273 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12274 CONFIG_SHELL='$SHELL'
12275 export CONFIG_SHELL
12276 exec "\$@"
a.rottmann84e63352003-03-24 09:42:16 +000012277fi
drh71eb93e2001-09-28 01:34:43 +000012278
a.rottmann84e63352003-03-24 09:42:16 +000012279_ACEOF
drh8b727472009-01-19 18:18:40 +000012280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12281exec 5>>config.log
12282{
12283 echo
12284 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12285## Running $as_me. ##
12286_ASBOX
12287 $as_echo "$ac_log"
12288} >&5
a.rottmann84e63352003-03-24 09:42:16 +000012289
drh8b727472009-01-19 18:18:40 +000012290_ACEOF
12291cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
mlcreech636a9952008-05-05 22:52:56 +000012292#
drh8b727472009-01-19 18:18:40 +000012293# INIT-COMMANDS
mlcreech636a9952008-05-05 22:52:56 +000012294#
12295
12296
12297# The HP-UX ksh and POSIX shell print the target directory to stdout
12298# if CDPATH is set.
12299(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12300
12301sed_quote_subst='$sed_quote_subst'
12302double_quote_subst='$double_quote_subst'
12303delay_variable_subst='$delay_variable_subst'
12304macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12305macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12306enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12307enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12308pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12309enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12310host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12311host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12312host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12313build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12314build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12315build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12316SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12317Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12318GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12319EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12320FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12321LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12322NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12323LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12324max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12325ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12326exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12327lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12328lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12329lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12330reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12331reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
vapier6acb2cf2009-01-28 04:46:28 +000012332OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
mlcreech636a9952008-05-05 22:52:56 +000012333deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12334file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12335AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12336AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12337STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12338RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12339old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12340old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12341old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12342CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12343CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12344compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12345GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12346lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12347lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12348lt_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"`'
12349lt_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"`'
12350objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12351SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12352ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12353MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12354lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12355lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12356lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12357lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12358lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12359need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12360DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12361NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12362LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12363OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12364OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12365libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12366shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12367extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12368archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12369enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12370export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12371whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12372compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12373old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12374old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12375archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12376archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12377module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12378module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12379with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12380allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12381no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12382hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12383hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12384hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12385hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12386hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12387hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12388hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12389hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12390inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12391link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12392fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12393always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12394export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12395exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12396include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12397prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12398file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12399variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12400need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12401need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12402version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12403runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12404shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12405shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12406libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12407library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12408soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12409postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12410postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12411finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12412finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12413hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12414sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12415sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12416hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12417enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12418enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12419enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12420old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12421striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12422
12423LTCC='$LTCC'
12424LTCFLAGS='$LTCFLAGS'
12425compiler='$compiler_DEFAULT'
12426
12427# Quote evaled strings.
12428for var in SED \
12429GREP \
12430EGREP \
12431FGREP \
12432LD \
12433NM \
12434LN_S \
12435lt_SP2NL \
12436lt_NL2SP \
12437reload_flag \
vapier6acb2cf2009-01-28 04:46:28 +000012438OBJDUMP \
mlcreech636a9952008-05-05 22:52:56 +000012439deplibs_check_method \
12440file_magic_cmd \
12441AR \
12442AR_FLAGS \
12443STRIP \
12444RANLIB \
12445CC \
12446CFLAGS \
12447compiler \
12448lt_cv_sys_global_symbol_pipe \
12449lt_cv_sys_global_symbol_to_cdecl \
12450lt_cv_sys_global_symbol_to_c_name_address \
12451lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12452SHELL \
12453ECHO \
12454lt_prog_compiler_no_builtin_flag \
12455lt_prog_compiler_wl \
12456lt_prog_compiler_pic \
12457lt_prog_compiler_static \
12458lt_cv_prog_compiler_c_o \
12459need_locks \
12460DSYMUTIL \
12461NMEDIT \
12462LIPO \
12463OTOOL \
12464OTOOL64 \
12465shrext_cmds \
12466export_dynamic_flag_spec \
12467whole_archive_flag_spec \
12468compiler_needs_object \
12469with_gnu_ld \
12470allow_undefined_flag \
12471no_undefined_flag \
12472hardcode_libdir_flag_spec \
12473hardcode_libdir_flag_spec_ld \
12474hardcode_libdir_separator \
12475fix_srcfile_path \
12476exclude_expsyms \
12477include_expsyms \
12478file_list_spec \
12479variables_saved_for_relink \
12480libname_spec \
12481library_names_spec \
12482soname_spec \
12483finish_eval \
12484old_striplib \
12485striplib; do
12486 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12487 *[\\\\\\\`\\"\\\$]*)
12488 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12489 ;;
12490 *)
12491 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12492 ;;
12493 esac
12494done
12495
12496# Double-quote double-evaled strings.
12497for var in reload_cmds \
12498old_postinstall_cmds \
12499old_postuninstall_cmds \
12500old_archive_cmds \
12501extract_expsyms_cmds \
12502old_archive_from_new_cmds \
12503old_archive_from_expsyms_cmds \
12504archive_cmds \
12505archive_expsym_cmds \
12506module_cmds \
12507module_expsym_cmds \
12508export_symbols_cmds \
12509prelink_cmds \
12510postinstall_cmds \
12511postuninstall_cmds \
12512finish_cmds \
12513sys_lib_search_path_spec \
12514sys_lib_dlsearch_path_spec; do
12515 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12516 *[\\\\\\\`\\"\\\$]*)
12517 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12518 ;;
12519 *)
12520 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12521 ;;
12522 esac
12523done
12524
12525# Fix-up fallback echo if it was mangled by the above quoting rules.
12526case \$lt_ECHO in
12527*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12528 ;;
12529esac
12530
12531ac_aux_dir='$ac_aux_dir'
12532xsi_shell='$xsi_shell'
12533lt_shell_append='$lt_shell_append'
12534
12535# See if we are running on zsh, and set the options which allow our
12536# commands through without removal of \ escapes INIT.
12537if test -n "\${ZSH_VERSION+set}" ; then
12538 setopt NO_GLOB_SUBST
12539fi
12540
12541
12542 PACKAGE='$PACKAGE'
12543 VERSION='$VERSION'
12544 TIMESTAMP='$TIMESTAMP'
12545 RM='$RM'
12546 ofile='$ofile'
12547
12548
12549
12550
mlcreech94984912008-03-04 19:03:08 +000012551_ACEOF
a.rottmann84e63352003-03-24 09:42:16 +000012552
drh8b727472009-01-19 18:18:40 +000012553cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
mlcreech94984912008-03-04 19:03:08 +000012554
drh8b727472009-01-19 18:18:40 +000012555# Handling of arguments.
drh71eb93e2001-09-28 01:34:43 +000012556for ac_config_target in $ac_config_targets
12557do
drh8b727472009-01-19 18:18:40 +000012558 case $ac_config_target in
12559 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12560 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12561 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12562 "sqlite3.pc") CONFIG_FILES="$CONFIG_FILES sqlite3.pc" ;;
12563
drhf922ca42015-05-14 15:39:18 +000012564 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
drh71eb93e2001-09-28 01:34:43 +000012565 esac
12566done
12567
drh8b727472009-01-19 18:18:40 +000012568
drh71eb93e2001-09-28 01:34:43 +000012569# If the user did not use the arguments to specify the items to instantiate,
12570# then the envvar interface is used. Set only those that are not.
12571# We use the long form for the default assignment because of an extremely
12572# bizarre bug on SunOS 4.1.3.
12573if $ac_need_defaults; then
12574 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
mlcreechb87057f2008-03-06 07:19:20 +000012575 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
mlcreech636a9952008-05-05 22:52:56 +000012576 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
drh71eb93e2001-09-28 01:34:43 +000012577fi
12578
a.rottmann84e63352003-03-24 09:42:16 +000012579# Have a temporary directory for convenience. Make it in the build tree
drh8b727472009-01-19 18:18:40 +000012580# simply because there is no reason against having it here, and in addition,
a.rottmann84e63352003-03-24 09:42:16 +000012581# creating and moving files from /tmp can sometimes cause problems.
drh8b727472009-01-19 18:18:40 +000012582# Hook for its removal unless debugging.
12583# Note that there is a small window in which the directory will not be cleaned:
12584# after its creation but before its name has been assigned to `$tmp'.
drh71eb93e2001-09-28 01:34:43 +000012585$debug ||
12586{
drhf922ca42015-05-14 15:39:18 +000012587 tmp= ac_tmp=
drh8b727472009-01-19 18:18:40 +000012588 trap 'exit_status=$?
drhf922ca42015-05-14 15:39:18 +000012589 : "${ac_tmp:=$tmp}"
12590 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
drh8b727472009-01-19 18:18:40 +000012591' 0
drhf922ca42015-05-14 15:39:18 +000012592 trap 'as_fn_exit 1' 1 2 13 15
drh71eb93e2001-09-28 01:34:43 +000012593}
drh71eb93e2001-09-28 01:34:43 +000012594# Create a (secure) tmp directory for tmp files.
a.rottmann84e63352003-03-24 09:42:16 +000012595
drh71eb93e2001-09-28 01:34:43 +000012596{
drh8b727472009-01-19 18:18:40 +000012597 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
drhf922ca42015-05-14 15:39:18 +000012598 test -d "$tmp"
drh71eb93e2001-09-28 01:34:43 +000012599} ||
12600{
drh8b727472009-01-19 18:18:40 +000012601 tmp=./conf$$-$RANDOM
12602 (umask 077 && mkdir "$tmp")
drhf922ca42015-05-14 15:39:18 +000012603} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12604ac_tmp=$tmp
drh71eb93e2001-09-28 01:34:43 +000012605
drh8b727472009-01-19 18:18:40 +000012606# Set up the scripts for CONFIG_FILES section.
12607# No need to generate them if there are no CONFIG_FILES.
12608# This happens for instance with `./config.status config.h'.
12609if test -n "$CONFIG_FILES"; then
12610
12611
drhf922ca42015-05-14 15:39:18 +000012612ac_cr=`echo X | tr X '\015'`
12613# On cygwin, bash can eat \r inside `` if the user requested igncr.
12614# But we know of no other shell where ac_cr would be empty at this
12615# point, so we can use a bashism as a fallback.
12616if test "x$ac_cr" = x; then
12617 eval ac_cr=\$\'\\r\'
12618fi
drh8b727472009-01-19 18:18:40 +000012619ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12620if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
drh0fe0c462011-09-22 00:56:38 +000012621 ac_cs_awk_cr='\\r'
drh8b727472009-01-19 18:18:40 +000012622else
12623 ac_cs_awk_cr=$ac_cr
12624fi
12625
drhf922ca42015-05-14 15:39:18 +000012626echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
a.rottmann84e63352003-03-24 09:42:16 +000012627_ACEOF
drh71eb93e2001-09-28 01:34:43 +000012628
mlcreech94984912008-03-04 19:03:08 +000012629
drh8b727472009-01-19 18:18:40 +000012630{
12631 echo "cat >conf$$subs.awk <<_ACEOF" &&
12632 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12633 echo "_ACEOF"
12634} >conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012635 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12636ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
drh8b727472009-01-19 18:18:40 +000012637ac_delim='%!_!# '
12638for ac_last_try in false false false false false :; do
12639 . ./conf$$subs.sh ||
drhf922ca42015-05-14 15:39:18 +000012640 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000012641
drhf922ca42015-05-14 15:39:18 +000012642 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12643 if test $ac_delim_n = $ac_delim_num; then
drh8b727472009-01-19 18:18:40 +000012644 break
12645 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012646 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012647 else
12648 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
drh71eb93e2001-09-28 01:34:43 +000012649 fi
drh8b727472009-01-19 18:18:40 +000012650done
12651rm -f conf$$subs.sh
12652
12653cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012654cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012655_ACEOF
12656sed -n '
12657h
12658s/^/S["/; s/!.*/"]=/
12659p
12660g
12661s/^[^!]*!//
12662:repl
12663t repl
12664s/'"$ac_delim"'$//
12665t delim
12666:nl
12667h
drhf922ca42015-05-14 15:39:18 +000012668s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012669t more1
12670s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12671p
12672n
12673b repl
12674:more1
12675s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12676p
12677g
12678s/.\{148\}//
12679t nl
12680:delim
12681h
drhf922ca42015-05-14 15:39:18 +000012682s/\(.\{148\}\)..*/\1/
drh8b727472009-01-19 18:18:40 +000012683t more2
12684s/["\\]/\\&/g; s/^/"/; s/$/"/
12685p
12686b
12687:more2
12688s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12689p
12690g
12691s/.\{148\}//
12692t delim
12693' <conf$$subs.awk | sed '
12694/^[^""]/{
12695 N
12696 s/\n//
12697}
12698' >>$CONFIG_STATUS || ac_write_fail=1
12699rm -f conf$$subs.awk
12700cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12701_ACAWK
drhf922ca42015-05-14 15:39:18 +000012702cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
drh8b727472009-01-19 18:18:40 +000012703 for (key in S) S_is_set[key] = 1
12704 FS = ""
12705
12706}
12707{
12708 line = $ 0
12709 nfields = split(line, field, "@")
12710 substed = 0
12711 len = length(field[1])
12712 for (i = 2; i < nfields; i++) {
12713 key = field[i]
12714 keylen = length(key)
12715 if (S_is_set[key]) {
12716 value = S[key]
12717 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12718 len += length(value) + length(field[++i])
12719 substed = 1
12720 } else
12721 len += 1 + keylen
12722 }
12723
12724 print line
12725}
12726
12727_ACAWK
12728_ACEOF
12729cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12730if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12731 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12732else
12733 cat
drhf922ca42015-05-14 15:39:18 +000012734fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12735 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012736_ACEOF
12737
drhf922ca42015-05-14 15:39:18 +000012738# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12739# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
drh8b727472009-01-19 18:18:40 +000012740# trailing colons and then remove the whole line if VPATH becomes empty
12741# (actually we leave an empty line to preserve line numbers).
12742if test "x$srcdir" = x.; then
drhf922ca42015-05-14 15:39:18 +000012743 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12744h
12745s///
12746s/^/:/
12747s/[ ]*$/:/
12748s/:\$(srcdir):/:/g
12749s/:\${srcdir}:/:/g
12750s/:@srcdir@:/:/g
12751s/^:*//
drh8b727472009-01-19 18:18:40 +000012752s/:*$//
drhf922ca42015-05-14 15:39:18 +000012753x
12754s/\(=[ ]*\).*/\1/
12755G
12756s/\n//
drh8b727472009-01-19 18:18:40 +000012757s/^[^=]*=[ ]*$//
12758}'
12759fi
12760
12761cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000012762fi # test -n "$CONFIG_FILES"
12763
drh8b727472009-01-19 18:18:40 +000012764# Set up the scripts for CONFIG_HEADERS section.
12765# No need to generate them if there are no CONFIG_HEADERS.
12766# This happens for instance with `./config.status Makefile'.
12767if test -n "$CONFIG_HEADERS"; then
drhf922ca42015-05-14 15:39:18 +000012768cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
drh8b727472009-01-19 18:18:40 +000012769BEGIN {
mlcreech636a9952008-05-05 22:52:56 +000012770_ACEOF
drh8b727472009-01-19 18:18:40 +000012771
12772# Transform confdefs.h into an awk script `defines.awk', embedded as
12773# here-document in config.status, that substitutes the proper values into
12774# config.h.in to produce config.h.
12775
12776# Create a delimiter string that does not exist in confdefs.h, to ease
12777# handling of long lines.
12778ac_delim='%!_!# '
12779for ac_last_try in false false :; do
drhf922ca42015-05-14 15:39:18 +000012780 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12781 if test -z "$ac_tt"; then
drh8b727472009-01-19 18:18:40 +000012782 break
12783 elif $ac_last_try; then
drhf922ca42015-05-14 15:39:18 +000012784 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012785 else
12786 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12787 fi
12788done
12789
12790# For the awk script, D is an array of macro values keyed by name,
12791# likewise P contains macro parameters if any. Preserve backslash
12792# newline sequences.
12793
12794ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12795sed -n '
12796s/.\{148\}/&'"$ac_delim"'/g
12797t rset
12798:rset
12799s/^[ ]*#[ ]*define[ ][ ]*/ /
12800t def
12801d
12802:def
12803s/\\$//
12804t bsnl
12805s/["\\]/\\&/g
12806s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12807D["\1"]=" \3"/p
12808s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12809d
12810:bsnl
12811s/["\\]/\\&/g
12812s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12813D["\1"]=" \3\\\\\\n"\\/p
12814t cont
12815s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12816t cont
12817d
12818:cont
12819n
12820s/.\{148\}/&'"$ac_delim"'/g
12821t clear
12822:clear
12823s/\\$//
12824t bsnlc
12825s/["\\]/\\&/g; s/^/"/; s/$/"/p
12826d
12827:bsnlc
12828s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12829b cont
12830' <confdefs.h | sed '
12831s/'"$ac_delim"'/"\\\
12832"/g' >>$CONFIG_STATUS || ac_write_fail=1
12833
12834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12835 for (key in D) D_is_set[key] = 1
12836 FS = ""
12837}
12838/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12839 line = \$ 0
12840 split(line, arg, " ")
12841 if (arg[1] == "#") {
12842 defundef = arg[2]
12843 mac1 = arg[3]
12844 } else {
12845 defundef = substr(arg[1], 2)
12846 mac1 = arg[2]
12847 }
12848 split(mac1, mac2, "(") #)
12849 macro = mac2[1]
drhf922ca42015-05-14 15:39:18 +000012850 prefix = substr(line, 1, index(line, defundef) - 1)
drh8b727472009-01-19 18:18:40 +000012851 if (D_is_set[macro]) {
12852 # Preserve the white space surrounding the "#".
drh8b727472009-01-19 18:18:40 +000012853 print prefix "define", macro P[macro] D[macro]
12854 next
12855 } else {
12856 # Replace #undef with comments. This is necessary, for example,
12857 # in the case of _POSIX_SOURCE, which is predefined and required
12858 # on some systems where configure will not decide to define it.
12859 if (defundef == "undef") {
drhf922ca42015-05-14 15:39:18 +000012860 print "/*", prefix defundef, macro, "*/"
drh8b727472009-01-19 18:18:40 +000012861 next
12862 }
12863 }
12864}
12865{ print }
12866_ACAWK
12867_ACEOF
12868cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drhf922ca42015-05-14 15:39:18 +000012869 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000012870fi # test -n "$CONFIG_HEADERS"
12871
12872
12873eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12874shift
12875for ac_tag
12876do
12877 case $ac_tag in
12878 :[FHLC]) ac_mode=$ac_tag; continue;;
12879 esac
12880 case $ac_mode$ac_tag in
12881 :[FHL]*:*);;
drhf922ca42015-05-14 15:39:18 +000012882 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000012883 :[FH]-) ac_tag=-:-;;
12884 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12885 esac
12886 ac_save_IFS=$IFS
12887 IFS=:
12888 set x $ac_tag
12889 IFS=$ac_save_IFS
12890 shift
12891 ac_file=$1
12892 shift
12893
12894 case $ac_mode in
12895 :L) ac_source=$1;;
12896 :[FH])
12897 ac_file_inputs=
12898 for ac_f
12899 do
12900 case $ac_f in
drhf922ca42015-05-14 15:39:18 +000012901 -) ac_f="$ac_tmp/stdin";;
drh8b727472009-01-19 18:18:40 +000012902 *) # Look for the file first in the build tree, then in the source tree
12903 # (if the path is not absolute). The absolute path cannot be DOS-style,
12904 # because $ac_f cannot contain `:'.
12905 test -f "$ac_f" ||
12906 case $ac_f in
12907 [\\/$]*) false;;
12908 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12909 esac ||
drhf922ca42015-05-14 15:39:18 +000012910 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
drh8b727472009-01-19 18:18:40 +000012911 esac
12912 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
drhf922ca42015-05-14 15:39:18 +000012913 as_fn_append ac_file_inputs " '$ac_f'"
drh8b727472009-01-19 18:18:40 +000012914 done
12915
12916 # Let's still pretend it is `configure' which instantiates (i.e., don't
12917 # use $as_me), people would be surprised to read:
12918 # /* config.h. Generated by config.status. */
12919 configure_input='Generated from '`
12920 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12921 `' by configure.'
12922 if test x"$ac_file" != x-; then
12923 configure_input="$ac_file. $configure_input"
drhf922ca42015-05-14 15:39:18 +000012924 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
drh8b727472009-01-19 18:18:40 +000012925$as_echo "$as_me: creating $ac_file" >&6;}
12926 fi
12927 # Neutralize special characters interpreted by sed in replacement strings.
12928 case $configure_input in #(
12929 *\&* | *\|* | *\\* )
12930 ac_sed_conf_input=`$as_echo "$configure_input" |
12931 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12932 *) ac_sed_conf_input=$configure_input;;
12933 esac
12934
12935 case $ac_tag in
drhf922ca42015-05-14 15:39:18 +000012936 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12937 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
drh8b727472009-01-19 18:18:40 +000012938 esac
12939 ;;
drh71eb93e2001-09-28 01:34:43 +000012940 esac
12941
drh8b727472009-01-19 18:18:40 +000012942 ac_dir=`$as_dirname -- "$ac_file" ||
a.rottmann84e63352003-03-24 09:42:16 +000012943$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
a.rottmann964dbb12004-02-26 19:47:42 +000012944 X"$ac_file" : 'X\(//\)[^/]' \| \
12945 X"$ac_file" : 'X\(//\)$' \| \
drh8b727472009-01-19 18:18:40 +000012946 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12947$as_echo X"$ac_file" |
12948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12949 s//\1/
12950 q
12951 }
12952 /^X\(\/\/\)[^/].*/{
12953 s//\1/
12954 q
12955 }
12956 /^X\(\/\/\)$/{
12957 s//\1/
12958 q
12959 }
12960 /^X\(\/\).*/{
12961 s//\1/
12962 q
12963 }
12964 s/.*/./; q'`
drhf922ca42015-05-14 15:39:18 +000012965 as_dir="$ac_dir"; as_fn_mkdir_p
a.rottmann84e63352003-03-24 09:42:16 +000012966 ac_builddir=.
12967
drh8b727472009-01-19 18:18:40 +000012968case "$ac_dir" in
12969.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12970*)
12971 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12972 # A ".." for each directory in $ac_dir_suffix.
12973 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12974 case $ac_top_builddir_sub in
12975 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12976 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12977 esac ;;
12978esac
12979ac_abs_top_builddir=$ac_pwd
12980ac_abs_builddir=$ac_pwd$ac_dir_suffix
12981# for backward compatibility:
12982ac_top_builddir=$ac_top_build_prefix
a.rottmann84e63352003-03-24 09:42:16 +000012983
12984case $srcdir in
drh8b727472009-01-19 18:18:40 +000012985 .) # We are building in place.
a.rottmann84e63352003-03-24 09:42:16 +000012986 ac_srcdir=.
drh8b727472009-01-19 18:18:40 +000012987 ac_top_srcdir=$ac_top_builddir_sub
12988 ac_abs_top_srcdir=$ac_pwd ;;
12989 [\\/]* | ?:[\\/]* ) # Absolute name.
a.rottmann84e63352003-03-24 09:42:16 +000012990 ac_srcdir=$srcdir$ac_dir_suffix;
drh8b727472009-01-19 18:18:40 +000012991 ac_top_srcdir=$srcdir
12992 ac_abs_top_srcdir=$srcdir ;;
12993 *) # Relative name.
12994 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12995 ac_top_srcdir=$ac_top_build_prefix$srcdir
12996 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
a.rottmann84e63352003-03-24 09:42:16 +000012997esac
drh8b727472009-01-19 18:18:40 +000012998ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
a.rottmann964dbb12004-02-26 19:47:42 +000012999
a.rottmann84e63352003-03-24 09:42:16 +000013000
drh8b727472009-01-19 18:18:40 +000013001 case $ac_mode in
13002 :F)
13003 #
13004 # CONFIG_FILE
13005 #
drh75897232000-05-29 14:26:00 +000013006
drh71eb93e2001-09-28 01:34:43 +000013007 case $INSTALL in
13008 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
drh8b727472009-01-19 18:18:40 +000013009 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
drh75897232000-05-29 14:26:00 +000013010 esac
mlcreech94984912008-03-04 19:03:08 +000013011_ACEOF
drh8b727472009-01-19 18:18:40 +000013012
13013cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13014# If the template does not know about datarootdir, expand it.
13015# FIXME: This hack should be removed a few years after 2.60.
13016ac_datarootdir_hack=; ac_datarootdir_seen=
drh8b727472009-01-19 18:18:40 +000013017ac_sed_dataroot='
13018/datarootdir/ {
13019 p
13020 q
13021}
13022/@datadir@/p
13023/@docdir@/p
13024/@infodir@/p
13025/@localedir@/p
drhf922ca42015-05-14 15:39:18 +000013026/@mandir@/p'
drh8b727472009-01-19 18:18:40 +000013027case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13028*datarootdir*) ac_datarootdir_seen=yes;;
13029*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
drhf922ca42015-05-14 15:39:18 +000013030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
drh8b727472009-01-19 18:18:40 +000013031$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13032_ACEOF
13033cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13034 ac_datarootdir_hack='
13035 s&@datadir@&$datadir&g
13036 s&@docdir@&$docdir&g
13037 s&@infodir@&$infodir&g
13038 s&@localedir@&$localedir&g
13039 s&@mandir@&$mandir&g
drhf922ca42015-05-14 15:39:18 +000013040 s&\\\${datarootdir}&$datarootdir&g' ;;
drh8b727472009-01-19 18:18:40 +000013041esac
13042_ACEOF
13043
13044# Neutralize VPATH when `$srcdir' = `.'.
13045# Shell code in configure.ac might set extrasub.
13046# FIXME: do we really want to maintain this feature?
13047cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13048ac_sed_extra="$ac_vpsub
drh71eb93e2001-09-28 01:34:43 +000013049$extrasub
a.rottmann84e63352003-03-24 09:42:16 +000013050_ACEOF
drh8b727472009-01-19 18:18:40 +000013051cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
drh71eb93e2001-09-28 01:34:43 +000013052:t
13053/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
drh8b727472009-01-19 18:18:40 +000013054s|@configure_input@|$ac_sed_conf_input|;t t
13055s&@top_builddir@&$ac_top_builddir_sub&;t t
13056s&@top_build_prefix@&$ac_top_build_prefix&;t t
13057s&@srcdir@&$ac_srcdir&;t t
13058s&@abs_srcdir@&$ac_abs_srcdir&;t t
13059s&@top_srcdir@&$ac_top_srcdir&;t t
13060s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13061s&@builddir@&$ac_builddir&;t t
13062s&@abs_builddir@&$ac_abs_builddir&;t t
13063s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13064s&@INSTALL@&$ac_INSTALL&;t t
13065$ac_datarootdir_hack
13066"
drhf922ca42015-05-14 15:39:18 +000013067eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13068 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
mlcreech94984912008-03-04 19:03:08 +000013069
drh8b727472009-01-19 18:18:40 +000013070test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
drhf922ca42015-05-14 15:39:18 +000013071 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13072 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13073 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13075which seems to be undefined. Please make sure it is defined" >&5
drh8b727472009-01-19 18:18:40 +000013076$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
drhf922ca42015-05-14 15:39:18 +000013077which seems to be undefined. Please make sure it is defined" >&2;}
drh866108f2008-05-13 00:57:21 +000013078
drhf922ca42015-05-14 15:39:18 +000013079 rm -f "$ac_tmp/stdin"
drh866108f2008-05-13 00:57:21 +000013080 case $ac_file in
drhf922ca42015-05-14 15:39:18 +000013081 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13082 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
drh8b727472009-01-19 18:18:40 +000013083 esac \
drhf922ca42015-05-14 15:39:18 +000013084 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013085 ;;
13086 :H)
13087 #
13088 # CONFIG_HEADER
13089 #
drh866108f2008-05-13 00:57:21 +000013090 if test x"$ac_file" != x-; then
drh8b727472009-01-19 18:18:40 +000013091 {
13092 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000013093 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13094 } >"$ac_tmp/config.h" \
13095 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13096 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
drh8b727472009-01-19 18:18:40 +000013098$as_echo "$as_me: $ac_file is unchanged" >&6;}
drh866108f2008-05-13 00:57:21 +000013099 else
drh8b727472009-01-19 18:18:40 +000013100 rm -f "$ac_file"
drhf922ca42015-05-14 15:39:18 +000013101 mv "$ac_tmp/config.h" "$ac_file" \
13102 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000013103 fi
13104 else
drh8b727472009-01-19 18:18:40 +000013105 $as_echo "/* $configure_input */" \
drhf922ca42015-05-14 15:39:18 +000013106 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13107 || as_fn_error $? "could not create -" "$LINENO" 5
drh866108f2008-05-13 00:57:21 +000013108 fi
drh8b727472009-01-19 18:18:40 +000013109 ;;
drh866108f2008-05-13 00:57:21 +000013110
drhf922ca42015-05-14 15:39:18 +000013111 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
drh8b727472009-01-19 18:18:40 +000013112$as_echo "$as_me: executing $ac_file commands" >&6;}
13113 ;;
13114 esac
drh866108f2008-05-13 00:57:21 +000013115
13116
drh8b727472009-01-19 18:18:40 +000013117 case $ac_file$ac_mode in
13118 "libtool":C)
mlcreech636a9952008-05-05 22:52:56 +000013119
13120 # See if we are running on zsh, and set the options which allow our
13121 # commands through without removal of \ escapes.
13122 if test -n "${ZSH_VERSION+set}" ; then
13123 setopt NO_GLOB_SUBST
13124 fi
13125
13126 cfgfile="${ofile}T"
13127 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13128 $RM "$cfgfile"
13129
13130 cat <<_LT_EOF >> "$cfgfile"
13131#! $SHELL
13132
13133# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13134# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13135# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13136# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13137#
13138# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13139# 2006, 2007, 2008 Free Software Foundation, Inc.
13140# Written by Gordon Matzigkeit, 1996
13141#
13142# This file is part of GNU Libtool.
13143#
13144# GNU Libtool is free software; you can redistribute it and/or
13145# modify it under the terms of the GNU General Public License as
13146# published by the Free Software Foundation; either version 2 of
13147# the License, or (at your option) any later version.
13148#
13149# As a special exception to the GNU General Public License,
13150# if you distribute this file as part of a program or library that
13151# is built using GNU Libtool, you may include this file under the
13152# same distribution terms that you use for the rest of that program.
13153#
13154# GNU Libtool is distributed in the hope that it will be useful,
13155# but WITHOUT ANY WARRANTY; without even the implied warranty of
13156# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13157# GNU General Public License for more details.
13158#
13159# You should have received a copy of the GNU General Public License
13160# along with GNU Libtool; see the file COPYING. If not, a copy
13161# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13162# obtained by writing to the Free Software Foundation, Inc.,
13163# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13164
13165
13166# The names of the tagged configurations supported by this script.
13167available_tags=""
13168
13169# ### BEGIN LIBTOOL CONFIG
13170
13171# Which release of libtool.m4 was used?
13172macro_version=$macro_version
13173macro_revision=$macro_revision
13174
13175# Whether or not to build shared libraries.
13176build_libtool_libs=$enable_shared
13177
13178# Whether or not to build static libraries.
13179build_old_libs=$enable_static
13180
13181# What type of objects to build.
13182pic_mode=$pic_mode
13183
13184# Whether or not to optimize for fast installation.
13185fast_install=$enable_fast_install
13186
13187# The host system.
13188host_alias=$host_alias
13189host=$host
13190host_os=$host_os
13191
13192# The build system.
13193build_alias=$build_alias
13194build=$build
13195build_os=$build_os
13196
13197# A sed program that does not truncate output.
13198SED=$lt_SED
13199
13200# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13201Xsed="\$SED -e 1s/^X//"
13202
13203# A grep program that handles long lines.
13204GREP=$lt_GREP
13205
13206# An ERE matcher.
13207EGREP=$lt_EGREP
13208
13209# A literal string matcher.
13210FGREP=$lt_FGREP
13211
13212# A BSD- or MS-compatible name lister.
13213NM=$lt_NM
13214
13215# Whether we need soft or hard links.
13216LN_S=$lt_LN_S
13217
13218# What is the maximum length of a command?
13219max_cmd_len=$max_cmd_len
13220
13221# Object file suffix (normally "o").
13222objext=$ac_objext
13223
13224# Executable file suffix (normally "").
13225exeext=$exeext
13226
13227# whether the shell understands "unset".
13228lt_unset=$lt_unset
13229
13230# turn spaces into newlines.
13231SP2NL=$lt_lt_SP2NL
13232
13233# turn newlines into spaces.
13234NL2SP=$lt_lt_NL2SP
13235
13236# How to create reloadable object files.
13237reload_flag=$lt_reload_flag
13238reload_cmds=$lt_reload_cmds
13239
vapier6acb2cf2009-01-28 04:46:28 +000013240# An object symbol dumper.
13241OBJDUMP=$lt_OBJDUMP
13242
mlcreech636a9952008-05-05 22:52:56 +000013243# Method to check whether dependent libraries are shared objects.
13244deplibs_check_method=$lt_deplibs_check_method
13245
13246# Command to use when deplibs_check_method == "file_magic".
13247file_magic_cmd=$lt_file_magic_cmd
13248
13249# The archiver.
13250AR=$lt_AR
13251AR_FLAGS=$lt_AR_FLAGS
13252
13253# A symbol stripping program.
13254STRIP=$lt_STRIP
13255
13256# Commands used to install an old-style archive.
13257RANLIB=$lt_RANLIB
13258old_postinstall_cmds=$lt_old_postinstall_cmds
13259old_postuninstall_cmds=$lt_old_postuninstall_cmds
13260
13261# A C compiler.
13262LTCC=$lt_CC
13263
13264# LTCC compiler flags.
13265LTCFLAGS=$lt_CFLAGS
13266
13267# Take the output of nm and produce a listing of raw symbols and C names.
13268global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13269
13270# Transform the output of nm in a proper C declaration.
13271global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13272
13273# Transform the output of nm in a C name address pair.
13274global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13275
13276# Transform the output of nm in a C name address pair when lib prefix is needed.
13277global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13278
13279# The name of the directory that contains temporary libtool files.
13280objdir=$objdir
13281
13282# Shell to use when invoking shell scripts.
13283SHELL=$lt_SHELL
13284
13285# An echo program that does not interpret backslashes.
13286ECHO=$lt_ECHO
13287
13288# Used to examine libraries when file_magic_cmd begins with "file".
13289MAGIC_CMD=$MAGIC_CMD
13290
13291# Must we lock files when doing compilation?
13292need_locks=$lt_need_locks
13293
13294# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13295DSYMUTIL=$lt_DSYMUTIL
13296
13297# Tool to change global to local symbols on Mac OS X.
13298NMEDIT=$lt_NMEDIT
13299
13300# Tool to manipulate fat objects and archives on Mac OS X.
13301LIPO=$lt_LIPO
13302
13303# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13304OTOOL=$lt_OTOOL
13305
13306# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13307OTOOL64=$lt_OTOOL64
13308
13309# Old archive suffix (normally "a").
13310libext=$libext
13311
13312# Shared library suffix (normally ".so").
13313shrext_cmds=$lt_shrext_cmds
13314
13315# The commands to extract the exported symbol list from a shared archive.
13316extract_expsyms_cmds=$lt_extract_expsyms_cmds
13317
13318# Variables whose values should be saved in libtool wrapper scripts and
13319# restored at link time.
13320variables_saved_for_relink=$lt_variables_saved_for_relink
13321
13322# Do we need the "lib" prefix for modules?
13323need_lib_prefix=$need_lib_prefix
13324
13325# Do we need a version for libraries?
13326need_version=$need_version
13327
13328# Library versioning type.
13329version_type=$version_type
13330
13331# Shared library runtime path variable.
13332runpath_var=$runpath_var
13333
13334# Shared library path variable.
13335shlibpath_var=$shlibpath_var
13336
13337# Is shlibpath searched before the hard-coded library search path?
13338shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13339
13340# Format of library name prefix.
13341libname_spec=$lt_libname_spec
13342
13343# List of archive names. First name is the real one, the rest are links.
13344# The last name is the one that the linker finds with -lNAME
13345library_names_spec=$lt_library_names_spec
13346
13347# The coded name of the library, if different from the real name.
13348soname_spec=$lt_soname_spec
13349
13350# Command to use after installation of a shared archive.
13351postinstall_cmds=$lt_postinstall_cmds
13352
13353# Command to use after uninstallation of a shared archive.
13354postuninstall_cmds=$lt_postuninstall_cmds
13355
13356# Commands used to finish a libtool library installation in a directory.
13357finish_cmds=$lt_finish_cmds
13358
13359# As "finish_cmds", except a single script fragment to be evaled but
13360# not shown.
13361finish_eval=$lt_finish_eval
13362
13363# Whether we should hardcode library paths into libraries.
13364hardcode_into_libs=$hardcode_into_libs
13365
13366# Compile-time system search path for libraries.
13367sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13368
13369# Run-time system search path for libraries.
13370sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13371
13372# Whether dlopen is supported.
13373dlopen_support=$enable_dlopen
13374
13375# Whether dlopen of programs is supported.
13376dlopen_self=$enable_dlopen_self
13377
13378# Whether dlopen of statically linked programs is supported.
13379dlopen_self_static=$enable_dlopen_self_static
13380
13381# Commands to strip libraries.
13382old_striplib=$lt_old_striplib
13383striplib=$lt_striplib
13384
13385
13386# The linker used to build libraries.
13387LD=$lt_LD
13388
13389# Commands used to build an old-style archive.
13390old_archive_cmds=$lt_old_archive_cmds
13391
13392# A language specific compiler.
13393CC=$lt_compiler
13394
13395# Is the compiler the GNU compiler?
13396with_gcc=$GCC
13397
13398# Compiler flag to turn off builtin functions.
13399no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13400
13401# How to pass a linker flag through the compiler.
13402wl=$lt_lt_prog_compiler_wl
13403
13404# Additional compiler flags for building library objects.
13405pic_flag=$lt_lt_prog_compiler_pic
13406
13407# Compiler flag to prevent dynamic linking.
13408link_static_flag=$lt_lt_prog_compiler_static
13409
13410# Does compiler simultaneously support -c and -o options?
13411compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13412
13413# Whether or not to add -lc for building shared libraries.
13414build_libtool_need_lc=$archive_cmds_need_lc
13415
13416# Whether or not to disallow shared libs when runtime libs are static.
13417allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13418
13419# Compiler flag to allow reflexive dlopens.
13420export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13421
13422# Compiler flag to generate shared objects directly from archives.
13423whole_archive_flag_spec=$lt_whole_archive_flag_spec
13424
13425# Whether the compiler copes with passing no objects directly.
13426compiler_needs_object=$lt_compiler_needs_object
13427
13428# Create an old-style archive from a shared archive.
13429old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13430
13431# Create a temporary old-style archive to link instead of a shared archive.
13432old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13433
13434# Commands used to build a shared archive.
13435archive_cmds=$lt_archive_cmds
13436archive_expsym_cmds=$lt_archive_expsym_cmds
13437
13438# Commands used to build a loadable module if different from building
13439# a shared archive.
13440module_cmds=$lt_module_cmds
13441module_expsym_cmds=$lt_module_expsym_cmds
13442
13443# Whether we are building with GNU ld or not.
13444with_gnu_ld=$lt_with_gnu_ld
13445
13446# Flag that allows shared libraries with undefined symbols to be built.
13447allow_undefined_flag=$lt_allow_undefined_flag
13448
13449# Flag that enforces no undefined symbols.
13450no_undefined_flag=$lt_no_undefined_flag
13451
13452# Flag to hardcode \$libdir into a binary during linking.
13453# This must work even if \$libdir does not exist
13454hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13455
13456# If ld is used when linking, flag to hardcode \$libdir into a binary
13457# during linking. This must work even if \$libdir does not exist.
13458hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13459
13460# Whether we need a single "-rpath" flag with a separated argument.
13461hardcode_libdir_separator=$lt_hardcode_libdir_separator
13462
13463# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13464# DIR into the resulting binary.
13465hardcode_direct=$hardcode_direct
13466
13467# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13468# DIR into the resulting binary and the resulting library dependency is
13469# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13470# library is relocated.
13471hardcode_direct_absolute=$hardcode_direct_absolute
13472
13473# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13474# into the resulting binary.
13475hardcode_minus_L=$hardcode_minus_L
13476
13477# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13478# into the resulting binary.
13479hardcode_shlibpath_var=$hardcode_shlibpath_var
13480
13481# Set to "yes" if building a shared library automatically hardcodes DIR
13482# into the library and all subsequent libraries and executables linked
13483# against it.
13484hardcode_automatic=$hardcode_automatic
13485
13486# Set to yes if linker adds runtime paths of dependent libraries
13487# to runtime path list.
13488inherit_rpath=$inherit_rpath
13489
13490# Whether libtool must link a program against all its dependency libraries.
13491link_all_deplibs=$link_all_deplibs
13492
13493# Fix the shell variable \$srcfile for the compiler.
13494fix_srcfile_path=$lt_fix_srcfile_path
13495
13496# Set to "yes" if exported symbols are required.
13497always_export_symbols=$always_export_symbols
13498
13499# The commands to list exported symbols.
13500export_symbols_cmds=$lt_export_symbols_cmds
13501
13502# Symbols that should not be listed in the preloaded symbols.
13503exclude_expsyms=$lt_exclude_expsyms
13504
13505# Symbols that must always be exported.
13506include_expsyms=$lt_include_expsyms
13507
13508# Commands necessary for linking programs (against libraries) with templates.
13509prelink_cmds=$lt_prelink_cmds
13510
13511# Specify filename containing input files.
13512file_list_spec=$lt_file_list_spec
13513
13514# How to hardcode a shared library path into an executable.
13515hardcode_action=$hardcode_action
13516
13517# ### END LIBTOOL CONFIG
13518
13519_LT_EOF
13520
13521 case $host_os in
13522 aix3*)
13523 cat <<\_LT_EOF >> "$cfgfile"
13524# AIX sometimes has problems with the GCC collect2 program. For some
13525# reason, if we set the COLLECT_NAMES environment variable, the problems
13526# vanish in a puff of smoke.
13527if test "X${COLLECT_NAMES+set}" != Xset; then
13528 COLLECT_NAMES=
13529 export COLLECT_NAMES
13530fi
13531_LT_EOF
13532 ;;
13533 esac
13534
13535
13536ltmain="$ac_aux_dir/ltmain.sh"
13537
13538
13539 # We use sed instead of cat because bash on DJGPP gets confused if
13540 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13541 # text mode, it properly converts lines to CR/LF. This bash problem
13542 # is reportedly fixed, but why not run on old versions too?
13543 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13544 || (rm -f "$cfgfile"; exit 1)
13545
13546 case $xsi_shell in
13547 yes)
13548 cat << \_LT_EOF >> "$cfgfile"
13549
13550# func_dirname file append nondir_replacement
13551# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13552# otherwise set result to NONDIR_REPLACEMENT.
13553func_dirname ()
13554{
13555 case ${1} in
13556 */*) func_dirname_result="${1%/*}${2}" ;;
13557 * ) func_dirname_result="${3}" ;;
13558 esac
13559}
13560
13561# func_basename file
13562func_basename ()
13563{
13564 func_basename_result="${1##*/}"
13565}
13566
13567# func_dirname_and_basename file append nondir_replacement
13568# perform func_basename and func_dirname in a single function
13569# call:
13570# dirname: Compute the dirname of FILE. If nonempty,
13571# add APPEND to the result, otherwise set result
13572# to NONDIR_REPLACEMENT.
13573# value returned in "$func_dirname_result"
13574# basename: Compute filename of FILE.
13575# value retuned in "$func_basename_result"
13576# Implementation must be kept synchronized with func_dirname
13577# and func_basename. For efficiency, we do not delegate to
13578# those functions but instead duplicate the functionality here.
13579func_dirname_and_basename ()
13580{
13581 case ${1} in
13582 */*) func_dirname_result="${1%/*}${2}" ;;
13583 * ) func_dirname_result="${3}" ;;
13584 esac
13585 func_basename_result="${1##*/}"
13586}
13587
13588# func_stripname prefix suffix name
13589# strip PREFIX and SUFFIX off of NAME.
13590# PREFIX and SUFFIX must not contain globbing or regex special
13591# characters, hashes, percent signs, but SUFFIX may contain a leading
13592# dot (in which case that matches only a dot).
13593func_stripname ()
13594{
13595 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13596 # positional parameters, so assign one to ordinary parameter first.
13597 func_stripname_result=${3}
13598 func_stripname_result=${func_stripname_result#"${1}"}
13599 func_stripname_result=${func_stripname_result%"${2}"}
13600}
13601
13602# func_opt_split
13603func_opt_split ()
13604{
13605 func_opt_split_opt=${1%%=*}
13606 func_opt_split_arg=${1#*=}
13607}
13608
13609# func_lo2o object
13610func_lo2o ()
13611{
13612 case ${1} in
13613 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13614 *) func_lo2o_result=${1} ;;
13615 esac
13616}
13617
13618# func_xform libobj-or-source
13619func_xform ()
13620{
13621 func_xform_result=${1%.*}.lo
13622}
13623
13624# func_arith arithmetic-term...
13625func_arith ()
13626{
13627 func_arith_result=$(( $* ))
13628}
13629
13630# func_len string
13631# STRING may not start with a hyphen.
13632func_len ()
13633{
13634 func_len_result=${#1}
13635}
13636
13637_LT_EOF
13638 ;;
13639 *) # Bourne compatible functions.
13640 cat << \_LT_EOF >> "$cfgfile"
13641
13642# func_dirname file append nondir_replacement
13643# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13644# otherwise set result to NONDIR_REPLACEMENT.
13645func_dirname ()
13646{
13647 # Extract subdirectory from the argument.
13648 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13649 if test "X$func_dirname_result" = "X${1}"; then
13650 func_dirname_result="${3}"
13651 else
13652 func_dirname_result="$func_dirname_result${2}"
13653 fi
13654}
13655
13656# func_basename file
13657func_basename ()
13658{
13659 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13660}
13661
13662
13663# func_stripname prefix suffix name
13664# strip PREFIX and SUFFIX off of NAME.
13665# PREFIX and SUFFIX must not contain globbing or regex special
13666# characters, hashes, percent signs, but SUFFIX may contain a leading
13667# dot (in which case that matches only a dot).
13668# func_strip_suffix prefix name
13669func_stripname ()
13670{
13671 case ${2} in
13672 .*) func_stripname_result=`$ECHO "X${3}" \
13673 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13674 *) func_stripname_result=`$ECHO "X${3}" \
13675 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13676 esac
13677}
13678
13679# sed scripts:
13680my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13681my_sed_long_arg='1s/^-[^=]*=//'
13682
13683# func_opt_split
13684func_opt_split ()
13685{
13686 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13687 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13688}
13689
13690# func_lo2o object
13691func_lo2o ()
13692{
13693 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13694}
13695
13696# func_xform libobj-or-source
13697func_xform ()
13698{
13699 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13700}
13701
13702# func_arith arithmetic-term...
13703func_arith ()
13704{
13705 func_arith_result=`expr "$@"`
13706}
13707
13708# func_len string
13709# STRING may not start with a hyphen.
13710func_len ()
13711{
13712 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13713}
13714
13715_LT_EOF
13716esac
13717
13718case $lt_shell_append in
13719 yes)
13720 cat << \_LT_EOF >> "$cfgfile"
13721
13722# func_append var value
13723# Append VALUE to the end of shell variable VAR.
13724func_append ()
13725{
13726 eval "$1+=\$2"
13727}
13728_LT_EOF
13729 ;;
13730 *)
13731 cat << \_LT_EOF >> "$cfgfile"
13732
13733# func_append var value
13734# Append VALUE to the end of shell variable VAR.
13735func_append ()
13736{
13737 eval "$1=\$$1\$2"
13738}
13739
13740_LT_EOF
13741 ;;
13742 esac
13743
13744
13745 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13746 || (rm -f "$cfgfile"; exit 1)
13747
13748 mv -f "$cfgfile" "$ofile" ||
13749 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13750 chmod +x "$ofile"
13751
13752 ;;
mlcreech94984912008-03-04 19:03:08 +000013753
drh8b727472009-01-19 18:18:40 +000013754 esac
13755done # for ac_tag
13756
drh71eb93e2001-09-28 01:34:43 +000013757
drhf922ca42015-05-14 15:39:18 +000013758as_fn_exit 0
a.rottmann84e63352003-03-24 09:42:16 +000013759_ACEOF
drh71eb93e2001-09-28 01:34:43 +000013760ac_clean_files=$ac_clean_files_save
13761
drh8b727472009-01-19 18:18:40 +000013762test $ac_write_fail = 0 ||
drhf922ca42015-05-14 15:39:18 +000013763 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
drh8b727472009-01-19 18:18:40 +000013764
a.rottmann84e63352003-03-24 09:42:16 +000013765
drh71eb93e2001-09-28 01:34:43 +000013766# configure is writing to config.log, and then calls config.status.
13767# config.status does its own redirection, appending to config.log.
13768# Unfortunately, on DOS this fails, as config.log is still kept open
13769# by configure, so config.status won't be able to write to it; its
13770# output is simply discarded. So we exec the FD to /dev/null,
13771# effectively closing config.log, so it can be properly (re)opened and
13772# appended to by config.status. When coming back to configure, we
13773# need to make the FD available again.
13774if test "$no_create" != yes; then
13775 ac_cs_success=:
a.rottmann84e63352003-03-24 09:42:16 +000013776 ac_config_status_args=
13777 test "$silent" = yes &&
13778 ac_config_status_args="$ac_config_status_args --quiet"
drh71eb93e2001-09-28 01:34:43 +000013779 exec 5>/dev/null
a.rottmann84e63352003-03-24 09:42:16 +000013780 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
drh71eb93e2001-09-28 01:34:43 +000013781 exec 5>>config.log
13782 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13783 # would make configure fail if this is the last instruction.
drhf922ca42015-05-14 15:39:18 +000013784 $ac_cs_success || as_fn_exit 1
drh71eb93e2001-09-28 01:34:43 +000013785fi
drh8b727472009-01-19 18:18:40 +000013786if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
drhf922ca42015-05-14 15:39:18 +000013787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13788$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
drh8b727472009-01-19 18:18:40 +000013789fi
drhbc7a22d2009-10-13 22:47:13 +000013790