blob: 81070f3da3bdbc0f96d69c30af24f728a9e4c09c [file] [log] [blame]
Lev Walkinf15320b2004-06-03 03:38:44 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Lev Walkinaef10c32014-01-14 01:47:25 -08003# Generated by GNU Autoconf 2.69 for asn1c 0.9.24.
Lev Walkine7c4b962010-11-09 03:10:36 -08004#
5# Report bugs to <vlm@lionet.info>.
Lev Walkinf15320b2004-06-03 03:38:44 +00006#
Lev Walkinaef10c32014-01-14 01:47:25 -08007#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
Lev Walkinf15320b2004-06-03 03:38:44 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
Lev Walkinaef10c32014-01-14 01:47:25 -080013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
Lev Walkinf15320b2004-06-03 03:38:44 +000016
Lev Walkin4c776e52010-11-08 02:07:31 -080017# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
Lev Walkinaef10c32014-01-14 01:47:25 -080019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000020 emulate sh
21 NULLCMD=:
Lev Walkinb3751942012-09-02 19:36:47 -070022 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Lev Walkinf15320b2004-06-03 03:38:44 +000023 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
Lev Walkin27fd0b62007-08-27 23:57:45 +000025 setopt NO_GLOB_SUBST
26else
Lev Walkinaef10c32014-01-14 01:47:25 -080027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
Lev Walkin4c776e52010-11-08 02:07:31 -080032esac
Lev Walkinf15320b2004-06-03 03:38:44 +000033fi
Lev Walkin4c776e52010-11-08 02:07:31 -080034
35
Lev Walkinb3751942012-09-02 19:36:47 -070036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Lev Walkinaef10c32014-01-14 01:47:25 -080043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Lev Walkinb3751942012-09-02 19:36:47 -070050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
Lev Walkinaef10c32014-01-14 01:47:25 -080060 case $arg in #(
Lev Walkinb3751942012-09-02 19:36:47 -070061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
Lev Walkinf15320b2004-06-03 03:38:44 +000074# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
Lev Walkinb3751942012-09-02 19:36:47 -070076 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
Lev Walkinf15320b2004-06-03 03:38:44 +000081fi
82
Lev Walkin27fd0b62007-08-27 23:57:45 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
Lev Walkin27fd0b62007-08-27 23:57:45 +000089IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
Lev Walkinaef10c32014-01-14 01:47:25 -080092as_myself=
93case $0 in #((
Lev Walkin27fd0b62007-08-27 23:57:45 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +000096for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -0800100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
Lev Walkin27fd0b62007-08-27 23:57:45 +0000102IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +0000103
Lev Walkin27fd0b62007-08-27 23:57:45 +0000104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
Lev Walkinb3751942012-09-02 19:36:47 -0700112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Lev Walkinaef10c32014-01-14 01:47:25 -0800113 exit 1
Lev Walkin27fd0b62007-08-27 23:57:45 +0000114fi
115
Lev Walkinaef10c32014-01-14 01:47:25 -0800116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Lev Walkin27fd0b62007-08-27 23:57:45 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
Lev Walkinb3751942012-09-02 19:36:47 -0700129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
Lev Walkin27fd0b62007-08-27 23:57:45 +0000133
Lev Walkinaef10c32014-01-14 01:47:25 -0800134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and vlm@lionet.info
278$0: about your system, including any error possibly output
279$0: before this message. Then install a modern shell, or
280$0: manually run the script under such a shell if you do
281$0: have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
429
Lev Walkin27fd0b62007-08-27 23:57:45 +0000430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
Lev Walkinaef10c32014-01-14 01:47:25 -0800443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
Lev Walkin27fd0b62007-08-27 23:57:45 +0000448
Lev Walkin27fd0b62007-08-27 23:57:45 +0000449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinb3751942012-09-02 19:36:47 -0700453$as_echo X/"$0" |
Lev Walkin27fd0b62007-08-27 23:57:45 +0000454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
Lev Walkinaef10c32014-01-14 01:47:25 -0800468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
Lev Walkin27fd0b62007-08-27 23:57:45 +0000474
475
Lev Walkinaef10c32014-01-14 01:47:25 -0800476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Lev Walkin27fd0b62007-08-27 23:57:45 +0000481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
Lev Walkinf15320b2004-06-03 03:38:44 +0000485 sed '
Lev Walkin27fd0b62007-08-27 23:57:45 +0000486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
Lev Walkinf15320b2004-06-03 03:38:44 +0000490 N
Lev Walkin27fd0b62007-08-27 23:57:45 +0000491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Lev Walkinf15320b2004-06-03 03:38:44 +0000493 t loop
Lev Walkin27fd0b62007-08-27 23:57:45 +0000494 s/-\n.*//
Lev Walkinf15320b2004-06-03 03:38:44 +0000495 ' >$as_me.lineno &&
Lev Walkin27fd0b62007-08-27 23:57:45 +0000496 chmod +x "$as_me.lineno" ||
Lev Walkinaef10c32014-01-14 01:47:25 -0800497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Lev Walkinf15320b2004-06-03 03:38:44 +0000498
Lev Walkinaef10c32014-01-14 01:47:25 -0800499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
Lev Walkinf15320b2004-06-03 03:38:44 +0000503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
Lev Walkin27fd0b62007-08-27 23:57:45 +0000505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
Lev Walkinf15320b2004-06-03 03:38:44 +0000507 # Exit status is that of the last command.
508 exit
509}
510
Lev Walkin27fd0b62007-08-27 23:57:45 +0000511ECHO_C= ECHO_N= ECHO_T=
Lev Walkinaef10c32014-01-14 01:47:25 -0800512case `echo -n x` in #(((((
Lev Walkin27fd0b62007-08-27 23:57:45 +0000513-n*)
Lev Walkinaef10c32014-01-14 01:47:25 -0800514 case `echo 'xy\c'` in
Lev Walkin27fd0b62007-08-27 23:57:45 +0000515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Lev Walkinaef10c32014-01-14 01:47:25 -0800516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
Lev Walkin27fd0b62007-08-27 23:57:45 +0000519 esac;;
520*)
521 ECHO_N='-n';;
Lev Walkinf15320b2004-06-03 03:38:44 +0000522esac
Lev Walkinf15320b2004-06-03 03:38:44 +0000523
524rm -f conf$$ conf$$.exe conf$$.file
Lev Walkin27fd0b62007-08-27 23:57:45 +0000525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
Lev Walkinb3751942012-09-02 19:36:47 -0700529 mkdir conf$$.dir 2>/dev/null
Lev Walkin27fd0b62007-08-27 23:57:45 +0000530fi
Lev Walkinb3751942012-09-02 19:36:47 -0700531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Lev Walkinaef10c32014-01-14 01:47:25 -0800537 # In both cases, we have to default to `cp -pR'.
Lev Walkinb3751942012-09-02 19:36:47 -0700538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Lev Walkinaef10c32014-01-14 01:47:25 -0800539 as_ln_s='cp -pR'
Lev Walkinb3751942012-09-02 19:36:47 -0700540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
Lev Walkinaef10c32014-01-14 01:47:25 -0800543 as_ln_s='cp -pR'
Lev Walkinb3751942012-09-02 19:36:47 -0700544 fi
Lev Walkinf15320b2004-06-03 03:38:44 +0000545else
Lev Walkinaef10c32014-01-14 01:47:25 -0800546 as_ln_s='cp -pR'
Lev Walkinf15320b2004-06-03 03:38:44 +0000547fi
Lev Walkin27fd0b62007-08-27 23:57:45 +0000548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +0000550
551if mkdir -p . 2>/dev/null; then
Lev Walkinaef10c32014-01-14 01:47:25 -0800552 as_mkdir_p='mkdir -p "$as_dir"'
Lev Walkinf15320b2004-06-03 03:38:44 +0000553else
Lev Walkin8e8b5482004-06-17 23:42:48 +0000554 test -d ./-p && rmdir ./-p
Lev Walkinf15320b2004-06-03 03:38:44 +0000555 as_mkdir_p=false
556fi
557
Lev Walkinaef10c32014-01-14 01:47:25 -0800558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
Lev Walkinf15320b2004-06-03 03:38:44 +0000560
561# Sed expression to map a string onto a valid CPP name.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +0000563
564# Sed expression to map a string onto a valid variable name.
Lev Walkin8e8b5482004-06-17 23:42:48 +0000565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +0000566
Lev Walkin8e8b5482004-06-17 23:42:48 +0000567SHELL=${CONFIG_SHELL-/bin/sh}
568
Lev Walkin4c776e52010-11-08 02:07:31 -0800569
Lev Walkinaef10c32014-01-14 01:47:25 -0800570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
Lev Walkin27fd0b62007-08-27 23:57:45 +0000572
Lev Walkinf15320b2004-06-03 03:38:44 +0000573# Name of the host.
Lev Walkinaef10c32014-01-14 01:47:25 -0800574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Lev Walkinf15320b2004-06-03 03:38:44 +0000575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
Lev Walkinf15320b2004-06-03 03:38:44 +0000578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
Lev Walkin27fd0b62007-08-27 23:57:45 +0000582ac_clean_files=
Lev Walkinf15320b2004-06-03 03:38:44 +0000583ac_config_libobj_dir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +0000584LIBOBJS=
Lev Walkinf15320b2004-06-03 03:38:44 +0000585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
Lev Walkinf15320b2004-06-03 03:38:44 +0000589
Lev Walkinf15320b2004-06-03 03:38:44 +0000590# Identity of this package.
Lev Walkine7c4b962010-11-09 03:10:36 -0800591PACKAGE_NAME='asn1c'
592PACKAGE_TARNAME='asn1c'
Lev Walkind8ca7ce2013-03-16 07:07:26 -0700593PACKAGE_VERSION='0.9.24'
594PACKAGE_STRING='asn1c 0.9.24'
Lev Walkine7c4b962010-11-09 03:10:36 -0800595PACKAGE_BUGREPORT='vlm@lionet.info'
Lev Walkinaef10c32014-01-14 01:47:25 -0800596PACKAGE_URL=''
Lev Walkinf15320b2004-06-03 03:38:44 +0000597
Lev Walkinf15320b2004-06-03 03:38:44 +0000598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
Lev Walkin4c776e52010-11-08 02:07:31 -0800601#ifdef HAVE_SYS_TYPES_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000602# include <sys/types.h>
603#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800604#ifdef HAVE_SYS_STAT_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000605# include <sys/stat.h>
606#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800607#ifdef STDC_HEADERS
Lev Walkinf15320b2004-06-03 03:38:44 +0000608# include <stdlib.h>
609# include <stddef.h>
610#else
Lev Walkin4c776e52010-11-08 02:07:31 -0800611# ifdef HAVE_STDLIB_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000612# include <stdlib.h>
613# endif
614#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000617# include <memory.h>
618# endif
619# include <string.h>
620#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800621#ifdef HAVE_STRINGS_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000622# include <strings.h>
623#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800624#ifdef HAVE_INTTYPES_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000625# include <inttypes.h>
Lev Walkin27fd0b62007-08-27 23:57:45 +0000626#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800627#ifdef HAVE_STDINT_H
Lev Walkin27fd0b62007-08-27 23:57:45 +0000628# include <stdint.h>
Lev Walkinf15320b2004-06-03 03:38:44 +0000629#endif
Lev Walkin4c776e52010-11-08 02:07:31 -0800630#ifdef HAVE_UNISTD_H
Lev Walkinf15320b2004-06-03 03:38:44 +0000631# include <unistd.h>
632#endif"
633
Lev Walkinb3751942012-09-02 19:36:47 -0700634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
Lev Walkin27fd0b62007-08-27 23:57:45 +0000637LIBOBJS
Lev Walkinb40ec412014-02-24 00:57:18 -0800638TEST_64BIT_FALSE
639TEST_64BIT_TRUE
Lev Walkinf84cc012014-01-14 02:12:24 -0800640TESTSUITE_CFLAGS
Lev Walkinea552152014-01-14 02:15:13 -0800641ADD_CFLAGS
Lev Walkinb3751942012-09-02 19:36:47 -0700642LEXLIB
643LEX_OUTPUT_ROOT
644LEX
645YFLAGS
646YACC
647CPP
648OTOOL64
649OTOOL
650LIPO
651NMEDIT
652DSYMUTIL
Lev Walkinaef10c32014-01-14 01:47:25 -0800653MANIFEST_TOOL
Lev Walkinb3751942012-09-02 19:36:47 -0700654RANLIB
Lev Walkinaef10c32014-01-14 01:47:25 -0800655ac_ct_AR
Lev Walkinb3751942012-09-02 19:36:47 -0700656AR
Lev Walkinaef10c32014-01-14 01:47:25 -0800657DLLTOOL
658OBJDUMP
Lev Walkinb3751942012-09-02 19:36:47 -0700659LN_S
660NM
661ac_ct_DUMPBIN
662DUMPBIN
663LD
664FGREP
665EGREP
666GREP
667SED
668am__fastdepCC_FALSE
669am__fastdepCC_TRUE
670CCDEPMODE
671AMDEPBACKSLASH
672AMDEP_FALSE
673AMDEP_TRUE
674am__quote
675am__include
676DEPDIR
677OBJEXT
678EXEEXT
679ac_ct_CC
680CPPFLAGS
681LDFLAGS
682CFLAGS
683CC
684host_os
685host_vendor
686host_cpu
687host
688build_os
689build_vendor
690build_cpu
691build
692LIBTOOL
693am__untar
694am__tar
695AMTAR
696am__leading_dot
697SET_MAKE
698AWK
699mkdir_p
700MKDIR_P
701INSTALL_STRIP_PROGRAM
702STRIP
703install_sh
704MAKEINFO
705AUTOHEADER
706AUTOMAKE
707AUTOCONF
708ACLOCAL
709VERSION
710PACKAGE
711CYGPATH_W
712am__isrc
713INSTALL_DATA
714INSTALL_SCRIPT
715INSTALL_PROGRAM
716target_alias
717host_alias
718build_alias
719LIBS
720ECHO_T
721ECHO_N
722ECHO_C
723DEFS
724mandir
725localedir
726libdir
727psdir
728pdfdir
729dvidir
730htmldir
731infodir
732docdir
733oldincludedir
734includedir
735localstatedir
736sharedstatedir
737sysconfdir
738datadir
739datarootdir
740libexecdir
741sbindir
742bindir
743program_transform_name
744prefix
745exec_prefix
Lev Walkinaef10c32014-01-14 01:47:25 -0800746PACKAGE_URL
Lev Walkinb3751942012-09-02 19:36:47 -0700747PACKAGE_BUGREPORT
748PACKAGE_STRING
749PACKAGE_VERSION
750PACKAGE_TARNAME
751PACKAGE_NAME
752PATH_SEPARATOR
753SHELL'
Lev Walkinf15320b2004-06-03 03:38:44 +0000754ac_subst_files=''
Lev Walkinb3751942012-09-02 19:36:47 -0700755ac_user_opts='
756enable_option_checking
757enable_shared
758enable_static
759with_pic
760enable_fast_install
761enable_dependency_tracking
762with_gnu_ld
Lev Walkinaef10c32014-01-14 01:47:25 -0800763with_sysroot
Lev Walkinb3751942012-09-02 19:36:47 -0700764enable_libtool_lock
765enable_Werror
766'
Lev Walkin27fd0b62007-08-27 23:57:45 +0000767 ac_precious_vars='build_alias
768host_alias
769target_alias
770CC
771CFLAGS
772LDFLAGS
Lev Walkin4c776e52010-11-08 02:07:31 -0800773LIBS
Lev Walkin27fd0b62007-08-27 23:57:45 +0000774CPPFLAGS
775CPP
Lev Walkin27fd0b62007-08-27 23:57:45 +0000776YACC
777YFLAGS'
778
Lev Walkinf15320b2004-06-03 03:38:44 +0000779
780# Initialize some variables set by options.
781ac_init_help=
782ac_init_version=false
Lev Walkinb3751942012-09-02 19:36:47 -0700783ac_unrecognized_opts=
784ac_unrecognized_sep=
Lev Walkinf15320b2004-06-03 03:38:44 +0000785# The variables have the same names as the options, with
786# dashes changed to underlines.
787cache_file=/dev/null
788exec_prefix=NONE
789no_create=
790no_recursion=
791prefix=NONE
792program_prefix=NONE
793program_suffix=NONE
794program_transform_name=s,x,x,
795silent=
796site=
797srcdir=
798verbose=
799x_includes=NONE
800x_libraries=NONE
801
802# Installation directory options.
803# These are left unexpanded so users can "make install exec_prefix=/foo"
804# and all the variables that are supposed to be based on exec_prefix
805# by default will actually change.
806# Use braces instead of parens because sh, perl, etc. also accept them.
Lev Walkin27fd0b62007-08-27 23:57:45 +0000807# (The list follows the same order as the GNU Coding Standards.)
Lev Walkinf15320b2004-06-03 03:38:44 +0000808bindir='${exec_prefix}/bin'
809sbindir='${exec_prefix}/sbin'
810libexecdir='${exec_prefix}/libexec'
Lev Walkin27fd0b62007-08-27 23:57:45 +0000811datarootdir='${prefix}/share'
812datadir='${datarootdir}'
Lev Walkinf15320b2004-06-03 03:38:44 +0000813sysconfdir='${prefix}/etc'
814sharedstatedir='${prefix}/com'
815localstatedir='${prefix}/var'
Lev Walkinf15320b2004-06-03 03:38:44 +0000816includedir='${prefix}/include'
817oldincludedir='/usr/include'
Lev Walkine7c4b962010-11-09 03:10:36 -0800818docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
Lev Walkin27fd0b62007-08-27 23:57:45 +0000819infodir='${datarootdir}/info'
820htmldir='${docdir}'
821dvidir='${docdir}'
822pdfdir='${docdir}'
823psdir='${docdir}'
824libdir='${exec_prefix}/lib'
825localedir='${datarootdir}/locale'
826mandir='${datarootdir}/man'
Lev Walkinf15320b2004-06-03 03:38:44 +0000827
828ac_prev=
Lev Walkin27fd0b62007-08-27 23:57:45 +0000829ac_dashdash=
Lev Walkinf15320b2004-06-03 03:38:44 +0000830for ac_option
831do
832 # If the previous option needs an argument, assign it.
833 if test -n "$ac_prev"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +0000834 eval $ac_prev=\$ac_option
Lev Walkinf15320b2004-06-03 03:38:44 +0000835 ac_prev=
836 continue
837 fi
838
Lev Walkin27fd0b62007-08-27 23:57:45 +0000839 case $ac_option in
Lev Walkinaef10c32014-01-14 01:47:25 -0800840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841 *=) ac_optarg= ;;
842 *) ac_optarg=yes ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +0000843 esac
Lev Walkinf15320b2004-06-03 03:38:44 +0000844
845 # Accept the important Cygnus configure options, so we can diagnose typos.
846
Lev Walkin27fd0b62007-08-27 23:57:45 +0000847 case $ac_dashdash$ac_option in
848 --)
849 ac_dashdash=yes ;;
Lev Walkinf15320b2004-06-03 03:38:44 +0000850
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
852 ac_prev=bindir ;;
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854 bindir=$ac_optarg ;;
855
856 -build | --build | --buil | --bui | --bu)
857 ac_prev=build_alias ;;
858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859 build_alias=$ac_optarg ;;
860
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev=cache_file ;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866 cache_file=$ac_optarg ;;
867
868 --config-cache | -C)
869 cache_file=config.cache ;;
870
Lev Walkin27fd0b62007-08-27 23:57:45 +0000871 -datadir | --datadir | --datadi | --datad)
Lev Walkinf15320b2004-06-03 03:38:44 +0000872 ac_prev=datadir ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +0000873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Lev Walkinf15320b2004-06-03 03:38:44 +0000874 datadir=$ac_optarg ;;
875
Lev Walkin27fd0b62007-08-27 23:57:45 +0000876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev=datarootdir ;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir=$ac_optarg ;;
882
Lev Walkinf15320b2004-06-03 03:38:44 +0000883 -disable-* | --disable-*)
Lev Walkinb3751942012-09-02 19:36:47 -0700884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +0000885 # Reject names that are not valid shell variable names.
Lev Walkinb3751942012-09-02 19:36:47 -0700886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Lev Walkinaef10c32014-01-14 01:47:25 -0800887 as_fn_error $? "invalid feature name: $ac_useropt"
Lev Walkinb3751942012-09-02 19:36:47 -0700888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
891 *"
892"enable_$ac_useropt"
893"*) ;;
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
896 esac
897 eval enable_$ac_useropt=no ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +0000898
899 -docdir | --docdir | --docdi | --doc | --do)
900 ac_prev=docdir ;;
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902 docdir=$ac_optarg ;;
903
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905 ac_prev=dvidir ;;
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907 dvidir=$ac_optarg ;;
Lev Walkinf15320b2004-06-03 03:38:44 +0000908
909 -enable-* | --enable-*)
Lev Walkinb3751942012-09-02 19:36:47 -0700910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +0000911 # Reject names that are not valid shell variable names.
Lev Walkinb3751942012-09-02 19:36:47 -0700912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Lev Walkinaef10c32014-01-14 01:47:25 -0800913 as_fn_error $? "invalid feature name: $ac_useropt"
Lev Walkinb3751942012-09-02 19:36:47 -0700914 ac_useropt_orig=$ac_useropt
915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
917 *"
918"enable_$ac_useropt"
919"*) ;;
920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep=', ';;
922 esac
923 eval enable_$ac_useropt=\$ac_optarg ;;
Lev Walkinf15320b2004-06-03 03:38:44 +0000924
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev=exec_prefix ;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
932 exec_prefix=$ac_optarg ;;
933
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
936 with_gas=yes ;;
937
938 -help | --help | --hel | --he | -h)
939 ac_init_help=long ;;
940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941 ac_init_help=recursive ;;
942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943 ac_init_help=short ;;
944
945 -host | --host | --hos | --ho)
946 ac_prev=host_alias ;;
947 -host=* | --host=* | --hos=* | --ho=*)
948 host_alias=$ac_optarg ;;
949
Lev Walkin27fd0b62007-08-27 23:57:45 +0000950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951 ac_prev=htmldir ;;
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953 | --ht=*)
954 htmldir=$ac_optarg ;;
955
Lev Walkinf15320b2004-06-03 03:38:44 +0000956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev=includedir ;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
961 includedir=$ac_optarg ;;
962
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
964 ac_prev=infodir ;;
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966 infodir=$ac_optarg ;;
967
968 -libdir | --libdir | --libdi | --libd)
969 ac_prev=libdir ;;
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
971 libdir=$ac_optarg ;;
972
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev=libexecdir ;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
978 libexecdir=$ac_optarg ;;
979
Lev Walkin27fd0b62007-08-27 23:57:45 +0000980 -localedir | --localedir | --localedi | --localed | --locale)
981 ac_prev=localedir ;;
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir=$ac_optarg ;;
984
Lev Walkinf15320b2004-06-03 03:38:44 +0000985 -localstatedir | --localstatedir | --localstatedi | --localstated \
Lev Walkin27fd0b62007-08-27 23:57:45 +0000986 | --localstate | --localstat | --localsta | --localst | --locals)
Lev Walkinf15320b2004-06-03 03:38:44 +0000987 ac_prev=localstatedir ;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Lev Walkin27fd0b62007-08-27 23:57:45 +0000989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Lev Walkinf15320b2004-06-03 03:38:44 +0000990 localstatedir=$ac_optarg ;;
991
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993 ac_prev=mandir ;;
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995 mandir=$ac_optarg ;;
996
997 -nfp | --nfp | --nf)
998 # Obsolete; use --without-fp.
999 with_fp=no ;;
1000
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n)
1003 no_create=yes ;;
1004
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007 no_recursion=yes ;;
1008
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev=oldincludedir ;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016 oldincludedir=$ac_optarg ;;
1017
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019 ac_prev=prefix ;;
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021 prefix=$ac_optarg ;;
1022
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev=program_prefix ;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028 program_prefix=$ac_optarg ;;
1029
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev=program_suffix ;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035 program_suffix=$ac_optarg ;;
1036
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev=program_transform_name ;;
1045 -program-transform-name=* | --program-transform-name=* \
1046 | --program-transform-nam=* | --program-transform-na=* \
1047 | --program-transform-n=* | --program-transform-=* \
1048 | --program-transform=* | --program-transfor=* \
1049 | --program-transfo=* | --program-transf=* \
1050 | --program-trans=* | --program-tran=* \
1051 | --progr-tra=* | --program-tr=* | --program-t=*)
1052 program_transform_name=$ac_optarg ;;
1053
Lev Walkin27fd0b62007-08-27 23:57:45 +00001054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055 ac_prev=pdfdir ;;
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir=$ac_optarg ;;
1058
1059 -psdir | --psdir | --psdi | --psd | --ps)
1060 ac_prev=psdir ;;
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062 psdir=$ac_optarg ;;
1063
Lev Walkinf15320b2004-06-03 03:38:44 +00001064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1066 silent=yes ;;
1067
1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069 ac_prev=sbindir ;;
1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071 | --sbi=* | --sb=*)
1072 sbindir=$ac_optarg ;;
1073
1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076 | --sharedst | --shareds | --shared | --share | --shar \
1077 | --sha | --sh)
1078 ac_prev=sharedstatedir ;;
1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082 | --sha=* | --sh=*)
1083 sharedstatedir=$ac_optarg ;;
1084
1085 -site | --site | --sit)
1086 ac_prev=site ;;
1087 -site=* | --site=* | --sit=*)
1088 site=$ac_optarg ;;
1089
1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091 ac_prev=srcdir ;;
1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093 srcdir=$ac_optarg ;;
1094
1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096 | --syscon | --sysco | --sysc | --sys | --sy)
1097 ac_prev=sysconfdir ;;
1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100 sysconfdir=$ac_optarg ;;
1101
1102 -target | --target | --targe | --targ | --tar | --ta | --t)
1103 ac_prev=target_alias ;;
1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105 target_alias=$ac_optarg ;;
1106
1107 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108 verbose=yes ;;
1109
1110 -version | --version | --versio | --versi | --vers | -V)
1111 ac_init_version=: ;;
1112
1113 -with-* | --with-*)
Lev Walkinb3751942012-09-02 19:36:47 -07001114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +00001115 # Reject names that are not valid shell variable names.
Lev Walkinb3751942012-09-02 19:36:47 -07001116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Lev Walkinaef10c32014-01-14 01:47:25 -08001117 as_fn_error $? "invalid package name: $ac_useropt"
Lev Walkinb3751942012-09-02 19:36:47 -07001118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1121 *"
1122"with_$ac_useropt"
1123"*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=\$ac_optarg ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001128
1129 -without-* | --without-*)
Lev Walkinb3751942012-09-02 19:36:47 -07001130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +00001131 # Reject names that are not valid shell variable names.
Lev Walkinb3751942012-09-02 19:36:47 -07001132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Lev Walkinaef10c32014-01-14 01:47:25 -08001133 as_fn_error $? "invalid package name: $ac_useropt"
Lev Walkinb3751942012-09-02 19:36:47 -07001134 ac_useropt_orig=$ac_useropt
1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1137 *"
1138"with_$ac_useropt"
1139"*) ;;
1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep=', ';;
1142 esac
1143 eval with_$ac_useropt=no ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001144
1145 --x)
1146 # Obsolete; use --with-x.
1147 with_x=yes ;;
1148
1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150 | --x-incl | --x-inc | --x-in | --x-i)
1151 ac_prev=x_includes ;;
1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154 x_includes=$ac_optarg ;;
1155
1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158 ac_prev=x_libraries ;;
1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161 x_libraries=$ac_optarg ;;
1162
Lev Walkinaef10c32014-01-14 01:47:25 -08001163 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1164Try \`$0 --help' for more information"
Lev Walkinf15320b2004-06-03 03:38:44 +00001165 ;;
1166
1167 *=*)
1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
Lev Walkinaef10c32014-01-14 01:47:25 -08001170 case $ac_envvar in #(
1171 '' | [0-9]* | *[!_$as_cr_alnum]* )
1172 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1173 esac
Lev Walkin27fd0b62007-08-27 23:57:45 +00001174 eval $ac_envvar=\$ac_optarg
Lev Walkinf15320b2004-06-03 03:38:44 +00001175 export $ac_envvar ;;
1176
1177 *)
1178 # FIXME: should be removed in autoconf 3.0.
Lev Walkinb3751942012-09-02 19:36:47 -07001179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Lev Walkinf15320b2004-06-03 03:38:44 +00001180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Lev Walkinb3751942012-09-02 19:36:47 -07001181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Lev Walkinaef10c32014-01-14 01:47:25 -08001182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Lev Walkinf15320b2004-06-03 03:38:44 +00001183 ;;
1184
1185 esac
1186done
1187
1188if test -n "$ac_prev"; then
1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Lev Walkinaef10c32014-01-14 01:47:25 -08001190 as_fn_error $? "missing argument to $ac_option"
Lev Walkinf15320b2004-06-03 03:38:44 +00001191fi
1192
Lev Walkinb3751942012-09-02 19:36:47 -07001193if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1195 no) ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08001196 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Lev Walkinb3751942012-09-02 19:36:47 -07001197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198 esac
1199fi
1200
1201# Check all directory arguments for consistency.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001202for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
Lev Walkinf15320b2004-06-03 03:38:44 +00001206do
Lev Walkin27fd0b62007-08-27 23:57:45 +00001207 eval ac_val=\$$ac_var
Lev Walkinb3751942012-09-02 19:36:47 -07001208 # Remove trailing slashes.
1209 case $ac_val in
1210 */ )
1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212 eval $ac_var=\$ac_val;;
1213 esac
1214 # Be sure to have absolute directory names.
Lev Walkinf15320b2004-06-03 03:38:44 +00001215 case $ac_val in
Lev Walkin27fd0b62007-08-27 23:57:45 +00001216 [\\/$]* | ?:[\\/]* ) continue;;
1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001218 esac
Lev Walkinaef10c32014-01-14 01:47:25 -08001219 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Lev Walkinf15320b2004-06-03 03:38:44 +00001220done
1221
1222# There might be people who depend on the old broken behavior: `$host'
1223# used to hold the argument of --host etc.
1224# FIXME: To remove some day.
1225build=$build_alias
1226host=$host_alias
1227target=$target_alias
1228
1229# FIXME: To remove some day.
1230if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
Lev Walkinf15320b2004-06-03 03:38:44 +00001233 elif test "x$build_alias" != "x$host_alias"; then
1234 cross_compiling=yes
1235 fi
1236fi
1237
1238ac_tool_prefix=
1239test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241test "$silent" = yes && exec 6>/dev/null
1242
1243
Lev Walkin27fd0b62007-08-27 23:57:45 +00001244ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245ac_ls_di=`ls -di .` &&
1246ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Lev Walkinaef10c32014-01-14 01:47:25 -08001247 as_fn_error $? "working directory cannot be determined"
Lev Walkin27fd0b62007-08-27 23:57:45 +00001248test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Lev Walkinaef10c32014-01-14 01:47:25 -08001249 as_fn_error $? "pwd does not report name of working directory"
Lev Walkin27fd0b62007-08-27 23:57:45 +00001250
1251
Lev Walkinf15320b2004-06-03 03:38:44 +00001252# Find the source files, if location was not specified.
1253if test -z "$srcdir"; then
1254 ac_srcdir_defaulted=yes
Lev Walkin27fd0b62007-08-27 23:57:45 +00001255 # Try the directory containing this script, then the parent directory.
Lev Walkinb3751942012-09-02 19:36:47 -07001256 ac_confdir=`$as_dirname -- "$as_myself" ||
1257$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258 X"$as_myself" : 'X\(//\)[^/]' \| \
1259 X"$as_myself" : 'X\(//\)$' \| \
1260 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1261$as_echo X"$as_myself" |
Lev Walkin27fd0b62007-08-27 23:57:45 +00001262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263 s//\1/
1264 q
1265 }
1266 /^X\(\/\/\)[^/].*/{
1267 s//\1/
1268 q
1269 }
1270 /^X\(\/\/\)$/{
1271 s//\1/
1272 q
1273 }
1274 /^X\(\/\).*/{
1275 s//\1/
1276 q
1277 }
1278 s/.*/./; q'`
Lev Walkinf15320b2004-06-03 03:38:44 +00001279 srcdir=$ac_confdir
Lev Walkin27fd0b62007-08-27 23:57:45 +00001280 if test ! -r "$srcdir/$ac_unique_file"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00001281 srcdir=..
1282 fi
1283else
1284 ac_srcdir_defaulted=no
1285fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001286if test ! -r "$srcdir/$ac_unique_file"; then
1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Lev Walkinaef10c32014-01-14 01:47:25 -08001288 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Lev Walkinf15320b2004-06-03 03:38:44 +00001289fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00001290ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291ac_abs_confdir=`(
Lev Walkinaef10c32014-01-14 01:47:25 -08001292 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Lev Walkin27fd0b62007-08-27 23:57:45 +00001293 pwd)`
1294# When building in place, set srcdir=.
1295if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 srcdir=.
1297fi
1298# Remove unnecessary trailing slashes from srcdir.
1299# Double slashes in file names in object file debugging info
1300# mess up M-x gdb in Emacs.
1301case $srcdir in
1302*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303esac
1304for ac_var in $ac_precious_vars; do
1305 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_env_${ac_var}_value=\$${ac_var}
1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309done
Lev Walkinf15320b2004-06-03 03:38:44 +00001310
1311#
1312# Report the --help message.
1313#
1314if test "$ac_init_help" = "long"; then
1315 # Omit some internal or obsolete options to make the list less imposing.
1316 # This message is too long to be a string in the A/UX 3.1 sh.
1317 cat <<_ACEOF
Lev Walkind8ca7ce2013-03-16 07:07:26 -07001318\`configure' configures asn1c 0.9.24 to adapt to many kinds of systems.
Lev Walkinf15320b2004-06-03 03:38:44 +00001319
1320Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323VAR=VALUE. See below for descriptions of some of the useful variables.
1324
1325Defaults for the options are specified in brackets.
1326
1327Configuration:
1328 -h, --help display this help and exit
1329 --help=short display options specific to this package
1330 --help=recursive display the short help of all the included packages
1331 -V, --version display version information and exit
Lev Walkinaef10c32014-01-14 01:47:25 -08001332 -q, --quiet, --silent do not print \`checking ...' messages
Lev Walkinf15320b2004-06-03 03:38:44 +00001333 --cache-file=FILE cache test results in FILE [disabled]
1334 -C, --config-cache alias for \`--cache-file=config.cache'
1335 -n, --no-create do not create output files
1336 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1337
Lev Walkinf15320b2004-06-03 03:38:44 +00001338Installation directories:
1339 --prefix=PREFIX install architecture-independent files in PREFIX
Lev Walkinb3751942012-09-02 19:36:47 -07001340 [$ac_default_prefix]
Lev Walkinf15320b2004-06-03 03:38:44 +00001341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Lev Walkinb3751942012-09-02 19:36:47 -07001342 [PREFIX]
Lev Walkinf15320b2004-06-03 03:38:44 +00001343
1344By default, \`make install' will install all the files in
1345\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1346an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347for instance \`--prefix=\$HOME'.
1348
1349For better control, use the options below.
1350
1351Fine tuning of the installation directories:
Lev Walkinb3751942012-09-02 19:36:47 -07001352 --bindir=DIR user executables [EPREFIX/bin]
1353 --sbindir=DIR system admin executables [EPREFIX/sbin]
1354 --libexecdir=DIR program executables [EPREFIX/libexec]
1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1358 --libdir=DIR object code libraries [EPREFIX/lib]
1359 --includedir=DIR C header files [PREFIX/include]
1360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1363 --infodir=DIR info documentation [DATAROOTDIR/info]
1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1365 --mandir=DIR man documentation [DATAROOTDIR/man]
1366 --docdir=DIR documentation root [DATAROOTDIR/doc/asn1c]
1367 --htmldir=DIR html documentation [DOCDIR]
1368 --dvidir=DIR dvi documentation [DOCDIR]
1369 --pdfdir=DIR pdf documentation [DOCDIR]
1370 --psdir=DIR ps documentation [DOCDIR]
Lev Walkinf15320b2004-06-03 03:38:44 +00001371_ACEOF
1372
1373 cat <<\_ACEOF
1374
1375Program names:
1376 --program-prefix=PREFIX prepend PREFIX to installed program names
1377 --program-suffix=SUFFIX append SUFFIX to installed program names
1378 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1379
1380System types:
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Lev Walkinf15320b2004-06-03 03:38:44 +00001383_ACEOF
1384fi
1385
1386if test -n "$ac_init_help"; then
Lev Walkine7c4b962010-11-09 03:10:36 -08001387 case $ac_init_help in
Lev Walkind8ca7ce2013-03-16 07:07:26 -07001388 short | recursive ) echo "Configuration of asn1c 0.9.24:";;
Lev Walkine7c4b962010-11-09 03:10:36 -08001389 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00001390 cat <<\_ACEOF
1391
1392Optional Features:
Lev Walkinb3751942012-09-02 19:36:47 -07001393 --disable-option-checking ignore unrecognized --enable/--with options
Lev Walkinf15320b2004-06-03 03:38:44 +00001394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Lev Walkin27fd0b62007-08-27 23:57:45 +00001396 --enable-shared[=PKGS] build shared libraries [default=yes]
1397 --enable-static[=PKGS] build static libraries [default=yes]
Lev Walkin8e8b5482004-06-17 23:42:48 +00001398 --enable-fast-install[=PKGS]
1399 optimize for fast installation [default=yes]
1400 --disable-dependency-tracking speeds up one-time build
1401 --enable-dependency-tracking do not reject slow dependency extractors
Lev Walkinf15320b2004-06-03 03:38:44 +00001402 --disable-libtool-lock avoid locking (might break parallel builds)
Lev Walkinf15320b2004-06-03 03:38:44 +00001403 --enable-Werror abort compilation after any C compiler warning
1404
1405Optional Packages:
1406 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1407 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Lev Walkin8e8b5482004-06-17 23:42:48 +00001408 --with-pic try to use only PIC/non-PIC objects [default=use
1409 both]
Lev Walkin4da95cf2010-10-16 02:46:32 -07001410 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
Lev Walkinaef10c32014-01-14 01:47:25 -08001411 --with-sysroot=DIR Search for dependent libraries within DIR
1412 (or the compiler's sysroot if not specified).
Lev Walkinf15320b2004-06-03 03:38:44 +00001413
1414Some influential environment variables:
1415 CC C compiler command
1416 CFLAGS C compiler flags
1417 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1418 nonstandard directory <lib dir>
Lev Walkin4c776e52010-11-08 02:07:31 -08001419 LIBS libraries to pass to the linker, e.g. -l<library>
Lev Walkinaef10c32014-01-14 01:47:25 -08001420 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Lev Walkin27fd0b62007-08-27 23:57:45 +00001421 you have headers in a nonstandard directory <include dir>
Lev Walkinf15320b2004-06-03 03:38:44 +00001422 CPP C preprocessor
Lev Walkinaef10c32014-01-14 01:47:25 -08001423 YACC The `Yet Another Compiler Compiler' implementation to use.
1424 Defaults to the first program found out of: `bison -y', `byacc',
1425 `yacc'.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001426 YFLAGS The list of arguments that will be passed by default to $YACC.
1427 This script will default YFLAGS to the empty string to avoid a
1428 default value of `-d' given by some make applications.
Lev Walkinf15320b2004-06-03 03:38:44 +00001429
1430Use these variables to override the choices made by `configure' or to help
1431it to find libraries and programs with nonstandard names/locations.
1432
Lev Walkine7c4b962010-11-09 03:10:36 -08001433Report bugs to <vlm@lionet.info>.
Lev Walkinf15320b2004-06-03 03:38:44 +00001434_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001435ac_status=$?
Lev Walkinf15320b2004-06-03 03:38:44 +00001436fi
1437
1438if test "$ac_init_help" = "recursive"; then
1439 # If there are subdirs, report their specific --help.
Lev Walkinf15320b2004-06-03 03:38:44 +00001440 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Lev Walkinb3751942012-09-02 19:36:47 -07001441 test -d "$ac_dir" ||
1442 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1443 continue
Lev Walkinf15320b2004-06-03 03:38:44 +00001444 ac_builddir=.
1445
Lev Walkin27fd0b62007-08-27 23:57:45 +00001446case "$ac_dir" in
1447.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1448*)
Lev Walkinb3751942012-09-02 19:36:47 -07001449 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001450 # A ".." for each directory in $ac_dir_suffix.
Lev Walkinb3751942012-09-02 19:36:47 -07001451 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001452 case $ac_top_builddir_sub in
1453 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1455 esac ;;
1456esac
1457ac_abs_top_builddir=$ac_pwd
1458ac_abs_builddir=$ac_pwd$ac_dir_suffix
1459# for backward compatibility:
1460ac_top_builddir=$ac_top_build_prefix
Lev Walkinf15320b2004-06-03 03:38:44 +00001461
1462case $srcdir in
Lev Walkin27fd0b62007-08-27 23:57:45 +00001463 .) # We are building in place.
Lev Walkinf15320b2004-06-03 03:38:44 +00001464 ac_srcdir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +00001465 ac_top_srcdir=$ac_top_builddir_sub
1466 ac_abs_top_srcdir=$ac_pwd ;;
1467 [\\/]* | ?:[\\/]* ) # Absolute name.
Lev Walkinf15320b2004-06-03 03:38:44 +00001468 ac_srcdir=$srcdir$ac_dir_suffix;
Lev Walkin27fd0b62007-08-27 23:57:45 +00001469 ac_top_srcdir=$srcdir
1470 ac_abs_top_srcdir=$srcdir ;;
1471 *) # Relative name.
1472 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1473 ac_top_srcdir=$ac_top_build_prefix$srcdir
1474 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001475esac
Lev Walkin27fd0b62007-08-27 23:57:45 +00001476ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Lev Walkin8e8b5482004-06-17 23:42:48 +00001477
Lev Walkin27fd0b62007-08-27 23:57:45 +00001478 cd "$ac_dir" || { ac_status=$?; continue; }
1479 # Check for guested configure.
1480 if test -f "$ac_srcdir/configure.gnu"; then
1481 echo &&
1482 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1483 elif test -f "$ac_srcdir/configure"; then
1484 echo &&
1485 $SHELL "$ac_srcdir/configure" --help=recursive
Lev Walkinf15320b2004-06-03 03:38:44 +00001486 else
Lev Walkinb3751942012-09-02 19:36:47 -07001487 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Lev Walkin27fd0b62007-08-27 23:57:45 +00001488 fi || ac_status=$?
1489 cd "$ac_pwd" || { ac_status=$?; break; }
Lev Walkinf15320b2004-06-03 03:38:44 +00001490 done
1491fi
1492
Lev Walkin27fd0b62007-08-27 23:57:45 +00001493test -n "$ac_init_help" && exit $ac_status
Lev Walkinf15320b2004-06-03 03:38:44 +00001494if $ac_init_version; then
1495 cat <<\_ACEOF
Lev Walkind8ca7ce2013-03-16 07:07:26 -07001496asn1c configure 0.9.24
Lev Walkinaef10c32014-01-14 01:47:25 -08001497generated by GNU Autoconf 2.69
Lev Walkinf15320b2004-06-03 03:38:44 +00001498
Lev Walkinaef10c32014-01-14 01:47:25 -08001499Copyright (C) 2012 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +00001500This configure script is free software; the Free Software Foundation
1501gives unlimited permission to copy, distribute and modify it.
1502_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001503 exit
Lev Walkinf15320b2004-06-03 03:38:44 +00001504fi
Lev Walkinaef10c32014-01-14 01:47:25 -08001505
1506## ------------------------ ##
1507## Autoconf initialization. ##
1508## ------------------------ ##
1509
1510# ac_fn_c_try_compile LINENO
1511# --------------------------
1512# Try to compile conftest.$ac_ext, and return whether this succeeded.
1513ac_fn_c_try_compile ()
1514{
1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1516 rm -f conftest.$ac_objext
1517 if { { ac_try="$ac_compile"
1518case "(($ac_try" in
1519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1520 *) ac_try_echo=$ac_try;;
1521esac
1522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1523$as_echo "$ac_try_echo"; } >&5
1524 (eval "$ac_compile") 2>conftest.err
1525 ac_status=$?
1526 if test -s conftest.err; then
1527 grep -v '^ *+' conftest.err >conftest.er1
1528 cat conftest.er1 >&5
1529 mv -f conftest.er1 conftest.err
1530 fi
1531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1532 test $ac_status = 0; } && {
1533 test -z "$ac_c_werror_flag" ||
1534 test ! -s conftest.err
1535 } && test -s conftest.$ac_objext; then :
1536 ac_retval=0
1537else
1538 $as_echo "$as_me: failed program was:" >&5
1539sed 's/^/| /' conftest.$ac_ext >&5
1540
1541 ac_retval=1
1542fi
1543 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1544 as_fn_set_status $ac_retval
1545
1546} # ac_fn_c_try_compile
1547
1548# ac_fn_c_try_link LINENO
1549# -----------------------
1550# Try to link conftest.$ac_ext, and return whether this succeeded.
1551ac_fn_c_try_link ()
1552{
1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1554 rm -f conftest.$ac_objext conftest$ac_exeext
1555 if { { ac_try="$ac_link"
1556case "(($ac_try" in
1557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1558 *) ac_try_echo=$ac_try;;
1559esac
1560eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1561$as_echo "$ac_try_echo"; } >&5
1562 (eval "$ac_link") 2>conftest.err
1563 ac_status=$?
1564 if test -s conftest.err; then
1565 grep -v '^ *+' conftest.err >conftest.er1
1566 cat conftest.er1 >&5
1567 mv -f conftest.er1 conftest.err
1568 fi
1569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1570 test $ac_status = 0; } && {
1571 test -z "$ac_c_werror_flag" ||
1572 test ! -s conftest.err
1573 } && test -s conftest$ac_exeext && {
1574 test "$cross_compiling" = yes ||
1575 test -x conftest$ac_exeext
1576 }; then :
1577 ac_retval=0
1578else
1579 $as_echo "$as_me: failed program was:" >&5
1580sed 's/^/| /' conftest.$ac_ext >&5
1581
1582 ac_retval=1
1583fi
1584 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1585 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1586 # interfere with the next link command; also delete a directory that is
1587 # left behind by Apple's compiler. We do this before executing the actions.
1588 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590 as_fn_set_status $ac_retval
1591
1592} # ac_fn_c_try_link
1593
1594# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1595# -------------------------------------------------------
1596# Tests whether HEADER exists and can be compiled using the include files in
1597# INCLUDES, setting the cache variable VAR accordingly.
1598ac_fn_c_check_header_compile ()
1599{
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1602$as_echo_n "checking for $2... " >&6; }
1603if eval \${$3+:} false; then :
1604 $as_echo_n "(cached) " >&6
1605else
1606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1607/* end confdefs.h. */
1608$4
1609#include <$2>
1610_ACEOF
1611if ac_fn_c_try_compile "$LINENO"; then :
1612 eval "$3=yes"
1613else
1614 eval "$3=no"
1615fi
1616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1617fi
1618eval ac_res=\$$3
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1620$as_echo "$ac_res" >&6; }
1621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622
1623} # ac_fn_c_check_header_compile
1624
1625# ac_fn_c_try_cpp LINENO
1626# ----------------------
1627# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1628ac_fn_c_try_cpp ()
1629{
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 if { { ac_try="$ac_cpp conftest.$ac_ext"
1632case "(($ac_try" in
1633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1634 *) ac_try_echo=$ac_try;;
1635esac
1636eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1637$as_echo "$ac_try_echo"; } >&5
1638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1639 ac_status=$?
1640 if test -s conftest.err; then
1641 grep -v '^ *+' conftest.err >conftest.er1
1642 cat conftest.er1 >&5
1643 mv -f conftest.er1 conftest.err
1644 fi
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } > conftest.i && {
1647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1648 test ! -s conftest.err
1649 }; then :
1650 ac_retval=0
1651else
1652 $as_echo "$as_me: failed program was:" >&5
1653sed 's/^/| /' conftest.$ac_ext >&5
1654
1655 ac_retval=1
1656fi
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658 as_fn_set_status $ac_retval
1659
1660} # ac_fn_c_try_cpp
1661
1662# ac_fn_c_try_run LINENO
1663# ----------------------
1664# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1665# that executables *can* be run.
1666ac_fn_c_try_run ()
1667{
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 if { { ac_try="$ac_link"
1670case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673esac
1674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675$as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_link") 2>&5
1677 ac_status=$?
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1680 { { case "(($ac_try" in
1681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1682 *) ac_try_echo=$ac_try;;
1683esac
1684eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1685$as_echo "$ac_try_echo"; } >&5
1686 (eval "$ac_try") 2>&5
1687 ac_status=$?
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; }; }; then :
1690 ac_retval=0
1691else
1692 $as_echo "$as_me: program exited with status $ac_status" >&5
1693 $as_echo "$as_me: failed program was:" >&5
1694sed 's/^/| /' conftest.$ac_ext >&5
1695
1696 ac_retval=$ac_status
1697fi
1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 as_fn_set_status $ac_retval
1701
1702} # ac_fn_c_try_run
1703
1704# ac_fn_c_check_func LINENO FUNC VAR
1705# ----------------------------------
1706# Tests whether FUNC exists, setting the cache variable VAR accordingly
1707ac_fn_c_check_func ()
1708{
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711$as_echo_n "checking for $2... " >&6; }
1712if eval \${$3+:} false; then :
1713 $as_echo_n "(cached) " >&6
1714else
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716/* end confdefs.h. */
1717/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1719#define $2 innocuous_$2
1720
1721/* System header to define __stub macros and hopefully few prototypes,
1722 which can conflict with char $2 (); below.
1723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1724 <limits.h> exists even on freestanding compilers. */
1725
1726#ifdef __STDC__
1727# include <limits.h>
1728#else
1729# include <assert.h>
1730#endif
1731
1732#undef $2
1733
1734/* Override any GCC internal prototype to avoid an error.
1735 Use char because int might match the return type of a GCC
1736 builtin and then its argument prototype would still apply. */
1737#ifdef __cplusplus
1738extern "C"
1739#endif
1740char $2 ();
1741/* The GNU C library defines this for functions which it implements
1742 to always fail with ENOSYS. Some functions are actually named
1743 something starting with __ and the normal name is an alias. */
1744#if defined __stub_$2 || defined __stub___$2
1745choke me
1746#endif
1747
1748int
1749main ()
1750{
1751return $2 ();
1752 ;
1753 return 0;
1754}
1755_ACEOF
1756if ac_fn_c_try_link "$LINENO"; then :
1757 eval "$3=yes"
1758else
1759 eval "$3=no"
1760fi
1761rm -f core conftest.err conftest.$ac_objext \
1762 conftest$ac_exeext conftest.$ac_ext
1763fi
1764eval ac_res=\$$3
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1766$as_echo "$ac_res" >&6; }
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768
1769} # ac_fn_c_check_func
1770
1771# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1772# -------------------------------------------------------
1773# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1774# the include files in INCLUDES and setting the cache variable VAR
1775# accordingly.
1776ac_fn_c_check_header_mongrel ()
1777{
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 if eval \${$3+:} false; then :
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1781$as_echo_n "checking for $2... " >&6; }
1782if eval \${$3+:} false; then :
1783 $as_echo_n "(cached) " >&6
1784fi
1785eval ac_res=\$$3
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1787$as_echo "$ac_res" >&6; }
1788else
1789 # Is the header compilable?
1790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1791$as_echo_n "checking $2 usability... " >&6; }
1792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793/* end confdefs.h. */
1794$4
1795#include <$2>
1796_ACEOF
1797if ac_fn_c_try_compile "$LINENO"; then :
1798 ac_header_compiler=yes
1799else
1800 ac_header_compiler=no
1801fi
1802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1804$as_echo "$ac_header_compiler" >&6; }
1805
1806# Is the header present?
1807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1808$as_echo_n "checking $2 presence... " >&6; }
1809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1810/* end confdefs.h. */
1811#include <$2>
1812_ACEOF
1813if ac_fn_c_try_cpp "$LINENO"; then :
1814 ac_header_preproc=yes
1815else
1816 ac_header_preproc=no
1817fi
1818rm -f conftest.err conftest.i conftest.$ac_ext
1819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1820$as_echo "$ac_header_preproc" >&6; }
1821
1822# So? What about this header?
1823case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1824 yes:no: )
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1826$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1828$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1829 ;;
1830 no:yes:* )
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1832$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1834$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1836$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1838$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1840$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1841( $as_echo "## ------------------------------ ##
1842## Report this to vlm@lionet.info ##
1843## ------------------------------ ##"
1844 ) | sed "s/^/$as_me: WARNING: /" >&2
1845 ;;
1846esac
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848$as_echo_n "checking for $2... " >&6; }
1849if eval \${$3+:} false; then :
1850 $as_echo_n "(cached) " >&6
1851else
1852 eval "$3=\$ac_header_compiler"
1853fi
1854eval ac_res=\$$3
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1856$as_echo "$ac_res" >&6; }
1857fi
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859
1860} # ac_fn_c_check_header_mongrel
1861
1862# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1863# -------------------------------------------
1864# Tests whether TYPE exists after having included INCLUDES, setting cache
1865# variable VAR accordingly.
1866ac_fn_c_check_type ()
1867{
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870$as_echo_n "checking for $2... " >&6; }
1871if eval \${$3+:} false; then :
1872 $as_echo_n "(cached) " >&6
1873else
1874 eval "$3=no"
1875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876/* end confdefs.h. */
1877$4
1878int
1879main ()
1880{
1881if (sizeof ($2))
1882 return 0;
1883 ;
1884 return 0;
1885}
1886_ACEOF
1887if ac_fn_c_try_compile "$LINENO"; then :
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889/* end confdefs.h. */
1890$4
1891int
1892main ()
1893{
1894if (sizeof (($2)))
1895 return 0;
1896 ;
1897 return 0;
1898}
1899_ACEOF
1900if ac_fn_c_try_compile "$LINENO"; then :
1901
1902else
1903 eval "$3=yes"
1904fi
1905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906fi
1907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1908fi
1909eval ac_res=\$$3
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911$as_echo "$ac_res" >&6; }
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913
1914} # ac_fn_c_check_type
Lev Walkin27fd0b62007-08-27 23:57:45 +00001915cat >config.log <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +00001916This file contains any messages produced by compilers while
1917running configure, to aid debugging if configure makes a mistake.
1918
Lev Walkind8ca7ce2013-03-16 07:07:26 -07001919It was created by asn1c $as_me 0.9.24, which was
Lev Walkinaef10c32014-01-14 01:47:25 -08001920generated by GNU Autoconf 2.69. Invocation command line was
Lev Walkinf15320b2004-06-03 03:38:44 +00001921
1922 $ $0 $@
1923
1924_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00001925exec 5>>config.log
Lev Walkinf15320b2004-06-03 03:38:44 +00001926{
1927cat <<_ASUNAME
1928## --------- ##
1929## Platform. ##
1930## --------- ##
1931
1932hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1933uname -m = `(uname -m) 2>/dev/null || echo unknown`
1934uname -r = `(uname -r) 2>/dev/null || echo unknown`
1935uname -s = `(uname -s) 2>/dev/null || echo unknown`
1936uname -v = `(uname -v) 2>/dev/null || echo unknown`
1937
1938/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1939/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1940
1941/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1942/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1943/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Lev Walkin27fd0b62007-08-27 23:57:45 +00001944/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Lev Walkinf15320b2004-06-03 03:38:44 +00001945/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1946/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1947/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1948
1949_ASUNAME
1950
1951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1952for as_dir in $PATH
1953do
1954 IFS=$as_save_IFS
1955 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08001956 $as_echo "PATH: $as_dir"
1957 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00001958IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00001959
1960} >&5
1961
1962cat >&5 <<_ACEOF
1963
1964
1965## ----------- ##
1966## Core tests. ##
1967## ----------- ##
1968
1969_ACEOF
1970
1971
1972# Keep a trace of the command line.
1973# Strip out --no-create and --no-recursion so they do not pile up.
1974# Strip out --silent because we don't want to record it for future runs.
1975# Also quote any args containing shell meta-characters.
1976# Make two passes to allow for proper duplicate-argument suppression.
1977ac_configure_args=
1978ac_configure_args0=
1979ac_configure_args1=
Lev Walkinf15320b2004-06-03 03:38:44 +00001980ac_must_keep_next=false
1981for ac_pass in 1 2
1982do
1983 for ac_arg
1984 do
1985 case $ac_arg in
1986 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1987 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1988 | -silent | --silent | --silen | --sile | --sil)
1989 continue ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00001990 *\'*)
Lev Walkinb3751942012-09-02 19:36:47 -07001991 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001992 esac
1993 case $ac_pass in
Lev Walkinaef10c32014-01-14 01:47:25 -08001994 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00001995 2)
Lev Walkinaef10c32014-01-14 01:47:25 -08001996 as_fn_append ac_configure_args1 " '$ac_arg'"
Lev Walkinf15320b2004-06-03 03:38:44 +00001997 if test $ac_must_keep_next = true; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00001998 ac_must_keep_next=false # Got value, back to normal.
Lev Walkinf15320b2004-06-03 03:38:44 +00001999 else
Lev Walkin8e8b5482004-06-17 23:42:48 +00002000 case $ac_arg in
2001 *=* | --config-cache | -C | -disable-* | --disable-* \
2002 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2003 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2004 | -with-* | --with-* | -without-* | --without-* | --x)
2005 case "$ac_configure_args0 " in
2006 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2007 esac
2008 ;;
2009 -* ) ac_must_keep_next=true ;;
2010 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002011 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002012 as_fn_append ac_configure_args " '$ac_arg'"
Lev Walkinf15320b2004-06-03 03:38:44 +00002013 ;;
2014 esac
2015 done
2016done
Lev Walkinaef10c32014-01-14 01:47:25 -08002017{ ac_configure_args0=; unset ac_configure_args0;}
2018{ ac_configure_args1=; unset ac_configure_args1;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002019
2020# When interrupted or exit'd, cleanup temporary files, and complete
2021# config.log. We remove comments because anyway the quotes in there
2022# would cause problems or look ugly.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002023# WARNING: Use '\'' to represent an apostrophe within the trap.
2024# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Lev Walkinf15320b2004-06-03 03:38:44 +00002025trap 'exit_status=$?
2026 # Save into config.log some information that might help in debugging.
2027 {
2028 echo
2029
Lev Walkinaef10c32014-01-14 01:47:25 -08002030 $as_echo "## ---------------- ##
Lev Walkinf15320b2004-06-03 03:38:44 +00002031## Cache variables. ##
Lev Walkinaef10c32014-01-14 01:47:25 -08002032## ---------------- ##"
Lev Walkinf15320b2004-06-03 03:38:44 +00002033 echo
2034 # The following way of writing the cache mishandles newlines in values,
Lev Walkin27fd0b62007-08-27 23:57:45 +00002035(
2036 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2037 eval ac_val=\$$ac_var
2038 case $ac_val in #(
2039 *${as_nl}*)
2040 case $ac_var in #(
Lev Walkinaef10c32014-01-14 01:47:25 -08002041 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002042$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00002043 esac
2044 case $ac_var in #(
2045 _ | IFS | as_nl) ;; #(
Lev Walkinb3751942012-09-02 19:36:47 -07002046 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Lev Walkinaef10c32014-01-14 01:47:25 -08002047 *) { eval $ac_var=; unset $ac_var;} ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00002048 esac ;;
2049 esac
2050 done
Lev Walkinf15320b2004-06-03 03:38:44 +00002051 (set) 2>&1 |
Lev Walkin27fd0b62007-08-27 23:57:45 +00002052 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2053 *${as_nl}ac_space=\ *)
Lev Walkinf15320b2004-06-03 03:38:44 +00002054 sed -n \
Lev Walkin27fd0b62007-08-27 23:57:45 +00002055 "s/'\''/'\''\\\\'\'''\''/g;
2056 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2057 ;; #(
Lev Walkinf15320b2004-06-03 03:38:44 +00002058 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +00002059 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Lev Walkinf15320b2004-06-03 03:38:44 +00002060 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00002061 esac |
2062 sort
2063)
Lev Walkinf15320b2004-06-03 03:38:44 +00002064 echo
2065
Lev Walkinaef10c32014-01-14 01:47:25 -08002066 $as_echo "## ----------------- ##
Lev Walkinf15320b2004-06-03 03:38:44 +00002067## Output variables. ##
Lev Walkinaef10c32014-01-14 01:47:25 -08002068## ----------------- ##"
Lev Walkinf15320b2004-06-03 03:38:44 +00002069 echo
2070 for ac_var in $ac_subst_vars
2071 do
Lev Walkin27fd0b62007-08-27 23:57:45 +00002072 eval ac_val=\$$ac_var
2073 case $ac_val in
Lev Walkinb3751942012-09-02 19:36:47 -07002074 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00002075 esac
Lev Walkinb3751942012-09-02 19:36:47 -07002076 $as_echo "$ac_var='\''$ac_val'\''"
Lev Walkinf15320b2004-06-03 03:38:44 +00002077 done | sort
2078 echo
2079
2080 if test -n "$ac_subst_files"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002081 $as_echo "## ------------------- ##
Lev Walkin27fd0b62007-08-27 23:57:45 +00002082## File substitutions. ##
Lev Walkinaef10c32014-01-14 01:47:25 -08002083## ------------------- ##"
Lev Walkinf15320b2004-06-03 03:38:44 +00002084 echo
2085 for ac_var in $ac_subst_files
2086 do
Lev Walkin27fd0b62007-08-27 23:57:45 +00002087 eval ac_val=\$$ac_var
2088 case $ac_val in
Lev Walkinb3751942012-09-02 19:36:47 -07002089 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00002090 esac
Lev Walkinb3751942012-09-02 19:36:47 -07002091 $as_echo "$ac_var='\''$ac_val'\''"
Lev Walkinf15320b2004-06-03 03:38:44 +00002092 done | sort
2093 echo
2094 fi
2095
2096 if test -s confdefs.h; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002097 $as_echo "## ----------- ##
Lev Walkinf15320b2004-06-03 03:38:44 +00002098## confdefs.h. ##
Lev Walkinaef10c32014-01-14 01:47:25 -08002099## ----------- ##"
Lev Walkinf15320b2004-06-03 03:38:44 +00002100 echo
Lev Walkin27fd0b62007-08-27 23:57:45 +00002101 cat confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +00002102 echo
2103 fi
2104 test "$ac_signal" != 0 &&
Lev Walkinb3751942012-09-02 19:36:47 -07002105 $as_echo "$as_me: caught signal $ac_signal"
2106 $as_echo "$as_me: exit $exit_status"
Lev Walkinf15320b2004-06-03 03:38:44 +00002107 } >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00002108 rm -f core *.core core.conftest.* &&
2109 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Lev Walkinf15320b2004-06-03 03:38:44 +00002110 exit $exit_status
Lev Walkin27fd0b62007-08-27 23:57:45 +00002111' 0
Lev Walkinf15320b2004-06-03 03:38:44 +00002112for ac_signal in 1 2 13 15; do
Lev Walkinaef10c32014-01-14 01:47:25 -08002113 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Lev Walkinf15320b2004-06-03 03:38:44 +00002114done
2115ac_signal=0
2116
2117# confdefs.h avoids OS command line length limits that DEFS can exceed.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002118rm -f -r conftest* confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +00002119
Lev Walkinaef10c32014-01-14 01:47:25 -08002120$as_echo "/* confdefs.h */" > confdefs.h
2121
Lev Walkinf15320b2004-06-03 03:38:44 +00002122# Predefined preprocessor variables.
2123
2124cat >>confdefs.h <<_ACEOF
2125#define PACKAGE_NAME "$PACKAGE_NAME"
2126_ACEOF
2127
Lev Walkinf15320b2004-06-03 03:38:44 +00002128cat >>confdefs.h <<_ACEOF
2129#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2130_ACEOF
2131
Lev Walkinf15320b2004-06-03 03:38:44 +00002132cat >>confdefs.h <<_ACEOF
2133#define PACKAGE_VERSION "$PACKAGE_VERSION"
2134_ACEOF
2135
Lev Walkinf15320b2004-06-03 03:38:44 +00002136cat >>confdefs.h <<_ACEOF
2137#define PACKAGE_STRING "$PACKAGE_STRING"
2138_ACEOF
2139
Lev Walkinf15320b2004-06-03 03:38:44 +00002140cat >>confdefs.h <<_ACEOF
2141#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2142_ACEOF
2143
Lev Walkinaef10c32014-01-14 01:47:25 -08002144cat >>confdefs.h <<_ACEOF
2145#define PACKAGE_URL "$PACKAGE_URL"
2146_ACEOF
2147
Lev Walkinf15320b2004-06-03 03:38:44 +00002148
2149# Let the site file select an alternate cache file if it wants to.
Lev Walkinb3751942012-09-02 19:36:47 -07002150# Prefer an explicitly selected file to automatically selected ones.
2151ac_site_file1=NONE
2152ac_site_file2=NONE
Lev Walkin27fd0b62007-08-27 23:57:45 +00002153if test -n "$CONFIG_SITE"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002154 # We do not want a PATH search for config.site.
2155 case $CONFIG_SITE in #((
2156 -*) ac_site_file1=./$CONFIG_SITE;;
2157 */*) ac_site_file1=$CONFIG_SITE;;
2158 *) ac_site_file1=./$CONFIG_SITE;;
2159 esac
Lev Walkin27fd0b62007-08-27 23:57:45 +00002160elif test "x$prefix" != xNONE; then
Lev Walkinb3751942012-09-02 19:36:47 -07002161 ac_site_file1=$prefix/share/config.site
2162 ac_site_file2=$prefix/etc/config.site
Lev Walkin27fd0b62007-08-27 23:57:45 +00002163else
Lev Walkinb3751942012-09-02 19:36:47 -07002164 ac_site_file1=$ac_default_prefix/share/config.site
2165 ac_site_file2=$ac_default_prefix/etc/config.site
Lev Walkinf15320b2004-06-03 03:38:44 +00002166fi
Lev Walkinb3751942012-09-02 19:36:47 -07002167for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Lev Walkin27fd0b62007-08-27 23:57:45 +00002168do
Lev Walkinb3751942012-09-02 19:36:47 -07002169 test "x$ac_site_file" = xNONE && continue
Lev Walkinaef10c32014-01-14 01:47:25 -08002170 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002172$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002173 sed 's/^/| /' "$ac_site_file" >&5
Lev Walkinaef10c32014-01-14 01:47:25 -08002174 . "$ac_site_file" \
2175 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2176$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2177as_fn_error $? "failed to load site script $ac_site_file
2178See \`config.log' for more details" "$LINENO" 5; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002179 fi
2180done
2181
2182if test -r "$cache_file"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002183 # Some versions of bash will fail to source /dev/null (special files
2184 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2185 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002187$as_echo "$as_me: loading cache $cache_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002188 case $cache_file in
Lev Walkin27fd0b62007-08-27 23:57:45 +00002189 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2190 *) . "./$cache_file";;
Lev Walkinf15320b2004-06-03 03:38:44 +00002191 esac
2192 fi
2193else
Lev Walkinaef10c32014-01-14 01:47:25 -08002194 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002195$as_echo "$as_me: creating cache $cache_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002196 >$cache_file
2197fi
2198
2199# Check that the precious variables saved in the cache have kept the same
2200# value.
2201ac_cache_corrupted=false
Lev Walkin27fd0b62007-08-27 23:57:45 +00002202for ac_var in $ac_precious_vars; do
Lev Walkinf15320b2004-06-03 03:38:44 +00002203 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2204 eval ac_new_set=\$ac_env_${ac_var}_set
Lev Walkin27fd0b62007-08-27 23:57:45 +00002205 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2206 eval ac_new_val=\$ac_env_${ac_var}_value
Lev Walkinf15320b2004-06-03 03:38:44 +00002207 case $ac_old_set,$ac_new_set in
2208 set,)
Lev Walkinaef10c32014-01-14 01:47:25 -08002209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002210$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002211 ac_cache_corrupted=: ;;
2212 ,set)
Lev Walkinaef10c32014-01-14 01:47:25 -08002213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002214$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002215 ac_cache_corrupted=: ;;
2216 ,);;
2217 *)
2218 if test "x$ac_old_val" != "x$ac_new_val"; then
Lev Walkinb3751942012-09-02 19:36:47 -07002219 # differences in whitespace do not lead to failure.
2220 ac_old_val_w=`echo x $ac_old_val`
2221 ac_new_val_w=`echo x $ac_new_val`
2222 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002224$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2225 ac_cache_corrupted=:
2226 else
Lev Walkinaef10c32014-01-14 01:47:25 -08002227 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002228$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2229 eval $ac_var=\$ac_old_val
2230 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002231 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002232$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08002233 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002234$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +00002235 fi;;
2236 esac
2237 # Pass precious variables to config.status.
2238 if test "$ac_new_set" = set; then
2239 case $ac_new_val in
Lev Walkinb3751942012-09-02 19:36:47 -07002240 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002241 *) ac_arg=$ac_var=$ac_new_val ;;
2242 esac
2243 case " $ac_configure_args " in
2244 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Lev Walkinaef10c32014-01-14 01:47:25 -08002245 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00002246 esac
2247 fi
2248done
2249if $ac_cache_corrupted; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002251$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08002252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002253$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08002254 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +00002255fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002256## -------------------- ##
2257## Main body of script. ##
2258## -------------------- ##
Lev Walkine7c4b962010-11-09 03:10:36 -08002259
Lev Walkinf15320b2004-06-03 03:38:44 +00002260ac_ext=c
2261ac_cpp='$CPP $CPPFLAGS'
2262ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2263ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2264ac_compiler_gnu=$ac_cv_c_compiler_gnu
2265
2266
Lev Walkinb3751942012-09-02 19:36:47 -07002267am__api_version='1.11'
Lev Walkine7c4b962010-11-09 03:10:36 -08002268
Lev Walkinf15320b2004-06-03 03:38:44 +00002269ac_aux_dir=
Lev Walkin27fd0b62007-08-27 23:57:45 +00002270for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2271 if test -f "$ac_dir/install-sh"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002272 ac_aux_dir=$ac_dir
2273 ac_install_sh="$ac_aux_dir/install-sh -c"
2274 break
Lev Walkin27fd0b62007-08-27 23:57:45 +00002275 elif test -f "$ac_dir/install.sh"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002276 ac_aux_dir=$ac_dir
2277 ac_install_sh="$ac_aux_dir/install.sh -c"
2278 break
Lev Walkin27fd0b62007-08-27 23:57:45 +00002279 elif test -f "$ac_dir/shtool"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002280 ac_aux_dir=$ac_dir
2281 ac_install_sh="$ac_aux_dir/shtool install -c"
2282 break
2283 fi
2284done
2285if test -z "$ac_aux_dir"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002286 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +00002287fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00002288
2289# These three variables are undocumented and unsupported,
2290# and are intended to be withdrawn in a future Autoconf release.
2291# They can cause serious problems if a builder's source tree is in a directory
2292# whose full name contains unusual characters.
2293ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2294ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2295ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2296
Lev Walkinf15320b2004-06-03 03:38:44 +00002297
Lev Walkinf15320b2004-06-03 03:38:44 +00002298# Find a good install program. We prefer a C program (faster),
2299# so one script is as good as another. But avoid the broken or
2300# incompatible versions:
2301# SysV /etc/install, /usr/sbin/install
2302# SunOS /usr/etc/install
2303# IRIX /sbin/install
2304# AIX /bin/install
2305# AmigaOS /C/install, which installs bootblocks on floppy discs
2306# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2307# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2308# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Lev Walkin8e8b5482004-06-17 23:42:48 +00002309# OS/2's system install, which has a completely different semantic
Lev Walkinf15320b2004-06-03 03:38:44 +00002310# ./install, which can be erroneously created by make from ./install.sh.
Lev Walkinb3751942012-09-02 19:36:47 -07002311# Reject install programs that cannot install multiple files.
Lev Walkinaef10c32014-01-14 01:47:25 -08002312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002313$as_echo_n "checking for a BSD-compatible install... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002314if test -z "$INSTALL"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002315if ${ac_cv_path_install+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002316 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00002317else
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319for as_dir in $PATH
2320do
2321 IFS=$as_save_IFS
2322 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08002323 # Account for people who put trailing slashes in PATH elements.
2324case $as_dir/ in #((
2325 ./ | .// | /[cC]/* | \
Lev Walkinf15320b2004-06-03 03:38:44 +00002326 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Lev Walkinaef10c32014-01-14 01:47:25 -08002327 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Lev Walkinf15320b2004-06-03 03:38:44 +00002328 /usr/ucb/* ) ;;
2329 *)
2330 # OSF1 and SCO ODT 3.0 have their own names for install.
2331 # Don't use installbsd from OSF since it installs stuff as root
2332 # by default.
2333 for ac_prog in ginstall scoinst install; do
2334 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkinaef10c32014-01-14 01:47:25 -08002335 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00002336 if test $ac_prog = install &&
2337 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2338 # AIX install. It has an incompatible calling convention.
2339 :
2340 elif test $ac_prog = install &&
2341 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2342 # program-specific install script used by HP pwplus--don't use.
2343 :
2344 else
Lev Walkinb3751942012-09-02 19:36:47 -07002345 rm -rf conftest.one conftest.two conftest.dir
2346 echo one > conftest.one
2347 echo two > conftest.two
2348 mkdir conftest.dir
2349 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2350 test -s conftest.one && test -s conftest.two &&
2351 test -s conftest.dir/conftest.one &&
2352 test -s conftest.dir/conftest.two
2353 then
2354 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2355 break 3
2356 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002357 fi
2358 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002359 done
2360 done
2361 ;;
2362esac
Lev Walkinb3751942012-09-02 19:36:47 -07002363
Lev Walkinaef10c32014-01-14 01:47:25 -08002364 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002365IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002366
Lev Walkinb3751942012-09-02 19:36:47 -07002367rm -rf conftest.one conftest.two conftest.dir
Lev Walkinf15320b2004-06-03 03:38:44 +00002368
2369fi
2370 if test "${ac_cv_path_install+set}" = set; then
2371 INSTALL=$ac_cv_path_install
2372 else
Lev Walkin27fd0b62007-08-27 23:57:45 +00002373 # As a last resort, use the slow shell script. Don't cache a
2374 # value for INSTALL within a source directory, because that will
Lev Walkinf15320b2004-06-03 03:38:44 +00002375 # break other packages using the cache if that directory is
Lev Walkin27fd0b62007-08-27 23:57:45 +00002376 # removed, or if the value is a relative name.
Lev Walkinf15320b2004-06-03 03:38:44 +00002377 INSTALL=$ac_install_sh
2378 fi
2379fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002381$as_echo "$INSTALL" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002382
2383# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2384# It thinks the first close brace ends the variable substitution.
2385test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2386
2387test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2388
2389test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2390
Lev Walkinaef10c32014-01-14 01:47:25 -08002391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002392$as_echo_n "checking whether build environment is sane... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002393# Just in case
2394sleep 1
2395echo timestamp > conftest.file
Lev Walkinb3751942012-09-02 19:36:47 -07002396# Reject unsafe characters in $srcdir or the absolute working directory
2397# name. Accept space and tab only in the latter.
2398am_lf='
2399'
2400case `pwd` in
2401 *[\\\"\#\$\&\'\`$am_lf]*)
Lev Walkinaef10c32014-01-14 01:47:25 -08002402 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
Lev Walkinb3751942012-09-02 19:36:47 -07002403esac
2404case $srcdir in
2405 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
Lev Walkinaef10c32014-01-14 01:47:25 -08002406 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
Lev Walkinb3751942012-09-02 19:36:47 -07002407esac
2408
Lev Walkinf15320b2004-06-03 03:38:44 +00002409# Do `set' in a subshell so we don't clobber the current shell's
2410# arguments. Must try -L first in case configure is actually a
2411# symlink; some systems play weird games with the mod time of symlinks
2412# (eg FreeBSD returns the mod time of the symlink's containing
2413# directory).
2414if (
Lev Walkinb3751942012-09-02 19:36:47 -07002415 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
Lev Walkinf15320b2004-06-03 03:38:44 +00002416 if test "$*" = "X"; then
2417 # -L didn't work.
Lev Walkinb3751942012-09-02 19:36:47 -07002418 set X `ls -t "$srcdir/configure" conftest.file`
Lev Walkinf15320b2004-06-03 03:38:44 +00002419 fi
2420 rm -f conftest.file
2421 if test "$*" != "X $srcdir/configure conftest.file" \
2422 && test "$*" != "X conftest.file $srcdir/configure"; then
2423
2424 # If neither matched, then we have a broken ls. This can happen
2425 # if, for instance, CONFIG_SHELL is bash and it inherits a
2426 # broken ls alias from the environment. This has actually
2427 # happened. Such a system could not be considered "sane".
Lev Walkinaef10c32014-01-14 01:47:25 -08002428 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2429alias in your environment" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +00002430 fi
2431
2432 test "$2" = conftest.file
2433 )
2434then
2435 # Ok.
2436 :
2437else
Lev Walkinaef10c32014-01-14 01:47:25 -08002438 as_fn_error $? "newly created file is older than distributed files!
2439Check your system clock" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +00002440fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002442$as_echo "yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002443test "$program_prefix" != NONE &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00002444 program_transform_name="s&^&$program_prefix&;$program_transform_name"
Lev Walkinf15320b2004-06-03 03:38:44 +00002445# Use a double $ so make ignores it.
2446test "$program_suffix" != NONE &&
Lev Walkin27fd0b62007-08-27 23:57:45 +00002447 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
Lev Walkinb3751942012-09-02 19:36:47 -07002448# Double any \ or $.
Lev Walkinf15320b2004-06-03 03:38:44 +00002449# By default was `s,x,x', remove it if useless.
Lev Walkinb3751942012-09-02 19:36:47 -07002450ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2451program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
Lev Walkinf15320b2004-06-03 03:38:44 +00002452
Lev Walkinf15320b2004-06-03 03:38:44 +00002453# expand $ac_aux_dir to an absolute path
Lev Walkin8e8b5482004-06-17 23:42:48 +00002454am_aux_dir=`cd $ac_aux_dir && pwd`
Lev Walkinf15320b2004-06-03 03:38:44 +00002455
Lev Walkinb3751942012-09-02 19:36:47 -07002456if test x"${MISSING+set}" != xset; then
2457 case $am_aux_dir in
2458 *\ * | *\ *)
2459 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2460 *)
2461 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2462 esac
2463fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002464# Use eval to expand $SHELL
2465if eval "$MISSING --run true"; then
2466 am_missing_run="$MISSING --run "
2467else
2468 am_missing_run=
Lev Walkinaef10c32014-01-14 01:47:25 -08002469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002470$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +00002471fi
2472
Lev Walkinb3751942012-09-02 19:36:47 -07002473if test x"${install_sh}" != xset; then
2474 case $am_aux_dir in
2475 *\ * | *\ *)
2476 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2477 *)
2478 install_sh="\${SHELL} $am_aux_dir/install-sh"
2479 esac
2480fi
2481
2482# Installed binaries are usually stripped using `strip' when the user
2483# run `make install-strip'. However `strip' might not be the right
2484# tool to use in cross-compilation environments, therefore Automake
2485# will honor the `STRIP' environment variable to overrule this program.
2486if test "$cross_compiling" != no; then
2487 if test -n "$ac_tool_prefix"; then
2488 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2489set dummy ${ac_tool_prefix}strip; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08002490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002491$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08002492if ${ac_cv_prog_STRIP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002493 $as_echo_n "(cached) " >&6
2494else
2495 if test -n "$STRIP"; then
2496 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2497else
2498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499for as_dir in $PATH
2500do
2501 IFS=$as_save_IFS
2502 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08002503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinb3751942012-09-02 19:36:47 -07002505 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Lev Walkinaef10c32014-01-14 01:47:25 -08002506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002507 break 2
2508 fi
2509done
Lev Walkinaef10c32014-01-14 01:47:25 -08002510 done
Lev Walkinb3751942012-09-02 19:36:47 -07002511IFS=$as_save_IFS
2512
2513fi
2514fi
2515STRIP=$ac_cv_prog_STRIP
2516if test -n "$STRIP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002518$as_echo "$STRIP" >&6; }
2519else
Lev Walkinaef10c32014-01-14 01:47:25 -08002520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002521$as_echo "no" >&6; }
2522fi
2523
2524
2525fi
2526if test -z "$ac_cv_prog_STRIP"; then
2527 ac_ct_STRIP=$STRIP
2528 # Extract the first word of "strip", so it can be a program name with args.
2529set dummy strip; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08002530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002531$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08002532if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002533 $as_echo_n "(cached) " >&6
2534else
2535 if test -n "$ac_ct_STRIP"; then
2536 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2537else
2538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2539for as_dir in $PATH
2540do
2541 IFS=$as_save_IFS
2542 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08002543 for ac_exec_ext in '' $ac_executable_extensions; do
2544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinb3751942012-09-02 19:36:47 -07002545 ac_cv_prog_ac_ct_STRIP="strip"
Lev Walkinaef10c32014-01-14 01:47:25 -08002546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002547 break 2
2548 fi
2549done
Lev Walkinaef10c32014-01-14 01:47:25 -08002550 done
Lev Walkinb3751942012-09-02 19:36:47 -07002551IFS=$as_save_IFS
2552
2553fi
2554fi
2555ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2556if test -n "$ac_ct_STRIP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002558$as_echo "$ac_ct_STRIP" >&6; }
2559else
Lev Walkinaef10c32014-01-14 01:47:25 -08002560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002561$as_echo "no" >&6; }
2562fi
2563
2564 if test "x$ac_ct_STRIP" = x; then
2565 STRIP=":"
2566 else
2567 case $cross_compiling:$ac_tool_warned in
2568yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08002569{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002570$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2571ac_tool_warned=yes ;;
2572esac
2573 STRIP=$ac_ct_STRIP
2574 fi
2575else
2576 STRIP="$ac_cv_prog_STRIP"
2577fi
2578
2579fi
2580INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2581
Lev Walkinaef10c32014-01-14 01:47:25 -08002582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002583$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
Lev Walkin4c776e52010-11-08 02:07:31 -08002584if test -z "$MKDIR_P"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002585 if ${ac_cv_path_mkdir+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002586 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00002587else
Lev Walkin4c776e52010-11-08 02:07:31 -08002588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2590do
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08002593 for ac_prog in mkdir gmkdir; do
Lev Walkin4c776e52010-11-08 02:07:31 -08002594 for ac_exec_ext in '' $ac_executable_extensions; do
Lev Walkinaef10c32014-01-14 01:47:25 -08002595 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
Lev Walkin4c776e52010-11-08 02:07:31 -08002596 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2597 'mkdir (GNU coreutils) '* | \
2598 'mkdir (coreutils) '* | \
2599 'mkdir (fileutils) '4.1*)
2600 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2601 break 3;;
2602 esac
2603 done
2604 done
Lev Walkinaef10c32014-01-14 01:47:25 -08002605 done
Lev Walkin4c776e52010-11-08 02:07:31 -08002606IFS=$as_save_IFS
2607
2608fi
2609
Lev Walkinaef10c32014-01-14 01:47:25 -08002610 test -d ./--version && rmdir ./--version
Lev Walkin4c776e52010-11-08 02:07:31 -08002611 if test "${ac_cv_path_mkdir+set}" = set; then
2612 MKDIR_P="$ac_cv_path_mkdir -p"
Lev Walkin8e8b5482004-06-17 23:42:48 +00002613 else
Lev Walkin4c776e52010-11-08 02:07:31 -08002614 # As a last resort, use the slow shell script. Don't cache a
2615 # value for MKDIR_P within a source directory, because that will
2616 # break other packages using the cache if that directory is
2617 # removed, or if the value is a relative name.
Lev Walkin4c776e52010-11-08 02:07:31 -08002618 MKDIR_P="$ac_install_sh -d"
Lev Walkin8e8b5482004-06-17 23:42:48 +00002619 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002620fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002622$as_echo "$MKDIR_P" >&6; }
Lev Walkin4c776e52010-11-08 02:07:31 -08002623
2624mkdir_p="$MKDIR_P"
2625case $mkdir_p in
2626 [\\/$]* | ?:[\\/]*) ;;
2627 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2628esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002629
2630for ac_prog in gawk mawk nawk awk
2631do
2632 # Extract the first word of "$ac_prog", so it can be a program name with args.
2633set dummy $ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08002634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002635$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08002636if ${ac_cv_prog_AWK+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002637 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00002638else
2639 if test -n "$AWK"; then
2640 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2641else
2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643for as_dir in $PATH
2644do
2645 IFS=$as_save_IFS
2646 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08002647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00002649 ac_cv_prog_AWK="$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -08002650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00002651 break 2
2652 fi
2653done
Lev Walkinaef10c32014-01-14 01:47:25 -08002654 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00002655IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00002656
2657fi
2658fi
2659AWK=$ac_cv_prog_AWK
2660if test -n "$AWK"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002662$as_echo "$AWK" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002663else
Lev Walkinaef10c32014-01-14 01:47:25 -08002664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002665$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002666fi
2667
Lev Walkin27fd0b62007-08-27 23:57:45 +00002668
Lev Walkinf15320b2004-06-03 03:38:44 +00002669 test -n "$AWK" && break
2670done
2671
Lev Walkinaef10c32014-01-14 01:47:25 -08002672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002673$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2674set x ${MAKE-make}
2675ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Lev Walkinaef10c32014-01-14 01:47:25 -08002676if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002677 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00002678else
2679 cat >conftest.make <<\_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00002680SHELL = /bin/sh
Lev Walkinf15320b2004-06-03 03:38:44 +00002681all:
Lev Walkin27fd0b62007-08-27 23:57:45 +00002682 @echo '@@@%%%=$(MAKE)=@@@%%%'
Lev Walkinf15320b2004-06-03 03:38:44 +00002683_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08002684# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Lev Walkin27fd0b62007-08-27 23:57:45 +00002685case `${MAKE-make} -f conftest.make 2>/dev/null` in
2686 *@@@%%%=?*=@@@%%%*)
2687 eval ac_cv_prog_make_${ac_make}_set=yes;;
2688 *)
2689 eval ac_cv_prog_make_${ac_make}_set=no;;
2690esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002691rm -f conftest.make
2692fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00002693if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002695$as_echo "yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002696 SET_MAKE=
2697else
Lev Walkinaef10c32014-01-14 01:47:25 -08002698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002699$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002700 SET_MAKE="MAKE=${MAKE-make}"
2701fi
2702
Lev Walkin8e8b5482004-06-17 23:42:48 +00002703rm -rf .tst 2>/dev/null
2704mkdir .tst 2>/dev/null
2705if test -d .tst; then
2706 am__leading_dot=.
Lev Walkinf15320b2004-06-03 03:38:44 +00002707else
Lev Walkin8e8b5482004-06-17 23:42:48 +00002708 am__leading_dot=_
Lev Walkinf15320b2004-06-03 03:38:44 +00002709fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002710rmdir .tst 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +00002711
Lev Walkin4c776e52010-11-08 02:07:31 -08002712if test "`cd $srcdir && pwd`" != "`pwd`"; then
2713 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2714 # is not polluted with repeated "-I."
2715 am__isrc=' -I$(srcdir)'
2716 # test to see if srcdir already configured
2717 if test -f $srcdir/config.status; then
Lev Walkinaef10c32014-01-14 01:47:25 -08002718 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
Lev Walkin4c776e52010-11-08 02:07:31 -08002719 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00002720fi
2721
Lev Walkin8e8b5482004-06-17 23:42:48 +00002722# test whether we have cygpath
2723if test -z "$CYGPATH_W"; then
2724 if (cygpath --version) >/dev/null 2>/dev/null; then
2725 CYGPATH_W='cygpath -w'
2726 else
2727 CYGPATH_W=echo
2728 fi
2729fi
2730
2731
Lev Walkinf15320b2004-06-03 03:38:44 +00002732# Define the identity of the package.
Lev Walkine7c4b962010-11-09 03:10:36 -08002733 PACKAGE='asn1c'
Lev Walkind8ca7ce2013-03-16 07:07:26 -07002734 VERSION='0.9.24'
Lev Walkin8e8b5482004-06-17 23:42:48 +00002735
Lev Walkinf15320b2004-06-03 03:38:44 +00002736
2737cat >>confdefs.h <<_ACEOF
2738#define PACKAGE "$PACKAGE"
2739_ACEOF
2740
2741
2742cat >>confdefs.h <<_ACEOF
2743#define VERSION "$VERSION"
2744_ACEOF
2745
Lev Walkinf15320b2004-06-03 03:38:44 +00002746# Some tools Automake needs.
2747
Lev Walkin8e8b5482004-06-17 23:42:48 +00002748ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
Lev Walkinf15320b2004-06-03 03:38:44 +00002749
2750
2751AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2752
2753
Lev Walkin8e8b5482004-06-17 23:42:48 +00002754AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
Lev Walkinf15320b2004-06-03 03:38:44 +00002755
2756
2757AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2758
2759
2760MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2761
Lev Walkinf15320b2004-06-03 03:38:44 +00002762# We need awk for the "check" target. The system "awk" is bad on
2763# some platforms.
Lev Walkinc46b7cb2006-08-18 02:27:55 +00002764# Always define AMTAR for backward compatibility.
2765
2766AMTAR=${AMTAR-"${am_missing_run}tar"}
2767
2768am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2769
2770
Lev Walkinf15320b2004-06-03 03:38:44 +00002771
2772
2773
Lev Walkine7c4b962010-11-09 03:10:36 -08002774ac_config_headers="$ac_config_headers config.h"
Lev Walkinf15320b2004-06-03 03:38:44 +00002775
2776
2777
Lev Walkin4da95cf2010-10-16 02:46:32 -07002778case `pwd` in
2779 *\ * | *\ *)
Lev Walkinaef10c32014-01-14 01:47:25 -08002780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002781$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07002782esac
2783
2784
2785
Lev Walkinaef10c32014-01-14 01:47:25 -08002786macro_version='2.4'
2787macro_revision='1.3293'
Lev Walkin4da95cf2010-10-16 02:46:32 -07002788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801ltmain="$ac_aux_dir/ltmain.sh"
2802
Lev Walkine7c4b962010-11-09 03:10:36 -08002803# Make sure we can run config.sub.
2804$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Lev Walkinaef10c32014-01-14 01:47:25 -08002805 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Lev Walkine7c4b962010-11-09 03:10:36 -08002806
Lev Walkinaef10c32014-01-14 01:47:25 -08002807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002808$as_echo_n "checking build system type... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08002809if ${ac_cv_build+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002810 $as_echo_n "(cached) " >&6
Lev Walkine7c4b962010-11-09 03:10:36 -08002811else
2812 ac_build_alias=$build_alias
2813test "x$ac_build_alias" = x &&
2814 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2815test "x$ac_build_alias" = x &&
Lev Walkinaef10c32014-01-14 01:47:25 -08002816 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Lev Walkine7c4b962010-11-09 03:10:36 -08002817ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Lev Walkinaef10c32014-01-14 01:47:25 -08002818 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Lev Walkine7c4b962010-11-09 03:10:36 -08002819
2820fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002822$as_echo "$ac_cv_build" >&6; }
Lev Walkine7c4b962010-11-09 03:10:36 -08002823case $ac_cv_build in
2824*-*-*) ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08002825*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Lev Walkine7c4b962010-11-09 03:10:36 -08002826esac
2827build=$ac_cv_build
2828ac_save_IFS=$IFS; IFS='-'
2829set x $ac_cv_build
2830shift
2831build_cpu=$1
2832build_vendor=$2
2833shift; shift
2834# Remember, the first character of IFS is used to create $*,
2835# except with old shells:
2836build_os=$*
2837IFS=$ac_save_IFS
2838case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2839
2840
Lev Walkinaef10c32014-01-14 01:47:25 -08002841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002842$as_echo_n "checking host system type... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08002843if ${ac_cv_host+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07002844 $as_echo_n "(cached) " >&6
Lev Walkine7c4b962010-11-09 03:10:36 -08002845else
2846 if test "x$host_alias" = x; then
2847 ac_cv_host=$ac_cv_build
2848else
2849 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Lev Walkinaef10c32014-01-14 01:47:25 -08002850 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Lev Walkine7c4b962010-11-09 03:10:36 -08002851fi
2852
2853fi
Lev Walkinaef10c32014-01-14 01:47:25 -08002854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002855$as_echo "$ac_cv_host" >&6; }
Lev Walkine7c4b962010-11-09 03:10:36 -08002856case $ac_cv_host in
2857*-*-*) ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08002858*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Lev Walkine7c4b962010-11-09 03:10:36 -08002859esac
2860host=$ac_cv_host
2861ac_save_IFS=$IFS; IFS='-'
2862set x $ac_cv_host
2863shift
2864host_cpu=$1
2865host_vendor=$2
2866shift; shift
2867# Remember, the first character of IFS is used to create $*,
2868# except with old shells:
2869host_os=$*
2870IFS=$ac_save_IFS
2871case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2872
2873
Lev Walkinaef10c32014-01-14 01:47:25 -08002874# Backslashify metacharacters that are still active within
2875# double-quoted strings.
2876sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2877
2878# Same as above, but do not quote variable references.
2879double_quote_subst='s/\(["`\\]\)/\\\1/g'
2880
2881# Sed substitution to delay expansion of an escaped shell variable in a
2882# double_quote_subst'ed string.
2883delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2884
2885# Sed substitution to delay expansion of an escaped single quote.
2886delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2887
2888# Sed substitution to avoid accidental globbing in evaled expressions
2889no_glob_subst='s/\*/\\\*/g'
2890
2891ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2892ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2893ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2894
2895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2896$as_echo_n "checking how to print strings... " >&6; }
2897# Test print first, because it will be a builtin if present.
2898if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2899 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2900 ECHO='print -r --'
2901elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2902 ECHO='printf %s\n'
2903else
2904 # Use this function as a fallback that always works.
2905 func_fallback_echo ()
2906 {
2907 eval 'cat <<_LTECHO_EOF
2908$1
2909_LTECHO_EOF'
2910 }
2911 ECHO='func_fallback_echo'
2912fi
2913
2914# func_echo_all arg...
2915# Invoke $ECHO with all args, space-separated.
2916func_echo_all ()
2917{
2918 $ECHO ""
2919}
2920
2921case "$ECHO" in
2922 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2923$as_echo "printf" >&6; } ;;
2924 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2925$as_echo "print -r" >&6; } ;;
2926 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2927$as_echo "cat" >&6; } ;;
2928esac
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
Lev Walkin8e8b5482004-06-17 23:42:48 +00002943DEPDIR="${am__leading_dot}deps"
Lev Walkinf15320b2004-06-03 03:38:44 +00002944
Lev Walkin27fd0b62007-08-27 23:57:45 +00002945ac_config_commands="$ac_config_commands depfiles"
Lev Walkinf15320b2004-06-03 03:38:44 +00002946
Lev Walkinf15320b2004-06-03 03:38:44 +00002947
2948am_make=${MAKE-make}
2949cat > confinc << 'END'
Lev Walkin8e8b5482004-06-17 23:42:48 +00002950am__doit:
Lev Walkinb3751942012-09-02 19:36:47 -07002951 @echo this is the am__doit target
Lev Walkin8e8b5482004-06-17 23:42:48 +00002952.PHONY: am__doit
Lev Walkinf15320b2004-06-03 03:38:44 +00002953END
2954# If we don't find an include directive, just comment out the code.
Lev Walkinaef10c32014-01-14 01:47:25 -08002955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002956$as_echo_n "checking for style of include used by $am_make... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00002957am__include="#"
Lev Walkinf15320b2004-06-03 03:38:44 +00002958am__quote=
2959_am_result=none
2960# First try GNU make style include.
2961echo "include confinc" > confmf
Lev Walkinb3751942012-09-02 19:36:47 -07002962# Ignore all kinds of additional output from `make'.
2963case `$am_make -s -f confmf 2> /dev/null` in #(
2964*the\ am__doit\ target*)
2965 am__include=include
2966 am__quote=
2967 _am_result=GNU
2968 ;;
2969esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002970# Now try BSD make style include.
2971if test "$am__include" = "#"; then
2972 echo '.include "confinc"' > confmf
Lev Walkinb3751942012-09-02 19:36:47 -07002973 case `$am_make -s -f confmf 2> /dev/null` in #(
2974 *the\ am__doit\ target*)
2975 am__include=.include
2976 am__quote="\""
2977 _am_result=BSD
2978 ;;
2979 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00002980fi
2981
2982
Lev Walkinaef10c32014-01-14 01:47:25 -08002983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07002984$as_echo "$_am_result" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00002985rm -f confinc confmf
2986
Lev Walkin27fd0b62007-08-27 23:57:45 +00002987# Check whether --enable-dependency-tracking was given.
Lev Walkinaef10c32014-01-14 01:47:25 -08002988if test "${enable_dependency_tracking+set}" = set; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00002989 enableval=$enable_dependency_tracking;
2990fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00002991
Lev Walkin8e8b5482004-06-17 23:42:48 +00002992if test "x$enable_dependency_tracking" != xno; then
2993 am_depcomp="$ac_aux_dir/depcomp"
2994 AMDEPBACKSLASH='\'
2995fi
Lev Walkin4c776e52010-11-08 02:07:31 -08002996 if test "x$enable_dependency_tracking" != xno; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00002997 AMDEP_TRUE=
2998 AMDEP_FALSE='#'
2999else
3000 AMDEP_TRUE='#'
3001 AMDEP_FALSE=
3002fi
3003
3004
Lev Walkinf15320b2004-06-03 03:38:44 +00003005ac_ext=c
3006ac_cpp='$CPP $CPPFLAGS'
3007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3009ac_compiler_gnu=$ac_cv_c_compiler_gnu
3010if test -n "$ac_tool_prefix"; then
3011 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3012set dummy ${ac_tool_prefix}gcc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08003013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003014$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003015if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003016 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003017else
3018 if test -n "$CC"; then
3019 ac_cv_prog_CC="$CC" # Let the user override the test.
3020else
3021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022for as_dir in $PATH
3023do
3024 IFS=$as_save_IFS
3025 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08003026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003028 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Lev Walkinaef10c32014-01-14 01:47:25 -08003029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003030 break 2
3031 fi
3032done
Lev Walkinaef10c32014-01-14 01:47:25 -08003033 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003034IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00003035
3036fi
3037fi
3038CC=$ac_cv_prog_CC
3039if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08003040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003041$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003042else
Lev Walkinaef10c32014-01-14 01:47:25 -08003043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003044$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003045fi
3046
Lev Walkin27fd0b62007-08-27 23:57:45 +00003047
Lev Walkinf15320b2004-06-03 03:38:44 +00003048fi
3049if test -z "$ac_cv_prog_CC"; then
3050 ac_ct_CC=$CC
3051 # Extract the first word of "gcc", so it can be a program name with args.
3052set dummy gcc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08003053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003054$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003055if ${ac_cv_prog_ac_ct_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003056 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003057else
3058 if test -n "$ac_ct_CC"; then
3059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3060else
3061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062for as_dir in $PATH
3063do
3064 IFS=$as_save_IFS
3065 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08003066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003068 ac_cv_prog_ac_ct_CC="gcc"
Lev Walkinaef10c32014-01-14 01:47:25 -08003069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003070 break 2
3071 fi
3072done
Lev Walkinaef10c32014-01-14 01:47:25 -08003073 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003074IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00003075
3076fi
3077fi
3078ac_ct_CC=$ac_cv_prog_ac_ct_CC
3079if test -n "$ac_ct_CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08003080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003081$as_echo "$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003082else
Lev Walkinaef10c32014-01-14 01:47:25 -08003083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003084$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003085fi
3086
Lev Walkin27fd0b62007-08-27 23:57:45 +00003087 if test "x$ac_ct_CC" = x; then
3088 CC=""
3089 else
3090 case $cross_compiling:$ac_tool_warned in
3091yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08003092{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003093$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +00003094ac_tool_warned=yes ;;
3095esac
3096 CC=$ac_ct_CC
3097 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003098else
3099 CC="$ac_cv_prog_CC"
3100fi
3101
3102if test -z "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003103 if test -n "$ac_tool_prefix"; then
3104 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Lev Walkinf15320b2004-06-03 03:38:44 +00003105set dummy ${ac_tool_prefix}cc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08003106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003107$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003108if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003109 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003110else
3111 if test -n "$CC"; then
3112 ac_cv_prog_CC="$CC" # Let the user override the test.
3113else
3114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115for as_dir in $PATH
3116do
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08003119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003121 ac_cv_prog_CC="${ac_tool_prefix}cc"
Lev Walkinaef10c32014-01-14 01:47:25 -08003122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003123 break 2
3124 fi
3125done
Lev Walkinaef10c32014-01-14 01:47:25 -08003126 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003127IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00003128
3129fi
3130fi
3131CC=$ac_cv_prog_CC
3132if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08003133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003134$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003135else
Lev Walkinaef10c32014-01-14 01:47:25 -08003136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003137$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003138fi
3139
Lev Walkin27fd0b62007-08-27 23:57:45 +00003140
Lev Walkinf15320b2004-06-03 03:38:44 +00003141 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003142fi
3143if test -z "$CC"; then
3144 # Extract the first word of "cc", so it can be a program name with args.
3145set dummy cc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08003146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003147$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003148if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003149 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003150else
3151 if test -n "$CC"; then
3152 ac_cv_prog_CC="$CC" # Let the user override the test.
3153else
3154 ac_prog_rejected=no
3155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156for as_dir in $PATH
3157do
3158 IFS=$as_save_IFS
3159 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08003160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003162 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3163 ac_prog_rejected=yes
3164 continue
3165 fi
3166 ac_cv_prog_CC="cc"
Lev Walkinaef10c32014-01-14 01:47:25 -08003167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003168 break 2
3169 fi
3170done
Lev Walkinaef10c32014-01-14 01:47:25 -08003171 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003172IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00003173
3174if test $ac_prog_rejected = yes; then
3175 # We found a bogon in the path, so make sure we never use it.
3176 set dummy $ac_cv_prog_CC
3177 shift
3178 if test $# != 0; then
3179 # We chose a different compiler from the bogus one.
3180 # However, it has the same basename, so the bogon will be chosen
3181 # first if we set CC to just the basename; use the full file name.
3182 shift
3183 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3184 fi
3185fi
3186fi
3187fi
3188CC=$ac_cv_prog_CC
3189if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08003190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003191$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003192else
Lev Walkinaef10c32014-01-14 01:47:25 -08003193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003194$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003195fi
3196
Lev Walkin27fd0b62007-08-27 23:57:45 +00003197
Lev Walkinf15320b2004-06-03 03:38:44 +00003198fi
3199if test -z "$CC"; then
3200 if test -n "$ac_tool_prefix"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00003201 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +00003202 do
3203 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3204set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08003205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003206$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003207if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003208 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003209else
3210 if test -n "$CC"; then
3211 ac_cv_prog_CC="$CC" # Let the user override the test.
3212else
3213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214for as_dir in $PATH
3215do
3216 IFS=$as_save_IFS
3217 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08003218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003220 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -08003221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003222 break 2
3223 fi
3224done
Lev Walkinaef10c32014-01-14 01:47:25 -08003225 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003226IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00003227
3228fi
3229fi
3230CC=$ac_cv_prog_CC
3231if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08003232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003233$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003234else
Lev Walkinaef10c32014-01-14 01:47:25 -08003235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003236$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003237fi
3238
Lev Walkin27fd0b62007-08-27 23:57:45 +00003239
Lev Walkinf15320b2004-06-03 03:38:44 +00003240 test -n "$CC" && break
3241 done
3242fi
3243if test -z "$CC"; then
3244 ac_ct_CC=$CC
Lev Walkin27fd0b62007-08-27 23:57:45 +00003245 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +00003246do
3247 # Extract the first word of "$ac_prog", so it can be a program name with args.
3248set dummy $ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08003249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003250$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003251if ${ac_cv_prog_ac_ct_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003252 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003253else
3254 if test -n "$ac_ct_CC"; then
3255 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3256else
3257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258for as_dir in $PATH
3259do
3260 IFS=$as_save_IFS
3261 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08003262 for ac_exec_ext in '' $ac_executable_extensions; do
3263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +00003264 ac_cv_prog_ac_ct_CC="$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -08003265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003266 break 2
3267 fi
3268done
Lev Walkinaef10c32014-01-14 01:47:25 -08003269 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003270IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +00003271
3272fi
3273fi
3274ac_ct_CC=$ac_cv_prog_ac_ct_CC
3275if test -n "$ac_ct_CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08003276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003277$as_echo "$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003278else
Lev Walkinaef10c32014-01-14 01:47:25 -08003279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003280$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003281fi
3282
Lev Walkin27fd0b62007-08-27 23:57:45 +00003283
Lev Walkinf15320b2004-06-03 03:38:44 +00003284 test -n "$ac_ct_CC" && break
3285done
3286
Lev Walkin27fd0b62007-08-27 23:57:45 +00003287 if test "x$ac_ct_CC" = x; then
3288 CC=""
3289 else
3290 case $cross_compiling:$ac_tool_warned in
3291yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08003292{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003293$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +00003294ac_tool_warned=yes ;;
3295esac
3296 CC=$ac_ct_CC
3297 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003298fi
3299
3300fi
3301
3302
Lev Walkinaef10c32014-01-14 01:47:25 -08003303test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08003305as_fn_error $? "no acceptable C compiler found in \$PATH
3306See \`config.log' for more details" "$LINENO" 5; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003307
3308# Provide some information about the compiler.
Lev Walkinaef10c32014-01-14 01:47:25 -08003309$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003310set X $ac_compile
3311ac_compiler=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08003312for ac_option in --version -v -V -qversion; do
3313 { { ac_try="$ac_compiler $ac_option >&5"
Lev Walkin27fd0b62007-08-27 23:57:45 +00003314case "(($ac_try" in
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3317esac
Lev Walkinaef10c32014-01-14 01:47:25 -08003318eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3319$as_echo "$ac_try_echo"; } >&5
3320 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Lev Walkinf15320b2004-06-03 03:38:44 +00003321 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08003322 if test -s conftest.err; then
3323 sed '10a\
3324... rest of stderr output deleted ...
3325 10q' conftest.err >conftest.er1
3326 cat conftest.er1 >&5
3327 fi
3328 rm -f conftest.er1 conftest.err
3329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330 test $ac_status = 0; }
3331done
Lev Walkinf15320b2004-06-03 03:38:44 +00003332
Lev Walkinaef10c32014-01-14 01:47:25 -08003333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003334/* end confdefs.h. */
3335
3336int
3337main ()
3338{
3339
3340 ;
3341 return 0;
3342}
3343_ACEOF
3344ac_clean_files_save=$ac_clean_files
Lev Walkinb3751942012-09-02 19:36:47 -07003345ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Lev Walkinf15320b2004-06-03 03:38:44 +00003346# Try to create an executable without -o first, disregard a.out.
3347# It will help us diagnose broken compilers, and finding out an intuition
3348# of exeext.
Lev Walkinaef10c32014-01-14 01:47:25 -08003349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3350$as_echo_n "checking whether the C compiler works... " >&6; }
Lev Walkinb3751942012-09-02 19:36:47 -07003351ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3352
3353# The possible output files:
3354ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3355
Lev Walkin27fd0b62007-08-27 23:57:45 +00003356ac_rmfiles=
3357for ac_file in $ac_files
3358do
3359 case $ac_file in
Lev Walkinb3751942012-09-02 19:36:47 -07003360 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00003361 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3362 esac
3363done
3364rm -f $ac_rmfiles
3365
Lev Walkinaef10c32014-01-14 01:47:25 -08003366if { { ac_try="$ac_link_default"
Lev Walkin27fd0b62007-08-27 23:57:45 +00003367case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3370esac
Lev Walkinaef10c32014-01-14 01:47:25 -08003371eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3372$as_echo "$ac_try_echo"; } >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00003373 (eval "$ac_link_default") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003374 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08003375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3376 test $ac_status = 0; }; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00003377 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3378# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3379# in a Makefile. We should not override ac_cv_exeext if it was cached,
3380# so that the user can short-circuit this test for compilers unknown to
3381# Autoconf.
Lev Walkin4c776e52010-11-08 02:07:31 -08003382for ac_file in $ac_files ''
Lev Walkinf15320b2004-06-03 03:38:44 +00003383do
3384 test -f "$ac_file" || continue
3385 case $ac_file in
Lev Walkinb3751942012-09-02 19:36:47 -07003386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Lev Walkin8e8b5482004-06-17 23:42:48 +00003387 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003388 [ab].out )
Lev Walkin8e8b5482004-06-17 23:42:48 +00003389 # We found the default executable, but exeext='' is most
3390 # certainly right.
3391 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003392 *.* )
Lev Walkinaef10c32014-01-14 01:47:25 -08003393 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Lev Walkin27fd0b62007-08-27 23:57:45 +00003394 then :; else
3395 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3396 fi
3397 # We set ac_cv_exeext here because the later test for it is not
3398 # safe: cross compilers may not add the suffix if given an `-o'
3399 # argument, so we may need to know it at that point already.
3400 # Even if this section looks crufty: it has the advantage of
3401 # actually working.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003402 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003403 * )
Lev Walkin8e8b5482004-06-17 23:42:48 +00003404 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003405 esac
3406done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003407test "$ac_cv_exeext" = no && ac_cv_exeext=
3408
Lev Walkinf15320b2004-06-03 03:38:44 +00003409else
Lev Walkin4c776e52010-11-08 02:07:31 -08003410 ac_file=''
3411fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003412if test -z "$ac_file"; then :
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414$as_echo "no" >&6; }
3415$as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003416sed 's/^/| /' conftest.$ac_ext >&5
3417
Lev Walkinaef10c32014-01-14 01:47:25 -08003418{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08003420as_fn_error 77 "C compiler cannot create executables
3421See \`config.log' for more details" "$LINENO" 5; }
3422else
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003424$as_echo "yes" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003425fi
3426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3427$as_echo_n "checking for C compiler default output file name... " >&6; }
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3429$as_echo "$ac_file" >&6; }
3430ac_exeext=$ac_cv_exeext
Lev Walkinf15320b2004-06-03 03:38:44 +00003431
Lev Walkinb3751942012-09-02 19:36:47 -07003432rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Lev Walkinf15320b2004-06-03 03:38:44 +00003433ac_clean_files=$ac_clean_files_save
Lev Walkinaef10c32014-01-14 01:47:25 -08003434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003435$as_echo_n "checking for suffix of executables... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003436if { { ac_try="$ac_link"
Lev Walkin27fd0b62007-08-27 23:57:45 +00003437case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440esac
Lev Walkinaef10c32014-01-14 01:47:25 -08003441eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3442$as_echo "$ac_try_echo"; } >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00003443 (eval "$ac_link") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003444 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08003445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3446 test $ac_status = 0; }; then :
Lev Walkinf15320b2004-06-03 03:38:44 +00003447 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3448# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3449# work properly (i.e., refer to `conftest.exe'), while it won't with
3450# `rm'.
3451for ac_file in conftest.exe conftest conftest.*; do
3452 test -f "$ac_file" || continue
3453 case $ac_file in
Lev Walkinb3751942012-09-02 19:36:47 -07003454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003455 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Lev Walkin8e8b5482004-06-17 23:42:48 +00003456 break;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003457 * ) break;;
3458 esac
3459done
3460else
Lev Walkinaef10c32014-01-14 01:47:25 -08003461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003462$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08003463as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3464See \`config.log' for more details" "$LINENO" 5; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003465fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003466rm -f conftest conftest$ac_cv_exeext
3467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003468$as_echo "$ac_cv_exeext" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003469
3470rm -f conftest.$ac_ext
3471EXEEXT=$ac_cv_exeext
3472ac_exeext=$EXEEXT
Lev Walkinaef10c32014-01-14 01:47:25 -08003473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474/* end confdefs.h. */
3475#include <stdio.h>
3476int
3477main ()
3478{
3479FILE *f = fopen ("conftest.out", "w");
3480 return ferror (f) || fclose (f) != 0;
3481
3482 ;
3483 return 0;
3484}
3485_ACEOF
3486ac_clean_files="$ac_clean_files conftest.out"
3487# Check that the compiler produces executables we can run. If not, either
3488# the compiler is broken, or we cross compile.
3489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3490$as_echo_n "checking whether we are cross compiling... " >&6; }
3491if test "$cross_compiling" != yes; then
3492 { { ac_try="$ac_link"
3493case "(($ac_try" in
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3496esac
3497eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498$as_echo "$ac_try_echo"; } >&5
3499 (eval "$ac_link") 2>&5
3500 ac_status=$?
3501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502 test $ac_status = 0; }
3503 if { ac_try='./conftest$ac_cv_exeext'
3504 { { case "(($ac_try" in
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3507esac
3508eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509$as_echo "$ac_try_echo"; } >&5
3510 (eval "$ac_try") 2>&5
3511 ac_status=$?
3512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3513 test $ac_status = 0; }; }; then
3514 cross_compiling=no
3515 else
3516 if test "$cross_compiling" = maybe; then
3517 cross_compiling=yes
3518 else
3519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3520$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521as_fn_error $? "cannot run C compiled programs.
3522If you meant to cross compile, use \`--host'.
3523See \`config.log' for more details" "$LINENO" 5; }
3524 fi
3525 fi
3526fi
3527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3528$as_echo "$cross_compiling" >&6; }
3529
3530rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3531ac_clean_files=$ac_clean_files_save
3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003533$as_echo_n "checking for suffix of object files... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003534if ${ac_cv_objext+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003535 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003536else
Lev Walkinaef10c32014-01-14 01:47:25 -08003537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003538/* end confdefs.h. */
3539
3540int
3541main ()
3542{
3543
3544 ;
3545 return 0;
3546}
3547_ACEOF
3548rm -f conftest.o conftest.obj
Lev Walkinaef10c32014-01-14 01:47:25 -08003549if { { ac_try="$ac_compile"
Lev Walkin27fd0b62007-08-27 23:57:45 +00003550case "(($ac_try" in
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3553esac
Lev Walkinaef10c32014-01-14 01:47:25 -08003554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3555$as_echo "$ac_try_echo"; } >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +00003556 (eval "$ac_compile") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003557 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08003558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3559 test $ac_status = 0; }; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00003560 for ac_file in conftest.o conftest.obj conftest.*; do
3561 test -f "$ac_file" || continue;
Lev Walkinf15320b2004-06-03 03:38:44 +00003562 case $ac_file in
Lev Walkinb3751942012-09-02 19:36:47 -07003563 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003564 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3565 break;;
3566 esac
3567done
3568else
Lev Walkinb3751942012-09-02 19:36:47 -07003569 $as_echo "$as_me: failed program was:" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00003570sed 's/^/| /' conftest.$ac_ext >&5
3571
Lev Walkinaef10c32014-01-14 01:47:25 -08003572{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003573$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08003574as_fn_error $? "cannot compute suffix of object files: cannot compile
3575See \`config.log' for more details" "$LINENO" 5; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003576fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003577rm -f conftest.$ac_cv_objext conftest.$ac_ext
3578fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003580$as_echo "$ac_cv_objext" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003581OBJEXT=$ac_cv_objext
3582ac_objext=$OBJEXT
Lev Walkinaef10c32014-01-14 01:47:25 -08003583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003584$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003585if ${ac_cv_c_compiler_gnu+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003586 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003587else
Lev Walkinaef10c32014-01-14 01:47:25 -08003588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003589/* end confdefs.h. */
3590
3591int
3592main ()
3593{
3594#ifndef __GNUC__
3595 choke me
3596#endif
3597
3598 ;
3599 return 0;
3600}
3601_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08003602if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +00003603 ac_compiler_gnu=yes
3604else
Lev Walkinaef10c32014-01-14 01:47:25 -08003605 ac_compiler_gnu=no
Lev Walkinf15320b2004-06-03 03:38:44 +00003606fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003608ac_cv_c_compiler_gnu=$ac_compiler_gnu
3609
3610fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003612$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3613if test $ac_compiler_gnu = yes; then
3614 GCC=yes
3615else
3616 GCC=
3617fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003618ac_test_CFLAGS=${CFLAGS+set}
3619ac_save_CFLAGS=$CFLAGS
Lev Walkinaef10c32014-01-14 01:47:25 -08003620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003621$as_echo_n "checking whether $CC accepts -g... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003622if ${ac_cv_prog_cc_g+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003623 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003624else
Lev Walkin27fd0b62007-08-27 23:57:45 +00003625 ac_save_c_werror_flag=$ac_c_werror_flag
3626 ac_c_werror_flag=yes
3627 ac_cv_prog_cc_g=no
3628 CFLAGS="-g"
Lev Walkinaef10c32014-01-14 01:47:25 -08003629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003630/* end confdefs.h. */
3631
3632int
3633main ()
3634{
3635
3636 ;
3637 return 0;
3638}
3639_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08003640if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +00003641 ac_cv_prog_cc_g=yes
3642else
Lev Walkinaef10c32014-01-14 01:47:25 -08003643 CFLAGS=""
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003645/* end confdefs.h. */
3646
3647int
3648main ()
3649{
3650
3651 ;
3652 return 0;
3653}
3654_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08003655if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00003656
Lev Walkinaef10c32014-01-14 01:47:25 -08003657else
3658 ac_c_werror_flag=$ac_save_c_werror_flag
Lev Walkin27fd0b62007-08-27 23:57:45 +00003659 CFLAGS="-g"
Lev Walkinaef10c32014-01-14 01:47:25 -08003660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +00003661/* end confdefs.h. */
3662
3663int
3664main ()
3665{
3666
3667 ;
3668 return 0;
3669}
3670_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08003671if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00003672 ac_cv_prog_cc_g=yes
Lev Walkinf15320b2004-06-03 03:38:44 +00003673fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003675fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679 ac_c_werror_flag=$ac_save_c_werror_flag
3680fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003682$as_echo "$ac_cv_prog_cc_g" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00003683if test "$ac_test_CFLAGS" = set; then
3684 CFLAGS=$ac_save_CFLAGS
3685elif test $ac_cv_prog_cc_g = yes; then
3686 if test "$GCC" = yes; then
3687 CFLAGS="-g -O2"
3688 else
3689 CFLAGS="-g"
3690 fi
3691else
3692 if test "$GCC" = yes; then
3693 CFLAGS="-O2"
3694 else
3695 CFLAGS=
3696 fi
3697fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003699$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003700if ${ac_cv_prog_cc_c89+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003701 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003702else
Lev Walkin27fd0b62007-08-27 23:57:45 +00003703 ac_cv_prog_cc_c89=no
Lev Walkinf15320b2004-06-03 03:38:44 +00003704ac_save_CC=$CC
Lev Walkinaef10c32014-01-14 01:47:25 -08003705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003706/* end confdefs.h. */
3707#include <stdarg.h>
3708#include <stdio.h>
Lev Walkinaef10c32014-01-14 01:47:25 -08003709struct stat;
Lev Walkinf15320b2004-06-03 03:38:44 +00003710/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3711struct buf { int x; };
3712FILE * (*rcsopen) (struct buf *, struct stat *, int);
3713static char *e (p, i)
3714 char **p;
3715 int i;
3716{
3717 return p[i];
3718}
3719static char *f (char * (*g) (char **, int), char **p, ...)
3720{
3721 char *s;
3722 va_list v;
3723 va_start (v,p);
3724 s = g (p, va_arg (v,int));
3725 va_end (v);
3726 return s;
3727}
Lev Walkin8e8b5482004-06-17 23:42:48 +00003728
3729/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3730 function prototypes and stuff, but not '\xHH' hex character constants.
3731 These don't provoke an error unfortunately, instead are silently treated
Lev Walkin27fd0b62007-08-27 23:57:45 +00003732 as 'x'. The following induces an error, until -std is added to get
Lev Walkin8e8b5482004-06-17 23:42:48 +00003733 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3734 array size at least. It's necessary to write '\x00'==0 to get something
Lev Walkin27fd0b62007-08-27 23:57:45 +00003735 that's true only with -std. */
Lev Walkin8e8b5482004-06-17 23:42:48 +00003736int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3737
Lev Walkin27fd0b62007-08-27 23:57:45 +00003738/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3739 inside strings and character constants. */
3740#define FOO(x) 'x'
3741int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3742
Lev Walkinf15320b2004-06-03 03:38:44 +00003743int test (int i, double x);
3744struct s1 {int (*f) (int a);};
3745struct s2 {int (*f) (double a);};
3746int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3747int argc;
3748char **argv;
3749int
3750main ()
3751{
3752return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3753 ;
3754 return 0;
3755}
3756_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +00003757for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3758 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Lev Walkinf15320b2004-06-03 03:38:44 +00003759do
3760 CC="$ac_save_CC $ac_arg"
Lev Walkinaef10c32014-01-14 01:47:25 -08003761 if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00003762 ac_cv_prog_cc_c89=$ac_arg
Lev Walkinf15320b2004-06-03 03:38:44 +00003763fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003764rm -f core conftest.err conftest.$ac_objext
3765 test "x$ac_cv_prog_cc_c89" != "xno" && break
Lev Walkinf15320b2004-06-03 03:38:44 +00003766done
Lev Walkin27fd0b62007-08-27 23:57:45 +00003767rm -f conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00003768CC=$ac_save_CC
3769
3770fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00003771# AC_CACHE_VAL
3772case "x$ac_cv_prog_cc_c89" in
3773 x)
Lev Walkinaef10c32014-01-14 01:47:25 -08003774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003775$as_echo "none needed" >&6; } ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +00003776 xno)
Lev Walkinaef10c32014-01-14 01:47:25 -08003777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003778$as_echo "unsupported" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003779 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +00003780 CC="$CC $ac_cv_prog_cc_c89"
Lev Walkinaef10c32014-01-14 01:47:25 -08003781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003782$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003783esac
Lev Walkinaef10c32014-01-14 01:47:25 -08003784if test "x$ac_cv_prog_cc_c89" != xno; then :
Lev Walkinf15320b2004-06-03 03:38:44 +00003785
Lev Walkinaef10c32014-01-14 01:47:25 -08003786fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003787
Lev Walkinf15320b2004-06-03 03:38:44 +00003788ac_ext=c
3789ac_cpp='$CPP $CPPFLAGS'
3790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3792ac_compiler_gnu=$ac_cv_c_compiler_gnu
3793
3794depcc="$CC" am_compiler_list=
3795
Lev Walkinaef10c32014-01-14 01:47:25 -08003796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003797$as_echo_n "checking dependency style of $depcc... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003798if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003799 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00003800else
3801 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3802 # We make a subdir and do the tests there. Otherwise we can end up
3803 # making bogus files that we don't know about and never remove. For
3804 # instance it was reported that on HP-UX the gcc test will end up
3805 # making a dummy file named `D' -- because `-MD' means `put the output
3806 # in D'.
3807 mkdir conftest.dir
3808 # Copy depcomp to subdir because otherwise we won't find it if we're
3809 # using a relative directory.
3810 cp "$am_depcomp" conftest.dir
3811 cd conftest.dir
Lev Walkin8e8b5482004-06-17 23:42:48 +00003812 # We will build objects and dependencies in a subdirectory because
3813 # it helps to detect inapplicable dependency modes. For instance
3814 # both Tru64's cc and ICC support -MD to output dependencies as a
3815 # side effect of compilation, but ICC will put the dependencies in
3816 # the current directory while Tru64 will put them in the object
3817 # directory.
3818 mkdir sub
Lev Walkinf15320b2004-06-03 03:38:44 +00003819
3820 am_cv_CC_dependencies_compiler_type=none
3821 if test "$am_compiler_list" = ""; then
3822 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3823 fi
Lev Walkinb3751942012-09-02 19:36:47 -07003824 am__universal=false
3825 case " $depcc " in #(
3826 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3827 esac
3828
Lev Walkinf15320b2004-06-03 03:38:44 +00003829 for depmode in $am_compiler_list; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00003830 # Setup a source with many dependencies, because some compilers
3831 # like to wrap large dependency lists on column 80 (with \), and
3832 # we should not choose a depcomp mode which is confused by this.
3833 #
Lev Walkinf15320b2004-06-03 03:38:44 +00003834 # We need to recreate these files for each test, as the compiler may
3835 # overwrite some of them when testing with obscure command lines.
3836 # This happens at least with the AIX C compiler.
Lev Walkin8e8b5482004-06-17 23:42:48 +00003837 : > sub/conftest.c
3838 for i in 1 2 3 4 5 6; do
3839 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3840 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3841 # Solaris 8's {/usr,}/bin/sh.
3842 touch sub/conftst$i.h
3843 done
3844 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Lev Walkinf15320b2004-06-03 03:38:44 +00003845
Lev Walkinb3751942012-09-02 19:36:47 -07003846 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3847 # mode. It turns out that the SunPro C++ compiler does not properly
3848 # handle `-M -o', and we need to detect this. Also, some Intel
3849 # versions had trouble with output in subdirs
3850 am__obj=sub/conftest.${OBJEXT-o}
3851 am__minus_obj="-o $am__obj"
Lev Walkinf15320b2004-06-03 03:38:44 +00003852 case $depmode in
Lev Walkinb3751942012-09-02 19:36:47 -07003853 gcc)
3854 # This depmode causes a compiler race in universal mode.
3855 test "$am__universal" = false || continue
3856 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003857 nosideeffect)
3858 # after this tag, mechanisms are not by side-effect, so they'll
3859 # only be used when explicitly requested
3860 if test "x$enable_dependency_tracking" = xyes; then
3861 continue
3862 else
3863 break
3864 fi
3865 ;;
Lev Walkinb3751942012-09-02 19:36:47 -07003866 msvisualcpp | msvcmsys)
3867 # This compiler won't grok `-c -o', but also, the minuso test has
3868 # not run yet. These depmodes are late enough in the game, and
3869 # so weak that their functioning should not be impacted.
3870 am__obj=conftest.${OBJEXT-o}
3871 am__minus_obj=
3872 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00003873 none) break ;;
3874 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00003875 if depmode=$depmode \
Lev Walkinb3751942012-09-02 19:36:47 -07003876 source=sub/conftest.c object=$am__obj \
Lev Walkin8e8b5482004-06-17 23:42:48 +00003877 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Lev Walkinb3751942012-09-02 19:36:47 -07003878 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Lev Walkin8e8b5482004-06-17 23:42:48 +00003879 >/dev/null 2>conftest.err &&
Lev Walkin4c776e52010-11-08 02:07:31 -08003880 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkin8e8b5482004-06-17 23:42:48 +00003881 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinb3751942012-09-02 19:36:47 -07003882 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinf15320b2004-06-03 03:38:44 +00003883 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00003884 # icc doesn't choke on unknown options, it will just issue warnings
3885 # or remarks (even with -Werror). So we grep stderr for any message
3886 # that says an option was ignored or not supported.
3887 # When given -MP, icc 7.0 and 7.1 complain thusly:
3888 # icc: Command line warning: ignoring option '-M'; no argument required
3889 # The diagnosis changed in icc 8.0:
3890 # icc: Command line remark: option '-MP' not supported
3891 if (grep 'ignoring option' conftest.err ||
3892 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3893 am_cv_CC_dependencies_compiler_type=$depmode
3894 break
3895 fi
Lev Walkinf15320b2004-06-03 03:38:44 +00003896 fi
3897 done
3898
3899 cd ..
3900 rm -rf conftest.dir
3901else
3902 am_cv_CC_dependencies_compiler_type=none
3903fi
3904
3905fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003907$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00003908CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3909
Lev Walkin4c776e52010-11-08 02:07:31 -08003910 if
Lev Walkin8e8b5482004-06-17 23:42:48 +00003911 test "x$enable_dependency_tracking" != xno \
3912 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3913 am__fastdepCC_TRUE=
3914 am__fastdepCC_FALSE='#'
3915else
3916 am__fastdepCC_TRUE='#'
3917 am__fastdepCC_FALSE=
3918fi
3919
3920
Lev Walkinaef10c32014-01-14 01:47:25 -08003921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003922$as_echo_n "checking for a sed that does not truncate output... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08003923if ${ac_cv_path_SED+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07003924 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00003925else
Lev Walkin4da95cf2010-10-16 02:46:32 -07003926 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3927 for ac_i in 1 2 3 4 5 6 7; do
3928 ac_script="$ac_script$as_nl$ac_script"
3929 done
Lev Walkinb3751942012-09-02 19:36:47 -07003930 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
Lev Walkinaef10c32014-01-14 01:47:25 -08003931 { ac_script=; unset ac_script;}
Lev Walkinb3751942012-09-02 19:36:47 -07003932 if test -z "$SED"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07003933 ac_path_SED_found=false
Lev Walkinb3751942012-09-02 19:36:47 -07003934 # Loop through the user's path and test for each of PROGNAME-LIST
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkin8e8b5482004-06-17 23:42:48 +00003936for as_dir in $PATH
3937do
3938 IFS=$as_save_IFS
3939 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08003940 for ac_prog in sed gsed; do
Lev Walkinb3751942012-09-02 19:36:47 -07003941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
Lev Walkinaef10c32014-01-14 01:47:25 -08003943 as_fn_executable_p "$ac_path_SED" || continue
Lev Walkinb3751942012-09-02 19:36:47 -07003944# Check for GNU ac_path_SED and select it if it is found.
Lev Walkin4da95cf2010-10-16 02:46:32 -07003945 # Check for GNU $ac_path_SED
3946case `"$ac_path_SED" --version 2>&1` in
3947*GNU*)
3948 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3949*)
3950 ac_count=0
Lev Walkinb3751942012-09-02 19:36:47 -07003951 $as_echo_n 0123456789 >"conftest.in"
Lev Walkin4da95cf2010-10-16 02:46:32 -07003952 while :
3953 do
3954 cat "conftest.in" "conftest.in" >"conftest.tmp"
3955 mv "conftest.tmp" "conftest.in"
3956 cp "conftest.in" "conftest.nl"
Lev Walkinb3751942012-09-02 19:36:47 -07003957 $as_echo '' >> "conftest.nl"
Lev Walkin4da95cf2010-10-16 02:46:32 -07003958 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3959 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Lev Walkinaef10c32014-01-14 01:47:25 -08003960 as_fn_arith $ac_count + 1 && ac_count=$as_val
Lev Walkin4da95cf2010-10-16 02:46:32 -07003961 if test $ac_count -gt ${ac_path_SED_max-0}; then
3962 # Best one so far, save it but keep looking for a better one
3963 ac_cv_path_SED="$ac_path_SED"
3964 ac_path_SED_max=$ac_count
Lev Walkin8e8b5482004-06-17 23:42:48 +00003965 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07003966 # 10*(2^10) chars as input seems more than enough
3967 test $ac_count -gt 10 && break
3968 done
3969 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3970esac
3971
Lev Walkinb3751942012-09-02 19:36:47 -07003972 $ac_path_SED_found && break 3
3973 done
Lev Walkin8e8b5482004-06-17 23:42:48 +00003974 done
Lev Walkinaef10c32014-01-14 01:47:25 -08003975 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07003976IFS=$as_save_IFS
Lev Walkinb3751942012-09-02 19:36:47 -07003977 if test -z "$ac_cv_path_SED"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08003978 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
Lev Walkinb3751942012-09-02 19:36:47 -07003979 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07003980else
3981 ac_cv_path_SED=$SED
3982fi
3983
3984fi
Lev Walkinaef10c32014-01-14 01:47:25 -08003985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07003986$as_echo "$ac_cv_path_SED" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07003987 SED="$ac_cv_path_SED"
3988 rm -f conftest.sed
3989
3990test -z "$SED" && SED=sed
3991Xsed="$SED -e 1s/^X//"
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
Lev Walkin8e8b5482004-06-17 23:42:48 +00004002
Lev Walkinaef10c32014-01-14 01:47:25 -08004003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004004$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004005if ${ac_cv_path_GREP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004006 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00004007else
Lev Walkinb3751942012-09-02 19:36:47 -07004008 if test -z "$GREP"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00004009 ac_path_GREP_found=false
Lev Walkinb3751942012-09-02 19:36:47 -07004010 # Loop through the user's path and test for each of PROGNAME-LIST
4011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkin27fd0b62007-08-27 23:57:45 +00004012for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4013do
4014 IFS=$as_save_IFS
4015 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08004016 for ac_prog in grep ggrep; do
Lev Walkinb3751942012-09-02 19:36:47 -07004017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Lev Walkinaef10c32014-01-14 01:47:25 -08004019 as_fn_executable_p "$ac_path_GREP" || continue
Lev Walkinb3751942012-09-02 19:36:47 -07004020# Check for GNU ac_path_GREP and select it if it is found.
Lev Walkin27fd0b62007-08-27 23:57:45 +00004021 # Check for GNU $ac_path_GREP
4022case `"$ac_path_GREP" --version 2>&1` in
4023*GNU*)
4024 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4025*)
4026 ac_count=0
Lev Walkinb3751942012-09-02 19:36:47 -07004027 $as_echo_n 0123456789 >"conftest.in"
Lev Walkin27fd0b62007-08-27 23:57:45 +00004028 while :
4029 do
4030 cat "conftest.in" "conftest.in" >"conftest.tmp"
4031 mv "conftest.tmp" "conftest.in"
4032 cp "conftest.in" "conftest.nl"
Lev Walkinb3751942012-09-02 19:36:47 -07004033 $as_echo 'GREP' >> "conftest.nl"
Lev Walkin27fd0b62007-08-27 23:57:45 +00004034 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4035 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Lev Walkinaef10c32014-01-14 01:47:25 -08004036 as_fn_arith $ac_count + 1 && ac_count=$as_val
Lev Walkin27fd0b62007-08-27 23:57:45 +00004037 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4038 # Best one so far, save it but keep looking for a better one
4039 ac_cv_path_GREP="$ac_path_GREP"
4040 ac_path_GREP_max=$ac_count
Lev Walkin8e8b5482004-06-17 23:42:48 +00004041 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004042 # 10*(2^10) chars as input seems more than enough
4043 test $ac_count -gt 10 && break
4044 done
4045 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4046esac
4047
Lev Walkinb3751942012-09-02 19:36:47 -07004048 $ac_path_GREP_found && break 3
4049 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00004050 done
Lev Walkinaef10c32014-01-14 01:47:25 -08004051 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00004052IFS=$as_save_IFS
Lev Walkinb3751942012-09-02 19:36:47 -07004053 if test -z "$ac_cv_path_GREP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004054 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Lev Walkinb3751942012-09-02 19:36:47 -07004055 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004056else
4057 ac_cv_path_GREP=$GREP
4058fi
4059
Lev Walkin27fd0b62007-08-27 23:57:45 +00004060fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004062$as_echo "$ac_cv_path_GREP" >&6; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00004063 GREP="$ac_cv_path_GREP"
4064
4065
Lev Walkinaef10c32014-01-14 01:47:25 -08004066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004067$as_echo_n "checking for egrep... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004068if ${ac_cv_path_EGREP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004069 $as_echo_n "(cached) " >&6
Lev Walkin27fd0b62007-08-27 23:57:45 +00004070else
4071 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4072 then ac_cv_path_EGREP="$GREP -E"
4073 else
Lev Walkinb3751942012-09-02 19:36:47 -07004074 if test -z "$EGREP"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +00004075 ac_path_EGREP_found=false
Lev Walkinb3751942012-09-02 19:36:47 -07004076 # Loop through the user's path and test for each of PROGNAME-LIST
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkin27fd0b62007-08-27 23:57:45 +00004078for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4079do
4080 IFS=$as_save_IFS
4081 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08004082 for ac_prog in egrep; do
Lev Walkinb3751942012-09-02 19:36:47 -07004083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Lev Walkinaef10c32014-01-14 01:47:25 -08004085 as_fn_executable_p "$ac_path_EGREP" || continue
Lev Walkinb3751942012-09-02 19:36:47 -07004086# Check for GNU ac_path_EGREP and select it if it is found.
Lev Walkin27fd0b62007-08-27 23:57:45 +00004087 # Check for GNU $ac_path_EGREP
4088case `"$ac_path_EGREP" --version 2>&1` in
4089*GNU*)
4090 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4091*)
4092 ac_count=0
Lev Walkinb3751942012-09-02 19:36:47 -07004093 $as_echo_n 0123456789 >"conftest.in"
Lev Walkin27fd0b62007-08-27 23:57:45 +00004094 while :
4095 do
4096 cat "conftest.in" "conftest.in" >"conftest.tmp"
4097 mv "conftest.tmp" "conftest.in"
4098 cp "conftest.in" "conftest.nl"
Lev Walkinb3751942012-09-02 19:36:47 -07004099 $as_echo 'EGREP' >> "conftest.nl"
Lev Walkin27fd0b62007-08-27 23:57:45 +00004100 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4101 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Lev Walkinaef10c32014-01-14 01:47:25 -08004102 as_fn_arith $ac_count + 1 && ac_count=$as_val
Lev Walkin27fd0b62007-08-27 23:57:45 +00004103 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4104 # Best one so far, save it but keep looking for a better one
4105 ac_cv_path_EGREP="$ac_path_EGREP"
4106 ac_path_EGREP_max=$ac_count
4107 fi
4108 # 10*(2^10) chars as input seems more than enough
4109 test $ac_count -gt 10 && break
4110 done
4111 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4112esac
4113
Lev Walkinb3751942012-09-02 19:36:47 -07004114 $ac_path_EGREP_found && break 3
4115 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00004116 done
Lev Walkinaef10c32014-01-14 01:47:25 -08004117 done
Lev Walkin27fd0b62007-08-27 23:57:45 +00004118IFS=$as_save_IFS
Lev Walkinb3751942012-09-02 19:36:47 -07004119 if test -z "$ac_cv_path_EGREP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004120 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Lev Walkinb3751942012-09-02 19:36:47 -07004121 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00004122else
4123 ac_cv_path_EGREP=$EGREP
4124fi
4125
Lev Walkin27fd0b62007-08-27 23:57:45 +00004126 fi
4127fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004129$as_echo "$ac_cv_path_EGREP" >&6; }
Lev Walkin27fd0b62007-08-27 23:57:45 +00004130 EGREP="$ac_cv_path_EGREP"
Lev Walkinf15320b2004-06-03 03:38:44 +00004131
4132
Lev Walkinaef10c32014-01-14 01:47:25 -08004133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004134$as_echo_n "checking for fgrep... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004135if ${ac_cv_path_FGREP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004136 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004137else
4138 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4139 then ac_cv_path_FGREP="$GREP -F"
4140 else
Lev Walkinb3751942012-09-02 19:36:47 -07004141 if test -z "$FGREP"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004142 ac_path_FGREP_found=false
Lev Walkinb3751942012-09-02 19:36:47 -07004143 # Loop through the user's path and test for each of PROGNAME-LIST
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkin4da95cf2010-10-16 02:46:32 -07004145for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4146do
4147 IFS=$as_save_IFS
4148 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08004149 for ac_prog in fgrep; do
Lev Walkinb3751942012-09-02 19:36:47 -07004150 for ac_exec_ext in '' $ac_executable_extensions; do
4151 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
Lev Walkinaef10c32014-01-14 01:47:25 -08004152 as_fn_executable_p "$ac_path_FGREP" || continue
Lev Walkinb3751942012-09-02 19:36:47 -07004153# Check for GNU ac_path_FGREP and select it if it is found.
Lev Walkin4da95cf2010-10-16 02:46:32 -07004154 # Check for GNU $ac_path_FGREP
4155case `"$ac_path_FGREP" --version 2>&1` in
4156*GNU*)
4157 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4158*)
4159 ac_count=0
Lev Walkinb3751942012-09-02 19:36:47 -07004160 $as_echo_n 0123456789 >"conftest.in"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004161 while :
4162 do
4163 cat "conftest.in" "conftest.in" >"conftest.tmp"
4164 mv "conftest.tmp" "conftest.in"
4165 cp "conftest.in" "conftest.nl"
Lev Walkinb3751942012-09-02 19:36:47 -07004166 $as_echo 'FGREP' >> "conftest.nl"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004167 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4168 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Lev Walkinaef10c32014-01-14 01:47:25 -08004169 as_fn_arith $ac_count + 1 && ac_count=$as_val
Lev Walkin4da95cf2010-10-16 02:46:32 -07004170 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4171 # Best one so far, save it but keep looking for a better one
4172 ac_cv_path_FGREP="$ac_path_FGREP"
4173 ac_path_FGREP_max=$ac_count
4174 fi
4175 # 10*(2^10) chars as input seems more than enough
4176 test $ac_count -gt 10 && break
4177 done
4178 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4179esac
4180
Lev Walkinb3751942012-09-02 19:36:47 -07004181 $ac_path_FGREP_found && break 3
4182 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07004183 done
Lev Walkinaef10c32014-01-14 01:47:25 -08004184 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07004185IFS=$as_save_IFS
Lev Walkinb3751942012-09-02 19:36:47 -07004186 if test -z "$ac_cv_path_FGREP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004187 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Lev Walkinb3751942012-09-02 19:36:47 -07004188 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07004189else
4190 ac_cv_path_FGREP=$FGREP
4191fi
4192
Lev Walkin4da95cf2010-10-16 02:46:32 -07004193 fi
4194fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004196$as_echo "$ac_cv_path_FGREP" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004197 FGREP="$ac_cv_path_FGREP"
4198
4199
4200test -z "$GREP" && GREP=grep
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
Lev Walkinf15320b2004-06-03 03:38:44 +00004219
Lev Walkin27fd0b62007-08-27 23:57:45 +00004220# Check whether --with-gnu-ld was given.
Lev Walkinaef10c32014-01-14 01:47:25 -08004221if test "${with_gnu_ld+set}" = set; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00004222 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Lev Walkinf15320b2004-06-03 03:38:44 +00004223else
4224 with_gnu_ld=no
Lev Walkin27fd0b62007-08-27 23:57:45 +00004225fi
4226
Lev Walkinf15320b2004-06-03 03:38:44 +00004227ac_prog=ld
Lev Walkin8e8b5482004-06-17 23:42:48 +00004228if test "$GCC" = yes; then
Lev Walkinf15320b2004-06-03 03:38:44 +00004229 # Check if gcc -print-prog-name=ld gives a path.
Lev Walkinaef10c32014-01-14 01:47:25 -08004230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004231$as_echo_n "checking for ld used by $CC... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004232 case $host in
4233 *-*-mingw*)
4234 # gcc leaves a trailing carriage return which upsets mingw
4235 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4236 *)
4237 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4238 esac
4239 case $ac_prog in
Lev Walkinf15320b2004-06-03 03:38:44 +00004240 # Accept absolute paths.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004241 [\\/]* | ?:[\\/]*)
Lev Walkinf15320b2004-06-03 03:38:44 +00004242 re_direlt='/[^/][^/]*/\.\./'
Lev Walkin8e8b5482004-06-17 23:42:48 +00004243 # Canonicalize the pathname of ld
Lev Walkin4da95cf2010-10-16 02:46:32 -07004244 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4245 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4246 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
Lev Walkinf15320b2004-06-03 03:38:44 +00004247 done
4248 test -z "$LD" && LD="$ac_prog"
4249 ;;
4250 "")
4251 # If it fails, then pretend we aren't using GCC.
4252 ac_prog=ld
4253 ;;
4254 *)
4255 # If it is relative, then search for the first ld in PATH.
4256 with_gnu_ld=unknown
4257 ;;
4258 esac
4259elif test "$with_gnu_ld" = yes; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004261$as_echo_n "checking for GNU ld... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004262else
Lev Walkinaef10c32014-01-14 01:47:25 -08004263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004264$as_echo_n "checking for non-GNU ld... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004265fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004266if ${lt_cv_path_LD+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004267 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00004268else
4269 if test -z "$LD"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00004270 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +00004271 for ac_dir in $PATH; do
Lev Walkin8e8b5482004-06-17 23:42:48 +00004272 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00004273 test -z "$ac_dir" && ac_dir=.
4274 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00004275 lt_cv_path_LD="$ac_dir/$ac_prog"
Lev Walkinf15320b2004-06-03 03:38:44 +00004276 # Check to see if the program is GNU ld. I'd rather use --version,
Lev Walkinfbf1d282007-12-03 14:58:39 +00004277 # but apparently some variants of GNU ld only accept -v.
Lev Walkinf15320b2004-06-03 03:38:44 +00004278 # Break only if it was the GNU/non-GNU ld that we prefer.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004279 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4280 *GNU* | *'with BFD'*)
Lev Walkinf15320b2004-06-03 03:38:44 +00004281 test "$with_gnu_ld" != no && break
Lev Walkin8e8b5482004-06-17 23:42:48 +00004282 ;;
4283 *)
Lev Walkinf15320b2004-06-03 03:38:44 +00004284 test "$with_gnu_ld" != yes && break
Lev Walkin8e8b5482004-06-17 23:42:48 +00004285 ;;
4286 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00004287 fi
4288 done
Lev Walkin8e8b5482004-06-17 23:42:48 +00004289 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00004290else
Lev Walkin8e8b5482004-06-17 23:42:48 +00004291 lt_cv_path_LD="$LD" # Let the user override the test with a path.
Lev Walkinf15320b2004-06-03 03:38:44 +00004292fi
4293fi
4294
Lev Walkin8e8b5482004-06-17 23:42:48 +00004295LD="$lt_cv_path_LD"
Lev Walkinf15320b2004-06-03 03:38:44 +00004296if test -n "$LD"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004298$as_echo "$LD" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004299else
Lev Walkinaef10c32014-01-14 01:47:25 -08004300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004301$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004302fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004303test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004305$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004306if ${lt_cv_prog_gnu_ld+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004307 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00004308else
Lev Walkinfbf1d282007-12-03 14:58:39 +00004309 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004310case `$LD -v 2>&1 </dev/null` in
4311*GNU* | *'with BFD'*)
4312 lt_cv_prog_gnu_ld=yes
4313 ;;
4314*)
4315 lt_cv_prog_gnu_ld=no
4316 ;;
4317esac
Lev Walkinf15320b2004-06-03 03:38:44 +00004318fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004320$as_echo "$lt_cv_prog_gnu_ld" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00004321with_gnu_ld=$lt_cv_prog_gnu_ld
Lev Walkinf15320b2004-06-03 03:38:44 +00004322
4323
Lev Walkin8e8b5482004-06-17 23:42:48 +00004324
Lev Walkin4da95cf2010-10-16 02:46:32 -07004325
4326
4327
4328
4329
4330
Lev Walkinaef10c32014-01-14 01:47:25 -08004331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004332$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004333if ${lt_cv_path_NM+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004334 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00004335else
4336 if test -n "$NM"; then
4337 # Let the user override the test.
Lev Walkin8e8b5482004-06-17 23:42:48 +00004338 lt_cv_path_NM="$NM"
Lev Walkinf15320b2004-06-03 03:38:44 +00004339else
Lev Walkinfbf1d282007-12-03 14:58:39 +00004340 lt_nm_to_check="${ac_tool_prefix}nm"
4341 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4342 lt_nm_to_check="$lt_nm_to_check nm"
4343 fi
4344 for lt_tmp_nm in $lt_nm_to_check; do
4345 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4346 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4347 IFS="$lt_save_ifs"
4348 test -z "$ac_dir" && ac_dir=.
4349 tmp_nm="$ac_dir/$lt_tmp_nm"
4350 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4351 # Check to see if the nm accepts a BSD-compat flag.
4352 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4353 # nm: unknown option "B" ignored
4354 # Tru64's nm complains that /dev/null is an invalid object file
4355 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4356 */dev/null* | *'Invalid file or object type'*)
4357 lt_cv_path_NM="$tmp_nm -B"
Lev Walkin8e8b5482004-06-17 23:42:48 +00004358 break
4359 ;;
4360 *)
Lev Walkinfbf1d282007-12-03 14:58:39 +00004361 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4362 */dev/null*)
4363 lt_cv_path_NM="$tmp_nm -p"
4364 break
4365 ;;
4366 *)
4367 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4368 continue # so that we can try to find one that supports BSD flags
4369 ;;
4370 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00004371 ;;
4372 esac
Lev Walkinfbf1d282007-12-03 14:58:39 +00004373 fi
4374 done
4375 IFS="$lt_save_ifs"
Lev Walkinf15320b2004-06-03 03:38:44 +00004376 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07004377 : ${lt_cv_path_NM=no}
Lev Walkinf15320b2004-06-03 03:38:44 +00004378fi
4379fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004381$as_echo "$lt_cv_path_NM" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004382if test "$lt_cv_path_NM" != "no"; then
4383 NM="$lt_cv_path_NM"
4384else
4385 # Didn't find any BSD compatible name lister, look for dumpbin.
Lev Walkinaef10c32014-01-14 01:47:25 -08004386 if test -n "$DUMPBIN"; then :
4387 # Let the user override the test.
4388 else
4389 if test -n "$ac_tool_prefix"; then
4390 for ac_prog in dumpbin "link -dump"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004391 do
4392 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4393set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08004394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004395$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004396if ${ac_cv_prog_DUMPBIN+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004397 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004398else
4399 if test -n "$DUMPBIN"; then
4400 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4401else
4402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4403for as_dir in $PATH
4404do
4405 IFS=$as_save_IFS
4406 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08004407 for ac_exec_ext in '' $ac_executable_extensions; do
4408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004409 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -08004410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07004411 break 2
4412 fi
4413done
Lev Walkinaef10c32014-01-14 01:47:25 -08004414 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07004415IFS=$as_save_IFS
4416
4417fi
4418fi
4419DUMPBIN=$ac_cv_prog_DUMPBIN
4420if test -n "$DUMPBIN"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004422$as_echo "$DUMPBIN" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004423else
Lev Walkinaef10c32014-01-14 01:47:25 -08004424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004425$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004426fi
4427
4428
4429 test -n "$DUMPBIN" && break
4430 done
4431fi
4432if test -z "$DUMPBIN"; then
4433 ac_ct_DUMPBIN=$DUMPBIN
Lev Walkinaef10c32014-01-14 01:47:25 -08004434 for ac_prog in dumpbin "link -dump"
Lev Walkin4da95cf2010-10-16 02:46:32 -07004435do
4436 # Extract the first word of "$ac_prog", so it can be a program name with args.
4437set dummy $ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08004438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004439$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004440if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004441 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004442else
4443 if test -n "$ac_ct_DUMPBIN"; then
4444 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4445else
4446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447for as_dir in $PATH
4448do
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08004451 for ac_exec_ext in '' $ac_executable_extensions; do
4452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07004453 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -08004454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07004455 break 2
4456 fi
4457done
Lev Walkinaef10c32014-01-14 01:47:25 -08004458 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07004459IFS=$as_save_IFS
4460
4461fi
4462fi
4463ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4464if test -n "$ac_ct_DUMPBIN"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004466$as_echo "$ac_ct_DUMPBIN" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004467else
Lev Walkinaef10c32014-01-14 01:47:25 -08004468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004469$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004470fi
4471
4472
4473 test -n "$ac_ct_DUMPBIN" && break
4474done
4475
4476 if test "x$ac_ct_DUMPBIN" = x; then
4477 DUMPBIN=":"
4478 else
4479 case $cross_compiling:$ac_tool_warned in
4480yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08004481{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004482$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07004483ac_tool_warned=yes ;;
4484esac
4485 DUMPBIN=$ac_ct_DUMPBIN
4486 fi
4487fi
4488
Lev Walkinaef10c32014-01-14 01:47:25 -08004489 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4490 *COFF*)
4491 DUMPBIN="$DUMPBIN -symbols"
4492 ;;
4493 *)
4494 DUMPBIN=:
4495 ;;
4496 esac
4497 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07004498
4499 if test "$DUMPBIN" != ":"; then
4500 NM="$DUMPBIN"
4501 fi
4502fi
4503test -z "$NM" && NM=nm
4504
4505
4506
4507
4508
4509
Lev Walkinaef10c32014-01-14 01:47:25 -08004510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004511$as_echo_n "checking the name lister ($NM) interface... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004512if ${lt_cv_nm_interface+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004513 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004514else
4515 lt_cv_nm_interface="BSD nm"
4516 echo "int some_variable = 0;" > conftest.$ac_ext
Lev Walkinaef10c32014-01-14 01:47:25 -08004517 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004518 (eval "$ac_compile" 2>conftest.err)
4519 cat conftest.err >&5
Lev Walkinaef10c32014-01-14 01:47:25 -08004520 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004521 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4522 cat conftest.err >&5
Lev Walkinaef10c32014-01-14 01:47:25 -08004523 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004524 cat conftest.out >&5
4525 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4526 lt_cv_nm_interface="MS dumpbin"
4527 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004528 rm -f conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07004529fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004531$as_echo "$lt_cv_nm_interface" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004532
Lev Walkinaef10c32014-01-14 01:47:25 -08004533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004534$as_echo_n "checking whether ln -s works... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004535LN_S=$as_ln_s
4536if test "$LN_S" = "ln -s"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004538$as_echo "yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004539else
Lev Walkinaef10c32014-01-14 01:47:25 -08004540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004541$as_echo "no, using $LN_S" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00004542fi
4543
Lev Walkin4da95cf2010-10-16 02:46:32 -07004544# find the maximum length of command line arguments
Lev Walkinaef10c32014-01-14 01:47:25 -08004545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004546$as_echo_n "checking the maximum length of command line arguments... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004547if ${lt_cv_sys_max_cmd_len+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004548 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004549else
4550 i=0
4551 teststring="ABCD"
4552
4553 case $build_os in
4554 msdosdjgpp*)
4555 # On DJGPP, this test can blow up pretty badly due to problems in libc
4556 # (any single argument exceeding 2000 bytes causes a buffer overrun
4557 # during glob expansion). Even if it were fixed, the result of this
4558 # check would be larger than it should be.
4559 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4560 ;;
4561
4562 gnu*)
4563 # Under GNU Hurd, this test is not required because there is
4564 # no limit to the length of command line arguments.
4565 # Libtool will interpret -1 as no limit whatsoever
4566 lt_cv_sys_max_cmd_len=-1;
4567 ;;
4568
Lev Walkinaef10c32014-01-14 01:47:25 -08004569 cygwin* | mingw* | cegcc*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07004570 # On Win9x/ME, this test blows up -- it succeeds, but takes
4571 # about 5 minutes as the teststring grows exponentially.
4572 # Worse, since 9x/ME are not pre-emptively multitasking,
4573 # you end up with a "frozen" computer, even though with patience
4574 # the test eventually succeeds (with a max line length of 256k).
4575 # Instead, let's just punt: use the minimum linelength reported by
4576 # all of the supported platforms: 8192 (on NT/2K/XP).
4577 lt_cv_sys_max_cmd_len=8192;
4578 ;;
4579
Lev Walkinaef10c32014-01-14 01:47:25 -08004580 mint*)
4581 # On MiNT this can take a long time and run out of memory.
4582 lt_cv_sys_max_cmd_len=8192;
4583 ;;
4584
Lev Walkin4da95cf2010-10-16 02:46:32 -07004585 amigaos*)
4586 # On AmigaOS with pdksh, this test takes hours, literally.
4587 # So we just punt and use a minimum line length of 8192.
4588 lt_cv_sys_max_cmd_len=8192;
4589 ;;
4590
4591 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4592 # This has been around since 386BSD, at least. Likely further.
4593 if test -x /sbin/sysctl; then
4594 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4595 elif test -x /usr/sbin/sysctl; then
4596 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4597 else
4598 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4599 fi
4600 # And add a safety zone
4601 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4602 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4603 ;;
4604
4605 interix*)
4606 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4607 lt_cv_sys_max_cmd_len=196608
4608 ;;
4609
4610 osf*)
4611 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4612 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4613 # nice to cause kernel panics so lets avoid the loop below.
4614 # First set a reasonable default.
4615 lt_cv_sys_max_cmd_len=16384
4616 #
4617 if test -x /sbin/sysconfig; then
4618 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4619 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4620 esac
4621 fi
4622 ;;
4623 sco3.2v5*)
4624 lt_cv_sys_max_cmd_len=102400
4625 ;;
4626 sysv5* | sco5v6* | sysv4.2uw2*)
4627 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4628 if test -n "$kargmax"; then
4629 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4630 else
4631 lt_cv_sys_max_cmd_len=32768
4632 fi
4633 ;;
4634 *)
4635 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4636 if test -n "$lt_cv_sys_max_cmd_len"; then
4637 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4638 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4639 else
4640 # Make teststring a little bigger before we do anything with it.
4641 # a 1K string should be a reasonable start.
4642 for i in 1 2 3 4 5 6 7 8 ; do
4643 teststring=$teststring$teststring
4644 done
4645 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4646 # If test is not a shell built-in, we'll probably end up computing a
4647 # maximum length that is only half of the actual maximum length, but
4648 # we can't tell.
Lev Walkinaef10c32014-01-14 01:47:25 -08004649 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4650 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
Lev Walkin4da95cf2010-10-16 02:46:32 -07004651 test $i != 17 # 1/2 MB should be enough
4652 do
4653 i=`expr $i + 1`
4654 teststring=$teststring$teststring
4655 done
4656 # Only check the string length outside the loop.
4657 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4658 teststring=
4659 # Add a significant safety factor because C++ compilers can tack on
4660 # massive amounts of additional arguments before passing them to the
4661 # linker. It appears as though 1/2 is a usable value.
4662 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4663 fi
4664 ;;
4665 esac
4666
4667fi
4668
4669if test -n $lt_cv_sys_max_cmd_len ; then
Lev Walkinaef10c32014-01-14 01:47:25 -08004670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004671$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004672else
Lev Walkinaef10c32014-01-14 01:47:25 -08004673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004674$as_echo "none" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004675fi
4676max_cmd_len=$lt_cv_sys_max_cmd_len
4677
4678
4679
4680
4681
4682
4683: ${CP="cp -f"}
4684: ${MV="mv -f"}
4685: ${RM="rm -f"}
4686
Lev Walkinaef10c32014-01-14 01:47:25 -08004687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004688$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004689# Try some XSI features
4690xsi_shell=no
4691( _lt_dummy="a/b/c"
Lev Walkinaef10c32014-01-14 01:47:25 -08004692 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4693 = c,a/b,b/c, \
Lev Walkin4da95cf2010-10-16 02:46:32 -07004694 && eval 'test $(( 1 + 1 )) -eq 2 \
4695 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4696 && xsi_shell=yes
Lev Walkinaef10c32014-01-14 01:47:25 -08004697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004698$as_echo "$xsi_shell" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004699
4700
Lev Walkinaef10c32014-01-14 01:47:25 -08004701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004702$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004703lt_shell_append=no
4704( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4705 >/dev/null 2>&1 \
4706 && lt_shell_append=yes
Lev Walkinaef10c32014-01-14 01:47:25 -08004707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004708$as_echo "$lt_shell_append" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004709
4710
4711if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4712 lt_unset=unset
4713else
4714 lt_unset=false
4715fi
4716
4717
4718
4719
4720
4721# test EBCDIC or ASCII
4722case `echo X|tr X '\101'` in
4723 A) # ASCII based system
4724 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4725 lt_SP2NL='tr \040 \012'
4726 lt_NL2SP='tr \015\012 \040\040'
4727 ;;
4728 *) # EBCDIC based system
4729 lt_SP2NL='tr \100 \n'
4730 lt_NL2SP='tr \r\n \100\100'
4731 ;;
4732esac
4733
4734
4735
4736
4737
4738
4739
4740
4741
Lev Walkinaef10c32014-01-14 01:47:25 -08004742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4743$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4744if ${lt_cv_to_host_file_cmd+:} false; then :
4745 $as_echo_n "(cached) " >&6
4746else
4747 case $host in
4748 *-*-mingw* )
4749 case $build in
4750 *-*-mingw* ) # actually msys
4751 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4752 ;;
4753 *-*-cygwin* )
4754 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4755 ;;
4756 * ) # otherwise, assume *nix
4757 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4758 ;;
4759 esac
4760 ;;
4761 *-*-cygwin* )
4762 case $build in
4763 *-*-mingw* ) # actually msys
4764 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4765 ;;
4766 *-*-cygwin* )
4767 lt_cv_to_host_file_cmd=func_convert_file_noop
4768 ;;
4769 * ) # otherwise, assume *nix
4770 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4771 ;;
4772 esac
4773 ;;
4774 * ) # unhandled hosts (and "normal" native builds)
4775 lt_cv_to_host_file_cmd=func_convert_file_noop
4776 ;;
4777esac
4778
4779fi
4780
4781to_host_file_cmd=$lt_cv_to_host_file_cmd
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4783$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4784
4785
4786
4787
4788
4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4790$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4791if ${lt_cv_to_tool_file_cmd+:} false; then :
4792 $as_echo_n "(cached) " >&6
4793else
4794 #assume ordinary cross tools, or native build.
4795lt_cv_to_tool_file_cmd=func_convert_file_noop
4796case $host in
4797 *-*-mingw* )
4798 case $build in
4799 *-*-mingw* ) # actually msys
4800 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4801 ;;
4802 esac
4803 ;;
4804esac
4805
4806fi
4807
4808to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4810$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4811
4812
4813
4814
4815
4816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004817$as_echo_n "checking for $LD option to reload object files... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004818if ${lt_cv_ld_reload_flag+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004819 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07004820else
4821 lt_cv_ld_reload_flag='-r'
4822fi
Lev Walkinaef10c32014-01-14 01:47:25 -08004823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004824$as_echo "$lt_cv_ld_reload_flag" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07004825reload_flag=$lt_cv_ld_reload_flag
4826case $reload_flag in
4827"" | " "*) ;;
4828*) reload_flag=" $reload_flag" ;;
4829esac
4830reload_cmds='$LD$reload_flag -o $output$reload_objs'
4831case $host_os in
Lev Walkinaef10c32014-01-14 01:47:25 -08004832 cygwin* | mingw* | pw32* | cegcc*)
4833 if test "$GCC" != yes; then
4834 reload_cmds=false
4835 fi
4836 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07004837 darwin*)
4838 if test "$GCC" = yes; then
4839 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4840 else
4841 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4842 fi
4843 ;;
4844esac
4845
4846
4847
4848
4849
4850
4851
4852
4853
Lev Walkinaef10c32014-01-14 01:47:25 -08004854if test -n "$ac_tool_prefix"; then
4855 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4856set dummy ${ac_tool_prefix}objdump; ac_word=$2
4857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4858$as_echo_n "checking for $ac_word... " >&6; }
4859if ${ac_cv_prog_OBJDUMP+:} false; then :
4860 $as_echo_n "(cached) " >&6
4861else
4862 if test -n "$OBJDUMP"; then
4863 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4864else
4865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866for as_dir in $PATH
4867do
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4872 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 break 2
4875 fi
4876done
4877 done
4878IFS=$as_save_IFS
Lev Walkin4da95cf2010-10-16 02:46:32 -07004879
Lev Walkinaef10c32014-01-14 01:47:25 -08004880fi
4881fi
4882OBJDUMP=$ac_cv_prog_OBJDUMP
4883if test -n "$OBJDUMP"; then
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4885$as_echo "$OBJDUMP" >&6; }
4886else
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888$as_echo "no" >&6; }
4889fi
4890
4891
4892fi
4893if test -z "$ac_cv_prog_OBJDUMP"; then
4894 ac_ct_OBJDUMP=$OBJDUMP
4895 # Extract the first word of "objdump", so it can be a program name with args.
4896set dummy objdump; ac_word=$2
4897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898$as_echo_n "checking for $ac_word... " >&6; }
4899if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4900 $as_echo_n "(cached) " >&6
4901else
4902 if test -n "$ac_ct_OBJDUMP"; then
4903 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4904else
4905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906for as_dir in $PATH
4907do
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4912 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 break 2
4915 fi
4916done
4917 done
4918IFS=$as_save_IFS
4919
4920fi
4921fi
4922ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4923if test -n "$ac_ct_OBJDUMP"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4925$as_echo "$ac_ct_OBJDUMP" >&6; }
4926else
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928$as_echo "no" >&6; }
4929fi
4930
4931 if test "x$ac_ct_OBJDUMP" = x; then
4932 OBJDUMP="false"
4933 else
4934 case $cross_compiling:$ac_tool_warned in
4935yes:)
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4938ac_tool_warned=yes ;;
4939esac
4940 OBJDUMP=$ac_ct_OBJDUMP
4941 fi
4942else
4943 OBJDUMP="$ac_cv_prog_OBJDUMP"
4944fi
4945
4946test -z "$OBJDUMP" && OBJDUMP=objdump
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07004957$as_echo_n "checking how to recognize dependent libraries... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08004958if ${lt_cv_deplibs_check_method+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07004959 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00004960else
4961 lt_cv_file_magic_cmd='$MAGIC_CMD'
4962lt_cv_file_magic_test_file=
4963lt_cv_deplibs_check_method='unknown'
4964# Need to set the preceding variable on all platforms that support
4965# interlibrary dependencies.
4966# 'none' -- dependencies not supported.
4967# `unknown' -- same as none, but documents that we really don't know.
4968# 'pass_all' -- all dependencies passed with no checks.
4969# 'test_compile' -- check by making test program.
4970# 'file_magic [[regex]]' -- check by looking for files in library path
4971# which responds to the $file_magic_cmd with a given extended regex.
4972# If you have `file' or equivalent on your system and you're not sure
4973# whether `pass_all' will *always* work, you probably want this one.
Lev Walkinf15320b2004-06-03 03:38:44 +00004974
Lev Walkin8e8b5482004-06-17 23:42:48 +00004975case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -07004976aix[4-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00004977 lt_cv_deplibs_check_method=pass_all
4978 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00004979
Lev Walkin8e8b5482004-06-17 23:42:48 +00004980beos*)
4981 lt_cv_deplibs_check_method=pass_all
4982 ;;
4983
Lev Walkinfbf1d282007-12-03 14:58:39 +00004984bsdi[45]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00004985 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4986 lt_cv_file_magic_cmd='/usr/bin/file -L'
4987 lt_cv_file_magic_test_file=/shlib/libc.so
4988 ;;
4989
4990cygwin*)
4991 # func_win32_libid is a shell function defined in ltmain.sh
4992 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4993 lt_cv_file_magic_cmd='func_win32_libid'
4994 ;;
4995
4996mingw* | pw32*)
4997 # Base MSYS/MinGW do not provide the 'file' command needed by
Lev Walkin4da95cf2010-10-16 02:46:32 -07004998 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4999 # unless we find 'file', for example because we are cross-compiling.
Lev Walkinaef10c32014-01-14 01:47:25 -08005000 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5001 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005002 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5003 lt_cv_file_magic_cmd='func_win32_libid'
5004 else
Lev Walkinaef10c32014-01-14 01:47:25 -08005005 # Keep this pattern in sync with the one in func_win32_libid.
5006 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
Lev Walkin4da95cf2010-10-16 02:46:32 -07005007 lt_cv_file_magic_cmd='$OBJDUMP -f'
5008 fi
5009 ;;
5010
Lev Walkinaef10c32014-01-14 01:47:25 -08005011cegcc*)
5012 # use the weaker test based on 'objdump'. See mingw*.
5013 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5014 lt_cv_file_magic_cmd='$OBJDUMP -f'
5015 ;;
5016
Lev Walkin8e8b5482004-06-17 23:42:48 +00005017darwin* | rhapsody*)
5018 lt_cv_deplibs_check_method=pass_all
5019 ;;
5020
Lev Walkin4da95cf2010-10-16 02:46:32 -07005021freebsd* | dragonfly*)
5022 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00005023 case $host_cpu in
5024 i*86 )
5025 # Not sure whether the presence of OpenBSD here was a mistake.
5026 # Let's accept both of them until this is cleared up.
Lev Walkinfbf1d282007-12-03 14:58:39 +00005027 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
Lev Walkin8e8b5482004-06-17 23:42:48 +00005028 lt_cv_file_magic_cmd=/usr/bin/file
5029 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5030 ;;
5031 esac
5032 else
5033 lt_cv_deplibs_check_method=pass_all
5034 fi
5035 ;;
5036
5037gnu*)
5038 lt_cv_deplibs_check_method=pass_all
5039 ;;
5040
Lev Walkinaef10c32014-01-14 01:47:25 -08005041haiku*)
5042 lt_cv_deplibs_check_method=pass_all
5043 ;;
5044
Lev Walkin8e8b5482004-06-17 23:42:48 +00005045hpux10.20* | hpux11*)
5046 lt_cv_file_magic_cmd=/usr/bin/file
Lev Walkinfbf1d282007-12-03 14:58:39 +00005047 case $host_cpu in
Lev Walkin8e8b5482004-06-17 23:42:48 +00005048 ia64*)
5049 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5050 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5051 ;;
5052 hppa*64*)
Lev Walkinaef10c32014-01-14 01:47:25 -08005053 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
Lev Walkin8e8b5482004-06-17 23:42:48 +00005054 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5055 ;;
5056 *)
Lev Walkinaef10c32014-01-14 01:47:25 -08005057 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
Lev Walkin8e8b5482004-06-17 23:42:48 +00005058 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5059 ;;
5060 esac
5061 ;;
5062
Lev Walkin4da95cf2010-10-16 02:46:32 -07005063interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00005064 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5066 ;;
5067
Lev Walkin8e8b5482004-06-17 23:42:48 +00005068irix5* | irix6* | nonstopux*)
5069 case $LD in
5070 *-32|*"-32 ") libmagic=32-bit;;
5071 *-n32|*"-n32 ") libmagic=N32;;
5072 *-64|*"-64 ") libmagic=64-bit;;
5073 *) libmagic=never-match;;
5074 esac
5075 lt_cv_deplibs_check_method=pass_all
5076 ;;
5077
5078# This must be Linux ELF.
Lev Walkinaef10c32014-01-14 01:47:25 -08005079linux* | k*bsd*-gnu | kopensolaris*-gnu)
Lev Walkin8e8b5482004-06-17 23:42:48 +00005080 lt_cv_deplibs_check_method=pass_all
5081 ;;
5082
5083netbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07005084 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00005085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5086 else
5087 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5088 fi
5089 ;;
5090
5091newos6*)
5092 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5093 lt_cv_file_magic_cmd=/usr/bin/file
5094 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5095 ;;
5096
Lev Walkin4da95cf2010-10-16 02:46:32 -07005097*nto* | *qnx*)
5098 lt_cv_deplibs_check_method=pass_all
Lev Walkin8e8b5482004-06-17 23:42:48 +00005099 ;;
5100
5101openbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07005102 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00005103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
Lev Walkin8e8b5482004-06-17 23:42:48 +00005104 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00005105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
Lev Walkin8e8b5482004-06-17 23:42:48 +00005106 fi
5107 ;;
5108
5109osf3* | osf4* | osf5*)
5110 lt_cv_deplibs_check_method=pass_all
5111 ;;
5112
Lev Walkin4da95cf2010-10-16 02:46:32 -07005113rdos*)
5114 lt_cv_deplibs_check_method=pass_all
5115 ;;
5116
Lev Walkin8e8b5482004-06-17 23:42:48 +00005117solaris*)
5118 lt_cv_deplibs_check_method=pass_all
5119 ;;
5120
Lev Walkin4da95cf2010-10-16 02:46:32 -07005121sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5122 lt_cv_deplibs_check_method=pass_all
5123 ;;
5124
Lev Walkinfbf1d282007-12-03 14:58:39 +00005125sysv4 | sysv4.3*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00005126 case $host_vendor in
5127 motorola)
5128 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]'
5129 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5130 ;;
5131 ncr)
5132 lt_cv_deplibs_check_method=pass_all
5133 ;;
5134 sequent)
5135 lt_cv_file_magic_cmd='/bin/file'
5136 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5137 ;;
5138 sni)
5139 lt_cv_file_magic_cmd='/bin/file'
5140 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5141 lt_cv_file_magic_test_file=/lib/libc.so
5142 ;;
5143 siemens)
5144 lt_cv_deplibs_check_method=pass_all
5145 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00005146 pc)
5147 lt_cv_deplibs_check_method=pass_all
5148 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00005149 esac
5150 ;;
5151
Lev Walkin4da95cf2010-10-16 02:46:32 -07005152tpf*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00005153 lt_cv_deplibs_check_method=pass_all
5154 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00005155esac
5156
Lev Walkin8e8b5482004-06-17 23:42:48 +00005157fi
Lev Walkinaef10c32014-01-14 01:47:25 -08005158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005159$as_echo "$lt_cv_deplibs_check_method" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005160
5161file_magic_glob=
5162want_nocaseglob=no
5163if test "$build" = "$host"; then
5164 case $host_os in
5165 mingw* | pw32*)
5166 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5167 want_nocaseglob=yes
5168 else
5169 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5170 fi
5171 ;;
5172 esac
5173fi
5174
Lev Walkin8e8b5482004-06-17 23:42:48 +00005175file_magic_cmd=$lt_cv_file_magic_cmd
5176deplibs_check_method=$lt_cv_deplibs_check_method
5177test -z "$deplibs_check_method" && deplibs_check_method=unknown
5178
5179
5180
5181
Lev Walkin4da95cf2010-10-16 02:46:32 -07005182
5183
5184
5185
5186
5187
5188
5189
Lev Walkinaef10c32014-01-14 01:47:25 -08005190
5191
5192
5193
5194
5195
5196
5197
5198
5199
Lev Walkin4da95cf2010-10-16 02:46:32 -07005200if test -n "$ac_tool_prefix"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08005201 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5202set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005204$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005205if ${ac_cv_prog_DLLTOOL+:} false; then :
5206 $as_echo_n "(cached) " >&6
5207else
5208 if test -n "$DLLTOOL"; then
5209 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5210else
5211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212for as_dir in $PATH
5213do
5214 IFS=$as_save_IFS
5215 test -z "$as_dir" && as_dir=.
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5218 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 break 2
5221 fi
5222done
5223 done
5224IFS=$as_save_IFS
5225
5226fi
5227fi
5228DLLTOOL=$ac_cv_prog_DLLTOOL
5229if test -n "$DLLTOOL"; then
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5231$as_echo "$DLLTOOL" >&6; }
5232else
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234$as_echo "no" >&6; }
5235fi
5236
5237
5238fi
5239if test -z "$ac_cv_prog_DLLTOOL"; then
5240 ac_ct_DLLTOOL=$DLLTOOL
5241 # Extract the first word of "dlltool", so it can be a program name with args.
5242set dummy dlltool; ac_word=$2
5243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244$as_echo_n "checking for $ac_word... " >&6; }
5245if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5246 $as_echo_n "(cached) " >&6
5247else
5248 if test -n "$ac_ct_DLLTOOL"; then
5249 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5250else
5251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252for as_dir in $PATH
5253do
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5258 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 break 2
5261 fi
5262done
5263 done
5264IFS=$as_save_IFS
5265
5266fi
5267fi
5268ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5269if test -n "$ac_ct_DLLTOOL"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5271$as_echo "$ac_ct_DLLTOOL" >&6; }
5272else
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274$as_echo "no" >&6; }
5275fi
5276
5277 if test "x$ac_ct_DLLTOOL" = x; then
5278 DLLTOOL="false"
5279 else
5280 case $cross_compiling:$ac_tool_warned in
5281yes:)
5282{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5284ac_tool_warned=yes ;;
5285esac
5286 DLLTOOL=$ac_ct_DLLTOOL
5287 fi
5288else
5289 DLLTOOL="$ac_cv_prog_DLLTOOL"
5290fi
5291
5292test -z "$DLLTOOL" && DLLTOOL=dlltool
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5304$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5305if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5306 $as_echo_n "(cached) " >&6
5307else
5308 lt_cv_sharedlib_from_linklib_cmd='unknown'
5309
5310case $host_os in
5311cygwin* | mingw* | pw32* | cegcc*)
5312 # two different shell functions defined in ltmain.sh
5313 # decide which to use based on capabilities of $DLLTOOL
5314 case `$DLLTOOL --help 2>&1` in
5315 *--identify-strict*)
5316 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5317 ;;
5318 *)
5319 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5320 ;;
5321 esac
5322 ;;
5323*)
5324 # fallback: assume linklib IS sharedlib
5325 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5326 ;;
5327esac
5328
5329fi
5330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5331$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5332sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5333test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5334
5335
5336
5337
5338
5339
5340
5341
5342if test -n "$ac_tool_prefix"; then
5343 for ac_prog in ar
5344 do
5345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5346set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5348$as_echo_n "checking for $ac_word... " >&6; }
5349if ${ac_cv_prog_AR+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07005350 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005351else
5352 if test -n "$AR"; then
5353 ac_cv_prog_AR="$AR" # Let the user override the test.
5354else
5355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356for as_dir in $PATH
5357do
5358 IFS=$as_save_IFS
5359 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08005360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5362 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005364 break 2
5365 fi
5366done
Lev Walkinaef10c32014-01-14 01:47:25 -08005367 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07005368IFS=$as_save_IFS
5369
5370fi
5371fi
5372AR=$ac_cv_prog_AR
5373if test -n "$AR"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08005374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005375$as_echo "$AR" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005376else
Lev Walkinaef10c32014-01-14 01:47:25 -08005377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005378$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005379fi
5380
5381
Lev Walkinaef10c32014-01-14 01:47:25 -08005382 test -n "$AR" && break
5383 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07005384fi
Lev Walkinaef10c32014-01-14 01:47:25 -08005385if test -z "$AR"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005386 ac_ct_AR=$AR
Lev Walkinaef10c32014-01-14 01:47:25 -08005387 for ac_prog in ar
5388do
5389 # Extract the first word of "$ac_prog", so it can be a program name with args.
5390set dummy $ac_prog; ac_word=$2
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005392$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005393if ${ac_cv_prog_ac_ct_AR+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07005394 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005395else
5396 if test -n "$ac_ct_AR"; then
5397 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5398else
5399as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400for as_dir in $PATH
5401do
5402 IFS=$as_save_IFS
5403 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08005404 for ac_exec_ext in '' $ac_executable_extensions; do
5405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5406 ac_cv_prog_ac_ct_AR="$ac_prog"
5407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005408 break 2
5409 fi
5410done
Lev Walkinaef10c32014-01-14 01:47:25 -08005411 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07005412IFS=$as_save_IFS
5413
5414fi
5415fi
5416ac_ct_AR=$ac_cv_prog_ac_ct_AR
5417if test -n "$ac_ct_AR"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08005418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005419$as_echo "$ac_ct_AR" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005420else
Lev Walkinaef10c32014-01-14 01:47:25 -08005421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005422$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005423fi
5424
Lev Walkinaef10c32014-01-14 01:47:25 -08005425
5426 test -n "$ac_ct_AR" && break
5427done
5428
Lev Walkin4da95cf2010-10-16 02:46:32 -07005429 if test "x$ac_ct_AR" = x; then
5430 AR="false"
5431 else
5432 case $cross_compiling:$ac_tool_warned in
5433yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08005434{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005435$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07005436ac_tool_warned=yes ;;
5437esac
5438 AR=$ac_ct_AR
5439 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07005440fi
5441
Lev Walkinaef10c32014-01-14 01:47:25 -08005442: ${AR=ar}
5443: ${AR_FLAGS=cru}
Lev Walkin4da95cf2010-10-16 02:46:32 -07005444
Lev Walkin4da95cf2010-10-16 02:46:32 -07005445
Lev Walkin4c776e52010-11-08 02:07:31 -08005446
5447
Lev Walkin4da95cf2010-10-16 02:46:32 -07005448
5449
5450
5451
5452
5453
5454
Lev Walkinaef10c32014-01-14 01:47:25 -08005455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5456$as_echo_n "checking for archiver @FILE support... " >&6; }
5457if ${lt_cv_ar_at_file+:} false; then :
5458 $as_echo_n "(cached) " >&6
5459else
5460 lt_cv_ar_at_file=no
5461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5462/* end confdefs.h. */
5463
5464int
5465main ()
5466{
5467
5468 ;
5469 return 0;
5470}
5471_ACEOF
5472if ac_fn_c_try_compile "$LINENO"; then :
5473 echo conftest.$ac_objext > conftest.lst
5474 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5476 (eval $lt_ar_try) 2>&5
5477 ac_status=$?
5478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5479 test $ac_status = 0; }
5480 if test "$ac_status" -eq 0; then
5481 # Ensure the archiver fails upon bogus file names.
5482 rm -f conftest.$ac_objext libconftest.a
5483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5484 (eval $lt_ar_try) 2>&5
5485 ac_status=$?
5486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5487 test $ac_status = 0; }
5488 if test "$ac_status" -ne 0; then
5489 lt_cv_ar_at_file=@
5490 fi
5491 fi
5492 rm -f conftest.* libconftest.a
5493
5494fi
5495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496
5497fi
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5499$as_echo "$lt_cv_ar_at_file" >&6; }
5500
5501if test "x$lt_cv_ar_at_file" = xno; then
5502 archiver_list_spec=
5503else
5504 archiver_list_spec=$lt_cv_ar_at_file
5505fi
5506
5507
5508
5509
5510
5511
5512
Lev Walkin4da95cf2010-10-16 02:46:32 -07005513if test -n "$ac_tool_prefix"; then
5514 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5515set dummy ${ac_tool_prefix}strip; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08005516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005517$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005518if ${ac_cv_prog_STRIP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07005519 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005520else
5521 if test -n "$STRIP"; then
5522 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5523else
5524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525for as_dir in $PATH
5526do
5527 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08005529 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005531 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Lev Walkinaef10c32014-01-14 01:47:25 -08005532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005533 break 2
5534 fi
5535done
Lev Walkinaef10c32014-01-14 01:47:25 -08005536 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07005537IFS=$as_save_IFS
5538
5539fi
5540fi
5541STRIP=$ac_cv_prog_STRIP
5542if test -n "$STRIP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08005543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005544$as_echo "$STRIP" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005545else
Lev Walkinaef10c32014-01-14 01:47:25 -08005546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005547$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005548fi
5549
5550
5551fi
5552if test -z "$ac_cv_prog_STRIP"; then
5553 ac_ct_STRIP=$STRIP
5554 # Extract the first word of "strip", so it can be a program name with args.
5555set dummy strip; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08005556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005557$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005558if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07005559 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005560else
5561 if test -n "$ac_ct_STRIP"; then
5562 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5563else
5564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565for as_dir in $PATH
5566do
5567 IFS=$as_save_IFS
5568 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08005569 for ac_exec_ext in '' $ac_executable_extensions; do
5570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005571 ac_cv_prog_ac_ct_STRIP="strip"
Lev Walkinaef10c32014-01-14 01:47:25 -08005572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005573 break 2
5574 fi
5575done
Lev Walkinaef10c32014-01-14 01:47:25 -08005576 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07005577IFS=$as_save_IFS
5578
5579fi
5580fi
5581ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5582if test -n "$ac_ct_STRIP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08005583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005584$as_echo "$ac_ct_STRIP" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005585else
Lev Walkinaef10c32014-01-14 01:47:25 -08005586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005587$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005588fi
5589
5590 if test "x$ac_ct_STRIP" = x; then
5591 STRIP=":"
5592 else
5593 case $cross_compiling:$ac_tool_warned in
5594yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08005595{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005596$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07005597ac_tool_warned=yes ;;
5598esac
5599 STRIP=$ac_ct_STRIP
5600 fi
5601else
5602 STRIP="$ac_cv_prog_STRIP"
5603fi
5604
5605test -z "$STRIP" && STRIP=:
5606
5607
5608
5609
5610
5611
5612if test -n "$ac_tool_prefix"; then
5613 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5614set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08005615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005616$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005617if ${ac_cv_prog_RANLIB+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07005618 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005619else
5620 if test -n "$RANLIB"; then
5621 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5622else
5623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624for as_dir in $PATH
5625do
5626 IFS=$as_save_IFS
5627 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08005628 for ac_exec_ext in '' $ac_executable_extensions; do
5629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005630 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Lev Walkinaef10c32014-01-14 01:47:25 -08005631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005632 break 2
5633 fi
5634done
Lev Walkinaef10c32014-01-14 01:47:25 -08005635 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07005636IFS=$as_save_IFS
5637
5638fi
5639fi
5640RANLIB=$ac_cv_prog_RANLIB
5641if test -n "$RANLIB"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08005642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005643$as_echo "$RANLIB" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005644else
Lev Walkinaef10c32014-01-14 01:47:25 -08005645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005646$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005647fi
5648
5649
5650fi
5651if test -z "$ac_cv_prog_RANLIB"; then
5652 ac_ct_RANLIB=$RANLIB
5653 # Extract the first word of "ranlib", so it can be a program name with args.
5654set dummy ranlib; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08005655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005656$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005657if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07005658 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005659else
5660 if test -n "$ac_ct_RANLIB"; then
5661 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5662else
5663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664for as_dir in $PATH
5665do
5666 IFS=$as_save_IFS
5667 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08005668 for ac_exec_ext in '' $ac_executable_extensions; do
5669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005670 ac_cv_prog_ac_ct_RANLIB="ranlib"
Lev Walkinaef10c32014-01-14 01:47:25 -08005671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005672 break 2
5673 fi
5674done
Lev Walkinaef10c32014-01-14 01:47:25 -08005675 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07005676IFS=$as_save_IFS
5677
5678fi
5679fi
5680ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5681if test -n "$ac_ct_RANLIB"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08005682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005683$as_echo "$ac_ct_RANLIB" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005684else
Lev Walkinaef10c32014-01-14 01:47:25 -08005685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005686$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07005687fi
5688
5689 if test "x$ac_ct_RANLIB" = x; then
5690 RANLIB=":"
5691 else
5692 case $cross_compiling:$ac_tool_warned in
5693yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08005694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07005696ac_tool_warned=yes ;;
5697esac
5698 RANLIB=$ac_ct_RANLIB
5699 fi
5700else
5701 RANLIB="$ac_cv_prog_RANLIB"
5702fi
5703
5704test -z "$RANLIB" && RANLIB=:
5705
5706
5707
5708
5709
5710
5711# Determine commands to create old-style static archives.
5712old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5713old_postinstall_cmds='chmod 644 $oldlib'
5714old_postuninstall_cmds=
5715
5716if test -n "$RANLIB"; then
5717 case $host_os in
5718 openbsd*)
5719 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5720 ;;
5721 *)
5722 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5723 ;;
5724 esac
5725 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5726fi
5727
Lev Walkinaef10c32014-01-14 01:47:25 -08005728case $host_os in
5729 darwin*)
5730 lock_old_archive_extraction=yes ;;
5731 *)
5732 lock_old_archive_extraction=no ;;
5733esac
5734
5735
5736
5737
5738
5739
Lev Walkin4da95cf2010-10-16 02:46:32 -07005740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
Lev Walkin8e8b5482004-06-17 23:42:48 +00005773# If no C compiler was specified, use CC.
5774LTCC=${LTCC-"$CC"}
5775
Lev Walkinfbf1d282007-12-03 14:58:39 +00005776# If no C compiler flags were specified, use CFLAGS.
5777LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5778
Lev Walkin8e8b5482004-06-17 23:42:48 +00005779# Allow CC to be a program name with arguments.
5780compiler=$CC
Lev Walkinf15320b2004-06-03 03:38:44 +00005781
5782
Lev Walkin4da95cf2010-10-16 02:46:32 -07005783# Check for command to grab the raw symbol name followed by C symbol from nm.
Lev Walkinaef10c32014-01-14 01:47:25 -08005784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07005785$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08005786if ${lt_cv_sys_global_symbol_pipe+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07005787 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07005788else
5789
5790# These are sane defaults that work on at least a few old systems.
5791# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5792
5793# Character class describing NM global symbol codes.
5794symcode='[BCDEGRST]'
5795
5796# Regexp to match symbols that can be accessed directly from C.
5797sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5798
5799# Define system-specific variables.
5800case $host_os in
5801aix*)
5802 symcode='[BCDT]'
5803 ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08005804cygwin* | mingw* | pw32* | cegcc*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07005805 symcode='[ABCDGISTW]'
5806 ;;
5807hpux*)
5808 if test "$host_cpu" = ia64; then
5809 symcode='[ABCDEGRST]'
5810 fi
5811 ;;
5812irix* | nonstopux*)
5813 symcode='[BCDEGRST]'
5814 ;;
5815osf*)
5816 symcode='[BCDEGQRST]'
5817 ;;
5818solaris*)
5819 symcode='[BDRT]'
5820 ;;
5821sco3.2v5*)
5822 symcode='[DT]'
5823 ;;
5824sysv4.2uw2*)
5825 symcode='[DT]'
5826 ;;
5827sysv5* | sco5v6* | unixware* | OpenUNIX*)
5828 symcode='[ABDT]'
5829 ;;
5830sysv4)
5831 symcode='[DFNSTU]'
5832 ;;
5833esac
5834
5835# If we're using GNU nm, then use its standard symbol codes.
5836case `$NM -V 2>&1` in
5837*GNU* | *'with BFD'*)
5838 symcode='[ABCDGIRSTW]' ;;
5839esac
5840
5841# Transform an extracted symbol line into a proper C declaration.
5842# Some systems (esp. on ia64) link data and code symbols differently,
5843# so use this general approach.
5844lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5845
5846# Transform an extracted symbol line into symbol name and symbol address
Lev Walkinaef10c32014-01-14 01:47:25 -08005847lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5848lt_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'"
Lev Walkin4da95cf2010-10-16 02:46:32 -07005849
5850# Handle CRLF in mingw tool chain
5851opt_cr=
5852case $build_os in
5853mingw*)
5854 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5855 ;;
5856esac
5857
5858# Try without a prefix underscore, then with it.
5859for ac_symprfx in "" "_"; do
5860
5861 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5862 symxfrm="\\1 $ac_symprfx\\2 \\2"
5863
5864 # Write the raw and C identifiers.
5865 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5866 # Fake it for dumpbin and say T for any non-static function
5867 # and D for any global variable.
5868 # Also find C++ and __fastcall symbols from MSVC++,
5869 # which start with @ or ?.
5870 lt_cv_sys_global_symbol_pipe="$AWK '"\
5871" {last_section=section; section=\$ 3};"\
5872" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5873" \$ 0!~/External *\|/{next};"\
5874" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5875" {if(hide[section]) next};"\
5876" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5877" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5878" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5879" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5880" ' prfx=^$ac_symprfx"
5881 else
5882 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5883 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08005884 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
Lev Walkin4da95cf2010-10-16 02:46:32 -07005885
5886 # Check to see that the pipe works correctly.
5887 pipe_works=no
5888
Lev Walkinaef10c32014-01-14 01:47:25 -08005889 rm -f conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07005890 cat > conftest.$ac_ext <<_LT_EOF
5891#ifdef __cplusplus
5892extern "C" {
5893#endif
5894char nm_test_var;
5895void nm_test_func(void);
5896void nm_test_func(void){}
5897#ifdef __cplusplus
5898}
5899#endif
5900int main(){nm_test_var='a';nm_test_func();return(0);}
5901_LT_EOF
5902
Lev Walkinaef10c32014-01-14 01:47:25 -08005903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005904 (eval $ac_compile) 2>&5
5905 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08005906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5907 test $ac_status = 0; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005908 # Now try to grab the symbols.
5909 nlist=conftest.nm
Lev Walkinaef10c32014-01-14 01:47:25 -08005910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5911 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005912 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08005913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5914 test $ac_status = 0; } && test -s "$nlist"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005915 # Try sorting and uniquifying the output.
5916 if sort "$nlist" | uniq > "$nlist"T; then
5917 mv -f "$nlist"T "$nlist"
5918 else
5919 rm -f "$nlist"T
5920 fi
5921
5922 # Make sure that we snagged all the symbols we need.
5923 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5924 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5925 cat <<_LT_EOF > conftest.$ac_ext
Lev Walkinaef10c32014-01-14 01:47:25 -08005926/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5927#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5928/* DATA imports from DLLs on WIN32 con't be const, because runtime
5929 relocations are performed -- see ld's documentation on pseudo-relocs. */
5930# define LT_DLSYM_CONST
5931#elif defined(__osf__)
5932/* This system does not cope well with relocations in const data. */
5933# define LT_DLSYM_CONST
5934#else
5935# define LT_DLSYM_CONST const
5936#endif
5937
Lev Walkin4da95cf2010-10-16 02:46:32 -07005938#ifdef __cplusplus
5939extern "C" {
5940#endif
5941
5942_LT_EOF
5943 # Now generate the symbol file.
5944 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5945
5946 cat <<_LT_EOF >> conftest.$ac_ext
5947
5948/* The mapping between symbol names and symbols. */
Lev Walkinaef10c32014-01-14 01:47:25 -08005949LT_DLSYM_CONST struct {
Lev Walkin4da95cf2010-10-16 02:46:32 -07005950 const char *name;
5951 void *address;
5952}
5953lt__PROGRAM__LTX_preloaded_symbols[] =
5954{
5955 { "@PROGRAM@", (void *) 0 },
5956_LT_EOF
5957 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5958 cat <<\_LT_EOF >> conftest.$ac_ext
5959 {0, (void *) 0}
5960};
5961
5962/* This works around a problem in FreeBSD linker */
5963#ifdef FREEBSD_WORKAROUND
5964static const void *lt_preloaded_setup() {
5965 return lt__PROGRAM__LTX_preloaded_symbols;
5966}
5967#endif
5968
5969#ifdef __cplusplus
5970}
5971#endif
5972_LT_EOF
5973 # Now try linking the two files.
5974 mv conftest.$ac_objext conftstm.$ac_objext
Lev Walkinaef10c32014-01-14 01:47:25 -08005975 lt_globsym_save_LIBS=$LIBS
5976 lt_globsym_save_CFLAGS=$CFLAGS
Lev Walkin4da95cf2010-10-16 02:46:32 -07005977 LIBS="conftstm.$ac_objext"
5978 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
Lev Walkinaef10c32014-01-14 01:47:25 -08005979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07005980 (eval $ac_link) 2>&5
5981 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08005982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5983 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07005984 pipe_works=yes
5985 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08005986 LIBS=$lt_globsym_save_LIBS
5987 CFLAGS=$lt_globsym_save_CFLAGS
Lev Walkin4da95cf2010-10-16 02:46:32 -07005988 else
5989 echo "cannot find nm_test_func in $nlist" >&5
5990 fi
5991 else
5992 echo "cannot find nm_test_var in $nlist" >&5
5993 fi
5994 else
5995 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5996 fi
5997 else
5998 echo "$progname: failed program was:" >&5
5999 cat conftest.$ac_ext >&5
6000 fi
6001 rm -rf conftest* conftst*
6002
6003 # Do not use the global_symbol_pipe unless it works.
6004 if test "$pipe_works" = yes; then
6005 break
6006 else
6007 lt_cv_sys_global_symbol_pipe=
6008 fi
6009done
6010
6011fi
6012
6013if test -z "$lt_cv_sys_global_symbol_pipe"; then
6014 lt_cv_sys_global_symbol_to_cdecl=
6015fi
6016if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006018$as_echo "failed" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006019else
Lev Walkinaef10c32014-01-14 01:47:25 -08006020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006021$as_echo "ok" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006022fi
6023
Lev Walkinaef10c32014-01-14 01:47:25 -08006024# Response file support.
6025if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6026 nm_file_list_spec='@'
6027elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6028 nm_file_list_spec='@'
6029fi
6030
Lev Walkin4da95cf2010-10-16 02:46:32 -07006031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
Lev Walkinaef10c32014-01-14 01:47:25 -08006053
6054
6055
6056
6057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6058$as_echo_n "checking for sysroot... " >&6; }
6059
6060# Check whether --with-sysroot was given.
6061if test "${with_sysroot+set}" = set; then :
6062 withval=$with_sysroot;
6063else
6064 with_sysroot=no
6065fi
6066
6067
6068lt_sysroot=
6069case ${with_sysroot} in #(
6070 yes)
6071 if test "$GCC" = yes; then
6072 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6073 fi
6074 ;; #(
6075 /*)
6076 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6077 ;; #(
6078 no|'')
6079 ;; #(
6080 *)
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6082$as_echo "${with_sysroot}" >&6; }
6083 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6084 ;;
6085esac
6086
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6088$as_echo "${lt_sysroot:-no}" >&6; }
6089
6090
6091
6092
6093
Lev Walkin27fd0b62007-08-27 23:57:45 +00006094# Check whether --enable-libtool-lock was given.
Lev Walkinaef10c32014-01-14 01:47:25 -08006095if test "${enable_libtool_lock+set}" = set; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +00006096 enableval=$enable_libtool_lock;
6097fi
Lev Walkinf15320b2004-06-03 03:38:44 +00006098
Lev Walkin8e8b5482004-06-17 23:42:48 +00006099test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
Lev Walkinf15320b2004-06-03 03:38:44 +00006100
6101# Some flags need to be propagated to the compiler or linker for good
6102# libtool support.
Lev Walkin8e8b5482004-06-17 23:42:48 +00006103case $host in
6104ia64-*-hpux*)
Lev Walkinf15320b2004-06-03 03:38:44 +00006105 # Find out which ABI we are using.
Lev Walkin8e8b5482004-06-17 23:42:48 +00006106 echo 'int i;' > conftest.$ac_ext
Lev Walkinaef10c32014-01-14 01:47:25 -08006107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Lev Walkinf15320b2004-06-03 03:38:44 +00006108 (eval $ac_compile) 2>&5
6109 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08006110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6111 test $ac_status = 0; }; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00006112 case `/usr/bin/file conftest.$ac_objext` in
Lev Walkin4da95cf2010-10-16 02:46:32 -07006113 *ELF-32*)
6114 HPUX_IA64_MODE="32"
6115 ;;
6116 *ELF-64*)
6117 HPUX_IA64_MODE="64"
6118 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00006119 esac
6120 fi
6121 rm -rf conftest*
6122 ;;
6123*-*-irix6*)
6124 # Find out which ABI we are using.
Lev Walkinaef10c32014-01-14 01:47:25 -08006125 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6126 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006127 (eval $ac_compile) 2>&5
6128 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08006129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6130 test $ac_status = 0; }; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006131 if test "$lt_cv_prog_gnu_ld" = yes; then
6132 case `/usr/bin/file conftest.$ac_objext` in
6133 *32-bit*)
6134 LD="${LD-ld} -melf32bsmip"
6135 ;;
6136 *N32*)
6137 LD="${LD-ld} -melf32bmipn32"
6138 ;;
6139 *64-bit*)
6140 LD="${LD-ld} -melf64bmip"
6141 ;;
6142 esac
6143 else
6144 case `/usr/bin/file conftest.$ac_objext` in
6145 *32-bit*)
6146 LD="${LD-ld} -32"
6147 ;;
6148 *N32*)
6149 LD="${LD-ld} -n32"
6150 ;;
6151 *64-bit*)
6152 LD="${LD-ld} -64"
6153 ;;
6154 esac
6155 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00006156 fi
6157 rm -rf conftest*
6158 ;;
6159
Lev Walkin4da95cf2010-10-16 02:46:32 -07006160x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6161s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00006162 # Find out which ABI we are using.
6163 echo 'int i;' > conftest.$ac_ext
Lev Walkinaef10c32014-01-14 01:47:25 -08006164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00006165 (eval $ac_compile) 2>&5
6166 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08006167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6168 test $ac_status = 0; }; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00006169 case `/usr/bin/file conftest.o` in
Lev Walkin4da95cf2010-10-16 02:46:32 -07006170 *32-bit*)
6171 case $host in
6172 x86_64-*kfreebsd*-gnu)
6173 LD="${LD-ld} -m elf_i386_fbsd"
6174 ;;
6175 x86_64-*linux*)
6176 LD="${LD-ld} -m elf_i386"
6177 ;;
6178 ppc64-*linux*|powerpc64-*linux*)
6179 LD="${LD-ld} -m elf32ppclinux"
6180 ;;
6181 s390x-*linux*)
6182 LD="${LD-ld} -m elf_s390"
6183 ;;
6184 sparc64-*linux*)
6185 LD="${LD-ld} -m elf32_sparc"
6186 ;;
6187 esac
6188 ;;
6189 *64-bit*)
6190 case $host in
6191 x86_64-*kfreebsd*-gnu)
6192 LD="${LD-ld} -m elf_x86_64_fbsd"
6193 ;;
6194 x86_64-*linux*)
6195 LD="${LD-ld} -m elf_x86_64"
6196 ;;
6197 ppc*-*linux*|powerpc*-*linux*)
6198 LD="${LD-ld} -m elf64ppc"
6199 ;;
6200 s390*-*linux*|s390*-*tpf*)
6201 LD="${LD-ld} -m elf64_s390"
6202 ;;
6203 sparc*-*linux*)
6204 LD="${LD-ld} -m elf64_sparc"
6205 ;;
6206 esac
6207 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00006208 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00006209 fi
6210 rm -rf conftest*
6211 ;;
6212
6213*-*-sco3.2v5*)
6214 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6215 SAVE_CFLAGS="$CFLAGS"
6216 CFLAGS="$CFLAGS -belf"
Lev Walkinaef10c32014-01-14 01:47:25 -08006217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006218$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006219if ${lt_cv_cc_needs_belf+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006220 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +00006221else
Lev Walkin8e8b5482004-06-17 23:42:48 +00006222 ac_ext=c
6223ac_cpp='$CPP $CPPFLAGS'
6224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6226ac_compiler_gnu=$ac_cv_c_compiler_gnu
6227
Lev Walkinaef10c32014-01-14 01:47:25 -08006228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +00006229/* end confdefs.h. */
6230
6231int
6232main ()
6233{
6234
6235 ;
6236 return 0;
6237}
6238_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08006239if ac_fn_c_try_link "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +00006240 lt_cv_cc_needs_belf=yes
6241else
Lev Walkinaef10c32014-01-14 01:47:25 -08006242 lt_cv_cc_needs_belf=no
Lev Walkinf15320b2004-06-03 03:38:44 +00006243fi
Lev Walkinaef10c32014-01-14 01:47:25 -08006244rm -f core conftest.err conftest.$ac_objext \
6245 conftest$ac_exeext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00006246 ac_ext=c
6247ac_cpp='$CPP $CPPFLAGS'
6248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6250ac_compiler_gnu=$ac_cv_c_compiler_gnu
6251
Lev Walkinf15320b2004-06-03 03:38:44 +00006252fi
Lev Walkinaef10c32014-01-14 01:47:25 -08006253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006254$as_echo "$lt_cv_cc_needs_belf" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +00006255 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6256 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6257 CFLAGS="$SAVE_CFLAGS"
6258 fi
6259 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00006260sparc*-*solaris*)
6261 # Find out which ABI we are using.
6262 echo 'int i;' > conftest.$ac_ext
Lev Walkinaef10c32014-01-14 01:47:25 -08006263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Lev Walkinfbf1d282007-12-03 14:58:39 +00006264 (eval $ac_compile) 2>&5
6265 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08006266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6267 test $ac_status = 0; }; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00006268 case `/usr/bin/file conftest.o` in
6269 *64-bit*)
6270 case $lt_cv_prog_gnu_ld in
6271 yes*) LD="${LD-ld} -m elf64_sparc" ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07006272 *)
6273 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6274 LD="${LD-ld} -64"
6275 fi
6276 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00006277 esac
6278 ;;
6279 esac
6280 fi
6281 rm -rf conftest*
6282 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +00006283esac
6284
Lev Walkin8e8b5482004-06-17 23:42:48 +00006285need_locks="$enable_libtool_lock"
Lev Walkinf15320b2004-06-03 03:38:44 +00006286
Lev Walkinaef10c32014-01-14 01:47:25 -08006287if test -n "$ac_tool_prefix"; then
6288 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6289set dummy ${ac_tool_prefix}mt; ac_word=$2
6290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6291$as_echo_n "checking for $ac_word... " >&6; }
6292if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6293 $as_echo_n "(cached) " >&6
6294else
6295 if test -n "$MANIFEST_TOOL"; then
6296 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6297else
6298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299for as_dir in $PATH
6300do
6301 IFS=$as_save_IFS
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6305 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 break 2
6308 fi
6309done
6310 done
6311IFS=$as_save_IFS
6312
6313fi
6314fi
6315MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6316if test -n "$MANIFEST_TOOL"; then
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6318$as_echo "$MANIFEST_TOOL" >&6; }
6319else
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321$as_echo "no" >&6; }
6322fi
6323
6324
6325fi
6326if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6327 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6328 # Extract the first word of "mt", so it can be a program name with args.
6329set dummy mt; ac_word=$2
6330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331$as_echo_n "checking for $ac_word... " >&6; }
6332if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6333 $as_echo_n "(cached) " >&6
6334else
6335 if test -n "$ac_ct_MANIFEST_TOOL"; then
6336 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6337else
6338as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339for as_dir in $PATH
6340do
6341 IFS=$as_save_IFS
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6345 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 break 2
6348 fi
6349done
6350 done
6351IFS=$as_save_IFS
6352
6353fi
6354fi
6355ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6356if test -n "$ac_ct_MANIFEST_TOOL"; then
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6358$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6359else
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361$as_echo "no" >&6; }
6362fi
6363
6364 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6365 MANIFEST_TOOL=":"
6366 else
6367 case $cross_compiling:$ac_tool_warned in
6368yes:)
6369{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6370$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6371ac_tool_warned=yes ;;
6372esac
6373 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6374 fi
6375else
6376 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6377fi
6378
6379test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6381$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6382if ${lt_cv_path_mainfest_tool+:} false; then :
6383 $as_echo_n "(cached) " >&6
6384else
6385 lt_cv_path_mainfest_tool=no
6386 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6387 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6388 cat conftest.err >&5
6389 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6390 lt_cv_path_mainfest_tool=yes
6391 fi
6392 rm -f conftest*
6393fi
6394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6395$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6396if test "x$lt_cv_path_mainfest_tool" != xyes; then
6397 MANIFEST_TOOL=:
6398fi
6399
6400
6401
6402
6403
Lev Walkin4da95cf2010-10-16 02:46:32 -07006404
6405 case $host_os in
6406 rhapsody* | darwin*)
6407 if test -n "$ac_tool_prefix"; then
6408 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6409set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006411$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006412if ${ac_cv_prog_DSYMUTIL+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006413 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006414else
6415 if test -n "$DSYMUTIL"; then
6416 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6417else
6418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419for as_dir in $PATH
6420do
6421 IFS=$as_save_IFS
6422 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006423 for ac_exec_ext in '' $ac_executable_extensions; do
6424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006425 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
Lev Walkinaef10c32014-01-14 01:47:25 -08006426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006427 break 2
6428 fi
6429done
Lev Walkinaef10c32014-01-14 01:47:25 -08006430 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006431IFS=$as_save_IFS
6432
6433fi
6434fi
6435DSYMUTIL=$ac_cv_prog_DSYMUTIL
6436if test -n "$DSYMUTIL"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006438$as_echo "$DSYMUTIL" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006439else
Lev Walkinaef10c32014-01-14 01:47:25 -08006440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006441$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006442fi
6443
6444
6445fi
6446if test -z "$ac_cv_prog_DSYMUTIL"; then
6447 ac_ct_DSYMUTIL=$DSYMUTIL
6448 # Extract the first word of "dsymutil", so it can be a program name with args.
6449set dummy dsymutil; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006451$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006452if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006453 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006454else
6455 if test -n "$ac_ct_DSYMUTIL"; then
6456 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6457else
6458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459for as_dir in $PATH
6460do
6461 IFS=$as_save_IFS
6462 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006465 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
Lev Walkinaef10c32014-01-14 01:47:25 -08006466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006467 break 2
6468 fi
6469done
Lev Walkinaef10c32014-01-14 01:47:25 -08006470 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006471IFS=$as_save_IFS
6472
6473fi
6474fi
6475ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6476if test -n "$ac_ct_DSYMUTIL"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006478$as_echo "$ac_ct_DSYMUTIL" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006479else
Lev Walkinaef10c32014-01-14 01:47:25 -08006480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006481$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006482fi
6483
6484 if test "x$ac_ct_DSYMUTIL" = x; then
6485 DSYMUTIL=":"
6486 else
6487 case $cross_compiling:$ac_tool_warned in
6488yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08006489{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006490$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07006491ac_tool_warned=yes ;;
6492esac
6493 DSYMUTIL=$ac_ct_DSYMUTIL
6494 fi
6495else
6496 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6497fi
6498
6499 if test -n "$ac_tool_prefix"; then
6500 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6501set dummy ${ac_tool_prefix}nmedit; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006503$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006504if ${ac_cv_prog_NMEDIT+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006505 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006506else
6507 if test -n "$NMEDIT"; then
6508 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6509else
6510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511for as_dir in $PATH
6512do
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006517 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
Lev Walkinaef10c32014-01-14 01:47:25 -08006518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006519 break 2
6520 fi
6521done
Lev Walkinaef10c32014-01-14 01:47:25 -08006522 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006523IFS=$as_save_IFS
6524
6525fi
6526fi
6527NMEDIT=$ac_cv_prog_NMEDIT
6528if test -n "$NMEDIT"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006530$as_echo "$NMEDIT" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006531else
Lev Walkinaef10c32014-01-14 01:47:25 -08006532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006533$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006534fi
6535
6536
6537fi
6538if test -z "$ac_cv_prog_NMEDIT"; then
6539 ac_ct_NMEDIT=$NMEDIT
6540 # Extract the first word of "nmedit", so it can be a program name with args.
6541set dummy nmedit; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006543$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006544if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006545 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006546else
6547 if test -n "$ac_ct_NMEDIT"; then
6548 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6549else
6550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551for as_dir in $PATH
6552do
6553 IFS=$as_save_IFS
6554 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006557 ac_cv_prog_ac_ct_NMEDIT="nmedit"
Lev Walkinaef10c32014-01-14 01:47:25 -08006558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006559 break 2
6560 fi
6561done
Lev Walkinaef10c32014-01-14 01:47:25 -08006562 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006563IFS=$as_save_IFS
6564
6565fi
6566fi
6567ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6568if test -n "$ac_ct_NMEDIT"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006570$as_echo "$ac_ct_NMEDIT" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006571else
Lev Walkinaef10c32014-01-14 01:47:25 -08006572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006573$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006574fi
6575
6576 if test "x$ac_ct_NMEDIT" = x; then
6577 NMEDIT=":"
6578 else
6579 case $cross_compiling:$ac_tool_warned in
6580yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08006581{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006582$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07006583ac_tool_warned=yes ;;
6584esac
6585 NMEDIT=$ac_ct_NMEDIT
6586 fi
6587else
6588 NMEDIT="$ac_cv_prog_NMEDIT"
6589fi
6590
6591 if test -n "$ac_tool_prefix"; then
6592 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6593set dummy ${ac_tool_prefix}lipo; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006595$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006596if ${ac_cv_prog_LIPO+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006597 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006598else
6599 if test -n "$LIPO"; then
6600 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6601else
6602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6603for as_dir in $PATH
6604do
6605 IFS=$as_save_IFS
6606 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006607 for ac_exec_ext in '' $ac_executable_extensions; do
6608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006609 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
Lev Walkinaef10c32014-01-14 01:47:25 -08006610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006611 break 2
6612 fi
6613done
Lev Walkinaef10c32014-01-14 01:47:25 -08006614 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006615IFS=$as_save_IFS
6616
6617fi
6618fi
6619LIPO=$ac_cv_prog_LIPO
6620if test -n "$LIPO"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006622$as_echo "$LIPO" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006623else
Lev Walkinaef10c32014-01-14 01:47:25 -08006624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006625$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006626fi
6627
6628
6629fi
6630if test -z "$ac_cv_prog_LIPO"; then
6631 ac_ct_LIPO=$LIPO
6632 # Extract the first word of "lipo", so it can be a program name with args.
6633set dummy lipo; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006635$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006636if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006637 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006638else
6639 if test -n "$ac_ct_LIPO"; then
6640 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6641else
6642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643for as_dir in $PATH
6644do
6645 IFS=$as_save_IFS
6646 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006647 for ac_exec_ext in '' $ac_executable_extensions; do
6648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006649 ac_cv_prog_ac_ct_LIPO="lipo"
Lev Walkinaef10c32014-01-14 01:47:25 -08006650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006651 break 2
6652 fi
6653done
Lev Walkinaef10c32014-01-14 01:47:25 -08006654 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006655IFS=$as_save_IFS
6656
6657fi
6658fi
6659ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6660if test -n "$ac_ct_LIPO"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006662$as_echo "$ac_ct_LIPO" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006663else
Lev Walkinaef10c32014-01-14 01:47:25 -08006664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006665$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006666fi
6667
6668 if test "x$ac_ct_LIPO" = x; then
6669 LIPO=":"
6670 else
6671 case $cross_compiling:$ac_tool_warned in
6672yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08006673{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006674$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07006675ac_tool_warned=yes ;;
6676esac
6677 LIPO=$ac_ct_LIPO
6678 fi
6679else
6680 LIPO="$ac_cv_prog_LIPO"
6681fi
6682
6683 if test -n "$ac_tool_prefix"; then
6684 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6685set dummy ${ac_tool_prefix}otool; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006687$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006688if ${ac_cv_prog_OTOOL+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006689 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006690else
6691 if test -n "$OTOOL"; then
6692 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6693else
6694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695for as_dir in $PATH
6696do
6697 IFS=$as_save_IFS
6698 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006699 for ac_exec_ext in '' $ac_executable_extensions; do
6700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006701 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
Lev Walkinaef10c32014-01-14 01:47:25 -08006702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006703 break 2
6704 fi
6705done
Lev Walkinaef10c32014-01-14 01:47:25 -08006706 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006707IFS=$as_save_IFS
6708
6709fi
6710fi
6711OTOOL=$ac_cv_prog_OTOOL
6712if test -n "$OTOOL"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006714$as_echo "$OTOOL" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006715else
Lev Walkinaef10c32014-01-14 01:47:25 -08006716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006717$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006718fi
6719
6720
6721fi
6722if test -z "$ac_cv_prog_OTOOL"; then
6723 ac_ct_OTOOL=$OTOOL
6724 # Extract the first word of "otool", so it can be a program name with args.
6725set dummy otool; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006727$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006728if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006729 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006730else
6731 if test -n "$ac_ct_OTOOL"; then
6732 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6733else
6734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735for as_dir in $PATH
6736do
6737 IFS=$as_save_IFS
6738 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006741 ac_cv_prog_ac_ct_OTOOL="otool"
Lev Walkinaef10c32014-01-14 01:47:25 -08006742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006743 break 2
6744 fi
6745done
Lev Walkinaef10c32014-01-14 01:47:25 -08006746 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006747IFS=$as_save_IFS
6748
6749fi
6750fi
6751ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6752if test -n "$ac_ct_OTOOL"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006754$as_echo "$ac_ct_OTOOL" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006755else
Lev Walkinaef10c32014-01-14 01:47:25 -08006756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006757$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006758fi
6759
6760 if test "x$ac_ct_OTOOL" = x; then
6761 OTOOL=":"
6762 else
6763 case $cross_compiling:$ac_tool_warned in
6764yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08006765{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07006767ac_tool_warned=yes ;;
6768esac
6769 OTOOL=$ac_ct_OTOOL
6770 fi
6771else
6772 OTOOL="$ac_cv_prog_OTOOL"
6773fi
6774
6775 if test -n "$ac_tool_prefix"; then
6776 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6777set dummy ${ac_tool_prefix}otool64; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006779$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006780if ${ac_cv_prog_OTOOL64+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006781 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006782else
6783 if test -n "$OTOOL64"; then
6784 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6785else
6786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6787for as_dir in $PATH
6788do
6789 IFS=$as_save_IFS
6790 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006791 for ac_exec_ext in '' $ac_executable_extensions; do
6792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006793 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
Lev Walkinaef10c32014-01-14 01:47:25 -08006794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006795 break 2
6796 fi
6797done
Lev Walkinaef10c32014-01-14 01:47:25 -08006798 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006799IFS=$as_save_IFS
6800
6801fi
6802fi
6803OTOOL64=$ac_cv_prog_OTOOL64
6804if test -n "$OTOOL64"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006806$as_echo "$OTOOL64" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006807else
Lev Walkinaef10c32014-01-14 01:47:25 -08006808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006809$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006810fi
6811
6812
6813fi
6814if test -z "$ac_cv_prog_OTOOL64"; then
6815 ac_ct_OTOOL64=$OTOOL64
6816 # Extract the first word of "otool64", so it can be a program name with args.
6817set dummy otool64; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -08006818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006819$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006820if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006821 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006822else
6823 if test -n "$ac_ct_OTOOL64"; then
6824 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6825else
6826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827for as_dir in $PATH
6828do
6829 IFS=$as_save_IFS
6830 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -08006831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07006833 ac_cv_prog_ac_ct_OTOOL64="otool64"
Lev Walkinaef10c32014-01-14 01:47:25 -08006834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07006835 break 2
6836 fi
6837done
Lev Walkinaef10c32014-01-14 01:47:25 -08006838 done
Lev Walkin4da95cf2010-10-16 02:46:32 -07006839IFS=$as_save_IFS
6840
6841fi
6842fi
6843ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6844if test -n "$ac_ct_OTOOL64"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08006845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006846$as_echo "$ac_ct_OTOOL64" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006847else
Lev Walkinaef10c32014-01-14 01:47:25 -08006848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006849$as_echo "no" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006850fi
6851
6852 if test "x$ac_ct_OTOOL64" = x; then
6853 OTOOL64=":"
6854 else
6855 case $cross_compiling:$ac_tool_warned in
6856yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -08006857{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006858$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin4da95cf2010-10-16 02:46:32 -07006859ac_tool_warned=yes ;;
6860esac
6861 OTOOL64=$ac_ct_OTOOL64
6862 fi
6863else
6864 OTOOL64="$ac_cv_prog_OTOOL64"
6865fi
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
Lev Walkinaef10c32014-01-14 01:47:25 -08006893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006894$as_echo_n "checking for -single_module linker flag... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006895if ${lt_cv_apple_cc_single_mod+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006896 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006897else
6898 lt_cv_apple_cc_single_mod=no
6899 if test -z "${LT_MULTI_MODULE}"; then
6900 # By default we will add the -single_module flag. You can override
6901 # by either setting the environment variable LT_MULTI_MODULE
6902 # non-empty at configure time, or by adding -multi_module to the
6903 # link flags.
6904 rm -rf libconftest.dylib*
6905 echo "int foo(void){return 1;}" > conftest.c
6906 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6907-dynamiclib -Wl,-single_module conftest.c" >&5
6908 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6909 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6910 _lt_result=$?
6911 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6912 lt_cv_apple_cc_single_mod=yes
6913 else
6914 cat conftest.err >&5
6915 fi
6916 rm -rf libconftest.dylib*
6917 rm -f conftest.*
6918 fi
6919fi
Lev Walkinaef10c32014-01-14 01:47:25 -08006920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006921$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006923$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006924if ${lt_cv_ld_exported_symbols_list+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07006925 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07006926else
6927 lt_cv_ld_exported_symbols_list=no
6928 save_LDFLAGS=$LDFLAGS
6929 echo "_main" > conftest.sym
6930 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
Lev Walkinaef10c32014-01-14 01:47:25 -08006931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin4da95cf2010-10-16 02:46:32 -07006932/* end confdefs.h. */
6933
6934int
6935main ()
6936{
6937
6938 ;
6939 return 0;
6940}
6941_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08006942if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin4da95cf2010-10-16 02:46:32 -07006943 lt_cv_ld_exported_symbols_list=yes
6944else
Lev Walkinaef10c32014-01-14 01:47:25 -08006945 lt_cv_ld_exported_symbols_list=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07006946fi
Lev Walkinaef10c32014-01-14 01:47:25 -08006947rm -f core conftest.err conftest.$ac_objext \
6948 conftest$ac_exeext conftest.$ac_ext
Lev Walkin4da95cf2010-10-16 02:46:32 -07006949 LDFLAGS="$save_LDFLAGS"
6950
6951fi
Lev Walkinaef10c32014-01-14 01:47:25 -08006952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07006953$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08006954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6955$as_echo_n "checking for -force_load linker flag... " >&6; }
6956if ${lt_cv_ld_force_load+:} false; then :
6957 $as_echo_n "(cached) " >&6
6958else
6959 lt_cv_ld_force_load=no
6960 cat > conftest.c << _LT_EOF
6961int forced_loaded() { return 2;}
6962_LT_EOF
6963 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6964 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6965 echo "$AR cru libconftest.a conftest.o" >&5
6966 $AR cru libconftest.a conftest.o 2>&5
6967 echo "$RANLIB libconftest.a" >&5
6968 $RANLIB libconftest.a 2>&5
6969 cat > conftest.c << _LT_EOF
6970int main() { return 0;}
6971_LT_EOF
6972 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6973 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6974 _lt_result=$?
6975 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6976 lt_cv_ld_force_load=yes
6977 else
6978 cat conftest.err >&5
6979 fi
6980 rm -f conftest.err libconftest.a conftest conftest.c
6981 rm -rf conftest.dSYM
6982
6983fi
6984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6985$as_echo "$lt_cv_ld_force_load" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07006986 case $host_os in
6987 rhapsody* | darwin1.[012])
6988 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6989 darwin1.*)
6990 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6991 darwin*) # darwin 5.x on
6992 # if running on 10.5 or later, the deployment target defaults
6993 # to the OS version, if on x86, and 10.4, the deployment
6994 # target defaults to 10.4. Don't you love it?
6995 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6996 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6997 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6998 10.[012]*)
6999 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7000 10.*)
7001 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7002 esac
7003 ;;
7004 esac
7005 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7006 _lt_dar_single_mod='$single_module'
7007 fi
7008 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7009 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7010 else
7011 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7012 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007013 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07007014 _lt_dsymutil='~$DSYMUTIL $lib || :'
7015 else
7016 _lt_dsymutil=
7017 fi
7018 ;;
7019 esac
Lev Walkinf15320b2004-06-03 03:38:44 +00007020
Lev Walkin8e8b5482004-06-17 23:42:48 +00007021ac_ext=c
7022ac_cpp='$CPP $CPPFLAGS'
7023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7025ac_compiler_gnu=$ac_cv_c_compiler_gnu
Lev Walkinaef10c32014-01-14 01:47:25 -08007026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007027$as_echo_n "checking how to run the C preprocessor... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007028# On Suns, sometimes $CPP names a directory.
7029if test -n "$CPP" && test -d "$CPP"; then
7030 CPP=
Lev Walkinf15320b2004-06-03 03:38:44 +00007031fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00007032if test -z "$CPP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08007033 if ${ac_cv_prog_CPP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07007034 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007035else
7036 # Double quotes because CPP needs to be expanded
7037 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7038 do
7039 ac_preproc_ok=false
7040for ac_c_preproc_warn_flag in '' yes
7041do
7042 # Use a header file that comes with gcc, so configuring glibc
7043 # with a fresh cross-compiler works.
7044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7045 # <limits.h> exists even on freestanding compilers.
7046 # On the NeXT, cc -E runs the code through the compiler's parser,
7047 # not just through cpp. "Syntax error" is here to catch this case.
Lev Walkinaef10c32014-01-14 01:47:25 -08007048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007049/* end confdefs.h. */
7050#ifdef __STDC__
7051# include <limits.h>
7052#else
7053# include <assert.h>
7054#endif
7055 Syntax error
7056_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08007057if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007058
Lev Walkinaef10c32014-01-14 01:47:25 -08007059else
Lev Walkin8e8b5482004-06-17 23:42:48 +00007060 # Broken: fails on valid input.
7061continue
7062fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007063rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007064
Lev Walkin27fd0b62007-08-27 23:57:45 +00007065 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkin8e8b5482004-06-17 23:42:48 +00007066 # can be detected and how.
Lev Walkinaef10c32014-01-14 01:47:25 -08007067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007068/* end confdefs.h. */
7069#include <ac_nonexistent.h>
7070_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08007071if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007072 # Broken: success on invalid input.
7073continue
7074else
Lev Walkin8e8b5482004-06-17 23:42:48 +00007075 # Passes both tests.
7076ac_preproc_ok=:
7077break
7078fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007079rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007080
7081done
7082# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Lev Walkinaef10c32014-01-14 01:47:25 -08007083rm -f conftest.i conftest.err conftest.$ac_ext
7084if $ac_preproc_ok; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007085 break
7086fi
7087
7088 done
7089 ac_cv_prog_CPP=$CPP
7090
7091fi
7092 CPP=$ac_cv_prog_CPP
7093else
7094 ac_cv_prog_CPP=$CPP
7095fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007097$as_echo "$CPP" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007098ac_preproc_ok=false
7099for ac_c_preproc_warn_flag in '' yes
7100do
7101 # Use a header file that comes with gcc, so configuring glibc
7102 # with a fresh cross-compiler works.
7103 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7104 # <limits.h> exists even on freestanding compilers.
7105 # On the NeXT, cc -E runs the code through the compiler's parser,
7106 # not just through cpp. "Syntax error" is here to catch this case.
Lev Walkinaef10c32014-01-14 01:47:25 -08007107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007108/* end confdefs.h. */
7109#ifdef __STDC__
7110# include <limits.h>
7111#else
7112# include <assert.h>
7113#endif
7114 Syntax error
7115_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08007116if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007117
Lev Walkinaef10c32014-01-14 01:47:25 -08007118else
Lev Walkin8e8b5482004-06-17 23:42:48 +00007119 # Broken: fails on valid input.
7120continue
7121fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007122rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007123
Lev Walkin27fd0b62007-08-27 23:57:45 +00007124 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkin8e8b5482004-06-17 23:42:48 +00007125 # can be detected and how.
Lev Walkinaef10c32014-01-14 01:47:25 -08007126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007127/* end confdefs.h. */
7128#include <ac_nonexistent.h>
7129_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08007130if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007131 # Broken: success on invalid input.
7132continue
7133else
Lev Walkin8e8b5482004-06-17 23:42:48 +00007134 # Passes both tests.
7135ac_preproc_ok=:
7136break
7137fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007138rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007139
7140done
7141# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Lev Walkinaef10c32014-01-14 01:47:25 -08007142rm -f conftest.i conftest.err conftest.$ac_ext
7143if $ac_preproc_ok; then :
7144
Lev Walkin8e8b5482004-06-17 23:42:48 +00007145else
Lev Walkinaef10c32014-01-14 01:47:25 -08007146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007147$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -08007148as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7149See \`config.log' for more details" "$LINENO" 5; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007150fi
7151
7152ac_ext=c
7153ac_cpp='$CPP $CPPFLAGS'
7154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7156ac_compiler_gnu=$ac_cv_c_compiler_gnu
7157
7158
Lev Walkinaef10c32014-01-14 01:47:25 -08007159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007160$as_echo_n "checking for ANSI C header files... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08007161if ${ac_cv_header_stdc+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07007162 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007163else
Lev Walkinaef10c32014-01-14 01:47:25 -08007164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007165/* end confdefs.h. */
7166#include <stdlib.h>
7167#include <stdarg.h>
7168#include <string.h>
7169#include <float.h>
7170
7171int
7172main ()
7173{
7174
7175 ;
7176 return 0;
7177}
7178_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08007179if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007180 ac_cv_header_stdc=yes
7181else
Lev Walkinaef10c32014-01-14 01:47:25 -08007182 ac_cv_header_stdc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007183fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00007184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007185
7186if test $ac_cv_header_stdc = yes; then
7187 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Lev Walkinaef10c32014-01-14 01:47:25 -08007188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007189/* end confdefs.h. */
7190#include <string.h>
7191
7192_ACEOF
7193if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Lev Walkinaef10c32014-01-14 01:47:25 -08007194 $EGREP "memchr" >/dev/null 2>&1; then :
7195
Lev Walkin8e8b5482004-06-17 23:42:48 +00007196else
7197 ac_cv_header_stdc=no
7198fi
Lev Walkinb3751942012-09-02 19:36:47 -07007199rm -f conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007200
7201fi
7202
7203if test $ac_cv_header_stdc = yes; then
7204 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Lev Walkinaef10c32014-01-14 01:47:25 -08007205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007206/* end confdefs.h. */
7207#include <stdlib.h>
7208
7209_ACEOF
7210if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Lev Walkinaef10c32014-01-14 01:47:25 -08007211 $EGREP "free" >/dev/null 2>&1; then :
7212
Lev Walkin8e8b5482004-06-17 23:42:48 +00007213else
7214 ac_cv_header_stdc=no
7215fi
Lev Walkinb3751942012-09-02 19:36:47 -07007216rm -f conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007217
7218fi
7219
7220if test $ac_cv_header_stdc = yes; then
7221 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Lev Walkinaef10c32014-01-14 01:47:25 -08007222 if test "$cross_compiling" = yes; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007223 :
7224else
Lev Walkinaef10c32014-01-14 01:47:25 -08007225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007226/* end confdefs.h. */
7227#include <ctype.h>
Lev Walkin27fd0b62007-08-27 23:57:45 +00007228#include <stdlib.h>
Lev Walkin8e8b5482004-06-17 23:42:48 +00007229#if ((' ' & 0x0FF) == 0x020)
7230# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7231# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7232#else
7233# define ISLOWER(c) \
7234 (('a' <= (c) && (c) <= 'i') \
7235 || ('j' <= (c) && (c) <= 'r') \
7236 || ('s' <= (c) && (c) <= 'z'))
7237# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7238#endif
7239
7240#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7241int
7242main ()
7243{
7244 int i;
7245 for (i = 0; i < 256; i++)
7246 if (XOR (islower (i), ISLOWER (i))
7247 || toupper (i) != TOUPPER (i))
Lev Walkin27fd0b62007-08-27 23:57:45 +00007248 return 2;
7249 return 0;
Lev Walkin8e8b5482004-06-17 23:42:48 +00007250}
7251_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08007252if ac_fn_c_try_run "$LINENO"; then :
7253
Lev Walkin8e8b5482004-06-17 23:42:48 +00007254else
Lev Walkinaef10c32014-01-14 01:47:25 -08007255 ac_cv_header_stdc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007256fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007257rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7258 conftest.$ac_objext conftest.beam conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +00007259fi
7260
Lev Walkin8e8b5482004-06-17 23:42:48 +00007261fi
7262fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007264$as_echo "$ac_cv_header_stdc" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007265if test $ac_cv_header_stdc = yes; then
7266
Lev Walkinaef10c32014-01-14 01:47:25 -08007267$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Lev Walkin8e8b5482004-06-17 23:42:48 +00007268
7269fi
7270
7271# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Lev Walkin8e8b5482004-06-17 23:42:48 +00007272for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7273 inttypes.h stdint.h unistd.h
Lev Walkinaef10c32014-01-14 01:47:25 -08007274do :
7275 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7276ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7277"
7278if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007279 cat >>confdefs.h <<_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -07007280#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Lev Walkin8e8b5482004-06-17 23:42:48 +00007281_ACEOF
7282
7283fi
7284
7285done
7286
7287
Lev Walkin8e8b5482004-06-17 23:42:48 +00007288for ac_header in dlfcn.h
Lev Walkinaef10c32014-01-14 01:47:25 -08007289do :
7290 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7291"
7292if test "x$ac_cv_header_dlfcn_h" = xyes; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00007293 cat >>confdefs.h <<_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08007294#define HAVE_DLFCN_H 1
Lev Walkin8e8b5482004-06-17 23:42:48 +00007295_ACEOF
7296
7297fi
7298
7299done
7300
Lev Walkin8e8b5482004-06-17 23:42:48 +00007301
Lev Walkin8e8b5482004-06-17 23:42:48 +00007302
Lev Walkinaef10c32014-01-14 01:47:25 -08007303
7304
Lev Walkin4da95cf2010-10-16 02:46:32 -07007305# Set options
Lev Walkin8e8b5482004-06-17 23:42:48 +00007306
Lev Walkin27fd0b62007-08-27 23:57:45 +00007307
Lev Walkin8e8b5482004-06-17 23:42:48 +00007308
Lev Walkin4da95cf2010-10-16 02:46:32 -07007309 enable_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007310
Lev Walkin8e8b5482004-06-17 23:42:48 +00007311
Lev Walkin4da95cf2010-10-16 02:46:32 -07007312 enable_win32_dll=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00007313
Lev Walkin8e8b5482004-06-17 23:42:48 +00007314
Lev Walkin4da95cf2010-10-16 02:46:32 -07007315 # Check whether --enable-shared was given.
Lev Walkinaef10c32014-01-14 01:47:25 -08007316if test "${enable_shared+set}" = set; then :
Lev Walkin4da95cf2010-10-16 02:46:32 -07007317 enableval=$enable_shared; p=${PACKAGE-default}
7318 case $enableval in
7319 yes) enable_shared=yes ;;
7320 no) enable_shared=no ;;
7321 *)
7322 enable_shared=no
7323 # Look at the argument we got. We use all the common list separators.
7324 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7325 for pkg in $enableval; do
7326 IFS="$lt_save_ifs"
7327 if test "X$pkg" = "X$p"; then
7328 enable_shared=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00007329 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07007330 done
7331 IFS="$lt_save_ifs"
7332 ;;
7333 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00007334else
Lev Walkin4da95cf2010-10-16 02:46:32 -07007335 enable_shared=yes
7336fi
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346 # Check whether --enable-static was given.
Lev Walkinaef10c32014-01-14 01:47:25 -08007347if test "${enable_static+set}" = set; then :
Lev Walkin4da95cf2010-10-16 02:46:32 -07007348 enableval=$enable_static; p=${PACKAGE-default}
7349 case $enableval in
7350 yes) enable_static=yes ;;
7351 no) enable_static=no ;;
7352 *)
7353 enable_static=no
7354 # Look at the argument we got. We use all the common list separators.
7355 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7356 for pkg in $enableval; do
7357 IFS="$lt_save_ifs"
7358 if test "X$pkg" = "X$p"; then
7359 enable_static=yes
7360 fi
7361 done
7362 IFS="$lt_save_ifs"
7363 ;;
7364 esac
7365else
7366 enable_static=yes
7367fi
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378# Check whether --with-pic was given.
Lev Walkinaef10c32014-01-14 01:47:25 -08007379if test "${with_pic+set}" = set; then :
Lev Walkin4da95cf2010-10-16 02:46:32 -07007380 withval=$with_pic; pic_mode="$withval"
7381else
7382 pic_mode=default
7383fi
7384
7385
7386test -z "$pic_mode" && pic_mode=default
7387
7388
7389
7390
7391
7392
7393
7394 # Check whether --enable-fast-install was given.
Lev Walkinaef10c32014-01-14 01:47:25 -08007395if test "${enable_fast_install+set}" = set; then :
Lev Walkin4da95cf2010-10-16 02:46:32 -07007396 enableval=$enable_fast_install; p=${PACKAGE-default}
7397 case $enableval in
7398 yes) enable_fast_install=yes ;;
7399 no) enable_fast_install=no ;;
7400 *)
7401 enable_fast_install=no
7402 # Look at the argument we got. We use all the common list separators.
7403 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7404 for pkg in $enableval; do
7405 IFS="$lt_save_ifs"
7406 if test "X$pkg" = "X$p"; then
7407 enable_fast_install=yes
7408 fi
7409 done
7410 IFS="$lt_save_ifs"
7411 ;;
7412 esac
7413else
7414 enable_fast_install=yes
7415fi
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427# This can be used to rebuild libtool when needed
7428LIBTOOL_DEPS="$ltmain"
7429
7430# Always use our own libtool.
7431LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
Lev Walkinaef10c32014-01-14 01:47:25 -08007457
Lev Walkin4da95cf2010-10-16 02:46:32 -07007458test -z "$LN_S" && LN_S="ln -s"
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473if test -n "${ZSH_VERSION+set}" ; then
7474 setopt NO_GLOB_SUBST
Lev Walkin8e8b5482004-06-17 23:42:48 +00007475fi
7476
Lev Walkinaef10c32014-01-14 01:47:25 -08007477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007478$as_echo_n "checking for objdir... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08007479if ${lt_cv_objdir+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07007480 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007481else
7482 rm -f .libs 2>/dev/null
7483mkdir .libs 2>/dev/null
7484if test -d .libs; then
7485 lt_cv_objdir=.libs
7486else
7487 # MS-DOS does not allow filenames that begin with a dot.
7488 lt_cv_objdir=_libs
7489fi
7490rmdir .libs 2>/dev/null
7491fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007493$as_echo "$lt_cv_objdir" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007494objdir=$lt_cv_objdir
7495
7496
7497
7498
7499
Lev Walkin4da95cf2010-10-16 02:46:32 -07007500cat >>confdefs.h <<_ACEOF
7501#define LT_OBJDIR "$lt_cv_objdir/"
7502_ACEOF
7503
7504
7505
7506
Lev Walkin8e8b5482004-06-17 23:42:48 +00007507case $host_os in
7508aix3*)
7509 # AIX sometimes has problems with the GCC collect2 program. For some
7510 # reason, if we set the COLLECT_NAMES environment variable, the problems
7511 # vanish in a puff of smoke.
7512 if test "X${COLLECT_NAMES+set}" != Xset; then
7513 COLLECT_NAMES=
7514 export COLLECT_NAMES
7515 fi
7516 ;;
7517esac
7518
Lev Walkin8e8b5482004-06-17 23:42:48 +00007519# Global variables:
Lev Walkin4da95cf2010-10-16 02:46:32 -07007520ofile=libtool
Lev Walkin8e8b5482004-06-17 23:42:48 +00007521can_build_shared=yes
7522
Lev Walkinfbf1d282007-12-03 14:58:39 +00007523# All known linkers require a `.a' archive for static linking (except MSVC,
Lev Walkin8e8b5482004-06-17 23:42:48 +00007524# which needs '.lib').
7525libext=a
Lev Walkin4da95cf2010-10-16 02:46:32 -07007526
Lev Walkin8e8b5482004-06-17 23:42:48 +00007527with_gnu_ld="$lt_cv_prog_gnu_ld"
7528
Lev Walkin8e8b5482004-06-17 23:42:48 +00007529old_CC="$CC"
7530old_CFLAGS="$CFLAGS"
7531
7532# Set sane defaults for various variables
Lev Walkin8e8b5482004-06-17 23:42:48 +00007533test -z "$CC" && CC=cc
7534test -z "$LTCC" && LTCC=$CC
Lev Walkinfbf1d282007-12-03 14:58:39 +00007535test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
Lev Walkin8e8b5482004-06-17 23:42:48 +00007536test -z "$LD" && LD=ld
Lev Walkin8e8b5482004-06-17 23:42:48 +00007537test -z "$ac_objext" && ac_objext=o
7538
Lev Walkinfbf1d282007-12-03 14:58:39 +00007539for cc_temp in $compiler""; do
7540 case $cc_temp in
7541 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7542 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7543 \-*) ;;
7544 *) break;;
7545 esac
7546done
Lev Walkinaef10c32014-01-14 01:47:25 -08007547cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
Lev Walkinfbf1d282007-12-03 14:58:39 +00007548
7549
Lev Walkin8e8b5482004-06-17 23:42:48 +00007550# Only perform the check for file, if the check method requires it
Lev Walkin4da95cf2010-10-16 02:46:32 -07007551test -z "$MAGIC_CMD" && MAGIC_CMD=file
Lev Walkin8e8b5482004-06-17 23:42:48 +00007552case $deplibs_check_method in
7553file_magic*)
7554 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
Lev Walkinaef10c32014-01-14 01:47:25 -08007555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007556$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08007557if ${lt_cv_path_MAGIC_CMD+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07007558 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007559else
7560 case $MAGIC_CMD in
7561[\\/*] | ?:[\\/]*)
7562 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7563 ;;
7564*)
7565 lt_save_MAGIC_CMD="$MAGIC_CMD"
7566 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7567 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7568 for ac_dir in $ac_dummy; do
7569 IFS="$lt_save_ifs"
7570 test -z "$ac_dir" && ac_dir=.
7571 if test -f $ac_dir/${ac_tool_prefix}file; then
7572 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7573 if test -n "$file_magic_test_file"; then
7574 case $deplibs_check_method in
7575 "file_magic "*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007576 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Lev Walkin8e8b5482004-06-17 23:42:48 +00007577 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7578 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7579 $EGREP "$file_magic_regex" > /dev/null; then
7580 :
7581 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07007582 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00007583
7584*** Warning: the command libtool uses to detect shared libraries,
7585*** $file_magic_cmd, produces output that libtool cannot recognize.
7586*** The result is that libtool may fail to recognize shared libraries
7587*** as such. This will affect the creation of libtool libraries that
7588*** depend on shared libraries, but programs linked with such libtool
7589*** libraries will work regardless of this problem. Nevertheless, you
7590*** may want to report the problem to your system manager and/or to
7591*** bug-libtool@gnu.org
7592
Lev Walkin4da95cf2010-10-16 02:46:32 -07007593_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00007594 fi ;;
7595 esac
7596 fi
7597 break
7598 fi
7599 done
7600 IFS="$lt_save_ifs"
7601 MAGIC_CMD="$lt_save_MAGIC_CMD"
7602 ;;
7603esac
7604fi
7605
7606MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7607if test -n "$MAGIC_CMD"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08007608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007609$as_echo "$MAGIC_CMD" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007610else
Lev Walkinaef10c32014-01-14 01:47:25 -08007611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007612$as_echo "no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007613fi
7614
Lev Walkin4da95cf2010-10-16 02:46:32 -07007615
7616
7617
7618
Lev Walkin8e8b5482004-06-17 23:42:48 +00007619if test -z "$lt_cv_path_MAGIC_CMD"; then
7620 if test -n "$ac_tool_prefix"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08007621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007622$as_echo_n "checking for file... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08007623if ${lt_cv_path_MAGIC_CMD+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07007624 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007625else
7626 case $MAGIC_CMD in
7627[\\/*] | ?:[\\/]*)
7628 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7629 ;;
7630*)
7631 lt_save_MAGIC_CMD="$MAGIC_CMD"
7632 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7633 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7634 for ac_dir in $ac_dummy; do
7635 IFS="$lt_save_ifs"
7636 test -z "$ac_dir" && ac_dir=.
7637 if test -f $ac_dir/file; then
7638 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7639 if test -n "$file_magic_test_file"; then
7640 case $deplibs_check_method in
7641 "file_magic "*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007642 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
Lev Walkin8e8b5482004-06-17 23:42:48 +00007643 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7644 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7645 $EGREP "$file_magic_regex" > /dev/null; then
7646 :
7647 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07007648 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00007649
7650*** Warning: the command libtool uses to detect shared libraries,
7651*** $file_magic_cmd, produces output that libtool cannot recognize.
7652*** The result is that libtool may fail to recognize shared libraries
7653*** as such. This will affect the creation of libtool libraries that
7654*** depend on shared libraries, but programs linked with such libtool
7655*** libraries will work regardless of this problem. Nevertheless, you
7656*** may want to report the problem to your system manager and/or to
7657*** bug-libtool@gnu.org
7658
Lev Walkin4da95cf2010-10-16 02:46:32 -07007659_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00007660 fi ;;
7661 esac
7662 fi
7663 break
7664 fi
7665 done
7666 IFS="$lt_save_ifs"
7667 MAGIC_CMD="$lt_save_MAGIC_CMD"
7668 ;;
7669esac
7670fi
7671
7672MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7673if test -n "$MAGIC_CMD"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08007674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007675$as_echo "$MAGIC_CMD" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007676else
Lev Walkinaef10c32014-01-14 01:47:25 -08007677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007678$as_echo "no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007679fi
7680
Lev Walkin4da95cf2010-10-16 02:46:32 -07007681
Lev Walkin8e8b5482004-06-17 23:42:48 +00007682 else
7683 MAGIC_CMD=:
7684 fi
7685fi
7686
7687 fi
7688 ;;
7689esac
7690
Lev Walkin8e8b5482004-06-17 23:42:48 +00007691# Use C for the default configuration in the libtool script
Lev Walkin4da95cf2010-10-16 02:46:32 -07007692
Lev Walkin8e8b5482004-06-17 23:42:48 +00007693lt_save_CC="$CC"
7694ac_ext=c
7695ac_cpp='$CPP $CPPFLAGS'
7696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7698ac_compiler_gnu=$ac_cv_c_compiler_gnu
7699
7700
7701# Source file extension for C test sources.
7702ac_ext=c
7703
7704# Object file extension for compiled C test sources.
7705objext=o
7706objext=$objext
7707
7708# Code to be used in simple compile tests
Lev Walkin4da95cf2010-10-16 02:46:32 -07007709lt_simple_compile_test_code="int some_variable = 0;"
Lev Walkin8e8b5482004-06-17 23:42:48 +00007710
7711# Code to be used in simple link tests
Lev Walkin4da95cf2010-10-16 02:46:32 -07007712lt_simple_link_test_code='int main(){return(0);}'
7713
7714
7715
7716
7717
Lev Walkin8e8b5482004-06-17 23:42:48 +00007718
7719
7720# If no C compiler was specified, use CC.
7721LTCC=${LTCC-"$CC"}
7722
Lev Walkinfbf1d282007-12-03 14:58:39 +00007723# If no C compiler flags were specified, use CFLAGS.
7724LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7725
Lev Walkin8e8b5482004-06-17 23:42:48 +00007726# Allow CC to be a program name with arguments.
7727compiler=$CC
7728
Lev Walkin4da95cf2010-10-16 02:46:32 -07007729# Save the default compiler, since it gets overwritten when the other
7730# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7731compiler_DEFAULT=$CC
Lev Walkin8e8b5482004-06-17 23:42:48 +00007732
Lev Walkinfbf1d282007-12-03 14:58:39 +00007733# save warnings/boilerplate of simple test code
7734ac_outfile=conftest.$ac_objext
Lev Walkin4da95cf2010-10-16 02:46:32 -07007735echo "$lt_simple_compile_test_code" >conftest.$ac_ext
Lev Walkinfbf1d282007-12-03 14:58:39 +00007736eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7737_lt_compiler_boilerplate=`cat conftest.err`
Lev Walkinaef10c32014-01-14 01:47:25 -08007738$RM conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007739
Lev Walkinfbf1d282007-12-03 14:58:39 +00007740ac_outfile=conftest.$ac_objext
Lev Walkin4da95cf2010-10-16 02:46:32 -07007741echo "$lt_simple_link_test_code" >conftest.$ac_ext
Lev Walkinfbf1d282007-12-03 14:58:39 +00007742eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7743_lt_linker_boilerplate=`cat conftest.err`
Lev Walkin4da95cf2010-10-16 02:46:32 -07007744$RM -r conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007745
7746
Lev Walkine7c4b962010-11-09 03:10:36 -08007747## CAVEAT EMPTOR:
7748## There is no encapsulation within the following macros, do not change
7749## the running order or otherwise move them around unless you know exactly
7750## what you are doing...
Lev Walkin4da95cf2010-10-16 02:46:32 -07007751if test -n "$compiler"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00007752
7753lt_prog_compiler_no_builtin_flag=
7754
7755if test "$GCC" = yes; then
Lev Walkinaef10c32014-01-14 01:47:25 -08007756 case $cc_basename in
7757 nvcc*)
7758 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7759 *)
7760 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7761 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00007762
Lev Walkinaef10c32014-01-14 01:47:25 -08007763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007764$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08007765if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07007766 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00007767else
7768 lt_cv_prog_compiler_rtti_exceptions=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07007769 ac_outfile=conftest.$ac_objext
7770 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00007771 lt_compiler_flag="-fno-rtti -fno-exceptions"
7772 # Insert the option either (1) after the last *FLAGS variable, or
7773 # (2) before a word containing "conftest.", or (3) at the end.
7774 # Note that $ac_compile itself does not contain backslashes and begins
7775 # with a dollar sign (not a hyphen), so the echo should work correctly.
7776 # The option is referenced via a variable to avoid confusing sed.
7777 lt_compile=`echo "$ac_compile" | $SED \
Lev Walkinfbf1d282007-12-03 14:58:39 +00007778 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Lev Walkin8e8b5482004-06-17 23:42:48 +00007779 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7780 -e 's:$: $lt_compiler_flag:'`
Lev Walkinaef10c32014-01-14 01:47:25 -08007781 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007782 (eval "$lt_compile" 2>conftest.err)
7783 ac_status=$?
7784 cat conftest.err >&5
Lev Walkinaef10c32014-01-14 01:47:25 -08007785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00007786 if (exit $ac_status) && test -s "$ac_outfile"; then
7787 # The compiler can only warn and ignore the option if not recognized
Lev Walkinfbf1d282007-12-03 14:58:39 +00007788 # So say no if there are warnings other than the usual output.
Lev Walkinaef10c32014-01-14 01:47:25 -08007789 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Lev Walkinfbf1d282007-12-03 14:58:39 +00007790 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7791 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00007792 lt_cv_prog_compiler_rtti_exceptions=yes
7793 fi
7794 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007795 $RM conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00007796
7797fi
Lev Walkinaef10c32014-01-14 01:47:25 -08007798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07007799$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00007800
7801if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7802 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7803else
7804 :
7805fi
7806
7807fi
7808
Lev Walkin4da95cf2010-10-16 02:46:32 -07007809
7810
7811
7812
7813
7814 lt_prog_compiler_wl=
Lev Walkin8e8b5482004-06-17 23:42:48 +00007815lt_prog_compiler_pic=
7816lt_prog_compiler_static=
7817
Lev Walkin8e8b5482004-06-17 23:42:48 +00007818
7819 if test "$GCC" = yes; then
7820 lt_prog_compiler_wl='-Wl,'
7821 lt_prog_compiler_static='-static'
7822
7823 case $host_os in
7824 aix*)
7825 # All AIX code is PIC.
7826 if test "$host_cpu" = ia64; then
7827 # AIX 5 now supports IA64 processor
7828 lt_prog_compiler_static='-Bstatic'
7829 fi
7830 ;;
7831
7832 amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007833 case $host_cpu in
7834 powerpc)
7835 # see comment about AmigaOS4 .so support
7836 lt_prog_compiler_pic='-fPIC'
7837 ;;
7838 m68k)
7839 # FIXME: we need at least 68020 code to build shared libraries, but
7840 # adding the `-m68020' flag to GCC prevents building anything better,
7841 # like `-m68040'.
7842 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7843 ;;
7844 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00007845 ;;
7846
Lev Walkin4da95cf2010-10-16 02:46:32 -07007847 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007848 # PIC is the default for these OSes.
7849 ;;
7850
Lev Walkinaef10c32014-01-14 01:47:25 -08007851 mingw* | cygwin* | pw32* | os2* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007852 # This hack is so that the source file can tell whether it is being
7853 # built for inclusion in a dll (and should export symbols for example).
Lev Walkin4da95cf2010-10-16 02:46:32 -07007854 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7855 # (--disable-auto-import) libraries
Lev Walkin8e8b5482004-06-17 23:42:48 +00007856 lt_prog_compiler_pic='-DDLL_EXPORT'
7857 ;;
7858
7859 darwin* | rhapsody*)
7860 # PIC is the default on this platform
7861 # Common symbols not allowed in MH_DYLIB files
7862 lt_prog_compiler_pic='-fno-common'
7863 ;;
7864
Lev Walkinaef10c32014-01-14 01:47:25 -08007865 haiku*)
7866 # PIC is the default for Haiku.
7867 # The "-static" flag exists, but is broken.
7868 lt_prog_compiler_static=
7869 ;;
7870
Lev Walkin4da95cf2010-10-16 02:46:32 -07007871 hpux*)
Lev Walkinaef10c32014-01-14 01:47:25 -08007872 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7873 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7874 # sets the default TLS model and affects inlining.
Lev Walkin4da95cf2010-10-16 02:46:32 -07007875 case $host_cpu in
Lev Walkinaef10c32014-01-14 01:47:25 -08007876 hppa*64*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07007877 # +Z the default
7878 ;;
7879 *)
7880 lt_prog_compiler_pic='-fPIC'
7881 ;;
7882 esac
7883 ;;
7884
7885 interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007886 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7887 # Instead, we relocate shared libraries at runtime.
7888 ;;
7889
Lev Walkin8e8b5482004-06-17 23:42:48 +00007890 msdosdjgpp*)
7891 # Just because we use GCC doesn't mean we suddenly get shared libraries
7892 # on systems that don't support them.
7893 lt_prog_compiler_can_build_shared=no
7894 enable_shared=no
7895 ;;
7896
Lev Walkin4da95cf2010-10-16 02:46:32 -07007897 *nto* | *qnx*)
7898 # QNX uses GNU C++, but need to define -shared option too, otherwise
7899 # it will coredump.
7900 lt_prog_compiler_pic='-fPIC -shared'
7901 ;;
7902
Lev Walkin8e8b5482004-06-17 23:42:48 +00007903 sysv4*MP*)
7904 if test -d /usr/nec; then
7905 lt_prog_compiler_pic=-Kconform_pic
7906 fi
7907 ;;
7908
Lev Walkin8e8b5482004-06-17 23:42:48 +00007909 *)
7910 lt_prog_compiler_pic='-fPIC'
7911 ;;
7912 esac
Lev Walkinaef10c32014-01-14 01:47:25 -08007913
7914 case $cc_basename in
7915 nvcc*) # Cuda Compiler Driver 2.2
7916 lt_prog_compiler_wl='-Xlinker '
7917 lt_prog_compiler_pic='-Xcompiler -fPIC'
7918 ;;
7919 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00007920 else
7921 # PORTME Check for flag to pass linker flags through the system compiler.
7922 case $host_os in
7923 aix*)
7924 lt_prog_compiler_wl='-Wl,'
7925 if test "$host_cpu" = ia64; then
7926 # AIX 5 now supports IA64 processor
7927 lt_prog_compiler_static='-Bstatic'
7928 else
7929 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7930 fi
7931 ;;
7932
Lev Walkinaef10c32014-01-14 01:47:25 -08007933 mingw* | cygwin* | pw32* | os2* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007934 # This hack is so that the source file can tell whether it is being
7935 # built for inclusion in a dll (and should export symbols for example).
7936 lt_prog_compiler_pic='-DDLL_EXPORT'
7937 ;;
7938
7939 hpux9* | hpux10* | hpux11*)
7940 lt_prog_compiler_wl='-Wl,'
7941 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7942 # not for PA HP-UX.
Lev Walkinfbf1d282007-12-03 14:58:39 +00007943 case $host_cpu in
Lev Walkin8e8b5482004-06-17 23:42:48 +00007944 hppa*64*|ia64*)
7945 # +Z the default
7946 ;;
7947 *)
7948 lt_prog_compiler_pic='+Z'
7949 ;;
7950 esac
7951 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7952 lt_prog_compiler_static='${wl}-a ${wl}archive'
7953 ;;
7954
7955 irix5* | irix6* | nonstopux*)
7956 lt_prog_compiler_wl='-Wl,'
7957 # PIC (with -KPIC) is the default.
7958 lt_prog_compiler_static='-non_shared'
7959 ;;
7960
Lev Walkinaef10c32014-01-14 01:47:25 -08007961 linux* | k*bsd*-gnu | kopensolaris*-gnu)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007962 case $cc_basename in
Lev Walkinaef10c32014-01-14 01:47:25 -08007963 # old Intel for x86_64 which still supported -KPIC.
7964 ecc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00007965 lt_prog_compiler_wl='-Wl,'
7966 lt_prog_compiler_pic='-KPIC'
7967 lt_prog_compiler_static='-static'
7968 ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08007969 # icc used to be incompatible with GCC.
7970 # ICC 10 doesn't accept -KPIC any more.
7971 icc* | ifort*)
7972 lt_prog_compiler_wl='-Wl,'
7973 lt_prog_compiler_pic='-fPIC'
7974 lt_prog_compiler_static='-static'
7975 ;;
7976 # Lahey Fortran 8.1.
7977 lf95*)
7978 lt_prog_compiler_wl='-Wl,'
7979 lt_prog_compiler_pic='--shared'
7980 lt_prog_compiler_static='--static'
7981 ;;
7982 nagfor*)
7983 # NAG Fortran compiler
7984 lt_prog_compiler_wl='-Wl,-Wl,,'
7985 lt_prog_compiler_pic='-PIC'
7986 lt_prog_compiler_static='-Bstatic'
7987 ;;
7988 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00007989 # Portland Group compilers (*not* the Pentium gcc compiler,
7990 # which looks to be a dead project)
7991 lt_prog_compiler_wl='-Wl,'
7992 lt_prog_compiler_pic='-fpic'
7993 lt_prog_compiler_static='-Bstatic'
7994 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00007995 ccc*)
7996 lt_prog_compiler_wl='-Wl,'
7997 # All Alpha code is PIC.
7998 lt_prog_compiler_static='-non_shared'
7999 ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08008000 xl* | bgxl* | bgf* | mpixl*)
8001 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
Lev Walkin4da95cf2010-10-16 02:46:32 -07008002 lt_prog_compiler_wl='-Wl,'
8003 lt_prog_compiler_pic='-qpic'
8004 lt_prog_compiler_static='-qstaticlink'
8005 ;;
8006 *)
8007 case `$CC -V 2>&1 | sed 5q` in
Lev Walkinaef10c32014-01-14 01:47:25 -08008008 *Sun\ F* | *Sun*Fortran*)
8009 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8010 lt_prog_compiler_pic='-KPIC'
8011 lt_prog_compiler_static='-Bstatic'
8012 lt_prog_compiler_wl=''
8013 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07008014 *Sun\ C*)
8015 # Sun C 5.9
8016 lt_prog_compiler_pic='-KPIC'
8017 lt_prog_compiler_static='-Bstatic'
8018 lt_prog_compiler_wl='-Wl,'
8019 ;;
8020 esac
8021 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008022 esac
8023 ;;
8024
Lev Walkin4da95cf2010-10-16 02:46:32 -07008025 newsos6)
8026 lt_prog_compiler_pic='-KPIC'
8027 lt_prog_compiler_static='-Bstatic'
8028 ;;
8029
8030 *nto* | *qnx*)
8031 # QNX uses GNU C++, but need to define -shared option too, otherwise
8032 # it will coredump.
8033 lt_prog_compiler_pic='-fPIC -shared'
8034 ;;
8035
Lev Walkin8e8b5482004-06-17 23:42:48 +00008036 osf3* | osf4* | osf5*)
8037 lt_prog_compiler_wl='-Wl,'
8038 # All OSF/1 code is PIC.
8039 lt_prog_compiler_static='-non_shared'
8040 ;;
8041
Lev Walkin4da95cf2010-10-16 02:46:32 -07008042 rdos*)
8043 lt_prog_compiler_static='-non_shared'
8044 ;;
8045
Lev Walkin8e8b5482004-06-17 23:42:48 +00008046 solaris*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008047 lt_prog_compiler_pic='-KPIC'
8048 lt_prog_compiler_static='-Bstatic'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008049 case $cc_basename in
Lev Walkinaef10c32014-01-14 01:47:25 -08008050 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00008051 lt_prog_compiler_wl='-Qoption ld ';;
8052 *)
8053 lt_prog_compiler_wl='-Wl,';;
8054 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008055 ;;
8056
8057 sunos4*)
8058 lt_prog_compiler_wl='-Qoption ld '
8059 lt_prog_compiler_pic='-PIC'
8060 lt_prog_compiler_static='-Bstatic'
8061 ;;
8062
Lev Walkinfbf1d282007-12-03 14:58:39 +00008063 sysv4 | sysv4.2uw2* | sysv4.3*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008064 lt_prog_compiler_wl='-Wl,'
8065 lt_prog_compiler_pic='-KPIC'
8066 lt_prog_compiler_static='-Bstatic'
8067 ;;
8068
8069 sysv4*MP*)
8070 if test -d /usr/nec ;then
8071 lt_prog_compiler_pic='-Kconform_pic'
8072 lt_prog_compiler_static='-Bstatic'
8073 fi
8074 ;;
8075
Lev Walkinfbf1d282007-12-03 14:58:39 +00008076 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8077 lt_prog_compiler_wl='-Wl,'
8078 lt_prog_compiler_pic='-KPIC'
8079 lt_prog_compiler_static='-Bstatic'
8080 ;;
8081
8082 unicos*)
8083 lt_prog_compiler_wl='-Wl,'
8084 lt_prog_compiler_can_build_shared=no
8085 ;;
8086
Lev Walkin8e8b5482004-06-17 23:42:48 +00008087 uts4*)
8088 lt_prog_compiler_pic='-pic'
8089 lt_prog_compiler_static='-Bstatic'
8090 ;;
8091
8092 *)
8093 lt_prog_compiler_can_build_shared=no
8094 ;;
8095 esac
8096 fi
8097
Lev Walkinfbf1d282007-12-03 14:58:39 +00008098case $host_os in
Lev Walkin8e8b5482004-06-17 23:42:48 +00008099 # For platforms which do not support PIC, -DPIC is meaningless:
8100 *djgpp*)
8101 lt_prog_compiler_pic=
8102 ;;
8103 *)
8104 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8105 ;;
8106esac
8107
Lev Walkinaef10c32014-01-14 01:47:25 -08008108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8109$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8110if ${lt_cv_prog_compiler_pic+:} false; then :
8111 $as_echo_n "(cached) " >&6
8112else
8113 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8114fi
8115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8116$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8117lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
Lev Walkin4da95cf2010-10-16 02:46:32 -07008118
8119#
8120# Check to make sure the PIC flag actually works.
8121#
8122if test -n "$lt_prog_compiler_pic"; then
Lev Walkinaef10c32014-01-14 01:47:25 -08008123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008124$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08008125if ${lt_cv_prog_compiler_pic_works+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07008126 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07008127else
8128 lt_cv_prog_compiler_pic_works=no
8129 ac_outfile=conftest.$ac_objext
8130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8131 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8132 # Insert the option either (1) after the last *FLAGS variable, or
8133 # (2) before a word containing "conftest.", or (3) at the end.
8134 # Note that $ac_compile itself does not contain backslashes and begins
8135 # with a dollar sign (not a hyphen), so the echo should work correctly.
8136 # The option is referenced via a variable to avoid confusing sed.
8137 lt_compile=`echo "$ac_compile" | $SED \
8138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8140 -e 's:$: $lt_compiler_flag:'`
Lev Walkinaef10c32014-01-14 01:47:25 -08008141 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008142 (eval "$lt_compile" 2>conftest.err)
8143 ac_status=$?
8144 cat conftest.err >&5
Lev Walkinaef10c32014-01-14 01:47:25 -08008145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07008146 if (exit $ac_status) && test -s "$ac_outfile"; then
8147 # The compiler can only warn and ignore the option if not recognized
8148 # So say no if there are warnings other than the usual output.
Lev Walkinaef10c32014-01-14 01:47:25 -08008149 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
Lev Walkin4da95cf2010-10-16 02:46:32 -07008150 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8151 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8152 lt_cv_prog_compiler_pic_works=yes
8153 fi
8154 fi
Lev Walkinaef10c32014-01-14 01:47:25 -08008155 $RM conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07008156
8157fi
Lev Walkinaef10c32014-01-14 01:47:25 -08008158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008159$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07008160
8161if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8162 case $lt_prog_compiler_pic in
8163 "" | " "*) ;;
8164 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8165 esac
8166else
8167 lt_prog_compiler_pic=
8168 lt_prog_compiler_can_build_shared=no
8169fi
8170
8171fi
8172
8173
8174
8175
8176
8177
Lev Walkinaef10c32014-01-14 01:47:25 -08008178
8179
8180
8181
8182
Lev Walkinfbf1d282007-12-03 14:58:39 +00008183#
8184# Check to make sure the static flag actually works.
8185#
8186wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
Lev Walkinaef10c32014-01-14 01:47:25 -08008187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008188$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08008189if ${lt_cv_prog_compiler_static_works+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07008190 $as_echo_n "(cached) " >&6
Lev Walkinfbf1d282007-12-03 14:58:39 +00008191else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008192 lt_cv_prog_compiler_static_works=no
Lev Walkinfbf1d282007-12-03 14:58:39 +00008193 save_LDFLAGS="$LDFLAGS"
8194 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
Lev Walkin4da95cf2010-10-16 02:46:32 -07008195 echo "$lt_simple_link_test_code" > conftest.$ac_ext
Lev Walkinfbf1d282007-12-03 14:58:39 +00008196 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8197 # The linker can only warn and ignore the option if not recognized
8198 # So say no if there are warnings
8199 if test -s conftest.err; then
8200 # Append any errors to the config.log.
8201 cat conftest.err 1>&5
Lev Walkinaef10c32014-01-14 01:47:25 -08008202 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
Lev Walkinfbf1d282007-12-03 14:58:39 +00008203 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8204 if diff conftest.exp conftest.er2 >/dev/null; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07008205 lt_cv_prog_compiler_static_works=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00008206 fi
8207 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008208 lt_cv_prog_compiler_static_works=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00008209 fi
8210 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07008211 $RM -r conftest*
Lev Walkinfbf1d282007-12-03 14:58:39 +00008212 LDFLAGS="$save_LDFLAGS"
8213
8214fi
Lev Walkinaef10c32014-01-14 01:47:25 -08008215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008216$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
Lev Walkinfbf1d282007-12-03 14:58:39 +00008217
Lev Walkin4da95cf2010-10-16 02:46:32 -07008218if test x"$lt_cv_prog_compiler_static_works" = xyes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008219 :
8220else
8221 lt_prog_compiler_static=
8222fi
8223
8224
Lev Walkin4da95cf2010-10-16 02:46:32 -07008225
8226
8227
8228
8229
Lev Walkinaef10c32014-01-14 01:47:25 -08008230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008231$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08008232if ${lt_cv_prog_compiler_c_o+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07008233 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +00008234else
8235 lt_cv_prog_compiler_c_o=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07008236 $RM -r conftest 2>/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +00008237 mkdir conftest
8238 cd conftest
8239 mkdir out
Lev Walkin4da95cf2010-10-16 02:46:32 -07008240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00008241
8242 lt_compiler_flag="-o out/conftest2.$ac_objext"
8243 # Insert the option either (1) after the last *FLAGS variable, or
8244 # (2) before a word containing "conftest.", or (3) at the end.
8245 # Note that $ac_compile itself does not contain backslashes and begins
8246 # with a dollar sign (not a hyphen), so the echo should work correctly.
8247 lt_compile=`echo "$ac_compile" | $SED \
Lev Walkinfbf1d282007-12-03 14:58:39 +00008248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
Lev Walkin8e8b5482004-06-17 23:42:48 +00008249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8250 -e 's:$: $lt_compiler_flag:'`
Lev Walkinaef10c32014-01-14 01:47:25 -08008251 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008252 (eval "$lt_compile" 2>out/conftest.err)
8253 ac_status=$?
8254 cat out/conftest.err >&5
Lev Walkinaef10c32014-01-14 01:47:25 -08008255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00008256 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8257 then
8258 # The compiler can only warn and ignore the option if not recognized
8259 # So say no if there are warnings
Lev Walkinaef10c32014-01-14 01:47:25 -08008260 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Lev Walkinfbf1d282007-12-03 14:58:39 +00008261 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8262 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008263 lt_cv_prog_compiler_c_o=yes
8264 fi
8265 fi
Lev Walkinfbf1d282007-12-03 14:58:39 +00008266 chmod u+w . 2>&5
Lev Walkinaef10c32014-01-14 01:47:25 -08008267 $RM conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00008268 # SGI C++ compiler will create directory out/ii_files/ for
8269 # template instantiation
Lev Walkin4da95cf2010-10-16 02:46:32 -07008270 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8271 $RM out/* && rmdir out
Lev Walkin8e8b5482004-06-17 23:42:48 +00008272 cd ..
Lev Walkin4da95cf2010-10-16 02:46:32 -07008273 $RM -r conftest
Lev Walkinaef10c32014-01-14 01:47:25 -08008274 $RM conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00008275
8276fi
Lev Walkinaef10c32014-01-14 01:47:25 -08008277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008278$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008279
8280
Lev Walkin4da95cf2010-10-16 02:46:32 -07008281
8282
8283
8284
Lev Walkinaef10c32014-01-14 01:47:25 -08008285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008286$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08008287if ${lt_cv_prog_compiler_c_o+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -07008288 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07008289else
8290 lt_cv_prog_compiler_c_o=no
8291 $RM -r conftest 2>/dev/null
8292 mkdir conftest
8293 cd conftest
8294 mkdir out
8295 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8296
8297 lt_compiler_flag="-o out/conftest2.$ac_objext"
8298 # Insert the option either (1) after the last *FLAGS variable, or
8299 # (2) before a word containing "conftest.", or (3) at the end.
8300 # Note that $ac_compile itself does not contain backslashes and begins
8301 # with a dollar sign (not a hyphen), so the echo should work correctly.
8302 lt_compile=`echo "$ac_compile" | $SED \
8303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8305 -e 's:$: $lt_compiler_flag:'`
Lev Walkinaef10c32014-01-14 01:47:25 -08008306 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008307 (eval "$lt_compile" 2>out/conftest.err)
8308 ac_status=$?
8309 cat out/conftest.err >&5
Lev Walkinaef10c32014-01-14 01:47:25 -08008310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07008311 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8312 then
8313 # The compiler can only warn and ignore the option if not recognized
8314 # So say no if there are warnings
Lev Walkinaef10c32014-01-14 01:47:25 -08008315 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
Lev Walkin4da95cf2010-10-16 02:46:32 -07008316 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8317 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8318 lt_cv_prog_compiler_c_o=yes
8319 fi
8320 fi
8321 chmod u+w . 2>&5
Lev Walkinaef10c32014-01-14 01:47:25 -08008322 $RM conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07008323 # SGI C++ compiler will create directory out/ii_files/ for
8324 # template instantiation
8325 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8326 $RM out/* && rmdir out
8327 cd ..
8328 $RM -r conftest
Lev Walkinaef10c32014-01-14 01:47:25 -08008329 $RM conftest*
Lev Walkin4da95cf2010-10-16 02:46:32 -07008330
8331fi
Lev Walkinaef10c32014-01-14 01:47:25 -08008332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008333$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07008334
8335
8336
8337
Lev Walkin8e8b5482004-06-17 23:42:48 +00008338hard_links="nottested"
8339if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8340 # do not overwrite the value of need_locks provided by the user
Lev Walkinaef10c32014-01-14 01:47:25 -08008341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008342$as_echo_n "checking if we can lock with hard links... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008343 hard_links=yes
Lev Walkinaef10c32014-01-14 01:47:25 -08008344 $RM conftest*
Lev Walkin8e8b5482004-06-17 23:42:48 +00008345 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8346 touch conftest.a
8347 ln conftest.a conftest.b 2>&5 || hard_links=no
8348 ln conftest.a conftest.b 2>/dev/null && hard_links=no
Lev Walkinaef10c32014-01-14 01:47:25 -08008349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008350$as_echo "$hard_links" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008351 if test "$hard_links" = no; then
Lev Walkinaef10c32014-01-14 01:47:25 -08008352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008353$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
Lev Walkin8e8b5482004-06-17 23:42:48 +00008354 need_locks=warn
8355 fi
8356else
8357 need_locks=no
8358fi
8359
Lev Walkin4da95cf2010-10-16 02:46:32 -07008360
8361
8362
8363
8364
Lev Walkinaef10c32014-01-14 01:47:25 -08008365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07008366$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00008367
8368 runpath_var=
8369 allow_undefined_flag=
Lev Walkin4da95cf2010-10-16 02:46:32 -07008370 always_export_symbols=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008371 archive_cmds=
8372 archive_expsym_cmds=
Lev Walkin4da95cf2010-10-16 02:46:32 -07008373 compiler_needs_object=no
8374 enable_shared_with_static_runtimes=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008375 export_dynamic_flag_spec=
Lev Walkin4da95cf2010-10-16 02:46:32 -07008376 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8377 hardcode_automatic=no
8378 hardcode_direct=no
8379 hardcode_direct_absolute=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008380 hardcode_libdir_flag_spec=
8381 hardcode_libdir_flag_spec_ld=
8382 hardcode_libdir_separator=
Lev Walkin8e8b5482004-06-17 23:42:48 +00008383 hardcode_minus_L=no
8384 hardcode_shlibpath_var=unsupported
Lev Walkin4da95cf2010-10-16 02:46:32 -07008385 inherit_rpath=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008386 link_all_deplibs=unknown
Lev Walkin8e8b5482004-06-17 23:42:48 +00008387 module_cmds=
8388 module_expsym_cmds=
Lev Walkin4da95cf2010-10-16 02:46:32 -07008389 old_archive_from_new_cmds=
8390 old_archive_from_expsyms_cmds=
8391 thread_safe_flag_spec=
8392 whole_archive_flag_spec=
Lev Walkin8e8b5482004-06-17 23:42:48 +00008393 # include_expsyms should be a list of space-separated symbols to be *always*
8394 # included in the symbol list
8395 include_expsyms=
8396 # exclude_expsyms can be an extended regexp of symbols to exclude
8397 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8398 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8399 # as well as any symbol that contains `d'.
Lev Walkin4da95cf2010-10-16 02:46:32 -07008400 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008401 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8402 # platforms (ab)use it in PIC code, but their linkers get confused if
8403 # the symbol is explicitly referenced. Since portable code cannot
8404 # rely on this symbol name, it's probably fine to never include it in
8405 # preloaded symbol tables.
Lev Walkin4da95cf2010-10-16 02:46:32 -07008406 # Exclude shared library initialization/finalization symbols.
Lev Walkin8e8b5482004-06-17 23:42:48 +00008407 extract_expsyms_cmds=
8408
8409 case $host_os in
Lev Walkinaef10c32014-01-14 01:47:25 -08008410 cygwin* | mingw* | pw32* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008411 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8412 # When not using gcc, we currently assume that we are using
8413 # Microsoft Visual C++.
8414 if test "$GCC" != yes; then
8415 with_gnu_ld=no
8416 fi
8417 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00008418 interix*)
8419 # we just hope/assume this is gcc and not c89 (= MSVC++)
8420 with_gnu_ld=yes
8421 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008422 openbsd*)
8423 with_gnu_ld=no
8424 ;;
8425 esac
8426
8427 ld_shlibs=yes
Lev Walkinaef10c32014-01-14 01:47:25 -08008428
8429 # On some targets, GNU ld is compatible enough with the native linker
8430 # that we're better off using the native interface for both.
8431 lt_use_gnu_ld_interface=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008432 if test "$with_gnu_ld" = yes; then
Lev Walkinaef10c32014-01-14 01:47:25 -08008433 case $host_os in
8434 aix*)
8435 # The AIX port of GNU ld has always aspired to compatibility
8436 # with the native linker. However, as the warning in the GNU ld
8437 # block says, versions before 2.19.5* couldn't really create working
8438 # shared libraries, regardless of the interface used.
8439 case `$LD -v 2>&1` in
8440 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8441 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8442 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8443 *)
8444 lt_use_gnu_ld_interface=yes
8445 ;;
8446 esac
8447 ;;
8448 *)
8449 lt_use_gnu_ld_interface=yes
8450 ;;
8451 esac
8452 fi
8453
8454 if test "$lt_use_gnu_ld_interface" = yes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008455 # If archive_cmds runs LD, not CC, wlarc should be empty
8456 wlarc='${wl}'
8457
Lev Walkinfbf1d282007-12-03 14:58:39 +00008458 # Set some defaults for GNU ld with shared library support. These
8459 # are reset later if shared libraries are not supported. Putting them
8460 # here allows them to be overridden if necessary.
8461 runpath_var=LD_RUN_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -07008462 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008463 export_dynamic_flag_spec='${wl}--export-dynamic'
8464 # ancient GNU ld didn't support --whole-archive et. al.
Lev Walkin4da95cf2010-10-16 02:46:32 -07008465 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8466 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8467 else
8468 whole_archive_flag_spec=
Lev Walkinfbf1d282007-12-03 14:58:39 +00008469 fi
8470 supports_anon_versioning=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07008471 case `$LD -v 2>&1` in
Lev Walkinaef10c32014-01-14 01:47:25 -08008472 *GNU\ gold*) supports_anon_versioning=yes ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00008473 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8474 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8475 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8476 *\ 2.11.*) ;; # other 2.11 versions
8477 *) supports_anon_versioning=yes ;;
8478 esac
8479
Lev Walkin8e8b5482004-06-17 23:42:48 +00008480 # See if GNU ld supports shared libraries.
8481 case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -07008482 aix[3-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008483 # On AIX/PPC, the GNU linker is very broken
8484 if test "$host_cpu" != ia64; then
8485 ld_shlibs=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07008486 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00008487
Lev Walkinaef10c32014-01-14 01:47:25 -08008488*** Warning: the GNU linker, at least up to release 2.19, is reported
Lev Walkin8e8b5482004-06-17 23:42:48 +00008489*** to be unable to reliably create shared libraries on AIX.
8490*** Therefore, libtool is disabling shared libraries support. If you
Lev Walkinaef10c32014-01-14 01:47:25 -08008491*** really care for shared libraries, you may want to install binutils
8492*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8493*** You will then need to restart the configuration process.
Lev Walkin8e8b5482004-06-17 23:42:48 +00008494
Lev Walkin4da95cf2010-10-16 02:46:32 -07008495_LT_EOF
Lev Walkin8e8b5482004-06-17 23:42:48 +00008496 fi
8497 ;;
8498
8499 amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008500 case $host_cpu in
8501 powerpc)
8502 # see comment about AmigaOS4 .so support
8503 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8504 archive_expsym_cmds=''
8505 ;;
8506 m68k)
8507 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)'
8508 hardcode_libdir_flag_spec='-L$libdir'
8509 hardcode_minus_L=yes
8510 ;;
8511 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008512 ;;
8513
8514 beos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008515 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008516 allow_undefined_flag=unsupported
8517 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8518 # support --undefined. This deserves some investigation. FIXME
8519 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8520 else
8521 ld_shlibs=no
8522 fi
8523 ;;
8524
Lev Walkinaef10c32014-01-14 01:47:25 -08008525 cygwin* | mingw* | pw32* | cegcc*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008526 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
Lev Walkin8e8b5482004-06-17 23:42:48 +00008527 # as there is no search path for DLLs.
8528 hardcode_libdir_flag_spec='-L$libdir'
Lev Walkinaef10c32014-01-14 01:47:25 -08008529 export_dynamic_flag_spec='${wl}--export-all-symbols'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008530 allow_undefined_flag=unsupported
8531 always_export_symbols=no
8532 enable_shared_with_static_runtimes=yes
Lev Walkinaef10c32014-01-14 01:47:25 -08008533 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8534 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008535
Lev Walkin4da95cf2010-10-16 02:46:32 -07008536 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008537 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008538 # If the export-symbols file already is a .def file (1st line
8539 # is EXPORTS), use it as is; otherwise, prepend...
8540 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8541 cp $export_symbols $output_objdir/$soname.def;
8542 else
8543 echo EXPORTS > $output_objdir/$soname.def;
8544 cat $export_symbols >> $output_objdir/$soname.def;
8545 fi~
Lev Walkinfbf1d282007-12-03 14:58:39 +00008546 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8547 else
8548 ld_shlibs=no
8549 fi
8550 ;;
8551
Lev Walkinaef10c32014-01-14 01:47:25 -08008552 haiku*)
8553 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8554 link_all_deplibs=yes
8555 ;;
8556
Lev Walkin4da95cf2010-10-16 02:46:32 -07008557 interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00008558 hardcode_direct=no
8559 hardcode_shlibpath_var=no
8560 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8561 export_dynamic_flag_spec='${wl}-E'
8562 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8563 # Instead, shared libraries are loaded at an image base (0x10000000 by
8564 # default) and relocated if they conflict, which is a slow very memory
8565 # consuming and fragmenting process. To avoid this, we pick a random,
8566 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8567 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8568 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8569 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'
8570 ;;
8571
Lev Walkinaef10c32014-01-14 01:47:25 -08008572 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008573 tmp_diet=no
8574 if test "$host_os" = linux-dietlibc; then
8575 case $cc_basename in
8576 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8577 esac
8578 fi
8579 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8580 && test "$tmp_diet" = no
8581 then
Lev Walkinaef10c32014-01-14 01:47:25 -08008582 tmp_addflag=' $pic_flag'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008583 tmp_sharedflag='-shared'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008584 case $cc_basename,$host_cpu in
Lev Walkin4da95cf2010-10-16 02:46:32 -07008585 pgcc*) # Portland Group C compiler
Lev Walkinaef10c32014-01-14 01:47:25 -08008586 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008587 tmp_addflag=' $pic_flag'
8588 ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08008589 pgf77* | pgf90* | pgf95* | pgfortran*)
8590 # Portland Group f77 and f90 compilers
8591 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008592 tmp_addflag=' $pic_flag -Mnomain' ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -07008593 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
Lev Walkinfbf1d282007-12-03 14:58:39 +00008594 tmp_addflag=' -i_dynamic' ;;
8595 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8596 tmp_addflag=' -i_dynamic -nofor_main' ;;
8597 ifc* | ifort*) # Intel Fortran compiler
8598 tmp_addflag=' -nofor_main' ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08008599 lf95*) # Lahey Fortran 8.1
8600 whole_archive_flag_spec=
8601 tmp_sharedflag='--shared' ;;
8602 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008603 tmp_sharedflag='-qmkshrobj'
8604 tmp_addflag= ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08008605 nvcc*) # Cuda Compiler Driver 2.2
8606 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8607 compiler_needs_object=yes
8608 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00008609 esac
Lev Walkin4da95cf2010-10-16 02:46:32 -07008610 case `$CC -V 2>&1 | sed 5q` in
8611 *Sun\ C*) # Sun C 5.9
Lev Walkinaef10c32014-01-14 01:47:25 -08008612 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008613 compiler_needs_object=yes
8614 tmp_sharedflag='-G' ;;
8615 *Sun\ F*) # Sun Fortran 8.3
8616 tmp_sharedflag='-G' ;;
8617 esac
8618 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008619
Lev Walkin4da95cf2010-10-16 02:46:32 -07008620 if test "x$supports_anon_versioning" = xyes; then
8621 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8622 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8623 echo "local: *; };" >> $output_objdir/$libname.ver~
8624 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8625 fi
8626
8627 case $cc_basename in
Lev Walkinaef10c32014-01-14 01:47:25 -08008628 xlf* | bgf* | bgxlf* | mpixlf*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008629 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8630 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8631 hardcode_libdir_flag_spec=
8632 hardcode_libdir_flag_spec_ld='-rpath $libdir'
Lev Walkinaef10c32014-01-14 01:47:25 -08008633 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008634 if test "x$supports_anon_versioning" = xyes; then
8635 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8636 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8637 echo "local: *; };" >> $output_objdir/$libname.ver~
Lev Walkinaef10c32014-01-14 01:47:25 -08008638 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008639 fi
8640 ;;
8641 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008642 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008643 ld_shlibs=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00008644 fi
8645 ;;
8646
8647 netbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008648 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008649 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8650 wlarc=
8651 else
Lev Walkinaef10c32014-01-14 01:47:25 -08008652 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8653 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008654 fi
8655 ;;
8656
Lev Walkinfbf1d282007-12-03 14:58:39 +00008657 solaris*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008658 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008659 ld_shlibs=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07008660 cat <<_LT_EOF 1>&2
Lev Walkin8e8b5482004-06-17 23:42:48 +00008661
8662*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8663*** create shared libraries on Solaris systems. Therefore, libtool
8664*** is disabling shared libraries support. We urge you to upgrade GNU
8665*** binutils to release 2.9.1 or newer. Another option is to modify
8666*** your PATH or compiler configuration so that the native linker is
8667*** used, and then restart.
8668
Lev Walkin4da95cf2010-10-16 02:46:32 -07008669_LT_EOF
8670 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Lev Walkinaef10c32014-01-14 01:47:25 -08008671 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8672 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008673 else
8674 ld_shlibs=no
8675 fi
8676 ;;
8677
Lev Walkinfbf1d282007-12-03 14:58:39 +00008678 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8679 case `$LD -v 2>&1` in
8680 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8681 ld_shlibs=no
8682 cat <<_LT_EOF 1>&2
8683
8684*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8685*** reliably create shared libraries on SCO systems. Therefore, libtool
8686*** is disabling shared libraries support. We urge you to upgrade GNU
8687*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8688*** your PATH or compiler configuration so that the native linker is
8689*** used, and then restart.
8690
8691_LT_EOF
8692 ;;
8693 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008694 # For security reasons, it is highly recommended that you always
8695 # use absolute paths for naming shared libraries, and exclude the
8696 # DT_RUNPATH tag from executables and libraries. But doing so
8697 # requires that you compile everything twice, which is a pain.
8698 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8699 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8700 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8701 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008702 else
8703 ld_shlibs=no
8704 fi
8705 ;;
8706 esac
8707 ;;
8708
Lev Walkin8e8b5482004-06-17 23:42:48 +00008709 sunos4*)
8710 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8711 wlarc=
8712 hardcode_direct=yes
8713 hardcode_shlibpath_var=no
8714 ;;
8715
Lev Walkin8e8b5482004-06-17 23:42:48 +00008716 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008717 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
Lev Walkinaef10c32014-01-14 01:47:25 -08008718 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8719 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008720 else
8721 ld_shlibs=no
8722 fi
8723 ;;
8724 esac
8725
Lev Walkinfbf1d282007-12-03 14:58:39 +00008726 if test "$ld_shlibs" = no; then
8727 runpath_var=
8728 hardcode_libdir_flag_spec=
8729 export_dynamic_flag_spec=
8730 whole_archive_flag_spec=
Lev Walkin8e8b5482004-06-17 23:42:48 +00008731 fi
8732 else
8733 # PORTME fill in a description of your system's linker (not GNU ld)
8734 case $host_os in
8735 aix3*)
8736 allow_undefined_flag=unsupported
8737 always_export_symbols=yes
8738 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'
8739 # Note: this linker hardcodes the directories in LIBPATH if there
8740 # are no directories specified by -L.
8741 hardcode_minus_L=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00008742 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008743 # Neither direct hardcoding nor static linking is supported with a
8744 # broken collect2.
8745 hardcode_direct=unsupported
8746 fi
8747 ;;
8748
Lev Walkin4da95cf2010-10-16 02:46:32 -07008749 aix[4-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008750 if test "$host_cpu" = ia64; then
8751 # On IA64, the linker does run time linking by default, so we don't
8752 # have to do anything special.
8753 aix_use_runtimelinking=no
8754 exp_sym_flag='-Bexport'
8755 no_entry_flag=""
8756 else
8757 # If we're using GNU nm, then we don't want the "-C" option.
8758 # -C means demangle to AIX nm, but means don't demangle with GNU nm
Lev Walkinaef10c32014-01-14 01:47:25 -08008759 # Also, AIX nm treats weak defined symbols like other global
8760 # defined symbols, whereas GNU nm marks them as "W".
Lev Walkin4da95cf2010-10-16 02:46:32 -07008761 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
Lev Walkinaef10c32014-01-14 01:47:25 -08008762 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008763 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008764 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'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008765 fi
8766 aix_use_runtimelinking=no
8767
8768 # Test if we are trying to use run time linking or normal
8769 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8770 # need to do runtime linking.
Lev Walkin4da95cf2010-10-16 02:46:32 -07008771 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008772 for ld_flag in $LDFLAGS; do
Lev Walkin4da95cf2010-10-16 02:46:32 -07008773 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8774 aix_use_runtimelinking=yes
8775 break
8776 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008777 done
Lev Walkinfbf1d282007-12-03 14:58:39 +00008778 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008779 esac
8780
8781 exp_sym_flag='-bexport'
8782 no_entry_flag='-bnoentry'
8783 fi
8784
8785 # When large executables or shared objects are built, AIX ld can
8786 # have problems creating the table of contents. If linking a library
8787 # or program results in "error TOC overflow" add -mminimal-toc to
8788 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8789 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8790
8791 archive_cmds=''
8792 hardcode_direct=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07008793 hardcode_direct_absolute=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00008794 hardcode_libdir_separator=':'
8795 link_all_deplibs=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07008796 file_list_spec='${wl}-f,'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008797
8798 if test "$GCC" = yes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00008799 case $host_os in aix4.[012]|aix4.[012].*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008800 # We only want to do this on AIX 4.2 and lower, the check
8801 # below for broken collect2 doesn't work under 4.3+
8802 collect2name=`${CC} -print-prog-name=collect2`
Lev Walkin4da95cf2010-10-16 02:46:32 -07008803 if test -f "$collect2name" &&
8804 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +00008805 then
Lev Walkin4da95cf2010-10-16 02:46:32 -07008806 # We have reworked collect2
8807 :
Lev Walkin8e8b5482004-06-17 23:42:48 +00008808 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008809 # We have old collect2
8810 hardcode_direct=unsupported
8811 # It fails to find uninstalled libraries when the uninstalled
8812 # path is not listed in the libpath. Setting hardcode_minus_L
8813 # to unsupported forces relinking
8814 hardcode_minus_L=yes
8815 hardcode_libdir_flag_spec='-L$libdir'
8816 hardcode_libdir_separator=
Lev Walkin8e8b5482004-06-17 23:42:48 +00008817 fi
Lev Walkinfbf1d282007-12-03 14:58:39 +00008818 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00008819 esac
8820 shared_flag='-shared'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008821 if test "$aix_use_runtimelinking" = yes; then
8822 shared_flag="$shared_flag "'${wl}-G'
8823 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008824 else
8825 # not using gcc
8826 if test "$host_cpu" = ia64; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07008827 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8828 # chokes on -Wl,-G. The following line is correct:
Lev Walkin8e8b5482004-06-17 23:42:48 +00008829 shared_flag='-G'
8830 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00008831 if test "$aix_use_runtimelinking" = yes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00008832 shared_flag='${wl}-G'
8833 else
8834 shared_flag='${wl}-bM:SRE'
Lev Walkinfbf1d282007-12-03 14:58:39 +00008835 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008836 fi
8837 fi
8838
Lev Walkinaef10c32014-01-14 01:47:25 -08008839 export_dynamic_flag_spec='${wl}-bexpall'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008840 # It seems that -bexpall does not export symbols beginning with
8841 # underscore (_), so it is better to generate a list of symbols to export.
8842 always_export_symbols=yes
8843 if test "$aix_use_runtimelinking" = yes; then
8844 # Warning - without using the other runtime loading flags (-brtl),
8845 # -berok will link without error, but may produce a broken library.
8846 allow_undefined_flag='-berok'
Lev Walkin4da95cf2010-10-16 02:46:32 -07008847 # Determine the default libpath from the value encoded in an
8848 # empty executable.
Lev Walkinaef10c32014-01-14 01:47:25 -08008849 if test "${lt_cv_aix_libpath+set}" = set; then
8850 aix_libpath=$lt_cv_aix_libpath
8851else
8852 if ${lt_cv_aix_libpath_+:} false; then :
8853 $as_echo_n "(cached) " >&6
8854else
8855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00008856/* end confdefs.h. */
8857
8858int
8859main ()
8860{
8861
8862 ;
8863 return 0;
8864}
8865_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08008866if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00008867
Lev Walkinaef10c32014-01-14 01:47:25 -08008868 lt_aix_libpath_sed='
8869 /Import File Strings/,/^$/ {
8870 /^0/ {
8871 s/^0 *\([^ ]*\) *$/\1/
8872 p
8873 }
8874 }'
8875 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8876 # Check for a 64-bit object if we didn't find anything.
8877 if test -z "$lt_cv_aix_libpath_"; then
8878 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8879 fi
Lev Walkin4c776e52010-11-08 02:07:31 -08008880fi
Lev Walkinaef10c32014-01-14 01:47:25 -08008881rm -f core conftest.err conftest.$ac_objext \
8882 conftest$ac_exeext conftest.$ac_ext
8883 if test -z "$lt_cv_aix_libpath_"; then
8884 lt_cv_aix_libpath_="/usr/lib:/lib"
8885 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00008886
Lev Walkin8e8b5482004-06-17 23:42:48 +00008887fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00008888
Lev Walkinaef10c32014-01-14 01:47:25 -08008889 aix_libpath=$lt_cv_aix_libpath_
8890fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07008891
8892 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
Lev Walkinaef10c32014-01-14 01:47:25 -08008893 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
Lev Walkin4da95cf2010-10-16 02:46:32 -07008894 else
Lev Walkin8e8b5482004-06-17 23:42:48 +00008895 if test "$host_cpu" = ia64; then
8896 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8897 allow_undefined_flag="-z nodefs"
Lev Walkinfbf1d282007-12-03 14:58:39 +00008898 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"
Lev Walkin8e8b5482004-06-17 23:42:48 +00008899 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07008900 # Determine the default libpath from the value encoded in an
8901 # empty executable.
Lev Walkinaef10c32014-01-14 01:47:25 -08008902 if test "${lt_cv_aix_libpath+set}" = set; then
8903 aix_libpath=$lt_cv_aix_libpath
8904else
8905 if ${lt_cv_aix_libpath_+:} false; then :
8906 $as_echo_n "(cached) " >&6
8907else
8908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00008909/* end confdefs.h. */
8910
8911int
8912main ()
8913{
8914
8915 ;
8916 return 0;
8917}
8918_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -08008919if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +00008920
Lev Walkinaef10c32014-01-14 01:47:25 -08008921 lt_aix_libpath_sed='
8922 /Import File Strings/,/^$/ {
8923 /^0/ {
8924 s/^0 *\([^ ]*\) *$/\1/
8925 p
8926 }
8927 }'
8928 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8929 # Check for a 64-bit object if we didn't find anything.
8930 if test -z "$lt_cv_aix_libpath_"; then
8931 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8932 fi
Lev Walkin4c776e52010-11-08 02:07:31 -08008933fi
Lev Walkinaef10c32014-01-14 01:47:25 -08008934rm -f core conftest.err conftest.$ac_objext \
8935 conftest$ac_exeext conftest.$ac_ext
8936 if test -z "$lt_cv_aix_libpath_"; then
8937 lt_cv_aix_libpath_="/usr/lib:/lib"
8938 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00008939
Lev Walkin8e8b5482004-06-17 23:42:48 +00008940fi
Lev Walkin27fd0b62007-08-27 23:57:45 +00008941
Lev Walkinaef10c32014-01-14 01:47:25 -08008942 aix_libpath=$lt_cv_aix_libpath_
8943fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008944
8945 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8946 # Warning - without using the other run time loading flags,
8947 # -berok will link without error, but may produce a broken library.
8948 no_undefined_flag=' ${wl}-bernotok'
8949 allow_undefined_flag=' ${wl}-berok'
Lev Walkinaef10c32014-01-14 01:47:25 -08008950 if test "$with_gnu_ld" = yes; then
8951 # We only use this code for GNU lds that support --whole-archive.
8952 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8953 else
8954 # Exported symbols can be pulled into shared objects from archives
8955 whole_archive_flag_spec='$convenience'
8956 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00008957 archive_cmds_need_lc=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00008958 # This is similar to how AIX traditionally builds its shared libraries.
8959 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'
Lev Walkin8e8b5482004-06-17 23:42:48 +00008960 fi
8961 fi
8962 ;;
8963
8964 amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07008965 case $host_cpu in
8966 powerpc)
8967 # see comment about AmigaOS4 .so support
8968 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8969 archive_expsym_cmds=''
8970 ;;
8971 m68k)
8972 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)'
8973 hardcode_libdir_flag_spec='-L$libdir'
8974 hardcode_minus_L=yes
8975 ;;
8976 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00008977 ;;
8978
Lev Walkinfbf1d282007-12-03 14:58:39 +00008979 bsdi[45]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008980 export_dynamic_flag_spec=-rdynamic
8981 ;;
8982
Lev Walkinaef10c32014-01-14 01:47:25 -08008983 cygwin* | mingw* | pw32* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00008984 # When not using gcc, we currently assume that we are using
8985 # Microsoft Visual C++.
8986 # hardcode_libdir_flag_spec is actually meaningless, as there is
8987 # no search path for DLLs.
Lev Walkinaef10c32014-01-14 01:47:25 -08008988 case $cc_basename in
8989 cl*)
8990 # Native MSVC
8991 hardcode_libdir_flag_spec=' '
8992 allow_undefined_flag=unsupported
8993 always_export_symbols=yes
8994 file_list_spec='@'
8995 # Tell ltmain to make .lib files, not .a files.
8996 libext=lib
8997 # Tell ltmain to make .dll files, not .so files.
8998 shrext_cmds=".dll"
8999 # FIXME: Setting linknames here is a bad hack.
9000 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9001 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9002 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9003 else
9004 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9005 fi~
9006 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9007 linknames='
9008 # The linker will not automatically build a static lib if we build a DLL.
9009 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9010 enable_shared_with_static_runtimes=yes
9011 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9012 # Don't use ranlib
9013 old_postinstall_cmds='chmod 644 $oldlib'
9014 postlink_cmds='lt_outputfile="@OUTPUT@"~
9015 lt_tool_outputfile="@TOOL_OUTPUT@"~
9016 case $lt_outputfile in
9017 *.exe|*.EXE) ;;
9018 *)
9019 lt_outputfile="$lt_outputfile.exe"
9020 lt_tool_outputfile="$lt_tool_outputfile.exe"
9021 ;;
9022 esac~
9023 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9024 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9025 $RM "$lt_outputfile.manifest";
9026 fi'
9027 ;;
9028 *)
9029 # Assume MSVC wrapper
9030 hardcode_libdir_flag_spec=' '
9031 allow_undefined_flag=unsupported
9032 # Tell ltmain to make .lib files, not .a files.
9033 libext=lib
9034 # Tell ltmain to make .dll files, not .so files.
9035 shrext_cmds=".dll"
9036 # FIXME: Setting linknames here is a bad hack.
9037 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9038 # The linker will automatically build a .lib file if we build a DLL.
9039 old_archive_from_new_cmds='true'
9040 # FIXME: Should let the user specify the lib program.
9041 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9042 enable_shared_with_static_runtimes=yes
9043 ;;
9044 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00009045 ;;
9046
9047 darwin* | rhapsody*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009048
9049
9050 archive_cmds_need_lc=no
9051 hardcode_direct=no
9052 hardcode_automatic=yes
9053 hardcode_shlibpath_var=unsupported
Lev Walkinaef10c32014-01-14 01:47:25 -08009054 if test "$lt_cv_ld_force_load" = "yes"; then
9055 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9056 else
9057 whole_archive_flag_spec=''
9058 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07009059 link_all_deplibs=yes
9060 allow_undefined_flag="$_lt_dar_allow_undefined"
Lev Walkinaef10c32014-01-14 01:47:25 -08009061 case $cc_basename in
9062 ifort*) _lt_dar_can_shared=yes ;;
9063 *) _lt_dar_can_shared=$GCC ;;
9064 esac
9065 if test "$_lt_dar_can_shared" = "yes"; then
9066 output_verbose_link_cmd=func_echo_all
Lev Walkin4da95cf2010-10-16 02:46:32 -07009067 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9068 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9069 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}"
9070 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}"
9071
9072 else
9073 ld_shlibs=no
9074 fi
9075
Lev Walkin8e8b5482004-06-17 23:42:48 +00009076 ;;
9077
9078 dgux*)
9079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9080 hardcode_libdir_flag_spec='-L$libdir'
9081 hardcode_shlibpath_var=no
9082 ;;
9083
9084 freebsd1*)
9085 ld_shlibs=no
9086 ;;
9087
9088 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9089 # support. Future versions do this automatically, but an explicit c++rt0.o
9090 # does not break anything, and helps significantly (at the cost of a little
9091 # extra space).
9092 freebsd2.2*)
9093 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9094 hardcode_libdir_flag_spec='-R$libdir'
9095 hardcode_direct=yes
9096 hardcode_shlibpath_var=no
9097 ;;
9098
9099 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9100 freebsd2*)
9101 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9102 hardcode_direct=yes
9103 hardcode_minus_L=yes
9104 hardcode_shlibpath_var=no
9105 ;;
9106
9107 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Lev Walkin4da95cf2010-10-16 02:46:32 -07009108 freebsd* | dragonfly*)
Lev Walkinaef10c32014-01-14 01:47:25 -08009109 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009110 hardcode_libdir_flag_spec='-R$libdir'
9111 hardcode_direct=yes
9112 hardcode_shlibpath_var=no
9113 ;;
9114
9115 hpux9*)
9116 if test "$GCC" = yes; then
Lev Walkinaef10c32014-01-14 01:47:25 -08009117 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009118 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07009119 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'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009120 fi
9121 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9122 hardcode_libdir_separator=:
9123 hardcode_direct=yes
9124
9125 # hardcode_minus_L: Not really in the search PATH,
9126 # but as the default location of the library.
9127 hardcode_minus_L=yes
9128 export_dynamic_flag_spec='${wl}-E'
9129 ;;
9130
Lev Walkinfbf1d282007-12-03 14:58:39 +00009131 hpux10*)
Lev Walkinaef10c32014-01-14 01:47:25 -08009132 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9133 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009134 else
9135 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9136 fi
9137 if test "$with_gnu_ld" = no; then
9138 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009139 hardcode_libdir_flag_spec_ld='+b $libdir'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009140 hardcode_libdir_separator=:
Lev Walkinfbf1d282007-12-03 14:58:39 +00009141 hardcode_direct=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07009142 hardcode_direct_absolute=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +00009143 export_dynamic_flag_spec='${wl}-E'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009144 # hardcode_minus_L: Not really in the search PATH,
9145 # but as the default location of the library.
9146 hardcode_minus_L=yes
9147 fi
9148 ;;
9149
9150 hpux11*)
Lev Walkinaef10c32014-01-14 01:47:25 -08009151 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00009152 case $host_cpu in
9153 hppa*64*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009154 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9155 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00009156 ia64*)
Lev Walkinaef10c32014-01-14 01:47:25 -08009157 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009158 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00009159 *)
Lev Walkinaef10c32014-01-14 01:47:25 -08009160 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009161 ;;
9162 esac
9163 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00009164 case $host_cpu in
9165 hppa*64*)
9166 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9167 ;;
9168 ia64*)
9169 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009170 ;;
9171 *)
Lev Walkinaef10c32014-01-14 01:47:25 -08009172
9173 # Older versions of the 11.00 compiler do not understand -b yet
9174 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9176$as_echo_n "checking if $CC understands -b... " >&6; }
9177if ${lt_cv_prog_compiler__b+:} false; then :
9178 $as_echo_n "(cached) " >&6
9179else
9180 lt_cv_prog_compiler__b=no
9181 save_LDFLAGS="$LDFLAGS"
9182 LDFLAGS="$LDFLAGS -b"
9183 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9184 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9185 # The linker can only warn and ignore the option if not recognized
9186 # So say no if there are warnings
9187 if test -s conftest.err; then
9188 # Append any errors to the config.log.
9189 cat conftest.err 1>&5
9190 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9191 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9192 if diff conftest.exp conftest.er2 >/dev/null; then
9193 lt_cv_prog_compiler__b=yes
9194 fi
9195 else
9196 lt_cv_prog_compiler__b=yes
9197 fi
9198 fi
9199 $RM -r conftest*
9200 LDFLAGS="$save_LDFLAGS"
9201
9202fi
9203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9204$as_echo "$lt_cv_prog_compiler__b" >&6; }
9205
9206if test x"$lt_cv_prog_compiler__b" = xyes; then
9207 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9208else
9209 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9210fi
9211
Lev Walkin8e8b5482004-06-17 23:42:48 +00009212 ;;
9213 esac
9214 fi
9215 if test "$with_gnu_ld" = no; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00009216 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9217 hardcode_libdir_separator=:
Lev Walkin8e8b5482004-06-17 23:42:48 +00009218
Lev Walkinfbf1d282007-12-03 14:58:39 +00009219 case $host_cpu in
9220 hppa*64*|ia64*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00009221 hardcode_direct=no
9222 hardcode_shlibpath_var=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009223 ;;
9224 *)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009225 hardcode_direct=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -07009226 hardcode_direct_absolute=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00009227 export_dynamic_flag_spec='${wl}-E'
9228
9229 # hardcode_minus_L: Not really in the search PATH,
9230 # but as the default location of the library.
9231 hardcode_minus_L=yes
9232 ;;
9233 esac
9234 fi
9235 ;;
9236
9237 irix5* | irix6* | nonstopux*)
9238 if test "$GCC" = yes; then
Lev Walkinaef10c32014-01-14 01:47:25 -08009239 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009240 # Try to use the -exported_symbol ld option, if it does not
9241 # work, assume that -exports_file does not work either and
9242 # implicitly export all symbols.
Lev Walkinaef10c32014-01-14 01:47:25 -08009243 # This should be the same for all languages, so no per-tag cache variable.
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9245$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9246if ${lt_cv_irix_exported_symbol+:} false; then :
9247 $as_echo_n "(cached) " >&6
Lev Walkin4da95cf2010-10-16 02:46:32 -07009248else
Lev Walkinaef10c32014-01-14 01:47:25 -08009249 save_LDFLAGS="$LDFLAGS"
9250 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9252/* end confdefs.h. */
9253int foo (void) { return 0; }
9254_ACEOF
9255if ac_fn_c_try_link "$LINENO"; then :
9256 lt_cv_irix_exported_symbol=yes
9257else
9258 lt_cv_irix_exported_symbol=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07009259fi
Lev Walkinaef10c32014-01-14 01:47:25 -08009260rm -f core conftest.err conftest.$ac_objext \
9261 conftest$ac_exeext conftest.$ac_ext
9262 LDFLAGS="$save_LDFLAGS"
9263fi
9264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9265$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9266 if test "$lt_cv_irix_exported_symbol" = yes; then
9267 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9268 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009269 else
Lev Walkinaef10c32014-01-14 01:47:25 -08009270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9271 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009272 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07009273 archive_cmds_need_lc='no'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9275 hardcode_libdir_separator=:
Lev Walkin4da95cf2010-10-16 02:46:32 -07009276 inherit_rpath=yes
Lev Walkin8e8b5482004-06-17 23:42:48 +00009277 link_all_deplibs=yes
9278 ;;
9279
9280 netbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009281 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00009282 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9283 else
9284 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9285 fi
9286 hardcode_libdir_flag_spec='-R$libdir'
9287 hardcode_direct=yes
9288 hardcode_shlibpath_var=no
9289 ;;
9290
9291 newsos6)
9292 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9293 hardcode_direct=yes
9294 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9295 hardcode_libdir_separator=:
9296 hardcode_shlibpath_var=no
9297 ;;
9298
Lev Walkin4da95cf2010-10-16 02:46:32 -07009299 *nto* | *qnx*)
9300 ;;
9301
Lev Walkin8e8b5482004-06-17 23:42:48 +00009302 openbsd*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009303 if test -f /usr/libexec/ld.so; then
9304 hardcode_direct=yes
9305 hardcode_shlibpath_var=no
9306 hardcode_direct_absolute=yes
9307 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9308 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9309 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9310 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9311 export_dynamic_flag_spec='${wl}-E'
9312 else
9313 case $host_os in
9314 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9315 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9316 hardcode_libdir_flag_spec='-R$libdir'
9317 ;;
9318 *)
9319 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9320 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9321 ;;
9322 esac
9323 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009324 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07009325 ld_shlibs=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009326 fi
9327 ;;
9328
9329 os2*)
9330 hardcode_libdir_flag_spec='-L$libdir'
9331 hardcode_minus_L=yes
9332 allow_undefined_flag=unsupported
Lev Walkinaef10c32014-01-14 01:47:25 -08009333 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'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009334 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009335 ;;
9336
9337 osf3*)
9338 if test "$GCC" = yes; then
9339 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Lev Walkinaef10c32014-01-14 01:47:25 -08009340 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009341 else
9342 allow_undefined_flag=' -expect_unresolved \*'
Lev Walkinaef10c32014-01-14 01:47:25 -08009343 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009344 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07009345 archive_cmds_need_lc='no'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009346 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9347 hardcode_libdir_separator=:
9348 ;;
9349
9350 osf4* | osf5*) # as osf3* with the addition of -msym flag
9351 if test "$GCC" = yes; then
9352 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
Lev Walkinaef10c32014-01-14 01:47:25 -08009353 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009354 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9355 else
9356 allow_undefined_flag=' -expect_unresolved \*'
Lev Walkinaef10c32014-01-14 01:47:25 -08009357 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009358 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~
Lev Walkinaef10c32014-01-14 01:47:25 -08009359 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009360
9361 # Both c and cxx compiler support -rpath directly
9362 hardcode_libdir_flag_spec='-rpath $libdir'
9363 fi
Lev Walkin4da95cf2010-10-16 02:46:32 -07009364 archive_cmds_need_lc='no'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009365 hardcode_libdir_separator=:
9366 ;;
9367
Lev Walkin8e8b5482004-06-17 23:42:48 +00009368 solaris*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009369 no_undefined_flag=' -z defs'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009370 if test "$GCC" = yes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00009371 wlarc='${wl}'
Lev Walkinaef10c32014-01-14 01:47:25 -08009372 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009373 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
Lev Walkinaef10c32014-01-14 01:47:25 -08009374 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009375 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07009376 case `$CC -V 2>&1` in
9377 *"Compilers 5.0"*)
9378 wlarc=''
9379 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9380 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9381 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9382 ;;
9383 *)
9384 wlarc='${wl}'
9385 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9386 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9387 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9388 ;;
9389 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00009390 fi
9391 hardcode_libdir_flag_spec='-R$libdir'
9392 hardcode_shlibpath_var=no
9393 case $host_os in
9394 solaris2.[0-5] | solaris2.[0-5].*) ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +00009395 *)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009396 # The compiler driver will combine and reorder linker options,
9397 # but understands `-z linker_flag'. GCC discards it without `$wl',
9398 # but is careful enough not to reorder.
9399 # Supported since Solaris 2.6 (maybe 2.5.1?)
9400 if test "$GCC" = yes; then
9401 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9402 else
9403 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9404 fi
9405 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +00009406 esac
9407 link_all_deplibs=yes
9408 ;;
9409
9410 sunos4*)
9411 if test "x$host_vendor" = xsequent; then
9412 # Use $CC to link under sequent, because it throws in some extra .o
9413 # files that make .init and .fini sections work.
9414 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9415 else
9416 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9417 fi
9418 hardcode_libdir_flag_spec='-L$libdir'
9419 hardcode_direct=yes
9420 hardcode_minus_L=yes
9421 hardcode_shlibpath_var=no
9422 ;;
9423
9424 sysv4)
9425 case $host_vendor in
9426 sni)
9427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9428 hardcode_direct=yes # is this really true???
9429 ;;
9430 siemens)
9431 ## LD is ld it makes a PLAMLIB
9432 ## CC just makes a GrossModule.
9433 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9434 reload_cmds='$CC -r -o $output$reload_objs'
9435 hardcode_direct=no
9436 ;;
9437 motorola)
9438 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9439 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9440 ;;
9441 esac
9442 runpath_var='LD_RUN_PATH'
9443 hardcode_shlibpath_var=no
9444 ;;
9445
9446 sysv4.3*)
9447 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9448 hardcode_shlibpath_var=no
9449 export_dynamic_flag_spec='-Bexport'
9450 ;;
9451
9452 sysv4*MP*)
9453 if test -d /usr/nec; then
9454 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9455 hardcode_shlibpath_var=no
9456 runpath_var=LD_RUN_PATH
9457 hardcode_runpath_var=yes
9458 ld_shlibs=yes
9459 fi
9460 ;;
9461
Lev Walkin4da95cf2010-10-16 02:46:32 -07009462 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +00009463 no_undefined_flag='${wl}-z,text'
9464 archive_cmds_need_lc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009465 hardcode_shlibpath_var=no
Lev Walkinfbf1d282007-12-03 14:58:39 +00009466 runpath_var='LD_RUN_PATH'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009467
Lev Walkin8e8b5482004-06-17 23:42:48 +00009468 if test "$GCC" = yes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +00009469 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9470 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009471 else
Lev Walkinfbf1d282007-12-03 14:58:39 +00009472 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9473 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009474 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009475 ;;
9476
Lev Walkinfbf1d282007-12-03 14:58:39 +00009477 sysv5* | sco3.2v5* | sco5v6*)
9478 # Note: We can NOT use -z defs as we might desire, because we do not
9479 # link with -lc, and that would cause any symbols used from libc to
9480 # always be unresolved, which means just about no library would
9481 # ever link correctly. If we're not using GNU ld we use -z text
9482 # though, which does catch some bad symbols but isn't as heavy-handed
9483 # as -z defs.
9484 no_undefined_flag='${wl}-z,text'
9485 allow_undefined_flag='${wl}-z,nodefs'
9486 archive_cmds_need_lc=no
Lev Walkin8e8b5482004-06-17 23:42:48 +00009487 hardcode_shlibpath_var=no
Lev Walkin4da95cf2010-10-16 02:46:32 -07009488 hardcode_libdir_flag_spec='${wl}-R,$libdir'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009489 hardcode_libdir_separator=':'
9490 link_all_deplibs=yes
9491 export_dynamic_flag_spec='${wl}-Bexport'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009492 runpath_var='LD_RUN_PATH'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009493
9494 if test "$GCC" = yes; then
Lev Walkin4da95cf2010-10-16 02:46:32 -07009495 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9496 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009497 else
Lev Walkin4da95cf2010-10-16 02:46:32 -07009498 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9499 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009500 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009501 ;;
9502
9503 uts4*)
9504 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9505 hardcode_libdir_flag_spec='-L$libdir'
9506 hardcode_shlibpath_var=no
9507 ;;
9508
9509 *)
9510 ld_shlibs=no
9511 ;;
9512 esac
Lev Walkin4da95cf2010-10-16 02:46:32 -07009513
9514 if test x$host_vendor = xsni; then
9515 case $host in
9516 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9517 export_dynamic_flag_spec='${wl}-Blargedynsym'
9518 ;;
9519 esac
9520 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009521 fi
9522
Lev Walkinaef10c32014-01-14 01:47:25 -08009523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07009524$as_echo "$ld_shlibs" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +00009525test "$ld_shlibs" = no && can_build_shared=no
9526
Lev Walkin4da95cf2010-10-16 02:46:32 -07009527with_gnu_ld=$with_gnu_ld
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
Lev Walkin8e8b5482004-06-17 23:42:48 +00009543#
9544# Do we need to explicitly link libc?
9545#
9546case "x$archive_cmds_need_lc" in
9547x|xyes)
9548 # Assume -lc should be added
9549 archive_cmds_need_lc=yes
9550
9551 if test "$enable_shared" = yes && test "$GCC" = yes; then
9552 case $archive_cmds in
9553 *'~'*)
9554 # FIXME: we may have to deal with multi-command sequences.
9555 ;;
9556 '$CC '*)
9557 # Test whether the compiler implicitly links with -lc since on some
9558 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9559 # to ld, don't add -lc before -lgcc.
Lev Walkinaef10c32014-01-14 01:47:25 -08009560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07009561$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -08009562if ${lt_cv_archive_cmds_need_lc+:} false; then :
9563 $as_echo_n "(cached) " >&6
9564else
9565 $RM conftest*
9566 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +00009567
Lev Walkinaef10c32014-01-14 01:47:25 -08009568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00009569 (eval $ac_compile) 2>&5
9570 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08009571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9572 test $ac_status = 0; } 2>conftest.err; then
9573 soname=conftest
9574 lib=conftest
9575 libobjs=conftest.$ac_objext
9576 deplibs=
9577 wl=$lt_prog_compiler_wl
9578 pic_flag=$lt_prog_compiler_pic
9579 compiler_flags=-v
9580 linker_flags=-v
9581 verstring=
9582 output_objdir=.
9583 libname=conftest
9584 lt_save_allow_undefined_flag=$allow_undefined_flag
9585 allow_undefined_flag=
9586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
Lev Walkin4da95cf2010-10-16 02:46:32 -07009587 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
Lev Walkin8e8b5482004-06-17 23:42:48 +00009588 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -08009589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9590 test $ac_status = 0; }
9591 then
9592 lt_cv_archive_cmds_need_lc=no
9593 else
9594 lt_cv_archive_cmds_need_lc=yes
9595 fi
9596 allow_undefined_flag=$lt_save_allow_undefined_flag
9597 else
9598 cat conftest.err 1>&5
9599 fi
9600 $RM conftest*
9601
9602fi
9603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9604$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9605 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
Lev Walkin8e8b5482004-06-17 23:42:48 +00009606 ;;
9607 esac
9608 fi
9609 ;;
9610esac
9611
Lev Walkin4da95cf2010-10-16 02:46:32 -07009612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
Lev Walkinaef10c32014-01-14 01:47:25 -08009768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
Lev Walkinb3751942012-09-02 19:36:47 -07009769$as_echo_n "checking dynamic linker characteristics... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -07009770
9771if test "$GCC" = yes; then
9772 case $host_os in
9773 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9774 *) lt_awk_arg="/^libraries:/" ;;
9775 esac
Lev Walkinaef10c32014-01-14 01:47:25 -08009776 case $host_os in
9777 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9778 *) lt_sed_strip_eq="s,=/,/,g" ;;
9779 esac
9780 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9781 case $lt_search_path_spec in
9782 *\;*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009783 # if the path contains ";" then we assume it to be the separator
9784 # otherwise default to the standard path separator (i.e. ":") - it is
9785 # assumed that no part of a normal pathname contains ";" but that should
9786 # okay in the real world where ";" in dirpaths is itself problematic.
Lev Walkinaef10c32014-01-14 01:47:25 -08009787 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9788 ;;
9789 *)
9790 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9791 ;;
9792 esac
Lev Walkin4da95cf2010-10-16 02:46:32 -07009793 # Ok, now we have the path, separated by spaces, we can step through it
9794 # and add multilib dir if necessary.
9795 lt_tmp_lt_search_path_spec=
9796 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9797 for lt_sys_path in $lt_search_path_spec; do
9798 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9799 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9800 else
9801 test -d "$lt_sys_path" && \
9802 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9803 fi
9804 done
Lev Walkinaef10c32014-01-14 01:47:25 -08009805 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
Lev Walkin4da95cf2010-10-16 02:46:32 -07009806BEGIN {RS=" "; FS="/|\n";} {
9807 lt_foo="";
9808 lt_count=0;
9809 for (lt_i = NF; lt_i > 0; lt_i--) {
9810 if ($lt_i != "" && $lt_i != ".") {
9811 if ($lt_i == "..") {
9812 lt_count++;
9813 } else {
9814 if (lt_count == 0) {
9815 lt_foo="/" $lt_i lt_foo;
9816 } else {
9817 lt_count--;
9818 }
9819 }
9820 }
9821 }
9822 if (lt_foo != "") { lt_freq[lt_foo]++; }
9823 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9824}'`
Lev Walkinaef10c32014-01-14 01:47:25 -08009825 # AWK program above erroneously prepends '/' to C:/dos/paths
9826 # for these hosts.
9827 case $host_os in
9828 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9829 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9830 esac
9831 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
Lev Walkin4da95cf2010-10-16 02:46:32 -07009832else
9833 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9834fi
Lev Walkin8e8b5482004-06-17 23:42:48 +00009835library_names_spec=
9836libname_spec='lib$name'
9837soname_spec=
9838shrext_cmds=".so"
9839postinstall_cmds=
9840postuninstall_cmds=
9841finish_cmds=
9842finish_eval=
9843shlibpath_var=
9844shlibpath_overrides_runpath=unknown
9845version_type=none
9846dynamic_linker="$host_os ld.so"
9847sys_lib_dlsearch_path_spec="/lib /usr/lib"
Lev Walkin8e8b5482004-06-17 23:42:48 +00009848need_lib_prefix=unknown
9849hardcode_into_libs=no
9850
9851# when you set need_version to no, make sure it does not cause -set_version
9852# flags to be left without arguments
9853need_version=unknown
9854
9855case $host_os in
9856aix3*)
9857 version_type=linux
9858 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9859 shlibpath_var=LIBPATH
9860
9861 # AIX 3 has no versioning support, so we append a major version to the name.
9862 soname_spec='${libname}${release}${shared_ext}$major'
9863 ;;
9864
Lev Walkin4da95cf2010-10-16 02:46:32 -07009865aix[4-9]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009866 version_type=linux
9867 need_lib_prefix=no
9868 need_version=no
9869 hardcode_into_libs=yes
9870 if test "$host_cpu" = ia64; then
9871 # AIX 5 supports IA64
9872 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9873 shlibpath_var=LD_LIBRARY_PATH
9874 else
9875 # With GCC up to 2.95.x, collect2 would create an import file
9876 # for dependence libraries. The import file would start with
9877 # the line `#! .'. This would cause the generated library to
9878 # depend on `.', always an invalid library. This was fixed in
9879 # development snapshots of GCC prior to 3.0.
9880 case $host_os in
9881 aix4 | aix4.[01] | aix4.[01].*)
9882 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9883 echo ' yes '
Lev Walkin4da95cf2010-10-16 02:46:32 -07009884 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +00009885 :
9886 else
9887 can_build_shared=no
9888 fi
9889 ;;
9890 esac
9891 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9892 # soname into executable. Probably we can add versioning support to
9893 # collect2, so additional links can be useful in future.
9894 if test "$aix_use_runtimelinking" = yes; then
9895 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9896 # instead of lib<name>.a to let people know that these are not
9897 # typical AIX shared libraries.
9898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9899 else
9900 # We preserve .a as extension for shared libraries through AIX4.2
9901 # and later when we are not doing run time linking.
9902 library_names_spec='${libname}${release}.a $libname.a'
9903 soname_spec='${libname}${release}${shared_ext}$major'
9904 fi
9905 shlibpath_var=LIBPATH
9906 fi
9907 ;;
9908
9909amigaos*)
Lev Walkin4da95cf2010-10-16 02:46:32 -07009910 case $host_cpu in
9911 powerpc)
9912 # Since July 2007 AmigaOS4 officially supports .so libraries.
9913 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9915 ;;
9916 m68k)
9917 library_names_spec='$libname.ixlibrary $libname.a'
9918 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Lev Walkinaef10c32014-01-14 01:47:25 -08009919 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
Lev Walkin4da95cf2010-10-16 02:46:32 -07009920 ;;
9921 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +00009922 ;;
9923
9924beos*)
9925 library_names_spec='${libname}${shared_ext}'
9926 dynamic_linker="$host_os ld.so"
9927 shlibpath_var=LIBRARY_PATH
9928 ;;
9929
Lev Walkinfbf1d282007-12-03 14:58:39 +00009930bsdi[45]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009931 version_type=linux
9932 need_version=no
9933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9934 soname_spec='${libname}${release}${shared_ext}$major'
9935 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9936 shlibpath_var=LD_LIBRARY_PATH
9937 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9938 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9939 # the default ld.so.conf also contains /usr/contrib/lib and
9940 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9941 # libtool to hard-code these into programs
9942 ;;
9943
Lev Walkinaef10c32014-01-14 01:47:25 -08009944cygwin* | mingw* | pw32* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009945 version_type=windows
9946 shrext_cmds=".dll"
9947 need_version=no
9948 need_lib_prefix=no
9949
Lev Walkinaef10c32014-01-14 01:47:25 -08009950 case $GCC,$cc_basename in
9951 yes,*)
9952 # gcc
Lev Walkin8e8b5482004-06-17 23:42:48 +00009953 library_names_spec='$libname.dll.a'
9954 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9955 postinstall_cmds='base_file=`basename \${file}`~
Lev Walkin4da95cf2010-10-16 02:46:32 -07009956 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
Lev Walkin8e8b5482004-06-17 23:42:48 +00009957 dldir=$destdir/`dirname \$dlpath`~
9958 test -d \$dldir || mkdir -p \$dldir~
Lev Walkinfbf1d282007-12-03 14:58:39 +00009959 $install_prog $dir/$dlname \$dldir/$dlname~
Lev Walkin4da95cf2010-10-16 02:46:32 -07009960 chmod a+x \$dldir/$dlname~
9961 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9962 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9963 fi'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009964 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9965 dlpath=$dir/\$dldll~
Lev Walkin4da95cf2010-10-16 02:46:32 -07009966 $RM \$dlpath'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009967 shlibpath_overrides_runpath=yes
9968
9969 case $host_os in
9970 cygwin*)
9971 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9972 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Lev Walkinaef10c32014-01-14 01:47:25 -08009973
9974 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
Lev Walkin8e8b5482004-06-17 23:42:48 +00009975 ;;
Lev Walkinaef10c32014-01-14 01:47:25 -08009976 mingw* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +00009977 # MinGW DLLs use traditional 'lib' prefix
9978 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009979 ;;
9980 pw32*)
9981 # pw32 DLLs use 'pw' prefix rather than 'lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +00009982 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Lev Walkin8e8b5482004-06-17 23:42:48 +00009983 ;;
9984 esac
Lev Walkinaef10c32014-01-14 01:47:25 -08009985 dynamic_linker='Win32 ld.exe'
9986 ;;
9987
9988 *,cl*)
9989 # Native MSVC
9990 libname_spec='$name'
9991 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9992 library_names_spec='${libname}.dll.lib'
9993
9994 case $build_os in
9995 mingw*)
9996 sys_lib_search_path_spec=
9997 lt_save_ifs=$IFS
9998 IFS=';'
9999 for lt_path in $LIB
10000 do
10001 IFS=$lt_save_ifs
10002 # Let DOS variable expansion print the short 8.3 style file name.
10003 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10004 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10005 done
10006 IFS=$lt_save_ifs
10007 # Convert to MSYS style.
10008 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10009 ;;
10010 cygwin*)
10011 # Convert to unix form, then to dos form, then back to unix form
10012 # but this time dos style (no spaces!) so that the unix form looks
10013 # like /cygdrive/c/PROGRA~1:/cygdr...
10014 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10015 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10016 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10017 ;;
10018 *)
10019 sys_lib_search_path_spec="$LIB"
10020 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10021 # It is most probably a Windows format PATH.
10022 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10023 else
10024 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10025 fi
10026 # FIXME: find the short name or the path components, as spaces are
10027 # common. (e.g. "Program Files" -> "PROGRA~1")
10028 ;;
10029 esac
10030
10031 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10032 postinstall_cmds='base_file=`basename \${file}`~
10033 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10034 dldir=$destdir/`dirname \$dlpath`~
10035 test -d \$dldir || mkdir -p \$dldir~
10036 $install_prog $dir/$dlname \$dldir/$dlname'
10037 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10038 dlpath=$dir/\$dldll~
10039 $RM \$dlpath'
10040 shlibpath_overrides_runpath=yes
10041 dynamic_linker='Win32 link.exe'
Lev Walkin8e8b5482004-06-17 23:42:48 +000010042 ;;
10043
10044 *)
Lev Walkinaef10c32014-01-14 01:47:25 -080010045 # Assume MSVC wrapper
Lev Walkin8e8b5482004-06-17 23:42:48 +000010046 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
Lev Walkinaef10c32014-01-14 01:47:25 -080010047 dynamic_linker='Win32 ld.exe'
Lev Walkin8e8b5482004-06-17 23:42:48 +000010048 ;;
10049 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +000010050 # FIXME: first we should search . and the directory the executable is in
10051 shlibpath_var=PATH
10052 ;;
10053
10054darwin* | rhapsody*)
10055 dynamic_linker="$host_os dyld"
10056 version_type=darwin
10057 need_lib_prefix=no
10058 need_version=no
Lev Walkinaef10c32014-01-14 01:47:25 -080010059 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
Lev Walkin8e8b5482004-06-17 23:42:48 +000010060 soname_spec='${libname}${release}${major}$shared_ext'
10061 shlibpath_overrides_runpath=yes
10062 shlibpath_var=DYLD_LIBRARY_PATH
Lev Walkinfbf1d282007-12-03 14:58:39 +000010063 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
Lev Walkin4da95cf2010-10-16 02:46:32 -070010064
10065 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010066 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10067 ;;
10068
10069dgux*)
10070 version_type=linux
10071 need_lib_prefix=no
10072 need_version=no
10073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10074 soname_spec='${libname}${release}${shared_ext}$major'
10075 shlibpath_var=LD_LIBRARY_PATH
10076 ;;
10077
10078freebsd1*)
10079 dynamic_linker=no
10080 ;;
10081
Lev Walkinfbf1d282007-12-03 14:58:39 +000010082freebsd* | dragonfly*)
10083 # DragonFly does not have aout. When/if they implement a new
10084 # versioning mechanism, adjust this.
10085 if test -x /usr/bin/objformat; then
10086 objformat=`/usr/bin/objformat`
10087 else
10088 case $host_os in
10089 freebsd[123]*) objformat=aout ;;
10090 *) objformat=elf ;;
10091 esac
10092 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000010093 version_type=freebsd-$objformat
10094 case $version_type in
10095 freebsd-elf*)
10096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10097 need_version=no
10098 need_lib_prefix=no
10099 ;;
10100 freebsd-*)
10101 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10102 need_version=yes
10103 ;;
10104 esac
10105 shlibpath_var=LD_LIBRARY_PATH
10106 case $host_os in
10107 freebsd2*)
10108 shlibpath_overrides_runpath=yes
10109 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000010110 freebsd3.[01]* | freebsdelf3.[01]*)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010111 shlibpath_overrides_runpath=yes
10112 hardcode_into_libs=yes
10113 ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000010114 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10115 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010116 shlibpath_overrides_runpath=no
10117 hardcode_into_libs=yes
10118 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -070010119 *) # from 4.6 on, and DragonFly
Lev Walkinfbf1d282007-12-03 14:58:39 +000010120 shlibpath_overrides_runpath=yes
10121 hardcode_into_libs=yes
10122 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010123 esac
10124 ;;
10125
10126gnu*)
10127 version_type=linux
10128 need_lib_prefix=no
10129 need_version=no
10130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10131 soname_spec='${libname}${release}${shared_ext}$major'
10132 shlibpath_var=LD_LIBRARY_PATH
10133 hardcode_into_libs=yes
10134 ;;
10135
Lev Walkinaef10c32014-01-14 01:47:25 -080010136haiku*)
10137 version_type=linux
10138 need_lib_prefix=no
10139 need_version=no
10140 dynamic_linker="$host_os runtime_loader"
10141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10142 soname_spec='${libname}${release}${shared_ext}$major'
10143 shlibpath_var=LIBRARY_PATH
10144 shlibpath_overrides_runpath=yes
10145 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10146 hardcode_into_libs=yes
10147 ;;
10148
Lev Walkin8e8b5482004-06-17 23:42:48 +000010149hpux9* | hpux10* | hpux11*)
10150 # Give a soname corresponding to the major version so that dld.sl refuses to
10151 # link against other versions.
10152 version_type=sunos
10153 need_lib_prefix=no
10154 need_version=no
Lev Walkinfbf1d282007-12-03 14:58:39 +000010155 case $host_cpu in
Lev Walkin8e8b5482004-06-17 23:42:48 +000010156 ia64*)
10157 shrext_cmds='.so'
10158 hardcode_into_libs=yes
10159 dynamic_linker="$host_os dld.so"
10160 shlibpath_var=LD_LIBRARY_PATH
10161 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10163 soname_spec='${libname}${release}${shared_ext}$major'
10164 if test "X$HPUX_IA64_MODE" = X32; then
10165 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10166 else
10167 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10168 fi
10169 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10170 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -070010171 hppa*64*)
10172 shrext_cmds='.sl'
10173 hardcode_into_libs=yes
10174 dynamic_linker="$host_os dld.sl"
10175 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10176 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10178 soname_spec='${libname}${release}${shared_ext}$major'
10179 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10180 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10181 ;;
10182 *)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010183 shrext_cmds='.sl'
10184 dynamic_linker="$host_os dld.sl"
10185 shlibpath_var=SHLIB_PATH
10186 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10188 soname_spec='${libname}${release}${shared_ext}$major'
10189 ;;
10190 esac
Lev Walkinaef10c32014-01-14 01:47:25 -080010191 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
Lev Walkin8e8b5482004-06-17 23:42:48 +000010192 postinstall_cmds='chmod 555 $lib'
Lev Walkinaef10c32014-01-14 01:47:25 -080010193 # or fails outright, so override atomically:
10194 install_override_mode=555
Lev Walkin8e8b5482004-06-17 23:42:48 +000010195 ;;
10196
Lev Walkin4da95cf2010-10-16 02:46:32 -070010197interix[3-9]*)
Lev Walkinfbf1d282007-12-03 14:58:39 +000010198 version_type=linux
10199 need_lib_prefix=no
10200 need_version=no
10201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10202 soname_spec='${libname}${release}${shared_ext}$major'
10203 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10204 shlibpath_var=LD_LIBRARY_PATH
10205 shlibpath_overrides_runpath=no
10206 hardcode_into_libs=yes
10207 ;;
10208
Lev Walkin8e8b5482004-06-17 23:42:48 +000010209irix5* | irix6* | nonstopux*)
10210 case $host_os in
10211 nonstopux*) version_type=nonstopux ;;
10212 *)
10213 if test "$lt_cv_prog_gnu_ld" = yes; then
10214 version_type=linux
10215 else
10216 version_type=irix
10217 fi ;;
10218 esac
10219 need_lib_prefix=no
10220 need_version=no
10221 soname_spec='${libname}${release}${shared_ext}$major'
10222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10223 case $host_os in
10224 irix5* | nonstopux*)
10225 libsuff= shlibsuff=
10226 ;;
10227 *)
10228 case $LD in # libtool.m4 will add one of these switches to LD
10229 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10230 libsuff= shlibsuff= libmagic=32-bit;;
10231 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10232 libsuff=32 shlibsuff=N32 libmagic=N32;;
10233 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10234 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10235 *) libsuff= shlibsuff= libmagic=never-match;;
10236 esac
10237 ;;
10238 esac
10239 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10240 shlibpath_overrides_runpath=no
10241 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10242 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10243 hardcode_into_libs=yes
10244 ;;
10245
10246# No shared lib support for Linux oldld, aout, or coff.
10247linux*oldld* | linux*aout* | linux*coff*)
10248 dynamic_linker=no
10249 ;;
10250
10251# This must be Linux ELF.
Lev Walkinaef10c32014-01-14 01:47:25 -080010252linux* | k*bsd*-gnu | kopensolaris*-gnu)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010253 version_type=linux
10254 need_lib_prefix=no
10255 need_version=no
10256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10257 soname_spec='${libname}${release}${shared_ext}$major'
10258 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10259 shlibpath_var=LD_LIBRARY_PATH
10260 shlibpath_overrides_runpath=no
Lev Walkinaef10c32014-01-14 01:47:25 -080010261
Lev Walkin4da95cf2010-10-16 02:46:32 -070010262 # Some binutils ld are patched to set DT_RUNPATH
Lev Walkinaef10c32014-01-14 01:47:25 -080010263 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10264 $as_echo_n "(cached) " >&6
10265else
10266 lt_cv_shlibpath_overrides_runpath=no
10267 save_LDFLAGS=$LDFLAGS
10268 save_libdir=$libdir
10269 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10270 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin4da95cf2010-10-16 02:46:32 -070010272/* end confdefs.h. */
10273
10274int
10275main ()
10276{
10277
10278 ;
10279 return 0;
10280}
10281_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080010282if ac_fn_c_try_link "$LINENO"; then :
10283 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10284 lt_cv_shlibpath_overrides_runpath=yes
Lev Walkin4da95cf2010-10-16 02:46:32 -070010285fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010286fi
10287rm -f core conftest.err conftest.$ac_objext \
10288 conftest$ac_exeext conftest.$ac_ext
10289 LDFLAGS=$save_LDFLAGS
10290 libdir=$save_libdir
Lev Walkin4da95cf2010-10-16 02:46:32 -070010291
10292fi
10293
Lev Walkinaef10c32014-01-14 01:47:25 -080010294 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
Lev Walkin4da95cf2010-10-16 02:46:32 -070010295
Lev Walkin8e8b5482004-06-17 23:42:48 +000010296 # This implies no fast_install, which is unacceptable.
10297 # Some rework will be needed to allow for fast_install
10298 # before this can be enabled.
10299 hardcode_into_libs=yes
10300
10301 # Append ld.so.conf contents to the search path
10302 if test -f /etc/ld.so.conf; then
Lev Walkinaef10c32014-01-14 01:47:25 -080010303 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;s/"//g;/^$/d' | tr '\n' ' '`
Lev Walkin8e8b5482004-06-17 23:42:48 +000010304 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10305 fi
10306
10307 # We used to test for /lib/ld.so.1 and disable shared libraries on
10308 # powerpc, because MkLinux only supported shared libraries with the
10309 # GNU dynamic linker. Since this was broken with cross compilers,
10310 # most powerpc-linux boxes support dynamic linking these days and
10311 # people can always --disable-shared, the test was removed, and we
10312 # assume the GNU/Linux dynamic linker is in use.
10313 dynamic_linker='GNU/Linux ld.so'
10314 ;;
10315
Lev Walkin8e8b5482004-06-17 23:42:48 +000010316netbsd*)
10317 version_type=sunos
10318 need_lib_prefix=no
10319 need_version=no
Lev Walkin4da95cf2010-10-16 02:46:32 -070010320 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10322 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10323 dynamic_linker='NetBSD (a.out) ld.so'
10324 else
10325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10326 soname_spec='${libname}${release}${shared_ext}$major'
10327 dynamic_linker='NetBSD ld.elf_so'
10328 fi
10329 shlibpath_var=LD_LIBRARY_PATH
10330 shlibpath_overrides_runpath=yes
10331 hardcode_into_libs=yes
10332 ;;
10333
10334newsos6)
10335 version_type=linux
10336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10337 shlibpath_var=LD_LIBRARY_PATH
10338 shlibpath_overrides_runpath=yes
10339 ;;
10340
Lev Walkin4da95cf2010-10-16 02:46:32 -070010341*nto* | *qnx*)
10342 version_type=qnx
Lev Walkin8e8b5482004-06-17 23:42:48 +000010343 need_lib_prefix=no
10344 need_version=no
10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10346 soname_spec='${libname}${release}${shared_ext}$major'
10347 shlibpath_var=LD_LIBRARY_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -070010348 shlibpath_overrides_runpath=no
10349 hardcode_into_libs=yes
10350 dynamic_linker='ldqnx.so'
Lev Walkin8e8b5482004-06-17 23:42:48 +000010351 ;;
10352
10353openbsd*)
10354 version_type=sunos
Lev Walkinfbf1d282007-12-03 14:58:39 +000010355 sys_lib_dlsearch_path_spec="/usr/lib"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010356 need_lib_prefix=no
Lev Walkinfbf1d282007-12-03 14:58:39 +000010357 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10358 case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -070010359 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10360 *) need_version=no ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000010361 esac
Lev Walkin8e8b5482004-06-17 23:42:48 +000010362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10363 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10364 shlibpath_var=LD_LIBRARY_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -070010365 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010366 case $host_os in
10367 openbsd2.[89] | openbsd2.[89].*)
10368 shlibpath_overrides_runpath=no
10369 ;;
10370 *)
10371 shlibpath_overrides_runpath=yes
10372 ;;
10373 esac
10374 else
10375 shlibpath_overrides_runpath=yes
10376 fi
10377 ;;
10378
10379os2*)
10380 libname_spec='$name'
10381 shrext_cmds=".dll"
10382 need_lib_prefix=no
10383 library_names_spec='$libname${shared_ext} $libname.a'
10384 dynamic_linker='OS/2 ld.exe'
10385 shlibpath_var=LIBPATH
10386 ;;
10387
10388osf3* | osf4* | osf5*)
10389 version_type=osf
10390 need_lib_prefix=no
10391 need_version=no
10392 soname_spec='${libname}${release}${shared_ext}$major'
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10394 shlibpath_var=LD_LIBRARY_PATH
10395 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10396 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10397 ;;
10398
Lev Walkin4da95cf2010-10-16 02:46:32 -070010399rdos*)
10400 dynamic_linker=no
10401 ;;
10402
Lev Walkin8e8b5482004-06-17 23:42:48 +000010403solaris*)
10404 version_type=linux
10405 need_lib_prefix=no
10406 need_version=no
10407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10408 soname_spec='${libname}${release}${shared_ext}$major'
10409 shlibpath_var=LD_LIBRARY_PATH
10410 shlibpath_overrides_runpath=yes
10411 hardcode_into_libs=yes
10412 # ldd complains unless libraries are executable
10413 postinstall_cmds='chmod +x $lib'
10414 ;;
10415
10416sunos4*)
10417 version_type=sunos
10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10419 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10420 shlibpath_var=LD_LIBRARY_PATH
10421 shlibpath_overrides_runpath=yes
10422 if test "$with_gnu_ld" = yes; then
10423 need_lib_prefix=no
10424 fi
10425 need_version=yes
10426 ;;
10427
Lev Walkinfbf1d282007-12-03 14:58:39 +000010428sysv4 | sysv4.3*)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010429 version_type=linux
10430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10431 soname_spec='${libname}${release}${shared_ext}$major'
10432 shlibpath_var=LD_LIBRARY_PATH
10433 case $host_vendor in
10434 sni)
10435 shlibpath_overrides_runpath=no
10436 need_lib_prefix=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010437 runpath_var=LD_RUN_PATH
10438 ;;
10439 siemens)
10440 need_lib_prefix=no
10441 ;;
10442 motorola)
10443 need_lib_prefix=no
10444 need_version=no
10445 shlibpath_overrides_runpath=no
10446 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10447 ;;
10448 esac
10449 ;;
10450
10451sysv4*MP*)
10452 if test -d /usr/nec ;then
10453 version_type=linux
10454 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10455 soname_spec='$libname${shared_ext}.$major'
10456 shlibpath_var=LD_LIBRARY_PATH
10457 fi
10458 ;;
10459
Lev Walkinfbf1d282007-12-03 14:58:39 +000010460sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10461 version_type=freebsd-elf
10462 need_lib_prefix=no
10463 need_version=no
10464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10465 soname_spec='${libname}${release}${shared_ext}$major'
10466 shlibpath_var=LD_LIBRARY_PATH
Lev Walkin4da95cf2010-10-16 02:46:32 -070010467 shlibpath_overrides_runpath=yes
Lev Walkinfbf1d282007-12-03 14:58:39 +000010468 hardcode_into_libs=yes
10469 if test "$with_gnu_ld" = yes; then
10470 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +000010471 else
10472 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
Lev Walkinfbf1d282007-12-03 14:58:39 +000010473 case $host_os in
10474 sco3.2v5*)
10475 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10476 ;;
10477 esac
10478 fi
10479 sys_lib_dlsearch_path_spec='/usr/lib'
10480 ;;
10481
Lev Walkin4da95cf2010-10-16 02:46:32 -070010482tpf*)
10483 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10484 version_type=linux
10485 need_lib_prefix=no
10486 need_version=no
Lev Walkinaef10c32014-01-14 01:47:25 -080010487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
Lev Walkin4da95cf2010-10-16 02:46:32 -070010488 shlibpath_var=LD_LIBRARY_PATH
10489 shlibpath_overrides_runpath=no
10490 hardcode_into_libs=yes
10491 ;;
10492
Lev Walkin8e8b5482004-06-17 23:42:48 +000010493uts4*)
10494 version_type=linux
10495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10496 soname_spec='${libname}${release}${shared_ext}$major'
10497 shlibpath_var=LD_LIBRARY_PATH
10498 ;;
10499
10500*)
10501 dynamic_linker=no
10502 ;;
10503esac
Lev Walkinaef10c32014-01-14 01:47:25 -080010504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010505$as_echo "$dynamic_linker" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010506test "$dynamic_linker" = no && can_build_shared=no
10507
Lev Walkinfbf1d282007-12-03 14:58:39 +000010508variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10509if test "$GCC" = yes; then
10510 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10511fi
10512
Lev Walkin4da95cf2010-10-16 02:46:32 -070010513if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10514 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10515fi
10516if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10517 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10518fi
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
Lev Walkinaef10c32014-01-14 01:47:25 -080010606
10607
10608
10609
10610
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010612$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010613hardcode_action=
Lev Walkin4da95cf2010-10-16 02:46:32 -070010614if test -n "$hardcode_libdir_flag_spec" ||
10615 test -n "$runpath_var" ||
Lev Walkinfbf1d282007-12-03 14:58:39 +000010616 test "X$hardcode_automatic" = "Xyes" ; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010617
Lev Walkin4da95cf2010-10-16 02:46:32 -070010618 # We can hardcode non-existent directories.
Lev Walkin8e8b5482004-06-17 23:42:48 +000010619 if test "$hardcode_direct" != no &&
10620 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10621 # have to relink, otherwise we might link with an installed library
10622 # when we should be linking with a yet-to-be-installed one
Lev Walkin4da95cf2010-10-16 02:46:32 -070010623 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000010624 test "$hardcode_minus_L" != no; then
10625 # Linking always hardcodes the temporary library directory.
10626 hardcode_action=relink
10627 else
10628 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10629 hardcode_action=immediate
10630 fi
10631else
10632 # We cannot hardcode anything, or else we can only hardcode existing
10633 # directories.
10634 hardcode_action=unsupported
10635fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010637$as_echo "$hardcode_action" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010638
Lev Walkin4da95cf2010-10-16 02:46:32 -070010639if test "$hardcode_action" = relink ||
10640 test "$inherit_rpath" = yes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010641 # Fast installation is not supported
10642 enable_fast_install=no
10643elif test "$shlibpath_overrides_runpath" = yes ||
10644 test "$enable_shared" = no; then
10645 # Fast installation is not necessary
10646 enable_fast_install=needless
10647fi
10648
Lev Walkin8e8b5482004-06-17 23:42:48 +000010649
Lev Walkin4da95cf2010-10-16 02:46:32 -070010650
10651
10652
10653
10654 if test "x$enable_dlopen" != xyes; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000010655 enable_dlopen=unknown
10656 enable_dlopen_self=unknown
10657 enable_dlopen_self_static=unknown
10658else
10659 lt_cv_dlopen=no
10660 lt_cv_dlopen_libs=
10661
10662 case $host_os in
10663 beos*)
10664 lt_cv_dlopen="load_add_on"
10665 lt_cv_dlopen_libs=
10666 lt_cv_dlopen_self=yes
10667 ;;
10668
Lev Walkinaef10c32014-01-14 01:47:25 -080010669 mingw* | pw32* | cegcc*)
Lev Walkin8e8b5482004-06-17 23:42:48 +000010670 lt_cv_dlopen="LoadLibrary"
10671 lt_cv_dlopen_libs=
Lev Walkin4da95cf2010-10-16 02:46:32 -070010672 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010673
10674 cygwin*)
10675 lt_cv_dlopen="dlopen"
10676 lt_cv_dlopen_libs=
Lev Walkin4da95cf2010-10-16 02:46:32 -070010677 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010678
10679 darwin*)
10680 # if libdl is installed we need to link against it
Lev Walkinaef10c32014-01-14 01:47:25 -080010681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010682$as_echo_n "checking for dlopen in -ldl... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010683if ${ac_cv_lib_dl_dlopen+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070010684 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010685else
10686 ac_check_lib_save_LIBS=$LIBS
10687LIBS="-ldl $LIBS"
Lev Walkinaef10c32014-01-14 01:47:25 -080010688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010689/* end confdefs.h. */
10690
Lev Walkin27fd0b62007-08-27 23:57:45 +000010691/* Override any GCC internal prototype to avoid an error.
10692 Use char because int might match the return type of a GCC
10693 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010694#ifdef __cplusplus
10695extern "C"
10696#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010697char dlopen ();
10698int
10699main ()
10700{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010701return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010702 ;
10703 return 0;
10704}
10705_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080010706if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010707 ac_cv_lib_dl_dlopen=yes
10708else
Lev Walkinaef10c32014-01-14 01:47:25 -080010709 ac_cv_lib_dl_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010710fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010711rm -f core conftest.err conftest.$ac_objext \
10712 conftest$ac_exeext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010713LIBS=$ac_check_lib_save_LIBS
10714fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010716$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010717if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010718 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10719else
10720
10721 lt_cv_dlopen="dyld"
10722 lt_cv_dlopen_libs=
10723 lt_cv_dlopen_self=yes
10724
10725fi
10726
Lev Walkin4da95cf2010-10-16 02:46:32 -070010727 ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000010728
10729 *)
Lev Walkinaef10c32014-01-14 01:47:25 -080010730 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10731if test "x$ac_cv_func_shl_load" = xyes; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010732 lt_cv_dlopen="shl_load"
10733else
Lev Walkinaef10c32014-01-14 01:47:25 -080010734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010735$as_echo_n "checking for shl_load in -ldld... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010736if ${ac_cv_lib_dld_shl_load+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070010737 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010738else
10739 ac_check_lib_save_LIBS=$LIBS
10740LIBS="-ldld $LIBS"
Lev Walkinaef10c32014-01-14 01:47:25 -080010741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010742/* end confdefs.h. */
10743
Lev Walkin27fd0b62007-08-27 23:57:45 +000010744/* Override any GCC internal prototype to avoid an error.
10745 Use char because int might match the return type of a GCC
10746 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010747#ifdef __cplusplus
10748extern "C"
10749#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010750char shl_load ();
10751int
10752main ()
10753{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010754return shl_load ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010755 ;
10756 return 0;
10757}
10758_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080010759if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010760 ac_cv_lib_dld_shl_load=yes
10761else
Lev Walkinaef10c32014-01-14 01:47:25 -080010762 ac_cv_lib_dld_shl_load=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010763fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010764rm -f core conftest.err conftest.$ac_objext \
10765 conftest$ac_exeext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010766LIBS=$ac_check_lib_save_LIBS
10767fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010769$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010770if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
Lev Walkin4da95cf2010-10-16 02:46:32 -070010771 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010772else
Lev Walkinaef10c32014-01-14 01:47:25 -080010773 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10774if test "x$ac_cv_func_dlopen" = xyes; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010775 lt_cv_dlopen="dlopen"
10776else
Lev Walkinaef10c32014-01-14 01:47:25 -080010777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010778$as_echo_n "checking for dlopen in -ldl... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010779if ${ac_cv_lib_dl_dlopen+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070010780 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010781else
10782 ac_check_lib_save_LIBS=$LIBS
10783LIBS="-ldl $LIBS"
Lev Walkinaef10c32014-01-14 01:47:25 -080010784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010785/* end confdefs.h. */
10786
Lev Walkin27fd0b62007-08-27 23:57:45 +000010787/* Override any GCC internal prototype to avoid an error.
10788 Use char because int might match the return type of a GCC
10789 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010790#ifdef __cplusplus
10791extern "C"
10792#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010793char dlopen ();
10794int
10795main ()
10796{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010797return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010798 ;
10799 return 0;
10800}
10801_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080010802if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010803 ac_cv_lib_dl_dlopen=yes
10804else
Lev Walkinaef10c32014-01-14 01:47:25 -080010805 ac_cv_lib_dl_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010806fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010807rm -f core conftest.err conftest.$ac_objext \
10808 conftest$ac_exeext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010809LIBS=$ac_check_lib_save_LIBS
10810fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010812$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010813if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010814 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10815else
Lev Walkinaef10c32014-01-14 01:47:25 -080010816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010817$as_echo_n "checking for dlopen in -lsvld... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010818if ${ac_cv_lib_svld_dlopen+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070010819 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010820else
10821 ac_check_lib_save_LIBS=$LIBS
10822LIBS="-lsvld $LIBS"
Lev Walkinaef10c32014-01-14 01:47:25 -080010823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010824/* end confdefs.h. */
10825
Lev Walkin27fd0b62007-08-27 23:57:45 +000010826/* Override any GCC internal prototype to avoid an error.
10827 Use char because int might match the return type of a GCC
10828 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010829#ifdef __cplusplus
10830extern "C"
10831#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010832char dlopen ();
10833int
10834main ()
10835{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010836return dlopen ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010837 ;
10838 return 0;
10839}
10840_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080010841if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010842 ac_cv_lib_svld_dlopen=yes
10843else
Lev Walkinaef10c32014-01-14 01:47:25 -080010844 ac_cv_lib_svld_dlopen=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010845fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010846rm -f core conftest.err conftest.$ac_objext \
10847 conftest$ac_exeext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010848LIBS=$ac_check_lib_save_LIBS
10849fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010851$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010852if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010853 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10854else
Lev Walkinaef10c32014-01-14 01:47:25 -080010855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010856$as_echo_n "checking for dld_link in -ldld... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010857if ${ac_cv_lib_dld_dld_link+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070010858 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010859else
10860 ac_check_lib_save_LIBS=$LIBS
10861LIBS="-ldld $LIBS"
Lev Walkinaef10c32014-01-14 01:47:25 -080010862cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010863/* end confdefs.h. */
10864
Lev Walkin27fd0b62007-08-27 23:57:45 +000010865/* Override any GCC internal prototype to avoid an error.
10866 Use char because int might match the return type of a GCC
10867 builtin and then its argument prototype would still apply. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000010868#ifdef __cplusplus
10869extern "C"
10870#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000010871char dld_link ();
10872int
10873main ()
10874{
Lev Walkin27fd0b62007-08-27 23:57:45 +000010875return dld_link ();
Lev Walkin8e8b5482004-06-17 23:42:48 +000010876 ;
10877 return 0;
10878}
10879_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080010880if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin8e8b5482004-06-17 23:42:48 +000010881 ac_cv_lib_dld_dld_link=yes
10882else
Lev Walkinaef10c32014-01-14 01:47:25 -080010883 ac_cv_lib_dld_dld_link=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000010884fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010885rm -f core conftest.err conftest.$ac_objext \
10886 conftest$ac_exeext conftest.$ac_ext
Lev Walkin8e8b5482004-06-17 23:42:48 +000010887LIBS=$ac_check_lib_save_LIBS
10888fi
Lev Walkinaef10c32014-01-14 01:47:25 -080010889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010890$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010891if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
Lev Walkin4da95cf2010-10-16 02:46:32 -070010892 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010893fi
10894
10895
10896fi
10897
10898
10899fi
10900
10901
10902fi
10903
10904
10905fi
10906
10907
10908fi
10909
10910 ;;
10911 esac
10912
10913 if test "x$lt_cv_dlopen" != xno; then
10914 enable_dlopen=yes
10915 else
10916 enable_dlopen=no
10917 fi
10918
10919 case $lt_cv_dlopen in
10920 dlopen)
10921 save_CPPFLAGS="$CPPFLAGS"
10922 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10923
10924 save_LDFLAGS="$LDFLAGS"
Lev Walkinfbf1d282007-12-03 14:58:39 +000010925 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010926
10927 save_LIBS="$LIBS"
10928 LIBS="$lt_cv_dlopen_libs $LIBS"
10929
Lev Walkinaef10c32014-01-14 01:47:25 -080010930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070010931$as_echo_n "checking whether a program can dlopen itself... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080010932if ${lt_cv_dlopen_self+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070010933 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000010934else
10935 if test "$cross_compiling" = yes; then :
10936 lt_cv_dlopen_self=cross
10937else
10938 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10939 lt_status=$lt_dlunknown
Lev Walkin4da95cf2010-10-16 02:46:32 -070010940 cat > conftest.$ac_ext <<_LT_EOF
Lev Walkinaef10c32014-01-14 01:47:25 -080010941#line $LINENO "configure"
Lev Walkin8e8b5482004-06-17 23:42:48 +000010942#include "confdefs.h"
10943
10944#if HAVE_DLFCN_H
10945#include <dlfcn.h>
10946#endif
10947
10948#include <stdio.h>
10949
10950#ifdef RTLD_GLOBAL
10951# define LT_DLGLOBAL RTLD_GLOBAL
10952#else
10953# ifdef DL_GLOBAL
10954# define LT_DLGLOBAL DL_GLOBAL
10955# else
10956# define LT_DLGLOBAL 0
10957# endif
10958#endif
10959
10960/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10961 find out it does not work in some platform. */
10962#ifndef LT_DLLAZY_OR_NOW
10963# ifdef RTLD_LAZY
10964# define LT_DLLAZY_OR_NOW RTLD_LAZY
10965# else
10966# ifdef DL_LAZY
10967# define LT_DLLAZY_OR_NOW DL_LAZY
10968# else
10969# ifdef RTLD_NOW
10970# define LT_DLLAZY_OR_NOW RTLD_NOW
10971# else
10972# ifdef DL_NOW
10973# define LT_DLLAZY_OR_NOW DL_NOW
10974# else
10975# define LT_DLLAZY_OR_NOW 0
10976# endif
10977# endif
10978# endif
10979# endif
10980#endif
10981
Lev Walkinaef10c32014-01-14 01:47:25 -080010982/* When -fvisbility=hidden is used, assume the code has been annotated
10983 correspondingly for the symbols needed. */
10984#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10985int fnord () __attribute__((visibility("default")));
Lev Walkin8e8b5482004-06-17 23:42:48 +000010986#endif
10987
Lev Walkinaef10c32014-01-14 01:47:25 -080010988int fnord () { return 42; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000010989int main ()
10990{
10991 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10992 int status = $lt_dlunknown;
10993
10994 if (self)
10995 {
10996 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Lev Walkinaef10c32014-01-14 01:47:25 -080010997 else
10998 {
10999 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11000 else puts (dlerror ());
11001 }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011002 /* dlclose (self); */
11003 }
Lev Walkinfbf1d282007-12-03 14:58:39 +000011004 else
11005 puts (dlerror ());
Lev Walkin8e8b5482004-06-17 23:42:48 +000011006
Lev Walkinaef10c32014-01-14 01:47:25 -080011007 return status;
Lev Walkin8e8b5482004-06-17 23:42:48 +000011008}
Lev Walkin4da95cf2010-10-16 02:46:32 -070011009_LT_EOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000011011 (eval $ac_link) 2>&5
11012 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -080011013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11014 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Lev Walkinfbf1d282007-12-03 14:58:39 +000011015 (./conftest; exit; ) >&5 2>/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +000011016 lt_status=$?
11017 case x$lt_status in
11018 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11019 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000011020 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000011021 esac
11022 else :
11023 # compilation failed
11024 lt_cv_dlopen_self=no
11025 fi
11026fi
11027rm -fr conftest*
11028
11029
11030fi
Lev Walkinaef10c32014-01-14 01:47:25 -080011031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011032$as_echo "$lt_cv_dlopen_self" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011033
11034 if test "x$lt_cv_dlopen_self" = xyes; then
Lev Walkinfbf1d282007-12-03 14:58:39 +000011035 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
Lev Walkinaef10c32014-01-14 01:47:25 -080011036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011037$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011038if ${lt_cv_dlopen_self_static+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011039 $as_echo_n "(cached) " >&6
Lev Walkin8e8b5482004-06-17 23:42:48 +000011040else
11041 if test "$cross_compiling" = yes; then :
11042 lt_cv_dlopen_self_static=cross
11043else
11044 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11045 lt_status=$lt_dlunknown
Lev Walkin4da95cf2010-10-16 02:46:32 -070011046 cat > conftest.$ac_ext <<_LT_EOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011047#line $LINENO "configure"
Lev Walkin8e8b5482004-06-17 23:42:48 +000011048#include "confdefs.h"
11049
11050#if HAVE_DLFCN_H
11051#include <dlfcn.h>
11052#endif
11053
11054#include <stdio.h>
11055
11056#ifdef RTLD_GLOBAL
11057# define LT_DLGLOBAL RTLD_GLOBAL
11058#else
11059# ifdef DL_GLOBAL
11060# define LT_DLGLOBAL DL_GLOBAL
11061# else
11062# define LT_DLGLOBAL 0
11063# endif
11064#endif
11065
11066/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11067 find out it does not work in some platform. */
11068#ifndef LT_DLLAZY_OR_NOW
11069# ifdef RTLD_LAZY
11070# define LT_DLLAZY_OR_NOW RTLD_LAZY
11071# else
11072# ifdef DL_LAZY
11073# define LT_DLLAZY_OR_NOW DL_LAZY
11074# else
11075# ifdef RTLD_NOW
11076# define LT_DLLAZY_OR_NOW RTLD_NOW
11077# else
11078# ifdef DL_NOW
11079# define LT_DLLAZY_OR_NOW DL_NOW
11080# else
11081# define LT_DLLAZY_OR_NOW 0
11082# endif
11083# endif
11084# endif
11085# endif
11086#endif
11087
Lev Walkinaef10c32014-01-14 01:47:25 -080011088/* When -fvisbility=hidden is used, assume the code has been annotated
11089 correspondingly for the symbols needed. */
11090#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11091int fnord () __attribute__((visibility("default")));
Lev Walkin8e8b5482004-06-17 23:42:48 +000011092#endif
11093
Lev Walkinaef10c32014-01-14 01:47:25 -080011094int fnord () { return 42; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011095int main ()
11096{
11097 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11098 int status = $lt_dlunknown;
11099
11100 if (self)
11101 {
11102 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
Lev Walkinaef10c32014-01-14 01:47:25 -080011103 else
11104 {
11105 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11106 else puts (dlerror ());
11107 }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011108 /* dlclose (self); */
11109 }
Lev Walkinfbf1d282007-12-03 14:58:39 +000011110 else
11111 puts (dlerror ());
Lev Walkin8e8b5482004-06-17 23:42:48 +000011112
Lev Walkinaef10c32014-01-14 01:47:25 -080011113 return status;
Lev Walkin8e8b5482004-06-17 23:42:48 +000011114}
Lev Walkin4da95cf2010-10-16 02:46:32 -070011115_LT_EOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
Lev Walkin8e8b5482004-06-17 23:42:48 +000011117 (eval $ac_link) 2>&5
11118 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -080011119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11120 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
Lev Walkinfbf1d282007-12-03 14:58:39 +000011121 (./conftest; exit; ) >&5 2>/dev/null
Lev Walkin8e8b5482004-06-17 23:42:48 +000011122 lt_status=$?
11123 case x$lt_status in
11124 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11125 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
Lev Walkinfbf1d282007-12-03 14:58:39 +000011126 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
Lev Walkin8e8b5482004-06-17 23:42:48 +000011127 esac
11128 else :
11129 # compilation failed
11130 lt_cv_dlopen_self_static=no
11131 fi
11132fi
11133rm -fr conftest*
11134
11135
11136fi
Lev Walkinaef10c32014-01-14 01:47:25 -080011137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011138$as_echo "$lt_cv_dlopen_self_static" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011139 fi
11140
11141 CPPFLAGS="$save_CPPFLAGS"
11142 LDFLAGS="$save_LDFLAGS"
11143 LIBS="$save_LIBS"
11144 ;;
11145 esac
11146
11147 case $lt_cv_dlopen_self in
11148 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11149 *) enable_dlopen_self=unknown ;;
11150 esac
11151
11152 case $lt_cv_dlopen_self_static in
11153 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11154 *) enable_dlopen_self_static=unknown ;;
11155 esac
11156fi
11157
11158
Lev Walkin8e8b5482004-06-17 23:42:48 +000011159
Lev Walkin8e8b5482004-06-17 23:42:48 +000011160
Lev Walkin8e8b5482004-06-17 23:42:48 +000011161
Lev Walkin8e8b5482004-06-17 23:42:48 +000011162
Lev Walkin8e8b5482004-06-17 23:42:48 +000011163
Lev Walkin8e8b5482004-06-17 23:42:48 +000011164
Lev Walkin8e8b5482004-06-17 23:42:48 +000011165
Lev Walkin8e8b5482004-06-17 23:42:48 +000011166
Lev Walkin8e8b5482004-06-17 23:42:48 +000011167
Lev Walkin8e8b5482004-06-17 23:42:48 +000011168
Lev Walkin8e8b5482004-06-17 23:42:48 +000011169
Lev Walkin8e8b5482004-06-17 23:42:48 +000011170
Lev Walkin8e8b5482004-06-17 23:42:48 +000011171
Lev Walkin8e8b5482004-06-17 23:42:48 +000011172
Lev Walkin8e8b5482004-06-17 23:42:48 +000011173
Lev Walkin4da95cf2010-10-16 02:46:32 -070011174striplib=
11175old_striplib=
Lev Walkinaef10c32014-01-14 01:47:25 -080011176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011177$as_echo_n "checking whether stripping libraries is possible... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070011178if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11179 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11180 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
Lev Walkinaef10c32014-01-14 01:47:25 -080011181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011182$as_echo "yes" >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070011183else
11184# FIXME - insert some real tests, host_os isn't really good enough
Lev Walkin8e8b5482004-06-17 23:42:48 +000011185 case $host_os in
Lev Walkin4da95cf2010-10-16 02:46:32 -070011186 darwin*)
11187 if test -n "$STRIP" ; then
11188 striplib="$STRIP -x"
11189 old_striplib="$STRIP -S"
Lev Walkinaef10c32014-01-14 01:47:25 -080011190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011191$as_echo "yes" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011192 else
Lev Walkinaef10c32014-01-14 01:47:25 -080011193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011194$as_echo "no" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011195 fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000011196 ;;
11197 *)
Lev Walkinaef10c32014-01-14 01:47:25 -080011198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011199$as_echo "no" >&6; }
Lev Walkinfbf1d282007-12-03 14:58:39 +000011200 ;;
11201 esac
Lev Walkinfbf1d282007-12-03 14:58:39 +000011202fi
11203
11204
Lev Walkin8e8b5482004-06-17 23:42:48 +000011205
Lev Walkin8e8b5482004-06-17 23:42:48 +000011206
Lev Walkin8e8b5482004-06-17 23:42:48 +000011207
11208
Lev Walkin8e8b5482004-06-17 23:42:48 +000011209
Lev Walkin8e8b5482004-06-17 23:42:48 +000011210
Lev Walkin8e8b5482004-06-17 23:42:48 +000011211
Lev Walkin8e8b5482004-06-17 23:42:48 +000011212
Lev Walkin8e8b5482004-06-17 23:42:48 +000011213
Lev Walkin8e8b5482004-06-17 23:42:48 +000011214
Lev Walkin4da95cf2010-10-16 02:46:32 -070011215 # Report which library types will actually be built
Lev Walkinaef10c32014-01-14 01:47:25 -080011216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011217$as_echo_n "checking if libtool supports shared libraries... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011219$as_echo "$can_build_shared" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011220
Lev Walkinaef10c32014-01-14 01:47:25 -080011221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011222$as_echo_n "checking whether to build shared libraries... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070011223 test "$can_build_shared" = "no" && enable_shared=no
Lev Walkin8e8b5482004-06-17 23:42:48 +000011224
Lev Walkin4da95cf2010-10-16 02:46:32 -070011225 # On AIX, shared libraries and static libraries use the same namespace, and
11226 # are all built from PIC.
11227 case $host_os in
11228 aix3*)
Lev Walkinfbf1d282007-12-03 14:58:39 +000011229 test "$enable_shared" = yes && enable_static=no
Lev Walkin4da95cf2010-10-16 02:46:32 -070011230 if test -n "$RANLIB"; then
11231 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11232 postinstall_cmds='$RANLIB $lib'
11233 fi
11234 ;;
11235
11236 aix[4-9]*)
11237 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11238 test "$enable_shared" = yes && enable_static=no
11239 fi
11240 ;;
11241 esac
Lev Walkinaef10c32014-01-14 01:47:25 -080011242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011243$as_echo "$enable_shared" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011244
Lev Walkinaef10c32014-01-14 01:47:25 -080011245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011246$as_echo_n "checking whether to build static libraries... " >&6; }
Lev Walkin4da95cf2010-10-16 02:46:32 -070011247 # Make sure either enable_shared or enable_static is yes.
11248 test "$enable_shared" = yes || enable_static=yes
Lev Walkinaef10c32014-01-14 01:47:25 -080011249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011250$as_echo "$enable_static" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011251
Lev Walkin8e8b5482004-06-17 23:42:48 +000011252
Lev Walkin8e8b5482004-06-17 23:42:48 +000011253
Lev Walkin27fd0b62007-08-27 23:57:45 +000011254
Lev Walkin8e8b5482004-06-17 23:42:48 +000011255fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000011256ac_ext=c
11257ac_cpp='$CPP $CPPFLAGS'
11258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11260ac_compiler_gnu=$ac_cv_c_compiler_gnu
11261
11262CC="$lt_save_CC"
11263
Lev Walkin8e8b5482004-06-17 23:42:48 +000011264
Lev Walkin8e8b5482004-06-17 23:42:48 +000011265
11266
Lev Walkin8e8b5482004-06-17 23:42:48 +000011267
Lev Walkin8e8b5482004-06-17 23:42:48 +000011268
Lev Walkin8e8b5482004-06-17 23:42:48 +000011269
Lev Walkin8e8b5482004-06-17 23:42:48 +000011270
Lev Walkin8e8b5482004-06-17 23:42:48 +000011271
Lev Walkin8e8b5482004-06-17 23:42:48 +000011272
Lev Walkinfbf1d282007-12-03 14:58:39 +000011273
Lev Walkin8e8b5482004-06-17 23:42:48 +000011274
11275
Lev Walkin4da95cf2010-10-16 02:46:32 -070011276 ac_config_commands="$ac_config_commands libtool"
Lev Walkinfbf1d282007-12-03 14:58:39 +000011277
Lev Walkinfbf1d282007-12-03 14:58:39 +000011278
11279
Lev Walkinfbf1d282007-12-03 14:58:39 +000011280
Lev Walkin4da95cf2010-10-16 02:46:32 -070011281# Only expand once:
Lev Walkin8e8b5482004-06-17 23:42:48 +000011282
Lev Walkinf15320b2004-06-03 03:38:44 +000011283
11284
Lev Walkinf15320b2004-06-03 03:38:44 +000011285ac_ext=c
11286ac_cpp='$CPP $CPPFLAGS'
11287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11289ac_compiler_gnu=$ac_cv_c_compiler_gnu
11290if test -n "$ac_tool_prefix"; then
11291 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11292set dummy ${ac_tool_prefix}gcc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080011293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011294$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011295if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011296 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011297else
11298 if test -n "$CC"; then
11299 ac_cv_prog_CC="$CC" # Let the user override the test.
11300else
11301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11302for as_dir in $PATH
11303do
11304 IFS=$as_save_IFS
11305 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080011306 for ac_exec_ext in '' $ac_executable_extensions; do
11307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011308 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Lev Walkinaef10c32014-01-14 01:47:25 -080011309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011310 break 2
11311 fi
11312done
Lev Walkinaef10c32014-01-14 01:47:25 -080011313 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011314IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011315
11316fi
11317fi
11318CC=$ac_cv_prog_CC
11319if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080011320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011321$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011322else
Lev Walkinaef10c32014-01-14 01:47:25 -080011323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011324$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011325fi
11326
Lev Walkin27fd0b62007-08-27 23:57:45 +000011327
Lev Walkinf15320b2004-06-03 03:38:44 +000011328fi
11329if test -z "$ac_cv_prog_CC"; then
11330 ac_ct_CC=$CC
11331 # Extract the first word of "gcc", so it can be a program name with args.
11332set dummy gcc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080011333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011334$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011335if ${ac_cv_prog_ac_ct_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011336 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011337else
11338 if test -n "$ac_ct_CC"; then
11339 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11340else
11341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11342for as_dir in $PATH
11343do
11344 IFS=$as_save_IFS
11345 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080011346 for ac_exec_ext in '' $ac_executable_extensions; do
11347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011348 ac_cv_prog_ac_ct_CC="gcc"
Lev Walkinaef10c32014-01-14 01:47:25 -080011349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011350 break 2
11351 fi
11352done
Lev Walkinaef10c32014-01-14 01:47:25 -080011353 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011354IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011355
11356fi
11357fi
11358ac_ct_CC=$ac_cv_prog_ac_ct_CC
11359if test -n "$ac_ct_CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080011360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011361$as_echo "$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011362else
Lev Walkinaef10c32014-01-14 01:47:25 -080011363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011364$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011365fi
11366
Lev Walkin27fd0b62007-08-27 23:57:45 +000011367 if test "x$ac_ct_CC" = x; then
11368 CC=""
11369 else
11370 case $cross_compiling:$ac_tool_warned in
11371yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -080011372{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011373$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000011374ac_tool_warned=yes ;;
11375esac
11376 CC=$ac_ct_CC
11377 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011378else
11379 CC="$ac_cv_prog_CC"
11380fi
11381
11382if test -z "$CC"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011383 if test -n "$ac_tool_prefix"; then
11384 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Lev Walkinf15320b2004-06-03 03:38:44 +000011385set dummy ${ac_tool_prefix}cc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080011386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011387$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011388if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011389 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011390else
11391 if test -n "$CC"; then
11392 ac_cv_prog_CC="$CC" # Let the user override the test.
11393else
11394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11395for as_dir in $PATH
11396do
11397 IFS=$as_save_IFS
11398 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080011399 for ac_exec_ext in '' $ac_executable_extensions; do
11400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011401 ac_cv_prog_CC="${ac_tool_prefix}cc"
Lev Walkinaef10c32014-01-14 01:47:25 -080011402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011403 break 2
11404 fi
11405done
Lev Walkinaef10c32014-01-14 01:47:25 -080011406 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011407IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011408
11409fi
11410fi
11411CC=$ac_cv_prog_CC
11412if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080011413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011414$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011415else
Lev Walkinaef10c32014-01-14 01:47:25 -080011416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011417$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011418fi
11419
Lev Walkin27fd0b62007-08-27 23:57:45 +000011420
Lev Walkinf15320b2004-06-03 03:38:44 +000011421 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011422fi
11423if test -z "$CC"; then
11424 # Extract the first word of "cc", so it can be a program name with args.
11425set dummy cc; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080011426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011427$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011428if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011429 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011430else
11431 if test -n "$CC"; then
11432 ac_cv_prog_CC="$CC" # Let the user override the test.
11433else
11434 ac_prog_rejected=no
11435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11436for as_dir in $PATH
11437do
11438 IFS=$as_save_IFS
11439 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080011440 for ac_exec_ext in '' $ac_executable_extensions; do
11441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011442 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11443 ac_prog_rejected=yes
11444 continue
11445 fi
11446 ac_cv_prog_CC="cc"
Lev Walkinaef10c32014-01-14 01:47:25 -080011447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011448 break 2
11449 fi
11450done
Lev Walkinaef10c32014-01-14 01:47:25 -080011451 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011452IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011453
11454if test $ac_prog_rejected = yes; then
11455 # We found a bogon in the path, so make sure we never use it.
11456 set dummy $ac_cv_prog_CC
11457 shift
11458 if test $# != 0; then
11459 # We chose a different compiler from the bogus one.
11460 # However, it has the same basename, so the bogon will be chosen
11461 # first if we set CC to just the basename; use the full file name.
11462 shift
11463 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11464 fi
11465fi
11466fi
11467fi
11468CC=$ac_cv_prog_CC
11469if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080011470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011471$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011472else
Lev Walkinaef10c32014-01-14 01:47:25 -080011473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011474$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011475fi
11476
Lev Walkin27fd0b62007-08-27 23:57:45 +000011477
Lev Walkinf15320b2004-06-03 03:38:44 +000011478fi
11479if test -z "$CC"; then
11480 if test -n "$ac_tool_prefix"; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000011481 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +000011482 do
11483 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11484set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080011485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011486$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011487if ${ac_cv_prog_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011488 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011489else
11490 if test -n "$CC"; then
11491 ac_cv_prog_CC="$CC" # Let the user override the test.
11492else
11493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11494for as_dir in $PATH
11495do
11496 IFS=$as_save_IFS
11497 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080011498 for ac_exec_ext in '' $ac_executable_extensions; do
11499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011500 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -080011501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011502 break 2
11503 fi
11504done
Lev Walkinaef10c32014-01-14 01:47:25 -080011505 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011506IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011507
11508fi
11509fi
11510CC=$ac_cv_prog_CC
11511if test -n "$CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080011512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011513$as_echo "$CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011514else
Lev Walkinaef10c32014-01-14 01:47:25 -080011515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011516$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011517fi
11518
Lev Walkin27fd0b62007-08-27 23:57:45 +000011519
Lev Walkinf15320b2004-06-03 03:38:44 +000011520 test -n "$CC" && break
11521 done
11522fi
11523if test -z "$CC"; then
11524 ac_ct_CC=$CC
Lev Walkin27fd0b62007-08-27 23:57:45 +000011525 for ac_prog in cl.exe
Lev Walkinf15320b2004-06-03 03:38:44 +000011526do
11527 # Extract the first word of "$ac_prog", so it can be a program name with args.
11528set dummy $ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080011529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011530$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011531if ${ac_cv_prog_ac_ct_CC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011532 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011533else
11534 if test -n "$ac_ct_CC"; then
11535 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11536else
11537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11538for as_dir in $PATH
11539do
11540 IFS=$as_save_IFS
11541 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080011542 for ac_exec_ext in '' $ac_executable_extensions; do
11543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000011544 ac_cv_prog_ac_ct_CC="$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -080011545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000011546 break 2
11547 fi
11548done
Lev Walkinaef10c32014-01-14 01:47:25 -080011549 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011550IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000011551
11552fi
11553fi
11554ac_ct_CC=$ac_cv_prog_ac_ct_CC
11555if test -n "$ac_ct_CC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080011556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011557$as_echo "$ac_ct_CC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011558else
Lev Walkinaef10c32014-01-14 01:47:25 -080011559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011560$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011561fi
11562
Lev Walkin27fd0b62007-08-27 23:57:45 +000011563
Lev Walkinf15320b2004-06-03 03:38:44 +000011564 test -n "$ac_ct_CC" && break
11565done
11566
Lev Walkin27fd0b62007-08-27 23:57:45 +000011567 if test "x$ac_ct_CC" = x; then
11568 CC=""
11569 else
11570 case $cross_compiling:$ac_tool_warned in
11571yes:)
Lev Walkinaef10c32014-01-14 01:47:25 -080011572{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011573$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000011574ac_tool_warned=yes ;;
11575esac
11576 CC=$ac_ct_CC
11577 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011578fi
11579
11580fi
11581
11582
Lev Walkinaef10c32014-01-14 01:47:25 -080011583test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011584$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -080011585as_fn_error $? "no acceptable C compiler found in \$PATH
11586See \`config.log' for more details" "$LINENO" 5; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011587
11588# Provide some information about the compiler.
Lev Walkinaef10c32014-01-14 01:47:25 -080011589$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011590set X $ac_compile
11591ac_compiler=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080011592for ac_option in --version -v -V -qversion; do
11593 { { ac_try="$ac_compiler $ac_option >&5"
Lev Walkin27fd0b62007-08-27 23:57:45 +000011594case "(($ac_try" in
11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596 *) ac_try_echo=$ac_try;;
11597esac
Lev Walkinaef10c32014-01-14 01:47:25 -080011598eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11599$as_echo "$ac_try_echo"; } >&5
11600 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Lev Walkinf15320b2004-06-03 03:38:44 +000011601 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -080011602 if test -s conftest.err; then
11603 sed '10a\
11604... rest of stderr output deleted ...
11605 10q' conftest.err >conftest.er1
11606 cat conftest.er1 >&5
11607 fi
11608 rm -f conftest.er1 conftest.err
11609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11610 test $ac_status = 0; }
11611done
Lev Walkinf15320b2004-06-03 03:38:44 +000011612
Lev Walkinaef10c32014-01-14 01:47:25 -080011613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011614$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011615if ${ac_cv_c_compiler_gnu+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011616 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011617else
Lev Walkinaef10c32014-01-14 01:47:25 -080011618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011619/* end confdefs.h. */
11620
11621int
11622main ()
11623{
11624#ifndef __GNUC__
11625 choke me
11626#endif
11627
11628 ;
11629 return 0;
11630}
11631_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011632if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000011633 ac_compiler_gnu=yes
11634else
Lev Walkinaef10c32014-01-14 01:47:25 -080011635 ac_compiler_gnu=no
Lev Walkinf15320b2004-06-03 03:38:44 +000011636fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011638ac_cv_c_compiler_gnu=$ac_compiler_gnu
11639
11640fi
Lev Walkinaef10c32014-01-14 01:47:25 -080011641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011642$as_echo "$ac_cv_c_compiler_gnu" >&6; }
11643if test $ac_compiler_gnu = yes; then
11644 GCC=yes
11645else
11646 GCC=
11647fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011648ac_test_CFLAGS=${CFLAGS+set}
11649ac_save_CFLAGS=$CFLAGS
Lev Walkinaef10c32014-01-14 01:47:25 -080011650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011651$as_echo_n "checking whether $CC accepts -g... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011652if ${ac_cv_prog_cc_g+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011653 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011654else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011655 ac_save_c_werror_flag=$ac_c_werror_flag
11656 ac_c_werror_flag=yes
11657 ac_cv_prog_cc_g=no
11658 CFLAGS="-g"
Lev Walkinaef10c32014-01-14 01:47:25 -080011659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011660/* end confdefs.h. */
11661
11662int
11663main ()
11664{
11665
11666 ;
11667 return 0;
11668}
11669_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011670if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000011671 ac_cv_prog_cc_g=yes
11672else
Lev Walkinaef10c32014-01-14 01:47:25 -080011673 CFLAGS=""
11674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +000011675/* end confdefs.h. */
11676
11677int
11678main ()
11679{
11680
11681 ;
11682 return 0;
11683}
11684_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011685if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +000011686
Lev Walkinaef10c32014-01-14 01:47:25 -080011687else
11688 ac_c_werror_flag=$ac_save_c_werror_flag
Lev Walkin27fd0b62007-08-27 23:57:45 +000011689 CFLAGS="-g"
Lev Walkinaef10c32014-01-14 01:47:25 -080011690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +000011691/* end confdefs.h. */
11692
11693int
11694main ()
11695{
11696
11697 ;
11698 return 0;
11699}
11700_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011701if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +000011702 ac_cv_prog_cc_g=yes
Lev Walkinf15320b2004-06-03 03:38:44 +000011703fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011705fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11707fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11709 ac_c_werror_flag=$ac_save_c_werror_flag
11710fi
Lev Walkinaef10c32014-01-14 01:47:25 -080011711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011712$as_echo "$ac_cv_prog_cc_g" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011713if test "$ac_test_CFLAGS" = set; then
11714 CFLAGS=$ac_save_CFLAGS
11715elif test $ac_cv_prog_cc_g = yes; then
11716 if test "$GCC" = yes; then
11717 CFLAGS="-g -O2"
11718 else
11719 CFLAGS="-g"
11720 fi
11721else
11722 if test "$GCC" = yes; then
11723 CFLAGS="-O2"
11724 else
11725 CFLAGS=
11726 fi
11727fi
Lev Walkinaef10c32014-01-14 01:47:25 -080011728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011729$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011730if ${ac_cv_prog_cc_c89+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011731 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011732else
Lev Walkin27fd0b62007-08-27 23:57:45 +000011733 ac_cv_prog_cc_c89=no
Lev Walkinf15320b2004-06-03 03:38:44 +000011734ac_save_CC=$CC
Lev Walkinaef10c32014-01-14 01:47:25 -080011735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011736/* end confdefs.h. */
11737#include <stdarg.h>
11738#include <stdio.h>
Lev Walkinaef10c32014-01-14 01:47:25 -080011739struct stat;
Lev Walkinf15320b2004-06-03 03:38:44 +000011740/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11741struct buf { int x; };
11742FILE * (*rcsopen) (struct buf *, struct stat *, int);
11743static char *e (p, i)
11744 char **p;
11745 int i;
11746{
11747 return p[i];
11748}
11749static char *f (char * (*g) (char **, int), char **p, ...)
11750{
11751 char *s;
11752 va_list v;
11753 va_start (v,p);
11754 s = g (p, va_arg (v,int));
11755 va_end (v);
11756 return s;
11757}
Lev Walkin8e8b5482004-06-17 23:42:48 +000011758
11759/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11760 function prototypes and stuff, but not '\xHH' hex character constants.
11761 These don't provoke an error unfortunately, instead are silently treated
Lev Walkin27fd0b62007-08-27 23:57:45 +000011762 as 'x'. The following induces an error, until -std is added to get
Lev Walkin8e8b5482004-06-17 23:42:48 +000011763 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11764 array size at least. It's necessary to write '\x00'==0 to get something
Lev Walkin27fd0b62007-08-27 23:57:45 +000011765 that's true only with -std. */
Lev Walkin8e8b5482004-06-17 23:42:48 +000011766int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11767
Lev Walkin27fd0b62007-08-27 23:57:45 +000011768/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11769 inside strings and character constants. */
11770#define FOO(x) 'x'
11771int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11772
Lev Walkinf15320b2004-06-03 03:38:44 +000011773int test (int i, double x);
11774struct s1 {int (*f) (int a);};
11775struct s2 {int (*f) (double a);};
11776int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11777int argc;
11778char **argv;
11779int
11780main ()
11781{
11782return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11783 ;
11784 return 0;
11785}
11786_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000011787for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11788 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Lev Walkinf15320b2004-06-03 03:38:44 +000011789do
11790 CC="$ac_save_CC $ac_arg"
Lev Walkinaef10c32014-01-14 01:47:25 -080011791 if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +000011792 ac_cv_prog_cc_c89=$ac_arg
Lev Walkinf15320b2004-06-03 03:38:44 +000011793fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011794rm -f core conftest.err conftest.$ac_objext
11795 test "x$ac_cv_prog_cc_c89" != "xno" && break
Lev Walkinf15320b2004-06-03 03:38:44 +000011796done
Lev Walkin27fd0b62007-08-27 23:57:45 +000011797rm -f conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011798CC=$ac_save_CC
11799
11800fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000011801# AC_CACHE_VAL
11802case "x$ac_cv_prog_cc_c89" in
11803 x)
Lev Walkinaef10c32014-01-14 01:47:25 -080011804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011805$as_echo "none needed" >&6; } ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000011806 xno)
Lev Walkinaef10c32014-01-14 01:47:25 -080011807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011808$as_echo "unsupported" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000011809 *)
Lev Walkin27fd0b62007-08-27 23:57:45 +000011810 CC="$CC $ac_cv_prog_cc_c89"
Lev Walkinaef10c32014-01-14 01:47:25 -080011811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011812$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000011813esac
Lev Walkinaef10c32014-01-14 01:47:25 -080011814if test "x$ac_cv_prog_cc_c89" != xno; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000011815
Lev Walkinaef10c32014-01-14 01:47:25 -080011816fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011817
Lev Walkinf15320b2004-06-03 03:38:44 +000011818ac_ext=c
11819ac_cpp='$CPP $CPPFLAGS'
11820ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11821ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11822ac_compiler_gnu=$ac_cv_c_compiler_gnu
11823
11824depcc="$CC" am_compiler_list=
11825
Lev Walkinaef10c32014-01-14 01:47:25 -080011826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011827$as_echo_n "checking dependency style of $depcc... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080011828if ${am_cv_CC_dependencies_compiler_type+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011829 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011830else
11831 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11832 # We make a subdir and do the tests there. Otherwise we can end up
11833 # making bogus files that we don't know about and never remove. For
11834 # instance it was reported that on HP-UX the gcc test will end up
11835 # making a dummy file named `D' -- because `-MD' means `put the output
11836 # in D'.
11837 mkdir conftest.dir
11838 # Copy depcomp to subdir because otherwise we won't find it if we're
11839 # using a relative directory.
11840 cp "$am_depcomp" conftest.dir
11841 cd conftest.dir
Lev Walkin8e8b5482004-06-17 23:42:48 +000011842 # We will build objects and dependencies in a subdirectory because
11843 # it helps to detect inapplicable dependency modes. For instance
11844 # both Tru64's cc and ICC support -MD to output dependencies as a
11845 # side effect of compilation, but ICC will put the dependencies in
11846 # the current directory while Tru64 will put them in the object
11847 # directory.
11848 mkdir sub
Lev Walkinf15320b2004-06-03 03:38:44 +000011849
11850 am_cv_CC_dependencies_compiler_type=none
11851 if test "$am_compiler_list" = ""; then
11852 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11853 fi
Lev Walkinb3751942012-09-02 19:36:47 -070011854 am__universal=false
11855 case " $depcc " in #(
11856 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11857 esac
11858
Lev Walkinf15320b2004-06-03 03:38:44 +000011859 for depmode in $am_compiler_list; do
Lev Walkin8e8b5482004-06-17 23:42:48 +000011860 # Setup a source with many dependencies, because some compilers
11861 # like to wrap large dependency lists on column 80 (with \), and
11862 # we should not choose a depcomp mode which is confused by this.
11863 #
Lev Walkinf15320b2004-06-03 03:38:44 +000011864 # We need to recreate these files for each test, as the compiler may
11865 # overwrite some of them when testing with obscure command lines.
11866 # This happens at least with the AIX C compiler.
Lev Walkin8e8b5482004-06-17 23:42:48 +000011867 : > sub/conftest.c
11868 for i in 1 2 3 4 5 6; do
11869 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11870 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11871 # Solaris 8's {/usr,}/bin/sh.
11872 touch sub/conftst$i.h
11873 done
11874 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
Lev Walkinf15320b2004-06-03 03:38:44 +000011875
Lev Walkinb3751942012-09-02 19:36:47 -070011876 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11877 # mode. It turns out that the SunPro C++ compiler does not properly
11878 # handle `-M -o', and we need to detect this. Also, some Intel
11879 # versions had trouble with output in subdirs
11880 am__obj=sub/conftest.${OBJEXT-o}
11881 am__minus_obj="-o $am__obj"
Lev Walkinf15320b2004-06-03 03:38:44 +000011882 case $depmode in
Lev Walkinb3751942012-09-02 19:36:47 -070011883 gcc)
11884 # This depmode causes a compiler race in universal mode.
11885 test "$am__universal" = false || continue
11886 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000011887 nosideeffect)
11888 # after this tag, mechanisms are not by side-effect, so they'll
11889 # only be used when explicitly requested
11890 if test "x$enable_dependency_tracking" = xyes; then
11891 continue
11892 else
11893 break
11894 fi
11895 ;;
Lev Walkinb3751942012-09-02 19:36:47 -070011896 msvisualcpp | msvcmsys)
11897 # This compiler won't grok `-c -o', but also, the minuso test has
11898 # not run yet. These depmodes are late enough in the game, and
11899 # so weak that their functioning should not be impacted.
11900 am__obj=conftest.${OBJEXT-o}
11901 am__minus_obj=
11902 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000011903 none) break ;;
11904 esac
Lev Walkinf15320b2004-06-03 03:38:44 +000011905 if depmode=$depmode \
Lev Walkinb3751942012-09-02 19:36:47 -070011906 source=sub/conftest.c object=$am__obj \
Lev Walkin8e8b5482004-06-17 23:42:48 +000011907 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
Lev Walkinb3751942012-09-02 19:36:47 -070011908 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
Lev Walkin8e8b5482004-06-17 23:42:48 +000011909 >/dev/null 2>conftest.err &&
Lev Walkin4c776e52010-11-08 02:07:31 -080011910 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkin8e8b5482004-06-17 23:42:48 +000011911 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinb3751942012-09-02 19:36:47 -070011912 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
Lev Walkinf15320b2004-06-03 03:38:44 +000011913 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
Lev Walkin8e8b5482004-06-17 23:42:48 +000011914 # icc doesn't choke on unknown options, it will just issue warnings
11915 # or remarks (even with -Werror). So we grep stderr for any message
11916 # that says an option was ignored or not supported.
11917 # When given -MP, icc 7.0 and 7.1 complain thusly:
11918 # icc: Command line warning: ignoring option '-M'; no argument required
11919 # The diagnosis changed in icc 8.0:
11920 # icc: Command line remark: option '-MP' not supported
11921 if (grep 'ignoring option' conftest.err ||
11922 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11923 am_cv_CC_dependencies_compiler_type=$depmode
11924 break
11925 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011926 fi
11927 done
11928
11929 cd ..
11930 rm -rf conftest.dir
11931else
11932 am_cv_CC_dependencies_compiler_type=none
11933fi
11934
11935fi
Lev Walkinaef10c32014-01-14 01:47:25 -080011936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011937$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
Lev Walkin8e8b5482004-06-17 23:42:48 +000011938CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11939
Lev Walkin4c776e52010-11-08 02:07:31 -080011940 if
Lev Walkin8e8b5482004-06-17 23:42:48 +000011941 test "x$enable_dependency_tracking" != xno \
11942 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11943 am__fastdepCC_TRUE=
11944 am__fastdepCC_FALSE='#'
11945else
11946 am__fastdepCC_TRUE='#'
11947 am__fastdepCC_FALSE=
11948fi
Lev Walkinf15320b2004-06-03 03:38:44 +000011949
11950
11951ac_ext=c
11952ac_cpp='$CPP $CPPFLAGS'
11953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11955ac_compiler_gnu=$ac_cv_c_compiler_gnu
Lev Walkinaef10c32014-01-14 01:47:25 -080011956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070011957$as_echo_n "checking how to run the C preprocessor... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000011958# On Suns, sometimes $CPP names a directory.
11959if test -n "$CPP" && test -d "$CPP"; then
11960 CPP=
11961fi
11962if test -z "$CPP"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080011963 if ${ac_cv_prog_CPP+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070011964 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000011965else
11966 # Double quotes because CPP needs to be expanded
11967 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
11968 do
11969 ac_preproc_ok=false
11970for ac_c_preproc_warn_flag in '' yes
11971do
11972 # Use a header file that comes with gcc, so configuring glibc
11973 # with a fresh cross-compiler works.
11974 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11975 # <limits.h> exists even on freestanding compilers.
11976 # On the NeXT, cc -E runs the code through the compiler's parser,
11977 # not just through cpp. "Syntax error" is here to catch this case.
Lev Walkinaef10c32014-01-14 01:47:25 -080011978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011979/* end confdefs.h. */
11980#ifdef __STDC__
11981# include <limits.h>
11982#else
11983# include <assert.h>
11984#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000011985 Syntax error
Lev Walkinf15320b2004-06-03 03:38:44 +000011986_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080011987if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000011988
Lev Walkinaef10c32014-01-14 01:47:25 -080011989else
Lev Walkinf15320b2004-06-03 03:38:44 +000011990 # Broken: fails on valid input.
11991continue
11992fi
Lev Walkinaef10c32014-01-14 01:47:25 -080011993rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011994
Lev Walkin27fd0b62007-08-27 23:57:45 +000011995 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkinf15320b2004-06-03 03:38:44 +000011996 # can be detected and how.
Lev Walkinaef10c32014-01-14 01:47:25 -080011997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000011998/* end confdefs.h. */
11999#include <ac_nonexistent.h>
12000_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012001if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012002 # Broken: success on invalid input.
12003continue
12004else
Lev Walkinf15320b2004-06-03 03:38:44 +000012005 # Passes both tests.
12006ac_preproc_ok=:
12007break
12008fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012009rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012010
12011done
12012# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Lev Walkinaef10c32014-01-14 01:47:25 -080012013rm -f conftest.i conftest.err conftest.$ac_ext
12014if $ac_preproc_ok; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012015 break
12016fi
12017
12018 done
12019 ac_cv_prog_CPP=$CPP
12020
12021fi
12022 CPP=$ac_cv_prog_CPP
12023else
12024 ac_cv_prog_CPP=$CPP
12025fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012027$as_echo "$CPP" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012028ac_preproc_ok=false
12029for ac_c_preproc_warn_flag in '' yes
12030do
12031 # Use a header file that comes with gcc, so configuring glibc
12032 # with a fresh cross-compiler works.
12033 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12034 # <limits.h> exists even on freestanding compilers.
12035 # On the NeXT, cc -E runs the code through the compiler's parser,
12036 # not just through cpp. "Syntax error" is here to catch this case.
Lev Walkinaef10c32014-01-14 01:47:25 -080012037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012038/* end confdefs.h. */
12039#ifdef __STDC__
12040# include <limits.h>
12041#else
12042# include <assert.h>
12043#endif
Lev Walkin8e8b5482004-06-17 23:42:48 +000012044 Syntax error
Lev Walkinf15320b2004-06-03 03:38:44 +000012045_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012046if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012047
Lev Walkinaef10c32014-01-14 01:47:25 -080012048else
Lev Walkinf15320b2004-06-03 03:38:44 +000012049 # Broken: fails on valid input.
12050continue
12051fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012052rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012053
Lev Walkin27fd0b62007-08-27 23:57:45 +000012054 # OK, works on sane cases. Now check whether nonexistent headers
Lev Walkinf15320b2004-06-03 03:38:44 +000012055 # can be detected and how.
Lev Walkinaef10c32014-01-14 01:47:25 -080012056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012057/* end confdefs.h. */
12058#include <ac_nonexistent.h>
12059_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012060if ac_fn_c_try_cpp "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012061 # Broken: success on invalid input.
12062continue
12063else
Lev Walkinf15320b2004-06-03 03:38:44 +000012064 # Passes both tests.
12065ac_preproc_ok=:
12066break
12067fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012068rm -f conftest.err conftest.i conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012069
12070done
12071# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Lev Walkinaef10c32014-01-14 01:47:25 -080012072rm -f conftest.i conftest.err conftest.$ac_ext
12073if $ac_preproc_ok; then :
12074
Lev Walkinf15320b2004-06-03 03:38:44 +000012075else
Lev Walkinaef10c32014-01-14 01:47:25 -080012076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012077$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Lev Walkinaef10c32014-01-14 01:47:25 -080012078as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
12079See \`config.log' for more details" "$LINENO" 5; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012080fi
12081
12082ac_ext=c
12083ac_cpp='$CPP $CPPFLAGS'
12084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12086ac_compiler_gnu=$ac_cv_c_compiler_gnu
12087
Lev Walkinb3751942012-09-02 19:36:47 -070012088
Lev Walkinaef10c32014-01-14 01:47:25 -080012089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012090$as_echo_n "checking whether ln -s works... " >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012091LN_S=$as_ln_s
12092if test "$LN_S" = "ln -s"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080012093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012094$as_echo "yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012095else
Lev Walkinaef10c32014-01-14 01:47:25 -080012096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012097$as_echo "no, using $LN_S" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012098fi
12099
Lev Walkinaef10c32014-01-14 01:47:25 -080012100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012101$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12102set x ${MAKE-make}
12103ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Lev Walkinaef10c32014-01-14 01:47:25 -080012104if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012105 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012106else
12107 cat >conftest.make <<\_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000012108SHELL = /bin/sh
Lev Walkinf15320b2004-06-03 03:38:44 +000012109all:
Lev Walkin27fd0b62007-08-27 23:57:45 +000012110 @echo '@@@%%%=$(MAKE)=@@@%%%'
Lev Walkinf15320b2004-06-03 03:38:44 +000012111_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012112# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Lev Walkin27fd0b62007-08-27 23:57:45 +000012113case `${MAKE-make} -f conftest.make 2>/dev/null` in
12114 *@@@%%%=?*=@@@%%%*)
12115 eval ac_cv_prog_make_${ac_make}_set=yes;;
12116 *)
12117 eval ac_cv_prog_make_${ac_make}_set=no;;
12118esac
Lev Walkinf15320b2004-06-03 03:38:44 +000012119rm -f conftest.make
12120fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012121if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Lev Walkinaef10c32014-01-14 01:47:25 -080012122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012123$as_echo "yes" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012124 SET_MAKE=
12125else
Lev Walkinaef10c32014-01-14 01:47:25 -080012126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012127$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012128 SET_MAKE="MAKE=${MAKE-make}"
12129fi
12130
12131for ac_prog in 'bison -y' byacc
12132do
12133 # Extract the first word of "$ac_prog", so it can be a program name with args.
12134set dummy $ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080012135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012136$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012137if ${ac_cv_prog_YACC+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012138 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012139else
12140 if test -n "$YACC"; then
12141 ac_cv_prog_YACC="$YACC" # Let the user override the test.
12142else
12143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12144for as_dir in $PATH
12145do
12146 IFS=$as_save_IFS
12147 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080012148 for ac_exec_ext in '' $ac_executable_extensions; do
12149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012150 ac_cv_prog_YACC="$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -080012151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012152 break 2
12153 fi
12154done
Lev Walkinaef10c32014-01-14 01:47:25 -080012155 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012156IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000012157
12158fi
12159fi
12160YACC=$ac_cv_prog_YACC
12161if test -n "$YACC"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080012162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012163$as_echo "$YACC" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012164else
Lev Walkinaef10c32014-01-14 01:47:25 -080012165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012166$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012167fi
12168
Lev Walkin27fd0b62007-08-27 23:57:45 +000012169
Lev Walkinf15320b2004-06-03 03:38:44 +000012170 test -n "$YACC" && break
12171done
12172test -n "$YACC" || YACC="yacc"
12173
Lev Walkinf15320b2004-06-03 03:38:44 +000012174for ac_prog in flex lex
12175do
12176 # Extract the first word of "$ac_prog", so it can be a program name with args.
12177set dummy $ac_prog; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080012178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012179$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012180if ${ac_cv_prog_LEX+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012181 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012182else
12183 if test -n "$LEX"; then
12184 ac_cv_prog_LEX="$LEX" # Let the user override the test.
12185else
12186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12187for as_dir in $PATH
12188do
12189 IFS=$as_save_IFS
12190 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080012191 for ac_exec_ext in '' $ac_executable_extensions; do
12192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000012193 ac_cv_prog_LEX="$ac_prog"
Lev Walkinaef10c32014-01-14 01:47:25 -080012194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012195 break 2
12196 fi
12197done
Lev Walkinaef10c32014-01-14 01:47:25 -080012198 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012199IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000012200
12201fi
12202fi
12203LEX=$ac_cv_prog_LEX
12204if test -n "$LEX"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080012205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012206$as_echo "$LEX" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012207else
Lev Walkinaef10c32014-01-14 01:47:25 -080012208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012209$as_echo "no" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012210fi
12211
Lev Walkin27fd0b62007-08-27 23:57:45 +000012212
Lev Walkinf15320b2004-06-03 03:38:44 +000012213 test -n "$LEX" && break
12214done
12215test -n "$LEX" || LEX=":"
12216
Lev Walkinf15320b2004-06-03 03:38:44 +000012217if test "x$LEX" != "x:"; then
Lev Walkin4c776e52010-11-08 02:07:31 -080012218 cat >conftest.l <<_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000012219%%
Lev Walkin4c776e52010-11-08 02:07:31 -080012220a { ECHO; }
12221b { REJECT; }
12222c { yymore (); }
12223d { yyless (1); }
Lev Walkinaef10c32014-01-14 01:47:25 -080012224e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
12225 yyless ((input () != 0)); }
Lev Walkin4c776e52010-11-08 02:07:31 -080012226f { unput (yytext[0]); }
12227. { BEGIN INITIAL; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012228%%
Lev Walkin4c776e52010-11-08 02:07:31 -080012229#ifdef YYTEXT_POINTER
12230extern char *yytext;
12231#endif
12232int
12233main (void)
12234{
12235 return ! yylex () + ! yywrap ();
12236}
Lev Walkinf15320b2004-06-03 03:38:44 +000012237_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012238{ { ac_try="$LEX conftest.l"
Lev Walkin27fd0b62007-08-27 23:57:45 +000012239case "(($ac_try" in
12240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12241 *) ac_try_echo=$ac_try;;
12242esac
Lev Walkinaef10c32014-01-14 01:47:25 -080012243eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12244$as_echo "$ac_try_echo"; } >&5
Lev Walkin27fd0b62007-08-27 23:57:45 +000012245 (eval "$LEX conftest.l") 2>&5
Lev Walkinf15320b2004-06-03 03:38:44 +000012246 ac_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -080012247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12248 test $ac_status = 0; }
12249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012250$as_echo_n "checking lex output file root... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012251if ${ac_cv_prog_lex_root+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012252 $as_echo_n "(cached) " >&6
Lev Walkin4c776e52010-11-08 02:07:31 -080012253else
12254
Lev Walkinf15320b2004-06-03 03:38:44 +000012255if test -f lex.yy.c; then
12256 ac_cv_prog_lex_root=lex.yy
12257elif test -f lexyy.c; then
12258 ac_cv_prog_lex_root=lexyy
12259else
Lev Walkinaef10c32014-01-14 01:47:25 -080012260 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +000012261fi
12262fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012264$as_echo "$ac_cv_prog_lex_root" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012265LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
12266
Lev Walkin4c776e52010-11-08 02:07:31 -080012267if test -z "${LEXLIB+set}"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080012268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012269$as_echo_n "checking lex library... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012270if ${ac_cv_lib_lex+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012271 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012272else
Lev Walkin4c776e52010-11-08 02:07:31 -080012273
12274 ac_save_LIBS=$LIBS
12275 ac_cv_lib_lex='none needed'
12276 for ac_lib in '' -lfl -ll; do
12277 LIBS="$ac_lib $ac_save_LIBS"
Lev Walkinaef10c32014-01-14 01:47:25 -080012278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12279/* end confdefs.h. */
Lev Walkinf15320b2004-06-03 03:38:44 +000012280`cat $LEX_OUTPUT_ROOT.c`
12281_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012282if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin4c776e52010-11-08 02:07:31 -080012283 ac_cv_lib_lex=$ac_lib
Lev Walkin4c776e52010-11-08 02:07:31 -080012284fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012285rm -f core conftest.err conftest.$ac_objext \
12286 conftest$ac_exeext conftest.$ac_ext
Lev Walkin4c776e52010-11-08 02:07:31 -080012287 test "$ac_cv_lib_lex" != 'none needed' && break
12288 done
12289 LIBS=$ac_save_LIBS
12290
12291fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012293$as_echo "$ac_cv_lib_lex" >&6; }
Lev Walkin4c776e52010-11-08 02:07:31 -080012294 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
12295fi
12296
12297
Lev Walkinaef10c32014-01-14 01:47:25 -080012298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012299$as_echo_n "checking whether yytext is a pointer... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012300if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012301 $as_echo_n "(cached) " >&6
Lev Walkin4c776e52010-11-08 02:07:31 -080012302else
12303 # POSIX says lex can declare yytext either as a pointer or an array; the
12304# default is implementation-dependent. Figure out which it is, since
12305# not all implementations provide the %pointer and %array declarations.
12306ac_cv_prog_lex_yytext_pointer=no
12307ac_save_LIBS=$LIBS
12308LIBS="$LEXLIB $ac_save_LIBS"
Lev Walkinaef10c32014-01-14 01:47:25 -080012309cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12310/* end confdefs.h. */
12311
12312 #define YYTEXT_POINTER 1
Lev Walkin4c776e52010-11-08 02:07:31 -080012313`cat $LEX_OUTPUT_ROOT.c`
12314_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012315if ac_fn_c_try_link "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012316 ac_cv_prog_lex_yytext_pointer=yes
Lev Walkinf15320b2004-06-03 03:38:44 +000012317fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012318rm -f core conftest.err conftest.$ac_objext \
12319 conftest$ac_exeext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012320LIBS=$ac_save_LIBS
Lev Walkinf15320b2004-06-03 03:38:44 +000012321
12322fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012324$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012325if test $ac_cv_prog_lex_yytext_pointer = yes; then
12326
Lev Walkinaef10c32014-01-14 01:47:25 -080012327$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +000012328
12329fi
Lev Walkin4c776e52010-11-08 02:07:31 -080012330rm -f conftest.l $LEX_OUTPUT_ROOT.c
Lev Walkinf15320b2004-06-03 03:38:44 +000012331
12332fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000012333if test "$LEX" = :; then
12334 LEX=${am_missing_run}flex
12335fi
Lev Walkinc10e06c2005-03-30 05:14:26 +000012336# Extract the first word of "ar", so it can be a program name with args.
12337set dummy ar; ac_word=$2
Lev Walkinaef10c32014-01-14 01:47:25 -080012338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012339$as_echo_n "checking for $ac_word... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012340if ${ac_cv_path_AR+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012341 $as_echo_n "(cached) " >&6
Lev Walkinc10e06c2005-03-30 05:14:26 +000012342else
12343 case $AR in
12344 [\\/]* | ?:[\\/]*)
12345 ac_cv_path_AR="$AR" # Let the user override the test with a path.
12346 ;;
12347 *)
12348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12349as_dummy="$PATH:/usr/ucb:/usr/ccs/bin"
12350for as_dir in $as_dummy
12351do
12352 IFS=$as_save_IFS
12353 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080012354 for ac_exec_ext in '' $ac_executable_extensions; do
12355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Lev Walkinc10e06c2005-03-30 05:14:26 +000012356 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
Lev Walkinaef10c32014-01-14 01:47:25 -080012357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Lev Walkinc10e06c2005-03-30 05:14:26 +000012358 break 2
12359 fi
12360done
Lev Walkinaef10c32014-01-14 01:47:25 -080012361 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000012362IFS=$as_save_IFS
Lev Walkinc10e06c2005-03-30 05:14:26 +000012363
12364 test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
12365 ;;
12366esac
12367fi
12368AR=$ac_cv_path_AR
Lev Walkinc10e06c2005-03-30 05:14:26 +000012369if test -n "$AR"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080012370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012371$as_echo "$AR" >&6; }
Lev Walkinc10e06c2005-03-30 05:14:26 +000012372else
Lev Walkinaef10c32014-01-14 01:47:25 -080012373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012374$as_echo "no" >&6; }
Lev Walkinc10e06c2005-03-30 05:14:26 +000012375fi
Lev Walkinf15320b2004-06-03 03:38:44 +000012376
Lev Walkin27fd0b62007-08-27 23:57:45 +000012377
Lev Walkin5f869d02004-08-23 10:41:38 +000012378case "$host_os" in
Lev Walkin79432302006-03-18 06:39:49 +000012379cygwin)
Lev Walkin59ec6ac2006-03-18 06:25:40 +000012380 case "$target" in
Lev Walkin5f869d02004-08-23 10:41:38 +000012381 *mingw*)
12382 CC="$CC -mno-cygwin"
12383 esac
12384 ;;
Lev Walkin59ec6ac2006-03-18 06:25:40 +000012385esac
12386
Lev Walkin27fd0b62007-08-27 23:57:45 +000012387# Check whether --enable-Werror was given.
Lev Walkinaef10c32014-01-14 01:47:25 -080012388if test "${enable_Werror+set}" = set; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +000012389 enableval=$enable_Werror; enable_werror=$enableval
Lev Walkin04c23172004-09-26 14:18:32 +000012390else
12391 enable_werror=no
Lev Walkin27fd0b62007-08-27 23:57:45 +000012392fi
12393
Lev Walkin04c23172004-09-26 14:18:32 +000012394if test x$enable_werror = xyes; then
Lev Walkinf84cc012014-01-14 02:12:24 -080012395 TESTSUITE_CFLAGS="-Werror -W -Wpointer-arith"
Lev Walkinea552152014-01-14 02:15:13 -080012396 ADD_CFLAGS="-Werror -W -Wpointer-arith"
Lev Walkin04c23172004-09-26 14:18:32 +000012397fi
Lev Walkinf15320b2004-06-03 03:38:44 +000012398
12399
Lev Walkinea552152014-01-14 02:15:13 -080012400
Lev Walkinf84cc012014-01-14 02:12:24 -080012401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wall" >&5
12402$as_echo_n "checking whether C compiler accepts -Wall... " >&6; }
12403if ${ax_cv_check_cflags___Wall+:} false; then :
12404 $as_echo_n "(cached) " >&6
12405else
12406
12407 ax_check_save_flags=$CFLAGS
12408 CFLAGS="$CFLAGS -Wall"
12409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12410/* end confdefs.h. */
12411
12412int
12413main ()
12414{
12415
12416 ;
12417 return 0;
12418}
12419_ACEOF
12420if ac_fn_c_try_compile "$LINENO"; then :
12421 ax_cv_check_cflags___Wall=yes
12422else
12423 ax_cv_check_cflags___Wall=no
12424fi
12425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12426 CFLAGS=$ax_check_save_flags
12427fi
12428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wall" >&5
12429$as_echo "$ax_cv_check_cflags___Wall" >&6; }
12430if test x"$ax_cv_check_cflags___Wall" = xyes; then :
12431 CFLAGS="$CFLAGS -Wall"
12432else
12433 :
12434fi
12435
12436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wcast-qual" >&5
12437$as_echo_n "checking whether C compiler accepts -Wcast-qual... " >&6; }
12438if ${ax_cv_check_cflags___Wcast_qual+:} false; then :
12439 $as_echo_n "(cached) " >&6
12440else
12441
12442 ax_check_save_flags=$CFLAGS
12443 CFLAGS="$CFLAGS -Wcast-qual"
12444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12445/* end confdefs.h. */
12446
12447int
12448main ()
12449{
12450
12451 ;
12452 return 0;
12453}
12454_ACEOF
12455if ac_fn_c_try_compile "$LINENO"; then :
12456 ax_cv_check_cflags___Wcast_qual=yes
12457else
12458 ax_cv_check_cflags___Wcast_qual=no
12459fi
12460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12461 CFLAGS=$ax_check_save_flags
12462fi
12463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wcast_qual" >&5
12464$as_echo "$ax_cv_check_cflags___Wcast_qual" >&6; }
12465if test x"$ax_cv_check_cflags___Wcast_qual" = xyes; then :
12466 CFLAGS="$CFLAGS -Wcast-qual"
12467else
12468 :
12469fi
12470
12471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wchar-subscripts" >&5
12472$as_echo_n "checking whether C compiler accepts -Wchar-subscripts... " >&6; }
12473if ${ax_cv_check_cflags___Wchar_subscripts+:} false; then :
12474 $as_echo_n "(cached) " >&6
12475else
12476
12477 ax_check_save_flags=$CFLAGS
12478 CFLAGS="$CFLAGS -Wchar-subscripts"
12479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12480/* end confdefs.h. */
12481
12482int
12483main ()
12484{
12485
12486 ;
12487 return 0;
12488}
12489_ACEOF
12490if ac_fn_c_try_compile "$LINENO"; then :
12491 ax_cv_check_cflags___Wchar_subscripts=yes
12492else
12493 ax_cv_check_cflags___Wchar_subscripts=no
12494fi
12495rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12496 CFLAGS=$ax_check_save_flags
12497fi
12498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wchar_subscripts" >&5
12499$as_echo "$ax_cv_check_cflags___Wchar_subscripts" >&6; }
12500if test x"$ax_cv_check_cflags___Wchar_subscripts" = xyes; then :
12501 CFLAGS="$CFLAGS -Wchar-subscripts"
12502else
12503 :
12504fi
12505
12506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-prototypes" >&5
12507$as_echo_n "checking whether C compiler accepts -Wmissing-prototypes... " >&6; }
12508if ${ax_cv_check_cflags___Wmissing_prototypes+:} false; then :
12509 $as_echo_n "(cached) " >&6
12510else
12511
12512 ax_check_save_flags=$CFLAGS
12513 CFLAGS="$CFLAGS -Wmissing-prototypes"
12514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12515/* end confdefs.h. */
12516
12517int
12518main ()
12519{
12520
12521 ;
12522 return 0;
12523}
12524_ACEOF
12525if ac_fn_c_try_compile "$LINENO"; then :
12526 ax_cv_check_cflags___Wmissing_prototypes=yes
12527else
12528 ax_cv_check_cflags___Wmissing_prototypes=no
12529fi
12530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12531 CFLAGS=$ax_check_save_flags
12532fi
12533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_prototypes" >&5
12534$as_echo "$ax_cv_check_cflags___Wmissing_prototypes" >&6; }
12535if test x"$ax_cv_check_cflags___Wmissing_prototypes" = xyes; then :
12536 CFLAGS="$CFLAGS -Wmissing-prototypes"
12537else
12538 :
12539fi
12540
12541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wmissing-declarations" >&5
12542$as_echo_n "checking whether C compiler accepts -Wmissing-declarations... " >&6; }
12543if ${ax_cv_check_cflags___Wmissing_declarations+:} false; then :
12544 $as_echo_n "(cached) " >&6
12545else
12546
12547 ax_check_save_flags=$CFLAGS
12548 CFLAGS="$CFLAGS -Wmissing-declarations"
12549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12550/* end confdefs.h. */
12551
12552int
12553main ()
12554{
12555
12556 ;
12557 return 0;
12558}
12559_ACEOF
12560if ac_fn_c_try_compile "$LINENO"; then :
12561 ax_cv_check_cflags___Wmissing_declarations=yes
12562else
12563 ax_cv_check_cflags___Wmissing_declarations=no
12564fi
12565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12566 CFLAGS=$ax_check_save_flags
12567fi
12568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wmissing_declarations" >&5
12569$as_echo "$ax_cv_check_cflags___Wmissing_declarations" >&6; }
12570if test x"$ax_cv_check_cflags___Wmissing_declarations" = xyes; then :
12571 CFLAGS="$CFLAGS -Wmissing-declarations"
12572else
12573 :
12574fi
12575
12576
12577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=cast-align" >&5
12578$as_echo_n "checking whether C compiler accepts -Wno-error=cast-align... " >&6; }
12579if ${ax_cv_check_cflags___Wno_error_cast_align+:} false; then :
12580 $as_echo_n "(cached) " >&6
12581else
12582
12583 ax_check_save_flags=$CFLAGS
12584 CFLAGS="$CFLAGS -Wno-error=cast-align"
12585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12586/* end confdefs.h. */
12587
12588int
12589main ()
12590{
12591
12592 ;
12593 return 0;
12594}
12595_ACEOF
12596if ac_fn_c_try_compile "$LINENO"; then :
12597 ax_cv_check_cflags___Wno_error_cast_align=yes
12598else
12599 ax_cv_check_cflags___Wno_error_cast_align=no
12600fi
12601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12602 CFLAGS=$ax_check_save_flags
12603fi
12604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_cast_align" >&5
12605$as_echo "$ax_cv_check_cflags___Wno_error_cast_align" >&6; }
12606if test x"$ax_cv_check_cflags___Wno_error_cast_align" = xyes; then :
12607 CFLAGS="$CFLAGS -Wno-error=cast-align"
12608else
12609 :
12610fi
12611
12612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=visibility" >&5
12613$as_echo_n "checking whether C compiler accepts -Wno-error=visibility... " >&6; }
12614if ${ax_cv_check_cflags___Wno_error_visibility+:} false; then :
12615 $as_echo_n "(cached) " >&6
12616else
12617
12618 ax_check_save_flags=$CFLAGS
12619 CFLAGS="$CFLAGS -Wno-error=visibility"
12620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621/* end confdefs.h. */
12622
12623int
12624main ()
12625{
12626
12627 ;
12628 return 0;
12629}
12630_ACEOF
12631if ac_fn_c_try_compile "$LINENO"; then :
12632 ax_cv_check_cflags___Wno_error_visibility=yes
12633else
12634 ax_cv_check_cflags___Wno_error_visibility=no
12635fi
12636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12637 CFLAGS=$ax_check_save_flags
12638fi
12639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_visibility" >&5
12640$as_echo "$ax_cv_check_cflags___Wno_error_visibility" >&6; }
12641if test x"$ax_cv_check_cflags___Wno_error_visibility" = xyes; then :
12642 CFLAGS="$CFLAGS -Wno-error=visibility"
12643else
12644 :
12645fi
12646
12647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -Wno-error=parentheses-equality" >&5
12648$as_echo_n "checking whether C compiler accepts -Wno-error=parentheses-equality... " >&6; }
12649if ${ax_cv_check_cflags___Wno_error_parentheses_equality+:} false; then :
12650 $as_echo_n "(cached) " >&6
12651else
12652
12653 ax_check_save_flags=$CFLAGS
12654 CFLAGS="$CFLAGS -Wno-error=parentheses-equality"
12655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12656/* end confdefs.h. */
12657
12658int
12659main ()
12660{
12661
12662 ;
12663 return 0;
12664}
12665_ACEOF
12666if ac_fn_c_try_compile "$LINENO"; then :
12667 ax_cv_check_cflags___Wno_error_parentheses_equality=yes
12668else
12669 ax_cv_check_cflags___Wno_error_parentheses_equality=no
12670fi
12671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12672 CFLAGS=$ax_check_save_flags
12673fi
12674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___Wno_error_parentheses_equality" >&5
12675$as_echo "$ax_cv_check_cflags___Wno_error_parentheses_equality" >&6; }
12676if test x"$ax_cv_check_cflags___Wno_error_parentheses_equality" = xyes; then :
12677 CFLAGS="$CFLAGS -Wno-error=parentheses-equality"
12678else
12679 :
12680fi
Lev Walkinf15320b2004-06-03 03:38:44 +000012681
12682
Lev Walkinaef10c32014-01-14 01:47:25 -080012683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012684$as_echo_n "checking for ANSI C header files... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012685if ${ac_cv_header_stdc+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012686 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012687else
Lev Walkinaef10c32014-01-14 01:47:25 -080012688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012689/* end confdefs.h. */
12690#include <stdlib.h>
12691#include <stdarg.h>
12692#include <string.h>
12693#include <float.h>
12694
12695int
12696main ()
12697{
12698
12699 ;
12700 return 0;
12701}
12702_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012703if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012704 ac_cv_header_stdc=yes
12705else
Lev Walkinaef10c32014-01-14 01:47:25 -080012706 ac_cv_header_stdc=no
Lev Walkinf15320b2004-06-03 03:38:44 +000012707fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012709
12710if test $ac_cv_header_stdc = yes; then
12711 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Lev Walkinaef10c32014-01-14 01:47:25 -080012712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012713/* end confdefs.h. */
12714#include <string.h>
12715
12716_ACEOF
12717if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Lev Walkinaef10c32014-01-14 01:47:25 -080012718 $EGREP "memchr" >/dev/null 2>&1; then :
12719
Lev Walkinf15320b2004-06-03 03:38:44 +000012720else
12721 ac_cv_header_stdc=no
12722fi
Lev Walkinb3751942012-09-02 19:36:47 -070012723rm -f conftest*
Lev Walkinf15320b2004-06-03 03:38:44 +000012724
12725fi
12726
12727if test $ac_cv_header_stdc = yes; then
12728 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Lev Walkinaef10c32014-01-14 01:47:25 -080012729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012730/* end confdefs.h. */
12731#include <stdlib.h>
12732
12733_ACEOF
12734if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Lev Walkinaef10c32014-01-14 01:47:25 -080012735 $EGREP "free" >/dev/null 2>&1; then :
12736
Lev Walkinf15320b2004-06-03 03:38:44 +000012737else
12738 ac_cv_header_stdc=no
12739fi
Lev Walkinb3751942012-09-02 19:36:47 -070012740rm -f conftest*
Lev Walkinf15320b2004-06-03 03:38:44 +000012741
12742fi
12743
12744if test $ac_cv_header_stdc = yes; then
12745 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Lev Walkinaef10c32014-01-14 01:47:25 -080012746 if test "$cross_compiling" = yes; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012747 :
12748else
Lev Walkinaef10c32014-01-14 01:47:25 -080012749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012750/* end confdefs.h. */
12751#include <ctype.h>
Lev Walkin27fd0b62007-08-27 23:57:45 +000012752#include <stdlib.h>
Lev Walkinf15320b2004-06-03 03:38:44 +000012753#if ((' ' & 0x0FF) == 0x020)
12754# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12755# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12756#else
12757# define ISLOWER(c) \
Lev Walkin8e8b5482004-06-17 23:42:48 +000012758 (('a' <= (c) && (c) <= 'i') \
12759 || ('j' <= (c) && (c) <= 'r') \
12760 || ('s' <= (c) && (c) <= 'z'))
Lev Walkinf15320b2004-06-03 03:38:44 +000012761# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12762#endif
12763
12764#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12765int
12766main ()
12767{
12768 int i;
12769 for (i = 0; i < 256; i++)
12770 if (XOR (islower (i), ISLOWER (i))
Lev Walkin8e8b5482004-06-17 23:42:48 +000012771 || toupper (i) != TOUPPER (i))
Lev Walkin27fd0b62007-08-27 23:57:45 +000012772 return 2;
12773 return 0;
Lev Walkinf15320b2004-06-03 03:38:44 +000012774}
12775_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012776if ac_fn_c_try_run "$LINENO"; then :
12777
Lev Walkinf15320b2004-06-03 03:38:44 +000012778else
Lev Walkinaef10c32014-01-14 01:47:25 -080012779 ac_cv_header_stdc=no
Lev Walkinf15320b2004-06-03 03:38:44 +000012780fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012781rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12782 conftest.$ac_objext conftest.beam conftest.$ac_ext
Lev Walkin27fd0b62007-08-27 23:57:45 +000012783fi
12784
Lev Walkinf15320b2004-06-03 03:38:44 +000012785fi
12786fi
Lev Walkinaef10c32014-01-14 01:47:25 -080012787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012788$as_echo "$ac_cv_header_stdc" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000012789if test $ac_cv_header_stdc = yes; then
12790
Lev Walkinaef10c32014-01-14 01:47:25 -080012791$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +000012792
12793fi
12794
Lev Walkin79f54952004-08-13 16:58:19 +000012795for ac_header in sys/param.h
Lev Walkinaef10c32014-01-14 01:47:25 -080012796do :
12797 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
12798if test "x$ac_cv_header_sys_param_h" = xyes; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012799 cat >>confdefs.h <<_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012800#define HAVE_SYS_PARAM_H 1
Lev Walkinf15320b2004-06-03 03:38:44 +000012801_ACEOF
12802
12803fi
12804
12805done
12806
12807
Lev Walkinaef10c32014-01-14 01:47:25 -080012808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070012809$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080012810if ${ac_cv_c_bigendian+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012811 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000012812else
Lev Walkinb3751942012-09-02 19:36:47 -070012813 ac_cv_c_bigendian=unknown
12814 # See if we're dealing with a universal compiler.
Lev Walkinaef10c32014-01-14 01:47:25 -080012815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinb3751942012-09-02 19:36:47 -070012816/* end confdefs.h. */
12817#ifndef __APPLE_CC__
12818 not a universal capable compiler
12819 #endif
12820 typedef int dummy;
12821
12822_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012823if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012824
12825 # Check for potential -arch flags. It is not universal unless
Lev Walkinaef10c32014-01-14 01:47:25 -080012826 # there are at least two -arch flags with different values.
12827 ac_arch=
12828 ac_prev=
12829 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12830 if test -n "$ac_prev"; then
12831 case $ac_word in
12832 i?86 | x86_64 | ppc | ppc64)
12833 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12834 ac_arch=$ac_word
12835 else
12836 ac_cv_c_bigendian=universal
12837 break
12838 fi
12839 ;;
12840 esac
12841 ac_prev=
12842 elif test "x$ac_word" = "x-arch"; then
12843 ac_prev=arch
12844 fi
12845 done
Lev Walkinb3751942012-09-02 19:36:47 -070012846fi
Lev Walkinb3751942012-09-02 19:36:47 -070012847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12848 if test $ac_cv_c_bigendian = unknown; then
12849 # See if sys/param.h defines the BYTE_ORDER macro.
Lev Walkinaef10c32014-01-14 01:47:25 -080012850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012851/* end confdefs.h. */
12852#include <sys/types.h>
Lev Walkinb3751942012-09-02 19:36:47 -070012853 #include <sys/param.h>
Lev Walkinf15320b2004-06-03 03:38:44 +000012854
12855int
12856main ()
12857{
Lev Walkinb3751942012-09-02 19:36:47 -070012858#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12859 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12860 && LITTLE_ENDIAN)
12861 bogus endian macros
12862 #endif
Lev Walkinf15320b2004-06-03 03:38:44 +000012863
12864 ;
12865 return 0;
12866}
12867_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012868if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012869 # It does; now see whether it defined to BIG_ENDIAN or not.
Lev Walkinaef10c32014-01-14 01:47:25 -080012870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012871/* end confdefs.h. */
12872#include <sys/types.h>
Lev Walkinb3751942012-09-02 19:36:47 -070012873 #include <sys/param.h>
Lev Walkinf15320b2004-06-03 03:38:44 +000012874
12875int
12876main ()
12877{
12878#if BYTE_ORDER != BIG_ENDIAN
Lev Walkinb3751942012-09-02 19:36:47 -070012879 not big endian
12880 #endif
Lev Walkinf15320b2004-06-03 03:38:44 +000012881
12882 ;
12883 return 0;
12884}
12885_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012886if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012887 ac_cv_c_bigendian=yes
12888else
Lev Walkinaef10c32014-01-14 01:47:25 -080012889 ac_cv_c_bigendian=no
Lev Walkinf15320b2004-06-03 03:38:44 +000012890fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinb3751942012-09-02 19:36:47 -070012892fi
Lev Walkinb3751942012-09-02 19:36:47 -070012893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12894 fi
12895 if test $ac_cv_c_bigendian = unknown; then
12896 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Lev Walkinaef10c32014-01-14 01:47:25 -080012897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012898/* end confdefs.h. */
Lev Walkinb3751942012-09-02 19:36:47 -070012899#include <limits.h>
12900
Lev Walkinf15320b2004-06-03 03:38:44 +000012901int
12902main ()
12903{
Lev Walkinb3751942012-09-02 19:36:47 -070012904#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12905 bogus endian macros
12906 #endif
12907
Lev Walkinf15320b2004-06-03 03:38:44 +000012908 ;
12909 return 0;
12910}
12911_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012912if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012913 # It does; now see whether it defined to _BIG_ENDIAN or not.
Lev Walkinaef10c32014-01-14 01:47:25 -080012914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinb3751942012-09-02 19:36:47 -070012915/* end confdefs.h. */
12916#include <limits.h>
12917
12918int
12919main ()
12920{
12921#ifndef _BIG_ENDIAN
12922 not big endian
12923 #endif
12924
12925 ;
12926 return 0;
12927}
12928_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012929if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000012930 ac_cv_c_bigendian=yes
Lev Walkinf15320b2004-06-03 03:38:44 +000012931else
Lev Walkinaef10c32014-01-14 01:47:25 -080012932 ac_cv_c_bigendian=no
Lev Walkinb3751942012-09-02 19:36:47 -070012933fi
Lev Walkinb3751942012-09-02 19:36:47 -070012934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinb3751942012-09-02 19:36:47 -070012935fi
Lev Walkinb3751942012-09-02 19:36:47 -070012936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12937 fi
12938 if test $ac_cv_c_bigendian = unknown; then
12939 # Compile a test program.
Lev Walkinaef10c32014-01-14 01:47:25 -080012940 if test "$cross_compiling" = yes; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012941 # Try to guess by grepping values from an object file.
Lev Walkinaef10c32014-01-14 01:47:25 -080012942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinb3751942012-09-02 19:36:47 -070012943/* end confdefs.h. */
12944short int ascii_mm[] =
12945 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12946 short int ascii_ii[] =
12947 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12948 int use_ascii (int i) {
12949 return ascii_mm[i] + ascii_ii[i];
12950 }
12951 short int ebcdic_ii[] =
12952 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12953 short int ebcdic_mm[] =
12954 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12955 int use_ebcdic (int i) {
12956 return ebcdic_mm[i] + ebcdic_ii[i];
12957 }
12958 extern int foo;
12959
12960int
12961main ()
12962{
12963return use_ascii (foo) == use_ebcdic (foo);
12964 ;
12965 return 0;
12966}
12967_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080012968if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinb3751942012-09-02 19:36:47 -070012969 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12970 ac_cv_c_bigendian=yes
12971 fi
12972 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12973 if test "$ac_cv_c_bigendian" = unknown; then
12974 ac_cv_c_bigendian=no
12975 else
12976 # finding both strings is unlikely to happen, but who knows?
12977 ac_cv_c_bigendian=unknown
12978 fi
12979 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000012980fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000012981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012982else
Lev Walkinaef10c32014-01-14 01:47:25 -080012983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000012984/* end confdefs.h. */
Lev Walkin27fd0b62007-08-27 23:57:45 +000012985$ac_includes_default
Lev Walkinf15320b2004-06-03 03:38:44 +000012986int
12987main ()
12988{
Lev Walkin27fd0b62007-08-27 23:57:45 +000012989
Lev Walkinb3751942012-09-02 19:36:47 -070012990 /* Are we little or big endian? From Harbison&Steele. */
12991 union
12992 {
12993 long int l;
12994 char c[sizeof (long int)];
12995 } u;
12996 u.l = 1;
12997 return u.c[sizeof (long int) - 1] == 1;
Lev Walkin27fd0b62007-08-27 23:57:45 +000012998
12999 ;
13000 return 0;
Lev Walkinf15320b2004-06-03 03:38:44 +000013001}
13002_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080013003if ac_fn_c_try_run "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000013004 ac_cv_c_bigendian=no
13005else
Lev Walkinaef10c32014-01-14 01:47:25 -080013006 ac_cv_c_bigendian=yes
Lev Walkinf15320b2004-06-03 03:38:44 +000013007fi
Lev Walkinaef10c32014-01-14 01:47:25 -080013008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13009 conftest.$ac_objext conftest.beam conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013010fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013011
Lev Walkinb3751942012-09-02 19:36:47 -070013012 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013013fi
Lev Walkinaef10c32014-01-14 01:47:25 -080013014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013015$as_echo "$ac_cv_c_bigendian" >&6; }
13016 case $ac_cv_c_bigendian in #(
13017 yes)
Lev Walkinaef10c32014-01-14 01:47:25 -080013018 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Lev Walkinb3751942012-09-02 19:36:47 -070013019;; #(
13020 no)
13021 ;; #(
13022 universal)
Lev Walkinf15320b2004-06-03 03:38:44 +000013023
Lev Walkinaef10c32014-01-14 01:47:25 -080013024$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Lev Walkinb3751942012-09-02 19:36:47 -070013025
13026 ;; #(
13027 *)
Lev Walkinaef10c32014-01-14 01:47:25 -080013028 as_fn_error $? "unknown endianness
13029 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Lev Walkinb3751942012-09-02 19:36:47 -070013030 esac
13031
Lev Walkinaef10c32014-01-14 01:47:25 -080013032ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13033if test "x$ac_cv_type_off_t" = xyes; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000013034
Lev Walkinf15320b2004-06-03 03:38:44 +000013035else
13036
13037cat >>confdefs.h <<_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000013038#define off_t long int
Lev Walkinf15320b2004-06-03 03:38:44 +000013039_ACEOF
13040
13041fi
13042
Lev Walkinaef10c32014-01-14 01:47:25 -080013043ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13044if test "x$ac_cv_type_size_t" = xyes; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000013045
Lev Walkinf15320b2004-06-03 03:38:44 +000013046else
13047
13048cat >>confdefs.h <<_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000013049#define size_t unsigned int
Lev Walkinf15320b2004-06-03 03:38:44 +000013050_ACEOF
13051
13052fi
13053
Lev Walkinaef10c32014-01-14 01:47:25 -080013054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013055$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080013056if ${ac_cv_struct_tm+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070013057 $as_echo_n "(cached) " >&6
Lev Walkinf15320b2004-06-03 03:38:44 +000013058else
Lev Walkinaef10c32014-01-14 01:47:25 -080013059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013060/* end confdefs.h. */
13061#include <sys/types.h>
13062#include <time.h>
13063
13064int
13065main ()
13066{
Lev Walkin4c776e52010-11-08 02:07:31 -080013067struct tm tm;
13068 int *p = &tm.tm_sec;
Lev Walkinb3751942012-09-02 19:36:47 -070013069 return !p;
Lev Walkinf15320b2004-06-03 03:38:44 +000013070 ;
13071 return 0;
13072}
13073_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080013074if ac_fn_c_try_compile "$LINENO"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000013075 ac_cv_struct_tm=time.h
13076else
Lev Walkinaef10c32014-01-14 01:47:25 -080013077 ac_cv_struct_tm=sys/time.h
Lev Walkinf15320b2004-06-03 03:38:44 +000013078fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Lev Walkinf15320b2004-06-03 03:38:44 +000013080fi
Lev Walkinaef10c32014-01-14 01:47:25 -080013081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013082$as_echo "$ac_cv_struct_tm" >&6; }
Lev Walkinf15320b2004-06-03 03:38:44 +000013083if test $ac_cv_struct_tm = sys/time.h; then
13084
Lev Walkinaef10c32014-01-14 01:47:25 -080013085$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
Lev Walkinf15320b2004-06-03 03:38:44 +000013086
13087fi
13088
Lev Walkinaef10c32014-01-14 01:47:25 -080013089ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
13090if test "x$ac_cv_type_intmax_t" = xyes; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000013091
Lev Walkinf15320b2004-06-03 03:38:44 +000013092else
13093
13094cat >>confdefs.h <<_ACEOF
13095#define intmax_t int64_t
13096_ACEOF
13097
13098fi
13099
13100
Lev Walkinb40ec412014-02-24 00:57:18 -080013101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long is longer than 32 bit" >&5
13102$as_echo_n "checking size of long is longer than 32 bit... " >&6; }
13103
13104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105/* end confdefs.h. */
13106#include "confdefs.h"
13107#include <sys/types.h>
13108
13109int
13110main ()
13111{
13112switch (0) case 0: case (sizeof ($1) >= 8):;
13113 ;
13114 return 0;
13115}
13116_ACEOF
13117if ac_fn_c_try_compile "$LINENO"; then :
13118 WIDE_LONG=yes
13119else
13120 WIDE_LONG=no
13121fi
13122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WIDE_LONG" >&5
13124$as_echo "$WIDE_LONG" >&6; }
13125 if test x$WIDE_LONG = xyes; then
13126 TEST_64BIT_TRUE=
13127 TEST_64BIT_FALSE='#'
13128else
13129 TEST_64BIT_TRUE='#'
13130 TEST_64BIT_FALSE=
13131fi
13132
13133
13134
Lev Walkinaef10c32014-01-14 01:47:25 -080013135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getopt" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013136$as_echo_n "checking for library containing getopt... " >&6; }
Lev Walkinaef10c32014-01-14 01:47:25 -080013137if ${ac_cv_search_getopt+:} false; then :
Lev Walkinb3751942012-09-02 19:36:47 -070013138 $as_echo_n "(cached) " >&6
Lev Walkin058e2222007-12-04 00:27:38 +000013139else
13140 ac_func_search_save_LIBS=$LIBS
Lev Walkinaef10c32014-01-14 01:47:25 -080013141cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lev Walkin058e2222007-12-04 00:27:38 +000013142/* end confdefs.h. */
13143
13144/* Override any GCC internal prototype to avoid an error.
13145 Use char because int might match the return type of a GCC
13146 builtin and then its argument prototype would still apply. */
13147#ifdef __cplusplus
13148extern "C"
13149#endif
13150char getopt ();
13151int
13152main ()
13153{
13154return getopt ();
13155 ;
13156 return 0;
13157}
13158_ACEOF
13159for ac_lib in '' iberty; do
13160 if test -z "$ac_lib"; then
13161 ac_res="none required"
13162 else
13163 ac_res=-l$ac_lib
13164 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13165 fi
Lev Walkinaef10c32014-01-14 01:47:25 -080013166 if ac_fn_c_try_link "$LINENO"; then :
Lev Walkin058e2222007-12-04 00:27:38 +000013167 ac_cv_search_getopt=$ac_res
Lev Walkin058e2222007-12-04 00:27:38 +000013168fi
Lev Walkinaef10c32014-01-14 01:47:25 -080013169rm -f core conftest.err conftest.$ac_objext \
13170 conftest$ac_exeext
13171 if ${ac_cv_search_getopt+:} false; then :
Lev Walkin058e2222007-12-04 00:27:38 +000013172 break
13173fi
13174done
Lev Walkinaef10c32014-01-14 01:47:25 -080013175if ${ac_cv_search_getopt+:} false; then :
13176
Lev Walkin058e2222007-12-04 00:27:38 +000013177else
13178 ac_cv_search_getopt=no
13179fi
13180rm conftest.$ac_ext
13181LIBS=$ac_func_search_save_LIBS
13182fi
Lev Walkinaef10c32014-01-14 01:47:25 -080013183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getopt" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013184$as_echo "$ac_cv_search_getopt" >&6; }
Lev Walkin058e2222007-12-04 00:27:38 +000013185ac_res=$ac_cv_search_getopt
Lev Walkinaef10c32014-01-14 01:47:25 -080013186if test "$ac_res" != no; then :
Lev Walkin058e2222007-12-04 00:27:38 +000013187 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13188
13189fi
13190
13191
Lev Walkinf15320b2004-06-03 03:38:44 +000013192for ac_func in strtoimax strtoll
Lev Walkinaef10c32014-01-14 01:47:25 -080013193do :
13194 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13195ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13196if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000013197 cat >>confdefs.h <<_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070013198#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Lev Walkinf15320b2004-06-03 03:38:44 +000013199_ACEOF
13200
13201fi
13202done
13203
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013204for ac_func in mergesort
Lev Walkinaef10c32014-01-14 01:47:25 -080013205do :
13206 ac_fn_c_check_func "$LINENO" "mergesort" "ac_cv_func_mergesort"
13207if test "x$ac_cv_func_mergesort" = xyes; then :
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013208 cat >>confdefs.h <<_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080013209#define HAVE_MERGESORT 1
Lev Walkin49b0a3e2004-06-28 21:22:35 +000013210_ACEOF
13211
13212fi
13213done
13214
Lev Walkin27fd0b62007-08-27 23:57:45 +000013215for ac_func in mkstemps
Lev Walkinaef10c32014-01-14 01:47:25 -080013216do :
13217 ac_fn_c_check_func "$LINENO" "mkstemps" "ac_cv_func_mkstemps"
13218if test "x$ac_cv_func_mkstemps" = xyes; then :
Lev Walkin27fd0b62007-08-27 23:57:45 +000013219 cat >>confdefs.h <<_ACEOF
Lev Walkinaef10c32014-01-14 01:47:25 -080013220#define HAVE_MKSTEMPS 1
Lev Walkin27fd0b62007-08-27 23:57:45 +000013221_ACEOF
13222
13223fi
13224done
Lev Walkinf15320b2004-06-03 03:38:44 +000013225
13226
Lev Walkin69b4f122012-09-04 01:37:14 -070013227ac_config_files="$ac_config_files skeletons/standard-modules/Makefile skeletons/tests/Makefile libasn1compiler/Makefile libasn1parser/Makefile libasn1print/Makefile asn1c/tests/Makefile libasn1fix/Makefile doc/docsrc/Makefile skeletons/Makefile examples/Makefile tests/Makefile asn1c/Makefile doc/Makefile asn1c.spec Makefile"
Lev Walkin27fd0b62007-08-27 23:57:45 +000013228
Lev Walkinf15320b2004-06-03 03:38:44 +000013229cat >confcache <<\_ACEOF
13230# This file is a shell script that caches the results of configure
13231# tests run on this system so they can be shared between configure
13232# scripts and configure runs, see configure's option --config-cache.
13233# It is not useful on other systems. If it contains results you don't
13234# want to keep, you may remove or edit it.
13235#
13236# config.status only pays attention to the cache file if you give it
13237# the --recheck option to rerun configure.
13238#
13239# `ac_cv_env_foo' variables (set or unset) will be overridden when
13240# loading this file, other *unset* `ac_cv_foo' will be assigned the
13241# following values.
13242
13243_ACEOF
13244
13245# The following way of writing the cache mishandles newlines in values,
13246# but we know of no workaround that is simple, portable, and efficient.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013247# So, we kill variables containing newlines.
Lev Walkinf15320b2004-06-03 03:38:44 +000013248# Ultrix sh set writes to stderr and can't be redirected directly,
13249# and sets the high bit in the cache file unless we assign to the vars.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013250(
13251 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13252 eval ac_val=\$$ac_var
13253 case $ac_val in #(
13254 *${as_nl}*)
13255 case $ac_var in #(
Lev Walkinaef10c32014-01-14 01:47:25 -080013256 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013257$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013258 esac
13259 case $ac_var in #(
13260 _ | IFS | as_nl) ;; #(
Lev Walkinb3751942012-09-02 19:36:47 -070013261 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Lev Walkinaef10c32014-01-14 01:47:25 -080013262 *) { eval $ac_var=; unset $ac_var;} ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013263 esac ;;
13264 esac
13265 done
13266
Lev Walkinf15320b2004-06-03 03:38:44 +000013267 (set) 2>&1 |
Lev Walkin27fd0b62007-08-27 23:57:45 +000013268 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13269 *${as_nl}ac_space=\ *)
Lev Walkinaef10c32014-01-14 01:47:25 -080013270 # `set' does not quote correctly, so add quotes: double-quote
13271 # substitution turns \\\\ into \\, and sed turns \\ into \.
Lev Walkinf15320b2004-06-03 03:38:44 +000013272 sed -n \
Lev Walkin8e8b5482004-06-17 23:42:48 +000013273 "s/'/'\\\\''/g;
13274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Lev Walkin27fd0b62007-08-27 23:57:45 +000013275 ;; #(
Lev Walkinf15320b2004-06-03 03:38:44 +000013276 *)
13277 # `set' quotes correctly as required by POSIX, so do not add quotes.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013278 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Lev Walkinf15320b2004-06-03 03:38:44 +000013279 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013280 esac |
13281 sort
13282) |
Lev Walkinf15320b2004-06-03 03:38:44 +000013283 sed '
Lev Walkin27fd0b62007-08-27 23:57:45 +000013284 /^ac_cv_env_/b end
Lev Walkinf15320b2004-06-03 03:38:44 +000013285 t clear
Lev Walkin27fd0b62007-08-27 23:57:45 +000013286 :clear
Lev Walkinf15320b2004-06-03 03:38:44 +000013287 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13288 t end
Lev Walkin27fd0b62007-08-27 23:57:45 +000013289 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13290 :end' >>confcache
13291if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13292 if test -w "$cache_file"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080013293 if test "x$cache_file" != "x/dev/null"; then
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013295$as_echo "$as_me: updating cache $cache_file" >&6;}
Lev Walkinaef10c32014-01-14 01:47:25 -080013296 if test ! -f "$cache_file" || test -h "$cache_file"; then
13297 cat confcache >"$cache_file"
13298 else
13299 case $cache_file in #(
13300 */* | ?:*)
13301 mv -f confcache "$cache_file"$$ &&
13302 mv -f "$cache_file"$$ "$cache_file" ;; #(
13303 *)
13304 mv -f confcache "$cache_file" ;;
13305 esac
13306 fi
13307 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013308 else
Lev Walkinaef10c32014-01-14 01:47:25 -080013309 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013310$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +000013311 fi
13312fi
13313rm -f confcache
13314
13315test "x$prefix" = xNONE && prefix=$ac_default_prefix
13316# Let make expand exec_prefix.
13317test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13318
Lev Walkinf15320b2004-06-03 03:38:44 +000013319DEFS=-DHAVE_CONFIG_H
13320
13321ac_libobjs=
13322ac_ltlibobjs=
Lev Walkinaef10c32014-01-14 01:47:25 -080013323U=
Lev Walkinf15320b2004-06-03 03:38:44 +000013324for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13325 # 1. Remove the extension, and $U if already installed.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013326 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Lev Walkinb3751942012-09-02 19:36:47 -070013327 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Lev Walkin27fd0b62007-08-27 23:57:45 +000013328 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13329 # will be set to the directory where LIBOBJS objects are built.
Lev Walkinaef10c32014-01-14 01:47:25 -080013330 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13331 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Lev Walkinf15320b2004-06-03 03:38:44 +000013332done
13333LIBOBJS=$ac_libobjs
13334
13335LTLIBOBJS=$ac_ltlibobjs
13336
13337
Lev Walkinb3751942012-09-02 19:36:47 -070013338 if test -n "$EXEEXT"; then
13339 am__EXEEXT_TRUE=
13340 am__EXEEXT_FALSE='#'
13341else
13342 am__EXEEXT_TRUE='#'
13343 am__EXEEXT_FALSE=
13344fi
13345
Lev Walkin8e8b5482004-06-17 23:42:48 +000013346if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080013347 as_fn_error $? "conditional \"AMDEP\" was never defined.
13348Usually this means the macro was only invoked conditionally." "$LINENO" 5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013349fi
13350if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080013351 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13352Usually this means the macro was only invoked conditionally." "$LINENO" 5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013353fi
Lev Walkin8e8b5482004-06-17 23:42:48 +000013354if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080013355 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13356Usually this means the macro was only invoked conditionally." "$LINENO" 5
Lev Walkin8e8b5482004-06-17 23:42:48 +000013357fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013358
Lev Walkinb40ec412014-02-24 00:57:18 -080013359if test -z "${TEST_64BIT_TRUE}" && test -z "${TEST_64BIT_FALSE}"; then
13360 as_fn_error $? "conditional \"TEST_64BIT\" was never defined.
13361Usually this means the macro was only invoked conditionally." "$LINENO" 5
13362fi
Lev Walkinb3751942012-09-02 19:36:47 -070013363
Lev Walkinaef10c32014-01-14 01:47:25 -080013364: "${CONFIG_STATUS=./config.status}"
Lev Walkinb3751942012-09-02 19:36:47 -070013365ac_write_fail=0
Lev Walkinf15320b2004-06-03 03:38:44 +000013366ac_clean_files_save=$ac_clean_files
13367ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Lev Walkinaef10c32014-01-14 01:47:25 -080013368{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070013369$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Lev Walkinaef10c32014-01-14 01:47:25 -080013370as_write_fail=0
13371cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000013372#! $SHELL
13373# Generated by $as_me.
13374# Run this file to recreate the current configuration.
13375# Compiler output produced by configure, useful for debugging
13376# configure, is in config.log if it exists.
13377
13378debug=false
13379ac_cs_recheck=false
13380ac_cs_silent=false
Lev Walkinf15320b2004-06-03 03:38:44 +000013381
Lev Walkinaef10c32014-01-14 01:47:25 -080013382SHELL=\${CONFIG_SHELL-$SHELL}
13383export SHELL
13384_ASEOF
13385cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13386## -------------------- ##
13387## M4sh Initialization. ##
13388## -------------------- ##
Lev Walkinf15320b2004-06-03 03:38:44 +000013389
Lev Walkin4c776e52010-11-08 02:07:31 -080013390# Be more Bourne compatible
13391DUALCASE=1; export DUALCASE # for MKS sh
Lev Walkinaef10c32014-01-14 01:47:25 -080013392if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Lev Walkinf15320b2004-06-03 03:38:44 +000013393 emulate sh
13394 NULLCMD=:
Lev Walkinb3751942012-09-02 19:36:47 -070013395 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Lev Walkinf15320b2004-06-03 03:38:44 +000013396 # is contrary to our usage. Disable this feature.
13397 alias -g '${1+"$@"}'='"$@"'
Lev Walkin27fd0b62007-08-27 23:57:45 +000013398 setopt NO_GLOB_SUBST
13399else
Lev Walkinaef10c32014-01-14 01:47:25 -080013400 case `(set -o) 2>/dev/null` in #(
13401 *posix*) :
13402 set -o posix ;; #(
13403 *) :
13404 ;;
Lev Walkin4c776e52010-11-08 02:07:31 -080013405esac
Lev Walkinf15320b2004-06-03 03:38:44 +000013406fi
Lev Walkin4c776e52010-11-08 02:07:31 -080013407
13408
Lev Walkinb3751942012-09-02 19:36:47 -070013409as_nl='
13410'
13411export as_nl
13412# Printing a long string crashes Solaris 7 /usr/bin/printf.
13413as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13414as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13415as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Lev Walkinaef10c32014-01-14 01:47:25 -080013416# Prefer a ksh shell builtin over an external printf program on Solaris,
13417# but without wasting forks for bash or zsh.
13418if test -z "$BASH_VERSION$ZSH_VERSION" \
13419 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13420 as_echo='print -r --'
13421 as_echo_n='print -rn --'
13422elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Lev Walkinb3751942012-09-02 19:36:47 -070013423 as_echo='printf %s\n'
13424 as_echo_n='printf %s'
13425else
13426 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13427 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13428 as_echo_n='/usr/ucb/echo -n'
13429 else
13430 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13431 as_echo_n_body='eval
13432 arg=$1;
Lev Walkinaef10c32014-01-14 01:47:25 -080013433 case $arg in #(
Lev Walkinb3751942012-09-02 19:36:47 -070013434 *"$as_nl"*)
13435 expr "X$arg" : "X\\(.*\\)$as_nl";
13436 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13437 esac;
13438 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13439 '
13440 export as_echo_n_body
13441 as_echo_n='sh -c $as_echo_n_body as_echo'
13442 fi
13443 export as_echo_body
13444 as_echo='sh -c $as_echo_body as_echo'
13445fi
13446
Lev Walkinf15320b2004-06-03 03:38:44 +000013447# The user is always right.
13448if test "${PATH_SEPARATOR+set}" != set; then
Lev Walkinb3751942012-09-02 19:36:47 -070013449 PATH_SEPARATOR=:
13450 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13451 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13452 PATH_SEPARATOR=';'
13453 }
Lev Walkinf15320b2004-06-03 03:38:44 +000013454fi
13455
Lev Walkin27fd0b62007-08-27 23:57:45 +000013456
13457# IFS
13458# We need space, tab and new line, in precisely that order. Quoting is
13459# there to prevent editors from complaining about space-tab.
13460# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13461# splitting by setting IFS to empty value.)
Lev Walkin27fd0b62007-08-27 23:57:45 +000013462IFS=" "" $as_nl"
13463
13464# Find who we are. Look in the path if we contain no directory separator.
Lev Walkinaef10c32014-01-14 01:47:25 -080013465as_myself=
13466case $0 in #((
Lev Walkin27fd0b62007-08-27 23:57:45 +000013467 *[\\/]* ) as_myself=$0 ;;
13468 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Lev Walkinf15320b2004-06-03 03:38:44 +000013469for as_dir in $PATH
13470do
13471 IFS=$as_save_IFS
13472 test -z "$as_dir" && as_dir=.
Lev Walkinaef10c32014-01-14 01:47:25 -080013473 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13474 done
Lev Walkin27fd0b62007-08-27 23:57:45 +000013475IFS=$as_save_IFS
Lev Walkinf15320b2004-06-03 03:38:44 +000013476
Lev Walkin27fd0b62007-08-27 23:57:45 +000013477 ;;
13478esac
13479# We did not find ourselves, most probably we were run as `sh COMMAND'
13480# in which case we are not to be found in the path.
13481if test "x$as_myself" = x; then
13482 as_myself=$0
13483fi
13484if test ! -f "$as_myself"; then
Lev Walkinb3751942012-09-02 19:36:47 -070013485 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Lev Walkinaef10c32014-01-14 01:47:25 -080013486 exit 1
Lev Walkin27fd0b62007-08-27 23:57:45 +000013487fi
13488
Lev Walkinaef10c32014-01-14 01:47:25 -080013489# Unset variables that we do not need and which cause bugs (e.g. in
13490# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13491# suppresses any "Segmentation fault" message there. '((' could
13492# trigger a bug in pdksh 5.2.14.
13493for as_var in BASH_ENV ENV MAIL MAILPATH
13494do eval test x\${$as_var+set} = xset \
13495 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Lev Walkin27fd0b62007-08-27 23:57:45 +000013496done
13497PS1='$ '
13498PS2='> '
13499PS4='+ '
13500
13501# NLS nuisances.
Lev Walkinb3751942012-09-02 19:36:47 -070013502LC_ALL=C
13503export LC_ALL
13504LANGUAGE=C
13505export LANGUAGE
Lev Walkin27fd0b62007-08-27 23:57:45 +000013506
Lev Walkinaef10c32014-01-14 01:47:25 -080013507# CDPATH.
13508(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13509
13510
13511# as_fn_error STATUS ERROR [LINENO LOG_FD]
13512# ----------------------------------------
13513# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13514# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13515# script with STATUS, using 1 if that was 0.
13516as_fn_error ()
13517{
13518 as_status=$1; test $as_status -eq 0 && as_status=1
13519 if test "$4"; then
13520 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13521 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13522 fi
13523 $as_echo "$as_me: error: $2" >&2
13524 as_fn_exit $as_status
13525} # as_fn_error
13526
13527
13528# as_fn_set_status STATUS
13529# -----------------------
13530# Set $? to STATUS, without forking.
13531as_fn_set_status ()
13532{
13533 return $1
13534} # as_fn_set_status
13535
13536# as_fn_exit STATUS
13537# -----------------
13538# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13539as_fn_exit ()
13540{
13541 set +e
13542 as_fn_set_status $1
13543 exit $1
13544} # as_fn_exit
13545
13546# as_fn_unset VAR
13547# ---------------
13548# Portably unset VAR.
13549as_fn_unset ()
13550{
13551 { eval $1=; unset $1;}
13552}
13553as_unset=as_fn_unset
13554# as_fn_append VAR VALUE
13555# ----------------------
13556# Append the text in VALUE to the end of the definition contained in VAR. Take
13557# advantage of any shell optimizations that allow amortized linear growth over
13558# repeated appends, instead of the typical quadratic growth present in naive
13559# implementations.
13560if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13561 eval 'as_fn_append ()
13562 {
13563 eval $1+=\$2
13564 }'
13565else
13566 as_fn_append ()
13567 {
13568 eval $1=\$$1\$2
13569 }
13570fi # as_fn_append
13571
13572# as_fn_arith ARG...
13573# ------------------
13574# Perform arithmetic evaluation on the ARGs, and store the result in the
13575# global $as_val. Take advantage of shells that can avoid forks. The arguments
13576# must be portable across $(()) and expr.
13577if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13578 eval 'as_fn_arith ()
13579 {
13580 as_val=$(( $* ))
13581 }'
13582else
13583 as_fn_arith ()
13584 {
13585 as_val=`expr "$@" || test $? -eq 1`
13586 }
13587fi # as_fn_arith
13588
13589
Lev Walkin27fd0b62007-08-27 23:57:45 +000013590if expr a : '\(a\)' >/dev/null 2>&1 &&
13591 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13592 as_expr=expr
13593else
13594 as_expr=false
13595fi
13596
13597if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13598 as_basename=basename
13599else
13600 as_basename=false
13601fi
13602
Lev Walkinaef10c32014-01-14 01:47:25 -080013603if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13604 as_dirname=dirname
13605else
13606 as_dirname=false
13607fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013608
Lev Walkin27fd0b62007-08-27 23:57:45 +000013609as_me=`$as_basename -- "$0" ||
13610$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13611 X"$0" : 'X\(//\)$' \| \
13612 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinb3751942012-09-02 19:36:47 -070013613$as_echo X/"$0" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000013614 sed '/^.*\/\([^/][^/]*\)\/*$/{
13615 s//\1/
13616 q
13617 }
13618 /^X\/\(\/\/\)$/{
13619 s//\1/
13620 q
13621 }
13622 /^X\/\(\/\).*/{
13623 s//\1/
13624 q
13625 }
13626 s/.*/./; q'`
13627
Lev Walkinaef10c32014-01-14 01:47:25 -080013628# Avoid depending upon Character Ranges.
13629as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13630as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13631as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13632as_cr_digits='0123456789'
13633as_cr_alnum=$as_cr_Letters$as_cr_digits
Lev Walkin27fd0b62007-08-27 23:57:45 +000013634
13635ECHO_C= ECHO_N= ECHO_T=
Lev Walkinaef10c32014-01-14 01:47:25 -080013636case `echo -n x` in #(((((
Lev Walkin27fd0b62007-08-27 23:57:45 +000013637-n*)
Lev Walkinaef10c32014-01-14 01:47:25 -080013638 case `echo 'xy\c'` in
Lev Walkin27fd0b62007-08-27 23:57:45 +000013639 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Lev Walkinaef10c32014-01-14 01:47:25 -080013640 xy) ECHO_C='\c';;
13641 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13642 ECHO_T=' ';;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013643 esac;;
13644*)
13645 ECHO_N='-n';;
Lev Walkinf15320b2004-06-03 03:38:44 +000013646esac
Lev Walkinf15320b2004-06-03 03:38:44 +000013647
13648rm -f conf$$ conf$$.exe conf$$.file
Lev Walkin27fd0b62007-08-27 23:57:45 +000013649if test -d conf$$.dir; then
13650 rm -f conf$$.dir/conf$$.file
13651else
13652 rm -f conf$$.dir
Lev Walkinb3751942012-09-02 19:36:47 -070013653 mkdir conf$$.dir 2>/dev/null
Lev Walkin27fd0b62007-08-27 23:57:45 +000013654fi
Lev Walkinb3751942012-09-02 19:36:47 -070013655if (echo >conf$$.file) 2>/dev/null; then
13656 if ln -s conf$$.file conf$$ 2>/dev/null; then
13657 as_ln_s='ln -s'
13658 # ... but there are two gotchas:
13659 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13660 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Lev Walkinaef10c32014-01-14 01:47:25 -080013661 # In both cases, we have to default to `cp -pR'.
Lev Walkinb3751942012-09-02 19:36:47 -070013662 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Lev Walkinaef10c32014-01-14 01:47:25 -080013663 as_ln_s='cp -pR'
Lev Walkinb3751942012-09-02 19:36:47 -070013664 elif ln conf$$.file conf$$ 2>/dev/null; then
13665 as_ln_s=ln
13666 else
Lev Walkinaef10c32014-01-14 01:47:25 -080013667 as_ln_s='cp -pR'
Lev Walkinb3751942012-09-02 19:36:47 -070013668 fi
Lev Walkinf15320b2004-06-03 03:38:44 +000013669else
Lev Walkinaef10c32014-01-14 01:47:25 -080013670 as_ln_s='cp -pR'
Lev Walkinf15320b2004-06-03 03:38:44 +000013671fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000013672rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13673rmdir conf$$.dir 2>/dev/null
Lev Walkinf15320b2004-06-03 03:38:44 +000013674
Lev Walkinaef10c32014-01-14 01:47:25 -080013675
13676# as_fn_mkdir_p
13677# -------------
13678# Create "$as_dir" as a directory, including parents if necessary.
13679as_fn_mkdir_p ()
13680{
13681
13682 case $as_dir in #(
13683 -*) as_dir=./$as_dir;;
13684 esac
13685 test -d "$as_dir" || eval $as_mkdir_p || {
13686 as_dirs=
13687 while :; do
13688 case $as_dir in #(
13689 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13690 *) as_qdir=$as_dir;;
13691 esac
13692 as_dirs="'$as_qdir' $as_dirs"
13693 as_dir=`$as_dirname -- "$as_dir" ||
13694$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13695 X"$as_dir" : 'X\(//\)[^/]' \| \
13696 X"$as_dir" : 'X\(//\)$' \| \
13697 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13698$as_echo X"$as_dir" |
13699 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13700 s//\1/
13701 q
13702 }
13703 /^X\(\/\/\)[^/].*/{
13704 s//\1/
13705 q
13706 }
13707 /^X\(\/\/\)$/{
13708 s//\1/
13709 q
13710 }
13711 /^X\(\/\).*/{
13712 s//\1/
13713 q
13714 }
13715 s/.*/./; q'`
13716 test -d "$as_dir" && break
13717 done
13718 test -z "$as_dirs" || eval "mkdir $as_dirs"
13719 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13720
13721
13722} # as_fn_mkdir_p
Lev Walkinf15320b2004-06-03 03:38:44 +000013723if mkdir -p . 2>/dev/null; then
Lev Walkinaef10c32014-01-14 01:47:25 -080013724 as_mkdir_p='mkdir -p "$as_dir"'
Lev Walkinf15320b2004-06-03 03:38:44 +000013725else
Lev Walkin8e8b5482004-06-17 23:42:48 +000013726 test -d ./-p && rmdir ./-p
Lev Walkinf15320b2004-06-03 03:38:44 +000013727 as_mkdir_p=false
13728fi
13729
Lev Walkinaef10c32014-01-14 01:47:25 -080013730
13731# as_fn_executable_p FILE
13732# -----------------------
13733# Test if FILE is an executable regular file.
13734as_fn_executable_p ()
13735{
13736 test -f "$1" && test -x "$1"
13737} # as_fn_executable_p
13738as_test_x='test -x'
13739as_executable_p=as_fn_executable_p
Lev Walkinf15320b2004-06-03 03:38:44 +000013740
13741# Sed expression to map a string onto a valid CPP name.
Lev Walkin8e8b5482004-06-17 23:42:48 +000013742as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +000013743
13744# Sed expression to map a string onto a valid variable name.
Lev Walkin8e8b5482004-06-17 23:42:48 +000013745as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Lev Walkinf15320b2004-06-03 03:38:44 +000013746
13747
Lev Walkinf15320b2004-06-03 03:38:44 +000013748exec 6>&1
Lev Walkinaef10c32014-01-14 01:47:25 -080013749## ----------------------------------- ##
13750## Main body of $CONFIG_STATUS script. ##
13751## ----------------------------------- ##
13752_ASEOF
13753test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000013754
Lev Walkinaef10c32014-01-14 01:47:25 -080013755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13756# Save the log message, to keep $0 and so on meaningful, and to
Lev Walkinf15320b2004-06-03 03:38:44 +000013757# report actual input values of CONFIG_FILES etc. instead of their
Lev Walkin27fd0b62007-08-27 23:57:45 +000013758# values after options handling.
13759ac_log="
Lev Walkind8ca7ce2013-03-16 07:07:26 -070013760This file was extended by asn1c $as_me 0.9.24, which was
Lev Walkinaef10c32014-01-14 01:47:25 -080013761generated by GNU Autoconf 2.69. Invocation command line was
Lev Walkinf15320b2004-06-03 03:38:44 +000013762
13763 CONFIG_FILES = $CONFIG_FILES
13764 CONFIG_HEADERS = $CONFIG_HEADERS
13765 CONFIG_LINKS = $CONFIG_LINKS
13766 CONFIG_COMMANDS = $CONFIG_COMMANDS
13767 $ $0 $@
13768
Lev Walkin27fd0b62007-08-27 23:57:45 +000013769on `(hostname || uname -n) 2>/dev/null | sed 1q`
13770"
13771
Lev Walkinf15320b2004-06-03 03:38:44 +000013772_ACEOF
13773
Lev Walkinb3751942012-09-02 19:36:47 -070013774case $ac_config_files in *"
13775"*) set x $ac_config_files; shift; ac_config_files=$*;;
13776esac
13777
13778case $ac_config_headers in *"
13779"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13780esac
13781
13782
13783cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000013784# Files that config.status was made for.
Lev Walkin27fd0b62007-08-27 23:57:45 +000013785config_files="$ac_config_files"
13786config_headers="$ac_config_headers"
13787config_commands="$ac_config_commands"
Lev Walkinf15320b2004-06-03 03:38:44 +000013788
Lev Walkin27fd0b62007-08-27 23:57:45 +000013789_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000013790
Lev Walkinb3751942012-09-02 19:36:47 -070013791cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000013792ac_cs_usage="\
Lev Walkinaef10c32014-01-14 01:47:25 -080013793\`$as_me' instantiates files and other configuration actions
13794from templates according to the current configuration. Unless the files
13795and actions are specified as TAGs, all are instantiated by default.
Lev Walkinf15320b2004-06-03 03:38:44 +000013796
Lev Walkinaef10c32014-01-14 01:47:25 -080013797Usage: $0 [OPTION]... [TAG]...
Lev Walkinf15320b2004-06-03 03:38:44 +000013798
13799 -h, --help print this help, then exit
Lev Walkin4c776e52010-11-08 02:07:31 -080013800 -V, --version print version number and configuration settings, then exit
Lev Walkinaef10c32014-01-14 01:47:25 -080013801 --config print configuration, then exit
Lev Walkinb3751942012-09-02 19:36:47 -070013802 -q, --quiet, --silent
13803 do not print progress messages
Lev Walkinf15320b2004-06-03 03:38:44 +000013804 -d, --debug don't remove temporary files
13805 --recheck update $as_me by reconfiguring in the same conditions
Lev Walkinb3751942012-09-02 19:36:47 -070013806 --file=FILE[:TEMPLATE]
13807 instantiate the configuration file FILE
13808 --header=FILE[:TEMPLATE]
13809 instantiate the configuration header FILE
Lev Walkinf15320b2004-06-03 03:38:44 +000013810
13811Configuration files:
13812$config_files
13813
13814Configuration headers:
13815$config_headers
13816
13817Configuration commands:
13818$config_commands
13819
Lev Walkinaef10c32014-01-14 01:47:25 -080013820Report bugs to <vlm@lionet.info>."
Lev Walkinf15320b2004-06-03 03:38:44 +000013821
Lev Walkin27fd0b62007-08-27 23:57:45 +000013822_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070013823cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkinaef10c32014-01-14 01:47:25 -080013824ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Lev Walkinf15320b2004-06-03 03:38:44 +000013825ac_cs_version="\\
Lev Walkind8ca7ce2013-03-16 07:07:26 -070013826asn1c config.status 0.9.24
Lev Walkinaef10c32014-01-14 01:47:25 -080013827configured by $0, generated by GNU Autoconf 2.69,
13828 with options \\"\$ac_cs_config\\"
Lev Walkinf15320b2004-06-03 03:38:44 +000013829
Lev Walkinaef10c32014-01-14 01:47:25 -080013830Copyright (C) 2012 Free Software Foundation, Inc.
Lev Walkinf15320b2004-06-03 03:38:44 +000013831This config.status script is free software; the Free Software Foundation
13832gives unlimited permission to copy, distribute and modify it."
Lev Walkin27fd0b62007-08-27 23:57:45 +000013833
13834ac_pwd='$ac_pwd'
13835srcdir='$srcdir'
13836INSTALL='$INSTALL'
Lev Walkin4c776e52010-11-08 02:07:31 -080013837MKDIR_P='$MKDIR_P'
Lev Walkinb3751942012-09-02 19:36:47 -070013838AWK='$AWK'
13839test -n "\$AWK" || AWK=awk
Lev Walkinf15320b2004-06-03 03:38:44 +000013840_ACEOF
13841
Lev Walkinb3751942012-09-02 19:36:47 -070013842cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13843# The default lists apply if the user does not specify any file.
Lev Walkinf15320b2004-06-03 03:38:44 +000013844ac_need_defaults=:
13845while test $# != 0
13846do
13847 case $1 in
Lev Walkinaef10c32014-01-14 01:47:25 -080013848 --*=?*)
Lev Walkin27fd0b62007-08-27 23:57:45 +000013849 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13850 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Lev Walkinf15320b2004-06-03 03:38:44 +000013851 ac_shift=:
13852 ;;
Lev Walkinaef10c32014-01-14 01:47:25 -080013853 --*=)
13854 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13855 ac_optarg=
13856 ac_shift=:
13857 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013858 *)
Lev Walkinf15320b2004-06-03 03:38:44 +000013859 ac_option=$1
13860 ac_optarg=$2
13861 ac_shift=shift
13862 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000013863 esac
13864
13865 case $ac_option in
13866 # Handling of the options.
Lev Walkinf15320b2004-06-03 03:38:44 +000013867 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13868 ac_cs_recheck=: ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013869 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Lev Walkinb3751942012-09-02 19:36:47 -070013870 $as_echo "$ac_cs_version"; exit ;;
Lev Walkinaef10c32014-01-14 01:47:25 -080013871 --config | --confi | --conf | --con | --co | --c )
13872 $as_echo "$ac_cs_config"; exit ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013873 --debug | --debu | --deb | --de | --d | -d )
Lev Walkinf15320b2004-06-03 03:38:44 +000013874 debug=: ;;
13875 --file | --fil | --fi | --f )
13876 $ac_shift
Lev Walkinb3751942012-09-02 19:36:47 -070013877 case $ac_optarg in
13878 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Lev Walkinaef10c32014-01-14 01:47:25 -080013879 '') as_fn_error $? "missing file argument" ;;
Lev Walkinb3751942012-09-02 19:36:47 -070013880 esac
Lev Walkinaef10c32014-01-14 01:47:25 -080013881 as_fn_append CONFIG_FILES " '$ac_optarg'"
Lev Walkinf15320b2004-06-03 03:38:44 +000013882 ac_need_defaults=false;;
13883 --header | --heade | --head | --hea )
13884 $ac_shift
Lev Walkinb3751942012-09-02 19:36:47 -070013885 case $ac_optarg in
13886 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13887 esac
Lev Walkinaef10c32014-01-14 01:47:25 -080013888 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Lev Walkinf15320b2004-06-03 03:38:44 +000013889 ac_need_defaults=false;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013890 --he | --h)
13891 # Conflict between --help and --header
Lev Walkinaef10c32014-01-14 01:47:25 -080013892 as_fn_error $? "ambiguous option: \`$1'
13893Try \`$0 --help' for more information.";;
Lev Walkin27fd0b62007-08-27 23:57:45 +000013894 --help | --hel | -h )
Lev Walkinb3751942012-09-02 19:36:47 -070013895 $as_echo "$ac_cs_usage"; exit ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000013896 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13897 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13898 ac_cs_silent=: ;;
13899
13900 # This is an error.
Lev Walkinaef10c32014-01-14 01:47:25 -080013901 -*) as_fn_error $? "unrecognized option: \`$1'
13902Try \`$0 --help' for more information." ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000013903
Lev Walkinaef10c32014-01-14 01:47:25 -080013904 *) as_fn_append ac_config_targets " $1"
Lev Walkin27fd0b62007-08-27 23:57:45 +000013905 ac_need_defaults=false ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000013906
13907 esac
13908 shift
13909done
13910
13911ac_configure_extra_args=
13912
13913if $ac_cs_silent; then
13914 exec 6>/dev/null
13915 ac_configure_extra_args="$ac_configure_extra_args --silent"
13916fi
13917
13918_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070013919cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000013920if \$ac_cs_recheck; then
Lev Walkinaef10c32014-01-14 01:47:25 -080013921 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Lev Walkinb3751942012-09-02 19:36:47 -070013922 shift
13923 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13924 CONFIG_SHELL='$SHELL'
Lev Walkin27fd0b62007-08-27 23:57:45 +000013925 export CONFIG_SHELL
Lev Walkinb3751942012-09-02 19:36:47 -070013926 exec "\$@"
Lev Walkinf15320b2004-06-03 03:38:44 +000013927fi
13928
13929_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070013930cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkin27fd0b62007-08-27 23:57:45 +000013931exec 5>>config.log
13932{
13933 echo
13934 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13935## Running $as_me. ##
13936_ASBOX
Lev Walkinb3751942012-09-02 19:36:47 -070013937 $as_echo "$ac_log"
Lev Walkin27fd0b62007-08-27 23:57:45 +000013938} >&5
Lev Walkinf15320b2004-06-03 03:38:44 +000013939
Lev Walkin27fd0b62007-08-27 23:57:45 +000013940_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070013941cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000013942#
Lev Walkin27fd0b62007-08-27 23:57:45 +000013943# INIT-COMMANDS
Lev Walkinf15320b2004-06-03 03:38:44 +000013944#
Lev Walkin8e8b5482004-06-17 23:42:48 +000013945AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
Lev Walkinf15320b2004-06-03 03:38:44 +000013946
Lev Walkin4da95cf2010-10-16 02:46:32 -070013947
13948# The HP-UX ksh and POSIX shell print the target directory to stdout
13949# if CDPATH is set.
13950(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13951
13952sed_quote_subst='$sed_quote_subst'
13953double_quote_subst='$double_quote_subst'
13954delay_variable_subst='$delay_variable_subst'
Lev Walkinaef10c32014-01-14 01:47:25 -080013955macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13956macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13957enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13958enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13959pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13960enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13961SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13962ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13963host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13964host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13965host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13966build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13967build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13968build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13969SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13970Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13971GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13972EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13973FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13974LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13975NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13976LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13977max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13978ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13979exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13980lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13981lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13982lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13983lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13984lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13985reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13986reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13987OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13988deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13989file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13990file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13991want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13992DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13993sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13994AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13995AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13996archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13997STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13998RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13999old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14000old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14001old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14002lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14003CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14004CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14005compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14006GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14007lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14008lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14009lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14010lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
14011nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14012lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14013objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14014MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14015lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14016lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14017lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14018lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14019lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14020need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14021MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14022DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14023NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14024LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14025OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14026OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14027libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14028shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14029extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14030archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14031enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14032export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14033whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14034compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14035old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14036old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14037archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14038archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14039module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14040module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14041with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14042allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14043no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14044hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14045hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
14046hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14047hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14048hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14049hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14050hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14051hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14052inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14053link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14054always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14055export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14056exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14057include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14058prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14059postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14060file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14061variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14062need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14063need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14064version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14065runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14066shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14067shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14068libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14069library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14070soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14071install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14072postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14073postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14074finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14075finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14076hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14077sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14078sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
14079hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14080enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14081enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14082enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14083old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14084striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
Lev Walkin4da95cf2010-10-16 02:46:32 -070014085
14086LTCC='$LTCC'
14087LTCFLAGS='$LTCFLAGS'
14088compiler='$compiler_DEFAULT'
14089
Lev Walkinaef10c32014-01-14 01:47:25 -080014090# A function that is used when there is no print builtin or printf.
14091func_fallback_echo ()
14092{
14093 eval 'cat <<_LTECHO_EOF
14094\$1
14095_LTECHO_EOF'
14096}
14097
Lev Walkin4da95cf2010-10-16 02:46:32 -070014098# Quote evaled strings.
Lev Walkinaef10c32014-01-14 01:47:25 -080014099for var in SHELL \
14100ECHO \
14101SED \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014102GREP \
14103EGREP \
14104FGREP \
14105LD \
14106NM \
14107LN_S \
14108lt_SP2NL \
14109lt_NL2SP \
14110reload_flag \
Lev Walkinaef10c32014-01-14 01:47:25 -080014111OBJDUMP \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014112deplibs_check_method \
14113file_magic_cmd \
Lev Walkinaef10c32014-01-14 01:47:25 -080014114file_magic_glob \
14115want_nocaseglob \
14116DLLTOOL \
14117sharedlib_from_linklib_cmd \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014118AR \
14119AR_FLAGS \
Lev Walkinaef10c32014-01-14 01:47:25 -080014120archiver_list_spec \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014121STRIP \
14122RANLIB \
14123CC \
14124CFLAGS \
14125compiler \
14126lt_cv_sys_global_symbol_pipe \
14127lt_cv_sys_global_symbol_to_cdecl \
14128lt_cv_sys_global_symbol_to_c_name_address \
14129lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
Lev Walkinaef10c32014-01-14 01:47:25 -080014130nm_file_list_spec \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014131lt_prog_compiler_no_builtin_flag \
Lev Walkin4c776e52010-11-08 02:07:31 -080014132lt_prog_compiler_pic \
Lev Walkinaef10c32014-01-14 01:47:25 -080014133lt_prog_compiler_wl \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014134lt_prog_compiler_static \
14135lt_cv_prog_compiler_c_o \
14136need_locks \
Lev Walkinaef10c32014-01-14 01:47:25 -080014137MANIFEST_TOOL \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014138DSYMUTIL \
14139NMEDIT \
14140LIPO \
14141OTOOL \
14142OTOOL64 \
14143shrext_cmds \
14144export_dynamic_flag_spec \
14145whole_archive_flag_spec \
14146compiler_needs_object \
14147with_gnu_ld \
14148allow_undefined_flag \
14149no_undefined_flag \
14150hardcode_libdir_flag_spec \
14151hardcode_libdir_flag_spec_ld \
14152hardcode_libdir_separator \
14153exclude_expsyms \
14154include_expsyms \
14155file_list_spec \
14156variables_saved_for_relink \
14157libname_spec \
14158library_names_spec \
14159soname_spec \
Lev Walkinaef10c32014-01-14 01:47:25 -080014160install_override_mode \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014161finish_eval \
14162old_striplib \
14163striplib; do
Lev Walkinaef10c32014-01-14 01:47:25 -080014164 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Lev Walkin4da95cf2010-10-16 02:46:32 -070014165 *[\\\\\\\`\\"\\\$]*)
Lev Walkinaef10c32014-01-14 01:47:25 -080014166 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
Lev Walkin4da95cf2010-10-16 02:46:32 -070014167 ;;
14168 *)
14169 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14170 ;;
14171 esac
14172done
14173
14174# Double-quote double-evaled strings.
14175for var in reload_cmds \
14176old_postinstall_cmds \
14177old_postuninstall_cmds \
14178old_archive_cmds \
14179extract_expsyms_cmds \
14180old_archive_from_new_cmds \
14181old_archive_from_expsyms_cmds \
14182archive_cmds \
14183archive_expsym_cmds \
14184module_cmds \
14185module_expsym_cmds \
14186export_symbols_cmds \
14187prelink_cmds \
Lev Walkinaef10c32014-01-14 01:47:25 -080014188postlink_cmds \
Lev Walkin4da95cf2010-10-16 02:46:32 -070014189postinstall_cmds \
14190postuninstall_cmds \
14191finish_cmds \
14192sys_lib_search_path_spec \
14193sys_lib_dlsearch_path_spec; do
Lev Walkinaef10c32014-01-14 01:47:25 -080014194 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
Lev Walkin4da95cf2010-10-16 02:46:32 -070014195 *[\\\\\\\`\\"\\\$]*)
Lev Walkinaef10c32014-01-14 01:47:25 -080014196 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
Lev Walkin4da95cf2010-10-16 02:46:32 -070014197 ;;
14198 *)
14199 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14200 ;;
14201 esac
14202done
14203
14204ac_aux_dir='$ac_aux_dir'
14205xsi_shell='$xsi_shell'
14206lt_shell_append='$lt_shell_append'
14207
14208# See if we are running on zsh, and set the options which allow our
14209# commands through without removal of \ escapes INIT.
14210if test -n "\${ZSH_VERSION+set}" ; then
14211 setopt NO_GLOB_SUBST
14212fi
14213
14214
14215 PACKAGE='$PACKAGE'
14216 VERSION='$VERSION'
14217 TIMESTAMP='$TIMESTAMP'
14218 RM='$RM'
14219 ofile='$ofile'
14220
14221
14222
14223
Lev Walkinf15320b2004-06-03 03:38:44 +000014224_ACEOF
14225
Lev Walkinb3751942012-09-02 19:36:47 -070014226cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkin27fd0b62007-08-27 23:57:45 +000014227
14228# Handling of arguments.
Lev Walkinf15320b2004-06-03 03:38:44 +000014229for ac_config_target in $ac_config_targets
14230do
Lev Walkin27fd0b62007-08-27 23:57:45 +000014231 case $ac_config_target in
Lev Walkine7c4b962010-11-09 03:10:36 -080014232 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014233 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -070014234 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014235 "skeletons/standard-modules/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/standard-modules/Makefile" ;;
14236 "skeletons/tests/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/tests/Makefile" ;;
14237 "libasn1compiler/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1compiler/Makefile" ;;
14238 "libasn1parser/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1parser/Makefile" ;;
14239 "libasn1print/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1print/Makefile" ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014240 "asn1c/tests/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/tests/Makefile" ;;
14241 "libasn1fix/Makefile") CONFIG_FILES="$CONFIG_FILES libasn1fix/Makefile" ;;
Lev Walkine7c4b962010-11-09 03:10:36 -080014242 "doc/docsrc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docsrc/Makefile" ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014243 "skeletons/Makefile") CONFIG_FILES="$CONFIG_FILES skeletons/Makefile" ;;
14244 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
14245 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14246 "asn1c/Makefile") CONFIG_FILES="$CONFIG_FILES asn1c/Makefile" ;;
14247 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14248 "asn1c.spec") CONFIG_FILES="$CONFIG_FILES asn1c.spec" ;;
14249 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14250
Lev Walkinaef10c32014-01-14 01:47:25 -080014251 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014252 esac
14253done
14254
Lev Walkin27fd0b62007-08-27 23:57:45 +000014255
Lev Walkinf15320b2004-06-03 03:38:44 +000014256# If the user did not use the arguments to specify the items to instantiate,
14257# then the envvar interface is used. Set only those that are not.
14258# We use the long form for the default assignment because of an extremely
14259# bizarre bug on SunOS 4.1.3.
14260if $ac_need_defaults; then
14261 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14262 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14263 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14264fi
14265
14266# Have a temporary directory for convenience. Make it in the build tree
Lev Walkin27fd0b62007-08-27 23:57:45 +000014267# simply because there is no reason against having it here, and in addition,
Lev Walkinf15320b2004-06-03 03:38:44 +000014268# creating and moving files from /tmp can sometimes cause problems.
Lev Walkin27fd0b62007-08-27 23:57:45 +000014269# Hook for its removal unless debugging.
14270# Note that there is a small window in which the directory will not be cleaned:
14271# after its creation but before its name has been assigned to `$tmp'.
Lev Walkinf15320b2004-06-03 03:38:44 +000014272$debug ||
14273{
Lev Walkinaef10c32014-01-14 01:47:25 -080014274 tmp= ac_tmp=
Lev Walkin27fd0b62007-08-27 23:57:45 +000014275 trap 'exit_status=$?
Lev Walkinaef10c32014-01-14 01:47:25 -080014276 : "${ac_tmp:=$tmp}"
14277 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Lev Walkin27fd0b62007-08-27 23:57:45 +000014278' 0
Lev Walkinaef10c32014-01-14 01:47:25 -080014279 trap 'as_fn_exit 1' 1 2 13 15
Lev Walkinf15320b2004-06-03 03:38:44 +000014280}
Lev Walkinf15320b2004-06-03 03:38:44 +000014281# Create a (secure) tmp directory for tmp files.
14282
14283{
Lev Walkin27fd0b62007-08-27 23:57:45 +000014284 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Lev Walkinaef10c32014-01-14 01:47:25 -080014285 test -d "$tmp"
Lev Walkinf15320b2004-06-03 03:38:44 +000014286} ||
14287{
Lev Walkin27fd0b62007-08-27 23:57:45 +000014288 tmp=./conf$$-$RANDOM
14289 (umask 077 && mkdir "$tmp")
Lev Walkinaef10c32014-01-14 01:47:25 -080014290} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14291ac_tmp=$tmp
Lev Walkinf15320b2004-06-03 03:38:44 +000014292
Lev Walkinb3751942012-09-02 19:36:47 -070014293# Set up the scripts for CONFIG_FILES section.
14294# No need to generate them if there are no CONFIG_FILES.
14295# This happens for instance with `./config.status config.h'.
Lev Walkin27fd0b62007-08-27 23:57:45 +000014296if test -n "$CONFIG_FILES"; then
Lev Walkinf15320b2004-06-03 03:38:44 +000014297
Lev Walkinb3751942012-09-02 19:36:47 -070014298
Lev Walkinaef10c32014-01-14 01:47:25 -080014299ac_cr=`echo X | tr X '\015'`
14300# On cygwin, bash can eat \r inside `` if the user requested igncr.
14301# But we know of no other shell where ac_cr would be empty at this
14302# point, so we can use a bashism as a fallback.
14303if test "x$ac_cr" = x; then
14304 eval ac_cr=\$\'\\r\'
14305fi
Lev Walkinb3751942012-09-02 19:36:47 -070014306ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14307if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14308 ac_cs_awk_cr='\\r'
14309else
14310 ac_cs_awk_cr=$ac_cr
14311fi
14312
Lev Walkinaef10c32014-01-14 01:47:25 -080014313echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Lev Walkinf15320b2004-06-03 03:38:44 +000014314_ACEOF
14315
Lev Walkin27fd0b62007-08-27 23:57:45 +000014316
Lev Walkinb3751942012-09-02 19:36:47 -070014317{
14318 echo "cat >conf$$subs.awk <<_ACEOF" &&
14319 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14320 echo "_ACEOF"
14321} >conf$$subs.sh ||
Lev Walkinaef10c32014-01-14 01:47:25 -080014322 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14323ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Lev Walkin27fd0b62007-08-27 23:57:45 +000014324ac_delim='%!_!# '
14325for ac_last_try in false false false false false :; do
Lev Walkinb3751942012-09-02 19:36:47 -070014326 . ./conf$$subs.sh ||
Lev Walkinaef10c32014-01-14 01:47:25 -080014327 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Lev Walkin27fd0b62007-08-27 23:57:45 +000014328
Lev Walkinb3751942012-09-02 19:36:47 -070014329 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14330 if test $ac_delim_n = $ac_delim_num; then
Lev Walkin27fd0b62007-08-27 23:57:45 +000014331 break
14332 elif $ac_last_try; then
Lev Walkinaef10c32014-01-14 01:47:25 -080014333 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Lev Walkin27fd0b62007-08-27 23:57:45 +000014334 else
14335 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Lev Walkinf15320b2004-06-03 03:38:44 +000014336 fi
Lev Walkin27fd0b62007-08-27 23:57:45 +000014337done
Lev Walkinb3751942012-09-02 19:36:47 -070014338rm -f conf$$subs.sh
Lev Walkin27fd0b62007-08-27 23:57:45 +000014339
Lev Walkinb3751942012-09-02 19:36:47 -070014340cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkinaef10c32014-01-14 01:47:25 -080014341cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Lev Walkin27fd0b62007-08-27 23:57:45 +000014342_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070014343sed -n '
14344h
14345s/^/S["/; s/!.*/"]=/
14346p
14347g
14348s/^[^!]*!//
14349:repl
14350t repl
14351s/'"$ac_delim"'$//
14352t delim
14353:nl
14354h
Lev Walkinaef10c32014-01-14 01:47:25 -080014355s/\(.\{148\}\)..*/\1/
Lev Walkinb3751942012-09-02 19:36:47 -070014356t more1
14357s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14358p
14359n
14360b repl
14361:more1
14362s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14363p
14364g
14365s/.\{148\}//
14366t nl
14367:delim
14368h
Lev Walkinaef10c32014-01-14 01:47:25 -080014369s/\(.\{148\}\)..*/\1/
Lev Walkinb3751942012-09-02 19:36:47 -070014370t more2
14371s/["\\]/\\&/g; s/^/"/; s/$/"/
14372p
14373b
14374:more2
14375s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14376p
14377g
14378s/.\{148\}//
14379t delim
14380' <conf$$subs.awk | sed '
14381/^[^""]/{
14382 N
14383 s/\n//
14384}
14385' >>$CONFIG_STATUS || ac_write_fail=1
14386rm -f conf$$subs.awk
14387cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14388_ACAWK
Lev Walkinaef10c32014-01-14 01:47:25 -080014389cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Lev Walkinb3751942012-09-02 19:36:47 -070014390 for (key in S) S_is_set[key] = 1
14391 FS = ""
14392
14393}
14394{
14395 line = $ 0
14396 nfields = split(line, field, "@")
14397 substed = 0
14398 len = length(field[1])
14399 for (i = 2; i < nfields; i++) {
14400 key = field[i]
14401 keylen = length(key)
14402 if (S_is_set[key]) {
14403 value = S[key]
14404 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14405 len += length(value) + length(field[++i])
14406 substed = 1
14407 } else
14408 len += 1 + keylen
14409 }
14410
14411 print line
14412}
14413
14414_ACAWK
Lev Walkin27fd0b62007-08-27 23:57:45 +000014415_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070014416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14417if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14418 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14419else
14420 cat
Lev Walkinaef10c32014-01-14 01:47:25 -080014421fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14422 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Lev Walkin27fd0b62007-08-27 23:57:45 +000014423_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000014424
Lev Walkinaef10c32014-01-14 01:47:25 -080014425# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14426# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Lev Walkin27fd0b62007-08-27 23:57:45 +000014427# trailing colons and then remove the whole line if VPATH becomes empty
14428# (actually we leave an empty line to preserve line numbers).
14429if test "x$srcdir" = x.; then
Lev Walkinaef10c32014-01-14 01:47:25 -080014430 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14431h
14432s///
14433s/^/:/
14434s/[ ]*$/:/
14435s/:\$(srcdir):/:/g
14436s/:\${srcdir}:/:/g
14437s/:@srcdir@:/:/g
14438s/^:*//
Lev Walkin27fd0b62007-08-27 23:57:45 +000014439s/:*$//
Lev Walkinaef10c32014-01-14 01:47:25 -080014440x
14441s/\(=[ ]*\).*/\1/
14442G
14443s/\n//
Lev Walkin27fd0b62007-08-27 23:57:45 +000014444s/^[^=]*=[ ]*$//
14445}'
14446fi
14447
Lev Walkinb3751942012-09-02 19:36:47 -070014448cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000014449fi # test -n "$CONFIG_FILES"
14450
Lev Walkinb3751942012-09-02 19:36:47 -070014451# Set up the scripts for CONFIG_HEADERS section.
14452# No need to generate them if there are no CONFIG_HEADERS.
14453# This happens for instance with `./config.status Makefile'.
14454if test -n "$CONFIG_HEADERS"; then
Lev Walkinaef10c32014-01-14 01:47:25 -080014455cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Lev Walkinb3751942012-09-02 19:36:47 -070014456BEGIN {
14457_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000014458
Lev Walkinb3751942012-09-02 19:36:47 -070014459# Transform confdefs.h into an awk script `defines.awk', embedded as
14460# here-document in config.status, that substitutes the proper values into
14461# config.h.in to produce config.h.
14462
14463# Create a delimiter string that does not exist in confdefs.h, to ease
14464# handling of long lines.
14465ac_delim='%!_!# '
14466for ac_last_try in false false :; do
Lev Walkinaef10c32014-01-14 01:47:25 -080014467 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14468 if test -z "$ac_tt"; then
Lev Walkinb3751942012-09-02 19:36:47 -070014469 break
14470 elif $ac_last_try; then
Lev Walkinaef10c32014-01-14 01:47:25 -080014471 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Lev Walkinb3751942012-09-02 19:36:47 -070014472 else
14473 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14474 fi
14475done
14476
14477# For the awk script, D is an array of macro values keyed by name,
14478# likewise P contains macro parameters if any. Preserve backslash
14479# newline sequences.
14480
14481ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14482sed -n '
14483s/.\{148\}/&'"$ac_delim"'/g
14484t rset
14485:rset
14486s/^[ ]*#[ ]*define[ ][ ]*/ /
14487t def
14488d
14489:def
14490s/\\$//
14491t bsnl
14492s/["\\]/\\&/g
14493s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14494D["\1"]=" \3"/p
14495s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14496d
14497:bsnl
14498s/["\\]/\\&/g
14499s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14500D["\1"]=" \3\\\\\\n"\\/p
14501t cont
14502s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14503t cont
14504d
14505:cont
14506n
14507s/.\{148\}/&'"$ac_delim"'/g
14508t clear
14509:clear
14510s/\\$//
14511t bsnlc
14512s/["\\]/\\&/g; s/^/"/; s/$/"/p
14513d
14514:bsnlc
14515s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14516b cont
14517' <confdefs.h | sed '
14518s/'"$ac_delim"'/"\\\
14519"/g' >>$CONFIG_STATUS || ac_write_fail=1
14520
14521cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14522 for (key in D) D_is_set[key] = 1
14523 FS = ""
14524}
14525/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14526 line = \$ 0
14527 split(line, arg, " ")
14528 if (arg[1] == "#") {
14529 defundef = arg[2]
14530 mac1 = arg[3]
14531 } else {
14532 defundef = substr(arg[1], 2)
14533 mac1 = arg[2]
14534 }
14535 split(mac1, mac2, "(") #)
14536 macro = mac2[1]
14537 prefix = substr(line, 1, index(line, defundef) - 1)
14538 if (D_is_set[macro]) {
14539 # Preserve the white space surrounding the "#".
14540 print prefix "define", macro P[macro] D[macro]
14541 next
14542 } else {
14543 # Replace #undef with comments. This is necessary, for example,
14544 # in the case of _POSIX_SOURCE, which is predefined and required
14545 # on some systems where configure will not decide to define it.
14546 if (defundef == "undef") {
14547 print "/*", prefix defundef, macro, "*/"
14548 next
14549 }
14550 }
14551}
14552{ print }
14553_ACAWK
14554_ACEOF
14555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkinaef10c32014-01-14 01:47:25 -080014556 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Lev Walkinb3751942012-09-02 19:36:47 -070014557fi # test -n "$CONFIG_HEADERS"
14558
14559
14560eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14561shift
14562for ac_tag
Lev Walkin27fd0b62007-08-27 23:57:45 +000014563do
14564 case $ac_tag in
14565 :[FHLC]) ac_mode=$ac_tag; continue;;
14566 esac
14567 case $ac_mode$ac_tag in
14568 :[FHL]*:*);;
Lev Walkinaef10c32014-01-14 01:47:25 -080014569 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014570 :[FH]-) ac_tag=-:-;;
14571 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14572 esac
14573 ac_save_IFS=$IFS
14574 IFS=:
14575 set x $ac_tag
14576 IFS=$ac_save_IFS
14577 shift
14578 ac_file=$1
14579 shift
14580
14581 case $ac_mode in
14582 :L) ac_source=$1;;
14583 :[FH])
14584 ac_file_inputs=
14585 for ac_f
14586 do
14587 case $ac_f in
Lev Walkinaef10c32014-01-14 01:47:25 -080014588 -) ac_f="$ac_tmp/stdin";;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014589 *) # Look for the file first in the build tree, then in the source tree
14590 # (if the path is not absolute). The absolute path cannot be DOS-style,
14591 # because $ac_f cannot contain `:'.
14592 test -f "$ac_f" ||
14593 case $ac_f in
14594 [\\/$]*) false;;
14595 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14596 esac ||
Lev Walkinaef10c32014-01-14 01:47:25 -080014597 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014598 esac
Lev Walkinb3751942012-09-02 19:36:47 -070014599 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Lev Walkinaef10c32014-01-14 01:47:25 -080014600 as_fn_append ac_file_inputs " '$ac_f'"
Lev Walkin27fd0b62007-08-27 23:57:45 +000014601 done
14602
14603 # Let's still pretend it is `configure' which instantiates (i.e., don't
14604 # use $as_me), people would be surprised to read:
14605 # /* config.h. Generated by config.status. */
Lev Walkinb3751942012-09-02 19:36:47 -070014606 configure_input='Generated from '`
14607 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14608 `' by configure.'
Lev Walkin27fd0b62007-08-27 23:57:45 +000014609 if test x"$ac_file" != x-; then
14610 configure_input="$ac_file. $configure_input"
Lev Walkinaef10c32014-01-14 01:47:25 -080014611 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070014612$as_echo "$as_me: creating $ac_file" >&6;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000014613 fi
Lev Walkinb3751942012-09-02 19:36:47 -070014614 # Neutralize special characters interpreted by sed in replacement strings.
14615 case $configure_input in #(
14616 *\&* | *\|* | *\\* )
14617 ac_sed_conf_input=`$as_echo "$configure_input" |
14618 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14619 *) ac_sed_conf_input=$configure_input;;
14620 esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000014621
14622 case $ac_tag in
Lev Walkinaef10c32014-01-14 01:47:25 -080014623 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14624 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014625 esac
14626 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014627 esac
14628
Lev Walkin27fd0b62007-08-27 23:57:45 +000014629 ac_dir=`$as_dirname -- "$ac_file" ||
Lev Walkinf15320b2004-06-03 03:38:44 +000014630$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Lev Walkin8e8b5482004-06-17 23:42:48 +000014631 X"$ac_file" : 'X\(//\)[^/]' \| \
14632 X"$ac_file" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000014633 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinb3751942012-09-02 19:36:47 -070014634$as_echo X"$ac_file" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000014635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14636 s//\1/
14637 q
14638 }
14639 /^X\(\/\/\)[^/].*/{
14640 s//\1/
14641 q
14642 }
14643 /^X\(\/\/\)$/{
14644 s//\1/
14645 q
14646 }
14647 /^X\(\/\).*/{
14648 s//\1/
14649 q
14650 }
14651 s/.*/./; q'`
Lev Walkinaef10c32014-01-14 01:47:25 -080014652 as_dir="$ac_dir"; as_fn_mkdir_p
Lev Walkinf15320b2004-06-03 03:38:44 +000014653 ac_builddir=.
14654
Lev Walkin27fd0b62007-08-27 23:57:45 +000014655case "$ac_dir" in
14656.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14657*)
Lev Walkinb3751942012-09-02 19:36:47 -070014658 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Lev Walkin27fd0b62007-08-27 23:57:45 +000014659 # A ".." for each directory in $ac_dir_suffix.
Lev Walkinb3751942012-09-02 19:36:47 -070014660 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Lev Walkin27fd0b62007-08-27 23:57:45 +000014661 case $ac_top_builddir_sub in
14662 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14663 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14664 esac ;;
14665esac
14666ac_abs_top_builddir=$ac_pwd
14667ac_abs_builddir=$ac_pwd$ac_dir_suffix
14668# for backward compatibility:
14669ac_top_builddir=$ac_top_build_prefix
Lev Walkinf15320b2004-06-03 03:38:44 +000014670
14671case $srcdir in
Lev Walkin27fd0b62007-08-27 23:57:45 +000014672 .) # We are building in place.
Lev Walkinf15320b2004-06-03 03:38:44 +000014673 ac_srcdir=.
Lev Walkin27fd0b62007-08-27 23:57:45 +000014674 ac_top_srcdir=$ac_top_builddir_sub
14675 ac_abs_top_srcdir=$ac_pwd ;;
14676 [\\/]* | ?:[\\/]* ) # Absolute name.
Lev Walkinf15320b2004-06-03 03:38:44 +000014677 ac_srcdir=$srcdir$ac_dir_suffix;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014678 ac_top_srcdir=$srcdir
14679 ac_abs_top_srcdir=$srcdir ;;
14680 *) # Relative name.
14681 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14682 ac_top_srcdir=$ac_top_build_prefix$srcdir
14683 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014684esac
Lev Walkin27fd0b62007-08-27 23:57:45 +000014685ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Lev Walkin8e8b5482004-06-17 23:42:48 +000014686
Lev Walkinf15320b2004-06-03 03:38:44 +000014687
Lev Walkin27fd0b62007-08-27 23:57:45 +000014688 case $ac_mode in
14689 :F)
14690 #
14691 # CONFIG_FILE
14692 #
Lev Walkinf15320b2004-06-03 03:38:44 +000014693
14694 case $INSTALL in
14695 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014696 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014697 esac
Lev Walkin4c776e52010-11-08 02:07:31 -080014698 ac_MKDIR_P=$MKDIR_P
14699 case $MKDIR_P in
14700 [\\/$]* | ?:[\\/]* ) ;;
14701 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14702 esac
Lev Walkinf15320b2004-06-03 03:38:44 +000014703_ACEOF
Lev Walkin27fd0b62007-08-27 23:57:45 +000014704
Lev Walkinb3751942012-09-02 19:36:47 -070014705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkin27fd0b62007-08-27 23:57:45 +000014706# If the template does not know about datarootdir, expand it.
14707# FIXME: This hack should be removed a few years after 2.60.
14708ac_datarootdir_hack=; ac_datarootdir_seen=
Lev Walkinb3751942012-09-02 19:36:47 -070014709ac_sed_dataroot='
14710/datarootdir/ {
Lev Walkin27fd0b62007-08-27 23:57:45 +000014711 p
14712 q
14713}
14714/@datadir@/p
14715/@docdir@/p
14716/@infodir@/p
14717/@localedir@/p
Lev Walkinaef10c32014-01-14 01:47:25 -080014718/@mandir@/p'
Lev Walkinb3751942012-09-02 19:36:47 -070014719case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Lev Walkin27fd0b62007-08-27 23:57:45 +000014720*datarootdir*) ac_datarootdir_seen=yes;;
14721*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Lev Walkinaef10c32014-01-14 01:47:25 -080014722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070014723$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000014724_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070014725cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Lev Walkin27fd0b62007-08-27 23:57:45 +000014726 ac_datarootdir_hack='
14727 s&@datadir@&$datadir&g
14728 s&@docdir@&$docdir&g
14729 s&@infodir@&$infodir&g
14730 s&@localedir@&$localedir&g
14731 s&@mandir@&$mandir&g
Lev Walkinaef10c32014-01-14 01:47:25 -080014732 s&\\\${datarootdir}&$datarootdir&g' ;;
Lev Walkin27fd0b62007-08-27 23:57:45 +000014733esac
14734_ACEOF
14735
14736# Neutralize VPATH when `$srcdir' = `.'.
14737# Shell code in configure.ac might set extrasub.
14738# FIXME: do we really want to maintain this feature?
Lev Walkinb3751942012-09-02 19:36:47 -070014739cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14740ac_sed_extra="$ac_vpsub
Lev Walkinf15320b2004-06-03 03:38:44 +000014741$extrasub
14742_ACEOF
Lev Walkinb3751942012-09-02 19:36:47 -070014743cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Lev Walkinf15320b2004-06-03 03:38:44 +000014744:t
14745/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Lev Walkinb3751942012-09-02 19:36:47 -070014746s|@configure_input@|$ac_sed_conf_input|;t t
Lev Walkin27fd0b62007-08-27 23:57:45 +000014747s&@top_builddir@&$ac_top_builddir_sub&;t t
Lev Walkinb3751942012-09-02 19:36:47 -070014748s&@top_build_prefix@&$ac_top_build_prefix&;t t
Lev Walkin27fd0b62007-08-27 23:57:45 +000014749s&@srcdir@&$ac_srcdir&;t t
14750s&@abs_srcdir@&$ac_abs_srcdir&;t t
14751s&@top_srcdir@&$ac_top_srcdir&;t t
14752s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14753s&@builddir@&$ac_builddir&;t t
14754s&@abs_builddir@&$ac_abs_builddir&;t t
14755s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14756s&@INSTALL@&$ac_INSTALL&;t t
Lev Walkin4c776e52010-11-08 02:07:31 -080014757s&@MKDIR_P@&$ac_MKDIR_P&;t t
Lev Walkin27fd0b62007-08-27 23:57:45 +000014758$ac_datarootdir_hack
Lev Walkinb3751942012-09-02 19:36:47 -070014759"
Lev Walkinaef10c32014-01-14 01:47:25 -080014760eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14761 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +000014762
Lev Walkin27fd0b62007-08-27 23:57:45 +000014763test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Lev Walkinaef10c32014-01-14 01:47:25 -080014764 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14765 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14766 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14768which seems to be undefined. Please make sure it is defined" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070014769$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Lev Walkinaef10c32014-01-14 01:47:25 -080014770which seems to be undefined. Please make sure it is defined" >&2;}
Lev Walkinf15320b2004-06-03 03:38:44 +000014771
Lev Walkinaef10c32014-01-14 01:47:25 -080014772 rm -f "$ac_tmp/stdin"
Lev Walkinf15320b2004-06-03 03:38:44 +000014773 case $ac_file in
Lev Walkinaef10c32014-01-14 01:47:25 -080014774 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14775 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Lev Walkinb3751942012-09-02 19:36:47 -070014776 esac \
Lev Walkinaef10c32014-01-14 01:47:25 -080014777 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Lev Walkin27fd0b62007-08-27 23:57:45 +000014778 ;;
14779 :H)
14780 #
14781 # CONFIG_HEADER
14782 #
Lev Walkinf15320b2004-06-03 03:38:44 +000014783 if test x"$ac_file" != x-; then
Lev Walkinb3751942012-09-02 19:36:47 -070014784 {
14785 $as_echo "/* $configure_input */" \
Lev Walkinaef10c32014-01-14 01:47:25 -080014786 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14787 } >"$ac_tmp/config.h" \
14788 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14789 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070014791$as_echo "$as_me: $ac_file is unchanged" >&6;}
Lev Walkinf15320b2004-06-03 03:38:44 +000014792 else
Lev Walkinb3751942012-09-02 19:36:47 -070014793 rm -f "$ac_file"
Lev Walkinaef10c32014-01-14 01:47:25 -080014794 mv "$ac_tmp/config.h" "$ac_file" \
14795 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +000014796 fi
14797 else
Lev Walkinb3751942012-09-02 19:36:47 -070014798 $as_echo "/* $configure_input */" \
Lev Walkinaef10c32014-01-14 01:47:25 -080014799 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14800 || as_fn_error $? "could not create -" "$LINENO" 5
Lev Walkinf15320b2004-06-03 03:38:44 +000014801 fi
Lev Walkinb3751942012-09-02 19:36:47 -070014802# Compute "$ac_file"'s index in $config_headers.
14803_am_arg="$ac_file"
Lev Walkin8e8b5482004-06-17 23:42:48 +000014804_am_stamp_count=1
14805for _am_header in $config_headers :; do
14806 case $_am_header in
Lev Walkinb3751942012-09-02 19:36:47 -070014807 $_am_arg | $_am_arg:* )
Lev Walkin8e8b5482004-06-17 23:42:48 +000014808 break ;;
14809 * )
14810 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014811 esac
14812done
Lev Walkinb3751942012-09-02 19:36:47 -070014813echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14814$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14815 X"$_am_arg" : 'X\(//\)[^/]' \| \
14816 X"$_am_arg" : 'X\(//\)$' \| \
14817 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14818$as_echo X"$_am_arg" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000014819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14820 s//\1/
14821 q
14822 }
14823 /^X\(\/\/\)[^/].*/{
14824 s//\1/
14825 q
14826 }
14827 /^X\(\/\/\)$/{
14828 s//\1/
14829 q
14830 }
14831 /^X\(\/\).*/{
14832 s//\1/
14833 q
14834 }
14835 s/.*/./; q'`/stamp-h$_am_stamp_count
14836 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000014837
Lev Walkinaef10c32014-01-14 01:47:25 -080014838 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070014839$as_echo "$as_me: executing $ac_file commands" >&6;}
Lev Walkin27fd0b62007-08-27 23:57:45 +000014840 ;;
14841 esac
Lev Walkinf15320b2004-06-03 03:38:44 +000014842
14843
Lev Walkin27fd0b62007-08-27 23:57:45 +000014844 case $ac_file$ac_mode in
Lev Walkinb3751942012-09-02 19:36:47 -070014845 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14846 # Autoconf 2.62 quotes --file arguments for eval, but not when files
14847 # are listed without --file. Let's play safe and only enable the eval
14848 # if we detect the quoting.
14849 case $CONFIG_FILES in
14850 *\'*) eval set x "$CONFIG_FILES" ;;
14851 *) set x $CONFIG_FILES ;;
14852 esac
14853 shift
14854 for mf
14855 do
14856 # Strip MF so we end up with the name of the file.
14857 mf=`echo "$mf" | sed -e 's/:.*$//'`
14858 # Check whether this is an Automake generated Makefile or not.
14859 # We used to match only the files named `Makefile.in', but
14860 # some people rename them; so instead we look at the file content.
14861 # Grep'ing the first line is not enough: some people post-process
14862 # each Makefile.in and add a new line on top of each file to say so.
14863 # Grep'ing the whole file is not good either: AIX grep has a line
14864 # limit of 2048, but all sed's we know have understand at least 4000.
14865 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14866 dirpart=`$as_dirname -- "$mf" ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000014867$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14868 X"$mf" : 'X\(//\)[^/]' \| \
14869 X"$mf" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000014870 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinb3751942012-09-02 19:36:47 -070014871$as_echo X"$mf" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000014872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14873 s//\1/
14874 q
14875 }
14876 /^X\(\/\/\)[^/].*/{
14877 s//\1/
14878 q
14879 }
14880 /^X\(\/\/\)$/{
14881 s//\1/
14882 q
14883 }
14884 /^X\(\/\).*/{
14885 s//\1/
14886 q
14887 }
14888 s/.*/./; q'`
Lev Walkinb3751942012-09-02 19:36:47 -070014889 else
14890 continue
14891 fi
14892 # Extract the definition of DEPDIR, am__include, and am__quote
14893 # from the Makefile without running `make'.
14894 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14895 test -z "$DEPDIR" && continue
14896 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14897 test -z "am__include" && continue
14898 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14899 # When using ansi2knr, U may be empty or an underscore; expand it
14900 U=`sed -n 's/^U = //p' < "$mf"`
14901 # Find all dependency output files, they are included files with
14902 # $(DEPDIR) in their names. We invoke sed twice because it is the
14903 # simplest approach to changing $(DEPDIR) to its actual value in the
14904 # expansion.
14905 for file in `sed -n "
14906 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14907 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14908 # Make sure the directory exists.
14909 test -f "$dirpart/$file" && continue
14910 fdir=`$as_dirname -- "$file" ||
Lev Walkin8e8b5482004-06-17 23:42:48 +000014911$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14912 X"$file" : 'X\(//\)[^/]' \| \
14913 X"$file" : 'X\(//\)$' \| \
Lev Walkin27fd0b62007-08-27 23:57:45 +000014914 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
Lev Walkinb3751942012-09-02 19:36:47 -070014915$as_echo X"$file" |
Lev Walkin27fd0b62007-08-27 23:57:45 +000014916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14917 s//\1/
14918 q
14919 }
14920 /^X\(\/\/\)[^/].*/{
14921 s//\1/
14922 q
14923 }
14924 /^X\(\/\/\)$/{
14925 s//\1/
14926 q
14927 }
14928 /^X\(\/\).*/{
14929 s//\1/
14930 q
14931 }
14932 s/.*/./; q'`
Lev Walkinaef10c32014-01-14 01:47:25 -080014933 as_dir=$dirpart/$fdir; as_fn_mkdir_p
Lev Walkinb3751942012-09-02 19:36:47 -070014934 # echo "creating $dirpart/$file"
14935 echo '# dummy' > "$dirpart/$file"
14936 done
Lev Walkinf15320b2004-06-03 03:38:44 +000014937 done
Lev Walkinb3751942012-09-02 19:36:47 -070014938}
Lev Walkinf15320b2004-06-03 03:38:44 +000014939 ;;
Lev Walkin4da95cf2010-10-16 02:46:32 -070014940 "libtool":C)
14941
14942 # See if we are running on zsh, and set the options which allow our
14943 # commands through without removal of \ escapes.
14944 if test -n "${ZSH_VERSION+set}" ; then
14945 setopt NO_GLOB_SUBST
14946 fi
14947
14948 cfgfile="${ofile}T"
Lev Walkinaef10c32014-01-14 01:47:25 -080014949 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14950 $RM "$cfgfile"
Lev Walkin4da95cf2010-10-16 02:46:32 -070014951
14952 cat <<_LT_EOF >> "$cfgfile"
14953#! $SHELL
14954
14955# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14956# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14957# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14958# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14959#
14960# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
Lev Walkinaef10c32014-01-14 01:47:25 -080014961# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
14962# Inc.
Lev Walkin4da95cf2010-10-16 02:46:32 -070014963# Written by Gordon Matzigkeit, 1996
14964#
14965# This file is part of GNU Libtool.
14966#
14967# GNU Libtool is free software; you can redistribute it and/or
14968# modify it under the terms of the GNU General Public License as
14969# published by the Free Software Foundation; either version 2 of
14970# the License, or (at your option) any later version.
14971#
14972# As a special exception to the GNU General Public License,
14973# if you distribute this file as part of a program or library that
14974# is built using GNU Libtool, you may include this file under the
14975# same distribution terms that you use for the rest of that program.
14976#
14977# GNU Libtool is distributed in the hope that it will be useful,
14978# but WITHOUT ANY WARRANTY; without even the implied warranty of
14979# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14980# GNU General Public License for more details.
14981#
14982# You should have received a copy of the GNU General Public License
14983# along with GNU Libtool; see the file COPYING. If not, a copy
14984# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14985# obtained by writing to the Free Software Foundation, Inc.,
14986# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14987
14988
14989# The names of the tagged configurations supported by this script.
14990available_tags=""
14991
14992# ### BEGIN LIBTOOL CONFIG
14993
14994# Which release of libtool.m4 was used?
14995macro_version=$macro_version
14996macro_revision=$macro_revision
14997
14998# Whether or not to build shared libraries.
14999build_libtool_libs=$enable_shared
15000
15001# Whether or not to build static libraries.
15002build_old_libs=$enable_static
15003
15004# What type of objects to build.
15005pic_mode=$pic_mode
15006
15007# Whether or not to optimize for fast installation.
15008fast_install=$enable_fast_install
15009
Lev Walkinaef10c32014-01-14 01:47:25 -080015010# Shell to use when invoking shell scripts.
15011SHELL=$lt_SHELL
15012
15013# An echo program that protects backslashes.
15014ECHO=$lt_ECHO
15015
Lev Walkin4da95cf2010-10-16 02:46:32 -070015016# The host system.
15017host_alias=$host_alias
15018host=$host
15019host_os=$host_os
15020
15021# The build system.
15022build_alias=$build_alias
15023build=$build
15024build_os=$build_os
15025
15026# A sed program that does not truncate output.
15027SED=$lt_SED
15028
15029# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15030Xsed="\$SED -e 1s/^X//"
15031
15032# A grep program that handles long lines.
15033GREP=$lt_GREP
15034
15035# An ERE matcher.
15036EGREP=$lt_EGREP
15037
15038# A literal string matcher.
15039FGREP=$lt_FGREP
15040
15041# A BSD- or MS-compatible name lister.
15042NM=$lt_NM
15043
15044# Whether we need soft or hard links.
15045LN_S=$lt_LN_S
15046
15047# What is the maximum length of a command?
15048max_cmd_len=$max_cmd_len
15049
15050# Object file suffix (normally "o").
15051objext=$ac_objext
15052
15053# Executable file suffix (normally "").
15054exeext=$exeext
15055
15056# whether the shell understands "unset".
15057lt_unset=$lt_unset
15058
15059# turn spaces into newlines.
15060SP2NL=$lt_lt_SP2NL
15061
15062# turn newlines into spaces.
15063NL2SP=$lt_lt_NL2SP
15064
Lev Walkinaef10c32014-01-14 01:47:25 -080015065# convert \$build file names to \$host format.
15066to_host_file_cmd=$lt_cv_to_host_file_cmd
15067
15068# convert \$build files to toolchain format.
15069to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15070
15071# An object symbol dumper.
15072OBJDUMP=$lt_OBJDUMP
Lev Walkin4da95cf2010-10-16 02:46:32 -070015073
15074# Method to check whether dependent libraries are shared objects.
15075deplibs_check_method=$lt_deplibs_check_method
15076
Lev Walkinaef10c32014-01-14 01:47:25 -080015077# Command to use when deplibs_check_method = "file_magic".
Lev Walkin4da95cf2010-10-16 02:46:32 -070015078file_magic_cmd=$lt_file_magic_cmd
15079
Lev Walkinaef10c32014-01-14 01:47:25 -080015080# How to find potential files when deplibs_check_method = "file_magic".
15081file_magic_glob=$lt_file_magic_glob
15082
15083# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15084want_nocaseglob=$lt_want_nocaseglob
15085
15086# DLL creation program.
15087DLLTOOL=$lt_DLLTOOL
15088
15089# Command to associate shared and link libraries.
15090sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15091
Lev Walkin4da95cf2010-10-16 02:46:32 -070015092# The archiver.
15093AR=$lt_AR
Lev Walkinaef10c32014-01-14 01:47:25 -080015094
15095# Flags to create an archive.
Lev Walkin4da95cf2010-10-16 02:46:32 -070015096AR_FLAGS=$lt_AR_FLAGS
15097
Lev Walkinaef10c32014-01-14 01:47:25 -080015098# How to feed a file listing to the archiver.
15099archiver_list_spec=$lt_archiver_list_spec
15100
Lev Walkin4da95cf2010-10-16 02:46:32 -070015101# A symbol stripping program.
15102STRIP=$lt_STRIP
15103
15104# Commands used to install an old-style archive.
15105RANLIB=$lt_RANLIB
15106old_postinstall_cmds=$lt_old_postinstall_cmds
15107old_postuninstall_cmds=$lt_old_postuninstall_cmds
15108
Lev Walkinaef10c32014-01-14 01:47:25 -080015109# Whether to use a lock for old archive extraction.
15110lock_old_archive_extraction=$lock_old_archive_extraction
15111
Lev Walkin4da95cf2010-10-16 02:46:32 -070015112# A C compiler.
15113LTCC=$lt_CC
15114
15115# LTCC compiler flags.
15116LTCFLAGS=$lt_CFLAGS
15117
15118# Take the output of nm and produce a listing of raw symbols and C names.
15119global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15120
15121# Transform the output of nm in a proper C declaration.
15122global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15123
15124# Transform the output of nm in a C name address pair.
15125global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15126
15127# Transform the output of nm in a C name address pair when lib prefix is needed.
15128global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15129
Lev Walkinaef10c32014-01-14 01:47:25 -080015130# Specify filename containing input files for \$NM.
15131nm_file_list_spec=$lt_nm_file_list_spec
15132
15133# The root where to search for dependent libraries,and in which our libraries should be installed.
15134lt_sysroot=$lt_sysroot
15135
Lev Walkin4da95cf2010-10-16 02:46:32 -070015136# The name of the directory that contains temporary libtool files.
15137objdir=$objdir
15138
15139# Used to examine libraries when file_magic_cmd begins with "file".
15140MAGIC_CMD=$MAGIC_CMD
15141
15142# Must we lock files when doing compilation?
15143need_locks=$lt_need_locks
15144
Lev Walkinaef10c32014-01-14 01:47:25 -080015145# Manifest tool.
15146MANIFEST_TOOL=$lt_MANIFEST_TOOL
15147
Lev Walkin4da95cf2010-10-16 02:46:32 -070015148# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15149DSYMUTIL=$lt_DSYMUTIL
15150
15151# Tool to change global to local symbols on Mac OS X.
15152NMEDIT=$lt_NMEDIT
15153
15154# Tool to manipulate fat objects and archives on Mac OS X.
15155LIPO=$lt_LIPO
15156
15157# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15158OTOOL=$lt_OTOOL
15159
15160# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15161OTOOL64=$lt_OTOOL64
15162
15163# Old archive suffix (normally "a").
15164libext=$libext
15165
15166# Shared library suffix (normally ".so").
15167shrext_cmds=$lt_shrext_cmds
15168
15169# The commands to extract the exported symbol list from a shared archive.
15170extract_expsyms_cmds=$lt_extract_expsyms_cmds
15171
15172# Variables whose values should be saved in libtool wrapper scripts and
15173# restored at link time.
15174variables_saved_for_relink=$lt_variables_saved_for_relink
15175
15176# Do we need the "lib" prefix for modules?
15177need_lib_prefix=$need_lib_prefix
15178
15179# Do we need a version for libraries?
15180need_version=$need_version
15181
15182# Library versioning type.
15183version_type=$version_type
15184
15185# Shared library runtime path variable.
15186runpath_var=$runpath_var
15187
15188# Shared library path variable.
15189shlibpath_var=$shlibpath_var
15190
15191# Is shlibpath searched before the hard-coded library search path?
15192shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15193
15194# Format of library name prefix.
15195libname_spec=$lt_libname_spec
15196
15197# List of archive names. First name is the real one, the rest are links.
15198# The last name is the one that the linker finds with -lNAME
15199library_names_spec=$lt_library_names_spec
15200
15201# The coded name of the library, if different from the real name.
15202soname_spec=$lt_soname_spec
15203
Lev Walkinaef10c32014-01-14 01:47:25 -080015204# Permission mode override for installation of shared libraries.
15205install_override_mode=$lt_install_override_mode
15206
Lev Walkin4da95cf2010-10-16 02:46:32 -070015207# Command to use after installation of a shared archive.
15208postinstall_cmds=$lt_postinstall_cmds
15209
15210# Command to use after uninstallation of a shared archive.
15211postuninstall_cmds=$lt_postuninstall_cmds
15212
15213# Commands used to finish a libtool library installation in a directory.
15214finish_cmds=$lt_finish_cmds
15215
15216# As "finish_cmds", except a single script fragment to be evaled but
15217# not shown.
15218finish_eval=$lt_finish_eval
15219
15220# Whether we should hardcode library paths into libraries.
15221hardcode_into_libs=$hardcode_into_libs
15222
15223# Compile-time system search path for libraries.
15224sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15225
15226# Run-time system search path for libraries.
15227sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15228
15229# Whether dlopen is supported.
15230dlopen_support=$enable_dlopen
15231
15232# Whether dlopen of programs is supported.
15233dlopen_self=$enable_dlopen_self
15234
15235# Whether dlopen of statically linked programs is supported.
15236dlopen_self_static=$enable_dlopen_self_static
15237
15238# Commands to strip libraries.
15239old_striplib=$lt_old_striplib
15240striplib=$lt_striplib
15241
15242
15243# The linker used to build libraries.
15244LD=$lt_LD
15245
Lev Walkinaef10c32014-01-14 01:47:25 -080015246# How to create reloadable object files.
15247reload_flag=$lt_reload_flag
15248reload_cmds=$lt_reload_cmds
15249
Lev Walkin4da95cf2010-10-16 02:46:32 -070015250# Commands used to build an old-style archive.
15251old_archive_cmds=$lt_old_archive_cmds
15252
15253# A language specific compiler.
15254CC=$lt_compiler
15255
15256# Is the compiler the GNU compiler?
15257with_gcc=$GCC
15258
15259# Compiler flag to turn off builtin functions.
15260no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15261
Lev Walkin4c776e52010-11-08 02:07:31 -080015262# Additional compiler flags for building library objects.
15263pic_flag=$lt_lt_prog_compiler_pic
15264
Lev Walkinaef10c32014-01-14 01:47:25 -080015265# How to pass a linker flag through the compiler.
15266wl=$lt_lt_prog_compiler_wl
15267
Lev Walkin4da95cf2010-10-16 02:46:32 -070015268# Compiler flag to prevent dynamic linking.
15269link_static_flag=$lt_lt_prog_compiler_static
15270
15271# Does compiler simultaneously support -c and -o options?
15272compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15273
15274# Whether or not to add -lc for building shared libraries.
15275build_libtool_need_lc=$archive_cmds_need_lc
15276
15277# Whether or not to disallow shared libs when runtime libs are static.
15278allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15279
15280# Compiler flag to allow reflexive dlopens.
15281export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15282
15283# Compiler flag to generate shared objects directly from archives.
15284whole_archive_flag_spec=$lt_whole_archive_flag_spec
15285
15286# Whether the compiler copes with passing no objects directly.
15287compiler_needs_object=$lt_compiler_needs_object
15288
15289# Create an old-style archive from a shared archive.
15290old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15291
15292# Create a temporary old-style archive to link instead of a shared archive.
15293old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15294
15295# Commands used to build a shared archive.
15296archive_cmds=$lt_archive_cmds
15297archive_expsym_cmds=$lt_archive_expsym_cmds
15298
15299# Commands used to build a loadable module if different from building
15300# a shared archive.
15301module_cmds=$lt_module_cmds
15302module_expsym_cmds=$lt_module_expsym_cmds
15303
15304# Whether we are building with GNU ld or not.
15305with_gnu_ld=$lt_with_gnu_ld
15306
15307# Flag that allows shared libraries with undefined symbols to be built.
15308allow_undefined_flag=$lt_allow_undefined_flag
15309
15310# Flag that enforces no undefined symbols.
15311no_undefined_flag=$lt_no_undefined_flag
15312
15313# Flag to hardcode \$libdir into a binary during linking.
15314# This must work even if \$libdir does not exist
15315hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15316
15317# If ld is used when linking, flag to hardcode \$libdir into a binary
15318# during linking. This must work even if \$libdir does not exist.
15319hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15320
15321# Whether we need a single "-rpath" flag with a separated argument.
15322hardcode_libdir_separator=$lt_hardcode_libdir_separator
15323
15324# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15325# DIR into the resulting binary.
15326hardcode_direct=$hardcode_direct
15327
15328# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15329# DIR into the resulting binary and the resulting library dependency is
15330# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15331# library is relocated.
15332hardcode_direct_absolute=$hardcode_direct_absolute
15333
15334# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15335# into the resulting binary.
15336hardcode_minus_L=$hardcode_minus_L
15337
15338# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15339# into the resulting binary.
15340hardcode_shlibpath_var=$hardcode_shlibpath_var
15341
15342# Set to "yes" if building a shared library automatically hardcodes DIR
15343# into the library and all subsequent libraries and executables linked
15344# against it.
15345hardcode_automatic=$hardcode_automatic
15346
15347# Set to yes if linker adds runtime paths of dependent libraries
15348# to runtime path list.
15349inherit_rpath=$inherit_rpath
15350
15351# Whether libtool must link a program against all its dependency libraries.
15352link_all_deplibs=$link_all_deplibs
15353
15354# Set to "yes" if exported symbols are required.
15355always_export_symbols=$always_export_symbols
15356
15357# The commands to list exported symbols.
15358export_symbols_cmds=$lt_export_symbols_cmds
15359
15360# Symbols that should not be listed in the preloaded symbols.
15361exclude_expsyms=$lt_exclude_expsyms
15362
15363# Symbols that must always be exported.
15364include_expsyms=$lt_include_expsyms
15365
15366# Commands necessary for linking programs (against libraries) with templates.
15367prelink_cmds=$lt_prelink_cmds
15368
Lev Walkinaef10c32014-01-14 01:47:25 -080015369# Commands necessary for finishing linking programs.
15370postlink_cmds=$lt_postlink_cmds
15371
Lev Walkin4da95cf2010-10-16 02:46:32 -070015372# Specify filename containing input files.
15373file_list_spec=$lt_file_list_spec
15374
15375# How to hardcode a shared library path into an executable.
15376hardcode_action=$hardcode_action
15377
15378# ### END LIBTOOL CONFIG
15379
15380_LT_EOF
15381
15382 case $host_os in
15383 aix3*)
15384 cat <<\_LT_EOF >> "$cfgfile"
15385# AIX sometimes has problems with the GCC collect2 program. For some
15386# reason, if we set the COLLECT_NAMES environment variable, the problems
15387# vanish in a puff of smoke.
15388if test "X${COLLECT_NAMES+set}" != Xset; then
15389 COLLECT_NAMES=
15390 export COLLECT_NAMES
15391fi
15392_LT_EOF
15393 ;;
15394 esac
15395
15396
15397ltmain="$ac_aux_dir/ltmain.sh"
15398
15399
15400 # We use sed instead of cat because bash on DJGPP gets confused if
15401 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15402 # text mode, it properly converts lines to CR/LF. This bash problem
15403 # is reportedly fixed, but why not run on old versions too?
Lev Walkinaef10c32014-01-14 01:47:25 -080015404 sed '$q' "$ltmain" >> "$cfgfile" \
15405 || (rm -f "$cfgfile"; exit 1)
Lev Walkin4da95cf2010-10-16 02:46:32 -070015406
Lev Walkinaef10c32014-01-14 01:47:25 -080015407 if test x"$xsi_shell" = xyes; then
15408 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15409func_dirname ()\
15410{\
15411\ case ${1} in\
15412\ */*) func_dirname_result="${1%/*}${2}" ;;\
15413\ * ) func_dirname_result="${3}" ;;\
15414\ esac\
15415} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15416 && mv -f "$cfgfile.tmp" "$cfgfile" \
15417 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15418test 0 -eq $? || _lt_function_replace_fail=:
Lev Walkin4da95cf2010-10-16 02:46:32 -070015419
15420
Lev Walkinaef10c32014-01-14 01:47:25 -080015421 sed -e '/^func_basename ()$/,/^} # func_basename /c\
15422func_basename ()\
15423{\
15424\ func_basename_result="${1##*/}"\
15425} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15426 && mv -f "$cfgfile.tmp" "$cfgfile" \
15427 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15428test 0 -eq $? || _lt_function_replace_fail=:
Lev Walkin4da95cf2010-10-16 02:46:32 -070015429
15430
Lev Walkinaef10c32014-01-14 01:47:25 -080015431 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15432func_dirname_and_basename ()\
15433{\
15434\ case ${1} in\
15435\ */*) func_dirname_result="${1%/*}${2}" ;;\
15436\ * ) func_dirname_result="${3}" ;;\
15437\ esac\
15438\ func_basename_result="${1##*/}"\
15439} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15440 && mv -f "$cfgfile.tmp" "$cfgfile" \
15441 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15442test 0 -eq $? || _lt_function_replace_fail=:
Lev Walkin4da95cf2010-10-16 02:46:32 -070015443
Lev Walkinaef10c32014-01-14 01:47:25 -080015444
15445 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15446func_stripname ()\
15447{\
15448\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15449\ # positional parameters, so assign one to ordinary parameter first.\
15450\ func_stripname_result=${3}\
15451\ func_stripname_result=${func_stripname_result#"${1}"}\
15452\ func_stripname_result=${func_stripname_result%"${2}"}\
15453} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15454 && mv -f "$cfgfile.tmp" "$cfgfile" \
15455 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15456test 0 -eq $? || _lt_function_replace_fail=:
15457
15458
15459 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15460func_split_long_opt ()\
15461{\
15462\ func_split_long_opt_name=${1%%=*}\
15463\ func_split_long_opt_arg=${1#*=}\
15464} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15465 && mv -f "$cfgfile.tmp" "$cfgfile" \
15466 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15467test 0 -eq $? || _lt_function_replace_fail=:
15468
15469
15470 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15471func_split_short_opt ()\
15472{\
15473\ func_split_short_opt_arg=${1#??}\
15474\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15475} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15476 && mv -f "$cfgfile.tmp" "$cfgfile" \
15477 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15478test 0 -eq $? || _lt_function_replace_fail=:
15479
15480
15481 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15482func_lo2o ()\
15483{\
15484\ case ${1} in\
15485\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15486\ *) func_lo2o_result=${1} ;;\
15487\ esac\
15488} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15489 && mv -f "$cfgfile.tmp" "$cfgfile" \
15490 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15491test 0 -eq $? || _lt_function_replace_fail=:
15492
15493
15494 sed -e '/^func_xform ()$/,/^} # func_xform /c\
15495func_xform ()\
15496{\
15497 func_xform_result=${1%.*}.lo\
15498} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15499 && mv -f "$cfgfile.tmp" "$cfgfile" \
15500 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15501test 0 -eq $? || _lt_function_replace_fail=:
15502
15503
15504 sed -e '/^func_arith ()$/,/^} # func_arith /c\
15505func_arith ()\
15506{\
15507 func_arith_result=$(( $* ))\
15508} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15509 && mv -f "$cfgfile.tmp" "$cfgfile" \
15510 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15511test 0 -eq $? || _lt_function_replace_fail=:
15512
15513
15514 sed -e '/^func_len ()$/,/^} # func_len /c\
15515func_len ()\
15516{\
15517 func_len_result=${#1}\
15518} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15519 && mv -f "$cfgfile.tmp" "$cfgfile" \
15520 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15521test 0 -eq $? || _lt_function_replace_fail=:
15522
15523fi
15524
15525if test x"$lt_shell_append" = xyes; then
15526 sed -e '/^func_append ()$/,/^} # func_append /c\
15527func_append ()\
15528{\
15529 eval "${1}+=\\${2}"\
15530} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15531 && mv -f "$cfgfile.tmp" "$cfgfile" \
15532 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15533test 0 -eq $? || _lt_function_replace_fail=:
15534
15535
15536 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15537func_append_quoted ()\
15538{\
15539\ func_quote_for_eval "${2}"\
15540\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15541} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15542 && mv -f "$cfgfile.tmp" "$cfgfile" \
15543 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15544test 0 -eq $? || _lt_function_replace_fail=:
15545
15546
15547 # Save a `func_append' function call where possible by direct use of '+='
15548 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15549 && mv -f "$cfgfile.tmp" "$cfgfile" \
15550 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15551 test 0 -eq $? || _lt_function_replace_fail=:
15552else
15553 # Save a `func_append' function call even when '+=' is not available
15554 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15555 && mv -f "$cfgfile.tmp" "$cfgfile" \
15556 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15557 test 0 -eq $? || _lt_function_replace_fail=:
15558fi
15559
15560if test x"$_lt_function_replace_fail" = x":"; then
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15562$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15563fi
15564
15565
15566 mv -f "$cfgfile" "$ofile" ||
Lev Walkin4da95cf2010-10-16 02:46:32 -070015567 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15568 chmod +x "$ofile"
15569
15570 ;;
Lev Walkinf15320b2004-06-03 03:38:44 +000015571
Lev Walkin27fd0b62007-08-27 23:57:45 +000015572 esac
15573done # for ac_tag
15574
Lev Walkinf15320b2004-06-03 03:38:44 +000015575
Lev Walkinaef10c32014-01-14 01:47:25 -080015576as_fn_exit 0
Lev Walkinf15320b2004-06-03 03:38:44 +000015577_ACEOF
Lev Walkinf15320b2004-06-03 03:38:44 +000015578ac_clean_files=$ac_clean_files_save
15579
Lev Walkinb3751942012-09-02 19:36:47 -070015580test $ac_write_fail = 0 ||
Lev Walkinaef10c32014-01-14 01:47:25 -080015581 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Lev Walkinb3751942012-09-02 19:36:47 -070015582
Lev Walkinf15320b2004-06-03 03:38:44 +000015583
15584# configure is writing to config.log, and then calls config.status.
15585# config.status does its own redirection, appending to config.log.
15586# Unfortunately, on DOS this fails, as config.log is still kept open
15587# by configure, so config.status won't be able to write to it; its
15588# output is simply discarded. So we exec the FD to /dev/null,
15589# effectively closing config.log, so it can be properly (re)opened and
15590# appended to by config.status. When coming back to configure, we
15591# need to make the FD available again.
15592if test "$no_create" != yes; then
15593 ac_cs_success=:
15594 ac_config_status_args=
15595 test "$silent" = yes &&
15596 ac_config_status_args="$ac_config_status_args --quiet"
15597 exec 5>/dev/null
15598 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15599 exec 5>>config.log
15600 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15601 # would make configure fail if this is the last instruction.
Lev Walkinaef10c32014-01-14 01:47:25 -080015602 $ac_cs_success || as_fn_exit 1
Lev Walkinf15320b2004-06-03 03:38:44 +000015603fi
Lev Walkinb3751942012-09-02 19:36:47 -070015604if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Lev Walkinaef10c32014-01-14 01:47:25 -080015605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Lev Walkinb3751942012-09-02 19:36:47 -070015606$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15607fi
Lev Walkinf15320b2004-06-03 03:38:44 +000015608
15609