· 6 years ago · Jul 24, 2019, 09:38 PM
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for openocd 0.10.0.
4#
5# Report bugs to <OpenOCD Mailing List <openocd-devel@lists.sourceforge.net>>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_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
43# 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
50 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;
60 case $arg in #(
61 *"$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
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 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 }
81fi
82
83
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.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
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
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# 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 || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# 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 OpenOCD Mailing
278$0: List <openocd-devel@lists.sourceforge.net> about your
279$0: system, including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do 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
430if 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
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 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
468# 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
474
475
476 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. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # 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
503 # 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
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520*)
521 ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (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.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545else
546 as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='openocd'
592PACKAGE_TARNAME='openocd'
593PACKAGE_VERSION='0.10.0'
594PACKAGE_STRING='openocd 0.10.0'
595PACKAGE_BUGREPORT='OpenOCD Mailing List <openocd-devel@lists.sourceforge.net>'
596PACKAGE_URL=''
597
598ac_unique_file="src/openocd.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635enable_option_checking=no
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639LIBOBJS
640GCC_WARNINGS
641INTERNAL_LIBJAYLINK_FALSE
642INTERNAL_LIBJAYLINK_TRUE
643INTERNAL_JIMTCL_FALSE
644INTERNAL_JIMTCL_TRUE
645MINIDRIVER_DUMMY_FALSE
646MINIDRIVER_DUMMY_TRUE
647MINIDRIVER_FALSE
648MINIDRIVER_TRUE
649USE_LIBJAYLINK_FALSE
650USE_LIBJAYLINK_TRUE
651USE_HIDAPI_FALSE
652USE_HIDAPI_TRUE
653USE_LIBFTDI_FALSE
654USE_LIBFTDI_TRUE
655BITQ_FALSE
656BITQ_TRUE
657IS_DARWIN_FALSE
658IS_DARWIN_TRUE
659IS_WIN32_FALSE
660IS_WIN32_TRUE
661IS_MINGW_FALSE
662IS_MINGW_TRUE
663IS_CYGWIN_FALSE
664IS_CYGWIN_TRUE
665USE_LIBUSB1_FALSE
666USE_LIBUSB1_TRUE
667USE_LIBUSB0_FALSE
668USE_LIBUSB0_TRUE
669SYSFSGPIO_FALSE
670SYSFSGPIO_TRUE
671BUSPIRATE_FALSE
672BUSPIRATE_TRUE
673REMOTE_BITBANG_FALSE
674REMOTE_BITBANG_TRUE
675OOCD_TRACE_FALSE
676OOCD_TRACE_TRUE
677GW16012_FALSE
678GW16012_TRUE
679AMTJTAGACCEL_FALSE
680AMTJTAGACCEL_TRUE
681USB_BLASTER_DRIVER_FALSE
682USB_BLASTER_DRIVER_TRUE
683JTAG_VPI_FALSE
684JTAG_VPI_TRUE
685BITBANG_FALSE
686BITBANG_TRUE
687BCM2835GPIO_FALSE
688BCM2835GPIO_TRUE
689AT91RM9200_FALSE
690AT91RM9200_TRUE
691IOUTIL_FALSE
692IOUTIL_TRUE
693ZY1000_MASTER_FALSE
694ZY1000_MASTER_TRUE
695ZY1000_FALSE
696ZY1000_TRUE
697EP93XX_FALSE
698EP93XX_TRUE
699GIVEIO_FALSE
700GIVEIO_TRUE
701DUMMY_FALSE
702DUMMY_TRUE
703PARPORT_FALSE
704PARPORT_TRUE
705RELEASE_FALSE
706RELEASE_TRUE
707HLADAPTER_FALSE
708HLADAPTER_TRUE
709JLINK_FALSE
710JLINK_TRUE
711OPENJTAG_FALSE
712OPENJTAG_TRUE
713PRESTO_FALSE
714PRESTO_TRUE
715USB_BLASTER_FALSE
716USB_BLASTER_TRUE
717CMSIS_DAP_FALSE
718CMSIS_DAP_TRUE
719ARMJTAGEW_FALSE
720ARMJTAGEW_TRUE
721RLINK_FALSE
722RLINK_TRUE
723USBPROG_FALSE
724USBPROG_TRUE
725AICE_FALSE
726AICE_TRUE
727OPENDOUS_FALSE
728OPENDOUS_TRUE
729OSBDM_FALSE
730OSBDM_TRUE
731VSLLINK_FALSE
732VSLLINK_TRUE
733USB_BLASTER_2_FALSE
734USB_BLASTER_2_TRUE
735ULINK_FALSE
736ULINK_TRUE
737HLADAPTER_ICDI_FALSE
738HLADAPTER_ICDI_TRUE
739HLADAPTER_STLINK_FALSE
740HLADAPTER_STLINK_TRUE
741FTDI_FALSE
742FTDI_TRUE
743LIBJAYLINK_LIBS
744LIBJAYLINK_CFLAGS
745LIBFTDI_LIBS
746LIBFTDI_CFLAGS
747HIDAPI_LIBS
748HIDAPI_CFLAGS
749LIBUSB0_LIBS
750LIBUSB0_CFLAGS
751LIBUSB1_LIBS
752LIBUSB1_CFLAGS
753subdirs
754HOST_CPPFLAGS
755doxygen_as_pdf
756doxygen_as_html
757LIBTOOL_DEPS
758CPP
759LT_SYS_LIBRARY_PATH
760OTOOL64
761OTOOL
762LIPO
763NMEDIT
764DSYMUTIL
765MANIFEST_TOOL
766ac_ct_AR
767AR
768DLLTOOL
769OBJDUMP
770LN_S
771NM
772ac_ct_DUMPBIN
773DUMPBIN
774LD
775FGREP
776EGREP
777GREP
778SED
779host_os
780host_vendor
781host_cpu
782host
783build_os
784build_vendor
785build_cpu
786build
787LIBTOOL
788PKG_CONFIG_LIBDIR
789PKG_CONFIG_PATH
790PKG_CONFIG
791RANLIB
792am__fastdepCC_FALSE
793am__fastdepCC_TRUE
794CCDEPMODE
795am__nodep
796AMDEPBACKSLASH
797AMDEP_FALSE
798AMDEP_TRUE
799am__quote
800am__include
801DEPDIR
802OBJEXT
803EXEEXT
804ac_ct_CC
805CPPFLAGS
806LDFLAGS
807CFLAGS
808CC
809AM_BACKSLASH
810AM_DEFAULT_VERBOSITY
811AM_DEFAULT_V
812AM_V
813am__untar
814am__tar
815AMTAR
816am__leading_dot
817SET_MAKE
818AWK
819mkdir_p
820MKDIR_P
821INSTALL_STRIP_PROGRAM
822STRIP
823install_sh
824AUTOHEADER
825AUTOMAKE
826AUTOCONF
827ACLOCAL
828VERSION
829PACKAGE
830CYGPATH_W
831am__isrc
832INSTALL_DATA
833INSTALL_SCRIPT
834INSTALL_PROGRAM
835MAKEINFO
836target_alias
837host_alias
838build_alias
839LIBS
840ECHO_T
841ECHO_N
842ECHO_C
843DEFS
844mandir
845localedir
846libdir
847psdir
848pdfdir
849dvidir
850htmldir
851infodir
852docdir
853oldincludedir
854includedir
855runstatedir
856localstatedir
857sharedstatedir
858sysconfdir
859datadir
860datarootdir
861libexecdir
862sbindir
863bindir
864program_transform_name
865prefix
866exec_prefix
867PACKAGE_URL
868PACKAGE_BUGREPORT
869PACKAGE_STRING
870PACKAGE_VERSION
871PACKAGE_TARNAME
872PACKAGE_NAME
873PATH_SEPARATOR
874SHELL'
875ac_subst_files=''
876ac_user_opts='
877enable_option_checking
878enable_silent_rules
879enable_dependency_tracking
880enable_shared
881enable_static
882with_pic
883enable_fast_install
884with_aix_soname
885with_gnu_ld
886with_sysroot
887enable_libtool_lock
888enable_assert
889enable_doxygen_html
890enable_doxygen_pdf
891enable_gccwarnings
892enable_wextra
893enable_werror
894enable_verbose
895enable_verbose_jtag_io
896enable_verbose_usb_io
897enable_verbose_usb_comms
898enable_malloc_logging
899enable_dummy
900enable_ftdi
901enable_stlink
902enable_ti_icdi
903enable_ulink
904enable_usb_blaster_2
905enable_vsllink
906enable_osbdm
907enable_opendous
908enable_aice
909enable_usbprog
910enable_rlink
911enable_armjtagew
912enable_cmsis_dap
913enable_usb_blaster
914enable_presto
915enable_openjtag
916enable_jlink
917enable_parport
918enable_parport_ppdev
919enable_parport_giveio
920enable_jtag_vpi
921enable_amtjtagaccel
922enable_zy1000_master
923enable_zy1000
924enable_ioutil
925enable_ep93xx
926enable_at91rm9200
927enable_bcm2835gpio
928enable_gw16012
929enable_oocd_trace
930enable_buspirate
931enable_sysfsgpio
932enable_minidriver_dummy
933enable_internal_jimtcl
934enable_internal_libjaylink
935enable_remote_bitbang
936'
937 ac_precious_vars='build_alias
938host_alias
939target_alias
940CC
941CFLAGS
942LDFLAGS
943LIBS
944CPPFLAGS
945PKG_CONFIG
946PKG_CONFIG_PATH
947PKG_CONFIG_LIBDIR
948LT_SYS_LIBRARY_PATH
949CPP
950LIBUSB1_CFLAGS
951LIBUSB1_LIBS
952LIBUSB0_CFLAGS
953LIBUSB0_LIBS
954HIDAPI_CFLAGS
955HIDAPI_LIBS
956LIBFTDI_CFLAGS
957LIBFTDI_LIBS
958LIBJAYLINK_CFLAGS
959LIBJAYLINK_LIBS'
960ac_subdirs_all='jimtcl
961src/jtag/drivers/libjaylink'
962
963# Initialize some variables set by options.
964ac_init_help=
965ac_init_version=false
966ac_unrecognized_opts=
967ac_unrecognized_sep=
968# The variables have the same names as the options, with
969# dashes changed to underlines.
970cache_file=/dev/null
971exec_prefix=NONE
972no_create=
973no_recursion=
974prefix=NONE
975program_prefix=NONE
976program_suffix=NONE
977program_transform_name=s,x,x,
978silent=
979site=
980srcdir=
981verbose=
982x_includes=NONE
983x_libraries=NONE
984
985# Installation directory options.
986# These are left unexpanded so users can "make install exec_prefix=/foo"
987# and all the variables that are supposed to be based on exec_prefix
988# by default will actually change.
989# Use braces instead of parens because sh, perl, etc. also accept them.
990# (The list follows the same order as the GNU Coding Standards.)
991bindir='${exec_prefix}/bin'
992sbindir='${exec_prefix}/sbin'
993libexecdir='${exec_prefix}/libexec'
994datarootdir='${prefix}/share'
995datadir='${datarootdir}'
996sysconfdir='${prefix}/etc'
997sharedstatedir='${prefix}/com'
998localstatedir='${prefix}/var'
999runstatedir='${localstatedir}/run'
1000includedir='${prefix}/include'
1001oldincludedir='/usr/include'
1002docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1003infodir='${datarootdir}/info'
1004htmldir='${docdir}'
1005dvidir='${docdir}'
1006pdfdir='${docdir}'
1007psdir='${docdir}'
1008libdir='${exec_prefix}/lib'
1009localedir='${datarootdir}/locale'
1010mandir='${datarootdir}/man'
1011
1012ac_prev=
1013ac_dashdash=
1014for ac_option
1015do
1016 # If the previous option needs an argument, assign it.
1017 if test -n "$ac_prev"; then
1018 eval $ac_prev=\$ac_option
1019 ac_prev=
1020 continue
1021 fi
1022
1023 case $ac_option in
1024 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1025 *=) ac_optarg= ;;
1026 *) ac_optarg=yes ;;
1027 esac
1028
1029 # Accept the important Cygnus configure options, so we can diagnose typos.
1030
1031 case $ac_dashdash$ac_option in
1032 --)
1033 ac_dashdash=yes ;;
1034
1035 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1036 ac_prev=bindir ;;
1037 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1038 bindir=$ac_optarg ;;
1039
1040 -build | --build | --buil | --bui | --bu)
1041 ac_prev=build_alias ;;
1042 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1043 build_alias=$ac_optarg ;;
1044
1045 -cache-file | --cache-file | --cache-fil | --cache-fi \
1046 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1047 ac_prev=cache_file ;;
1048 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1049 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1050 cache_file=$ac_optarg ;;
1051
1052 --config-cache | -C)
1053 cache_file=config.cache ;;
1054
1055 -datadir | --datadir | --datadi | --datad)
1056 ac_prev=datadir ;;
1057 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1058 datadir=$ac_optarg ;;
1059
1060 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1061 | --dataroo | --dataro | --datar)
1062 ac_prev=datarootdir ;;
1063 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1064 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1065 datarootdir=$ac_optarg ;;
1066
1067 -disable-* | --disable-*)
1068 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1071 as_fn_error $? "invalid feature name: $ac_useropt"
1072 ac_useropt_orig=$ac_useropt
1073 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1074 case $ac_user_opts in
1075 *"
1076"enable_$ac_useropt"
1077"*) ;;
1078 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1079 ac_unrecognized_sep=', ';;
1080 esac
1081 eval enable_$ac_useropt=no ;;
1082
1083 -docdir | --docdir | --docdi | --doc | --do)
1084 ac_prev=docdir ;;
1085 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1086 docdir=$ac_optarg ;;
1087
1088 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1089 ac_prev=dvidir ;;
1090 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1091 dvidir=$ac_optarg ;;
1092
1093 -enable-* | --enable-*)
1094 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1097 as_fn_error $? "invalid feature name: $ac_useropt"
1098 ac_useropt_orig=$ac_useropt
1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1101 *"
1102"enable_$ac_useropt"
1103"*) ;;
1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1105 ac_unrecognized_sep=', ';;
1106 esac
1107 eval enable_$ac_useropt=\$ac_optarg ;;
1108
1109 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1110 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1111 | --exec | --exe | --ex)
1112 ac_prev=exec_prefix ;;
1113 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1114 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1115 | --exec=* | --exe=* | --ex=*)
1116 exec_prefix=$ac_optarg ;;
1117
1118 -gas | --gas | --ga | --g)
1119 # Obsolete; use --with-gas.
1120 with_gas=yes ;;
1121
1122 -help | --help | --hel | --he | -h)
1123 ac_init_help=long ;;
1124 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1125 ac_init_help=recursive ;;
1126 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1127 ac_init_help=short ;;
1128
1129 -host | --host | --hos | --ho)
1130 ac_prev=host_alias ;;
1131 -host=* | --host=* | --hos=* | --ho=*)
1132 host_alias=$ac_optarg ;;
1133
1134 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1135 ac_prev=htmldir ;;
1136 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1137 | --ht=*)
1138 htmldir=$ac_optarg ;;
1139
1140 -includedir | --includedir | --includedi | --included | --include \
1141 | --includ | --inclu | --incl | --inc)
1142 ac_prev=includedir ;;
1143 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1144 | --includ=* | --inclu=* | --incl=* | --inc=*)
1145 includedir=$ac_optarg ;;
1146
1147 -infodir | --infodir | --infodi | --infod | --info | --inf)
1148 ac_prev=infodir ;;
1149 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1150 infodir=$ac_optarg ;;
1151
1152 -libdir | --libdir | --libdi | --libd)
1153 ac_prev=libdir ;;
1154 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1155 libdir=$ac_optarg ;;
1156
1157 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1158 | --libexe | --libex | --libe)
1159 ac_prev=libexecdir ;;
1160 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1161 | --libexe=* | --libex=* | --libe=*)
1162 libexecdir=$ac_optarg ;;
1163
1164 -localedir | --localedir | --localedi | --localed | --locale)
1165 ac_prev=localedir ;;
1166 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1167 localedir=$ac_optarg ;;
1168
1169 -localstatedir | --localstatedir | --localstatedi | --localstated \
1170 | --localstate | --localstat | --localsta | --localst | --locals)
1171 ac_prev=localstatedir ;;
1172 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1173 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1174 localstatedir=$ac_optarg ;;
1175
1176 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1177 ac_prev=mandir ;;
1178 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1179 mandir=$ac_optarg ;;
1180
1181 -nfp | --nfp | --nf)
1182 # Obsolete; use --without-fp.
1183 with_fp=no ;;
1184
1185 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1186 | --no-cr | --no-c | -n)
1187 no_create=yes ;;
1188
1189 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1190 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1191 no_recursion=yes ;;
1192
1193 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1194 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1195 | --oldin | --oldi | --old | --ol | --o)
1196 ac_prev=oldincludedir ;;
1197 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1198 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1199 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1200 oldincludedir=$ac_optarg ;;
1201
1202 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1203 ac_prev=prefix ;;
1204 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1205 prefix=$ac_optarg ;;
1206
1207 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1208 | --program-pre | --program-pr | --program-p)
1209 ac_prev=program_prefix ;;
1210 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1211 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1212 program_prefix=$ac_optarg ;;
1213
1214 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1215 | --program-suf | --program-su | --program-s)
1216 ac_prev=program_suffix ;;
1217 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1218 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1219 program_suffix=$ac_optarg ;;
1220
1221 -program-transform-name | --program-transform-name \
1222 | --program-transform-nam | --program-transform-na \
1223 | --program-transform-n | --program-transform- \
1224 | --program-transform | --program-transfor \
1225 | --program-transfo | --program-transf \
1226 | --program-trans | --program-tran \
1227 | --progr-tra | --program-tr | --program-t)
1228 ac_prev=program_transform_name ;;
1229 -program-transform-name=* | --program-transform-name=* \
1230 | --program-transform-nam=* | --program-transform-na=* \
1231 | --program-transform-n=* | --program-transform-=* \
1232 | --program-transform=* | --program-transfor=* \
1233 | --program-transfo=* | --program-transf=* \
1234 | --program-trans=* | --program-tran=* \
1235 | --progr-tra=* | --program-tr=* | --program-t=*)
1236 program_transform_name=$ac_optarg ;;
1237
1238 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1239 ac_prev=pdfdir ;;
1240 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1241 pdfdir=$ac_optarg ;;
1242
1243 -psdir | --psdir | --psdi | --psd | --ps)
1244 ac_prev=psdir ;;
1245 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1246 psdir=$ac_optarg ;;
1247
1248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249 | -silent | --silent | --silen | --sile | --sil)
1250 silent=yes ;;
1251
1252 -runstatedir | --runstatedir | --runstatedi | --runstated \
1253 | --runstate | --runstat | --runsta | --runst | --runs \
1254 | --run | --ru | --r)
1255 ac_prev=runstatedir ;;
1256 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1257 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1258 | --run=* | --ru=* | --r=*)
1259 runstatedir=$ac_optarg ;;
1260
1261 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1262 ac_prev=sbindir ;;
1263 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1264 | --sbi=* | --sb=*)
1265 sbindir=$ac_optarg ;;
1266
1267 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1268 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1269 | --sharedst | --shareds | --shared | --share | --shar \
1270 | --sha | --sh)
1271 ac_prev=sharedstatedir ;;
1272 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1273 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1274 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1275 | --sha=* | --sh=*)
1276 sharedstatedir=$ac_optarg ;;
1277
1278 -site | --site | --sit)
1279 ac_prev=site ;;
1280 -site=* | --site=* | --sit=*)
1281 site=$ac_optarg ;;
1282
1283 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1284 ac_prev=srcdir ;;
1285 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1286 srcdir=$ac_optarg ;;
1287
1288 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1289 | --syscon | --sysco | --sysc | --sys | --sy)
1290 ac_prev=sysconfdir ;;
1291 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1292 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1293 sysconfdir=$ac_optarg ;;
1294
1295 -target | --target | --targe | --targ | --tar | --ta | --t)
1296 ac_prev=target_alias ;;
1297 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1298 target_alias=$ac_optarg ;;
1299
1300 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1301 verbose=yes ;;
1302
1303 -version | --version | --versio | --versi | --vers | -V)
1304 ac_init_version=: ;;
1305
1306 -with-* | --with-*)
1307 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1308 # Reject names that are not valid shell variable names.
1309 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1310 as_fn_error $? "invalid package name: $ac_useropt"
1311 ac_useropt_orig=$ac_useropt
1312 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1313 case $ac_user_opts in
1314 *"
1315"with_$ac_useropt"
1316"*) ;;
1317 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1318 ac_unrecognized_sep=', ';;
1319 esac
1320 eval with_$ac_useropt=\$ac_optarg ;;
1321
1322 -without-* | --without-*)
1323 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1326 as_fn_error $? "invalid package name: $ac_useropt"
1327 ac_useropt_orig=$ac_useropt
1328 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329 case $ac_user_opts in
1330 *"
1331"with_$ac_useropt"
1332"*) ;;
1333 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1334 ac_unrecognized_sep=', ';;
1335 esac
1336 eval with_$ac_useropt=no ;;
1337
1338 --x)
1339 # Obsolete; use --with-x.
1340 with_x=yes ;;
1341
1342 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1343 | --x-incl | --x-inc | --x-in | --x-i)
1344 ac_prev=x_includes ;;
1345 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1346 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1347 x_includes=$ac_optarg ;;
1348
1349 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1350 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1351 ac_prev=x_libraries ;;
1352 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1353 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1354 x_libraries=$ac_optarg ;;
1355
1356 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1357Try \`$0 --help' for more information"
1358 ;;
1359
1360 *=*)
1361 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1362 # Reject names that are not valid shell variable names.
1363 case $ac_envvar in #(
1364 '' | [0-9]* | *[!_$as_cr_alnum]* )
1365 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1366 esac
1367 eval $ac_envvar=\$ac_optarg
1368 export $ac_envvar ;;
1369
1370 *)
1371 # FIXME: should be removed in autoconf 3.0.
1372 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1373 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1374 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1375 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1376 ;;
1377
1378 esac
1379done
1380
1381if test -n "$ac_prev"; then
1382 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1383 as_fn_error $? "missing argument to $ac_option"
1384fi
1385
1386if test -n "$ac_unrecognized_opts"; then
1387 case $enable_option_checking in
1388 no) ;;
1389 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1390 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1391 esac
1392fi
1393
1394# Check all directory arguments for consistency.
1395for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1396 datadir sysconfdir sharedstatedir localstatedir includedir \
1397 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1398 libdir localedir mandir runstatedir
1399do
1400 eval ac_val=\$$ac_var
1401 # Remove trailing slashes.
1402 case $ac_val in
1403 */ )
1404 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1405 eval $ac_var=\$ac_val;;
1406 esac
1407 # Be sure to have absolute directory names.
1408 case $ac_val in
1409 [\\/$]* | ?:[\\/]* ) continue;;
1410 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1411 esac
1412 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1413done
1414
1415# There might be people who depend on the old broken behavior: `$host'
1416# used to hold the argument of --host etc.
1417# FIXME: To remove some day.
1418build=$build_alias
1419host=$host_alias
1420target=$target_alias
1421
1422# FIXME: To remove some day.
1423if test "x$host_alias" != x; then
1424 if test "x$build_alias" = x; then
1425 cross_compiling=maybe
1426 elif test "x$build_alias" != "x$host_alias"; then
1427 cross_compiling=yes
1428 fi
1429fi
1430
1431ac_tool_prefix=
1432test -n "$host_alias" && ac_tool_prefix=$host_alias-
1433
1434test "$silent" = yes && exec 6>/dev/null
1435
1436
1437ac_pwd=`pwd` && test -n "$ac_pwd" &&
1438ac_ls_di=`ls -di .` &&
1439ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1440 as_fn_error $? "working directory cannot be determined"
1441test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1442 as_fn_error $? "pwd does not report name of working directory"
1443
1444
1445# Find the source files, if location was not specified.
1446if test -z "$srcdir"; then
1447 ac_srcdir_defaulted=yes
1448 # Try the directory containing this script, then the parent directory.
1449 ac_confdir=`$as_dirname -- "$as_myself" ||
1450$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1451 X"$as_myself" : 'X\(//\)[^/]' \| \
1452 X"$as_myself" : 'X\(//\)$' \| \
1453 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1454$as_echo X"$as_myself" |
1455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1456 s//\1/
1457 q
1458 }
1459 /^X\(\/\/\)[^/].*/{
1460 s//\1/
1461 q
1462 }
1463 /^X\(\/\/\)$/{
1464 s//\1/
1465 q
1466 }
1467 /^X\(\/\).*/{
1468 s//\1/
1469 q
1470 }
1471 s/.*/./; q'`
1472 srcdir=$ac_confdir
1473 if test ! -r "$srcdir/$ac_unique_file"; then
1474 srcdir=..
1475 fi
1476else
1477 ac_srcdir_defaulted=no
1478fi
1479if test ! -r "$srcdir/$ac_unique_file"; then
1480 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1481 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1482fi
1483ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1484ac_abs_confdir=`(
1485 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1486 pwd)`
1487# When building in place, set srcdir=.
1488if test "$ac_abs_confdir" = "$ac_pwd"; then
1489 srcdir=.
1490fi
1491# Remove unnecessary trailing slashes from srcdir.
1492# Double slashes in file names in object file debugging info
1493# mess up M-x gdb in Emacs.
1494case $srcdir in
1495*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1496esac
1497for ac_var in $ac_precious_vars; do
1498 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1499 eval ac_env_${ac_var}_value=\$${ac_var}
1500 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1501 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1502done
1503
1504#
1505# Report the --help message.
1506#
1507if test "$ac_init_help" = "long"; then
1508 # Omit some internal or obsolete options to make the list less imposing.
1509 # This message is too long to be a string in the A/UX 3.1 sh.
1510 cat <<_ACEOF
1511\`configure' configures openocd 0.10.0 to adapt to many kinds of systems.
1512
1513Usage: $0 [OPTION]... [VAR=VALUE]...
1514
1515To assign environment variables (e.g., CC, CFLAGS...), specify them as
1516VAR=VALUE. See below for descriptions of some of the useful variables.
1517
1518Defaults for the options are specified in brackets.
1519
1520Configuration:
1521 -h, --help display this help and exit
1522 --help=short display options specific to this package
1523 --help=recursive display the short help of all the included packages
1524 -V, --version display version information and exit
1525 -q, --quiet, --silent do not print \`checking ...' messages
1526 --cache-file=FILE cache test results in FILE [disabled]
1527 -C, --config-cache alias for \`--cache-file=config.cache'
1528 -n, --no-create do not create output files
1529 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1530
1531Installation directories:
1532 --prefix=PREFIX install architecture-independent files in PREFIX
1533 [$ac_default_prefix]
1534 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1535 [PREFIX]
1536
1537By default, \`make install' will install all the files in
1538\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1539an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1540for instance \`--prefix=\$HOME'.
1541
1542For better control, use the options below.
1543
1544Fine tuning of the installation directories:
1545 --bindir=DIR user executables [EPREFIX/bin]
1546 --sbindir=DIR system admin executables [EPREFIX/sbin]
1547 --libexecdir=DIR program executables [EPREFIX/libexec]
1548 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1549 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1550 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1551 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1552 --libdir=DIR object code libraries [EPREFIX/lib]
1553 --includedir=DIR C header files [PREFIX/include]
1554 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1555 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1556 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1557 --infodir=DIR info documentation [DATAROOTDIR/info]
1558 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1559 --mandir=DIR man documentation [DATAROOTDIR/man]
1560 --docdir=DIR documentation root [DATAROOTDIR/doc/openocd]
1561 --htmldir=DIR html documentation [DOCDIR]
1562 --dvidir=DIR dvi documentation [DOCDIR]
1563 --pdfdir=DIR pdf documentation [DOCDIR]
1564 --psdir=DIR ps documentation [DOCDIR]
1565_ACEOF
1566
1567 cat <<\_ACEOF
1568
1569Program names:
1570 --program-prefix=PREFIX prepend PREFIX to installed program names
1571 --program-suffix=SUFFIX append SUFFIX to installed program names
1572 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1573
1574System types:
1575 --build=BUILD configure for building on BUILD [guessed]
1576 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1577_ACEOF
1578fi
1579
1580if test -n "$ac_init_help"; then
1581 case $ac_init_help in
1582 short | recursive ) echo "Configuration of openocd 0.10.0:";;
1583 esac
1584 cat <<\_ACEOF
1585
1586Optional Features:
1587 --disable-option-checking ignore unrecognized --enable/--with options
1588 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1589 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1590 --enable-silent-rules less verbose build output (undo: "make V=1")
1591 --disable-silent-rules verbose build output (undo: "make V=0")
1592 --enable-dependency-tracking
1593 do not reject slow dependency extractors
1594 --disable-dependency-tracking
1595 speeds up one-time build
1596 --enable-shared[=PKGS] build shared libraries [default=no]
1597 --enable-static[=PKGS] build static libraries [default=yes]
1598 --enable-fast-install[=PKGS]
1599 optimize for fast installation [default=yes]
1600 --disable-libtool-lock avoid locking (might break parallel builds)
1601 --disable-assert turn off assertions
1602 --disable-doxygen-html Disable building Doxygen manual as HTML.
1603 --enable-doxygen-pdf Enable building Doxygen manual as PDF.
1604 --disable-gccwarnings Disable compiler warnings
1605 --disable-wextra Disable extra compiler warnings
1606 --disable-werror Do not treat warnings as errors
1607 --enable-verbose Enable verbose JTAG I/O messages (for debugging).
1608 --enable-verbose-jtag-io
1609 Enable verbose JTAG I/O messages (for debugging).
1610 --enable-verbose-usb-io Enable verbose USB I/O messages (for debugging)
1611 --enable-verbose-usb-comms
1612 Enable verbose USB communication messages (for
1613 debugging)
1614 --enable-malloc-logging Include free space in logging messages (requires
1615 malloc.h).
1616 --enable-dummy Enable building the dummy port driver
1617 --enable-ftdi Enable building support for the MPSSE mode of FTDI
1618 based devices (default is auto)
1619 --enable-stlink Enable building support for the ST-Link JTAG
1620 Programmer (default is auto)
1621 --enable-ti-icdi Enable building support for the TI ICDI JTAG
1622 Programmer (default is auto)
1623 --enable-ulink Enable building support for the Keil ULINK JTAG
1624 Programmer (default is auto)
1625 --enable-usb-blaster-2 Enable building support for the Altera USB-Blaster
1626 II Compatible (default is auto)
1627 --enable-vsllink Enable building support for the Versaloon-Link JTAG
1628 Programmer (default is auto)
1629 --enable-osbdm Enable building support for the OSBDM (JTAG only)
1630 Programmer (default is auto)
1631 --enable-opendous Enable building support for the eStick/opendous JTAG
1632 Programmer (default is auto)
1633 --enable-aice Enable building support for the Andes JTAG
1634 Programmer (default is auto)
1635 --enable-usbprog Enable building support for the USBProg JTAG
1636 Programmer (default is auto)
1637 --enable-rlink Enable building support for the Raisonance RLink
1638 JTAG Programmer (default is auto)
1639 --enable-armjtagew Enable building support for the Olimex ARM-JTAG-EW
1640 Programmer (default is auto)
1641 --enable-cmsis-dap Enable building support for the CMSIS-DAP Compliant
1642 Debugger (default is auto)
1643 --enable-usb-blaster Enable building support for the Altera USB-Blaster
1644 Compatible (default is auto)
1645 --enable-presto Enable building support for the ASIX Presto Adapter
1646 (default is auto)
1647 --enable-openjtag Enable building support for the OpenJTAG Adapter
1648 (default is auto)
1649 --enable-jlink Enable building support for the SEGGER J-Link
1650 Programmer (default is auto)
1651 --enable-parport Enable building the pc parallel port driver
1652 --disable-parport-ppdev Disable use of ppdev (/dev/parportN) for parport
1653 (for x86 only)
1654 --enable-parport-giveio Enable use of giveio for parport (for CygWin only)
1655 --enable-jtag_vpi Enable building support for JTAG VPI
1656 --enable-amtjtagaccel Enable building the Amontec JTAG-Accelerator driver
1657 --enable-zy1000-master Use ZY1000 JTAG master registers
1658 --enable-zy1000 Enable ZY1000 interface
1659 --enable-ioutil Enable ioutil functions - useful for standalone
1660 OpenOCD implementations
1661 --enable-ep93xx Enable building support for EP93xx based SBCs
1662 --enable-at91rm9200 Enable building support for AT91RM9200 based SBCs
1663 --enable-bcm2835gpio Enable building support for bitbanging on BCM2835
1664 (as found in Raspberry Pi)
1665 --enable-gw16012 Enable building support for the Gateworks GW16012
1666 JTAG Programmer
1667 --enable-oocd_trace Enable building support for some prototype
1668 OpenOCD+trace ETM capture hardware
1669 --enable-buspirate Enable building support for the Buspirate
1670 --enable-sysfsgpio Enable building support for programming driven via
1671 sysfs gpios.
1672 --enable-minidriver-dummy
1673 Enable the dummy minidriver.
1674 --disable-internal-jimtcl
1675 Disable building internal jimtcl
1676 --disable-internal-libjaylink
1677 Disable building internal libjaylink
1678 --enable-remote-bitbang Enable building support for the Remote Bitbang jtag
1679 driver
1680
1681Optional Packages:
1682 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1683 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1684 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1685 both]
1686 --with-aix-soname=aix|svr4|both
1687 shared library versioning (aka "SONAME") variant to
1688 provide on AIX, [default=aix].
1689 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1690 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1691 compiler's sysroot if not specified).
1692
1693Some influential environment variables:
1694 CC C compiler command
1695 CFLAGS C compiler flags
1696 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1697 nonstandard directory <lib dir>
1698 LIBS libraries to pass to the linker, e.g. -l<library>
1699 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1700 you have headers in a nonstandard directory <include dir>
1701 PKG_CONFIG path to pkg-config utility
1702 PKG_CONFIG_PATH
1703 directories to add to pkg-config's search path
1704 PKG_CONFIG_LIBDIR
1705 path overriding pkg-config's built-in search path
1706 LT_SYS_LIBRARY_PATH
1707 User-defined run-time library search path.
1708 CPP C preprocessor
1709 LIBUSB1_CFLAGS
1710 C compiler flags for LIBUSB1, overriding pkg-config
1711 LIBUSB1_LIBS
1712 linker flags for LIBUSB1, overriding pkg-config
1713 LIBUSB0_CFLAGS
1714 C compiler flags for LIBUSB0, overriding pkg-config
1715 LIBUSB0_LIBS
1716 linker flags for LIBUSB0, overriding pkg-config
1717 HIDAPI_CFLAGS
1718 C compiler flags for HIDAPI, overriding pkg-config
1719 HIDAPI_LIBS linker flags for HIDAPI, overriding pkg-config
1720 LIBFTDI_CFLAGS
1721 C compiler flags for LIBFTDI, overriding pkg-config
1722 LIBFTDI_LIBS
1723 linker flags for LIBFTDI, overriding pkg-config
1724 LIBJAYLINK_CFLAGS
1725 C compiler flags for LIBJAYLINK, overriding pkg-config
1726 LIBJAYLINK_LIBS
1727 linker flags for LIBJAYLINK, overriding pkg-config
1728
1729Use these variables to override the choices made by `configure' or to help
1730it to find libraries and programs with nonstandard names/locations.
1731
1732Report bugs to <OpenOCD Mailing List <openocd-devel@lists.sourceforge.net>>.
1733_ACEOF
1734ac_status=$?
1735fi
1736
1737if test "$ac_init_help" = "recursive"; then
1738 # If there are subdirs, report their specific --help.
1739 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1740 test -d "$ac_dir" ||
1741 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1742 continue
1743 ac_builddir=.
1744
1745case "$ac_dir" in
1746.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1747*)
1748 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1749 # A ".." for each directory in $ac_dir_suffix.
1750 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1751 case $ac_top_builddir_sub in
1752 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1753 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1754 esac ;;
1755esac
1756ac_abs_top_builddir=$ac_pwd
1757ac_abs_builddir=$ac_pwd$ac_dir_suffix
1758# for backward compatibility:
1759ac_top_builddir=$ac_top_build_prefix
1760
1761case $srcdir in
1762 .) # We are building in place.
1763 ac_srcdir=.
1764 ac_top_srcdir=$ac_top_builddir_sub
1765 ac_abs_top_srcdir=$ac_pwd ;;
1766 [\\/]* | ?:[\\/]* ) # Absolute name.
1767 ac_srcdir=$srcdir$ac_dir_suffix;
1768 ac_top_srcdir=$srcdir
1769 ac_abs_top_srcdir=$srcdir ;;
1770 *) # Relative name.
1771 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1772 ac_top_srcdir=$ac_top_build_prefix$srcdir
1773 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1774esac
1775ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1776
1777 cd "$ac_dir" || { ac_status=$?; continue; }
1778 # Check for guested configure.
1779 if test -f "$ac_srcdir/configure.gnu"; then
1780 echo &&
1781 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1782 elif test -f "$ac_srcdir/configure"; then
1783 echo &&
1784 $SHELL "$ac_srcdir/configure" --help=recursive
1785 else
1786 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1787 fi || ac_status=$?
1788 cd "$ac_pwd" || { ac_status=$?; break; }
1789 done
1790fi
1791
1792test -n "$ac_init_help" && exit $ac_status
1793if $ac_init_version; then
1794 cat <<\_ACEOF
1795openocd configure 0.10.0
1796generated by GNU Autoconf 2.69
1797
1798Copyright (C) 2012 Free Software Foundation, Inc.
1799This configure script is free software; the Free Software Foundation
1800gives unlimited permission to copy, distribute and modify it.
1801_ACEOF
1802 exit
1803fi
1804
1805## ------------------------ ##
1806## Autoconf initialization. ##
1807## ------------------------ ##
1808
1809# ac_fn_c_try_compile LINENO
1810# --------------------------
1811# Try to compile conftest.$ac_ext, and return whether this succeeded.
1812ac_fn_c_try_compile ()
1813{
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 rm -f conftest.$ac_objext
1816 if { { ac_try="$ac_compile"
1817case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820esac
1821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822$as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_compile") 2>conftest.err
1824 ac_status=$?
1825 if test -s conftest.err; then
1826 grep -v '^ *+' conftest.err >conftest.er1
1827 cat conftest.er1 >&5
1828 mv -f conftest.er1 conftest.err
1829 fi
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && {
1832 test -z "$ac_c_werror_flag" ||
1833 test ! -s conftest.err
1834 } && test -s conftest.$ac_objext; then :
1835 ac_retval=0
1836else
1837 $as_echo "$as_me: failed program was:" >&5
1838sed 's/^/| /' conftest.$ac_ext >&5
1839
1840 ac_retval=1
1841fi
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843 as_fn_set_status $ac_retval
1844
1845} # ac_fn_c_try_compile
1846
1847# ac_fn_c_try_link LINENO
1848# -----------------------
1849# Try to link conftest.$ac_ext, and return whether this succeeded.
1850ac_fn_c_try_link ()
1851{
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 rm -f conftest.$ac_objext conftest$ac_exeext
1854 if { { ac_try="$ac_link"
1855case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858esac
1859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860$as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_link") 2>conftest.err
1862 ac_status=$?
1863 if test -s conftest.err; then
1864 grep -v '^ *+' conftest.err >conftest.er1
1865 cat conftest.er1 >&5
1866 mv -f conftest.er1 conftest.err
1867 fi
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && {
1870 test -z "$ac_c_werror_flag" ||
1871 test ! -s conftest.err
1872 } && test -s conftest$ac_exeext && {
1873 test "$cross_compiling" = yes ||
1874 test -x conftest$ac_exeext
1875 }; then :
1876 ac_retval=0
1877else
1878 $as_echo "$as_me: failed program was:" >&5
1879sed 's/^/| /' conftest.$ac_ext >&5
1880
1881 ac_retval=1
1882fi
1883 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1884 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1885 # interfere with the next link command; also delete a directory that is
1886 # left behind by Apple's compiler. We do this before executing the actions.
1887 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
1890
1891} # ac_fn_c_try_link
1892
1893# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1894# -------------------------------------------------------
1895# Tests whether HEADER exists and can be compiled using the include files in
1896# INCLUDES, setting the cache variable VAR accordingly.
1897ac_fn_c_check_header_compile ()
1898{
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901$as_echo_n "checking for $2... " >&6; }
1902if eval \${$3+:} false; then :
1903 $as_echo_n "(cached) " >&6
1904else
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906/* end confdefs.h. */
1907$4
1908#include <$2>
1909_ACEOF
1910if ac_fn_c_try_compile "$LINENO"; then :
1911 eval "$3=yes"
1912else
1913 eval "$3=no"
1914fi
1915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916fi
1917eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919$as_echo "$ac_res" >&6; }
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921
1922} # ac_fn_c_check_header_compile
1923
1924# ac_fn_c_try_cpp LINENO
1925# ----------------------
1926# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1927ac_fn_c_try_cpp ()
1928{
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 if { { ac_try="$ac_cpp conftest.$ac_ext"
1931case "(($ac_try" in
1932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933 *) ac_try_echo=$ac_try;;
1934esac
1935eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936$as_echo "$ac_try_echo"; } >&5
1937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1938 ac_status=$?
1939 if test -s conftest.err; then
1940 grep -v '^ *+' conftest.err >conftest.er1
1941 cat conftest.er1 >&5
1942 mv -f conftest.er1 conftest.err
1943 fi
1944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; } > conftest.i && {
1946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1947 test ! -s conftest.err
1948 }; then :
1949 ac_retval=0
1950else
1951 $as_echo "$as_me: failed program was:" >&5
1952sed 's/^/| /' conftest.$ac_ext >&5
1953
1954 ac_retval=1
1955fi
1956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957 as_fn_set_status $ac_retval
1958
1959} # ac_fn_c_try_cpp
1960
1961# ac_fn_c_try_run LINENO
1962# ----------------------
1963# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1964# that executables *can* be run.
1965ac_fn_c_try_run ()
1966{
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 if { { ac_try="$ac_link"
1969case "(($ac_try" in
1970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971 *) ac_try_echo=$ac_try;;
1972esac
1973eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974$as_echo "$ac_try_echo"; } >&5
1975 (eval "$ac_link") 2>&5
1976 ac_status=$?
1977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1979 { { case "(($ac_try" in
1980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1981 *) ac_try_echo=$ac_try;;
1982esac
1983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1984$as_echo "$ac_try_echo"; } >&5
1985 (eval "$ac_try") 2>&5
1986 ac_status=$?
1987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1988 test $ac_status = 0; }; }; then :
1989 ac_retval=0
1990else
1991 $as_echo "$as_me: program exited with status $ac_status" >&5
1992 $as_echo "$as_me: failed program was:" >&5
1993sed 's/^/| /' conftest.$ac_ext >&5
1994
1995 ac_retval=$ac_status
1996fi
1997 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999 as_fn_set_status $ac_retval
2000
2001} # ac_fn_c_try_run
2002
2003# ac_fn_c_check_func LINENO FUNC VAR
2004# ----------------------------------
2005# Tests whether FUNC exists, setting the cache variable VAR accordingly
2006ac_fn_c_check_func ()
2007{
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010$as_echo_n "checking for $2... " >&6; }
2011if eval \${$3+:} false; then :
2012 $as_echo_n "(cached) " >&6
2013else
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015/* end confdefs.h. */
2016/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2018#define $2 innocuous_$2
2019
2020/* System header to define __stub macros and hopefully few prototypes,
2021 which can conflict with char $2 (); below.
2022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2023 <limits.h> exists even on freestanding compilers. */
2024
2025#ifdef __STDC__
2026# include <limits.h>
2027#else
2028# include <assert.h>
2029#endif
2030
2031#undef $2
2032
2033/* Override any GCC internal prototype to avoid an error.
2034 Use char because int might match the return type of a GCC
2035 builtin and then its argument prototype would still apply. */
2036#ifdef __cplusplus
2037extern "C"
2038#endif
2039char $2 ();
2040/* The GNU C library defines this for functions which it implements
2041 to always fail with ENOSYS. Some functions are actually named
2042 something starting with __ and the normal name is an alias. */
2043#if defined __stub_$2 || defined __stub___$2
2044choke me
2045#endif
2046
2047int
2048main ()
2049{
2050return $2 ();
2051 ;
2052 return 0;
2053}
2054_ACEOF
2055if ac_fn_c_try_link "$LINENO"; then :
2056 eval "$3=yes"
2057else
2058 eval "$3=no"
2059fi
2060rm -f core conftest.err conftest.$ac_objext \
2061 conftest$ac_exeext conftest.$ac_ext
2062fi
2063eval ac_res=\$$3
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2065$as_echo "$ac_res" >&6; }
2066 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2067
2068} # ac_fn_c_check_func
2069
2070# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2071# -------------------------------------------------------
2072# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2073# the include files in INCLUDES and setting the cache variable VAR
2074# accordingly.
2075ac_fn_c_check_header_mongrel ()
2076{
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 if eval \${$3+:} false; then :
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2080$as_echo_n "checking for $2... " >&6; }
2081if eval \${$3+:} false; then :
2082 $as_echo_n "(cached) " >&6
2083fi
2084eval ac_res=\$$3
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2086$as_echo "$ac_res" >&6; }
2087else
2088 # Is the header compilable?
2089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2090$as_echo_n "checking $2 usability... " >&6; }
2091cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092/* end confdefs.h. */
2093$4
2094#include <$2>
2095_ACEOF
2096if ac_fn_c_try_compile "$LINENO"; then :
2097 ac_header_compiler=yes
2098else
2099 ac_header_compiler=no
2100fi
2101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2103$as_echo "$ac_header_compiler" >&6; }
2104
2105# Is the header present?
2106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2107$as_echo_n "checking $2 presence... " >&6; }
2108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109/* end confdefs.h. */
2110#include <$2>
2111_ACEOF
2112if ac_fn_c_try_cpp "$LINENO"; then :
2113 ac_header_preproc=yes
2114else
2115 ac_header_preproc=no
2116fi
2117rm -f conftest.err conftest.i conftest.$ac_ext
2118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2119$as_echo "$ac_header_preproc" >&6; }
2120
2121# So? What about this header?
2122case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2123 yes:no: )
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2125$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2127$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2128 ;;
2129 no:yes:* )
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2131$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2133$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2135$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2137$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2139$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2140( $as_echo "## ------------------------------------------------------------------------- ##
2141## Report this to OpenOCD Mailing List <openocd-devel@lists.sourceforge.net> ##
2142## ------------------------------------------------------------------------- ##"
2143 ) | sed "s/^/$as_me: WARNING: /" >&2
2144 ;;
2145esac
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2147$as_echo_n "checking for $2... " >&6; }
2148if eval \${$3+:} false; then :
2149 $as_echo_n "(cached) " >&6
2150else
2151 eval "$3=\$ac_header_compiler"
2152fi
2153eval ac_res=\$$3
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2155$as_echo "$ac_res" >&6; }
2156fi
2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2158
2159} # ac_fn_c_check_header_mongrel
2160
2161# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2162# -------------------------------------------
2163# Tests whether TYPE exists after having included INCLUDES, setting cache
2164# variable VAR accordingly.
2165ac_fn_c_check_type ()
2166{
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2169$as_echo_n "checking for $2... " >&6; }
2170if eval \${$3+:} false; then :
2171 $as_echo_n "(cached) " >&6
2172else
2173 eval "$3=no"
2174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175/* end confdefs.h. */
2176$4
2177int
2178main ()
2179{
2180if (sizeof ($2))
2181 return 0;
2182 ;
2183 return 0;
2184}
2185_ACEOF
2186if ac_fn_c_try_compile "$LINENO"; then :
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188/* end confdefs.h. */
2189$4
2190int
2191main ()
2192{
2193if (sizeof (($2)))
2194 return 0;
2195 ;
2196 return 0;
2197}
2198_ACEOF
2199if ac_fn_c_try_compile "$LINENO"; then :
2200
2201else
2202 eval "$3=yes"
2203fi
2204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205fi
2206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207fi
2208eval ac_res=\$$3
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2210$as_echo "$ac_res" >&6; }
2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212
2213} # ac_fn_c_check_type
2214cat >config.log <<_ACEOF
2215This file contains any messages produced by compilers while
2216running configure, to aid debugging if configure makes a mistake.
2217
2218It was created by openocd $as_me 0.10.0, which was
2219generated by GNU Autoconf 2.69. Invocation command line was
2220
2221 $ $0 $@
2222
2223_ACEOF
2224exec 5>>config.log
2225{
2226cat <<_ASUNAME
2227## --------- ##
2228## Platform. ##
2229## --------- ##
2230
2231hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2232uname -m = `(uname -m) 2>/dev/null || echo unknown`
2233uname -r = `(uname -r) 2>/dev/null || echo unknown`
2234uname -s = `(uname -s) 2>/dev/null || echo unknown`
2235uname -v = `(uname -v) 2>/dev/null || echo unknown`
2236
2237/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2238/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2239
2240/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2241/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2242/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2243/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2244/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2245/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2246/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2247
2248_ASUNAME
2249
2250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251for as_dir in $PATH
2252do
2253 IFS=$as_save_IFS
2254 test -z "$as_dir" && as_dir=.
2255 $as_echo "PATH: $as_dir"
2256 done
2257IFS=$as_save_IFS
2258
2259} >&5
2260
2261cat >&5 <<_ACEOF
2262
2263
2264## ----------- ##
2265## Core tests. ##
2266## ----------- ##
2267
2268_ACEOF
2269
2270
2271# Keep a trace of the command line.
2272# Strip out --no-create and --no-recursion so they do not pile up.
2273# Strip out --silent because we don't want to record it for future runs.
2274# Also quote any args containing shell meta-characters.
2275# Make two passes to allow for proper duplicate-argument suppression.
2276ac_configure_args=
2277ac_configure_args0=
2278ac_configure_args1=
2279ac_must_keep_next=false
2280for ac_pass in 1 2
2281do
2282 for ac_arg
2283 do
2284 case $ac_arg in
2285 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2286 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2287 | -silent | --silent | --silen | --sile | --sil)
2288 continue ;;
2289 *\'*)
2290 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2291 esac
2292 case $ac_pass in
2293 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2294 2)
2295 as_fn_append ac_configure_args1 " '$ac_arg'"
2296 if test $ac_must_keep_next = true; then
2297 ac_must_keep_next=false # Got value, back to normal.
2298 else
2299 case $ac_arg in
2300 *=* | --config-cache | -C | -disable-* | --disable-* \
2301 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2302 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2303 | -with-* | --with-* | -without-* | --without-* | --x)
2304 case "$ac_configure_args0 " in
2305 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2306 esac
2307 ;;
2308 -* ) ac_must_keep_next=true ;;
2309 esac
2310 fi
2311 as_fn_append ac_configure_args " '$ac_arg'"
2312 ;;
2313 esac
2314 done
2315done
2316{ ac_configure_args0=; unset ac_configure_args0;}
2317{ ac_configure_args1=; unset ac_configure_args1;}
2318
2319# When interrupted or exit'd, cleanup temporary files, and complete
2320# config.log. We remove comments because anyway the quotes in there
2321# would cause problems or look ugly.
2322# WARNING: Use '\'' to represent an apostrophe within the trap.
2323# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2324trap 'exit_status=$?
2325 # Save into config.log some information that might help in debugging.
2326 {
2327 echo
2328
2329 $as_echo "## ---------------- ##
2330## Cache variables. ##
2331## ---------------- ##"
2332 echo
2333 # The following way of writing the cache mishandles newlines in values,
2334(
2335 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2336 eval ac_val=\$$ac_var
2337 case $ac_val in #(
2338 *${as_nl}*)
2339 case $ac_var in #(
2340 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2341$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2342 esac
2343 case $ac_var in #(
2344 _ | IFS | as_nl) ;; #(
2345 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2346 *) { eval $ac_var=; unset $ac_var;} ;;
2347 esac ;;
2348 esac
2349 done
2350 (set) 2>&1 |
2351 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2352 *${as_nl}ac_space=\ *)
2353 sed -n \
2354 "s/'\''/'\''\\\\'\'''\''/g;
2355 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2356 ;; #(
2357 *)
2358 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2359 ;;
2360 esac |
2361 sort
2362)
2363 echo
2364
2365 $as_echo "## ----------------- ##
2366## Output variables. ##
2367## ----------------- ##"
2368 echo
2369 for ac_var in $ac_subst_vars
2370 do
2371 eval ac_val=\$$ac_var
2372 case $ac_val in
2373 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2374 esac
2375 $as_echo "$ac_var='\''$ac_val'\''"
2376 done | sort
2377 echo
2378
2379 if test -n "$ac_subst_files"; then
2380 $as_echo "## ------------------- ##
2381## File substitutions. ##
2382## ------------------- ##"
2383 echo
2384 for ac_var in $ac_subst_files
2385 do
2386 eval ac_val=\$$ac_var
2387 case $ac_val in
2388 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2389 esac
2390 $as_echo "$ac_var='\''$ac_val'\''"
2391 done | sort
2392 echo
2393 fi
2394
2395 if test -s confdefs.h; then
2396 $as_echo "## ----------- ##
2397## confdefs.h. ##
2398## ----------- ##"
2399 echo
2400 cat confdefs.h
2401 echo
2402 fi
2403 test "$ac_signal" != 0 &&
2404 $as_echo "$as_me: caught signal $ac_signal"
2405 $as_echo "$as_me: exit $exit_status"
2406 } >&5
2407 rm -f core *.core core.conftest.* &&
2408 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2409 exit $exit_status
2410' 0
2411for ac_signal in 1 2 13 15; do
2412 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2413done
2414ac_signal=0
2415
2416# confdefs.h avoids OS command line length limits that DEFS can exceed.
2417rm -f -r conftest* confdefs.h
2418
2419$as_echo "/* confdefs.h */" > confdefs.h
2420
2421# Predefined preprocessor variables.
2422
2423cat >>confdefs.h <<_ACEOF
2424#define PACKAGE_NAME "$PACKAGE_NAME"
2425_ACEOF
2426
2427cat >>confdefs.h <<_ACEOF
2428#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2429_ACEOF
2430
2431cat >>confdefs.h <<_ACEOF
2432#define PACKAGE_VERSION "$PACKAGE_VERSION"
2433_ACEOF
2434
2435cat >>confdefs.h <<_ACEOF
2436#define PACKAGE_STRING "$PACKAGE_STRING"
2437_ACEOF
2438
2439cat >>confdefs.h <<_ACEOF
2440#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2441_ACEOF
2442
2443cat >>confdefs.h <<_ACEOF
2444#define PACKAGE_URL "$PACKAGE_URL"
2445_ACEOF
2446
2447
2448# Let the site file select an alternate cache file if it wants to.
2449# Prefer an explicitly selected file to automatically selected ones.
2450ac_site_file1=NONE
2451ac_site_file2=NONE
2452if test -n "$CONFIG_SITE"; then
2453 # We do not want a PATH search for config.site.
2454 case $CONFIG_SITE in #((
2455 -*) ac_site_file1=./$CONFIG_SITE;;
2456 */*) ac_site_file1=$CONFIG_SITE;;
2457 *) ac_site_file1=./$CONFIG_SITE;;
2458 esac
2459elif test "x$prefix" != xNONE; then
2460 ac_site_file1=$prefix/share/config.site
2461 ac_site_file2=$prefix/etc/config.site
2462else
2463 ac_site_file1=$ac_default_prefix/share/config.site
2464 ac_site_file2=$ac_default_prefix/etc/config.site
2465fi
2466for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2467do
2468 test "x$ac_site_file" = xNONE && continue
2469 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2471$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2472 sed 's/^/| /' "$ac_site_file" >&5
2473 . "$ac_site_file" \
2474 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2476as_fn_error $? "failed to load site script $ac_site_file
2477See \`config.log' for more details" "$LINENO" 5; }
2478 fi
2479done
2480
2481if test -r "$cache_file"; then
2482 # Some versions of bash will fail to source /dev/null (special files
2483 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2484 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2486$as_echo "$as_me: loading cache $cache_file" >&6;}
2487 case $cache_file in
2488 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2489 *) . "./$cache_file";;
2490 esac
2491 fi
2492else
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2494$as_echo "$as_me: creating cache $cache_file" >&6;}
2495 >$cache_file
2496fi
2497
2498# Check that the precious variables saved in the cache have kept the same
2499# value.
2500ac_cache_corrupted=false
2501for ac_var in $ac_precious_vars; do
2502 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2503 eval ac_new_set=\$ac_env_${ac_var}_set
2504 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2505 eval ac_new_val=\$ac_env_${ac_var}_value
2506 case $ac_old_set,$ac_new_set in
2507 set,)
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2509$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2510 ac_cache_corrupted=: ;;
2511 ,set)
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2513$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2514 ac_cache_corrupted=: ;;
2515 ,);;
2516 *)
2517 if test "x$ac_old_val" != "x$ac_new_val"; then
2518 # differences in whitespace do not lead to failure.
2519 ac_old_val_w=`echo x $ac_old_val`
2520 ac_new_val_w=`echo x $ac_new_val`
2521 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2523$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2524 ac_cache_corrupted=:
2525 else
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2527$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2528 eval $ac_var=\$ac_old_val
2529 fi
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2531$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2533$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2534 fi;;
2535 esac
2536 # Pass precious variables to config.status.
2537 if test "$ac_new_set" = set; then
2538 case $ac_new_val in
2539 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2540 *) ac_arg=$ac_var=$ac_new_val ;;
2541 esac
2542 case " $ac_configure_args " in
2543 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2544 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2545 esac
2546 fi
2547done
2548if $ac_cache_corrupted; then
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2550$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2552$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2553 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2554fi
2555## -------------------- ##
2556## Main body of script. ##
2557## -------------------- ##
2558
2559ac_ext=c
2560ac_cpp='$CPP $CPPFLAGS'
2561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2563ac_compiler_gnu=$ac_cv_c_compiler_gnu
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573# check for makeinfo before calling AM_INIT_AUTOMAKE
2574# Extract the first word of "makeinfo", so it can be a program name with args.
2575set dummy makeinfo; ac_word=$2
2576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2577$as_echo_n "checking for $ac_word... " >&6; }
2578if ${ac_cv_prog_MAKEINFO+:} false; then :
2579 $as_echo_n "(cached) " >&6
2580else
2581 if test -n "$MAKEINFO"; then
2582 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
2583else
2584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2585for as_dir in $PATH
2586do
2587 IFS=$as_save_IFS
2588 test -z "$as_dir" && as_dir=.
2589 for ac_exec_ext in '' $ac_executable_extensions; do
2590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2591 ac_cv_prog_MAKEINFO="makeinfo"
2592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 break 2
2594 fi
2595done
2596 done
2597IFS=$as_save_IFS
2598
2599fi
2600fi
2601MAKEINFO=$ac_cv_prog_MAKEINFO
2602if test -n "$MAKEINFO"; then
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
2604$as_echo "$MAKEINFO" >&6; }
2605else
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2607$as_echo "no" >&6; }
2608fi
2609
2610
2611if test "x$MAKEINFO" = "x"; then :
2612
2613 MAKEINFO='echo makeinfo missing; true'
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Info documentation will not be built." >&5
2615$as_echo "$as_me: WARNING: Info documentation will not be built." >&2;}
2616
2617fi
2618
2619
2620am__api_version='1.15'
2621
2622ac_aux_dir=
2623for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2624 if test -f "$ac_dir/install-sh"; then
2625 ac_aux_dir=$ac_dir
2626 ac_install_sh="$ac_aux_dir/install-sh -c"
2627 break
2628 elif test -f "$ac_dir/install.sh"; then
2629 ac_aux_dir=$ac_dir
2630 ac_install_sh="$ac_aux_dir/install.sh -c"
2631 break
2632 elif test -f "$ac_dir/shtool"; then
2633 ac_aux_dir=$ac_dir
2634 ac_install_sh="$ac_aux_dir/shtool install -c"
2635 break
2636 fi
2637done
2638if test -z "$ac_aux_dir"; then
2639 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2640fi
2641
2642# These three variables are undocumented and unsupported,
2643# and are intended to be withdrawn in a future Autoconf release.
2644# They can cause serious problems if a builder's source tree is in a directory
2645# whose full name contains unusual characters.
2646ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2647ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2648ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2649
2650
2651# Find a good install program. We prefer a C program (faster),
2652# so one script is as good as another. But avoid the broken or
2653# incompatible versions:
2654# SysV /etc/install, /usr/sbin/install
2655# SunOS /usr/etc/install
2656# IRIX /sbin/install
2657# AIX /bin/install
2658# AmigaOS /C/install, which installs bootblocks on floppy discs
2659# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2660# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2661# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2662# OS/2's system install, which has a completely different semantic
2663# ./install, which can be erroneously created by make from ./install.sh.
2664# Reject install programs that cannot install multiple files.
2665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2666$as_echo_n "checking for a BSD-compatible install... " >&6; }
2667if test -z "$INSTALL"; then
2668if ${ac_cv_path_install+:} false; then :
2669 $as_echo_n "(cached) " >&6
2670else
2671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2672for as_dir in $PATH
2673do
2674 IFS=$as_save_IFS
2675 test -z "$as_dir" && as_dir=.
2676 # Account for people who put trailing slashes in PATH elements.
2677case $as_dir/ in #((
2678 ./ | .// | /[cC]/* | \
2679 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2680 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2681 /usr/ucb/* ) ;;
2682 *)
2683 # OSF1 and SCO ODT 3.0 have their own names for install.
2684 # Don't use installbsd from OSF since it installs stuff as root
2685 # by default.
2686 for ac_prog in ginstall scoinst install; do
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2689 if test $ac_prog = install &&
2690 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2691 # AIX install. It has an incompatible calling convention.
2692 :
2693 elif test $ac_prog = install &&
2694 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2695 # program-specific install script used by HP pwplus--don't use.
2696 :
2697 else
2698 rm -rf conftest.one conftest.two conftest.dir
2699 echo one > conftest.one
2700 echo two > conftest.two
2701 mkdir conftest.dir
2702 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2703 test -s conftest.one && test -s conftest.two &&
2704 test -s conftest.dir/conftest.one &&
2705 test -s conftest.dir/conftest.two
2706 then
2707 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2708 break 3
2709 fi
2710 fi
2711 fi
2712 done
2713 done
2714 ;;
2715esac
2716
2717 done
2718IFS=$as_save_IFS
2719
2720rm -rf conftest.one conftest.two conftest.dir
2721
2722fi
2723 if test "${ac_cv_path_install+set}" = set; then
2724 INSTALL=$ac_cv_path_install
2725 else
2726 # As a last resort, use the slow shell script. Don't cache a
2727 # value for INSTALL within a source directory, because that will
2728 # break other packages using the cache if that directory is
2729 # removed, or if the value is a relative name.
2730 INSTALL=$ac_install_sh
2731 fi
2732fi
2733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2734$as_echo "$INSTALL" >&6; }
2735
2736# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2737# It thinks the first close brace ends the variable substitution.
2738test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2739
2740test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2741
2742test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2743
2744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2745$as_echo_n "checking whether build environment is sane... " >&6; }
2746# Reject unsafe characters in $srcdir or the absolute working directory
2747# name. Accept space and tab only in the latter.
2748am_lf='
2749'
2750case `pwd` in
2751 *[\\\"\#\$\&\'\`$am_lf]*)
2752 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2753esac
2754case $srcdir in
2755 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2756 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2757esac
2758
2759# Do 'set' in a subshell so we don't clobber the current shell's
2760# arguments. Must try -L first in case configure is actually a
2761# symlink; some systems play weird games with the mod time of symlinks
2762# (eg FreeBSD returns the mod time of the symlink's containing
2763# directory).
2764if (
2765 am_has_slept=no
2766 for am_try in 1 2; do
2767 echo "timestamp, slept: $am_has_slept" > conftest.file
2768 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2769 if test "$*" = "X"; then
2770 # -L didn't work.
2771 set X `ls -t "$srcdir/configure" conftest.file`
2772 fi
2773 if test "$*" != "X $srcdir/configure conftest.file" \
2774 && test "$*" != "X conftest.file $srcdir/configure"; then
2775
2776 # If neither matched, then we have a broken ls. This can happen
2777 # if, for instance, CONFIG_SHELL is bash and it inherits a
2778 # broken ls alias from the environment. This has actually
2779 # happened. Such a system could not be considered "sane".
2780 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2781 alias in your environment" "$LINENO" 5
2782 fi
2783 if test "$2" = conftest.file || test $am_try -eq 2; then
2784 break
2785 fi
2786 # Just in case.
2787 sleep 1
2788 am_has_slept=yes
2789 done
2790 test "$2" = conftest.file
2791 )
2792then
2793 # Ok.
2794 :
2795else
2796 as_fn_error $? "newly created file is older than distributed files!
2797Check your system clock" "$LINENO" 5
2798fi
2799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2800$as_echo "yes" >&6; }
2801# If we didn't sleep, we still need to ensure time stamps of config.status and
2802# generated files are strictly newer.
2803am_sleep_pid=
2804if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2805 ( sleep 1 ) &
2806 am_sleep_pid=$!
2807fi
2808
2809rm -f conftest.file
2810
2811test "$program_prefix" != NONE &&
2812 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2813# Use a double $ so make ignores it.
2814test "$program_suffix" != NONE &&
2815 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2816# Double any \ or $.
2817# By default was `s,x,x', remove it if useless.
2818ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2819program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2820
2821# Expand $ac_aux_dir to an absolute path.
2822am_aux_dir=`cd "$ac_aux_dir" && pwd`
2823
2824if test x"${MISSING+set}" != xset; then
2825 case $am_aux_dir in
2826 *\ * | *\ *)
2827 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2828 *)
2829 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2830 esac
2831fi
2832# Use eval to expand $SHELL
2833if eval "$MISSING --is-lightweight"; then
2834 am_missing_run="$MISSING "
2835else
2836 am_missing_run=
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2838$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2839fi
2840
2841if test x"${install_sh+set}" != xset; then
2842 case $am_aux_dir in
2843 *\ * | *\ *)
2844 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2845 *)
2846 install_sh="\${SHELL} $am_aux_dir/install-sh"
2847 esac
2848fi
2849
2850# Installed binaries are usually stripped using 'strip' when the user
2851# run "make install-strip". However 'strip' might not be the right
2852# tool to use in cross-compilation environments, therefore Automake
2853# will honor the 'STRIP' environment variable to overrule this program.
2854if test "$cross_compiling" != no; then
2855 if test -n "$ac_tool_prefix"; then
2856 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2857set dummy ${ac_tool_prefix}strip; ac_word=$2
2858{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2859$as_echo_n "checking for $ac_word... " >&6; }
2860if ${ac_cv_prog_STRIP+:} false; then :
2861 $as_echo_n "(cached) " >&6
2862else
2863 if test -n "$STRIP"; then
2864 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2865else
2866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2867for as_dir in $PATH
2868do
2869 IFS=$as_save_IFS
2870 test -z "$as_dir" && as_dir=.
2871 for ac_exec_ext in '' $ac_executable_extensions; do
2872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2873 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2875 break 2
2876 fi
2877done
2878 done
2879IFS=$as_save_IFS
2880
2881fi
2882fi
2883STRIP=$ac_cv_prog_STRIP
2884if test -n "$STRIP"; then
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2886$as_echo "$STRIP" >&6; }
2887else
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2889$as_echo "no" >&6; }
2890fi
2891
2892
2893fi
2894if test -z "$ac_cv_prog_STRIP"; then
2895 ac_ct_STRIP=$STRIP
2896 # Extract the first word of "strip", so it can be a program name with args.
2897set dummy strip; ac_word=$2
2898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2899$as_echo_n "checking for $ac_word... " >&6; }
2900if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2901 $as_echo_n "(cached) " >&6
2902else
2903 if test -n "$ac_ct_STRIP"; then
2904 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2905else
2906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907for as_dir in $PATH
2908do
2909 IFS=$as_save_IFS
2910 test -z "$as_dir" && as_dir=.
2911 for ac_exec_ext in '' $ac_executable_extensions; do
2912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2913 ac_cv_prog_ac_ct_STRIP="strip"
2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 break 2
2916 fi
2917done
2918 done
2919IFS=$as_save_IFS
2920
2921fi
2922fi
2923ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2924if test -n "$ac_ct_STRIP"; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2926$as_echo "$ac_ct_STRIP" >&6; }
2927else
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2929$as_echo "no" >&6; }
2930fi
2931
2932 if test "x$ac_ct_STRIP" = x; then
2933 STRIP=":"
2934 else
2935 case $cross_compiling:$ac_tool_warned in
2936yes:)
2937{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2938$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2939ac_tool_warned=yes ;;
2940esac
2941 STRIP=$ac_ct_STRIP
2942 fi
2943else
2944 STRIP="$ac_cv_prog_STRIP"
2945fi
2946
2947fi
2948INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2949
2950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2951$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2952if test -z "$MKDIR_P"; then
2953 if ${ac_cv_path_mkdir+:} false; then :
2954 $as_echo_n "(cached) " >&6
2955else
2956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2957for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2958do
2959 IFS=$as_save_IFS
2960 test -z "$as_dir" && as_dir=.
2961 for ac_prog in mkdir gmkdir; do
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2964 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2965 'mkdir (GNU coreutils) '* | \
2966 'mkdir (coreutils) '* | \
2967 'mkdir (fileutils) '4.1*)
2968 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2969 break 3;;
2970 esac
2971 done
2972 done
2973 done
2974IFS=$as_save_IFS
2975
2976fi
2977
2978 test -d ./--version && rmdir ./--version
2979 if test "${ac_cv_path_mkdir+set}" = set; then
2980 MKDIR_P="$ac_cv_path_mkdir -p"
2981 else
2982 # As a last resort, use the slow shell script. Don't cache a
2983 # value for MKDIR_P within a source directory, because that will
2984 # break other packages using the cache if that directory is
2985 # removed, or if the value is a relative name.
2986 MKDIR_P="$ac_install_sh -d"
2987 fi
2988fi
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2990$as_echo "$MKDIR_P" >&6; }
2991
2992for ac_prog in gawk mawk nawk awk
2993do
2994 # Extract the first word of "$ac_prog", so it can be a program name with args.
2995set dummy $ac_prog; ac_word=$2
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997$as_echo_n "checking for $ac_word... " >&6; }
2998if ${ac_cv_prog_AWK+:} false; then :
2999 $as_echo_n "(cached) " >&6
3000else
3001 if test -n "$AWK"; then
3002 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3003else
3004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005for as_dir in $PATH
3006do
3007 IFS=$as_save_IFS
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3011 ac_cv_prog_AWK="$ac_prog"
3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 break 2
3014 fi
3015done
3016 done
3017IFS=$as_save_IFS
3018
3019fi
3020fi
3021AWK=$ac_cv_prog_AWK
3022if test -n "$AWK"; then
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3024$as_echo "$AWK" >&6; }
3025else
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027$as_echo "no" >&6; }
3028fi
3029
3030
3031 test -n "$AWK" && break
3032done
3033
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3035$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3036set x ${MAKE-make}
3037ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3038if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3039 $as_echo_n "(cached) " >&6
3040else
3041 cat >conftest.make <<\_ACEOF
3042SHELL = /bin/sh
3043all:
3044 @echo '@@@%%%=$(MAKE)=@@@%%%'
3045_ACEOF
3046# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3047case `${MAKE-make} -f conftest.make 2>/dev/null` in
3048 *@@@%%%=?*=@@@%%%*)
3049 eval ac_cv_prog_make_${ac_make}_set=yes;;
3050 *)
3051 eval ac_cv_prog_make_${ac_make}_set=no;;
3052esac
3053rm -f conftest.make
3054fi
3055if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3057$as_echo "yes" >&6; }
3058 SET_MAKE=
3059else
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3061$as_echo "no" >&6; }
3062 SET_MAKE="MAKE=${MAKE-make}"
3063fi
3064
3065rm -rf .tst 2>/dev/null
3066mkdir .tst 2>/dev/null
3067if test -d .tst; then
3068 am__leading_dot=.
3069else
3070 am__leading_dot=_
3071fi
3072rmdir .tst 2>/dev/null
3073
3074# Check whether --enable-silent-rules was given.
3075if test "${enable_silent_rules+set}" = set; then :
3076 enableval=$enable_silent_rules;
3077fi
3078
3079case $enable_silent_rules in # (((
3080 yes) AM_DEFAULT_VERBOSITY=0;;
3081 no) AM_DEFAULT_VERBOSITY=1;;
3082 *) AM_DEFAULT_VERBOSITY=1;;
3083esac
3084am_make=${MAKE-make}
3085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3086$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3087if ${am_cv_make_support_nested_variables+:} false; then :
3088 $as_echo_n "(cached) " >&6
3089else
3090 if $as_echo 'TRUE=$(BAR$(V))
3091BAR0=false
3092BAR1=true
3093V=1
3094am__doit:
3095 @$(TRUE)
3096.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3097 am_cv_make_support_nested_variables=yes
3098else
3099 am_cv_make_support_nested_variables=no
3100fi
3101fi
3102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3103$as_echo "$am_cv_make_support_nested_variables" >&6; }
3104if test $am_cv_make_support_nested_variables = yes; then
3105 AM_V='$(V)'
3106 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3107else
3108 AM_V=$AM_DEFAULT_VERBOSITY
3109 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3110fi
3111AM_BACKSLASH='\'
3112
3113if test "`cd $srcdir && pwd`" != "`pwd`"; then
3114 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3115 # is not polluted with repeated "-I."
3116 am__isrc=' -I$(srcdir)'
3117 # test to see if srcdir already configured
3118 if test -f $srcdir/config.status; then
3119 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3120 fi
3121fi
3122
3123# test whether we have cygpath
3124if test -z "$CYGPATH_W"; then
3125 if (cygpath --version) >/dev/null 2>/dev/null; then
3126 CYGPATH_W='cygpath -w'
3127 else
3128 CYGPATH_W=echo
3129 fi
3130fi
3131
3132
3133# Define the identity of the package.
3134 PACKAGE='openocd'
3135 VERSION='0.10.0'
3136
3137
3138cat >>confdefs.h <<_ACEOF
3139#define PACKAGE "$PACKAGE"
3140_ACEOF
3141
3142
3143cat >>confdefs.h <<_ACEOF
3144#define VERSION "$VERSION"
3145_ACEOF
3146
3147# Some tools Automake needs.
3148
3149ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3150
3151
3152AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3153
3154
3155AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3156
3157
3158AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3159
3160
3161MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3162
3163# For better backward compatibility. To be removed once Automake 1.9.x
3164# dies out for good. For more background, see:
3165# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3166# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3167mkdir_p='$(MKDIR_P)'
3168
3169# We need awk for the "check" target (and possibly the TAP driver). The
3170# system "awk" is bad on some platforms.
3171# Always define AMTAR for backward compatibility. Yes, it's still used
3172# in the wild :-( We should find a proper way to deprecate it ...
3173AMTAR='$${TAR-tar}'
3174
3175
3176# We'll loop over all known methods to create a tar archive until one works.
3177_am_tools='gnutar pax cpio none'
3178
3179am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3180
3181
3182
3183
3184
3185
3186# POSIX will say in a future version that running "rm -f" with no argument
3187# is OK; and we want to be able to make that assumption in our Makefile
3188# recipes. So use an aggressive probe to check that the usage we want is
3189# actually supported "in the wild" to an acceptable degree.
3190# See automake bug#10828.
3191# To make any issue more visible, cause the running configure to be aborted
3192# by default if the 'rm' program in use doesn't match our expectations; the
3193# user can still override this though.
3194if rm -f && rm -fr && rm -rf; then : OK; else
3195 cat >&2 <<'END'
3196Oops!
3197
3198Your 'rm' program seems unable to run without file operands specified
3199on the command line, even when the '-f' option is present. This is contrary
3200to the behaviour of most rm programs out there, and not conforming with
3201the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3202
3203Please tell bug-automake@gnu.org about your system, including the value
3204of your $PATH and any error possibly output before this message. This
3205can help us improve future automake versions.
3206
3207END
3208 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3209 echo 'Configuration will proceed anyway, since you have set the' >&2
3210 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3211 echo >&2
3212 else
3213 cat >&2 <<'END'
3214Aborting the configuration process, to ensure you take notice of the issue.
3215
3216You can download and install GNU coreutils to get an 'rm' implementation
3217that behaves properly: <http://www.gnu.org/software/coreutils/>.
3218
3219If you want to complete the configuration process using your problematic
3220'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3221to "yes", and re-run configure.
3222
3223END
3224 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3225 fi
3226fi
3227
3228
3229ac_config_headers="$ac_config_headers config.h"
3230
3231
3232
3233ac_ext=c
3234ac_cpp='$CPP $CPPFLAGS'
3235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237ac_compiler_gnu=$ac_cv_c_compiler_gnu
3238
3239ac_ext=c
3240ac_cpp='$CPP $CPPFLAGS'
3241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3243ac_compiler_gnu=$ac_cv_c_compiler_gnu
3244if test -n "$ac_tool_prefix"; then
3245 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3246set dummy ${ac_tool_prefix}gcc; ac_word=$2
3247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248$as_echo_n "checking for $ac_word... " >&6; }
3249if ${ac_cv_prog_CC+:} false; then :
3250 $as_echo_n "(cached) " >&6
3251else
3252 if test -n "$CC"; then
3253 ac_cv_prog_CC="$CC" # Let the user override the test.
3254else
3255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256for as_dir in $PATH
3257do
3258 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3262 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2
3265 fi
3266done
3267 done
3268IFS=$as_save_IFS
3269
3270fi
3271fi
3272CC=$ac_cv_prog_CC
3273if test -n "$CC"; then
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3275$as_echo "$CC" >&6; }
3276else
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278$as_echo "no" >&6; }
3279fi
3280
3281
3282fi
3283if test -z "$ac_cv_prog_CC"; then
3284 ac_ct_CC=$CC
3285 # Extract the first word of "gcc", so it can be a program name with args.
3286set dummy gcc; ac_word=$2
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288$as_echo_n "checking for $ac_word... " >&6; }
3289if ${ac_cv_prog_ac_ct_CC+:} false; then :
3290 $as_echo_n "(cached) " >&6
3291else
3292 if test -n "$ac_ct_CC"; then
3293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3294else
3295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296for as_dir in $PATH
3297do
3298 IFS=$as_save_IFS
3299 test -z "$as_dir" && as_dir=.
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3302 ac_cv_prog_ac_ct_CC="gcc"
3303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 break 2
3305 fi
3306done
3307 done
3308IFS=$as_save_IFS
3309
3310fi
3311fi
3312ac_ct_CC=$ac_cv_prog_ac_ct_CC
3313if test -n "$ac_ct_CC"; then
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3315$as_echo "$ac_ct_CC" >&6; }
3316else
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318$as_echo "no" >&6; }
3319fi
3320
3321 if test "x$ac_ct_CC" = x; then
3322 CC=""
3323 else
3324 case $cross_compiling:$ac_tool_warned in
3325yes:)
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3328ac_tool_warned=yes ;;
3329esac
3330 CC=$ac_ct_CC
3331 fi
3332else
3333 CC="$ac_cv_prog_CC"
3334fi
3335
3336if test -z "$CC"; then
3337 if test -n "$ac_tool_prefix"; then
3338 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3339set dummy ${ac_tool_prefix}cc; ac_word=$2
3340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3341$as_echo_n "checking for $ac_word... " >&6; }
3342if ${ac_cv_prog_CC+:} false; then :
3343 $as_echo_n "(cached) " >&6
3344else
3345 if test -n "$CC"; then
3346 ac_cv_prog_CC="$CC" # Let the user override the test.
3347else
3348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349for as_dir in $PATH
3350do
3351 IFS=$as_save_IFS
3352 test -z "$as_dir" && as_dir=.
3353 for ac_exec_ext in '' $ac_executable_extensions; do
3354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3355 ac_cv_prog_CC="${ac_tool_prefix}cc"
3356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3357 break 2
3358 fi
3359done
3360 done
3361IFS=$as_save_IFS
3362
3363fi
3364fi
3365CC=$ac_cv_prog_CC
3366if test -n "$CC"; then
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3368$as_echo "$CC" >&6; }
3369else
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371$as_echo "no" >&6; }
3372fi
3373
3374
3375 fi
3376fi
3377if test -z "$CC"; then
3378 # Extract the first word of "cc", so it can be a program name with args.
3379set dummy cc; ac_word=$2
3380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3381$as_echo_n "checking for $ac_word... " >&6; }
3382if ${ac_cv_prog_CC+:} false; then :
3383 $as_echo_n "(cached) " >&6
3384else
3385 if test -n "$CC"; then
3386 ac_cv_prog_CC="$CC" # Let the user override the test.
3387else
3388 ac_prog_rejected=no
3389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390for as_dir in $PATH
3391do
3392 IFS=$as_save_IFS
3393 test -z "$as_dir" && as_dir=.
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3396 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3397 ac_prog_rejected=yes
3398 continue
3399 fi
3400 ac_cv_prog_CC="cc"
3401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 break 2
3403 fi
3404done
3405 done
3406IFS=$as_save_IFS
3407
3408if test $ac_prog_rejected = yes; then
3409 # We found a bogon in the path, so make sure we never use it.
3410 set dummy $ac_cv_prog_CC
3411 shift
3412 if test $# != 0; then
3413 # We chose a different compiler from the bogus one.
3414 # However, it has the same basename, so the bogon will be chosen
3415 # first if we set CC to just the basename; use the full file name.
3416 shift
3417 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3418 fi
3419fi
3420fi
3421fi
3422CC=$ac_cv_prog_CC
3423if test -n "$CC"; then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3425$as_echo "$CC" >&6; }
3426else
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428$as_echo "no" >&6; }
3429fi
3430
3431
3432fi
3433if test -z "$CC"; then
3434 if test -n "$ac_tool_prefix"; then
3435 for ac_prog in cl.exe
3436 do
3437 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3438set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440$as_echo_n "checking for $ac_word... " >&6; }
3441if ${ac_cv_prog_CC+:} false; then :
3442 $as_echo_n "(cached) " >&6
3443else
3444 if test -n "$CC"; then
3445 ac_cv_prog_CC="$CC" # Let the user override the test.
3446else
3447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448for as_dir in $PATH
3449do
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3457 fi
3458done
3459 done
3460IFS=$as_save_IFS
3461
3462fi
3463fi
3464CC=$ac_cv_prog_CC
3465if test -n "$CC"; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3467$as_echo "$CC" >&6; }
3468else
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470$as_echo "no" >&6; }
3471fi
3472
3473
3474 test -n "$CC" && break
3475 done
3476fi
3477if test -z "$CC"; then
3478 ac_ct_CC=$CC
3479 for ac_prog in cl.exe
3480do
3481 # Extract the first word of "$ac_prog", so it can be a program name with args.
3482set dummy $ac_prog; ac_word=$2
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3484$as_echo_n "checking for $ac_word... " >&6; }
3485if ${ac_cv_prog_ac_ct_CC+:} false; then :
3486 $as_echo_n "(cached) " >&6
3487else
3488 if test -n "$ac_ct_CC"; then
3489 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3490else
3491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3492for as_dir in $PATH
3493do
3494 IFS=$as_save_IFS
3495 test -z "$as_dir" && as_dir=.
3496 for ac_exec_ext in '' $ac_executable_extensions; do
3497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3498 ac_cv_prog_ac_ct_CC="$ac_prog"
3499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3500 break 2
3501 fi
3502done
3503 done
3504IFS=$as_save_IFS
3505
3506fi
3507fi
3508ac_ct_CC=$ac_cv_prog_ac_ct_CC
3509if test -n "$ac_ct_CC"; then
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3511$as_echo "$ac_ct_CC" >&6; }
3512else
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514$as_echo "no" >&6; }
3515fi
3516
3517
3518 test -n "$ac_ct_CC" && break
3519done
3520
3521 if test "x$ac_ct_CC" = x; then
3522 CC=""
3523 else
3524 case $cross_compiling:$ac_tool_warned in
3525yes:)
3526{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3527$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3528ac_tool_warned=yes ;;
3529esac
3530 CC=$ac_ct_CC
3531 fi
3532fi
3533
3534fi
3535
3536
3537test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3539as_fn_error $? "no acceptable C compiler found in \$PATH
3540See \`config.log' for more details" "$LINENO" 5; }
3541
3542# Provide some information about the compiler.
3543$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3544set X $ac_compile
3545ac_compiler=$2
3546for ac_option in --version -v -V -qversion; do
3547 { { ac_try="$ac_compiler $ac_option >&5"
3548case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551esac
3552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553$as_echo "$ac_try_echo"; } >&5
3554 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3555 ac_status=$?
3556 if test -s conftest.err; then
3557 sed '10a\
3558... rest of stderr output deleted ...
3559 10q' conftest.err >conftest.er1
3560 cat conftest.er1 >&5
3561 fi
3562 rm -f conftest.er1 conftest.err
3563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3564 test $ac_status = 0; }
3565done
3566
3567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3568/* end confdefs.h. */
3569
3570int
3571main ()
3572{
3573
3574 ;
3575 return 0;
3576}
3577_ACEOF
3578ac_clean_files_save=$ac_clean_files
3579ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3580# Try to create an executable without -o first, disregard a.out.
3581# It will help us diagnose broken compilers, and finding out an intuition
3582# of exeext.
3583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3584$as_echo_n "checking whether the C compiler works... " >&6; }
3585ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3586
3587# The possible output files:
3588ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3589
3590ac_rmfiles=
3591for ac_file in $ac_files
3592do
3593 case $ac_file in
3594 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3595 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3596 esac
3597done
3598rm -f $ac_rmfiles
3599
3600if { { ac_try="$ac_link_default"
3601case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3604esac
3605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606$as_echo "$ac_try_echo"; } >&5
3607 (eval "$ac_link_default") 2>&5
3608 ac_status=$?
3609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3610 test $ac_status = 0; }; then :
3611 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3612# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3613# in a Makefile. We should not override ac_cv_exeext if it was cached,
3614# so that the user can short-circuit this test for compilers unknown to
3615# Autoconf.
3616for ac_file in $ac_files ''
3617do
3618 test -f "$ac_file" || continue
3619 case $ac_file in
3620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3621 ;;
3622 [ab].out )
3623 # We found the default executable, but exeext='' is most
3624 # certainly right.
3625 break;;
3626 *.* )
3627 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3628 then :; else
3629 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3630 fi
3631 # We set ac_cv_exeext here because the later test for it is not
3632 # safe: cross compilers may not add the suffix if given an `-o'
3633 # argument, so we may need to know it at that point already.
3634 # Even if this section looks crufty: it has the advantage of
3635 # actually working.
3636 break;;
3637 * )
3638 break;;
3639 esac
3640done
3641test "$ac_cv_exeext" = no && ac_cv_exeext=
3642
3643else
3644 ac_file=''
3645fi
3646if test -z "$ac_file"; then :
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648$as_echo "no" >&6; }
3649$as_echo "$as_me: failed program was:" >&5
3650sed 's/^/| /' conftest.$ac_ext >&5
3651
3652{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3653$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3654as_fn_error 77 "C compiler cannot create executables
3655See \`config.log' for more details" "$LINENO" 5; }
3656else
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3658$as_echo "yes" >&6; }
3659fi
3660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3661$as_echo_n "checking for C compiler default output file name... " >&6; }
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3663$as_echo "$ac_file" >&6; }
3664ac_exeext=$ac_cv_exeext
3665
3666rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3667ac_clean_files=$ac_clean_files_save
3668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3669$as_echo_n "checking for suffix of executables... " >&6; }
3670if { { ac_try="$ac_link"
3671case "(($ac_try" in
3672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673 *) ac_try_echo=$ac_try;;
3674esac
3675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3676$as_echo "$ac_try_echo"; } >&5
3677 (eval "$ac_link") 2>&5
3678 ac_status=$?
3679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3680 test $ac_status = 0; }; then :
3681 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3682# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3683# work properly (i.e., refer to `conftest.exe'), while it won't with
3684# `rm'.
3685for ac_file in conftest.exe conftest conftest.*; do
3686 test -f "$ac_file" || continue
3687 case $ac_file in
3688 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3689 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3690 break;;
3691 * ) break;;
3692 esac
3693done
3694else
3695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3696$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3697as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3698See \`config.log' for more details" "$LINENO" 5; }
3699fi
3700rm -f conftest conftest$ac_cv_exeext
3701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3702$as_echo "$ac_cv_exeext" >&6; }
3703
3704rm -f conftest.$ac_ext
3705EXEEXT=$ac_cv_exeext
3706ac_exeext=$EXEEXT
3707cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708/* end confdefs.h. */
3709#include <stdio.h>
3710int
3711main ()
3712{
3713FILE *f = fopen ("conftest.out", "w");
3714 return ferror (f) || fclose (f) != 0;
3715
3716 ;
3717 return 0;
3718}
3719_ACEOF
3720ac_clean_files="$ac_clean_files conftest.out"
3721# Check that the compiler produces executables we can run. If not, either
3722# the compiler is broken, or we cross compile.
3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3724$as_echo_n "checking whether we are cross compiling... " >&6; }
3725if test "$cross_compiling" != yes; then
3726 { { ac_try="$ac_link"
3727case "(($ac_try" in
3728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729 *) ac_try_echo=$ac_try;;
3730esac
3731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3732$as_echo "$ac_try_echo"; } >&5
3733 (eval "$ac_link") 2>&5
3734 ac_status=$?
3735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3736 test $ac_status = 0; }
3737 if { ac_try='./conftest$ac_cv_exeext'
3738 { { case "(($ac_try" in
3739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3740 *) ac_try_echo=$ac_try;;
3741esac
3742eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3743$as_echo "$ac_try_echo"; } >&5
3744 (eval "$ac_try") 2>&5
3745 ac_status=$?
3746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3747 test $ac_status = 0; }; }; then
3748 cross_compiling=no
3749 else
3750 if test "$cross_compiling" = maybe; then
3751 cross_compiling=yes
3752 else
3753 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3754$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3755as_fn_error $? "cannot run C compiled programs.
3756If you meant to cross compile, use \`--host'.
3757See \`config.log' for more details" "$LINENO" 5; }
3758 fi
3759 fi
3760fi
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3762$as_echo "$cross_compiling" >&6; }
3763
3764rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3765ac_clean_files=$ac_clean_files_save
3766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3767$as_echo_n "checking for suffix of object files... " >&6; }
3768if ${ac_cv_objext+:} false; then :
3769 $as_echo_n "(cached) " >&6
3770else
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772/* end confdefs.h. */
3773
3774int
3775main ()
3776{
3777
3778 ;
3779 return 0;
3780}
3781_ACEOF
3782rm -f conftest.o conftest.obj
3783if { { ac_try="$ac_compile"
3784case "(($ac_try" in
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;;
3787esac
3788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3789$as_echo "$ac_try_echo"; } >&5
3790 (eval "$ac_compile") 2>&5
3791 ac_status=$?
3792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3793 test $ac_status = 0; }; then :
3794 for ac_file in conftest.o conftest.obj conftest.*; do
3795 test -f "$ac_file" || continue;
3796 case $ac_file in
3797 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3798 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3799 break;;
3800 esac
3801done
3802else
3803 $as_echo "$as_me: failed program was:" >&5
3804sed 's/^/| /' conftest.$ac_ext >&5
3805
3806{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3807$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3808as_fn_error $? "cannot compute suffix of object files: cannot compile
3809See \`config.log' for more details" "$LINENO" 5; }
3810fi
3811rm -f conftest.$ac_cv_objext conftest.$ac_ext
3812fi
3813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3814$as_echo "$ac_cv_objext" >&6; }
3815OBJEXT=$ac_cv_objext
3816ac_objext=$OBJEXT
3817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3818$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3819if ${ac_cv_c_compiler_gnu+:} false; then :
3820 $as_echo_n "(cached) " >&6
3821else
3822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823/* end confdefs.h. */
3824
3825int
3826main ()
3827{
3828#ifndef __GNUC__
3829 choke me
3830#endif
3831
3832 ;
3833 return 0;
3834}
3835_ACEOF
3836if ac_fn_c_try_compile "$LINENO"; then :
3837 ac_compiler_gnu=yes
3838else
3839 ac_compiler_gnu=no
3840fi
3841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3842ac_cv_c_compiler_gnu=$ac_compiler_gnu
3843
3844fi
3845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3846$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3847if test $ac_compiler_gnu = yes; then
3848 GCC=yes
3849else
3850 GCC=
3851fi
3852ac_test_CFLAGS=${CFLAGS+set}
3853ac_save_CFLAGS=$CFLAGS
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3855$as_echo_n "checking whether $CC accepts -g... " >&6; }
3856if ${ac_cv_prog_cc_g+:} false; then :
3857 $as_echo_n "(cached) " >&6
3858else
3859 ac_save_c_werror_flag=$ac_c_werror_flag
3860 ac_c_werror_flag=yes
3861 ac_cv_prog_cc_g=no
3862 CFLAGS="-g"
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864/* end confdefs.h. */
3865
3866int
3867main ()
3868{
3869
3870 ;
3871 return 0;
3872}
3873_ACEOF
3874if ac_fn_c_try_compile "$LINENO"; then :
3875 ac_cv_prog_cc_g=yes
3876else
3877 CFLAGS=""
3878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879/* end confdefs.h. */
3880
3881int
3882main ()
3883{
3884
3885 ;
3886 return 0;
3887}
3888_ACEOF
3889if ac_fn_c_try_compile "$LINENO"; then :
3890
3891else
3892 ac_c_werror_flag=$ac_save_c_werror_flag
3893 CFLAGS="-g"
3894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895/* end confdefs.h. */
3896
3897int
3898main ()
3899{
3900
3901 ;
3902 return 0;
3903}
3904_ACEOF
3905if ac_fn_c_try_compile "$LINENO"; then :
3906 ac_cv_prog_cc_g=yes
3907fi
3908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3909fi
3910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3911fi
3912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3913 ac_c_werror_flag=$ac_save_c_werror_flag
3914fi
3915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3916$as_echo "$ac_cv_prog_cc_g" >&6; }
3917if test "$ac_test_CFLAGS" = set; then
3918 CFLAGS=$ac_save_CFLAGS
3919elif test $ac_cv_prog_cc_g = yes; then
3920 if test "$GCC" = yes; then
3921 CFLAGS="-g -O2"
3922 else
3923 CFLAGS="-g"
3924 fi
3925else
3926 if test "$GCC" = yes; then
3927 CFLAGS="-O2"
3928 else
3929 CFLAGS=
3930 fi
3931fi
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3933$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3934if ${ac_cv_prog_cc_c89+:} false; then :
3935 $as_echo_n "(cached) " >&6
3936else
3937 ac_cv_prog_cc_c89=no
3938ac_save_CC=$CC
3939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940/* end confdefs.h. */
3941#include <stdarg.h>
3942#include <stdio.h>
3943struct stat;
3944/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3945struct buf { int x; };
3946FILE * (*rcsopen) (struct buf *, struct stat *, int);
3947static char *e (p, i)
3948 char **p;
3949 int i;
3950{
3951 return p[i];
3952}
3953static char *f (char * (*g) (char **, int), char **p, ...)
3954{
3955 char *s;
3956 va_list v;
3957 va_start (v,p);
3958 s = g (p, va_arg (v,int));
3959 va_end (v);
3960 return s;
3961}
3962
3963/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3964 function prototypes and stuff, but not '\xHH' hex character constants.
3965 These don't provoke an error unfortunately, instead are silently treated
3966 as 'x'. The following induces an error, until -std is added to get
3967 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3968 array size at least. It's necessary to write '\x00'==0 to get something
3969 that's true only with -std. */
3970int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3971
3972/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3973 inside strings and character constants. */
3974#define FOO(x) 'x'
3975int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3976
3977int test (int i, double x);
3978struct s1 {int (*f) (int a);};
3979struct s2 {int (*f) (double a);};
3980int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3981int argc;
3982char **argv;
3983int
3984main ()
3985{
3986return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3987 ;
3988 return 0;
3989}
3990_ACEOF
3991for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3992 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3993do
3994 CC="$ac_save_CC $ac_arg"
3995 if ac_fn_c_try_compile "$LINENO"; then :
3996 ac_cv_prog_cc_c89=$ac_arg
3997fi
3998rm -f core conftest.err conftest.$ac_objext
3999 test "x$ac_cv_prog_cc_c89" != "xno" && break
4000done
4001rm -f conftest.$ac_ext
4002CC=$ac_save_CC
4003
4004fi
4005# AC_CACHE_VAL
4006case "x$ac_cv_prog_cc_c89" in
4007 x)
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4009$as_echo "none needed" >&6; } ;;
4010 xno)
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4012$as_echo "unsupported" >&6; } ;;
4013 *)
4014 CC="$CC $ac_cv_prog_cc_c89"
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4016$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4017esac
4018if test "x$ac_cv_prog_cc_c89" != xno; then :
4019
4020fi
4021
4022ac_ext=c
4023ac_cpp='$CPP $CPPFLAGS'
4024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4026ac_compiler_gnu=$ac_cv_c_compiler_gnu
4027
4028ac_ext=c
4029ac_cpp='$CPP $CPPFLAGS'
4030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4032ac_compiler_gnu=$ac_cv_c_compiler_gnu
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4034$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4035if ${am_cv_prog_cc_c_o+:} false; then :
4036 $as_echo_n "(cached) " >&6
4037else
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039/* end confdefs.h. */
4040
4041int
4042main ()
4043{
4044
4045 ;
4046 return 0;
4047}
4048_ACEOF
4049 # Make sure it works both with $CC and with simple cc.
4050 # Following AC_PROG_CC_C_O, we do the test twice because some
4051 # compilers refuse to overwrite an existing .o file with -o,
4052 # though they will create one.
4053 am_cv_prog_cc_c_o=yes
4054 for am_i in 1 2; do
4055 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4056 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4057 ac_status=$?
4058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4059 (exit $ac_status); } \
4060 && test -f conftest2.$ac_objext; then
4061 : OK
4062 else
4063 am_cv_prog_cc_c_o=no
4064 break
4065 fi
4066 done
4067 rm -f core conftest*
4068 unset am_i
4069fi
4070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4071$as_echo "$am_cv_prog_cc_c_o" >&6; }
4072if test "$am_cv_prog_cc_c_o" != yes; then
4073 # Losing compiler, so override with the script.
4074 # FIXME: It is wrong to rewrite CC.
4075 # But if we don't then we get into trouble of one sort or another.
4076 # A longer-term fix would be to have automake use am__CC in this case,
4077 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4078 CC="$am_aux_dir/compile $CC"
4079fi
4080ac_ext=c
4081ac_cpp='$CPP $CPPFLAGS'
4082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084ac_compiler_gnu=$ac_cv_c_compiler_gnu
4085
4086DEPDIR="${am__leading_dot}deps"
4087
4088ac_config_commands="$ac_config_commands depfiles"
4089
4090
4091am_make=${MAKE-make}
4092cat > confinc << 'END'
4093am__doit:
4094 @echo this is the am__doit target
4095.PHONY: am__doit
4096END
4097# If we don't find an include directive, just comment out the code.
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4099$as_echo_n "checking for style of include used by $am_make... " >&6; }
4100am__include="#"
4101am__quote=
4102_am_result=none
4103# First try GNU make style include.
4104echo "include confinc" > confmf
4105# Ignore all kinds of additional output from 'make'.
4106case `$am_make -s -f confmf 2> /dev/null` in #(
4107*the\ am__doit\ target*)
4108 am__include=include
4109 am__quote=
4110 _am_result=GNU
4111 ;;
4112esac
4113# Now try BSD make style include.
4114if test "$am__include" = "#"; then
4115 echo '.include "confinc"' > confmf
4116 case `$am_make -s -f confmf 2> /dev/null` in #(
4117 *the\ am__doit\ target*)
4118 am__include=.include
4119 am__quote="\""
4120 _am_result=BSD
4121 ;;
4122 esac
4123fi
4124
4125
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4127$as_echo "$_am_result" >&6; }
4128rm -f confinc confmf
4129
4130# Check whether --enable-dependency-tracking was given.
4131if test "${enable_dependency_tracking+set}" = set; then :
4132 enableval=$enable_dependency_tracking;
4133fi
4134
4135if test "x$enable_dependency_tracking" != xno; then
4136 am_depcomp="$ac_aux_dir/depcomp"
4137 AMDEPBACKSLASH='\'
4138 am__nodep='_no'
4139fi
4140 if test "x$enable_dependency_tracking" != xno; then
4141 AMDEP_TRUE=
4142 AMDEP_FALSE='#'
4143else
4144 AMDEP_TRUE='#'
4145 AMDEP_FALSE=
4146fi
4147
4148
4149
4150depcc="$CC" am_compiler_list=
4151
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4153$as_echo_n "checking dependency style of $depcc... " >&6; }
4154if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4155 $as_echo_n "(cached) " >&6
4156else
4157 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4158 # We make a subdir and do the tests there. Otherwise we can end up
4159 # making bogus files that we don't know about and never remove. For
4160 # instance it was reported that on HP-UX the gcc test will end up
4161 # making a dummy file named 'D' -- because '-MD' means "put the output
4162 # in D".
4163 rm -rf conftest.dir
4164 mkdir conftest.dir
4165 # Copy depcomp to subdir because otherwise we won't find it if we're
4166 # using a relative directory.
4167 cp "$am_depcomp" conftest.dir
4168 cd conftest.dir
4169 # We will build objects and dependencies in a subdirectory because
4170 # it helps to detect inapplicable dependency modes. For instance
4171 # both Tru64's cc and ICC support -MD to output dependencies as a
4172 # side effect of compilation, but ICC will put the dependencies in
4173 # the current directory while Tru64 will put them in the object
4174 # directory.
4175 mkdir sub
4176
4177 am_cv_CC_dependencies_compiler_type=none
4178 if test "$am_compiler_list" = ""; then
4179 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4180 fi
4181 am__universal=false
4182 case " $depcc " in #(
4183 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4184 esac
4185
4186 for depmode in $am_compiler_list; do
4187 # Setup a source with many dependencies, because some compilers
4188 # like to wrap large dependency lists on column 80 (with \), and
4189 # we should not choose a depcomp mode which is confused by this.
4190 #
4191 # We need to recreate these files for each test, as the compiler may
4192 # overwrite some of them when testing with obscure command lines.
4193 # This happens at least with the AIX C compiler.
4194 : > sub/conftest.c
4195 for i in 1 2 3 4 5 6; do
4196 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4197 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4198 # Solaris 10 /bin/sh.
4199 echo '/* dummy */' > sub/conftst$i.h
4200 done
4201 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4202
4203 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4204 # mode. It turns out that the SunPro C++ compiler does not properly
4205 # handle '-M -o', and we need to detect this. Also, some Intel
4206 # versions had trouble with output in subdirs.
4207 am__obj=sub/conftest.${OBJEXT-o}
4208 am__minus_obj="-o $am__obj"
4209 case $depmode in
4210 gcc)
4211 # This depmode causes a compiler race in universal mode.
4212 test "$am__universal" = false || continue
4213 ;;
4214 nosideeffect)
4215 # After this tag, mechanisms are not by side-effect, so they'll
4216 # only be used when explicitly requested.
4217 if test "x$enable_dependency_tracking" = xyes; then
4218 continue
4219 else
4220 break
4221 fi
4222 ;;
4223 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4224 # This compiler won't grok '-c -o', but also, the minuso test has
4225 # not run yet. These depmodes are late enough in the game, and
4226 # so weak that their functioning should not be impacted.
4227 am__obj=conftest.${OBJEXT-o}
4228 am__minus_obj=
4229 ;;
4230 none) break ;;
4231 esac
4232 if depmode=$depmode \
4233 source=sub/conftest.c object=$am__obj \
4234 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4235 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4236 >/dev/null 2>conftest.err &&
4237 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4238 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4239 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4240 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4241 # icc doesn't choke on unknown options, it will just issue warnings
4242 # or remarks (even with -Werror). So we grep stderr for any message
4243 # that says an option was ignored or not supported.
4244 # When given -MP, icc 7.0 and 7.1 complain thusly:
4245 # icc: Command line warning: ignoring option '-M'; no argument required
4246 # The diagnosis changed in icc 8.0:
4247 # icc: Command line remark: option '-MP' not supported
4248 if (grep 'ignoring option' conftest.err ||
4249 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4250 am_cv_CC_dependencies_compiler_type=$depmode
4251 break
4252 fi
4253 fi
4254 done
4255
4256 cd ..
4257 rm -rf conftest.dir
4258else
4259 am_cv_CC_dependencies_compiler_type=none
4260fi
4261
4262fi
4263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4264$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4265CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4266
4267 if
4268 test "x$enable_dependency_tracking" != xno \
4269 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4270 am__fastdepCC_TRUE=
4271 am__fastdepCC_FALSE='#'
4272else
4273 am__fastdepCC_TRUE='#'
4274 am__fastdepCC_FALSE=
4275fi
4276
4277
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4279$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4280if ${ac_cv_prog_cc_c99+:} false; then :
4281 $as_echo_n "(cached) " >&6
4282else
4283 ac_cv_prog_cc_c99=no
4284ac_save_CC=$CC
4285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4286/* end confdefs.h. */
4287#include <stdarg.h>
4288#include <stdbool.h>
4289#include <stdlib.h>
4290#include <wchar.h>
4291#include <stdio.h>
4292
4293// Check varargs macros. These examples are taken from C99 6.10.3.5.
4294#define debug(...) fprintf (stderr, __VA_ARGS__)
4295#define showlist(...) puts (#__VA_ARGS__)
4296#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4297static void
4298test_varargs_macros (void)
4299{
4300 int x = 1234;
4301 int y = 5678;
4302 debug ("Flag");
4303 debug ("X = %d\n", x);
4304 showlist (The first, second, and third items.);
4305 report (x>y, "x is %d but y is %d", x, y);
4306}
4307
4308// Check long long types.
4309#define BIG64 18446744073709551615ull
4310#define BIG32 4294967295ul
4311#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4312#if !BIG_OK
4313 your preprocessor is broken;
4314#endif
4315#if BIG_OK
4316#else
4317 your preprocessor is broken;
4318#endif
4319static long long int bignum = -9223372036854775807LL;
4320static unsigned long long int ubignum = BIG64;
4321
4322struct incomplete_array
4323{
4324 int datasize;
4325 double data[];
4326};
4327
4328struct named_init {
4329 int number;
4330 const wchar_t *name;
4331 double average;
4332};
4333
4334typedef const char *ccp;
4335
4336static inline int
4337test_restrict (ccp restrict text)
4338{
4339 // See if C++-style comments work.
4340 // Iterate through items via the restricted pointer.
4341 // Also check for declarations in for loops.
4342 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4343 continue;
4344 return 0;
4345}
4346
4347// Check varargs and va_copy.
4348static void
4349test_varargs (const char *format, ...)
4350{
4351 va_list args;
4352 va_start (args, format);
4353 va_list args_copy;
4354 va_copy (args_copy, args);
4355
4356 const char *str;
4357 int number;
4358 float fnumber;
4359
4360 while (*format)
4361 {
4362 switch (*format++)
4363 {
4364 case 's': // string
4365 str = va_arg (args_copy, const char *);
4366 break;
4367 case 'd': // int
4368 number = va_arg (args_copy, int);
4369 break;
4370 case 'f': // float
4371 fnumber = va_arg (args_copy, double);
4372 break;
4373 default:
4374 break;
4375 }
4376 }
4377 va_end (args_copy);
4378 va_end (args);
4379}
4380
4381int
4382main ()
4383{
4384
4385 // Check bool.
4386 _Bool success = false;
4387
4388 // Check restrict.
4389 if (test_restrict ("String literal") == 0)
4390 success = true;
4391 char *restrict newvar = "Another string";
4392
4393 // Check varargs.
4394 test_varargs ("s, d' f .", "string", 65, 34.234);
4395 test_varargs_macros ();
4396
4397 // Check flexible array members.
4398 struct incomplete_array *ia =
4399 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4400 ia->datasize = 10;
4401 for (int i = 0; i < ia->datasize; ++i)
4402 ia->data[i] = i * 1.234;
4403
4404 // Check named initializers.
4405 struct named_init ni = {
4406 .number = 34,
4407 .name = L"Test wide string",
4408 .average = 543.34343,
4409 };
4410
4411 ni.number = 58;
4412
4413 int dynamic_array[ni.number];
4414 dynamic_array[ni.number - 1] = 543;
4415
4416 // work around unused variable warnings
4417 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4418 || dynamic_array[ni.number - 1] != 543);
4419
4420 ;
4421 return 0;
4422}
4423_ACEOF
4424for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4425do
4426 CC="$ac_save_CC $ac_arg"
4427 if ac_fn_c_try_compile "$LINENO"; then :
4428 ac_cv_prog_cc_c99=$ac_arg
4429fi
4430rm -f core conftest.err conftest.$ac_objext
4431 test "x$ac_cv_prog_cc_c99" != "xno" && break
4432done
4433rm -f conftest.$ac_ext
4434CC=$ac_save_CC
4435
4436fi
4437# AC_CACHE_VAL
4438case "x$ac_cv_prog_cc_c99" in
4439 x)
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4441$as_echo "none needed" >&6; } ;;
4442 xno)
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4444$as_echo "unsupported" >&6; } ;;
4445 *)
4446 CC="$CC $ac_cv_prog_cc_c99"
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4448$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4449esac
4450if test "x$ac_cv_prog_cc_c99" != xno; then :
4451
4452fi
4453
4454
4455
4456if test -n "$ac_tool_prefix"; then
4457 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4458set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4460$as_echo_n "checking for $ac_word... " >&6; }
4461if ${ac_cv_prog_RANLIB+:} false; then :
4462 $as_echo_n "(cached) " >&6
4463else
4464 if test -n "$RANLIB"; then
4465 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4466else
4467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468for as_dir in $PATH
4469do
4470 IFS=$as_save_IFS
4471 test -z "$as_dir" && as_dir=.
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4474 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4476 break 2
4477 fi
4478done
4479 done
4480IFS=$as_save_IFS
4481
4482fi
4483fi
4484RANLIB=$ac_cv_prog_RANLIB
4485if test -n "$RANLIB"; then
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4487$as_echo "$RANLIB" >&6; }
4488else
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4490$as_echo "no" >&6; }
4491fi
4492
4493
4494fi
4495if test -z "$ac_cv_prog_RANLIB"; then
4496 ac_ct_RANLIB=$RANLIB
4497 # Extract the first word of "ranlib", so it can be a program name with args.
4498set dummy ranlib; ac_word=$2
4499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4500$as_echo_n "checking for $ac_word... " >&6; }
4501if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4502 $as_echo_n "(cached) " >&6
4503else
4504 if test -n "$ac_ct_RANLIB"; then
4505 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4506else
4507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508for as_dir in $PATH
4509do
4510 IFS=$as_save_IFS
4511 test -z "$as_dir" && as_dir=.
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4514 ac_cv_prog_ac_ct_RANLIB="ranlib"
4515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4516 break 2
4517 fi
4518done
4519 done
4520IFS=$as_save_IFS
4521
4522fi
4523fi
4524ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4525if test -n "$ac_ct_RANLIB"; then
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4527$as_echo "$ac_ct_RANLIB" >&6; }
4528else
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530$as_echo "no" >&6; }
4531fi
4532
4533 if test "x$ac_ct_RANLIB" = x; then
4534 RANLIB=":"
4535 else
4536 case $cross_compiling:$ac_tool_warned in
4537yes:)
4538{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4539$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4540ac_tool_warned=yes ;;
4541esac
4542 RANLIB=$ac_ct_RANLIB
4543 fi
4544else
4545 RANLIB="$ac_cv_prog_RANLIB"
4546fi
4547
4548
4549
4550
4551
4552
4553
4554
4555if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4556 if test -n "$ac_tool_prefix"; then
4557 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4558set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560$as_echo_n "checking for $ac_word... " >&6; }
4561if ${ac_cv_path_PKG_CONFIG+:} false; then :
4562 $as_echo_n "(cached) " >&6
4563else
4564 case $PKG_CONFIG in
4565 [\\/]* | ?:[\\/]*)
4566 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4567 ;;
4568 *)
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570for as_dir in $PATH
4571do
4572 IFS=$as_save_IFS
4573 test -z "$as_dir" && as_dir=.
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4576 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 break 2
4579 fi
4580done
4581 done
4582IFS=$as_save_IFS
4583
4584 ;;
4585esac
4586fi
4587PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4588if test -n "$PKG_CONFIG"; then
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4590$as_echo "$PKG_CONFIG" >&6; }
4591else
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593$as_echo "no" >&6; }
4594fi
4595
4596
4597fi
4598if test -z "$ac_cv_path_PKG_CONFIG"; then
4599 ac_pt_PKG_CONFIG=$PKG_CONFIG
4600 # Extract the first word of "pkg-config", so it can be a program name with args.
4601set dummy pkg-config; ac_word=$2
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4603$as_echo_n "checking for $ac_word... " >&6; }
4604if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4605 $as_echo_n "(cached) " >&6
4606else
4607 case $ac_pt_PKG_CONFIG in
4608 [\\/]* | ?:[\\/]*)
4609 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4610 ;;
4611 *)
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4613for as_dir in $PATH
4614do
4615 IFS=$as_save_IFS
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4621 break 2
4622 fi
4623done
4624 done
4625IFS=$as_save_IFS
4626
4627 ;;
4628esac
4629fi
4630ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4631if test -n "$ac_pt_PKG_CONFIG"; then
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4633$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4634else
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636$as_echo "no" >&6; }
4637fi
4638
4639 if test "x$ac_pt_PKG_CONFIG" = x; then
4640 PKG_CONFIG=""
4641 else
4642 case $cross_compiling:$ac_tool_warned in
4643yes:)
4644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4646ac_tool_warned=yes ;;
4647esac
4648 PKG_CONFIG=$ac_pt_PKG_CONFIG
4649 fi
4650else
4651 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4652fi
4653
4654fi
4655if test -n "$PKG_CONFIG"; then
4656 _pkg_min_version=0.23
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4658$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4659 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4661$as_echo "yes" >&6; }
4662 else
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664$as_echo "no" >&6; }
4665 PKG_CONFIG=""
4666 fi
4667fi
4668
4669
4670
4671
4672# Check whether --enable-shared was given.
4673if test "${enable_shared+set}" = set; then :
4674 enableval=$enable_shared; p=${PACKAGE-default}
4675 case $enableval in
4676 yes) enable_shared=yes ;;
4677 no) enable_shared=no ;;
4678 *)
4679 enable_shared=no
4680 # Look at the argument we got. We use all the common list separators.
4681 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
4682 for pkg in $enableval; do
4683 IFS=$lt_save_ifs
4684 if test "X$pkg" = "X$p"; then
4685 enable_shared=yes
4686 fi
4687 done
4688 IFS=$lt_save_ifs
4689 ;;
4690 esac
4691else
4692 enable_shared=no
4693fi
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703case `pwd` in
4704 *\ * | *\ *)
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4706$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4707esac
4708
4709
4710
4711macro_version='2.4.6'
4712macro_revision='2.4.6'
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726ltmain=$ac_aux_dir/ltmain.sh
4727
4728# Make sure we can run config.sub.
4729$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4730 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4731
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4733$as_echo_n "checking build system type... " >&6; }
4734if ${ac_cv_build+:} false; then :
4735 $as_echo_n "(cached) " >&6
4736else
4737 ac_build_alias=$build_alias
4738test "x$ac_build_alias" = x &&
4739 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4740test "x$ac_build_alias" = x &&
4741 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4742ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4743 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4744
4745fi
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4747$as_echo "$ac_cv_build" >&6; }
4748case $ac_cv_build in
4749*-*-*) ;;
4750*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4751esac
4752build=$ac_cv_build
4753ac_save_IFS=$IFS; IFS='-'
4754set x $ac_cv_build
4755shift
4756build_cpu=$1
4757build_vendor=$2
4758shift; shift
4759# Remember, the first character of IFS is used to create $*,
4760# except with old shells:
4761build_os=$*
4762IFS=$ac_save_IFS
4763case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4764
4765
4766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4767$as_echo_n "checking host system type... " >&6; }
4768if ${ac_cv_host+:} false; then :
4769 $as_echo_n "(cached) " >&6
4770else
4771 if test "x$host_alias" = x; then
4772 ac_cv_host=$ac_cv_build
4773else
4774 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4775 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4776fi
4777
4778fi
4779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4780$as_echo "$ac_cv_host" >&6; }
4781case $ac_cv_host in
4782*-*-*) ;;
4783*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4784esac
4785host=$ac_cv_host
4786ac_save_IFS=$IFS; IFS='-'
4787set x $ac_cv_host
4788shift
4789host_cpu=$1
4790host_vendor=$2
4791shift; shift
4792# Remember, the first character of IFS is used to create $*,
4793# except with old shells:
4794host_os=$*
4795IFS=$ac_save_IFS
4796case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4797
4798
4799# Backslashify metacharacters that are still active within
4800# double-quoted strings.
4801sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4802
4803# Same as above, but do not quote variable references.
4804double_quote_subst='s/\(["`\\]\)/\\\1/g'
4805
4806# Sed substitution to delay expansion of an escaped shell variable in a
4807# double_quote_subst'ed string.
4808delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4809
4810# Sed substitution to delay expansion of an escaped single quote.
4811delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4812
4813# Sed substitution to avoid accidental globbing in evaled expressions
4814no_glob_subst='s/\*/\\\*/g'
4815
4816ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4817ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4818ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4819
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4821$as_echo_n "checking how to print strings... " >&6; }
4822# Test print first, because it will be a builtin if present.
4823if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4824 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4825 ECHO='print -r --'
4826elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4827 ECHO='printf %s\n'
4828else
4829 # Use this function as a fallback that always works.
4830 func_fallback_echo ()
4831 {
4832 eval 'cat <<_LTECHO_EOF
4833$1
4834_LTECHO_EOF'
4835 }
4836 ECHO='func_fallback_echo'
4837fi
4838
4839# func_echo_all arg...
4840# Invoke $ECHO with all args, space-separated.
4841func_echo_all ()
4842{
4843 $ECHO ""
4844}
4845
4846case $ECHO in
4847 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4848$as_echo "printf" >&6; } ;;
4849 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4850$as_echo "print -r" >&6; } ;;
4851 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4852$as_echo "cat" >&6; } ;;
4853esac
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4869$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4870if ${ac_cv_path_SED+:} false; then :
4871 $as_echo_n "(cached) " >&6
4872else
4873 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4874 for ac_i in 1 2 3 4 5 6 7; do
4875 ac_script="$ac_script$as_nl$ac_script"
4876 done
4877 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4878 { ac_script=; unset ac_script;}
4879 if test -z "$SED"; then
4880 ac_path_SED_found=false
4881 # Loop through the user's path and test for each of PROGNAME-LIST
4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883for as_dir in $PATH
4884do
4885 IFS=$as_save_IFS
4886 test -z "$as_dir" && as_dir=.
4887 for ac_prog in sed gsed; do
4888 for ac_exec_ext in '' $ac_executable_extensions; do
4889 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4890 as_fn_executable_p "$ac_path_SED" || continue
4891# Check for GNU ac_path_SED and select it if it is found.
4892 # Check for GNU $ac_path_SED
4893case `"$ac_path_SED" --version 2>&1` in
4894*GNU*)
4895 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4896*)
4897 ac_count=0
4898 $as_echo_n 0123456789 >"conftest.in"
4899 while :
4900 do
4901 cat "conftest.in" "conftest.in" >"conftest.tmp"
4902 mv "conftest.tmp" "conftest.in"
4903 cp "conftest.in" "conftest.nl"
4904 $as_echo '' >> "conftest.nl"
4905 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4906 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4907 as_fn_arith $ac_count + 1 && ac_count=$as_val
4908 if test $ac_count -gt ${ac_path_SED_max-0}; then
4909 # Best one so far, save it but keep looking for a better one
4910 ac_cv_path_SED="$ac_path_SED"
4911 ac_path_SED_max=$ac_count
4912 fi
4913 # 10*(2^10) chars as input seems more than enough
4914 test $ac_count -gt 10 && break
4915 done
4916 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4917esac
4918
4919 $ac_path_SED_found && break 3
4920 done
4921 done
4922 done
4923IFS=$as_save_IFS
4924 if test -z "$ac_cv_path_SED"; then
4925 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4926 fi
4927else
4928 ac_cv_path_SED=$SED
4929fi
4930
4931fi
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4933$as_echo "$ac_cv_path_SED" >&6; }
4934 SED="$ac_cv_path_SED"
4935 rm -f conftest.sed
4936
4937test -z "$SED" && SED=sed
4938Xsed="$SED -e 1s/^X//"
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4951$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4952if ${ac_cv_path_GREP+:} false; then :
4953 $as_echo_n "(cached) " >&6
4954else
4955 if test -z "$GREP"; then
4956 ac_path_GREP_found=false
4957 # Loop through the user's path and test for each of PROGNAME-LIST
4958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4960do
4961 IFS=$as_save_IFS
4962 test -z "$as_dir" && as_dir=.
4963 for ac_prog in grep ggrep; do
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4966 as_fn_executable_p "$ac_path_GREP" || continue
4967# Check for GNU ac_path_GREP and select it if it is found.
4968 # Check for GNU $ac_path_GREP
4969case `"$ac_path_GREP" --version 2>&1` in
4970*GNU*)
4971 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4972*)
4973 ac_count=0
4974 $as_echo_n 0123456789 >"conftest.in"
4975 while :
4976 do
4977 cat "conftest.in" "conftest.in" >"conftest.tmp"
4978 mv "conftest.tmp" "conftest.in"
4979 cp "conftest.in" "conftest.nl"
4980 $as_echo 'GREP' >> "conftest.nl"
4981 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4983 as_fn_arith $ac_count + 1 && ac_count=$as_val
4984 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4985 # Best one so far, save it but keep looking for a better one
4986 ac_cv_path_GREP="$ac_path_GREP"
4987 ac_path_GREP_max=$ac_count
4988 fi
4989 # 10*(2^10) chars as input seems more than enough
4990 test $ac_count -gt 10 && break
4991 done
4992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4993esac
4994
4995 $ac_path_GREP_found && break 3
4996 done
4997 done
4998 done
4999IFS=$as_save_IFS
5000 if test -z "$ac_cv_path_GREP"; then
5001 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5002 fi
5003else
5004 ac_cv_path_GREP=$GREP
5005fi
5006
5007fi
5008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5009$as_echo "$ac_cv_path_GREP" >&6; }
5010 GREP="$ac_cv_path_GREP"
5011
5012
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5014$as_echo_n "checking for egrep... " >&6; }
5015if ${ac_cv_path_EGREP+:} false; then :
5016 $as_echo_n "(cached) " >&6
5017else
5018 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5019 then ac_cv_path_EGREP="$GREP -E"
5020 else
5021 if test -z "$EGREP"; then
5022 ac_path_EGREP_found=false
5023 # Loop through the user's path and test for each of PROGNAME-LIST
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5026do
5027 IFS=$as_save_IFS
5028 test -z "$as_dir" && as_dir=.
5029 for ac_prog in egrep; do
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5032 as_fn_executable_p "$ac_path_EGREP" || continue
5033# Check for GNU ac_path_EGREP and select it if it is found.
5034 # Check for GNU $ac_path_EGREP
5035case `"$ac_path_EGREP" --version 2>&1` in
5036*GNU*)
5037 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5038*)
5039 ac_count=0
5040 $as_echo_n 0123456789 >"conftest.in"
5041 while :
5042 do
5043 cat "conftest.in" "conftest.in" >"conftest.tmp"
5044 mv "conftest.tmp" "conftest.in"
5045 cp "conftest.in" "conftest.nl"
5046 $as_echo 'EGREP' >> "conftest.nl"
5047 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5048 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5049 as_fn_arith $ac_count + 1 && ac_count=$as_val
5050 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5051 # Best one so far, save it but keep looking for a better one
5052 ac_cv_path_EGREP="$ac_path_EGREP"
5053 ac_path_EGREP_max=$ac_count
5054 fi
5055 # 10*(2^10) chars as input seems more than enough
5056 test $ac_count -gt 10 && break
5057 done
5058 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5059esac
5060
5061 $ac_path_EGREP_found && break 3
5062 done
5063 done
5064 done
5065IFS=$as_save_IFS
5066 if test -z "$ac_cv_path_EGREP"; then
5067 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5068 fi
5069else
5070 ac_cv_path_EGREP=$EGREP
5071fi
5072
5073 fi
5074fi
5075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5076$as_echo "$ac_cv_path_EGREP" >&6; }
5077 EGREP="$ac_cv_path_EGREP"
5078
5079
5080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5081$as_echo_n "checking for fgrep... " >&6; }
5082if ${ac_cv_path_FGREP+:} false; then :
5083 $as_echo_n "(cached) " >&6
5084else
5085 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5086 then ac_cv_path_FGREP="$GREP -F"
5087 else
5088 if test -z "$FGREP"; then
5089 ac_path_FGREP_found=false
5090 # Loop through the user's path and test for each of PROGNAME-LIST
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5093do
5094 IFS=$as_save_IFS
5095 test -z "$as_dir" && as_dir=.
5096 for ac_prog in fgrep; do
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5099 as_fn_executable_p "$ac_path_FGREP" || continue
5100# Check for GNU ac_path_FGREP and select it if it is found.
5101 # Check for GNU $ac_path_FGREP
5102case `"$ac_path_FGREP" --version 2>&1` in
5103*GNU*)
5104 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5105*)
5106 ac_count=0
5107 $as_echo_n 0123456789 >"conftest.in"
5108 while :
5109 do
5110 cat "conftest.in" "conftest.in" >"conftest.tmp"
5111 mv "conftest.tmp" "conftest.in"
5112 cp "conftest.in" "conftest.nl"
5113 $as_echo 'FGREP' >> "conftest.nl"
5114 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5116 as_fn_arith $ac_count + 1 && ac_count=$as_val
5117 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5118 # Best one so far, save it but keep looking for a better one
5119 ac_cv_path_FGREP="$ac_path_FGREP"
5120 ac_path_FGREP_max=$ac_count
5121 fi
5122 # 10*(2^10) chars as input seems more than enough
5123 test $ac_count -gt 10 && break
5124 done
5125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5126esac
5127
5128 $ac_path_FGREP_found && break 3
5129 done
5130 done
5131 done
5132IFS=$as_save_IFS
5133 if test -z "$ac_cv_path_FGREP"; then
5134 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5135 fi
5136else
5137 ac_cv_path_FGREP=$FGREP
5138fi
5139
5140 fi
5141fi
5142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5143$as_echo "$ac_cv_path_FGREP" >&6; }
5144 FGREP="$ac_cv_path_FGREP"
5145
5146
5147test -z "$GREP" && GREP=grep
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167# Check whether --with-gnu-ld was given.
5168if test "${with_gnu_ld+set}" = set; then :
5169 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5170else
5171 with_gnu_ld=no
5172fi
5173
5174ac_prog=ld
5175if test yes = "$GCC"; then
5176 # Check if gcc -print-prog-name=ld gives a path.
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5178$as_echo_n "checking for ld used by $CC... " >&6; }
5179 case $host in
5180 *-*-mingw*)
5181 # gcc leaves a trailing carriage return, which upsets mingw
5182 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5183 *)
5184 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5185 esac
5186 case $ac_prog in
5187 # Accept absolute paths.
5188 [\\/]* | ?:[\\/]*)
5189 re_direlt='/[^/][^/]*/\.\./'
5190 # Canonicalize the pathname of ld
5191 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5192 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5193 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5194 done
5195 test -z "$LD" && LD=$ac_prog
5196 ;;
5197 "")
5198 # If it fails, then pretend we aren't using GCC.
5199 ac_prog=ld
5200 ;;
5201 *)
5202 # If it is relative, then search for the first ld in PATH.
5203 with_gnu_ld=unknown
5204 ;;
5205 esac
5206elif test yes = "$with_gnu_ld"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5208$as_echo_n "checking for GNU ld... " >&6; }
5209else
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5211$as_echo_n "checking for non-GNU ld... " >&6; }
5212fi
5213if ${lt_cv_path_LD+:} false; then :
5214 $as_echo_n "(cached) " >&6
5215else
5216 if test -z "$LD"; then
5217 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5218 for ac_dir in $PATH; do
5219 IFS=$lt_save_ifs
5220 test -z "$ac_dir" && ac_dir=.
5221 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5222 lt_cv_path_LD=$ac_dir/$ac_prog
5223 # Check to see if the program is GNU ld. I'd rather use --version,
5224 # but apparently some variants of GNU ld only accept -v.
5225 # Break only if it was the GNU/non-GNU ld that we prefer.
5226 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5227 *GNU* | *'with BFD'*)
5228 test no != "$with_gnu_ld" && break
5229 ;;
5230 *)
5231 test yes != "$with_gnu_ld" && break
5232 ;;
5233 esac
5234 fi
5235 done
5236 IFS=$lt_save_ifs
5237else
5238 lt_cv_path_LD=$LD # Let the user override the test with a path.
5239fi
5240fi
5241
5242LD=$lt_cv_path_LD
5243if test -n "$LD"; then
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5245$as_echo "$LD" >&6; }
5246else
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248$as_echo "no" >&6; }
5249fi
5250test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5252$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5253if ${lt_cv_prog_gnu_ld+:} false; then :
5254 $as_echo_n "(cached) " >&6
5255else
5256 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5257case `$LD -v 2>&1 </dev/null` in
5258*GNU* | *'with BFD'*)
5259 lt_cv_prog_gnu_ld=yes
5260 ;;
5261*)
5262 lt_cv_prog_gnu_ld=no
5263 ;;
5264esac
5265fi
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5267$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5268with_gnu_ld=$lt_cv_prog_gnu_ld
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5279$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5280if ${lt_cv_path_NM+:} false; then :
5281 $as_echo_n "(cached) " >&6
5282else
5283 if test -n "$NM"; then
5284 # Let the user override the test.
5285 lt_cv_path_NM=$NM
5286else
5287 lt_nm_to_check=${ac_tool_prefix}nm
5288 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5289 lt_nm_to_check="$lt_nm_to_check nm"
5290 fi
5291 for lt_tmp_nm in $lt_nm_to_check; do
5292 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5293 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5294 IFS=$lt_save_ifs
5295 test -z "$ac_dir" && ac_dir=.
5296 tmp_nm=$ac_dir/$lt_tmp_nm
5297 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5298 # Check to see if the nm accepts a BSD-compat flag.
5299 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5300 # nm: unknown option "B" ignored
5301 # Tru64's nm complains that /dev/null is an invalid object file
5302 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5303 case $build_os in
5304 mingw*) lt_bad_file=conftest.nm/nofile ;;
5305 *) lt_bad_file=/dev/null ;;
5306 esac
5307 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5308 *$lt_bad_file* | *'Invalid file or object type'*)
5309 lt_cv_path_NM="$tmp_nm -B"
5310 break 2
5311 ;;
5312 *)
5313 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5314 */dev/null*)
5315 lt_cv_path_NM="$tmp_nm -p"
5316 break 2
5317 ;;
5318 *)
5319 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5320 continue # so that we can try to find one that supports BSD flags
5321 ;;
5322 esac
5323 ;;
5324 esac
5325 fi
5326 done
5327 IFS=$lt_save_ifs
5328 done
5329 : ${lt_cv_path_NM=no}
5330fi
5331fi
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5333$as_echo "$lt_cv_path_NM" >&6; }
5334if test no != "$lt_cv_path_NM"; then
5335 NM=$lt_cv_path_NM
5336else
5337 # Didn't find any BSD compatible name lister, look for dumpbin.
5338 if test -n "$DUMPBIN"; then :
5339 # Let the user override the test.
5340 else
5341 if test -n "$ac_tool_prefix"; then
5342 for ac_prog in dumpbin "link -dump"
5343 do
5344 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5345set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5347$as_echo_n "checking for $ac_word... " >&6; }
5348if ${ac_cv_prog_DUMPBIN+:} false; then :
5349 $as_echo_n "(cached) " >&6
5350else
5351 if test -n "$DUMPBIN"; then
5352 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5353else
5354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355for as_dir in $PATH
5356do
5357 IFS=$as_save_IFS
5358 test -z "$as_dir" && as_dir=.
5359 for ac_exec_ext in '' $ac_executable_extensions; do
5360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5363 break 2
5364 fi
5365done
5366 done
5367IFS=$as_save_IFS
5368
5369fi
5370fi
5371DUMPBIN=$ac_cv_prog_DUMPBIN
5372if test -n "$DUMPBIN"; then
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5374$as_echo "$DUMPBIN" >&6; }
5375else
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377$as_echo "no" >&6; }
5378fi
5379
5380
5381 test -n "$DUMPBIN" && break
5382 done
5383fi
5384if test -z "$DUMPBIN"; then
5385 ac_ct_DUMPBIN=$DUMPBIN
5386 for ac_prog in dumpbin "link -dump"
5387do
5388 # Extract the first word of "$ac_prog", so it can be a program name with args.
5389set dummy $ac_prog; ac_word=$2
5390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5391$as_echo_n "checking for $ac_word... " >&6; }
5392if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5393 $as_echo_n "(cached) " >&6
5394else
5395 if test -n "$ac_ct_DUMPBIN"; then
5396 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5397else
5398as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399for as_dir in $PATH
5400do
5401 IFS=$as_save_IFS
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5405 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 break 2
5408 fi
5409done
5410 done
5411IFS=$as_save_IFS
5412
5413fi
5414fi
5415ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5416if test -n "$ac_ct_DUMPBIN"; then
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5418$as_echo "$ac_ct_DUMPBIN" >&6; }
5419else
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421$as_echo "no" >&6; }
5422fi
5423
5424
5425 test -n "$ac_ct_DUMPBIN" && break
5426done
5427
5428 if test "x$ac_ct_DUMPBIN" = x; then
5429 DUMPBIN=":"
5430 else
5431 case $cross_compiling:$ac_tool_warned in
5432yes:)
5433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5435ac_tool_warned=yes ;;
5436esac
5437 DUMPBIN=$ac_ct_DUMPBIN
5438 fi
5439fi
5440
5441 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5442 *COFF*)
5443 DUMPBIN="$DUMPBIN -symbols -headers"
5444 ;;
5445 *)
5446 DUMPBIN=:
5447 ;;
5448 esac
5449 fi
5450
5451 if test : != "$DUMPBIN"; then
5452 NM=$DUMPBIN
5453 fi
5454fi
5455test -z "$NM" && NM=nm
5456
5457
5458
5459
5460
5461
5462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5463$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5464if ${lt_cv_nm_interface+:} false; then :
5465 $as_echo_n "(cached) " >&6
5466else
5467 lt_cv_nm_interface="BSD nm"
5468 echo "int some_variable = 0;" > conftest.$ac_ext
5469 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5470 (eval "$ac_compile" 2>conftest.err)
5471 cat conftest.err >&5
5472 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5473 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5474 cat conftest.err >&5
5475 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5476 cat conftest.out >&5
5477 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5478 lt_cv_nm_interface="MS dumpbin"
5479 fi
5480 rm -f conftest*
5481fi
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5483$as_echo "$lt_cv_nm_interface" >&6; }
5484
5485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5486$as_echo_n "checking whether ln -s works... " >&6; }
5487LN_S=$as_ln_s
5488if test "$LN_S" = "ln -s"; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5490$as_echo "yes" >&6; }
5491else
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5493$as_echo "no, using $LN_S" >&6; }
5494fi
5495
5496# find the maximum length of command line arguments
5497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5498$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5499if ${lt_cv_sys_max_cmd_len+:} false; then :
5500 $as_echo_n "(cached) " >&6
5501else
5502 i=0
5503 teststring=ABCD
5504
5505 case $build_os in
5506 msdosdjgpp*)
5507 # On DJGPP, this test can blow up pretty badly due to problems in libc
5508 # (any single argument exceeding 2000 bytes causes a buffer overrun
5509 # during glob expansion). Even if it were fixed, the result of this
5510 # check would be larger than it should be.
5511 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5512 ;;
5513
5514 gnu*)
5515 # Under GNU Hurd, this test is not required because there is
5516 # no limit to the length of command line arguments.
5517 # Libtool will interpret -1 as no limit whatsoever
5518 lt_cv_sys_max_cmd_len=-1;
5519 ;;
5520
5521 cygwin* | mingw* | cegcc*)
5522 # On Win9x/ME, this test blows up -- it succeeds, but takes
5523 # about 5 minutes as the teststring grows exponentially.
5524 # Worse, since 9x/ME are not pre-emptively multitasking,
5525 # you end up with a "frozen" computer, even though with patience
5526 # the test eventually succeeds (with a max line length of 256k).
5527 # Instead, let's just punt: use the minimum linelength reported by
5528 # all of the supported platforms: 8192 (on NT/2K/XP).
5529 lt_cv_sys_max_cmd_len=8192;
5530 ;;
5531
5532 mint*)
5533 # On MiNT this can take a long time and run out of memory.
5534 lt_cv_sys_max_cmd_len=8192;
5535 ;;
5536
5537 amigaos*)
5538 # On AmigaOS with pdksh, this test takes hours, literally.
5539 # So we just punt and use a minimum line length of 8192.
5540 lt_cv_sys_max_cmd_len=8192;
5541 ;;
5542
5543 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5544 # This has been around since 386BSD, at least. Likely further.
5545 if test -x /sbin/sysctl; then
5546 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5547 elif test -x /usr/sbin/sysctl; then
5548 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5549 else
5550 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5551 fi
5552 # And add a safety zone
5553 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5554 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5555 ;;
5556
5557 interix*)
5558 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5559 lt_cv_sys_max_cmd_len=196608
5560 ;;
5561
5562 os2*)
5563 # The test takes a long time on OS/2.
5564 lt_cv_sys_max_cmd_len=8192
5565 ;;
5566
5567 osf*)
5568 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5569 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5570 # nice to cause kernel panics so lets avoid the loop below.
5571 # First set a reasonable default.
5572 lt_cv_sys_max_cmd_len=16384
5573 #
5574 if test -x /sbin/sysconfig; then
5575 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5576 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5577 esac
5578 fi
5579 ;;
5580 sco3.2v5*)
5581 lt_cv_sys_max_cmd_len=102400
5582 ;;
5583 sysv5* | sco5v6* | sysv4.2uw2*)
5584 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5585 if test -n "$kargmax"; then
5586 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5587 else
5588 lt_cv_sys_max_cmd_len=32768
5589 fi
5590 ;;
5591 *)
5592 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5593 if test -n "$lt_cv_sys_max_cmd_len" && \
5594 test undefined != "$lt_cv_sys_max_cmd_len"; then
5595 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5596 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5597 else
5598 # Make teststring a little bigger before we do anything with it.
5599 # a 1K string should be a reasonable start.
5600 for i in 1 2 3 4 5 6 7 8; do
5601 teststring=$teststring$teststring
5602 done
5603 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5604 # If test is not a shell built-in, we'll probably end up computing a
5605 # maximum length that is only half of the actual maximum length, but
5606 # we can't tell.
5607 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5608 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5609 test 17 != "$i" # 1/2 MB should be enough
5610 do
5611 i=`expr $i + 1`
5612 teststring=$teststring$teststring
5613 done
5614 # Only check the string length outside the loop.
5615 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5616 teststring=
5617 # Add a significant safety factor because C++ compilers can tack on
5618 # massive amounts of additional arguments before passing them to the
5619 # linker. It appears as though 1/2 is a usable value.
5620 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5621 fi
5622 ;;
5623 esac
5624
5625fi
5626
5627if test -n "$lt_cv_sys_max_cmd_len"; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5629$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5630else
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5632$as_echo "none" >&6; }
5633fi
5634max_cmd_len=$lt_cv_sys_max_cmd_len
5635
5636
5637
5638
5639
5640
5641: ${CP="cp -f"}
5642: ${MV="mv -f"}
5643: ${RM="rm -f"}
5644
5645if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5646 lt_unset=unset
5647else
5648 lt_unset=false
5649fi
5650
5651
5652
5653
5654
5655# test EBCDIC or ASCII
5656case `echo X|tr X '\101'` in
5657 A) # ASCII based system
5658 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5659 lt_SP2NL='tr \040 \012'
5660 lt_NL2SP='tr \015\012 \040\040'
5661 ;;
5662 *) # EBCDIC based system
5663 lt_SP2NL='tr \100 \n'
5664 lt_NL2SP='tr \r\n \100\100'
5665 ;;
5666esac
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5677$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5678if ${lt_cv_to_host_file_cmd+:} false; then :
5679 $as_echo_n "(cached) " >&6
5680else
5681 case $host in
5682 *-*-mingw* )
5683 case $build in
5684 *-*-mingw* ) # actually msys
5685 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5686 ;;
5687 *-*-cygwin* )
5688 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5689 ;;
5690 * ) # otherwise, assume *nix
5691 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5692 ;;
5693 esac
5694 ;;
5695 *-*-cygwin* )
5696 case $build in
5697 *-*-mingw* ) # actually msys
5698 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5699 ;;
5700 *-*-cygwin* )
5701 lt_cv_to_host_file_cmd=func_convert_file_noop
5702 ;;
5703 * ) # otherwise, assume *nix
5704 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5705 ;;
5706 esac
5707 ;;
5708 * ) # unhandled hosts (and "normal" native builds)
5709 lt_cv_to_host_file_cmd=func_convert_file_noop
5710 ;;
5711esac
5712
5713fi
5714
5715to_host_file_cmd=$lt_cv_to_host_file_cmd
5716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5717$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5718
5719
5720
5721
5722
5723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5724$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5725if ${lt_cv_to_tool_file_cmd+:} false; then :
5726 $as_echo_n "(cached) " >&6
5727else
5728 #assume ordinary cross tools, or native build.
5729lt_cv_to_tool_file_cmd=func_convert_file_noop
5730case $host in
5731 *-*-mingw* )
5732 case $build in
5733 *-*-mingw* ) # actually msys
5734 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5735 ;;
5736 esac
5737 ;;
5738esac
5739
5740fi
5741
5742to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5744$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5745
5746
5747
5748
5749
5750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5751$as_echo_n "checking for $LD option to reload object files... " >&6; }
5752if ${lt_cv_ld_reload_flag+:} false; then :
5753 $as_echo_n "(cached) " >&6
5754else
5755 lt_cv_ld_reload_flag='-r'
5756fi
5757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5758$as_echo "$lt_cv_ld_reload_flag" >&6; }
5759reload_flag=$lt_cv_ld_reload_flag
5760case $reload_flag in
5761"" | " "*) ;;
5762*) reload_flag=" $reload_flag" ;;
5763esac
5764reload_cmds='$LD$reload_flag -o $output$reload_objs'
5765case $host_os in
5766 cygwin* | mingw* | pw32* | cegcc*)
5767 if test yes != "$GCC"; then
5768 reload_cmds=false
5769 fi
5770 ;;
5771 darwin*)
5772 if test yes = "$GCC"; then
5773 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5774 else
5775 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5776 fi
5777 ;;
5778esac
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788if test -n "$ac_tool_prefix"; then
5789 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5790set dummy ${ac_tool_prefix}objdump; ac_word=$2
5791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5792$as_echo_n "checking for $ac_word... " >&6; }
5793if ${ac_cv_prog_OBJDUMP+:} false; then :
5794 $as_echo_n "(cached) " >&6
5795else
5796 if test -n "$OBJDUMP"; then
5797 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5798else
5799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800for as_dir in $PATH
5801do
5802 IFS=$as_save_IFS
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5806 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 break 2
5809 fi
5810done
5811 done
5812IFS=$as_save_IFS
5813
5814fi
5815fi
5816OBJDUMP=$ac_cv_prog_OBJDUMP
5817if test -n "$OBJDUMP"; then
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5819$as_echo "$OBJDUMP" >&6; }
5820else
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822$as_echo "no" >&6; }
5823fi
5824
5825
5826fi
5827if test -z "$ac_cv_prog_OBJDUMP"; then
5828 ac_ct_OBJDUMP=$OBJDUMP
5829 # Extract the first word of "objdump", so it can be a program name with args.
5830set dummy objdump; ac_word=$2
5831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5832$as_echo_n "checking for $ac_word... " >&6; }
5833if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5834 $as_echo_n "(cached) " >&6
5835else
5836 if test -n "$ac_ct_OBJDUMP"; then
5837 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5838else
5839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5840for as_dir in $PATH
5841do
5842 IFS=$as_save_IFS
5843 test -z "$as_dir" && as_dir=.
5844 for ac_exec_ext in '' $ac_executable_extensions; do
5845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5846 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5848 break 2
5849 fi
5850done
5851 done
5852IFS=$as_save_IFS
5853
5854fi
5855fi
5856ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5857if test -n "$ac_ct_OBJDUMP"; then
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5859$as_echo "$ac_ct_OBJDUMP" >&6; }
5860else
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862$as_echo "no" >&6; }
5863fi
5864
5865 if test "x$ac_ct_OBJDUMP" = x; then
5866 OBJDUMP="false"
5867 else
5868 case $cross_compiling:$ac_tool_warned in
5869yes:)
5870{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5872ac_tool_warned=yes ;;
5873esac
5874 OBJDUMP=$ac_ct_OBJDUMP
5875 fi
5876else
5877 OBJDUMP="$ac_cv_prog_OBJDUMP"
5878fi
5879
5880test -z "$OBJDUMP" && OBJDUMP=objdump
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5891$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5892if ${lt_cv_deplibs_check_method+:} false; then :
5893 $as_echo_n "(cached) " >&6
5894else
5895 lt_cv_file_magic_cmd='$MAGIC_CMD'
5896lt_cv_file_magic_test_file=
5897lt_cv_deplibs_check_method='unknown'
5898# Need to set the preceding variable on all platforms that support
5899# interlibrary dependencies.
5900# 'none' -- dependencies not supported.
5901# 'unknown' -- same as none, but documents that we really don't know.
5902# 'pass_all' -- all dependencies passed with no checks.
5903# 'test_compile' -- check by making test program.
5904# 'file_magic [[regex]]' -- check by looking for files in library path
5905# that responds to the $file_magic_cmd with a given extended regex.
5906# If you have 'file' or equivalent on your system and you're not sure
5907# whether 'pass_all' will *always* work, you probably want this one.
5908
5909case $host_os in
5910aix[4-9]*)
5911 lt_cv_deplibs_check_method=pass_all
5912 ;;
5913
5914beos*)
5915 lt_cv_deplibs_check_method=pass_all
5916 ;;
5917
5918bsdi[45]*)
5919 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5920 lt_cv_file_magic_cmd='/usr/bin/file -L'
5921 lt_cv_file_magic_test_file=/shlib/libc.so
5922 ;;
5923
5924cygwin*)
5925 # func_win32_libid is a shell function defined in ltmain.sh
5926 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5927 lt_cv_file_magic_cmd='func_win32_libid'
5928 ;;
5929
5930mingw* | pw32*)
5931 # Base MSYS/MinGW do not provide the 'file' command needed by
5932 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5933 # unless we find 'file', for example because we are cross-compiling.
5934 if ( file / ) >/dev/null 2>&1; then
5935 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5936 lt_cv_file_magic_cmd='func_win32_libid'
5937 else
5938 # Keep this pattern in sync with the one in func_win32_libid.
5939 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5940 lt_cv_file_magic_cmd='$OBJDUMP -f'
5941 fi
5942 ;;
5943
5944cegcc*)
5945 # use the weaker test based on 'objdump'. See mingw*.
5946 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5947 lt_cv_file_magic_cmd='$OBJDUMP -f'
5948 ;;
5949
5950darwin* | rhapsody*)
5951 lt_cv_deplibs_check_method=pass_all
5952 ;;
5953
5954freebsd* | dragonfly*)
5955 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5956 case $host_cpu in
5957 i*86 )
5958 # Not sure whether the presence of OpenBSD here was a mistake.
5959 # Let's accept both of them until this is cleared up.
5960 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5961 lt_cv_file_magic_cmd=/usr/bin/file
5962 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5963 ;;
5964 esac
5965 else
5966 lt_cv_deplibs_check_method=pass_all
5967 fi
5968 ;;
5969
5970haiku*)
5971 lt_cv_deplibs_check_method=pass_all
5972 ;;
5973
5974hpux10.20* | hpux11*)
5975 lt_cv_file_magic_cmd=/usr/bin/file
5976 case $host_cpu in
5977 ia64*)
5978 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5979 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5980 ;;
5981 hppa*64*)
5982 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]'
5983 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5984 ;;
5985 *)
5986 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5987 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5988 ;;
5989 esac
5990 ;;
5991
5992interix[3-9]*)
5993 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5994 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5995 ;;
5996
5997irix5* | irix6* | nonstopux*)
5998 case $LD in
5999 *-32|*"-32 ") libmagic=32-bit;;
6000 *-n32|*"-n32 ") libmagic=N32;;
6001 *-64|*"-64 ") libmagic=64-bit;;
6002 *) libmagic=never-match;;
6003 esac
6004 lt_cv_deplibs_check_method=pass_all
6005 ;;
6006
6007# This must be glibc/ELF.
6008linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6009 lt_cv_deplibs_check_method=pass_all
6010 ;;
6011
6012netbsd* | netbsdelf*-gnu)
6013 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6014 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6015 else
6016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6017 fi
6018 ;;
6019
6020newos6*)
6021 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6022 lt_cv_file_magic_cmd=/usr/bin/file
6023 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6024 ;;
6025
6026*nto* | *qnx*)
6027 lt_cv_deplibs_check_method=pass_all
6028 ;;
6029
6030openbsd* | bitrig*)
6031 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6032 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6033 else
6034 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6035 fi
6036 ;;
6037
6038osf3* | osf4* | osf5*)
6039 lt_cv_deplibs_check_method=pass_all
6040 ;;
6041
6042rdos*)
6043 lt_cv_deplibs_check_method=pass_all
6044 ;;
6045
6046solaris*)
6047 lt_cv_deplibs_check_method=pass_all
6048 ;;
6049
6050sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6051 lt_cv_deplibs_check_method=pass_all
6052 ;;
6053
6054sysv4 | sysv4.3*)
6055 case $host_vendor in
6056 motorola)
6057 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]'
6058 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6059 ;;
6060 ncr)
6061 lt_cv_deplibs_check_method=pass_all
6062 ;;
6063 sequent)
6064 lt_cv_file_magic_cmd='/bin/file'
6065 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6066 ;;
6067 sni)
6068 lt_cv_file_magic_cmd='/bin/file'
6069 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6070 lt_cv_file_magic_test_file=/lib/libc.so
6071 ;;
6072 siemens)
6073 lt_cv_deplibs_check_method=pass_all
6074 ;;
6075 pc)
6076 lt_cv_deplibs_check_method=pass_all
6077 ;;
6078 esac
6079 ;;
6080
6081tpf*)
6082 lt_cv_deplibs_check_method=pass_all
6083 ;;
6084os2*)
6085 lt_cv_deplibs_check_method=pass_all
6086 ;;
6087esac
6088
6089fi
6090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6091$as_echo "$lt_cv_deplibs_check_method" >&6; }
6092
6093file_magic_glob=
6094want_nocaseglob=no
6095if test "$build" = "$host"; then
6096 case $host_os in
6097 mingw* | pw32*)
6098 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6099 want_nocaseglob=yes
6100 else
6101 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6102 fi
6103 ;;
6104 esac
6105fi
6106
6107file_magic_cmd=$lt_cv_file_magic_cmd
6108deplibs_check_method=$lt_cv_deplibs_check_method
6109test -z "$deplibs_check_method" && deplibs_check_method=unknown
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132if test -n "$ac_tool_prefix"; then
6133 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6134set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6136$as_echo_n "checking for $ac_word... " >&6; }
6137if ${ac_cv_prog_DLLTOOL+:} false; then :
6138 $as_echo_n "(cached) " >&6
6139else
6140 if test -n "$DLLTOOL"; then
6141 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6142else
6143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6144for as_dir in $PATH
6145do
6146 IFS=$as_save_IFS
6147 test -z "$as_dir" && as_dir=.
6148 for ac_exec_ext in '' $ac_executable_extensions; do
6149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6150 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6152 break 2
6153 fi
6154done
6155 done
6156IFS=$as_save_IFS
6157
6158fi
6159fi
6160DLLTOOL=$ac_cv_prog_DLLTOOL
6161if test -n "$DLLTOOL"; then
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6163$as_echo "$DLLTOOL" >&6; }
6164else
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166$as_echo "no" >&6; }
6167fi
6168
6169
6170fi
6171if test -z "$ac_cv_prog_DLLTOOL"; then
6172 ac_ct_DLLTOOL=$DLLTOOL
6173 # Extract the first word of "dlltool", so it can be a program name with args.
6174set dummy dlltool; ac_word=$2
6175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176$as_echo_n "checking for $ac_word... " >&6; }
6177if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6178 $as_echo_n "(cached) " >&6
6179else
6180 if test -n "$ac_ct_DLLTOOL"; then
6181 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6182else
6183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184for as_dir in $PATH
6185do
6186 IFS=$as_save_IFS
6187 test -z "$as_dir" && as_dir=.
6188 for ac_exec_ext in '' $ac_executable_extensions; do
6189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6190 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6192 break 2
6193 fi
6194done
6195 done
6196IFS=$as_save_IFS
6197
6198fi
6199fi
6200ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6201if test -n "$ac_ct_DLLTOOL"; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6203$as_echo "$ac_ct_DLLTOOL" >&6; }
6204else
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206$as_echo "no" >&6; }
6207fi
6208
6209 if test "x$ac_ct_DLLTOOL" = x; then
6210 DLLTOOL="false"
6211 else
6212 case $cross_compiling:$ac_tool_warned in
6213yes:)
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6216ac_tool_warned=yes ;;
6217esac
6218 DLLTOOL=$ac_ct_DLLTOOL
6219 fi
6220else
6221 DLLTOOL="$ac_cv_prog_DLLTOOL"
6222fi
6223
6224test -z "$DLLTOOL" && DLLTOOL=dlltool
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6236$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6237if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6238 $as_echo_n "(cached) " >&6
6239else
6240 lt_cv_sharedlib_from_linklib_cmd='unknown'
6241
6242case $host_os in
6243cygwin* | mingw* | pw32* | cegcc*)
6244 # two different shell functions defined in ltmain.sh;
6245 # decide which one to use based on capabilities of $DLLTOOL
6246 case `$DLLTOOL --help 2>&1` in
6247 *--identify-strict*)
6248 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6249 ;;
6250 *)
6251 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6252 ;;
6253 esac
6254 ;;
6255*)
6256 # fallback: assume linklib IS sharedlib
6257 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6258 ;;
6259esac
6260
6261fi
6262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6263$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6264sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6265test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6266
6267
6268
6269
6270
6271
6272
6273
6274if test -n "$ac_tool_prefix"; then
6275 for ac_prog in ar
6276 do
6277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6278set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280$as_echo_n "checking for $ac_word... " >&6; }
6281if ${ac_cv_prog_AR+:} false; then :
6282 $as_echo_n "(cached) " >&6
6283else
6284 if test -n "$AR"; then
6285 ac_cv_prog_AR="$AR" # Let the user override the test.
6286else
6287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6288for as_dir in $PATH
6289do
6290 IFS=$as_save_IFS
6291 test -z "$as_dir" && as_dir=.
6292 for ac_exec_ext in '' $ac_executable_extensions; do
6293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6294 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6296 break 2
6297 fi
6298done
6299 done
6300IFS=$as_save_IFS
6301
6302fi
6303fi
6304AR=$ac_cv_prog_AR
6305if test -n "$AR"; then
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6307$as_echo "$AR" >&6; }
6308else
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6310$as_echo "no" >&6; }
6311fi
6312
6313
6314 test -n "$AR" && break
6315 done
6316fi
6317if test -z "$AR"; then
6318 ac_ct_AR=$AR
6319 for ac_prog in ar
6320do
6321 # Extract the first word of "$ac_prog", so it can be a program name with args.
6322set dummy $ac_prog; ac_word=$2
6323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6324$as_echo_n "checking for $ac_word... " >&6; }
6325if ${ac_cv_prog_ac_ct_AR+:} false; then :
6326 $as_echo_n "(cached) " >&6
6327else
6328 if test -n "$ac_ct_AR"; then
6329 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6330else
6331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332for as_dir in $PATH
6333do
6334 IFS=$as_save_IFS
6335 test -z "$as_dir" && as_dir=.
6336 for ac_exec_ext in '' $ac_executable_extensions; do
6337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6338 ac_cv_prog_ac_ct_AR="$ac_prog"
6339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6340 break 2
6341 fi
6342done
6343 done
6344IFS=$as_save_IFS
6345
6346fi
6347fi
6348ac_ct_AR=$ac_cv_prog_ac_ct_AR
6349if test -n "$ac_ct_AR"; then
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6351$as_echo "$ac_ct_AR" >&6; }
6352else
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6354$as_echo "no" >&6; }
6355fi
6356
6357
6358 test -n "$ac_ct_AR" && break
6359done
6360
6361 if test "x$ac_ct_AR" = x; then
6362 AR="false"
6363 else
6364 case $cross_compiling:$ac_tool_warned in
6365yes:)
6366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6368ac_tool_warned=yes ;;
6369esac
6370 AR=$ac_ct_AR
6371 fi
6372fi
6373
6374: ${AR=ar}
6375: ${AR_FLAGS=cru}
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6388$as_echo_n "checking for archiver @FILE support... " >&6; }
6389if ${lt_cv_ar_at_file+:} false; then :
6390 $as_echo_n "(cached) " >&6
6391else
6392 lt_cv_ar_at_file=no
6393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6394/* end confdefs.h. */
6395
6396int
6397main ()
6398{
6399
6400 ;
6401 return 0;
6402}
6403_ACEOF
6404if ac_fn_c_try_compile "$LINENO"; then :
6405 echo conftest.$ac_objext > conftest.lst
6406 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6408 (eval $lt_ar_try) 2>&5
6409 ac_status=$?
6410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6411 test $ac_status = 0; }
6412 if test 0 -eq "$ac_status"; then
6413 # Ensure the archiver fails upon bogus file names.
6414 rm -f conftest.$ac_objext libconftest.a
6415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6416 (eval $lt_ar_try) 2>&5
6417 ac_status=$?
6418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6419 test $ac_status = 0; }
6420 if test 0 -ne "$ac_status"; then
6421 lt_cv_ar_at_file=@
6422 fi
6423 fi
6424 rm -f conftest.* libconftest.a
6425
6426fi
6427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6428
6429fi
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6431$as_echo "$lt_cv_ar_at_file" >&6; }
6432
6433if test no = "$lt_cv_ar_at_file"; then
6434 archiver_list_spec=
6435else
6436 archiver_list_spec=$lt_cv_ar_at_file
6437fi
6438
6439
6440
6441
6442
6443
6444
6445if test -n "$ac_tool_prefix"; then
6446 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6447set dummy ${ac_tool_prefix}strip; ac_word=$2
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449$as_echo_n "checking for $ac_word... " >&6; }
6450if ${ac_cv_prog_STRIP+:} false; then :
6451 $as_echo_n "(cached) " >&6
6452else
6453 if test -n "$STRIP"; then
6454 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6455else
6456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457for as_dir in $PATH
6458do
6459 IFS=$as_save_IFS
6460 test -z "$as_dir" && as_dir=.
6461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6463 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465 break 2
6466 fi
6467done
6468 done
6469IFS=$as_save_IFS
6470
6471fi
6472fi
6473STRIP=$ac_cv_prog_STRIP
6474if test -n "$STRIP"; then
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6476$as_echo "$STRIP" >&6; }
6477else
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479$as_echo "no" >&6; }
6480fi
6481
6482
6483fi
6484if test -z "$ac_cv_prog_STRIP"; then
6485 ac_ct_STRIP=$STRIP
6486 # Extract the first word of "strip", so it can be a program name with args.
6487set dummy strip; ac_word=$2
6488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489$as_echo_n "checking for $ac_word... " >&6; }
6490if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6491 $as_echo_n "(cached) " >&6
6492else
6493 if test -n "$ac_ct_STRIP"; then
6494 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6495else
6496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497for as_dir in $PATH
6498do
6499 IFS=$as_save_IFS
6500 test -z "$as_dir" && as_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6503 ac_cv_prog_ac_ct_STRIP="strip"
6504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 break 2
6506 fi
6507done
6508 done
6509IFS=$as_save_IFS
6510
6511fi
6512fi
6513ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6514if test -n "$ac_ct_STRIP"; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6516$as_echo "$ac_ct_STRIP" >&6; }
6517else
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519$as_echo "no" >&6; }
6520fi
6521
6522 if test "x$ac_ct_STRIP" = x; then
6523 STRIP=":"
6524 else
6525 case $cross_compiling:$ac_tool_warned in
6526yes:)
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6529ac_tool_warned=yes ;;
6530esac
6531 STRIP=$ac_ct_STRIP
6532 fi
6533else
6534 STRIP="$ac_cv_prog_STRIP"
6535fi
6536
6537test -z "$STRIP" && STRIP=:
6538
6539
6540
6541
6542
6543
6544if test -n "$ac_tool_prefix"; then
6545 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6546set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6548$as_echo_n "checking for $ac_word... " >&6; }
6549if ${ac_cv_prog_RANLIB+:} false; then :
6550 $as_echo_n "(cached) " >&6
6551else
6552 if test -n "$RANLIB"; then
6553 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6554else
6555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6556for as_dir in $PATH
6557do
6558 IFS=$as_save_IFS
6559 test -z "$as_dir" && as_dir=.
6560 for ac_exec_ext in '' $ac_executable_extensions; do
6561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6562 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6564 break 2
6565 fi
6566done
6567 done
6568IFS=$as_save_IFS
6569
6570fi
6571fi
6572RANLIB=$ac_cv_prog_RANLIB
6573if test -n "$RANLIB"; then
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6575$as_echo "$RANLIB" >&6; }
6576else
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6578$as_echo "no" >&6; }
6579fi
6580
6581
6582fi
6583if test -z "$ac_cv_prog_RANLIB"; then
6584 ac_ct_RANLIB=$RANLIB
6585 # Extract the first word of "ranlib", so it can be a program name with args.
6586set dummy ranlib; ac_word=$2
6587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588$as_echo_n "checking for $ac_word... " >&6; }
6589if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6590 $as_echo_n "(cached) " >&6
6591else
6592 if test -n "$ac_ct_RANLIB"; then
6593 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6594else
6595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596for as_dir in $PATH
6597do
6598 IFS=$as_save_IFS
6599 test -z "$as_dir" && as_dir=.
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6602 ac_cv_prog_ac_ct_RANLIB="ranlib"
6603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6604 break 2
6605 fi
6606done
6607 done
6608IFS=$as_save_IFS
6609
6610fi
6611fi
6612ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6613if test -n "$ac_ct_RANLIB"; then
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6615$as_echo "$ac_ct_RANLIB" >&6; }
6616else
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618$as_echo "no" >&6; }
6619fi
6620
6621 if test "x$ac_ct_RANLIB" = x; then
6622 RANLIB=":"
6623 else
6624 case $cross_compiling:$ac_tool_warned in
6625yes:)
6626{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6627$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6628ac_tool_warned=yes ;;
6629esac
6630 RANLIB=$ac_ct_RANLIB
6631 fi
6632else
6633 RANLIB="$ac_cv_prog_RANLIB"
6634fi
6635
6636test -z "$RANLIB" && RANLIB=:
6637
6638
6639
6640
6641
6642
6643# Determine commands to create old-style static archives.
6644old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6645old_postinstall_cmds='chmod 644 $oldlib'
6646old_postuninstall_cmds=
6647
6648if test -n "$RANLIB"; then
6649 case $host_os in
6650 bitrig* | openbsd*)
6651 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6652 ;;
6653 *)
6654 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6655 ;;
6656 esac
6657 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6658fi
6659
6660case $host_os in
6661 darwin*)
6662 lock_old_archive_extraction=yes ;;
6663 *)
6664 lock_old_archive_extraction=no ;;
6665esac
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705# If no C compiler was specified, use CC.
6706LTCC=${LTCC-"$CC"}
6707
6708# If no C compiler flags were specified, use CFLAGS.
6709LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6710
6711# Allow CC to be a program name with arguments.
6712compiler=$CC
6713
6714
6715# Check for command to grab the raw symbol name followed by C symbol from nm.
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6717$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6718if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6719 $as_echo_n "(cached) " >&6
6720else
6721
6722# These are sane defaults that work on at least a few old systems.
6723# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6724
6725# Character class describing NM global symbol codes.
6726symcode='[BCDEGRST]'
6727
6728# Regexp to match symbols that can be accessed directly from C.
6729sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6730
6731# Define system-specific variables.
6732case $host_os in
6733aix*)
6734 symcode='[BCDT]'
6735 ;;
6736cygwin* | mingw* | pw32* | cegcc*)
6737 symcode='[ABCDGISTW]'
6738 ;;
6739hpux*)
6740 if test ia64 = "$host_cpu"; then
6741 symcode='[ABCDEGRST]'
6742 fi
6743 ;;
6744irix* | nonstopux*)
6745 symcode='[BCDEGRST]'
6746 ;;
6747osf*)
6748 symcode='[BCDEGQRST]'
6749 ;;
6750solaris*)
6751 symcode='[BDRT]'
6752 ;;
6753sco3.2v5*)
6754 symcode='[DT]'
6755 ;;
6756sysv4.2uw2*)
6757 symcode='[DT]'
6758 ;;
6759sysv5* | sco5v6* | unixware* | OpenUNIX*)
6760 symcode='[ABDT]'
6761 ;;
6762sysv4)
6763 symcode='[DFNSTU]'
6764 ;;
6765esac
6766
6767# If we're using GNU nm, then use its standard symbol codes.
6768case `$NM -V 2>&1` in
6769*GNU* | *'with BFD'*)
6770 symcode='[ABCDGIRSTW]' ;;
6771esac
6772
6773if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6774 # Gets list of data symbols to import.
6775 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6776 # Adjust the below global symbol transforms to fixup imported variables.
6777 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6778 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6779 lt_c_name_lib_hook="\
6780 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6781 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6782else
6783 # Disable hooks by default.
6784 lt_cv_sys_global_symbol_to_import=
6785 lt_cdecl_hook=
6786 lt_c_name_hook=
6787 lt_c_name_lib_hook=
6788fi
6789
6790# Transform an extracted symbol line into a proper C declaration.
6791# Some systems (esp. on ia64) link data and code symbols differently,
6792# so use this general approach.
6793lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6794$lt_cdecl_hook\
6795" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6796" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6797
6798# Transform an extracted symbol line into symbol name and symbol address
6799lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6800$lt_c_name_hook\
6801" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6802" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6803
6804# Transform an extracted symbol line into symbol name with lib prefix and
6805# symbol address.
6806lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6807$lt_c_name_lib_hook\
6808" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6809" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6810" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6811
6812# Handle CRLF in mingw tool chain
6813opt_cr=
6814case $build_os in
6815mingw*)
6816 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6817 ;;
6818esac
6819
6820# Try without a prefix underscore, then with it.
6821for ac_symprfx in "" "_"; do
6822
6823 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6824 symxfrm="\\1 $ac_symprfx\\2 \\2"
6825
6826 # Write the raw and C identifiers.
6827 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6828 # Fake it for dumpbin and say T for any non-static function,
6829 # D for any global variable and I for any imported variable.
6830 # Also find C++ and __fastcall symbols from MSVC++,
6831 # which start with @ or ?.
6832 lt_cv_sys_global_symbol_pipe="$AWK '"\
6833" {last_section=section; section=\$ 3};"\
6834" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6835" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6836" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6837" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6838" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6839" \$ 0!~/External *\|/{next};"\
6840" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6841" {if(hide[section]) next};"\
6842" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6843" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6844" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6845" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6846" ' prfx=^$ac_symprfx"
6847 else
6848 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6849 fi
6850 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6851
6852 # Check to see that the pipe works correctly.
6853 pipe_works=no
6854
6855 rm -f conftest*
6856 cat > conftest.$ac_ext <<_LT_EOF
6857#ifdef __cplusplus
6858extern "C" {
6859#endif
6860char nm_test_var;
6861void nm_test_func(void);
6862void nm_test_func(void){}
6863#ifdef __cplusplus
6864}
6865#endif
6866int main(){nm_test_var='a';nm_test_func();return(0);}
6867_LT_EOF
6868
6869 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6870 (eval $ac_compile) 2>&5
6871 ac_status=$?
6872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6873 test $ac_status = 0; }; then
6874 # Now try to grab the symbols.
6875 nlist=conftest.nm
6876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6877 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6878 ac_status=$?
6879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6880 test $ac_status = 0; } && test -s "$nlist"; then
6881 # Try sorting and uniquifying the output.
6882 if sort "$nlist" | uniq > "$nlist"T; then
6883 mv -f "$nlist"T "$nlist"
6884 else
6885 rm -f "$nlist"T
6886 fi
6887
6888 # Make sure that we snagged all the symbols we need.
6889 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6890 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6891 cat <<_LT_EOF > conftest.$ac_ext
6892/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6893#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6894/* DATA imports from DLLs on WIN32 can't be const, because runtime
6895 relocations are performed -- see ld's documentation on pseudo-relocs. */
6896# define LT_DLSYM_CONST
6897#elif defined __osf__
6898/* This system does not cope well with relocations in const data. */
6899# define LT_DLSYM_CONST
6900#else
6901# define LT_DLSYM_CONST const
6902#endif
6903
6904#ifdef __cplusplus
6905extern "C" {
6906#endif
6907
6908_LT_EOF
6909 # Now generate the symbol file.
6910 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6911
6912 cat <<_LT_EOF >> conftest.$ac_ext
6913
6914/* The mapping between symbol names and symbols. */
6915LT_DLSYM_CONST struct {
6916 const char *name;
6917 void *address;
6918}
6919lt__PROGRAM__LTX_preloaded_symbols[] =
6920{
6921 { "@PROGRAM@", (void *) 0 },
6922_LT_EOF
6923 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6924 cat <<\_LT_EOF >> conftest.$ac_ext
6925 {0, (void *) 0}
6926};
6927
6928/* This works around a problem in FreeBSD linker */
6929#ifdef FREEBSD_WORKAROUND
6930static const void *lt_preloaded_setup() {
6931 return lt__PROGRAM__LTX_preloaded_symbols;
6932}
6933#endif
6934
6935#ifdef __cplusplus
6936}
6937#endif
6938_LT_EOF
6939 # Now try linking the two files.
6940 mv conftest.$ac_objext conftstm.$ac_objext
6941 lt_globsym_save_LIBS=$LIBS
6942 lt_globsym_save_CFLAGS=$CFLAGS
6943 LIBS=conftstm.$ac_objext
6944 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6946 (eval $ac_link) 2>&5
6947 ac_status=$?
6948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6949 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6950 pipe_works=yes
6951 fi
6952 LIBS=$lt_globsym_save_LIBS
6953 CFLAGS=$lt_globsym_save_CFLAGS
6954 else
6955 echo "cannot find nm_test_func in $nlist" >&5
6956 fi
6957 else
6958 echo "cannot find nm_test_var in $nlist" >&5
6959 fi
6960 else
6961 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6962 fi
6963 else
6964 echo "$progname: failed program was:" >&5
6965 cat conftest.$ac_ext >&5
6966 fi
6967 rm -rf conftest* conftst*
6968
6969 # Do not use the global_symbol_pipe unless it works.
6970 if test yes = "$pipe_works"; then
6971 break
6972 else
6973 lt_cv_sys_global_symbol_pipe=
6974 fi
6975done
6976
6977fi
6978
6979if test -z "$lt_cv_sys_global_symbol_pipe"; then
6980 lt_cv_sys_global_symbol_to_cdecl=
6981fi
6982if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6984$as_echo "failed" >&6; }
6985else
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6987$as_echo "ok" >&6; }
6988fi
6989
6990# Response file support.
6991if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6992 nm_file_list_spec='@'
6993elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6994 nm_file_list_spec='@'
6995fi
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7034$as_echo_n "checking for sysroot... " >&6; }
7035
7036# Check whether --with-sysroot was given.
7037if test "${with_sysroot+set}" = set; then :
7038 withval=$with_sysroot;
7039else
7040 with_sysroot=no
7041fi
7042
7043
7044lt_sysroot=
7045case $with_sysroot in #(
7046 yes)
7047 if test yes = "$GCC"; then
7048 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7049 fi
7050 ;; #(
7051 /*)
7052 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7053 ;; #(
7054 no|'')
7055 ;; #(
7056 *)
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7058$as_echo "$with_sysroot" >&6; }
7059 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7060 ;;
7061esac
7062
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7064$as_echo "${lt_sysroot:-no}" >&6; }
7065
7066
7067
7068
7069
7070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7071$as_echo_n "checking for a working dd... " >&6; }
7072if ${ac_cv_path_lt_DD+:} false; then :
7073 $as_echo_n "(cached) " >&6
7074else
7075 printf 0123456789abcdef0123456789abcdef >conftest.i
7076cat conftest.i conftest.i >conftest2.i
7077: ${lt_DD:=$DD}
7078if test -z "$lt_DD"; then
7079 ac_path_lt_DD_found=false
7080 # Loop through the user's path and test for each of PROGNAME-LIST
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082for as_dir in $PATH
7083do
7084 IFS=$as_save_IFS
7085 test -z "$as_dir" && as_dir=.
7086 for ac_prog in dd; do
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7089 as_fn_executable_p "$ac_path_lt_DD" || continue
7090if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7091 cmp -s conftest.i conftest.out \
7092 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7093fi
7094 $ac_path_lt_DD_found && break 3
7095 done
7096 done
7097 done
7098IFS=$as_save_IFS
7099 if test -z "$ac_cv_path_lt_DD"; then
7100 :
7101 fi
7102else
7103 ac_cv_path_lt_DD=$lt_DD
7104fi
7105
7106rm -f conftest.i conftest2.i conftest.out
7107fi
7108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7109$as_echo "$ac_cv_path_lt_DD" >&6; }
7110
7111
7112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7113$as_echo_n "checking how to truncate binary pipes... " >&6; }
7114if ${lt_cv_truncate_bin+:} false; then :
7115 $as_echo_n "(cached) " >&6
7116else
7117 printf 0123456789abcdef0123456789abcdef >conftest.i
7118cat conftest.i conftest.i >conftest2.i
7119lt_cv_truncate_bin=
7120if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7121 cmp -s conftest.i conftest.out \
7122 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7123fi
7124rm -f conftest.i conftest2.i conftest.out
7125test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7126fi
7127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7128$as_echo "$lt_cv_truncate_bin" >&6; }
7129
7130
7131
7132
7133
7134
7135
7136# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7137func_cc_basename ()
7138{
7139 for cc_temp in $*""; do
7140 case $cc_temp in
7141 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7142 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7143 \-*) ;;
7144 *) break;;
7145 esac
7146 done
7147 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7148}
7149
7150# Check whether --enable-libtool-lock was given.
7151if test "${enable_libtool_lock+set}" = set; then :
7152 enableval=$enable_libtool_lock;
7153fi
7154
7155test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7156
7157# Some flags need to be propagated to the compiler or linker for good
7158# libtool support.
7159case $host in
7160ia64-*-hpux*)
7161 # Find out what ABI is being produced by ac_compile, and set mode
7162 # options accordingly.
7163 echo 'int i;' > conftest.$ac_ext
7164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7165 (eval $ac_compile) 2>&5
7166 ac_status=$?
7167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7168 test $ac_status = 0; }; then
7169 case `/usr/bin/file conftest.$ac_objext` in
7170 *ELF-32*)
7171 HPUX_IA64_MODE=32
7172 ;;
7173 *ELF-64*)
7174 HPUX_IA64_MODE=64
7175 ;;
7176 esac
7177 fi
7178 rm -rf conftest*
7179 ;;
7180*-*-irix6*)
7181 # Find out what ABI is being produced by ac_compile, and set linker
7182 # options accordingly.
7183 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7185 (eval $ac_compile) 2>&5
7186 ac_status=$?
7187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7188 test $ac_status = 0; }; then
7189 if test yes = "$lt_cv_prog_gnu_ld"; then
7190 case `/usr/bin/file conftest.$ac_objext` in
7191 *32-bit*)
7192 LD="${LD-ld} -melf32bsmip"
7193 ;;
7194 *N32*)
7195 LD="${LD-ld} -melf32bmipn32"
7196 ;;
7197 *64-bit*)
7198 LD="${LD-ld} -melf64bmip"
7199 ;;
7200 esac
7201 else
7202 case `/usr/bin/file conftest.$ac_objext` in
7203 *32-bit*)
7204 LD="${LD-ld} -32"
7205 ;;
7206 *N32*)
7207 LD="${LD-ld} -n32"
7208 ;;
7209 *64-bit*)
7210 LD="${LD-ld} -64"
7211 ;;
7212 esac
7213 fi
7214 fi
7215 rm -rf conftest*
7216 ;;
7217
7218mips64*-*linux*)
7219 # Find out what ABI is being produced by ac_compile, and set linker
7220 # options accordingly.
7221 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7223 (eval $ac_compile) 2>&5
7224 ac_status=$?
7225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7226 test $ac_status = 0; }; then
7227 emul=elf
7228 case `/usr/bin/file conftest.$ac_objext` in
7229 *32-bit*)
7230 emul="${emul}32"
7231 ;;
7232 *64-bit*)
7233 emul="${emul}64"
7234 ;;
7235 esac
7236 case `/usr/bin/file conftest.$ac_objext` in
7237 *MSB*)
7238 emul="${emul}btsmip"
7239 ;;
7240 *LSB*)
7241 emul="${emul}ltsmip"
7242 ;;
7243 esac
7244 case `/usr/bin/file conftest.$ac_objext` in
7245 *N32*)
7246 emul="${emul}n32"
7247 ;;
7248 esac
7249 LD="${LD-ld} -m $emul"
7250 fi
7251 rm -rf conftest*
7252 ;;
7253
7254x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7255s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7256 # Find out what ABI is being produced by ac_compile, and set linker
7257 # options accordingly. Note that the listed cases only cover the
7258 # situations where additional linker options are needed (such as when
7259 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7260 # vice versa); the common cases where no linker options are needed do
7261 # not appear in the list.
7262 echo 'int i;' > conftest.$ac_ext
7263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7264 (eval $ac_compile) 2>&5
7265 ac_status=$?
7266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7267 test $ac_status = 0; }; then
7268 case `/usr/bin/file conftest.o` in
7269 *32-bit*)
7270 case $host in
7271 x86_64-*kfreebsd*-gnu)
7272 LD="${LD-ld} -m elf_i386_fbsd"
7273 ;;
7274 x86_64-*linux*)
7275 case `/usr/bin/file conftest.o` in
7276 *x86-64*)
7277 LD="${LD-ld} -m elf32_x86_64"
7278 ;;
7279 *)
7280 LD="${LD-ld} -m elf_i386"
7281 ;;
7282 esac
7283 ;;
7284 powerpc64le-*linux*)
7285 LD="${LD-ld} -m elf32lppclinux"
7286 ;;
7287 powerpc64-*linux*)
7288 LD="${LD-ld} -m elf32ppclinux"
7289 ;;
7290 s390x-*linux*)
7291 LD="${LD-ld} -m elf_s390"
7292 ;;
7293 sparc64-*linux*)
7294 LD="${LD-ld} -m elf32_sparc"
7295 ;;
7296 esac
7297 ;;
7298 *64-bit*)
7299 case $host in
7300 x86_64-*kfreebsd*-gnu)
7301 LD="${LD-ld} -m elf_x86_64_fbsd"
7302 ;;
7303 x86_64-*linux*)
7304 LD="${LD-ld} -m elf_x86_64"
7305 ;;
7306 powerpcle-*linux*)
7307 LD="${LD-ld} -m elf64lppc"
7308 ;;
7309 powerpc-*linux*)
7310 LD="${LD-ld} -m elf64ppc"
7311 ;;
7312 s390*-*linux*|s390*-*tpf*)
7313 LD="${LD-ld} -m elf64_s390"
7314 ;;
7315 sparc*-*linux*)
7316 LD="${LD-ld} -m elf64_sparc"
7317 ;;
7318 esac
7319 ;;
7320 esac
7321 fi
7322 rm -rf conftest*
7323 ;;
7324
7325*-*-sco3.2v5*)
7326 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7327 SAVE_CFLAGS=$CFLAGS
7328 CFLAGS="$CFLAGS -belf"
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7330$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7331if ${lt_cv_cc_needs_belf+:} false; then :
7332 $as_echo_n "(cached) " >&6
7333else
7334 ac_ext=c
7335ac_cpp='$CPP $CPPFLAGS'
7336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7338ac_compiler_gnu=$ac_cv_c_compiler_gnu
7339
7340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7341/* end confdefs.h. */
7342
7343int
7344main ()
7345{
7346
7347 ;
7348 return 0;
7349}
7350_ACEOF
7351if ac_fn_c_try_link "$LINENO"; then :
7352 lt_cv_cc_needs_belf=yes
7353else
7354 lt_cv_cc_needs_belf=no
7355fi
7356rm -f core conftest.err conftest.$ac_objext \
7357 conftest$ac_exeext conftest.$ac_ext
7358 ac_ext=c
7359ac_cpp='$CPP $CPPFLAGS'
7360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7362ac_compiler_gnu=$ac_cv_c_compiler_gnu
7363
7364fi
7365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7366$as_echo "$lt_cv_cc_needs_belf" >&6; }
7367 if test yes != "$lt_cv_cc_needs_belf"; then
7368 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7369 CFLAGS=$SAVE_CFLAGS
7370 fi
7371 ;;
7372*-*solaris*)
7373 # Find out what ABI is being produced by ac_compile, and set linker
7374 # options accordingly.
7375 echo 'int i;' > conftest.$ac_ext
7376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7377 (eval $ac_compile) 2>&5
7378 ac_status=$?
7379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7380 test $ac_status = 0; }; then
7381 case `/usr/bin/file conftest.o` in
7382 *64-bit*)
7383 case $lt_cv_prog_gnu_ld in
7384 yes*)
7385 case $host in
7386 i?86-*-solaris*|x86_64-*-solaris*)
7387 LD="${LD-ld} -m elf_x86_64"
7388 ;;
7389 sparc*-*-solaris*)
7390 LD="${LD-ld} -m elf64_sparc"
7391 ;;
7392 esac
7393 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7394 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7395 LD=${LD-ld}_sol2
7396 fi
7397 ;;
7398 *)
7399 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7400 LD="${LD-ld} -64"
7401 fi
7402 ;;
7403 esac
7404 ;;
7405 esac
7406 fi
7407 rm -rf conftest*
7408 ;;
7409esac
7410
7411need_locks=$enable_libtool_lock
7412
7413if test -n "$ac_tool_prefix"; then
7414 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7415set dummy ${ac_tool_prefix}mt; ac_word=$2
7416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7417$as_echo_n "checking for $ac_word... " >&6; }
7418if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7419 $as_echo_n "(cached) " >&6
7420else
7421 if test -n "$MANIFEST_TOOL"; then
7422 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7423else
7424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425for as_dir in $PATH
7426do
7427 IFS=$as_save_IFS
7428 test -z "$as_dir" && as_dir=.
7429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7431 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7433 break 2
7434 fi
7435done
7436 done
7437IFS=$as_save_IFS
7438
7439fi
7440fi
7441MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7442if test -n "$MANIFEST_TOOL"; then
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7444$as_echo "$MANIFEST_TOOL" >&6; }
7445else
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447$as_echo "no" >&6; }
7448fi
7449
7450
7451fi
7452if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7453 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7454 # Extract the first word of "mt", so it can be a program name with args.
7455set dummy mt; ac_word=$2
7456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7457$as_echo_n "checking for $ac_word... " >&6; }
7458if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7459 $as_echo_n "(cached) " >&6
7460else
7461 if test -n "$ac_ct_MANIFEST_TOOL"; then
7462 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7463else
7464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7465for as_dir in $PATH
7466do
7467 IFS=$as_save_IFS
7468 test -z "$as_dir" && as_dir=.
7469 for ac_exec_ext in '' $ac_executable_extensions; do
7470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7471 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7473 break 2
7474 fi
7475done
7476 done
7477IFS=$as_save_IFS
7478
7479fi
7480fi
7481ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7482if test -n "$ac_ct_MANIFEST_TOOL"; then
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7484$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7485else
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487$as_echo "no" >&6; }
7488fi
7489
7490 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7491 MANIFEST_TOOL=":"
7492 else
7493 case $cross_compiling:$ac_tool_warned in
7494yes:)
7495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7497ac_tool_warned=yes ;;
7498esac
7499 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7500 fi
7501else
7502 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7503fi
7504
7505test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7507$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7508if ${lt_cv_path_mainfest_tool+:} false; then :
7509 $as_echo_n "(cached) " >&6
7510else
7511 lt_cv_path_mainfest_tool=no
7512 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7513 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7514 cat conftest.err >&5
7515 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7516 lt_cv_path_mainfest_tool=yes
7517 fi
7518 rm -f conftest*
7519fi
7520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7521$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7522if test yes != "$lt_cv_path_mainfest_tool"; then
7523 MANIFEST_TOOL=:
7524fi
7525
7526
7527
7528
7529
7530
7531 case $host_os in
7532 rhapsody* | darwin*)
7533 if test -n "$ac_tool_prefix"; then
7534 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7535set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7537$as_echo_n "checking for $ac_word... " >&6; }
7538if ${ac_cv_prog_DSYMUTIL+:} false; then :
7539 $as_echo_n "(cached) " >&6
7540else
7541 if test -n "$DSYMUTIL"; then
7542 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7543else
7544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545for as_dir in $PATH
7546do
7547 IFS=$as_save_IFS
7548 test -z "$as_dir" && as_dir=.
7549 for ac_exec_ext in '' $ac_executable_extensions; do
7550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7551 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7553 break 2
7554 fi
7555done
7556 done
7557IFS=$as_save_IFS
7558
7559fi
7560fi
7561DSYMUTIL=$ac_cv_prog_DSYMUTIL
7562if test -n "$DSYMUTIL"; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7564$as_echo "$DSYMUTIL" >&6; }
7565else
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567$as_echo "no" >&6; }
7568fi
7569
7570
7571fi
7572if test -z "$ac_cv_prog_DSYMUTIL"; then
7573 ac_ct_DSYMUTIL=$DSYMUTIL
7574 # Extract the first word of "dsymutil", so it can be a program name with args.
7575set dummy dsymutil; ac_word=$2
7576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577$as_echo_n "checking for $ac_word... " >&6; }
7578if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7579 $as_echo_n "(cached) " >&6
7580else
7581 if test -n "$ac_ct_DSYMUTIL"; then
7582 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7583else
7584as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585for as_dir in $PATH
7586do
7587 IFS=$as_save_IFS
7588 test -z "$as_dir" && as_dir=.
7589 for ac_exec_ext in '' $ac_executable_extensions; do
7590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7591 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593 break 2
7594 fi
7595done
7596 done
7597IFS=$as_save_IFS
7598
7599fi
7600fi
7601ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7602if test -n "$ac_ct_DSYMUTIL"; then
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7604$as_echo "$ac_ct_DSYMUTIL" >&6; }
7605else
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607$as_echo "no" >&6; }
7608fi
7609
7610 if test "x$ac_ct_DSYMUTIL" = x; then
7611 DSYMUTIL=":"
7612 else
7613 case $cross_compiling:$ac_tool_warned in
7614yes:)
7615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7617ac_tool_warned=yes ;;
7618esac
7619 DSYMUTIL=$ac_ct_DSYMUTIL
7620 fi
7621else
7622 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7623fi
7624
7625 if test -n "$ac_tool_prefix"; then
7626 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7627set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7629$as_echo_n "checking for $ac_word... " >&6; }
7630if ${ac_cv_prog_NMEDIT+:} false; then :
7631 $as_echo_n "(cached) " >&6
7632else
7633 if test -n "$NMEDIT"; then
7634 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7635else
7636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637for as_dir in $PATH
7638do
7639 IFS=$as_save_IFS
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7643 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 break 2
7646 fi
7647done
7648 done
7649IFS=$as_save_IFS
7650
7651fi
7652fi
7653NMEDIT=$ac_cv_prog_NMEDIT
7654if test -n "$NMEDIT"; then
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7656$as_echo "$NMEDIT" >&6; }
7657else
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7659$as_echo "no" >&6; }
7660fi
7661
7662
7663fi
7664if test -z "$ac_cv_prog_NMEDIT"; then
7665 ac_ct_NMEDIT=$NMEDIT
7666 # Extract the first word of "nmedit", so it can be a program name with args.
7667set dummy nmedit; ac_word=$2
7668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7669$as_echo_n "checking for $ac_word... " >&6; }
7670if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7671 $as_echo_n "(cached) " >&6
7672else
7673 if test -n "$ac_ct_NMEDIT"; then
7674 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7675else
7676as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677for as_dir in $PATH
7678do
7679 IFS=$as_save_IFS
7680 test -z "$as_dir" && as_dir=.
7681 for ac_exec_ext in '' $ac_executable_extensions; do
7682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7683 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 break 2
7686 fi
7687done
7688 done
7689IFS=$as_save_IFS
7690
7691fi
7692fi
7693ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7694if test -n "$ac_ct_NMEDIT"; then
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7696$as_echo "$ac_ct_NMEDIT" >&6; }
7697else
7698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7699$as_echo "no" >&6; }
7700fi
7701
7702 if test "x$ac_ct_NMEDIT" = x; then
7703 NMEDIT=":"
7704 else
7705 case $cross_compiling:$ac_tool_warned in
7706yes:)
7707{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7709ac_tool_warned=yes ;;
7710esac
7711 NMEDIT=$ac_ct_NMEDIT
7712 fi
7713else
7714 NMEDIT="$ac_cv_prog_NMEDIT"
7715fi
7716
7717 if test -n "$ac_tool_prefix"; then
7718 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7719set dummy ${ac_tool_prefix}lipo; ac_word=$2
7720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7721$as_echo_n "checking for $ac_word... " >&6; }
7722if ${ac_cv_prog_LIPO+:} false; then :
7723 $as_echo_n "(cached) " >&6
7724else
7725 if test -n "$LIPO"; then
7726 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7727else
7728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729for as_dir in $PATH
7730do
7731 IFS=$as_save_IFS
7732 test -z "$as_dir" && as_dir=.
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7735 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7737 break 2
7738 fi
7739done
7740 done
7741IFS=$as_save_IFS
7742
7743fi
7744fi
7745LIPO=$ac_cv_prog_LIPO
7746if test -n "$LIPO"; then
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7748$as_echo "$LIPO" >&6; }
7749else
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7751$as_echo "no" >&6; }
7752fi
7753
7754
7755fi
7756if test -z "$ac_cv_prog_LIPO"; then
7757 ac_ct_LIPO=$LIPO
7758 # Extract the first word of "lipo", so it can be a program name with args.
7759set dummy lipo; ac_word=$2
7760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7761$as_echo_n "checking for $ac_word... " >&6; }
7762if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7763 $as_echo_n "(cached) " >&6
7764else
7765 if test -n "$ac_ct_LIPO"; then
7766 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7767else
7768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7769for as_dir in $PATH
7770do
7771 IFS=$as_save_IFS
7772 test -z "$as_dir" && as_dir=.
7773 for ac_exec_ext in '' $ac_executable_extensions; do
7774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7775 ac_cv_prog_ac_ct_LIPO="lipo"
7776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7777 break 2
7778 fi
7779done
7780 done
7781IFS=$as_save_IFS
7782
7783fi
7784fi
7785ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7786if test -n "$ac_ct_LIPO"; then
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7788$as_echo "$ac_ct_LIPO" >&6; }
7789else
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7791$as_echo "no" >&6; }
7792fi
7793
7794 if test "x$ac_ct_LIPO" = x; then
7795 LIPO=":"
7796 else
7797 case $cross_compiling:$ac_tool_warned in
7798yes:)
7799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7801ac_tool_warned=yes ;;
7802esac
7803 LIPO=$ac_ct_LIPO
7804 fi
7805else
7806 LIPO="$ac_cv_prog_LIPO"
7807fi
7808
7809 if test -n "$ac_tool_prefix"; then
7810 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7811set dummy ${ac_tool_prefix}otool; ac_word=$2
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813$as_echo_n "checking for $ac_word... " >&6; }
7814if ${ac_cv_prog_OTOOL+:} false; then :
7815 $as_echo_n "(cached) " >&6
7816else
7817 if test -n "$OTOOL"; then
7818 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7819else
7820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821for as_dir in $PATH
7822do
7823 IFS=$as_save_IFS
7824 test -z "$as_dir" && as_dir=.
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7827 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7829 break 2
7830 fi
7831done
7832 done
7833IFS=$as_save_IFS
7834
7835fi
7836fi
7837OTOOL=$ac_cv_prog_OTOOL
7838if test -n "$OTOOL"; then
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7840$as_echo "$OTOOL" >&6; }
7841else
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843$as_echo "no" >&6; }
7844fi
7845
7846
7847fi
7848if test -z "$ac_cv_prog_OTOOL"; then
7849 ac_ct_OTOOL=$OTOOL
7850 # Extract the first word of "otool", so it can be a program name with args.
7851set dummy otool; ac_word=$2
7852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7853$as_echo_n "checking for $ac_word... " >&6; }
7854if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7855 $as_echo_n "(cached) " >&6
7856else
7857 if test -n "$ac_ct_OTOOL"; then
7858 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7859else
7860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861for as_dir in $PATH
7862do
7863 IFS=$as_save_IFS
7864 test -z "$as_dir" && as_dir=.
7865 for ac_exec_ext in '' $ac_executable_extensions; do
7866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7867 ac_cv_prog_ac_ct_OTOOL="otool"
7868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7869 break 2
7870 fi
7871done
7872 done
7873IFS=$as_save_IFS
7874
7875fi
7876fi
7877ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7878if test -n "$ac_ct_OTOOL"; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7880$as_echo "$ac_ct_OTOOL" >&6; }
7881else
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7883$as_echo "no" >&6; }
7884fi
7885
7886 if test "x$ac_ct_OTOOL" = x; then
7887 OTOOL=":"
7888 else
7889 case $cross_compiling:$ac_tool_warned in
7890yes:)
7891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7893ac_tool_warned=yes ;;
7894esac
7895 OTOOL=$ac_ct_OTOOL
7896 fi
7897else
7898 OTOOL="$ac_cv_prog_OTOOL"
7899fi
7900
7901 if test -n "$ac_tool_prefix"; then
7902 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7903set dummy ${ac_tool_prefix}otool64; ac_word=$2
7904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7905$as_echo_n "checking for $ac_word... " >&6; }
7906if ${ac_cv_prog_OTOOL64+:} false; then :
7907 $as_echo_n "(cached) " >&6
7908else
7909 if test -n "$OTOOL64"; then
7910 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7911else
7912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913for as_dir in $PATH
7914do
7915 IFS=$as_save_IFS
7916 test -z "$as_dir" && as_dir=.
7917 for ac_exec_ext in '' $ac_executable_extensions; do
7918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7919 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7921 break 2
7922 fi
7923done
7924 done
7925IFS=$as_save_IFS
7926
7927fi
7928fi
7929OTOOL64=$ac_cv_prog_OTOOL64
7930if test -n "$OTOOL64"; then
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7932$as_echo "$OTOOL64" >&6; }
7933else
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7935$as_echo "no" >&6; }
7936fi
7937
7938
7939fi
7940if test -z "$ac_cv_prog_OTOOL64"; then
7941 ac_ct_OTOOL64=$OTOOL64
7942 # Extract the first word of "otool64", so it can be a program name with args.
7943set dummy otool64; ac_word=$2
7944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7945$as_echo_n "checking for $ac_word... " >&6; }
7946if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7947 $as_echo_n "(cached) " >&6
7948else
7949 if test -n "$ac_ct_OTOOL64"; then
7950 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7951else
7952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7953for as_dir in $PATH
7954do
7955 IFS=$as_save_IFS
7956 test -z "$as_dir" && as_dir=.
7957 for ac_exec_ext in '' $ac_executable_extensions; do
7958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7959 ac_cv_prog_ac_ct_OTOOL64="otool64"
7960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7961 break 2
7962 fi
7963done
7964 done
7965IFS=$as_save_IFS
7966
7967fi
7968fi
7969ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7970if test -n "$ac_ct_OTOOL64"; then
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7972$as_echo "$ac_ct_OTOOL64" >&6; }
7973else
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975$as_echo "no" >&6; }
7976fi
7977
7978 if test "x$ac_ct_OTOOL64" = x; then
7979 OTOOL64=":"
7980 else
7981 case $cross_compiling:$ac_tool_warned in
7982yes:)
7983{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7985ac_tool_warned=yes ;;
7986esac
7987 OTOOL64=$ac_ct_OTOOL64
7988 fi
7989else
7990 OTOOL64="$ac_cv_prog_OTOOL64"
7991fi
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8020$as_echo_n "checking for -single_module linker flag... " >&6; }
8021if ${lt_cv_apple_cc_single_mod+:} false; then :
8022 $as_echo_n "(cached) " >&6
8023else
8024 lt_cv_apple_cc_single_mod=no
8025 if test -z "$LT_MULTI_MODULE"; then
8026 # By default we will add the -single_module flag. You can override
8027 # by either setting the environment variable LT_MULTI_MODULE
8028 # non-empty at configure time, or by adding -multi_module to the
8029 # link flags.
8030 rm -rf libconftest.dylib*
8031 echo "int foo(void){return 1;}" > conftest.c
8032 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8033-dynamiclib -Wl,-single_module conftest.c" >&5
8034 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8035 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8036 _lt_result=$?
8037 # If there is a non-empty error log, and "single_module"
8038 # appears in it, assume the flag caused a linker warning
8039 if test -s conftest.err && $GREP single_module conftest.err; then
8040 cat conftest.err >&5
8041 # Otherwise, if the output was created with a 0 exit code from
8042 # the compiler, it worked.
8043 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8044 lt_cv_apple_cc_single_mod=yes
8045 else
8046 cat conftest.err >&5
8047 fi
8048 rm -rf libconftest.dylib*
8049 rm -f conftest.*
8050 fi
8051fi
8052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8053$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8054
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8056$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8057if ${lt_cv_ld_exported_symbols_list+:} false; then :
8058 $as_echo_n "(cached) " >&6
8059else
8060 lt_cv_ld_exported_symbols_list=no
8061 save_LDFLAGS=$LDFLAGS
8062 echo "_main" > conftest.sym
8063 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8065/* end confdefs.h. */
8066
8067int
8068main ()
8069{
8070
8071 ;
8072 return 0;
8073}
8074_ACEOF
8075if ac_fn_c_try_link "$LINENO"; then :
8076 lt_cv_ld_exported_symbols_list=yes
8077else
8078 lt_cv_ld_exported_symbols_list=no
8079fi
8080rm -f core conftest.err conftest.$ac_objext \
8081 conftest$ac_exeext conftest.$ac_ext
8082 LDFLAGS=$save_LDFLAGS
8083
8084fi
8085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8086$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8087
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8089$as_echo_n "checking for -force_load linker flag... " >&6; }
8090if ${lt_cv_ld_force_load+:} false; then :
8091 $as_echo_n "(cached) " >&6
8092else
8093 lt_cv_ld_force_load=no
8094 cat > conftest.c << _LT_EOF
8095int forced_loaded() { return 2;}
8096_LT_EOF
8097 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8098 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8099 echo "$AR cru libconftest.a conftest.o" >&5
8100 $AR cru libconftest.a conftest.o 2>&5
8101 echo "$RANLIB libconftest.a" >&5
8102 $RANLIB libconftest.a 2>&5
8103 cat > conftest.c << _LT_EOF
8104int main() { return 0;}
8105_LT_EOF
8106 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8107 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8108 _lt_result=$?
8109 if test -s conftest.err && $GREP force_load conftest.err; then
8110 cat conftest.err >&5
8111 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8112 lt_cv_ld_force_load=yes
8113 else
8114 cat conftest.err >&5
8115 fi
8116 rm -f conftest.err libconftest.a conftest conftest.c
8117 rm -rf conftest.dSYM
8118
8119fi
8120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8121$as_echo "$lt_cv_ld_force_load" >&6; }
8122 case $host_os in
8123 rhapsody* | darwin1.[012])
8124 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8125 darwin1.*)
8126 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8127 darwin*) # darwin 5.x on
8128 # if running on 10.5 or later, the deployment target defaults
8129 # to the OS version, if on x86, and 10.4, the deployment
8130 # target defaults to 10.4. Don't you love it?
8131 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8132 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8133 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8134 10.[012][,.]*)
8135 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8136 10.*)
8137 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8138 esac
8139 ;;
8140 esac
8141 if test yes = "$lt_cv_apple_cc_single_mod"; then
8142 _lt_dar_single_mod='$single_module'
8143 fi
8144 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8145 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8146 else
8147 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8148 fi
8149 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8150 _lt_dsymutil='~$DSYMUTIL $lib || :'
8151 else
8152 _lt_dsymutil=
8153 fi
8154 ;;
8155 esac
8156
8157# func_munge_path_list VARIABLE PATH
8158# -----------------------------------
8159# VARIABLE is name of variable containing _space_ separated list of
8160# directories to be munged by the contents of PATH, which is string
8161# having a format:
8162# "DIR[:DIR]:"
8163# string "DIR[ DIR]" will be prepended to VARIABLE
8164# ":DIR[:DIR]"
8165# string "DIR[ DIR]" will be appended to VARIABLE
8166# "DIRP[:DIRP]::[DIRA:]DIRA"
8167# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8168# "DIRA[ DIRA]" will be appended to VARIABLE
8169# "DIR[:DIR]"
8170# VARIABLE will be replaced by "DIR[ DIR]"
8171func_munge_path_list ()
8172{
8173 case x$2 in
8174 x)
8175 ;;
8176 *:)
8177 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8178 ;;
8179 x:*)
8180 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8181 ;;
8182 *::*)
8183 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8184 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8185 ;;
8186 *)
8187 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8188 ;;
8189 esac
8190}
8191
8192ac_ext=c
8193ac_cpp='$CPP $CPPFLAGS'
8194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8196ac_compiler_gnu=$ac_cv_c_compiler_gnu
8197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8198$as_echo_n "checking how to run the C preprocessor... " >&6; }
8199# On Suns, sometimes $CPP names a directory.
8200if test -n "$CPP" && test -d "$CPP"; then
8201 CPP=
8202fi
8203if test -z "$CPP"; then
8204 if ${ac_cv_prog_CPP+:} false; then :
8205 $as_echo_n "(cached) " >&6
8206else
8207 # Double quotes because CPP needs to be expanded
8208 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8209 do
8210 ac_preproc_ok=false
8211for ac_c_preproc_warn_flag in '' yes
8212do
8213 # Use a header file that comes with gcc, so configuring glibc
8214 # with a fresh cross-compiler works.
8215 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8216 # <limits.h> exists even on freestanding compilers.
8217 # On the NeXT, cc -E runs the code through the compiler's parser,
8218 # not just through cpp. "Syntax error" is here to catch this case.
8219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8220/* end confdefs.h. */
8221#ifdef __STDC__
8222# include <limits.h>
8223#else
8224# include <assert.h>
8225#endif
8226 Syntax error
8227_ACEOF
8228if ac_fn_c_try_cpp "$LINENO"; then :
8229
8230else
8231 # Broken: fails on valid input.
8232continue
8233fi
8234rm -f conftest.err conftest.i conftest.$ac_ext
8235
8236 # OK, works on sane cases. Now check whether nonexistent headers
8237 # can be detected and how.
8238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8239/* end confdefs.h. */
8240#include <ac_nonexistent.h>
8241_ACEOF
8242if ac_fn_c_try_cpp "$LINENO"; then :
8243 # Broken: success on invalid input.
8244continue
8245else
8246 # Passes both tests.
8247ac_preproc_ok=:
8248break
8249fi
8250rm -f conftest.err conftest.i conftest.$ac_ext
8251
8252done
8253# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8254rm -f conftest.i conftest.err conftest.$ac_ext
8255if $ac_preproc_ok; then :
8256 break
8257fi
8258
8259 done
8260 ac_cv_prog_CPP=$CPP
8261
8262fi
8263 CPP=$ac_cv_prog_CPP
8264else
8265 ac_cv_prog_CPP=$CPP
8266fi
8267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8268$as_echo "$CPP" >&6; }
8269ac_preproc_ok=false
8270for ac_c_preproc_warn_flag in '' yes
8271do
8272 # Use a header file that comes with gcc, so configuring glibc
8273 # with a fresh cross-compiler works.
8274 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8275 # <limits.h> exists even on freestanding compilers.
8276 # On the NeXT, cc -E runs the code through the compiler's parser,
8277 # not just through cpp. "Syntax error" is here to catch this case.
8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8279/* end confdefs.h. */
8280#ifdef __STDC__
8281# include <limits.h>
8282#else
8283# include <assert.h>
8284#endif
8285 Syntax error
8286_ACEOF
8287if ac_fn_c_try_cpp "$LINENO"; then :
8288
8289else
8290 # Broken: fails on valid input.
8291continue
8292fi
8293rm -f conftest.err conftest.i conftest.$ac_ext
8294
8295 # OK, works on sane cases. Now check whether nonexistent headers
8296 # can be detected and how.
8297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298/* end confdefs.h. */
8299#include <ac_nonexistent.h>
8300_ACEOF
8301if ac_fn_c_try_cpp "$LINENO"; then :
8302 # Broken: success on invalid input.
8303continue
8304else
8305 # Passes both tests.
8306ac_preproc_ok=:
8307break
8308fi
8309rm -f conftest.err conftest.i conftest.$ac_ext
8310
8311done
8312# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8313rm -f conftest.i conftest.err conftest.$ac_ext
8314if $ac_preproc_ok; then :
8315
8316else
8317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8318$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8319as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8320See \`config.log' for more details" "$LINENO" 5; }
8321fi
8322
8323ac_ext=c
8324ac_cpp='$CPP $CPPFLAGS'
8325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8327ac_compiler_gnu=$ac_cv_c_compiler_gnu
8328
8329
8330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8331$as_echo_n "checking for ANSI C header files... " >&6; }
8332if ${ac_cv_header_stdc+:} false; then :
8333 $as_echo_n "(cached) " >&6
8334else
8335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8336/* end confdefs.h. */
8337#include <stdlib.h>
8338#include <stdarg.h>
8339#include <string.h>
8340#include <float.h>
8341
8342int
8343main ()
8344{
8345
8346 ;
8347 return 0;
8348}
8349_ACEOF
8350if ac_fn_c_try_compile "$LINENO"; then :
8351 ac_cv_header_stdc=yes
8352else
8353 ac_cv_header_stdc=no
8354fi
8355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8356
8357if test $ac_cv_header_stdc = yes; then
8358 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8360/* end confdefs.h. */
8361#include <string.h>
8362
8363_ACEOF
8364if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8365 $EGREP "memchr" >/dev/null 2>&1; then :
8366
8367else
8368 ac_cv_header_stdc=no
8369fi
8370rm -f conftest*
8371
8372fi
8373
8374if test $ac_cv_header_stdc = yes; then
8375 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8377/* end confdefs.h. */
8378#include <stdlib.h>
8379
8380_ACEOF
8381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8382 $EGREP "free" >/dev/null 2>&1; then :
8383
8384else
8385 ac_cv_header_stdc=no
8386fi
8387rm -f conftest*
8388
8389fi
8390
8391if test $ac_cv_header_stdc = yes; then
8392 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8393 if test "$cross_compiling" = yes; then :
8394 :
8395else
8396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8397/* end confdefs.h. */
8398#include <ctype.h>
8399#include <stdlib.h>
8400#if ((' ' & 0x0FF) == 0x020)
8401# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8402# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8403#else
8404# define ISLOWER(c) \
8405 (('a' <= (c) && (c) <= 'i') \
8406 || ('j' <= (c) && (c) <= 'r') \
8407 || ('s' <= (c) && (c) <= 'z'))
8408# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8409#endif
8410
8411#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8412int
8413main ()
8414{
8415 int i;
8416 for (i = 0; i < 256; i++)
8417 if (XOR (islower (i), ISLOWER (i))
8418 || toupper (i) != TOUPPER (i))
8419 return 2;
8420 return 0;
8421}
8422_ACEOF
8423if ac_fn_c_try_run "$LINENO"; then :
8424
8425else
8426 ac_cv_header_stdc=no
8427fi
8428rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8429 conftest.$ac_objext conftest.beam conftest.$ac_ext
8430fi
8431
8432fi
8433fi
8434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8435$as_echo "$ac_cv_header_stdc" >&6; }
8436if test $ac_cv_header_stdc = yes; then
8437
8438$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8439
8440fi
8441
8442# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8443for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8444 inttypes.h stdint.h unistd.h
8445do :
8446 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8447ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8448"
8449if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8450 cat >>confdefs.h <<_ACEOF
8451#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8452_ACEOF
8453
8454fi
8455
8456done
8457
8458
8459for ac_header in dlfcn.h
8460do :
8461 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8462"
8463if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8464 cat >>confdefs.h <<_ACEOF
8465#define HAVE_DLFCN_H 1
8466_ACEOF
8467
8468fi
8469
8470done
8471
8472
8473
8474
8475
8476# Set options
8477
8478
8479
8480 enable_dlopen=no
8481
8482
8483 enable_win32_dll=no
8484
8485
8486
8487 # Check whether --enable-static was given.
8488if test "${enable_static+set}" = set; then :
8489 enableval=$enable_static; p=${PACKAGE-default}
8490 case $enableval in
8491 yes) enable_static=yes ;;
8492 no) enable_static=no ;;
8493 *)
8494 enable_static=no
8495 # Look at the argument we got. We use all the common list separators.
8496 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8497 for pkg in $enableval; do
8498 IFS=$lt_save_ifs
8499 if test "X$pkg" = "X$p"; then
8500 enable_static=yes
8501 fi
8502 done
8503 IFS=$lt_save_ifs
8504 ;;
8505 esac
8506else
8507 enable_static=yes
8508fi
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519# Check whether --with-pic was given.
8520if test "${with_pic+set}" = set; then :
8521 withval=$with_pic; lt_p=${PACKAGE-default}
8522 case $withval in
8523 yes|no) pic_mode=$withval ;;
8524 *)
8525 pic_mode=default
8526 # Look at the argument we got. We use all the common list separators.
8527 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8528 for lt_pkg in $withval; do
8529 IFS=$lt_save_ifs
8530 if test "X$lt_pkg" = "X$lt_p"; then
8531 pic_mode=yes
8532 fi
8533 done
8534 IFS=$lt_save_ifs
8535 ;;
8536 esac
8537else
8538 pic_mode=default
8539fi
8540
8541
8542
8543
8544
8545
8546
8547
8548 # Check whether --enable-fast-install was given.
8549if test "${enable_fast_install+set}" = set; then :
8550 enableval=$enable_fast_install; p=${PACKAGE-default}
8551 case $enableval in
8552 yes) enable_fast_install=yes ;;
8553 no) enable_fast_install=no ;;
8554 *)
8555 enable_fast_install=no
8556 # Look at the argument we got. We use all the common list separators.
8557 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8558 for pkg in $enableval; do
8559 IFS=$lt_save_ifs
8560 if test "X$pkg" = "X$p"; then
8561 enable_fast_install=yes
8562 fi
8563 done
8564 IFS=$lt_save_ifs
8565 ;;
8566 esac
8567else
8568 enable_fast_install=yes
8569fi
8570
8571
8572
8573
8574
8575
8576
8577
8578 shared_archive_member_spec=
8579case $host,$enable_shared in
8580power*-*-aix[5-9]*,yes)
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8582$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8583
8584# Check whether --with-aix-soname was given.
8585if test "${with_aix_soname+set}" = set; then :
8586 withval=$with_aix_soname; case $withval in
8587 aix|svr4|both)
8588 ;;
8589 *)
8590 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8591 ;;
8592 esac
8593 lt_cv_with_aix_soname=$with_aix_soname
8594else
8595 if ${lt_cv_with_aix_soname+:} false; then :
8596 $as_echo_n "(cached) " >&6
8597else
8598 lt_cv_with_aix_soname=aix
8599fi
8600
8601 with_aix_soname=$lt_cv_with_aix_soname
8602fi
8603
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8605$as_echo "$with_aix_soname" >&6; }
8606 if test aix != "$with_aix_soname"; then
8607 # For the AIX way of multilib, we name the shared archive member
8608 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8609 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8610 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8611 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8612 if test 64 = "${OBJECT_MODE-32}"; then
8613 shared_archive_member_spec=shr_64
8614 else
8615 shared_archive_member_spec=shr
8616 fi
8617 fi
8618 ;;
8619*)
8620 with_aix_soname=aix
8621 ;;
8622esac
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633# This can be used to rebuild libtool when needed
8634LIBTOOL_DEPS=$ltmain
8635
8636# Always use our own libtool.
8637LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668test -z "$LN_S" && LN_S="ln -s"
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683if test -n "${ZSH_VERSION+set}"; then
8684 setopt NO_GLOB_SUBST
8685fi
8686
8687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8688$as_echo_n "checking for objdir... " >&6; }
8689if ${lt_cv_objdir+:} false; then :
8690 $as_echo_n "(cached) " >&6
8691else
8692 rm -f .libs 2>/dev/null
8693mkdir .libs 2>/dev/null
8694if test -d .libs; then
8695 lt_cv_objdir=.libs
8696else
8697 # MS-DOS does not allow filenames that begin with a dot.
8698 lt_cv_objdir=_libs
8699fi
8700rmdir .libs 2>/dev/null
8701fi
8702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8703$as_echo "$lt_cv_objdir" >&6; }
8704objdir=$lt_cv_objdir
8705
8706
8707
8708
8709
8710cat >>confdefs.h <<_ACEOF
8711#define LT_OBJDIR "$lt_cv_objdir/"
8712_ACEOF
8713
8714
8715
8716
8717case $host_os in
8718aix3*)
8719 # AIX sometimes has problems with the GCC collect2 program. For some
8720 # reason, if we set the COLLECT_NAMES environment variable, the problems
8721 # vanish in a puff of smoke.
8722 if test set != "${COLLECT_NAMES+set}"; then
8723 COLLECT_NAMES=
8724 export COLLECT_NAMES
8725 fi
8726 ;;
8727esac
8728
8729# Global variables:
8730ofile=libtool
8731can_build_shared=yes
8732
8733# All known linkers require a '.a' archive for static linking (except MSVC,
8734# which needs '.lib').
8735libext=a
8736
8737with_gnu_ld=$lt_cv_prog_gnu_ld
8738
8739old_CC=$CC
8740old_CFLAGS=$CFLAGS
8741
8742# Set sane defaults for various variables
8743test -z "$CC" && CC=cc
8744test -z "$LTCC" && LTCC=$CC
8745test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8746test -z "$LD" && LD=ld
8747test -z "$ac_objext" && ac_objext=o
8748
8749func_cc_basename $compiler
8750cc_basename=$func_cc_basename_result
8751
8752
8753# Only perform the check for file, if the check method requires it
8754test -z "$MAGIC_CMD" && MAGIC_CMD=file
8755case $deplibs_check_method in
8756file_magic*)
8757 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8759$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8760if ${lt_cv_path_MAGIC_CMD+:} false; then :
8761 $as_echo_n "(cached) " >&6
8762else
8763 case $MAGIC_CMD in
8764[\\/*] | ?:[\\/]*)
8765 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8766 ;;
8767*)
8768 lt_save_MAGIC_CMD=$MAGIC_CMD
8769 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8770 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8771 for ac_dir in $ac_dummy; do
8772 IFS=$lt_save_ifs
8773 test -z "$ac_dir" && ac_dir=.
8774 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8775 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8776 if test -n "$file_magic_test_file"; then
8777 case $deplibs_check_method in
8778 "file_magic "*)
8779 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8780 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8781 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8782 $EGREP "$file_magic_regex" > /dev/null; then
8783 :
8784 else
8785 cat <<_LT_EOF 1>&2
8786
8787*** Warning: the command libtool uses to detect shared libraries,
8788*** $file_magic_cmd, produces output that libtool cannot recognize.
8789*** The result is that libtool may fail to recognize shared libraries
8790*** as such. This will affect the creation of libtool libraries that
8791*** depend on shared libraries, but programs linked with such libtool
8792*** libraries will work regardless of this problem. Nevertheless, you
8793*** may want to report the problem to your system manager and/or to
8794*** bug-libtool@gnu.org
8795
8796_LT_EOF
8797 fi ;;
8798 esac
8799 fi
8800 break
8801 fi
8802 done
8803 IFS=$lt_save_ifs
8804 MAGIC_CMD=$lt_save_MAGIC_CMD
8805 ;;
8806esac
8807fi
8808
8809MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8810if test -n "$MAGIC_CMD"; then
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8812$as_echo "$MAGIC_CMD" >&6; }
8813else
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8815$as_echo "no" >&6; }
8816fi
8817
8818
8819
8820
8821
8822if test -z "$lt_cv_path_MAGIC_CMD"; then
8823 if test -n "$ac_tool_prefix"; then
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8825$as_echo_n "checking for file... " >&6; }
8826if ${lt_cv_path_MAGIC_CMD+:} false; then :
8827 $as_echo_n "(cached) " >&6
8828else
8829 case $MAGIC_CMD in
8830[\\/*] | ?:[\\/]*)
8831 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8832 ;;
8833*)
8834 lt_save_MAGIC_CMD=$MAGIC_CMD
8835 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8836 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8837 for ac_dir in $ac_dummy; do
8838 IFS=$lt_save_ifs
8839 test -z "$ac_dir" && ac_dir=.
8840 if test -f "$ac_dir/file"; then
8841 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8842 if test -n "$file_magic_test_file"; then
8843 case $deplibs_check_method in
8844 "file_magic "*)
8845 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8846 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8847 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8848 $EGREP "$file_magic_regex" > /dev/null; then
8849 :
8850 else
8851 cat <<_LT_EOF 1>&2
8852
8853*** Warning: the command libtool uses to detect shared libraries,
8854*** $file_magic_cmd, produces output that libtool cannot recognize.
8855*** The result is that libtool may fail to recognize shared libraries
8856*** as such. This will affect the creation of libtool libraries that
8857*** depend on shared libraries, but programs linked with such libtool
8858*** libraries will work regardless of this problem. Nevertheless, you
8859*** may want to report the problem to your system manager and/or to
8860*** bug-libtool@gnu.org
8861
8862_LT_EOF
8863 fi ;;
8864 esac
8865 fi
8866 break
8867 fi
8868 done
8869 IFS=$lt_save_ifs
8870 MAGIC_CMD=$lt_save_MAGIC_CMD
8871 ;;
8872esac
8873fi
8874
8875MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8876if test -n "$MAGIC_CMD"; then
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8878$as_echo "$MAGIC_CMD" >&6; }
8879else
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8881$as_echo "no" >&6; }
8882fi
8883
8884
8885 else
8886 MAGIC_CMD=:
8887 fi
8888fi
8889
8890 fi
8891 ;;
8892esac
8893
8894# Use C for the default configuration in the libtool script
8895
8896lt_save_CC=$CC
8897ac_ext=c
8898ac_cpp='$CPP $CPPFLAGS'
8899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8901ac_compiler_gnu=$ac_cv_c_compiler_gnu
8902
8903
8904# Source file extension for C test sources.
8905ac_ext=c
8906
8907# Object file extension for compiled C test sources.
8908objext=o
8909objext=$objext
8910
8911# Code to be used in simple compile tests
8912lt_simple_compile_test_code="int some_variable = 0;"
8913
8914# Code to be used in simple link tests
8915lt_simple_link_test_code='int main(){return(0);}'
8916
8917
8918
8919
8920
8921
8922
8923# If no C compiler was specified, use CC.
8924LTCC=${LTCC-"$CC"}
8925
8926# If no C compiler flags were specified, use CFLAGS.
8927LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8928
8929# Allow CC to be a program name with arguments.
8930compiler=$CC
8931
8932# Save the default compiler, since it gets overwritten when the other
8933# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8934compiler_DEFAULT=$CC
8935
8936# save warnings/boilerplate of simple test code
8937ac_outfile=conftest.$ac_objext
8938echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8939eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8940_lt_compiler_boilerplate=`cat conftest.err`
8941$RM conftest*
8942
8943ac_outfile=conftest.$ac_objext
8944echo "$lt_simple_link_test_code" >conftest.$ac_ext
8945eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8946_lt_linker_boilerplate=`cat conftest.err`
8947$RM -r conftest*
8948
8949
8950if test -n "$compiler"; then
8951
8952lt_prog_compiler_no_builtin_flag=
8953
8954if test yes = "$GCC"; then
8955 case $cc_basename in
8956 nvcc*)
8957 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8958 *)
8959 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8960 esac
8961
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8963$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8964if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8965 $as_echo_n "(cached) " >&6
8966else
8967 lt_cv_prog_compiler_rtti_exceptions=no
8968 ac_outfile=conftest.$ac_objext
8969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8970 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8971 # Insert the option either (1) after the last *FLAGS variable, or
8972 # (2) before a word containing "conftest.", or (3) at the end.
8973 # Note that $ac_compile itself does not contain backslashes and begins
8974 # with a dollar sign (not a hyphen), so the echo should work correctly.
8975 # The option is referenced via a variable to avoid confusing sed.
8976 lt_compile=`echo "$ac_compile" | $SED \
8977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8979 -e 's:$: $lt_compiler_flag:'`
8980 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8981 (eval "$lt_compile" 2>conftest.err)
8982 ac_status=$?
8983 cat conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 if (exit $ac_status) && test -s "$ac_outfile"; then
8986 # The compiler can only warn and ignore the option if not recognized
8987 # So say no if there are warnings other than the usual output.
8988 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8989 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8990 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8991 lt_cv_prog_compiler_rtti_exceptions=yes
8992 fi
8993 fi
8994 $RM conftest*
8995
8996fi
8997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8998$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8999
9000if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9001 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9002else
9003 :
9004fi
9005
9006fi
9007
9008
9009
9010
9011
9012
9013 lt_prog_compiler_wl=
9014lt_prog_compiler_pic=
9015lt_prog_compiler_static=
9016
9017
9018 if test yes = "$GCC"; then
9019 lt_prog_compiler_wl='-Wl,'
9020 lt_prog_compiler_static='-static'
9021
9022 case $host_os in
9023 aix*)
9024 # All AIX code is PIC.
9025 if test ia64 = "$host_cpu"; then
9026 # AIX 5 now supports IA64 processor
9027 lt_prog_compiler_static='-Bstatic'
9028 fi
9029 lt_prog_compiler_pic='-fPIC'
9030 ;;
9031
9032 amigaos*)
9033 case $host_cpu in
9034 powerpc)
9035 # see comment about AmigaOS4 .so support
9036 lt_prog_compiler_pic='-fPIC'
9037 ;;
9038 m68k)
9039 # FIXME: we need at least 68020 code to build shared libraries, but
9040 # adding the '-m68020' flag to GCC prevents building anything better,
9041 # like '-m68040'.
9042 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9043 ;;
9044 esac
9045 ;;
9046
9047 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9048 # PIC is the default for these OSes.
9049 ;;
9050
9051 mingw* | cygwin* | pw32* | os2* | cegcc*)
9052 # This hack is so that the source file can tell whether it is being
9053 # built for inclusion in a dll (and should export symbols for example).
9054 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9055 # (--disable-auto-import) libraries
9056 lt_prog_compiler_pic='-DDLL_EXPORT'
9057 case $host_os in
9058 os2*)
9059 lt_prog_compiler_static='$wl-static'
9060 ;;
9061 esac
9062 ;;
9063
9064 darwin* | rhapsody*)
9065 # PIC is the default on this platform
9066 # Common symbols not allowed in MH_DYLIB files
9067 lt_prog_compiler_pic='-fno-common'
9068 ;;
9069
9070 haiku*)
9071 # PIC is the default for Haiku.
9072 # The "-static" flag exists, but is broken.
9073 lt_prog_compiler_static=
9074 ;;
9075
9076 hpux*)
9077 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9078 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9079 # sets the default TLS model and affects inlining.
9080 case $host_cpu in
9081 hppa*64*)
9082 # +Z the default
9083 ;;
9084 *)
9085 lt_prog_compiler_pic='-fPIC'
9086 ;;
9087 esac
9088 ;;
9089
9090 interix[3-9]*)
9091 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9092 # Instead, we relocate shared libraries at runtime.
9093 ;;
9094
9095 msdosdjgpp*)
9096 # Just because we use GCC doesn't mean we suddenly get shared libraries
9097 # on systems that don't support them.
9098 lt_prog_compiler_can_build_shared=no
9099 enable_shared=no
9100 ;;
9101
9102 *nto* | *qnx*)
9103 # QNX uses GNU C++, but need to define -shared option too, otherwise
9104 # it will coredump.
9105 lt_prog_compiler_pic='-fPIC -shared'
9106 ;;
9107
9108 sysv4*MP*)
9109 if test -d /usr/nec; then
9110 lt_prog_compiler_pic=-Kconform_pic
9111 fi
9112 ;;
9113
9114 *)
9115 lt_prog_compiler_pic='-fPIC'
9116 ;;
9117 esac
9118
9119 case $cc_basename in
9120 nvcc*) # Cuda Compiler Driver 2.2
9121 lt_prog_compiler_wl='-Xlinker '
9122 if test -n "$lt_prog_compiler_pic"; then
9123 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9124 fi
9125 ;;
9126 esac
9127 else
9128 # PORTME Check for flag to pass linker flags through the system compiler.
9129 case $host_os in
9130 aix*)
9131 lt_prog_compiler_wl='-Wl,'
9132 if test ia64 = "$host_cpu"; then
9133 # AIX 5 now supports IA64 processor
9134 lt_prog_compiler_static='-Bstatic'
9135 else
9136 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9137 fi
9138 ;;
9139
9140 darwin* | rhapsody*)
9141 # PIC is the default on this platform
9142 # Common symbols not allowed in MH_DYLIB files
9143 lt_prog_compiler_pic='-fno-common'
9144 case $cc_basename in
9145 nagfor*)
9146 # NAG Fortran compiler
9147 lt_prog_compiler_wl='-Wl,-Wl,,'
9148 lt_prog_compiler_pic='-PIC'
9149 lt_prog_compiler_static='-Bstatic'
9150 ;;
9151 esac
9152 ;;
9153
9154 mingw* | cygwin* | pw32* | os2* | cegcc*)
9155 # This hack is so that the source file can tell whether it is being
9156 # built for inclusion in a dll (and should export symbols for example).
9157 lt_prog_compiler_pic='-DDLL_EXPORT'
9158 case $host_os in
9159 os2*)
9160 lt_prog_compiler_static='$wl-static'
9161 ;;
9162 esac
9163 ;;
9164
9165 hpux9* | hpux10* | hpux11*)
9166 lt_prog_compiler_wl='-Wl,'
9167 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9168 # not for PA HP-UX.
9169 case $host_cpu in
9170 hppa*64*|ia64*)
9171 # +Z the default
9172 ;;
9173 *)
9174 lt_prog_compiler_pic='+Z'
9175 ;;
9176 esac
9177 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9178 lt_prog_compiler_static='$wl-a ${wl}archive'
9179 ;;
9180
9181 irix5* | irix6* | nonstopux*)
9182 lt_prog_compiler_wl='-Wl,'
9183 # PIC (with -KPIC) is the default.
9184 lt_prog_compiler_static='-non_shared'
9185 ;;
9186
9187 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9188 case $cc_basename in
9189 # old Intel for x86_64, which still supported -KPIC.
9190 ecc*)
9191 lt_prog_compiler_wl='-Wl,'
9192 lt_prog_compiler_pic='-KPIC'
9193 lt_prog_compiler_static='-static'
9194 ;;
9195 # icc used to be incompatible with GCC.
9196 # ICC 10 doesn't accept -KPIC any more.
9197 icc* | ifort*)
9198 lt_prog_compiler_wl='-Wl,'
9199 lt_prog_compiler_pic='-fPIC'
9200 lt_prog_compiler_static='-static'
9201 ;;
9202 # Lahey Fortran 8.1.
9203 lf95*)
9204 lt_prog_compiler_wl='-Wl,'
9205 lt_prog_compiler_pic='--shared'
9206 lt_prog_compiler_static='--static'
9207 ;;
9208 nagfor*)
9209 # NAG Fortran compiler
9210 lt_prog_compiler_wl='-Wl,-Wl,,'
9211 lt_prog_compiler_pic='-PIC'
9212 lt_prog_compiler_static='-Bstatic'
9213 ;;
9214 tcc*)
9215 # Fabrice Bellard et al's Tiny C Compiler
9216 lt_prog_compiler_wl='-Wl,'
9217 lt_prog_compiler_pic='-fPIC'
9218 lt_prog_compiler_static='-static'
9219 ;;
9220 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9221 # Portland Group compilers (*not* the Pentium gcc compiler,
9222 # which looks to be a dead project)
9223 lt_prog_compiler_wl='-Wl,'
9224 lt_prog_compiler_pic='-fpic'
9225 lt_prog_compiler_static='-Bstatic'
9226 ;;
9227 ccc*)
9228 lt_prog_compiler_wl='-Wl,'
9229 # All Alpha code is PIC.
9230 lt_prog_compiler_static='-non_shared'
9231 ;;
9232 xl* | bgxl* | bgf* | mpixl*)
9233 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9234 lt_prog_compiler_wl='-Wl,'
9235 lt_prog_compiler_pic='-qpic'
9236 lt_prog_compiler_static='-qstaticlink'
9237 ;;
9238 *)
9239 case `$CC -V 2>&1 | sed 5q` in
9240 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9241 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9242 lt_prog_compiler_pic='-KPIC'
9243 lt_prog_compiler_static='-Bstatic'
9244 lt_prog_compiler_wl=''
9245 ;;
9246 *Sun\ F* | *Sun*Fortran*)
9247 lt_prog_compiler_pic='-KPIC'
9248 lt_prog_compiler_static='-Bstatic'
9249 lt_prog_compiler_wl='-Qoption ld '
9250 ;;
9251 *Sun\ C*)
9252 # Sun C 5.9
9253 lt_prog_compiler_pic='-KPIC'
9254 lt_prog_compiler_static='-Bstatic'
9255 lt_prog_compiler_wl='-Wl,'
9256 ;;
9257 *Intel*\ [CF]*Compiler*)
9258 lt_prog_compiler_wl='-Wl,'
9259 lt_prog_compiler_pic='-fPIC'
9260 lt_prog_compiler_static='-static'
9261 ;;
9262 *Portland\ Group*)
9263 lt_prog_compiler_wl='-Wl,'
9264 lt_prog_compiler_pic='-fpic'
9265 lt_prog_compiler_static='-Bstatic'
9266 ;;
9267 esac
9268 ;;
9269 esac
9270 ;;
9271
9272 newsos6)
9273 lt_prog_compiler_pic='-KPIC'
9274 lt_prog_compiler_static='-Bstatic'
9275 ;;
9276
9277 *nto* | *qnx*)
9278 # QNX uses GNU C++, but need to define -shared option too, otherwise
9279 # it will coredump.
9280 lt_prog_compiler_pic='-fPIC -shared'
9281 ;;
9282
9283 osf3* | osf4* | osf5*)
9284 lt_prog_compiler_wl='-Wl,'
9285 # All OSF/1 code is PIC.
9286 lt_prog_compiler_static='-non_shared'
9287 ;;
9288
9289 rdos*)
9290 lt_prog_compiler_static='-non_shared'
9291 ;;
9292
9293 solaris*)
9294 lt_prog_compiler_pic='-KPIC'
9295 lt_prog_compiler_static='-Bstatic'
9296 case $cc_basename in
9297 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9298 lt_prog_compiler_wl='-Qoption ld ';;
9299 *)
9300 lt_prog_compiler_wl='-Wl,';;
9301 esac
9302 ;;
9303
9304 sunos4*)
9305 lt_prog_compiler_wl='-Qoption ld '
9306 lt_prog_compiler_pic='-PIC'
9307 lt_prog_compiler_static='-Bstatic'
9308 ;;
9309
9310 sysv4 | sysv4.2uw2* | sysv4.3*)
9311 lt_prog_compiler_wl='-Wl,'
9312 lt_prog_compiler_pic='-KPIC'
9313 lt_prog_compiler_static='-Bstatic'
9314 ;;
9315
9316 sysv4*MP*)
9317 if test -d /usr/nec; then
9318 lt_prog_compiler_pic='-Kconform_pic'
9319 lt_prog_compiler_static='-Bstatic'
9320 fi
9321 ;;
9322
9323 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9324 lt_prog_compiler_wl='-Wl,'
9325 lt_prog_compiler_pic='-KPIC'
9326 lt_prog_compiler_static='-Bstatic'
9327 ;;
9328
9329 unicos*)
9330 lt_prog_compiler_wl='-Wl,'
9331 lt_prog_compiler_can_build_shared=no
9332 ;;
9333
9334 uts4*)
9335 lt_prog_compiler_pic='-pic'
9336 lt_prog_compiler_static='-Bstatic'
9337 ;;
9338
9339 *)
9340 lt_prog_compiler_can_build_shared=no
9341 ;;
9342 esac
9343 fi
9344
9345case $host_os in
9346 # For platforms that do not support PIC, -DPIC is meaningless:
9347 *djgpp*)
9348 lt_prog_compiler_pic=
9349 ;;
9350 *)
9351 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9352 ;;
9353esac
9354
9355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9356$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9357if ${lt_cv_prog_compiler_pic+:} false; then :
9358 $as_echo_n "(cached) " >&6
9359else
9360 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9361fi
9362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9363$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9364lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9365
9366#
9367# Check to make sure the PIC flag actually works.
9368#
9369if test -n "$lt_prog_compiler_pic"; then
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9371$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9372if ${lt_cv_prog_compiler_pic_works+:} false; then :
9373 $as_echo_n "(cached) " >&6
9374else
9375 lt_cv_prog_compiler_pic_works=no
9376 ac_outfile=conftest.$ac_objext
9377 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9378 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9379 # Insert the option either (1) after the last *FLAGS variable, or
9380 # (2) before a word containing "conftest.", or (3) at the end.
9381 # Note that $ac_compile itself does not contain backslashes and begins
9382 # with a dollar sign (not a hyphen), so the echo should work correctly.
9383 # The option is referenced via a variable to avoid confusing sed.
9384 lt_compile=`echo "$ac_compile" | $SED \
9385 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9386 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9387 -e 's:$: $lt_compiler_flag:'`
9388 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9389 (eval "$lt_compile" 2>conftest.err)
9390 ac_status=$?
9391 cat conftest.err >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 if (exit $ac_status) && test -s "$ac_outfile"; then
9394 # The compiler can only warn and ignore the option if not recognized
9395 # So say no if there are warnings other than the usual output.
9396 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9397 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9398 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9399 lt_cv_prog_compiler_pic_works=yes
9400 fi
9401 fi
9402 $RM conftest*
9403
9404fi
9405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9406$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9407
9408if test yes = "$lt_cv_prog_compiler_pic_works"; then
9409 case $lt_prog_compiler_pic in
9410 "" | " "*) ;;
9411 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9412 esac
9413else
9414 lt_prog_compiler_pic=
9415 lt_prog_compiler_can_build_shared=no
9416fi
9417
9418fi
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430#
9431# Check to make sure the static flag actually works.
9432#
9433wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9435$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9436if ${lt_cv_prog_compiler_static_works+:} false; then :
9437 $as_echo_n "(cached) " >&6
9438else
9439 lt_cv_prog_compiler_static_works=no
9440 save_LDFLAGS=$LDFLAGS
9441 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9442 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9443 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9444 # The linker can only warn and ignore the option if not recognized
9445 # So say no if there are warnings
9446 if test -s conftest.err; then
9447 # Append any errors to the config.log.
9448 cat conftest.err 1>&5
9449 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9450 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9451 if diff conftest.exp conftest.er2 >/dev/null; then
9452 lt_cv_prog_compiler_static_works=yes
9453 fi
9454 else
9455 lt_cv_prog_compiler_static_works=yes
9456 fi
9457 fi
9458 $RM -r conftest*
9459 LDFLAGS=$save_LDFLAGS
9460
9461fi
9462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9463$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9464
9465if test yes = "$lt_cv_prog_compiler_static_works"; then
9466 :
9467else
9468 lt_prog_compiler_static=
9469fi
9470
9471
9472
9473
9474
9475
9476
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9478$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9479if ${lt_cv_prog_compiler_c_o+:} false; then :
9480 $as_echo_n "(cached) " >&6
9481else
9482 lt_cv_prog_compiler_c_o=no
9483 $RM -r conftest 2>/dev/null
9484 mkdir conftest
9485 cd conftest
9486 mkdir out
9487 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9488
9489 lt_compiler_flag="-o out/conftest2.$ac_objext"
9490 # Insert the option either (1) after the last *FLAGS variable, or
9491 # (2) before a word containing "conftest.", or (3) at the end.
9492 # Note that $ac_compile itself does not contain backslashes and begins
9493 # with a dollar sign (not a hyphen), so the echo should work correctly.
9494 lt_compile=`echo "$ac_compile" | $SED \
9495 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9496 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9497 -e 's:$: $lt_compiler_flag:'`
9498 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9499 (eval "$lt_compile" 2>out/conftest.err)
9500 ac_status=$?
9501 cat out/conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9504 then
9505 # The compiler can only warn and ignore the option if not recognized
9506 # So say no if there are warnings
9507 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9508 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9509 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9510 lt_cv_prog_compiler_c_o=yes
9511 fi
9512 fi
9513 chmod u+w . 2>&5
9514 $RM conftest*
9515 # SGI C++ compiler will create directory out/ii_files/ for
9516 # template instantiation
9517 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9518 $RM out/* && rmdir out
9519 cd ..
9520 $RM -r conftest
9521 $RM conftest*
9522
9523fi
9524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9525$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9526
9527
9528
9529
9530
9531
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9533$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9534if ${lt_cv_prog_compiler_c_o+:} false; then :
9535 $as_echo_n "(cached) " >&6
9536else
9537 lt_cv_prog_compiler_c_o=no
9538 $RM -r conftest 2>/dev/null
9539 mkdir conftest
9540 cd conftest
9541 mkdir out
9542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9543
9544 lt_compiler_flag="-o out/conftest2.$ac_objext"
9545 # Insert the option either (1) after the last *FLAGS variable, or
9546 # (2) before a word containing "conftest.", or (3) at the end.
9547 # Note that $ac_compile itself does not contain backslashes and begins
9548 # with a dollar sign (not a hyphen), so the echo should work correctly.
9549 lt_compile=`echo "$ac_compile" | $SED \
9550 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9551 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9552 -e 's:$: $lt_compiler_flag:'`
9553 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9554 (eval "$lt_compile" 2>out/conftest.err)
9555 ac_status=$?
9556 cat out/conftest.err >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9559 then
9560 # The compiler can only warn and ignore the option if not recognized
9561 # So say no if there are warnings
9562 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9563 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9564 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9565 lt_cv_prog_compiler_c_o=yes
9566 fi
9567 fi
9568 chmod u+w . 2>&5
9569 $RM conftest*
9570 # SGI C++ compiler will create directory out/ii_files/ for
9571 # template instantiation
9572 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9573 $RM out/* && rmdir out
9574 cd ..
9575 $RM -r conftest
9576 $RM conftest*
9577
9578fi
9579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9580$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9581
9582
9583
9584
9585hard_links=nottested
9586if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9587 # do not overwrite the value of need_locks provided by the user
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9589$as_echo_n "checking if we can lock with hard links... " >&6; }
9590 hard_links=yes
9591 $RM conftest*
9592 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9593 touch conftest.a
9594 ln conftest.a conftest.b 2>&5 || hard_links=no
9595 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9597$as_echo "$hard_links" >&6; }
9598 if test no = "$hard_links"; then
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9600$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9601 need_locks=warn
9602 fi
9603else
9604 need_locks=no
9605fi
9606
9607
9608
9609
9610
9611
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9613$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9614
9615 runpath_var=
9616 allow_undefined_flag=
9617 always_export_symbols=no
9618 archive_cmds=
9619 archive_expsym_cmds=
9620 compiler_needs_object=no
9621 enable_shared_with_static_runtimes=no
9622 export_dynamic_flag_spec=
9623 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9624 hardcode_automatic=no
9625 hardcode_direct=no
9626 hardcode_direct_absolute=no
9627 hardcode_libdir_flag_spec=
9628 hardcode_libdir_separator=
9629 hardcode_minus_L=no
9630 hardcode_shlibpath_var=unsupported
9631 inherit_rpath=no
9632 link_all_deplibs=unknown
9633 module_cmds=
9634 module_expsym_cmds=
9635 old_archive_from_new_cmds=
9636 old_archive_from_expsyms_cmds=
9637 thread_safe_flag_spec=
9638 whole_archive_flag_spec=
9639 # include_expsyms should be a list of space-separated symbols to be *always*
9640 # included in the symbol list
9641 include_expsyms=
9642 # exclude_expsyms can be an extended regexp of symbols to exclude
9643 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9644 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9645 # as well as any symbol that contains 'd'.
9646 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9647 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9648 # platforms (ab)use it in PIC code, but their linkers get confused if
9649 # the symbol is explicitly referenced. Since portable code cannot
9650 # rely on this symbol name, it's probably fine to never include it in
9651 # preloaded symbol tables.
9652 # Exclude shared library initialization/finalization symbols.
9653 extract_expsyms_cmds=
9654
9655 case $host_os in
9656 cygwin* | mingw* | pw32* | cegcc*)
9657 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9658 # When not using gcc, we currently assume that we are using
9659 # Microsoft Visual C++.
9660 if test yes != "$GCC"; then
9661 with_gnu_ld=no
9662 fi
9663 ;;
9664 interix*)
9665 # we just hope/assume this is gcc and not c89 (= MSVC++)
9666 with_gnu_ld=yes
9667 ;;
9668 openbsd* | bitrig*)
9669 with_gnu_ld=no
9670 ;;
9671 linux* | k*bsd*-gnu | gnu*)
9672 link_all_deplibs=no
9673 ;;
9674 esac
9675
9676 ld_shlibs=yes
9677
9678 # On some targets, GNU ld is compatible enough with the native linker
9679 # that we're better off using the native interface for both.
9680 lt_use_gnu_ld_interface=no
9681 if test yes = "$with_gnu_ld"; then
9682 case $host_os in
9683 aix*)
9684 # The AIX port of GNU ld has always aspired to compatibility
9685 # with the native linker. However, as the warning in the GNU ld
9686 # block says, versions before 2.19.5* couldn't really create working
9687 # shared libraries, regardless of the interface used.
9688 case `$LD -v 2>&1` in
9689 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9690 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9691 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9692 *)
9693 lt_use_gnu_ld_interface=yes
9694 ;;
9695 esac
9696 ;;
9697 *)
9698 lt_use_gnu_ld_interface=yes
9699 ;;
9700 esac
9701 fi
9702
9703 if test yes = "$lt_use_gnu_ld_interface"; then
9704 # If archive_cmds runs LD, not CC, wlarc should be empty
9705 wlarc='$wl'
9706
9707 # Set some defaults for GNU ld with shared library support. These
9708 # are reset later if shared libraries are not supported. Putting them
9709 # here allows them to be overridden if necessary.
9710 runpath_var=LD_RUN_PATH
9711 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9712 export_dynamic_flag_spec='$wl--export-dynamic'
9713 # ancient GNU ld didn't support --whole-archive et. al.
9714 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9715 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9716 else
9717 whole_archive_flag_spec=
9718 fi
9719 supports_anon_versioning=no
9720 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9721 *GNU\ gold*) supports_anon_versioning=yes ;;
9722 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9723 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9724 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9725 *\ 2.11.*) ;; # other 2.11 versions
9726 *) supports_anon_versioning=yes ;;
9727 esac
9728
9729 # See if GNU ld supports shared libraries.
9730 case $host_os in
9731 aix[3-9]*)
9732 # On AIX/PPC, the GNU linker is very broken
9733 if test ia64 != "$host_cpu"; then
9734 ld_shlibs=no
9735 cat <<_LT_EOF 1>&2
9736
9737*** Warning: the GNU linker, at least up to release 2.19, is reported
9738*** to be unable to reliably create shared libraries on AIX.
9739*** Therefore, libtool is disabling shared libraries support. If you
9740*** really care for shared libraries, you may want to install binutils
9741*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9742*** You will then need to restart the configuration process.
9743
9744_LT_EOF
9745 fi
9746 ;;
9747
9748 amigaos*)
9749 case $host_cpu in
9750 powerpc)
9751 # see comment about AmigaOS4 .so support
9752 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9753 archive_expsym_cmds=''
9754 ;;
9755 m68k)
9756 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)'
9757 hardcode_libdir_flag_spec='-L$libdir'
9758 hardcode_minus_L=yes
9759 ;;
9760 esac
9761 ;;
9762
9763 beos*)
9764 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9765 allow_undefined_flag=unsupported
9766 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9767 # support --undefined. This deserves some investigation. FIXME
9768 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9769 else
9770 ld_shlibs=no
9771 fi
9772 ;;
9773
9774 cygwin* | mingw* | pw32* | cegcc*)
9775 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9776 # as there is no search path for DLLs.
9777 hardcode_libdir_flag_spec='-L$libdir'
9778 export_dynamic_flag_spec='$wl--export-all-symbols'
9779 allow_undefined_flag=unsupported
9780 always_export_symbols=no
9781 enable_shared_with_static_runtimes=yes
9782 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'
9783 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9784
9785 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9786 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9787 # If the export-symbols file already is a .def file, use it as
9788 # is; otherwise, prepend EXPORTS...
9789 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9790 cp $export_symbols $output_objdir/$soname.def;
9791 else
9792 echo EXPORTS > $output_objdir/$soname.def;
9793 cat $export_symbols >> $output_objdir/$soname.def;
9794 fi~
9795 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9796 else
9797 ld_shlibs=no
9798 fi
9799 ;;
9800
9801 haiku*)
9802 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9803 link_all_deplibs=yes
9804 ;;
9805
9806 os2*)
9807 hardcode_libdir_flag_spec='-L$libdir'
9808 hardcode_minus_L=yes
9809 allow_undefined_flag=unsupported
9810 shrext_cmds=.dll
9811 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9812 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9813 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9814 $ECHO EXPORTS >> $output_objdir/$libname.def~
9815 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9816 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9817 emximp -o $lib $output_objdir/$libname.def'
9818 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9819 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9820 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9821 $ECHO EXPORTS >> $output_objdir/$libname.def~
9822 prefix_cmds="$SED"~
9823 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9824 prefix_cmds="$prefix_cmds -e 1d";
9825 fi~
9826 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9827 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9828 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9829 emximp -o $lib $output_objdir/$libname.def'
9830 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9831 enable_shared_with_static_runtimes=yes
9832 ;;
9833
9834 interix[3-9]*)
9835 hardcode_direct=no
9836 hardcode_shlibpath_var=no
9837 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9838 export_dynamic_flag_spec='$wl-E'
9839 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9840 # Instead, shared libraries are loaded at an image base (0x10000000 by
9841 # default) and relocated if they conflict, which is a slow very memory
9842 # consuming and fragmenting process. To avoid this, we pick a random,
9843 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9844 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9845 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9846 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'
9847 ;;
9848
9849 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9850 tmp_diet=no
9851 if test linux-dietlibc = "$host_os"; then
9852 case $cc_basename in
9853 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9854 esac
9855 fi
9856 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9857 && test no = "$tmp_diet"
9858 then
9859 tmp_addflag=' $pic_flag'
9860 tmp_sharedflag='-shared'
9861 case $cc_basename,$host_cpu in
9862 pgcc*) # Portland Group C compiler
9863 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'
9864 tmp_addflag=' $pic_flag'
9865 ;;
9866 pgf77* | pgf90* | pgf95* | pgfortran*)
9867 # Portland Group f77 and f90 compilers
9868 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'
9869 tmp_addflag=' $pic_flag -Mnomain' ;;
9870 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9871 tmp_addflag=' -i_dynamic' ;;
9872 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9873 tmp_addflag=' -i_dynamic -nofor_main' ;;
9874 ifc* | ifort*) # Intel Fortran compiler
9875 tmp_addflag=' -nofor_main' ;;
9876 lf95*) # Lahey Fortran 8.1
9877 whole_archive_flag_spec=
9878 tmp_sharedflag='--shared' ;;
9879 nagfor*) # NAGFOR 5.3
9880 tmp_sharedflag='-Wl,-shared' ;;
9881 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9882 tmp_sharedflag='-qmkshrobj'
9883 tmp_addflag= ;;
9884 nvcc*) # Cuda Compiler Driver 2.2
9885 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'
9886 compiler_needs_object=yes
9887 ;;
9888 esac
9889 case `$CC -V 2>&1 | sed 5q` in
9890 *Sun\ C*) # Sun C 5.9
9891 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'
9892 compiler_needs_object=yes
9893 tmp_sharedflag='-G' ;;
9894 *Sun\ F*) # Sun Fortran 8.3
9895 tmp_sharedflag='-G' ;;
9896 esac
9897 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9898
9899 if test yes = "$supports_anon_versioning"; then
9900 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9901 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9902 echo "local: *; };" >> $output_objdir/$libname.ver~
9903 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9904 fi
9905
9906 case $cc_basename in
9907 tcc*)
9908 export_dynamic_flag_spec='-rdynamic'
9909 ;;
9910 xlf* | bgf* | bgxlf* | mpixlf*)
9911 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9912 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9913 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9914 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9915 if test yes = "$supports_anon_versioning"; then
9916 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9917 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9918 echo "local: *; };" >> $output_objdir/$libname.ver~
9919 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9920 fi
9921 ;;
9922 esac
9923 else
9924 ld_shlibs=no
9925 fi
9926 ;;
9927
9928 netbsd* | netbsdelf*-gnu)
9929 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9930 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9931 wlarc=
9932 else
9933 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9934 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9935 fi
9936 ;;
9937
9938 solaris*)
9939 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9940 ld_shlibs=no
9941 cat <<_LT_EOF 1>&2
9942
9943*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9944*** create shared libraries on Solaris systems. Therefore, libtool
9945*** is disabling shared libraries support. We urge you to upgrade GNU
9946*** binutils to release 2.9.1 or newer. Another option is to modify
9947*** your PATH or compiler configuration so that the native linker is
9948*** used, and then restart.
9949
9950_LT_EOF
9951 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9952 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9953 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9954 else
9955 ld_shlibs=no
9956 fi
9957 ;;
9958
9959 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9960 case `$LD -v 2>&1` in
9961 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9962 ld_shlibs=no
9963 cat <<_LT_EOF 1>&2
9964
9965*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9966*** reliably create shared libraries on SCO systems. Therefore, libtool
9967*** is disabling shared libraries support. We urge you to upgrade GNU
9968*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9969*** your PATH or compiler configuration so that the native linker is
9970*** used, and then restart.
9971
9972_LT_EOF
9973 ;;
9974 *)
9975 # For security reasons, it is highly recommended that you always
9976 # use absolute paths for naming shared libraries, and exclude the
9977 # DT_RUNPATH tag from executables and libraries. But doing so
9978 # requires that you compile everything twice, which is a pain.
9979 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9980 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9981 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9982 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9983 else
9984 ld_shlibs=no
9985 fi
9986 ;;
9987 esac
9988 ;;
9989
9990 sunos4*)
9991 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9992 wlarc=
9993 hardcode_direct=yes
9994 hardcode_shlibpath_var=no
9995 ;;
9996
9997 *)
9998 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9999 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10000 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10001 else
10002 ld_shlibs=no
10003 fi
10004 ;;
10005 esac
10006
10007 if test no = "$ld_shlibs"; then
10008 runpath_var=
10009 hardcode_libdir_flag_spec=
10010 export_dynamic_flag_spec=
10011 whole_archive_flag_spec=
10012 fi
10013 else
10014 # PORTME fill in a description of your system's linker (not GNU ld)
10015 case $host_os in
10016 aix3*)
10017 allow_undefined_flag=unsupported
10018 always_export_symbols=yes
10019 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'
10020 # Note: this linker hardcodes the directories in LIBPATH if there
10021 # are no directories specified by -L.
10022 hardcode_minus_L=yes
10023 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10024 # Neither direct hardcoding nor static linking is supported with a
10025 # broken collect2.
10026 hardcode_direct=unsupported
10027 fi
10028 ;;
10029
10030 aix[4-9]*)
10031 if test ia64 = "$host_cpu"; then
10032 # On IA64, the linker does run time linking by default, so we don't
10033 # have to do anything special.
10034 aix_use_runtimelinking=no
10035 exp_sym_flag='-Bexport'
10036 no_entry_flag=
10037 else
10038 # If we're using GNU nm, then we don't want the "-C" option.
10039 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10040 # Without the "-l" option, or with the "-B" option, AIX nm treats
10041 # weak defined symbols like other global defined symbols, whereas
10042 # GNU nm marks them as "W".
10043 # While the 'weak' keyword is ignored in the Export File, we need
10044 # it in the Import File for the 'aix-soname' feature, so we have
10045 # to replace the "-B" option with "-P" for AIX nm.
10046 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10047 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10048 else
10049 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10050 fi
10051 aix_use_runtimelinking=no
10052
10053 # Test if we are trying to use run time linking or normal
10054 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10055 # have runtime linking enabled, and use it for executables.
10056 # For shared libraries, we enable/disable runtime linking
10057 # depending on the kind of the shared library created -
10058 # when "with_aix_soname,aix_use_runtimelinking" is:
10059 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10060 # "aix,yes" lib.so shared, rtl:yes, for executables
10061 # lib.a static archive
10062 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10063 # lib.a(lib.so.V) shared, rtl:no, for executables
10064 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10065 # lib.a(lib.so.V) shared, rtl:no
10066 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10067 # lib.a static archive
10068 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10069 for ld_flag in $LDFLAGS; do
10070 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10071 aix_use_runtimelinking=yes
10072 break
10073 fi
10074 done
10075 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10076 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10077 # so we don't have lib.a shared libs to link our executables.
10078 # We have to force runtime linking in this case.
10079 aix_use_runtimelinking=yes
10080 LDFLAGS="$LDFLAGS -Wl,-brtl"
10081 fi
10082 ;;
10083 esac
10084
10085 exp_sym_flag='-bexport'
10086 no_entry_flag='-bnoentry'
10087 fi
10088
10089 # When large executables or shared objects are built, AIX ld can
10090 # have problems creating the table of contents. If linking a library
10091 # or program results in "error TOC overflow" add -mminimal-toc to
10092 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10093 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10094
10095 archive_cmds=''
10096 hardcode_direct=yes
10097 hardcode_direct_absolute=yes
10098 hardcode_libdir_separator=':'
10099 link_all_deplibs=yes
10100 file_list_spec='$wl-f,'
10101 case $with_aix_soname,$aix_use_runtimelinking in
10102 aix,*) ;; # traditional, no import file
10103 svr4,* | *,yes) # use import file
10104 # The Import File defines what to hardcode.
10105 hardcode_direct=no
10106 hardcode_direct_absolute=no
10107 ;;
10108 esac
10109
10110 if test yes = "$GCC"; then
10111 case $host_os in aix4.[012]|aix4.[012].*)
10112 # We only want to do this on AIX 4.2 and lower, the check
10113 # below for broken collect2 doesn't work under 4.3+
10114 collect2name=`$CC -print-prog-name=collect2`
10115 if test -f "$collect2name" &&
10116 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10117 then
10118 # We have reworked collect2
10119 :
10120 else
10121 # We have old collect2
10122 hardcode_direct=unsupported
10123 # It fails to find uninstalled libraries when the uninstalled
10124 # path is not listed in the libpath. Setting hardcode_minus_L
10125 # to unsupported forces relinking
10126 hardcode_minus_L=yes
10127 hardcode_libdir_flag_spec='-L$libdir'
10128 hardcode_libdir_separator=
10129 fi
10130 ;;
10131 esac
10132 shared_flag='-shared'
10133 if test yes = "$aix_use_runtimelinking"; then
10134 shared_flag="$shared_flag "'$wl-G'
10135 fi
10136 # Need to ensure runtime linking is disabled for the traditional
10137 # shared library, or the linker may eventually find shared libraries
10138 # /with/ Import File - we do not want to mix them.
10139 shared_flag_aix='-shared'
10140 shared_flag_svr4='-shared $wl-G'
10141 else
10142 # not using gcc
10143 if test ia64 = "$host_cpu"; then
10144 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10145 # chokes on -Wl,-G. The following line is correct:
10146 shared_flag='-G'
10147 else
10148 if test yes = "$aix_use_runtimelinking"; then
10149 shared_flag='$wl-G'
10150 else
10151 shared_flag='$wl-bM:SRE'
10152 fi
10153 shared_flag_aix='$wl-bM:SRE'
10154 shared_flag_svr4='$wl-G'
10155 fi
10156 fi
10157
10158 export_dynamic_flag_spec='$wl-bexpall'
10159 # It seems that -bexpall does not export symbols beginning with
10160 # underscore (_), so it is better to generate a list of symbols to export.
10161 always_export_symbols=yes
10162 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10163 # Warning - without using the other runtime loading flags (-brtl),
10164 # -berok will link without error, but may produce a broken library.
10165 allow_undefined_flag='-berok'
10166 # Determine the default libpath from the value encoded in an
10167 # empty executable.
10168 if test set = "${lt_cv_aix_libpath+set}"; then
10169 aix_libpath=$lt_cv_aix_libpath
10170else
10171 if ${lt_cv_aix_libpath_+:} false; then :
10172 $as_echo_n "(cached) " >&6
10173else
10174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10175/* end confdefs.h. */
10176
10177int
10178main ()
10179{
10180
10181 ;
10182 return 0;
10183}
10184_ACEOF
10185if ac_fn_c_try_link "$LINENO"; then :
10186
10187 lt_aix_libpath_sed='
10188 /Import File Strings/,/^$/ {
10189 /^0/ {
10190 s/^0 *\([^ ]*\) *$/\1/
10191 p
10192 }
10193 }'
10194 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10195 # Check for a 64-bit object if we didn't find anything.
10196 if test -z "$lt_cv_aix_libpath_"; then
10197 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10198 fi
10199fi
10200rm -f core conftest.err conftest.$ac_objext \
10201 conftest$ac_exeext conftest.$ac_ext
10202 if test -z "$lt_cv_aix_libpath_"; then
10203 lt_cv_aix_libpath_=/usr/lib:/lib
10204 fi
10205
10206fi
10207
10208 aix_libpath=$lt_cv_aix_libpath_
10209fi
10210
10211 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10212 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10213 else
10214 if test ia64 = "$host_cpu"; then
10215 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10216 allow_undefined_flag="-z nodefs"
10217 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"
10218 else
10219 # Determine the default libpath from the value encoded in an
10220 # empty executable.
10221 if test set = "${lt_cv_aix_libpath+set}"; then
10222 aix_libpath=$lt_cv_aix_libpath
10223else
10224 if ${lt_cv_aix_libpath_+:} false; then :
10225 $as_echo_n "(cached) " >&6
10226else
10227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10228/* end confdefs.h. */
10229
10230int
10231main ()
10232{
10233
10234 ;
10235 return 0;
10236}
10237_ACEOF
10238if ac_fn_c_try_link "$LINENO"; then :
10239
10240 lt_aix_libpath_sed='
10241 /Import File Strings/,/^$/ {
10242 /^0/ {
10243 s/^0 *\([^ ]*\) *$/\1/
10244 p
10245 }
10246 }'
10247 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10248 # Check for a 64-bit object if we didn't find anything.
10249 if test -z "$lt_cv_aix_libpath_"; then
10250 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10251 fi
10252fi
10253rm -f core conftest.err conftest.$ac_objext \
10254 conftest$ac_exeext conftest.$ac_ext
10255 if test -z "$lt_cv_aix_libpath_"; then
10256 lt_cv_aix_libpath_=/usr/lib:/lib
10257 fi
10258
10259fi
10260
10261 aix_libpath=$lt_cv_aix_libpath_
10262fi
10263
10264 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10265 # Warning - without using the other run time loading flags,
10266 # -berok will link without error, but may produce a broken library.
10267 no_undefined_flag=' $wl-bernotok'
10268 allow_undefined_flag=' $wl-berok'
10269 if test yes = "$with_gnu_ld"; then
10270 # We only use this code for GNU lds that support --whole-archive.
10271 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10272 else
10273 # Exported symbols can be pulled into shared objects from archives
10274 whole_archive_flag_spec='$convenience'
10275 fi
10276 archive_cmds_need_lc=yes
10277 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10278 # -brtl affects multiple linker settings, -berok does not and is overridden later
10279 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10280 if test svr4 != "$with_aix_soname"; then
10281 # This is similar to how AIX traditionally builds its shared libraries.
10282 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10283 fi
10284 if test aix != "$with_aix_soname"; then
10285 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10286 else
10287 # used by -dlpreopen to get the symbols
10288 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10289 fi
10290 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10291 fi
10292 fi
10293 ;;
10294
10295 amigaos*)
10296 case $host_cpu in
10297 powerpc)
10298 # see comment about AmigaOS4 .so support
10299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10300 archive_expsym_cmds=''
10301 ;;
10302 m68k)
10303 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)'
10304 hardcode_libdir_flag_spec='-L$libdir'
10305 hardcode_minus_L=yes
10306 ;;
10307 esac
10308 ;;
10309
10310 bsdi[45]*)
10311 export_dynamic_flag_spec=-rdynamic
10312 ;;
10313
10314 cygwin* | mingw* | pw32* | cegcc*)
10315 # When not using gcc, we currently assume that we are using
10316 # Microsoft Visual C++.
10317 # hardcode_libdir_flag_spec is actually meaningless, as there is
10318 # no search path for DLLs.
10319 case $cc_basename in
10320 cl*)
10321 # Native MSVC
10322 hardcode_libdir_flag_spec=' '
10323 allow_undefined_flag=unsupported
10324 always_export_symbols=yes
10325 file_list_spec='@'
10326 # Tell ltmain to make .lib files, not .a files.
10327 libext=lib
10328 # Tell ltmain to make .dll files, not .so files.
10329 shrext_cmds=.dll
10330 # FIXME: Setting linknames here is a bad hack.
10331 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10332 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10333 cp "$export_symbols" "$output_objdir/$soname.def";
10334 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10335 else
10336 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10337 fi~
10338 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10339 linknames='
10340 # The linker will not automatically build a static lib if we build a DLL.
10341 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10342 enable_shared_with_static_runtimes=yes
10343 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10344 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10345 # Don't use ranlib
10346 old_postinstall_cmds='chmod 644 $oldlib'
10347 postlink_cmds='lt_outputfile="@OUTPUT@"~
10348 lt_tool_outputfile="@TOOL_OUTPUT@"~
10349 case $lt_outputfile in
10350 *.exe|*.EXE) ;;
10351 *)
10352 lt_outputfile=$lt_outputfile.exe
10353 lt_tool_outputfile=$lt_tool_outputfile.exe
10354 ;;
10355 esac~
10356 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10357 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10358 $RM "$lt_outputfile.manifest";
10359 fi'
10360 ;;
10361 *)
10362 # Assume MSVC wrapper
10363 hardcode_libdir_flag_spec=' '
10364 allow_undefined_flag=unsupported
10365 # Tell ltmain to make .lib files, not .a files.
10366 libext=lib
10367 # Tell ltmain to make .dll files, not .so files.
10368 shrext_cmds=.dll
10369 # FIXME: Setting linknames here is a bad hack.
10370 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10371 # The linker will automatically build a .lib file if we build a DLL.
10372 old_archive_from_new_cmds='true'
10373 # FIXME: Should let the user specify the lib program.
10374 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10375 enable_shared_with_static_runtimes=yes
10376 ;;
10377 esac
10378 ;;
10379
10380 darwin* | rhapsody*)
10381
10382
10383 archive_cmds_need_lc=no
10384 hardcode_direct=no
10385 hardcode_automatic=yes
10386 hardcode_shlibpath_var=unsupported
10387 if test yes = "$lt_cv_ld_force_load"; then
10388 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\"`'
10389
10390 else
10391 whole_archive_flag_spec=''
10392 fi
10393 link_all_deplibs=yes
10394 allow_undefined_flag=$_lt_dar_allow_undefined
10395 case $cc_basename in
10396 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10397 *) _lt_dar_can_shared=$GCC ;;
10398 esac
10399 if test yes = "$_lt_dar_can_shared"; then
10400 output_verbose_link_cmd=func_echo_all
10401 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10402 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10403 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"
10404 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"
10405
10406 else
10407 ld_shlibs=no
10408 fi
10409
10410 ;;
10411
10412 dgux*)
10413 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10414 hardcode_libdir_flag_spec='-L$libdir'
10415 hardcode_shlibpath_var=no
10416 ;;
10417
10418 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10419 # support. Future versions do this automatically, but an explicit c++rt0.o
10420 # does not break anything, and helps significantly (at the cost of a little
10421 # extra space).
10422 freebsd2.2*)
10423 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10424 hardcode_libdir_flag_spec='-R$libdir'
10425 hardcode_direct=yes
10426 hardcode_shlibpath_var=no
10427 ;;
10428
10429 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10430 freebsd2.*)
10431 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10432 hardcode_direct=yes
10433 hardcode_minus_L=yes
10434 hardcode_shlibpath_var=no
10435 ;;
10436
10437 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10438 freebsd* | dragonfly*)
10439 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10440 hardcode_libdir_flag_spec='-R$libdir'
10441 hardcode_direct=yes
10442 hardcode_shlibpath_var=no
10443 ;;
10444
10445 hpux9*)
10446 if test yes = "$GCC"; then
10447 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10448 else
10449 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10450 fi
10451 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10452 hardcode_libdir_separator=:
10453 hardcode_direct=yes
10454
10455 # hardcode_minus_L: Not really in the search PATH,
10456 # but as the default location of the library.
10457 hardcode_minus_L=yes
10458 export_dynamic_flag_spec='$wl-E'
10459 ;;
10460
10461 hpux10*)
10462 if test yes,no = "$GCC,$with_gnu_ld"; then
10463 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10464 else
10465 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10466 fi
10467 if test no = "$with_gnu_ld"; then
10468 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10469 hardcode_libdir_separator=:
10470 hardcode_direct=yes
10471 hardcode_direct_absolute=yes
10472 export_dynamic_flag_spec='$wl-E'
10473 # hardcode_minus_L: Not really in the search PATH,
10474 # but as the default location of the library.
10475 hardcode_minus_L=yes
10476 fi
10477 ;;
10478
10479 hpux11*)
10480 if test yes,no = "$GCC,$with_gnu_ld"; then
10481 case $host_cpu in
10482 hppa*64*)
10483 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10484 ;;
10485 ia64*)
10486 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10487 ;;
10488 *)
10489 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10490 ;;
10491 esac
10492 else
10493 case $host_cpu in
10494 hppa*64*)
10495 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10496 ;;
10497 ia64*)
10498 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10499 ;;
10500 *)
10501
10502 # Older versions of the 11.00 compiler do not understand -b yet
10503 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10505$as_echo_n "checking if $CC understands -b... " >&6; }
10506if ${lt_cv_prog_compiler__b+:} false; then :
10507 $as_echo_n "(cached) " >&6
10508else
10509 lt_cv_prog_compiler__b=no
10510 save_LDFLAGS=$LDFLAGS
10511 LDFLAGS="$LDFLAGS -b"
10512 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10513 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10514 # The linker can only warn and ignore the option if not recognized
10515 # So say no if there are warnings
10516 if test -s conftest.err; then
10517 # Append any errors to the config.log.
10518 cat conftest.err 1>&5
10519 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10520 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10521 if diff conftest.exp conftest.er2 >/dev/null; then
10522 lt_cv_prog_compiler__b=yes
10523 fi
10524 else
10525 lt_cv_prog_compiler__b=yes
10526 fi
10527 fi
10528 $RM -r conftest*
10529 LDFLAGS=$save_LDFLAGS
10530
10531fi
10532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10533$as_echo "$lt_cv_prog_compiler__b" >&6; }
10534
10535if test yes = "$lt_cv_prog_compiler__b"; then
10536 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10537else
10538 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10539fi
10540
10541 ;;
10542 esac
10543 fi
10544 if test no = "$with_gnu_ld"; then
10545 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10546 hardcode_libdir_separator=:
10547
10548 case $host_cpu in
10549 hppa*64*|ia64*)
10550 hardcode_direct=no
10551 hardcode_shlibpath_var=no
10552 ;;
10553 *)
10554 hardcode_direct=yes
10555 hardcode_direct_absolute=yes
10556 export_dynamic_flag_spec='$wl-E'
10557
10558 # hardcode_minus_L: Not really in the search PATH,
10559 # but as the default location of the library.
10560 hardcode_minus_L=yes
10561 ;;
10562 esac
10563 fi
10564 ;;
10565
10566 irix5* | irix6* | nonstopux*)
10567 if test yes = "$GCC"; then
10568 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'
10569 # Try to use the -exported_symbol ld option, if it does not
10570 # work, assume that -exports_file does not work either and
10571 # implicitly export all symbols.
10572 # This should be the same for all languages, so no per-tag cache variable.
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10574$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10575if ${lt_cv_irix_exported_symbol+:} false; then :
10576 $as_echo_n "(cached) " >&6
10577else
10578 save_LDFLAGS=$LDFLAGS
10579 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10581/* end confdefs.h. */
10582int foo (void) { return 0; }
10583_ACEOF
10584if ac_fn_c_try_link "$LINENO"; then :
10585 lt_cv_irix_exported_symbol=yes
10586else
10587 lt_cv_irix_exported_symbol=no
10588fi
10589rm -f core conftest.err conftest.$ac_objext \
10590 conftest$ac_exeext conftest.$ac_ext
10591 LDFLAGS=$save_LDFLAGS
10592fi
10593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10594$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10595 if test yes = "$lt_cv_irix_exported_symbol"; then
10596 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'
10597 fi
10598 link_all_deplibs=no
10599 else
10600 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'
10601 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'
10602 fi
10603 archive_cmds_need_lc='no'
10604 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10605 hardcode_libdir_separator=:
10606 inherit_rpath=yes
10607 link_all_deplibs=yes
10608 ;;
10609
10610 linux*)
10611 case $cc_basename in
10612 tcc*)
10613 # Fabrice Bellard et al's Tiny C Compiler
10614 ld_shlibs=yes
10615 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10616 ;;
10617 esac
10618 ;;
10619
10620 netbsd* | netbsdelf*-gnu)
10621 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10622 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10623 else
10624 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10625 fi
10626 hardcode_libdir_flag_spec='-R$libdir'
10627 hardcode_direct=yes
10628 hardcode_shlibpath_var=no
10629 ;;
10630
10631 newsos6)
10632 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10633 hardcode_direct=yes
10634 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10635 hardcode_libdir_separator=:
10636 hardcode_shlibpath_var=no
10637 ;;
10638
10639 *nto* | *qnx*)
10640 ;;
10641
10642 openbsd* | bitrig*)
10643 if test -f /usr/libexec/ld.so; then
10644 hardcode_direct=yes
10645 hardcode_shlibpath_var=no
10646 hardcode_direct_absolute=yes
10647 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10648 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10649 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10650 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10651 export_dynamic_flag_spec='$wl-E'
10652 else
10653 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10654 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10655 fi
10656 else
10657 ld_shlibs=no
10658 fi
10659 ;;
10660
10661 os2*)
10662 hardcode_libdir_flag_spec='-L$libdir'
10663 hardcode_minus_L=yes
10664 allow_undefined_flag=unsupported
10665 shrext_cmds=.dll
10666 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10667 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10668 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10669 $ECHO EXPORTS >> $output_objdir/$libname.def~
10670 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10671 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10672 emximp -o $lib $output_objdir/$libname.def'
10673 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10674 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10675 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10676 $ECHO EXPORTS >> $output_objdir/$libname.def~
10677 prefix_cmds="$SED"~
10678 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10679 prefix_cmds="$prefix_cmds -e 1d";
10680 fi~
10681 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10682 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10683 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10684 emximp -o $lib $output_objdir/$libname.def'
10685 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10686 enable_shared_with_static_runtimes=yes
10687 ;;
10688
10689 osf3*)
10690 if test yes = "$GCC"; then
10691 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10692 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'
10693 else
10694 allow_undefined_flag=' -expect_unresolved \*'
10695 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'
10696 fi
10697 archive_cmds_need_lc='no'
10698 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10699 hardcode_libdir_separator=:
10700 ;;
10701
10702 osf4* | osf5*) # as osf3* with the addition of -msym flag
10703 if test yes = "$GCC"; then
10704 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10705 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'
10706 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10707 else
10708 allow_undefined_flag=' -expect_unresolved \*'
10709 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'
10710 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~
10711 $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'
10712
10713 # Both c and cxx compiler support -rpath directly
10714 hardcode_libdir_flag_spec='-rpath $libdir'
10715 fi
10716 archive_cmds_need_lc='no'
10717 hardcode_libdir_separator=:
10718 ;;
10719
10720 solaris*)
10721 no_undefined_flag=' -z defs'
10722 if test yes = "$GCC"; then
10723 wlarc='$wl'
10724 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10725 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10726 $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'
10727 else
10728 case `$CC -V 2>&1` in
10729 *"Compilers 5.0"*)
10730 wlarc=''
10731 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10732 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10733 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10734 ;;
10735 *)
10736 wlarc='$wl'
10737 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10738 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10739 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10740 ;;
10741 esac
10742 fi
10743 hardcode_libdir_flag_spec='-R$libdir'
10744 hardcode_shlibpath_var=no
10745 case $host_os in
10746 solaris2.[0-5] | solaris2.[0-5].*) ;;
10747 *)
10748 # The compiler driver will combine and reorder linker options,
10749 # but understands '-z linker_flag'. GCC discards it without '$wl',
10750 # but is careful enough not to reorder.
10751 # Supported since Solaris 2.6 (maybe 2.5.1?)
10752 if test yes = "$GCC"; then
10753 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10754 else
10755 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10756 fi
10757 ;;
10758 esac
10759 link_all_deplibs=yes
10760 ;;
10761
10762 sunos4*)
10763 if test sequent = "$host_vendor"; then
10764 # Use $CC to link under sequent, because it throws in some extra .o
10765 # files that make .init and .fini sections work.
10766 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10767 else
10768 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10769 fi
10770 hardcode_libdir_flag_spec='-L$libdir'
10771 hardcode_direct=yes
10772 hardcode_minus_L=yes
10773 hardcode_shlibpath_var=no
10774 ;;
10775
10776 sysv4)
10777 case $host_vendor in
10778 sni)
10779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10780 hardcode_direct=yes # is this really true???
10781 ;;
10782 siemens)
10783 ## LD is ld it makes a PLAMLIB
10784 ## CC just makes a GrossModule.
10785 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10786 reload_cmds='$CC -r -o $output$reload_objs'
10787 hardcode_direct=no
10788 ;;
10789 motorola)
10790 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10791 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10792 ;;
10793 esac
10794 runpath_var='LD_RUN_PATH'
10795 hardcode_shlibpath_var=no
10796 ;;
10797
10798 sysv4.3*)
10799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10800 hardcode_shlibpath_var=no
10801 export_dynamic_flag_spec='-Bexport'
10802 ;;
10803
10804 sysv4*MP*)
10805 if test -d /usr/nec; then
10806 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10807 hardcode_shlibpath_var=no
10808 runpath_var=LD_RUN_PATH
10809 hardcode_runpath_var=yes
10810 ld_shlibs=yes
10811 fi
10812 ;;
10813
10814 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10815 no_undefined_flag='$wl-z,text'
10816 archive_cmds_need_lc=no
10817 hardcode_shlibpath_var=no
10818 runpath_var='LD_RUN_PATH'
10819
10820 if test yes = "$GCC"; then
10821 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10822 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10823 else
10824 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10825 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10826 fi
10827 ;;
10828
10829 sysv5* | sco3.2v5* | sco5v6*)
10830 # Note: We CANNOT use -z defs as we might desire, because we do not
10831 # link with -lc, and that would cause any symbols used from libc to
10832 # always be unresolved, which means just about no library would
10833 # ever link correctly. If we're not using GNU ld we use -z text
10834 # though, which does catch some bad symbols but isn't as heavy-handed
10835 # as -z defs.
10836 no_undefined_flag='$wl-z,text'
10837 allow_undefined_flag='$wl-z,nodefs'
10838 archive_cmds_need_lc=no
10839 hardcode_shlibpath_var=no
10840 hardcode_libdir_flag_spec='$wl-R,$libdir'
10841 hardcode_libdir_separator=':'
10842 link_all_deplibs=yes
10843 export_dynamic_flag_spec='$wl-Bexport'
10844 runpath_var='LD_RUN_PATH'
10845
10846 if test yes = "$GCC"; then
10847 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10848 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10849 else
10850 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10851 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10852 fi
10853 ;;
10854
10855 uts4*)
10856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10857 hardcode_libdir_flag_spec='-L$libdir'
10858 hardcode_shlibpath_var=no
10859 ;;
10860
10861 *)
10862 ld_shlibs=no
10863 ;;
10864 esac
10865
10866 if test sni = "$host_vendor"; then
10867 case $host in
10868 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10869 export_dynamic_flag_spec='$wl-Blargedynsym'
10870 ;;
10871 esac
10872 fi
10873 fi
10874
10875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10876$as_echo "$ld_shlibs" >&6; }
10877test no = "$ld_shlibs" && can_build_shared=no
10878
10879with_gnu_ld=$with_gnu_ld
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895#
10896# Do we need to explicitly link libc?
10897#
10898case "x$archive_cmds_need_lc" in
10899x|xyes)
10900 # Assume -lc should be added
10901 archive_cmds_need_lc=yes
10902
10903 if test yes,yes = "$GCC,$enable_shared"; then
10904 case $archive_cmds in
10905 *'~'*)
10906 # FIXME: we may have to deal with multi-command sequences.
10907 ;;
10908 '$CC '*)
10909 # Test whether the compiler implicitly links with -lc since on some
10910 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10911 # to ld, don't add -lc before -lgcc.
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10913$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10914if ${lt_cv_archive_cmds_need_lc+:} false; then :
10915 $as_echo_n "(cached) " >&6
10916else
10917 $RM conftest*
10918 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10919
10920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10921 (eval $ac_compile) 2>&5
10922 ac_status=$?
10923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10924 test $ac_status = 0; } 2>conftest.err; then
10925 soname=conftest
10926 lib=conftest
10927 libobjs=conftest.$ac_objext
10928 deplibs=
10929 wl=$lt_prog_compiler_wl
10930 pic_flag=$lt_prog_compiler_pic
10931 compiler_flags=-v
10932 linker_flags=-v
10933 verstring=
10934 output_objdir=.
10935 libname=conftest
10936 lt_save_allow_undefined_flag=$allow_undefined_flag
10937 allow_undefined_flag=
10938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10939 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10940 ac_status=$?
10941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10942 test $ac_status = 0; }
10943 then
10944 lt_cv_archive_cmds_need_lc=no
10945 else
10946 lt_cv_archive_cmds_need_lc=yes
10947 fi
10948 allow_undefined_flag=$lt_save_allow_undefined_flag
10949 else
10950 cat conftest.err 1>&5
10951 fi
10952 $RM conftest*
10953
10954fi
10955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10956$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10957 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10958 ;;
10959 esac
10960 fi
10961 ;;
10962esac
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11116$as_echo_n "checking dynamic linker characteristics... " >&6; }
11117
11118if test yes = "$GCC"; then
11119 case $host_os in
11120 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11121 *) lt_awk_arg='/^libraries:/' ;;
11122 esac
11123 case $host_os in
11124 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11125 *) lt_sed_strip_eq='s|=/|/|g' ;;
11126 esac
11127 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11128 case $lt_search_path_spec in
11129 *\;*)
11130 # if the path contains ";" then we assume it to be the separator
11131 # otherwise default to the standard path separator (i.e. ":") - it is
11132 # assumed that no part of a normal pathname contains ";" but that should
11133 # okay in the real world where ";" in dirpaths is itself problematic.
11134 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11135 ;;
11136 *)
11137 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11138 ;;
11139 esac
11140 # Ok, now we have the path, separated by spaces, we can step through it
11141 # and add multilib dir if necessary...
11142 lt_tmp_lt_search_path_spec=
11143 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11144 # ...but if some path component already ends with the multilib dir we assume
11145 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11146 case "$lt_multi_os_dir; $lt_search_path_spec " in
11147 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11148 lt_multi_os_dir=
11149 ;;
11150 esac
11151 for lt_sys_path in $lt_search_path_spec; do
11152 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11153 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11154 elif test -n "$lt_multi_os_dir"; then
11155 test -d "$lt_sys_path" && \
11156 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11157 fi
11158 done
11159 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11160BEGIN {RS = " "; FS = "/|\n";} {
11161 lt_foo = "";
11162 lt_count = 0;
11163 for (lt_i = NF; lt_i > 0; lt_i--) {
11164 if ($lt_i != "" && $lt_i != ".") {
11165 if ($lt_i == "..") {
11166 lt_count++;
11167 } else {
11168 if (lt_count == 0) {
11169 lt_foo = "/" $lt_i lt_foo;
11170 } else {
11171 lt_count--;
11172 }
11173 }
11174 }
11175 }
11176 if (lt_foo != "") { lt_freq[lt_foo]++; }
11177 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11178}'`
11179 # AWK program above erroneously prepends '/' to C:/dos/paths
11180 # for these hosts.
11181 case $host_os in
11182 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11183 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11184 esac
11185 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11186else
11187 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11188fi
11189library_names_spec=
11190libname_spec='lib$name'
11191soname_spec=
11192shrext_cmds=.so
11193postinstall_cmds=
11194postuninstall_cmds=
11195finish_cmds=
11196finish_eval=
11197shlibpath_var=
11198shlibpath_overrides_runpath=unknown
11199version_type=none
11200dynamic_linker="$host_os ld.so"
11201sys_lib_dlsearch_path_spec="/lib /usr/lib"
11202need_lib_prefix=unknown
11203hardcode_into_libs=no
11204
11205# when you set need_version to no, make sure it does not cause -set_version
11206# flags to be left without arguments
11207need_version=unknown
11208
11209
11210
11211case $host_os in
11212aix3*)
11213 version_type=linux # correct to gnu/linux during the next big refactor
11214 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11215 shlibpath_var=LIBPATH
11216
11217 # AIX 3 has no versioning support, so we append a major version to the name.
11218 soname_spec='$libname$release$shared_ext$major'
11219 ;;
11220
11221aix[4-9]*)
11222 version_type=linux # correct to gnu/linux during the next big refactor
11223 need_lib_prefix=no
11224 need_version=no
11225 hardcode_into_libs=yes
11226 if test ia64 = "$host_cpu"; then
11227 # AIX 5 supports IA64
11228 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11229 shlibpath_var=LD_LIBRARY_PATH
11230 else
11231 # With GCC up to 2.95.x, collect2 would create an import file
11232 # for dependence libraries. The import file would start with
11233 # the line '#! .'. This would cause the generated library to
11234 # depend on '.', always an invalid library. This was fixed in
11235 # development snapshots of GCC prior to 3.0.
11236 case $host_os in
11237 aix4 | aix4.[01] | aix4.[01].*)
11238 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11239 echo ' yes '
11240 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11241 :
11242 else
11243 can_build_shared=no
11244 fi
11245 ;;
11246 esac
11247 # Using Import Files as archive members, it is possible to support
11248 # filename-based versioning of shared library archives on AIX. While
11249 # this would work for both with and without runtime linking, it will
11250 # prevent static linking of such archives. So we do filename-based
11251 # shared library versioning with .so extension only, which is used
11252 # when both runtime linking and shared linking is enabled.
11253 # Unfortunately, runtime linking may impact performance, so we do
11254 # not want this to be the default eventually. Also, we use the
11255 # versioned .so libs for executables only if there is the -brtl
11256 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11257 # To allow for filename-based versioning support, we need to create
11258 # libNAME.so.V as an archive file, containing:
11259 # *) an Import File, referring to the versioned filename of the
11260 # archive as well as the shared archive member, telling the
11261 # bitwidth (32 or 64) of that shared object, and providing the
11262 # list of exported symbols of that shared object, eventually
11263 # decorated with the 'weak' keyword
11264 # *) the shared object with the F_LOADONLY flag set, to really avoid
11265 # it being seen by the linker.
11266 # At run time we better use the real file rather than another symlink,
11267 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11268
11269 case $with_aix_soname,$aix_use_runtimelinking in
11270 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11271 # soname into executable. Probably we can add versioning support to
11272 # collect2, so additional links can be useful in future.
11273 aix,yes) # traditional libtool
11274 dynamic_linker='AIX unversionable lib.so'
11275 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11276 # instead of lib<name>.a to let people know that these are not
11277 # typical AIX shared libraries.
11278 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11279 ;;
11280 aix,no) # traditional AIX only
11281 dynamic_linker='AIX lib.a(lib.so.V)'
11282 # We preserve .a as extension for shared libraries through AIX4.2
11283 # and later when we are not doing run time linking.
11284 library_names_spec='$libname$release.a $libname.a'
11285 soname_spec='$libname$release$shared_ext$major'
11286 ;;
11287 svr4,*) # full svr4 only
11288 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11289 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11290 # We do not specify a path in Import Files, so LIBPATH fires.
11291 shlibpath_overrides_runpath=yes
11292 ;;
11293 *,yes) # both, prefer svr4
11294 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11295 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11296 # unpreferred sharedlib libNAME.a needs extra handling
11297 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11298 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11299 # We do not specify a path in Import Files, so LIBPATH fires.
11300 shlibpath_overrides_runpath=yes
11301 ;;
11302 *,no) # both, prefer aix
11303 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11304 library_names_spec='$libname$release.a $libname.a'
11305 soname_spec='$libname$release$shared_ext$major'
11306 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11307 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11308 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11309 ;;
11310 esac
11311 shlibpath_var=LIBPATH
11312 fi
11313 ;;
11314
11315amigaos*)
11316 case $host_cpu in
11317 powerpc)
11318 # Since July 2007 AmigaOS4 officially supports .so libraries.
11319 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11320 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11321 ;;
11322 m68k)
11323 library_names_spec='$libname.ixlibrary $libname.a'
11324 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11325 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11326 ;;
11327 esac
11328 ;;
11329
11330beos*)
11331 library_names_spec='$libname$shared_ext'
11332 dynamic_linker="$host_os ld.so"
11333 shlibpath_var=LIBRARY_PATH
11334 ;;
11335
11336bsdi[45]*)
11337 version_type=linux # correct to gnu/linux during the next big refactor
11338 need_version=no
11339 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11340 soname_spec='$libname$release$shared_ext$major'
11341 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11342 shlibpath_var=LD_LIBRARY_PATH
11343 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11344 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11345 # the default ld.so.conf also contains /usr/contrib/lib and
11346 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11347 # libtool to hard-code these into programs
11348 ;;
11349
11350cygwin* | mingw* | pw32* | cegcc*)
11351 version_type=windows
11352 shrext_cmds=.dll
11353 need_version=no
11354 need_lib_prefix=no
11355
11356 case $GCC,$cc_basename in
11357 yes,*)
11358 # gcc
11359 library_names_spec='$libname.dll.a'
11360 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11361 postinstall_cmds='base_file=`basename \$file`~
11362 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11363 dldir=$destdir/`dirname \$dlpath`~
11364 test -d \$dldir || mkdir -p \$dldir~
11365 $install_prog $dir/$dlname \$dldir/$dlname~
11366 chmod a+x \$dldir/$dlname~
11367 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11368 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11369 fi'
11370 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11371 dlpath=$dir/\$dldll~
11372 $RM \$dlpath'
11373 shlibpath_overrides_runpath=yes
11374
11375 case $host_os in
11376 cygwin*)
11377 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11378 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11379
11380 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11381 ;;
11382 mingw* | cegcc*)
11383 # MinGW DLLs use traditional 'lib' prefix
11384 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11385 ;;
11386 pw32*)
11387 # pw32 DLLs use 'pw' prefix rather than 'lib'
11388 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11389 ;;
11390 esac
11391 dynamic_linker='Win32 ld.exe'
11392 ;;
11393
11394 *,cl*)
11395 # Native MSVC
11396 libname_spec='$name'
11397 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11398 library_names_spec='$libname.dll.lib'
11399
11400 case $build_os in
11401 mingw*)
11402 sys_lib_search_path_spec=
11403 lt_save_ifs=$IFS
11404 IFS=';'
11405 for lt_path in $LIB
11406 do
11407 IFS=$lt_save_ifs
11408 # Let DOS variable expansion print the short 8.3 style file name.
11409 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11410 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11411 done
11412 IFS=$lt_save_ifs
11413 # Convert to MSYS style.
11414 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11415 ;;
11416 cygwin*)
11417 # Convert to unix form, then to dos form, then back to unix form
11418 # but this time dos style (no spaces!) so that the unix form looks
11419 # like /cygdrive/c/PROGRA~1:/cygdr...
11420 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11421 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11422 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11423 ;;
11424 *)
11425 sys_lib_search_path_spec=$LIB
11426 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11427 # It is most probably a Windows format PATH.
11428 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11429 else
11430 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11431 fi
11432 # FIXME: find the short name or the path components, as spaces are
11433 # common. (e.g. "Program Files" -> "PROGRA~1")
11434 ;;
11435 esac
11436
11437 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11438 postinstall_cmds='base_file=`basename \$file`~
11439 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11440 dldir=$destdir/`dirname \$dlpath`~
11441 test -d \$dldir || mkdir -p \$dldir~
11442 $install_prog $dir/$dlname \$dldir/$dlname'
11443 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11444 dlpath=$dir/\$dldll~
11445 $RM \$dlpath'
11446 shlibpath_overrides_runpath=yes
11447 dynamic_linker='Win32 link.exe'
11448 ;;
11449
11450 *)
11451 # Assume MSVC wrapper
11452 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11453 dynamic_linker='Win32 ld.exe'
11454 ;;
11455 esac
11456 # FIXME: first we should search . and the directory the executable is in
11457 shlibpath_var=PATH
11458 ;;
11459
11460darwin* | rhapsody*)
11461 dynamic_linker="$host_os dyld"
11462 version_type=darwin
11463 need_lib_prefix=no
11464 need_version=no
11465 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11466 soname_spec='$libname$release$major$shared_ext'
11467 shlibpath_overrides_runpath=yes
11468 shlibpath_var=DYLD_LIBRARY_PATH
11469 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11470
11471 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11472 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11473 ;;
11474
11475dgux*)
11476 version_type=linux # correct to gnu/linux during the next big refactor
11477 need_lib_prefix=no
11478 need_version=no
11479 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11480 soname_spec='$libname$release$shared_ext$major'
11481 shlibpath_var=LD_LIBRARY_PATH
11482 ;;
11483
11484freebsd* | dragonfly*)
11485 # DragonFly does not have aout. When/if they implement a new
11486 # versioning mechanism, adjust this.
11487 if test -x /usr/bin/objformat; then
11488 objformat=`/usr/bin/objformat`
11489 else
11490 case $host_os in
11491 freebsd[23].*) objformat=aout ;;
11492 *) objformat=elf ;;
11493 esac
11494 fi
11495 version_type=freebsd-$objformat
11496 case $version_type in
11497 freebsd-elf*)
11498 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11499 soname_spec='$libname$release$shared_ext$major'
11500 need_version=no
11501 need_lib_prefix=no
11502 ;;
11503 freebsd-*)
11504 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11505 need_version=yes
11506 ;;
11507 esac
11508 shlibpath_var=LD_LIBRARY_PATH
11509 case $host_os in
11510 freebsd2.*)
11511 shlibpath_overrides_runpath=yes
11512 ;;
11513 freebsd3.[01]* | freebsdelf3.[01]*)
11514 shlibpath_overrides_runpath=yes
11515 hardcode_into_libs=yes
11516 ;;
11517 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11518 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11519 shlibpath_overrides_runpath=no
11520 hardcode_into_libs=yes
11521 ;;
11522 *) # from 4.6 on, and DragonFly
11523 shlibpath_overrides_runpath=yes
11524 hardcode_into_libs=yes
11525 ;;
11526 esac
11527 ;;
11528
11529haiku*)
11530 version_type=linux # correct to gnu/linux during the next big refactor
11531 need_lib_prefix=no
11532 need_version=no
11533 dynamic_linker="$host_os runtime_loader"
11534 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11535 soname_spec='$libname$release$shared_ext$major'
11536 shlibpath_var=LIBRARY_PATH
11537 shlibpath_overrides_runpath=no
11538 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11539 hardcode_into_libs=yes
11540 ;;
11541
11542hpux9* | hpux10* | hpux11*)
11543 # Give a soname corresponding to the major version so that dld.sl refuses to
11544 # link against other versions.
11545 version_type=sunos
11546 need_lib_prefix=no
11547 need_version=no
11548 case $host_cpu in
11549 ia64*)
11550 shrext_cmds='.so'
11551 hardcode_into_libs=yes
11552 dynamic_linker="$host_os dld.so"
11553 shlibpath_var=LD_LIBRARY_PATH
11554 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11555 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11556 soname_spec='$libname$release$shared_ext$major'
11557 if test 32 = "$HPUX_IA64_MODE"; then
11558 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11559 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11560 else
11561 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11562 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11563 fi
11564 ;;
11565 hppa*64*)
11566 shrext_cmds='.sl'
11567 hardcode_into_libs=yes
11568 dynamic_linker="$host_os dld.sl"
11569 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11570 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11571 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11572 soname_spec='$libname$release$shared_ext$major'
11573 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11574 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11575 ;;
11576 *)
11577 shrext_cmds='.sl'
11578 dynamic_linker="$host_os dld.sl"
11579 shlibpath_var=SHLIB_PATH
11580 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11581 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11582 soname_spec='$libname$release$shared_ext$major'
11583 ;;
11584 esac
11585 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11586 postinstall_cmds='chmod 555 $lib'
11587 # or fails outright, so override atomically:
11588 install_override_mode=555
11589 ;;
11590
11591interix[3-9]*)
11592 version_type=linux # correct to gnu/linux during the next big refactor
11593 need_lib_prefix=no
11594 need_version=no
11595 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11596 soname_spec='$libname$release$shared_ext$major'
11597 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11598 shlibpath_var=LD_LIBRARY_PATH
11599 shlibpath_overrides_runpath=no
11600 hardcode_into_libs=yes
11601 ;;
11602
11603irix5* | irix6* | nonstopux*)
11604 case $host_os in
11605 nonstopux*) version_type=nonstopux ;;
11606 *)
11607 if test yes = "$lt_cv_prog_gnu_ld"; then
11608 version_type=linux # correct to gnu/linux during the next big refactor
11609 else
11610 version_type=irix
11611 fi ;;
11612 esac
11613 need_lib_prefix=no
11614 need_version=no
11615 soname_spec='$libname$release$shared_ext$major'
11616 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11617 case $host_os in
11618 irix5* | nonstopux*)
11619 libsuff= shlibsuff=
11620 ;;
11621 *)
11622 case $LD in # libtool.m4 will add one of these switches to LD
11623 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11624 libsuff= shlibsuff= libmagic=32-bit;;
11625 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11626 libsuff=32 shlibsuff=N32 libmagic=N32;;
11627 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11628 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11629 *) libsuff= shlibsuff= libmagic=never-match;;
11630 esac
11631 ;;
11632 esac
11633 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11634 shlibpath_overrides_runpath=no
11635 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11636 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11637 hardcode_into_libs=yes
11638 ;;
11639
11640# No shared lib support for Linux oldld, aout, or coff.
11641linux*oldld* | linux*aout* | linux*coff*)
11642 dynamic_linker=no
11643 ;;
11644
11645linux*android*)
11646 version_type=none # Android doesn't support versioned libraries.
11647 need_lib_prefix=no
11648 need_version=no
11649 library_names_spec='$libname$release$shared_ext'
11650 soname_spec='$libname$release$shared_ext'
11651 finish_cmds=
11652 shlibpath_var=LD_LIBRARY_PATH
11653 shlibpath_overrides_runpath=yes
11654
11655 # This implies no fast_install, which is unacceptable.
11656 # Some rework will be needed to allow for fast_install
11657 # before this can be enabled.
11658 hardcode_into_libs=yes
11659
11660 dynamic_linker='Android linker'
11661 # Don't embed -rpath directories since the linker doesn't support them.
11662 hardcode_libdir_flag_spec='-L$libdir'
11663 ;;
11664
11665# This must be glibc/ELF.
11666linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11667 version_type=linux # correct to gnu/linux during the next big refactor
11668 need_lib_prefix=no
11669 need_version=no
11670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11671 soname_spec='$libname$release$shared_ext$major'
11672 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11673 shlibpath_var=LD_LIBRARY_PATH
11674 shlibpath_overrides_runpath=no
11675
11676 # Some binutils ld are patched to set DT_RUNPATH
11677 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11678 $as_echo_n "(cached) " >&6
11679else
11680 lt_cv_shlibpath_overrides_runpath=no
11681 save_LDFLAGS=$LDFLAGS
11682 save_libdir=$libdir
11683 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11684 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11686/* end confdefs.h. */
11687
11688int
11689main ()
11690{
11691
11692 ;
11693 return 0;
11694}
11695_ACEOF
11696if ac_fn_c_try_link "$LINENO"; then :
11697 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11698 lt_cv_shlibpath_overrides_runpath=yes
11699fi
11700fi
11701rm -f core conftest.err conftest.$ac_objext \
11702 conftest$ac_exeext conftest.$ac_ext
11703 LDFLAGS=$save_LDFLAGS
11704 libdir=$save_libdir
11705
11706fi
11707
11708 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11709
11710 # This implies no fast_install, which is unacceptable.
11711 # Some rework will be needed to allow for fast_install
11712 # before this can be enabled.
11713 hardcode_into_libs=yes
11714
11715 # Ideally, we could use ldconfig to report *all* directores which are
11716 # searched for libraries, however this is still not possible. Aside from not
11717 # being certain /sbin/ldconfig is available, command
11718 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11719 # even though it is searched at run-time. Try to do the best guess by
11720 # appending ld.so.conf contents (and includes) to the search path.
11721 if test -f /etc/ld.so.conf; then
11722 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' ' '`
11723 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11724 fi
11725
11726 # We used to test for /lib/ld.so.1 and disable shared libraries on
11727 # powerpc, because MkLinux only supported shared libraries with the
11728 # GNU dynamic linker. Since this was broken with cross compilers,
11729 # most powerpc-linux boxes support dynamic linking these days and
11730 # people can always --disable-shared, the test was removed, and we
11731 # assume the GNU/Linux dynamic linker is in use.
11732 dynamic_linker='GNU/Linux ld.so'
11733 ;;
11734
11735netbsdelf*-gnu)
11736 version_type=linux
11737 need_lib_prefix=no
11738 need_version=no
11739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11740 soname_spec='${libname}${release}${shared_ext}$major'
11741 shlibpath_var=LD_LIBRARY_PATH
11742 shlibpath_overrides_runpath=no
11743 hardcode_into_libs=yes
11744 dynamic_linker='NetBSD ld.elf_so'
11745 ;;
11746
11747netbsd*)
11748 version_type=sunos
11749 need_lib_prefix=no
11750 need_version=no
11751 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11752 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11754 dynamic_linker='NetBSD (a.out) ld.so'
11755 else
11756 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11757 soname_spec='$libname$release$shared_ext$major'
11758 dynamic_linker='NetBSD ld.elf_so'
11759 fi
11760 shlibpath_var=LD_LIBRARY_PATH
11761 shlibpath_overrides_runpath=yes
11762 hardcode_into_libs=yes
11763 ;;
11764
11765newsos6)
11766 version_type=linux # correct to gnu/linux during the next big refactor
11767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11768 shlibpath_var=LD_LIBRARY_PATH
11769 shlibpath_overrides_runpath=yes
11770 ;;
11771
11772*nto* | *qnx*)
11773 version_type=qnx
11774 need_lib_prefix=no
11775 need_version=no
11776 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11777 soname_spec='$libname$release$shared_ext$major'
11778 shlibpath_var=LD_LIBRARY_PATH
11779 shlibpath_overrides_runpath=no
11780 hardcode_into_libs=yes
11781 dynamic_linker='ldqnx.so'
11782 ;;
11783
11784openbsd* | bitrig*)
11785 version_type=sunos
11786 sys_lib_dlsearch_path_spec=/usr/lib
11787 need_lib_prefix=no
11788 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11789 need_version=no
11790 else
11791 need_version=yes
11792 fi
11793 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11794 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11795 shlibpath_var=LD_LIBRARY_PATH
11796 shlibpath_overrides_runpath=yes
11797 ;;
11798
11799os2*)
11800 libname_spec='$name'
11801 version_type=windows
11802 shrext_cmds=.dll
11803 need_version=no
11804 need_lib_prefix=no
11805 # OS/2 can only load a DLL with a base name of 8 characters or less.
11806 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11807 v=$($ECHO $release$versuffix | tr -d .-);
11808 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11809 $ECHO $n$v`$shared_ext'
11810 library_names_spec='${libname}_dll.$libext'
11811 dynamic_linker='OS/2 ld.exe'
11812 shlibpath_var=BEGINLIBPATH
11813 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11814 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11815 postinstall_cmds='base_file=`basename \$file`~
11816 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11817 dldir=$destdir/`dirname \$dlpath`~
11818 test -d \$dldir || mkdir -p \$dldir~
11819 $install_prog $dir/$dlname \$dldir/$dlname~
11820 chmod a+x \$dldir/$dlname~
11821 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11822 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11823 fi'
11824 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11825 dlpath=$dir/\$dldll~
11826 $RM \$dlpath'
11827 ;;
11828
11829osf3* | osf4* | osf5*)
11830 version_type=osf
11831 need_lib_prefix=no
11832 need_version=no
11833 soname_spec='$libname$release$shared_ext$major'
11834 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11835 shlibpath_var=LD_LIBRARY_PATH
11836 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11837 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11838 ;;
11839
11840rdos*)
11841 dynamic_linker=no
11842 ;;
11843
11844solaris*)
11845 version_type=linux # correct to gnu/linux during the next big refactor
11846 need_lib_prefix=no
11847 need_version=no
11848 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11849 soname_spec='$libname$release$shared_ext$major'
11850 shlibpath_var=LD_LIBRARY_PATH
11851 shlibpath_overrides_runpath=yes
11852 hardcode_into_libs=yes
11853 # ldd complains unless libraries are executable
11854 postinstall_cmds='chmod +x $lib'
11855 ;;
11856
11857sunos4*)
11858 version_type=sunos
11859 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11860 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11861 shlibpath_var=LD_LIBRARY_PATH
11862 shlibpath_overrides_runpath=yes
11863 if test yes = "$with_gnu_ld"; then
11864 need_lib_prefix=no
11865 fi
11866 need_version=yes
11867 ;;
11868
11869sysv4 | sysv4.3*)
11870 version_type=linux # correct to gnu/linux during the next big refactor
11871 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11872 soname_spec='$libname$release$shared_ext$major'
11873 shlibpath_var=LD_LIBRARY_PATH
11874 case $host_vendor in
11875 sni)
11876 shlibpath_overrides_runpath=no
11877 need_lib_prefix=no
11878 runpath_var=LD_RUN_PATH
11879 ;;
11880 siemens)
11881 need_lib_prefix=no
11882 ;;
11883 motorola)
11884 need_lib_prefix=no
11885 need_version=no
11886 shlibpath_overrides_runpath=no
11887 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11888 ;;
11889 esac
11890 ;;
11891
11892sysv4*MP*)
11893 if test -d /usr/nec; then
11894 version_type=linux # correct to gnu/linux during the next big refactor
11895 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11896 soname_spec='$libname$shared_ext.$major'
11897 shlibpath_var=LD_LIBRARY_PATH
11898 fi
11899 ;;
11900
11901sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11902 version_type=sco
11903 need_lib_prefix=no
11904 need_version=no
11905 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11906 soname_spec='$libname$release$shared_ext$major'
11907 shlibpath_var=LD_LIBRARY_PATH
11908 shlibpath_overrides_runpath=yes
11909 hardcode_into_libs=yes
11910 if test yes = "$with_gnu_ld"; then
11911 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11912 else
11913 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11914 case $host_os in
11915 sco3.2v5*)
11916 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11917 ;;
11918 esac
11919 fi
11920 sys_lib_dlsearch_path_spec='/usr/lib'
11921 ;;
11922
11923tpf*)
11924 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11925 version_type=linux # correct to gnu/linux during the next big refactor
11926 need_lib_prefix=no
11927 need_version=no
11928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11929 shlibpath_var=LD_LIBRARY_PATH
11930 shlibpath_overrides_runpath=no
11931 hardcode_into_libs=yes
11932 ;;
11933
11934uts4*)
11935 version_type=linux # correct to gnu/linux during the next big refactor
11936 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11937 soname_spec='$libname$release$shared_ext$major'
11938 shlibpath_var=LD_LIBRARY_PATH
11939 ;;
11940
11941*)
11942 dynamic_linker=no
11943 ;;
11944esac
11945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11946$as_echo "$dynamic_linker" >&6; }
11947test no = "$dynamic_linker" && can_build_shared=no
11948
11949variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11950if test yes = "$GCC"; then
11951 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11952fi
11953
11954if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11955 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11956fi
11957
11958if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11959 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11960fi
11961
11962# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11963configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11964
11965# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11966func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11967
11968# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11969configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11970
11971
11972
11973
11974
11975
11976
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12068$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12069hardcode_action=
12070if test -n "$hardcode_libdir_flag_spec" ||
12071 test -n "$runpath_var" ||
12072 test yes = "$hardcode_automatic"; then
12073
12074 # We can hardcode non-existent directories.
12075 if test no != "$hardcode_direct" &&
12076 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12077 # have to relink, otherwise we might link with an installed library
12078 # when we should be linking with a yet-to-be-installed one
12079 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12080 test no != "$hardcode_minus_L"; then
12081 # Linking always hardcodes the temporary library directory.
12082 hardcode_action=relink
12083 else
12084 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12085 hardcode_action=immediate
12086 fi
12087else
12088 # We cannot hardcode anything, or else we can only hardcode existing
12089 # directories.
12090 hardcode_action=unsupported
12091fi
12092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12093$as_echo "$hardcode_action" >&6; }
12094
12095if test relink = "$hardcode_action" ||
12096 test yes = "$inherit_rpath"; then
12097 # Fast installation is not supported
12098 enable_fast_install=no
12099elif test yes = "$shlibpath_overrides_runpath" ||
12100 test no = "$enable_shared"; then
12101 # Fast installation is not necessary
12102 enable_fast_install=needless
12103fi
12104
12105
12106
12107
12108
12109
12110 if test yes != "$enable_dlopen"; then
12111 enable_dlopen=unknown
12112 enable_dlopen_self=unknown
12113 enable_dlopen_self_static=unknown
12114else
12115 lt_cv_dlopen=no
12116 lt_cv_dlopen_libs=
12117
12118 case $host_os in
12119 beos*)
12120 lt_cv_dlopen=load_add_on
12121 lt_cv_dlopen_libs=
12122 lt_cv_dlopen_self=yes
12123 ;;
12124
12125 mingw* | pw32* | cegcc*)
12126 lt_cv_dlopen=LoadLibrary
12127 lt_cv_dlopen_libs=
12128 ;;
12129
12130 cygwin*)
12131 lt_cv_dlopen=dlopen
12132 lt_cv_dlopen_libs=
12133 ;;
12134
12135 darwin*)
12136 # if libdl is installed we need to link against it
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12138$as_echo_n "checking for dlopen in -ldl... " >&6; }
12139if ${ac_cv_lib_dl_dlopen+:} false; then :
12140 $as_echo_n "(cached) " >&6
12141else
12142 ac_check_lib_save_LIBS=$LIBS
12143LIBS="-ldl $LIBS"
12144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145/* end confdefs.h. */
12146
12147/* Override any GCC internal prototype to avoid an error.
12148 Use char because int might match the return type of a GCC
12149 builtin and then its argument prototype would still apply. */
12150#ifdef __cplusplus
12151extern "C"
12152#endif
12153char dlopen ();
12154int
12155main ()
12156{
12157return dlopen ();
12158 ;
12159 return 0;
12160}
12161_ACEOF
12162if ac_fn_c_try_link "$LINENO"; then :
12163 ac_cv_lib_dl_dlopen=yes
12164else
12165 ac_cv_lib_dl_dlopen=no
12166fi
12167rm -f core conftest.err conftest.$ac_objext \
12168 conftest$ac_exeext conftest.$ac_ext
12169LIBS=$ac_check_lib_save_LIBS
12170fi
12171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12172$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12173if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12174 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12175else
12176
12177 lt_cv_dlopen=dyld
12178 lt_cv_dlopen_libs=
12179 lt_cv_dlopen_self=yes
12180
12181fi
12182
12183 ;;
12184
12185 tpf*)
12186 # Don't try to run any link tests for TPF. We know it's impossible
12187 # because TPF is a cross-compiler, and we know how we open DSOs.
12188 lt_cv_dlopen=dlopen
12189 lt_cv_dlopen_libs=
12190 lt_cv_dlopen_self=no
12191 ;;
12192
12193 *)
12194 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12195if test "x$ac_cv_func_shl_load" = xyes; then :
12196 lt_cv_dlopen=shl_load
12197else
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12199$as_echo_n "checking for shl_load in -ldld... " >&6; }
12200if ${ac_cv_lib_dld_shl_load+:} false; then :
12201 $as_echo_n "(cached) " >&6
12202else
12203 ac_check_lib_save_LIBS=$LIBS
12204LIBS="-ldld $LIBS"
12205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206/* end confdefs.h. */
12207
12208/* Override any GCC internal prototype to avoid an error.
12209 Use char because int might match the return type of a GCC
12210 builtin and then its argument prototype would still apply. */
12211#ifdef __cplusplus
12212extern "C"
12213#endif
12214char shl_load ();
12215int
12216main ()
12217{
12218return shl_load ();
12219 ;
12220 return 0;
12221}
12222_ACEOF
12223if ac_fn_c_try_link "$LINENO"; then :
12224 ac_cv_lib_dld_shl_load=yes
12225else
12226 ac_cv_lib_dld_shl_load=no
12227fi
12228rm -f core conftest.err conftest.$ac_objext \
12229 conftest$ac_exeext conftest.$ac_ext
12230LIBS=$ac_check_lib_save_LIBS
12231fi
12232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12233$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12234if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12235 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12236else
12237 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12238if test "x$ac_cv_func_dlopen" = xyes; then :
12239 lt_cv_dlopen=dlopen
12240else
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12242$as_echo_n "checking for dlopen in -ldl... " >&6; }
12243if ${ac_cv_lib_dl_dlopen+:} false; then :
12244 $as_echo_n "(cached) " >&6
12245else
12246 ac_check_lib_save_LIBS=$LIBS
12247LIBS="-ldl $LIBS"
12248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12249/* end confdefs.h. */
12250
12251/* Override any GCC internal prototype to avoid an error.
12252 Use char because int might match the return type of a GCC
12253 builtin and then its argument prototype would still apply. */
12254#ifdef __cplusplus
12255extern "C"
12256#endif
12257char dlopen ();
12258int
12259main ()
12260{
12261return dlopen ();
12262 ;
12263 return 0;
12264}
12265_ACEOF
12266if ac_fn_c_try_link "$LINENO"; then :
12267 ac_cv_lib_dl_dlopen=yes
12268else
12269 ac_cv_lib_dl_dlopen=no
12270fi
12271rm -f core conftest.err conftest.$ac_objext \
12272 conftest$ac_exeext conftest.$ac_ext
12273LIBS=$ac_check_lib_save_LIBS
12274fi
12275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12276$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12277if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12278 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12279else
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12281$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12282if ${ac_cv_lib_svld_dlopen+:} false; then :
12283 $as_echo_n "(cached) " >&6
12284else
12285 ac_check_lib_save_LIBS=$LIBS
12286LIBS="-lsvld $LIBS"
12287cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12288/* end confdefs.h. */
12289
12290/* Override any GCC internal prototype to avoid an error.
12291 Use char because int might match the return type of a GCC
12292 builtin and then its argument prototype would still apply. */
12293#ifdef __cplusplus
12294extern "C"
12295#endif
12296char dlopen ();
12297int
12298main ()
12299{
12300return dlopen ();
12301 ;
12302 return 0;
12303}
12304_ACEOF
12305if ac_fn_c_try_link "$LINENO"; then :
12306 ac_cv_lib_svld_dlopen=yes
12307else
12308 ac_cv_lib_svld_dlopen=no
12309fi
12310rm -f core conftest.err conftest.$ac_objext \
12311 conftest$ac_exeext conftest.$ac_ext
12312LIBS=$ac_check_lib_save_LIBS
12313fi
12314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12315$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12316if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12317 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12318else
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12320$as_echo_n "checking for dld_link in -ldld... " >&6; }
12321if ${ac_cv_lib_dld_dld_link+:} false; then :
12322 $as_echo_n "(cached) " >&6
12323else
12324 ac_check_lib_save_LIBS=$LIBS
12325LIBS="-ldld $LIBS"
12326cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12327/* end confdefs.h. */
12328
12329/* Override any GCC internal prototype to avoid an error.
12330 Use char because int might match the return type of a GCC
12331 builtin and then its argument prototype would still apply. */
12332#ifdef __cplusplus
12333extern "C"
12334#endif
12335char dld_link ();
12336int
12337main ()
12338{
12339return dld_link ();
12340 ;
12341 return 0;
12342}
12343_ACEOF
12344if ac_fn_c_try_link "$LINENO"; then :
12345 ac_cv_lib_dld_dld_link=yes
12346else
12347 ac_cv_lib_dld_dld_link=no
12348fi
12349rm -f core conftest.err conftest.$ac_objext \
12350 conftest$ac_exeext conftest.$ac_ext
12351LIBS=$ac_check_lib_save_LIBS
12352fi
12353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12354$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12355if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12356 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12357fi
12358
12359
12360fi
12361
12362
12363fi
12364
12365
12366fi
12367
12368
12369fi
12370
12371
12372fi
12373
12374 ;;
12375 esac
12376
12377 if test no = "$lt_cv_dlopen"; then
12378 enable_dlopen=no
12379 else
12380 enable_dlopen=yes
12381 fi
12382
12383 case $lt_cv_dlopen in
12384 dlopen)
12385 save_CPPFLAGS=$CPPFLAGS
12386 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12387
12388 save_LDFLAGS=$LDFLAGS
12389 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12390
12391 save_LIBS=$LIBS
12392 LIBS="$lt_cv_dlopen_libs $LIBS"
12393
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12395$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12396if ${lt_cv_dlopen_self+:} false; then :
12397 $as_echo_n "(cached) " >&6
12398else
12399 if test yes = "$cross_compiling"; then :
12400 lt_cv_dlopen_self=cross
12401else
12402 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12403 lt_status=$lt_dlunknown
12404 cat > conftest.$ac_ext <<_LT_EOF
12405#line $LINENO "configure"
12406#include "confdefs.h"
12407
12408#if HAVE_DLFCN_H
12409#include <dlfcn.h>
12410#endif
12411
12412#include <stdio.h>
12413
12414#ifdef RTLD_GLOBAL
12415# define LT_DLGLOBAL RTLD_GLOBAL
12416#else
12417# ifdef DL_GLOBAL
12418# define LT_DLGLOBAL DL_GLOBAL
12419# else
12420# define LT_DLGLOBAL 0
12421# endif
12422#endif
12423
12424/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12425 find out it does not work in some platform. */
12426#ifndef LT_DLLAZY_OR_NOW
12427# ifdef RTLD_LAZY
12428# define LT_DLLAZY_OR_NOW RTLD_LAZY
12429# else
12430# ifdef DL_LAZY
12431# define LT_DLLAZY_OR_NOW DL_LAZY
12432# else
12433# ifdef RTLD_NOW
12434# define LT_DLLAZY_OR_NOW RTLD_NOW
12435# else
12436# ifdef DL_NOW
12437# define LT_DLLAZY_OR_NOW DL_NOW
12438# else
12439# define LT_DLLAZY_OR_NOW 0
12440# endif
12441# endif
12442# endif
12443# endif
12444#endif
12445
12446/* When -fvisibility=hidden is used, assume the code has been annotated
12447 correspondingly for the symbols needed. */
12448#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12449int fnord () __attribute__((visibility("default")));
12450#endif
12451
12452int fnord () { return 42; }
12453int main ()
12454{
12455 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12456 int status = $lt_dlunknown;
12457
12458 if (self)
12459 {
12460 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12461 else
12462 {
12463 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12464 else puts (dlerror ());
12465 }
12466 /* dlclose (self); */
12467 }
12468 else
12469 puts (dlerror ());
12470
12471 return status;
12472}
12473_LT_EOF
12474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12475 (eval $ac_link) 2>&5
12476 ac_status=$?
12477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12478 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12479 (./conftest; exit; ) >&5 2>/dev/null
12480 lt_status=$?
12481 case x$lt_status in
12482 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12483 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12484 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12485 esac
12486 else :
12487 # compilation failed
12488 lt_cv_dlopen_self=no
12489 fi
12490fi
12491rm -fr conftest*
12492
12493
12494fi
12495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12496$as_echo "$lt_cv_dlopen_self" >&6; }
12497
12498 if test yes = "$lt_cv_dlopen_self"; then
12499 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12501$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12502if ${lt_cv_dlopen_self_static+:} false; then :
12503 $as_echo_n "(cached) " >&6
12504else
12505 if test yes = "$cross_compiling"; then :
12506 lt_cv_dlopen_self_static=cross
12507else
12508 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12509 lt_status=$lt_dlunknown
12510 cat > conftest.$ac_ext <<_LT_EOF
12511#line $LINENO "configure"
12512#include "confdefs.h"
12513
12514#if HAVE_DLFCN_H
12515#include <dlfcn.h>
12516#endif
12517
12518#include <stdio.h>
12519
12520#ifdef RTLD_GLOBAL
12521# define LT_DLGLOBAL RTLD_GLOBAL
12522#else
12523# ifdef DL_GLOBAL
12524# define LT_DLGLOBAL DL_GLOBAL
12525# else
12526# define LT_DLGLOBAL 0
12527# endif
12528#endif
12529
12530/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12531 find out it does not work in some platform. */
12532#ifndef LT_DLLAZY_OR_NOW
12533# ifdef RTLD_LAZY
12534# define LT_DLLAZY_OR_NOW RTLD_LAZY
12535# else
12536# ifdef DL_LAZY
12537# define LT_DLLAZY_OR_NOW DL_LAZY
12538# else
12539# ifdef RTLD_NOW
12540# define LT_DLLAZY_OR_NOW RTLD_NOW
12541# else
12542# ifdef DL_NOW
12543# define LT_DLLAZY_OR_NOW DL_NOW
12544# else
12545# define LT_DLLAZY_OR_NOW 0
12546# endif
12547# endif
12548# endif
12549# endif
12550#endif
12551
12552/* When -fvisibility=hidden is used, assume the code has been annotated
12553 correspondingly for the symbols needed. */
12554#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12555int fnord () __attribute__((visibility("default")));
12556#endif
12557
12558int fnord () { return 42; }
12559int main ()
12560{
12561 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12562 int status = $lt_dlunknown;
12563
12564 if (self)
12565 {
12566 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12567 else
12568 {
12569 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12570 else puts (dlerror ());
12571 }
12572 /* dlclose (self); */
12573 }
12574 else
12575 puts (dlerror ());
12576
12577 return status;
12578}
12579_LT_EOF
12580 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12581 (eval $ac_link) 2>&5
12582 ac_status=$?
12583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12584 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12585 (./conftest; exit; ) >&5 2>/dev/null
12586 lt_status=$?
12587 case x$lt_status in
12588 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12589 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12590 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12591 esac
12592 else :
12593 # compilation failed
12594 lt_cv_dlopen_self_static=no
12595 fi
12596fi
12597rm -fr conftest*
12598
12599
12600fi
12601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12602$as_echo "$lt_cv_dlopen_self_static" >&6; }
12603 fi
12604
12605 CPPFLAGS=$save_CPPFLAGS
12606 LDFLAGS=$save_LDFLAGS
12607 LIBS=$save_LIBS
12608 ;;
12609 esac
12610
12611 case $lt_cv_dlopen_self in
12612 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12613 *) enable_dlopen_self=unknown ;;
12614 esac
12615
12616 case $lt_cv_dlopen_self_static in
12617 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12618 *) enable_dlopen_self_static=unknown ;;
12619 esac
12620fi
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630
12631
12632
12633
12634
12635
12636
12637
12638striplib=
12639old_striplib=
12640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12641$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12642if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12643 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12644 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12646$as_echo "yes" >&6; }
12647else
12648# FIXME - insert some real tests, host_os isn't really good enough
12649 case $host_os in
12650 darwin*)
12651 if test -n "$STRIP"; then
12652 striplib="$STRIP -x"
12653 old_striplib="$STRIP -S"
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12655$as_echo "yes" >&6; }
12656 else
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12658$as_echo "no" >&6; }
12659 fi
12660 ;;
12661 *)
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12663$as_echo "no" >&6; }
12664 ;;
12665 esac
12666fi
12667
12668
12669
12670
12671
12672
12673
12674
12675
12676
12677
12678
12679 # Report what library types will actually be built
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12681$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12683$as_echo "$can_build_shared" >&6; }
12684
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12686$as_echo_n "checking whether to build shared libraries... " >&6; }
12687 test no = "$can_build_shared" && enable_shared=no
12688
12689 # On AIX, shared libraries and static libraries use the same namespace, and
12690 # are all built from PIC.
12691 case $host_os in
12692 aix3*)
12693 test yes = "$enable_shared" && enable_static=no
12694 if test -n "$RANLIB"; then
12695 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12696 postinstall_cmds='$RANLIB $lib'
12697 fi
12698 ;;
12699
12700 aix[4-9]*)
12701 if test ia64 != "$host_cpu"; then
12702 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12703 yes,aix,yes) ;; # shared object as lib.so file only
12704 yes,svr4,*) ;; # shared object as lib.so archive member only
12705 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12706 esac
12707 fi
12708 ;;
12709 esac
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12711$as_echo "$enable_shared" >&6; }
12712
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12714$as_echo_n "checking whether to build static libraries... " >&6; }
12715 # Make sure either enable_shared or enable_static is yes.
12716 test yes = "$enable_shared" || enable_static=yes
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12718$as_echo "$enable_static" >&6; }
12719
12720
12721
12722
12723fi
12724ac_ext=c
12725ac_cpp='$CPP $CPPFLAGS'
12726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12728ac_compiler_gnu=$ac_cv_c_compiler_gnu
12729
12730CC=$lt_save_CC
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746 ac_config_commands="$ac_config_commands libtool"
12747
12748
12749
12750
12751# Only expand once:
12752
12753
12754
12755
12756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12757$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12758if ${ac_cv_c_const+:} false; then :
12759 $as_echo_n "(cached) " >&6
12760else
12761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12762/* end confdefs.h. */
12763
12764int
12765main ()
12766{
12767
12768#ifndef __cplusplus
12769 /* Ultrix mips cc rejects this sort of thing. */
12770 typedef int charset[2];
12771 const charset cs = { 0, 0 };
12772 /* SunOS 4.1.1 cc rejects this. */
12773 char const *const *pcpcc;
12774 char **ppc;
12775 /* NEC SVR4.0.2 mips cc rejects this. */
12776 struct point {int x, y;};
12777 static struct point const zero = {0,0};
12778 /* AIX XL C 1.02.0.0 rejects this.
12779 It does not let you subtract one const X* pointer from another in
12780 an arm of an if-expression whose if-part is not a constant
12781 expression */
12782 const char *g = "string";
12783 pcpcc = &g + (g ? g-g : 0);
12784 /* HPUX 7.0 cc rejects these. */
12785 ++pcpcc;
12786 ppc = (char**) pcpcc;
12787 pcpcc = (char const *const *) ppc;
12788 { /* SCO 3.2v4 cc rejects this sort of thing. */
12789 char tx;
12790 char *t = &tx;
12791 char const *s = 0 ? (char *) 0 : (char const *) 0;
12792
12793 *t++ = 0;
12794 if (s) return 0;
12795 }
12796 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12797 int x[] = {25, 17};
12798 const int *foo = &x[0];
12799 ++foo;
12800 }
12801 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12802 typedef const int *iptr;
12803 iptr p = 0;
12804 ++p;
12805 }
12806 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12807 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12808 struct s { int j; const int *ap[3]; } bx;
12809 struct s *b = &bx; b->j = 5;
12810 }
12811 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12812 const int foo = 10;
12813 if (!foo) return 0;
12814 }
12815 return !cs[0] && !zero.x;
12816#endif
12817
12818 ;
12819 return 0;
12820}
12821_ACEOF
12822if ac_fn_c_try_compile "$LINENO"; then :
12823 ac_cv_c_const=yes
12824else
12825 ac_cv_c_const=no
12826fi
12827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12828fi
12829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12830$as_echo "$ac_cv_c_const" >&6; }
12831if test $ac_cv_c_const = no; then
12832
12833$as_echo "#define const /**/" >>confdefs.h
12834
12835fi
12836
12837
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
12839$as_echo_n "checking for unsigned long long int... " >&6; }
12840if ${ac_cv_type_unsigned_long_long_int+:} false; then :
12841 $as_echo_n "(cached) " >&6
12842else
12843 ac_cv_type_unsigned_long_long_int=yes
12844 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
12845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12846/* end confdefs.h. */
12847
12848 /* For now, do not test the preprocessor; as of 2007 there are too many
12849 implementations with broken preprocessors. Perhaps this can
12850 be revisited in 2012. In the meantime, code should not expect
12851 #if to work with literals wider than 32 bits. */
12852 /* Test literals. */
12853 long long int ll = 9223372036854775807ll;
12854 long long int nll = -9223372036854775807LL;
12855 unsigned long long int ull = 18446744073709551615ULL;
12856 /* Test constant expressions. */
12857 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
12858 ? 1 : -1)];
12859 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
12860 ? 1 : -1)];
12861 int i = 63;
12862int
12863main ()
12864{
12865/* Test availability of runtime routines for shift and division. */
12866 long long int llmax = 9223372036854775807ll;
12867 unsigned long long int ullmax = 18446744073709551615ull;
12868 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
12869 | (llmax / ll) | (llmax % ll)
12870 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
12871 | (ullmax / ull) | (ullmax % ull));
12872 ;
12873 return 0;
12874}
12875
12876_ACEOF
12877if ac_fn_c_try_link "$LINENO"; then :
12878
12879else
12880 ac_cv_type_unsigned_long_long_int=no
12881fi
12882rm -f core conftest.err conftest.$ac_objext \
12883 conftest$ac_exeext conftest.$ac_ext
12884 fi
12885fi
12886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
12887$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
12888 if test $ac_cv_type_unsigned_long_long_int = yes; then
12889
12890$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
12891
12892 fi
12893
12894
12895
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
12897$as_echo_n "checking for long long int... " >&6; }
12898if ${ac_cv_type_long_long_int+:} false; then :
12899 $as_echo_n "(cached) " >&6
12900else
12901 ac_cv_type_long_long_int=yes
12902 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
12903 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
12904 if test $ac_cv_type_long_long_int = yes; then
12905 if test "$cross_compiling" = yes; then :
12906 :
12907else
12908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12909/* end confdefs.h. */
12910#include <limits.h>
12911 #ifndef LLONG_MAX
12912 # define HALF \
12913 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
12914 # define LLONG_MAX (HALF - 1 + HALF)
12915 #endif
12916int
12917main ()
12918{
12919long long int n = 1;
12920 int i;
12921 for (i = 0; ; i++)
12922 {
12923 long long int m = n << i;
12924 if (m >> i != n)
12925 return 1;
12926 if (LLONG_MAX / 2 < m)
12927 break;
12928 }
12929 return 0;
12930 ;
12931 return 0;
12932}
12933_ACEOF
12934if ac_fn_c_try_run "$LINENO"; then :
12935
12936else
12937 ac_cv_type_long_long_int=no
12938fi
12939rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12940 conftest.$ac_objext conftest.beam conftest.$ac_ext
12941fi
12942
12943 fi
12944 fi
12945fi
12946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
12947$as_echo "$ac_cv_type_long_long_int" >&6; }
12948 if test $ac_cv_type_long_long_int = yes; then
12949
12950$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
12951
12952 fi
12953
12954
12955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ioperm" >&5
12956$as_echo_n "checking for library containing ioperm... " >&6; }
12957if ${ac_cv_search_ioperm+:} false; then :
12958 $as_echo_n "(cached) " >&6
12959else
12960 ac_func_search_save_LIBS=$LIBS
12961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12962/* end confdefs.h. */
12963
12964/* Override any GCC internal prototype to avoid an error.
12965 Use char because int might match the return type of a GCC
12966 builtin and then its argument prototype would still apply. */
12967#ifdef __cplusplus
12968extern "C"
12969#endif
12970char ioperm ();
12971int
12972main ()
12973{
12974return ioperm ();
12975 ;
12976 return 0;
12977}
12978_ACEOF
12979for ac_lib in '' ioperm; do
12980 if test -z "$ac_lib"; then
12981 ac_res="none required"
12982 else
12983 ac_res=-l$ac_lib
12984 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12985 fi
12986 if ac_fn_c_try_link "$LINENO"; then :
12987 ac_cv_search_ioperm=$ac_res
12988fi
12989rm -f core conftest.err conftest.$ac_objext \
12990 conftest$ac_exeext
12991 if ${ac_cv_search_ioperm+:} false; then :
12992 break
12993fi
12994done
12995if ${ac_cv_search_ioperm+:} false; then :
12996
12997else
12998 ac_cv_search_ioperm=no
12999fi
13000rm conftest.$ac_ext
13001LIBS=$ac_func_search_save_LIBS
13002fi
13003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ioperm" >&5
13004$as_echo "$ac_cv_search_ioperm" >&6; }
13005ac_res=$ac_cv_search_ioperm
13006if test "$ac_res" != no; then :
13007 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13008
13009fi
13010
13011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
13012$as_echo_n "checking for library containing dlopen... " >&6; }
13013if ${ac_cv_search_dlopen+:} false; then :
13014 $as_echo_n "(cached) " >&6
13015else
13016 ac_func_search_save_LIBS=$LIBS
13017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13018/* end confdefs.h. */
13019
13020/* Override any GCC internal prototype to avoid an error.
13021 Use char because int might match the return type of a GCC
13022 builtin and then its argument prototype would still apply. */
13023#ifdef __cplusplus
13024extern "C"
13025#endif
13026char dlopen ();
13027int
13028main ()
13029{
13030return dlopen ();
13031 ;
13032 return 0;
13033}
13034_ACEOF
13035for ac_lib in '' dl; do
13036 if test -z "$ac_lib"; then
13037 ac_res="none required"
13038 else
13039 ac_res=-l$ac_lib
13040 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13041 fi
13042 if ac_fn_c_try_link "$LINENO"; then :
13043 ac_cv_search_dlopen=$ac_res
13044fi
13045rm -f core conftest.err conftest.$ac_objext \
13046 conftest$ac_exeext
13047 if ${ac_cv_search_dlopen+:} false; then :
13048 break
13049fi
13050done
13051if ${ac_cv_search_dlopen+:} false; then :
13052
13053else
13054 ac_cv_search_dlopen=no
13055fi
13056rm conftest.$ac_ext
13057LIBS=$ac_func_search_save_LIBS
13058fi
13059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
13060$as_echo "$ac_cv_search_dlopen" >&6; }
13061ac_res=$ac_cv_search_dlopen
13062if test "$ac_res" != no; then :
13063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13064
13065fi
13066
13067
13068for ac_header in sys/socket.h
13069do :
13070 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
13071if test "x$ac_cv_header_sys_socket_h" = xyes; then :
13072 cat >>confdefs.h <<_ACEOF
13073#define HAVE_SYS_SOCKET_H 1
13074_ACEOF
13075
13076fi
13077
13078done
13079
13080for ac_header in elf.h
13081do :
13082 ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default"
13083if test "x$ac_cv_header_elf_h" = xyes; then :
13084 cat >>confdefs.h <<_ACEOF
13085#define HAVE_ELF_H 1
13086_ACEOF
13087
13088fi
13089
13090done
13091
13092for ac_header in dirent.h
13093do :
13094 ac_fn_c_check_header_mongrel "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
13095if test "x$ac_cv_header_dirent_h" = xyes; then :
13096 cat >>confdefs.h <<_ACEOF
13097#define HAVE_DIRENT_H 1
13098_ACEOF
13099
13100fi
13101
13102done
13103
13104for ac_header in fcntl.h
13105do :
13106 ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
13107if test "x$ac_cv_header_fcntl_h" = xyes; then :
13108 cat >>confdefs.h <<_ACEOF
13109#define HAVE_FCNTL_H 1
13110_ACEOF
13111
13112fi
13113
13114done
13115
13116for ac_header in malloc.h
13117do :
13118 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
13119if test "x$ac_cv_header_malloc_h" = xyes; then :
13120 cat >>confdefs.h <<_ACEOF
13121#define HAVE_MALLOC_H 1
13122_ACEOF
13123
13124fi
13125
13126done
13127
13128for ac_header in netdb.h
13129do :
13130 ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
13131if test "x$ac_cv_header_netdb_h" = xyes; then :
13132 cat >>confdefs.h <<_ACEOF
13133#define HAVE_NETDB_H 1
13134_ACEOF
13135
13136fi
13137
13138done
13139
13140for ac_header in poll.h
13141do :
13142 ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
13143if test "x$ac_cv_header_poll_h" = xyes; then :
13144 cat >>confdefs.h <<_ACEOF
13145#define HAVE_POLL_H 1
13146_ACEOF
13147
13148fi
13149
13150done
13151
13152for ac_header in pthread.h
13153do :
13154 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
13155if test "x$ac_cv_header_pthread_h" = xyes; then :
13156 cat >>confdefs.h <<_ACEOF
13157#define HAVE_PTHREAD_H 1
13158_ACEOF
13159
13160fi
13161
13162done
13163
13164for ac_header in strings.h
13165do :
13166 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
13167if test "x$ac_cv_header_strings_h" = xyes; then :
13168 cat >>confdefs.h <<_ACEOF
13169#define HAVE_STRINGS_H 1
13170_ACEOF
13171
13172fi
13173
13174done
13175
13176for ac_header in sys/ioctl.h
13177do :
13178 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
13179if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
13180 cat >>confdefs.h <<_ACEOF
13181#define HAVE_SYS_IOCTL_H 1
13182_ACEOF
13183
13184fi
13185
13186done
13187
13188for ac_header in sys/param.h
13189do :
13190 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
13191if test "x$ac_cv_header_sys_param_h" = xyes; then :
13192 cat >>confdefs.h <<_ACEOF
13193#define HAVE_SYS_PARAM_H 1
13194_ACEOF
13195
13196fi
13197
13198done
13199
13200for ac_header in sys/select.h
13201do :
13202 ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
13203if test "x$ac_cv_header_sys_select_h" = xyes; then :
13204 cat >>confdefs.h <<_ACEOF
13205#define HAVE_SYS_SELECT_H 1
13206_ACEOF
13207
13208fi
13209
13210done
13211
13212for ac_header in sys/stat.h
13213do :
13214 ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
13215if test "x$ac_cv_header_sys_stat_h" = xyes; then :
13216 cat >>confdefs.h <<_ACEOF
13217#define HAVE_SYS_STAT_H 1
13218_ACEOF
13219
13220fi
13221
13222done
13223
13224for ac_header in sys/sysctl.h
13225do :
13226 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "$ac_includes_default"
13227if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
13228 cat >>confdefs.h <<_ACEOF
13229#define HAVE_SYS_SYSCTL_H 1
13230_ACEOF
13231
13232fi
13233
13234done
13235
13236for ac_header in sys/time.h
13237do :
13238 ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
13239if test "x$ac_cv_header_sys_time_h" = xyes; then :
13240 cat >>confdefs.h <<_ACEOF
13241#define HAVE_SYS_TIME_H 1
13242_ACEOF
13243
13244fi
13245
13246done
13247
13248for ac_header in sys/types.h
13249do :
13250 ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
13251if test "x$ac_cv_header_sys_types_h" = xyes; then :
13252 cat >>confdefs.h <<_ACEOF
13253#define HAVE_SYS_TYPES_H 1
13254_ACEOF
13255
13256fi
13257
13258done
13259
13260for ac_header in unistd.h
13261do :
13262 ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13263if test "x$ac_cv_header_unistd_h" = xyes; then :
13264 cat >>confdefs.h <<_ACEOF
13265#define HAVE_UNISTD_H 1
13266_ACEOF
13267
13268fi
13269
13270done
13271
13272for ac_header in arpa/inet.h ifaddrs.h netinet/in.h netinet/tcp.h net/if.h
13273do :
13274 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13275ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <stdio.h>
13276#ifdef STDC_HEADERS
13277# include <stdlib.h>
13278# include <stddef.h>
13279#else
13280# ifdef HAVE_STDLIB_H
13281# include <stdlib.h>
13282# endif
13283#endif
13284#ifdef HAVE_SYS_SOCKET_H
13285# include <sys/socket.h>
13286#endif
13287
13288"
13289if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13290 cat >>confdefs.h <<_ACEOF
13291#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13292_ACEOF
13293
13294fi
13295
13296done
13297
13298
13299
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
13301$as_echo_n "checking whether to enable assertions... " >&6; }
13302 # Check whether --enable-assert was given.
13303if test "${enable_assert+set}" = set; then :
13304 enableval=$enable_assert; ac_enable_assert=$enableval
13305 if test "x$enableval" = xno; then :
13306
13307$as_echo "#define NDEBUG 1" >>confdefs.h
13308
13309elif test "x$enableval" != xyes; then :
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
13311$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
13312 ac_enable_assert=yes
13313fi
13314else
13315 ac_enable_assert=yes
13316fi
13317
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
13319$as_echo "$ac_enable_assert" >&6; }
13320
13321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
13322$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
13323if ${ac_cv_header_stdbool_h+:} false; then :
13324 $as_echo_n "(cached) " >&6
13325else
13326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13327/* end confdefs.h. */
13328
13329 #include <stdbool.h>
13330 #ifndef bool
13331 "error: bool is not defined"
13332 #endif
13333 #ifndef false
13334 "error: false is not defined"
13335 #endif
13336 #if false
13337 "error: false is not 0"
13338 #endif
13339 #ifndef true
13340 "error: true is not defined"
13341 #endif
13342 #if true != 1
13343 "error: true is not 1"
13344 #endif
13345 #ifndef __bool_true_false_are_defined
13346 "error: __bool_true_false_are_defined is not defined"
13347 #endif
13348
13349 struct s { _Bool s: 1; _Bool t; } s;
13350
13351 char a[true == 1 ? 1 : -1];
13352 char b[false == 0 ? 1 : -1];
13353 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
13354 char d[(bool) 0.5 == true ? 1 : -1];
13355 /* See body of main program for 'e'. */
13356 char f[(_Bool) 0.0 == false ? 1 : -1];
13357 char g[true];
13358 char h[sizeof (_Bool)];
13359 char i[sizeof s.t];
13360 enum { j = false, k = true, l = false * true, m = true * 256 };
13361 /* The following fails for
13362 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
13363 _Bool n[m];
13364 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
13365 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
13366 /* Catch a bug in an HP-UX C compiler. See
13367 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
13368 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
13369 */
13370 _Bool q = true;
13371 _Bool *pq = &q;
13372
13373int
13374main ()
13375{
13376
13377 bool e = &s;
13378 *pq |= q;
13379 *pq |= ! q;
13380 /* Refer to every declared value, to avoid compiler optimizations. */
13381 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
13382 + !m + !n + !o + !p + !q + !pq);
13383
13384 ;
13385 return 0;
13386}
13387_ACEOF
13388if ac_fn_c_try_compile "$LINENO"; then :
13389 ac_cv_header_stdbool_h=yes
13390else
13391 ac_cv_header_stdbool_h=no
13392fi
13393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13394fi
13395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
13396$as_echo "$ac_cv_header_stdbool_h" >&6; }
13397 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
13398if test "x$ac_cv_type__Bool" = xyes; then :
13399
13400cat >>confdefs.h <<_ACEOF
13401#define HAVE__BOOL 1
13402_ACEOF
13403
13404
13405fi
13406
13407
13408if test $ac_cv_header_stdbool_h = yes; then
13409
13410$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
13411
13412fi
13413
13414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13415$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13416if ${ac_cv_header_time+:} false; then :
13417 $as_echo_n "(cached) " >&6
13418else
13419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13420/* end confdefs.h. */
13421#include <sys/types.h>
13422#include <sys/time.h>
13423#include <time.h>
13424
13425int
13426main ()
13427{
13428if ((struct tm *) 0)
13429return 0;
13430 ;
13431 return 0;
13432}
13433_ACEOF
13434if ac_fn_c_try_compile "$LINENO"; then :
13435 ac_cv_header_time=yes
13436else
13437 ac_cv_header_time=no
13438fi
13439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13440fi
13441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13442$as_echo "$ac_cv_header_time" >&6; }
13443if test $ac_cv_header_time = yes; then
13444
13445$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13446
13447fi
13448
13449
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13451$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13452if ${ac_cv_c_bigendian+:} false; then :
13453 $as_echo_n "(cached) " >&6
13454else
13455 ac_cv_c_bigendian=unknown
13456 # See if we're dealing with a universal compiler.
13457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13458/* end confdefs.h. */
13459#ifndef __APPLE_CC__
13460 not a universal capable compiler
13461 #endif
13462 typedef int dummy;
13463
13464_ACEOF
13465if ac_fn_c_try_compile "$LINENO"; then :
13466
13467 # Check for potential -arch flags. It is not universal unless
13468 # there are at least two -arch flags with different values.
13469 ac_arch=
13470 ac_prev=
13471 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13472 if test -n "$ac_prev"; then
13473 case $ac_word in
13474 i?86 | x86_64 | ppc | ppc64)
13475 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13476 ac_arch=$ac_word
13477 else
13478 ac_cv_c_bigendian=universal
13479 break
13480 fi
13481 ;;
13482 esac
13483 ac_prev=
13484 elif test "x$ac_word" = "x-arch"; then
13485 ac_prev=arch
13486 fi
13487 done
13488fi
13489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13490 if test $ac_cv_c_bigendian = unknown; then
13491 # See if sys/param.h defines the BYTE_ORDER macro.
13492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13493/* end confdefs.h. */
13494#include <sys/types.h>
13495 #include <sys/param.h>
13496
13497int
13498main ()
13499{
13500#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13501 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13502 && LITTLE_ENDIAN)
13503 bogus endian macros
13504 #endif
13505
13506 ;
13507 return 0;
13508}
13509_ACEOF
13510if ac_fn_c_try_compile "$LINENO"; then :
13511 # It does; now see whether it defined to BIG_ENDIAN or not.
13512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513/* end confdefs.h. */
13514#include <sys/types.h>
13515 #include <sys/param.h>
13516
13517int
13518main ()
13519{
13520#if BYTE_ORDER != BIG_ENDIAN
13521 not big endian
13522 #endif
13523
13524 ;
13525 return 0;
13526}
13527_ACEOF
13528if ac_fn_c_try_compile "$LINENO"; then :
13529 ac_cv_c_bigendian=yes
13530else
13531 ac_cv_c_bigendian=no
13532fi
13533rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13534fi
13535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13536 fi
13537 if test $ac_cv_c_bigendian = unknown; then
13538 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13540/* end confdefs.h. */
13541#include <limits.h>
13542
13543int
13544main ()
13545{
13546#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13547 bogus endian macros
13548 #endif
13549
13550 ;
13551 return 0;
13552}
13553_ACEOF
13554if ac_fn_c_try_compile "$LINENO"; then :
13555 # It does; now see whether it defined to _BIG_ENDIAN or not.
13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557/* end confdefs.h. */
13558#include <limits.h>
13559
13560int
13561main ()
13562{
13563#ifndef _BIG_ENDIAN
13564 not big endian
13565 #endif
13566
13567 ;
13568 return 0;
13569}
13570_ACEOF
13571if ac_fn_c_try_compile "$LINENO"; then :
13572 ac_cv_c_bigendian=yes
13573else
13574 ac_cv_c_bigendian=no
13575fi
13576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13577fi
13578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13579 fi
13580 if test $ac_cv_c_bigendian = unknown; then
13581 # Compile a test program.
13582 if test "$cross_compiling" = yes; then :
13583 # Try to guess by grepping values from an object file.
13584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13585/* end confdefs.h. */
13586short int ascii_mm[] =
13587 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13588 short int ascii_ii[] =
13589 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13590 int use_ascii (int i) {
13591 return ascii_mm[i] + ascii_ii[i];
13592 }
13593 short int ebcdic_ii[] =
13594 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13595 short int ebcdic_mm[] =
13596 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13597 int use_ebcdic (int i) {
13598 return ebcdic_mm[i] + ebcdic_ii[i];
13599 }
13600 extern int foo;
13601
13602int
13603main ()
13604{
13605return use_ascii (foo) == use_ebcdic (foo);
13606 ;
13607 return 0;
13608}
13609_ACEOF
13610if ac_fn_c_try_compile "$LINENO"; then :
13611 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13612 ac_cv_c_bigendian=yes
13613 fi
13614 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13615 if test "$ac_cv_c_bigendian" = unknown; then
13616 ac_cv_c_bigendian=no
13617 else
13618 # finding both strings is unlikely to happen, but who knows?
13619 ac_cv_c_bigendian=unknown
13620 fi
13621 fi
13622fi
13623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13624else
13625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13626/* end confdefs.h. */
13627$ac_includes_default
13628int
13629main ()
13630{
13631
13632 /* Are we little or big endian? From Harbison&Steele. */
13633 union
13634 {
13635 long int l;
13636 char c[sizeof (long int)];
13637 } u;
13638 u.l = 1;
13639 return u.c[sizeof (long int) - 1] == 1;
13640
13641 ;
13642 return 0;
13643}
13644_ACEOF
13645if ac_fn_c_try_run "$LINENO"; then :
13646 ac_cv_c_bigendian=no
13647else
13648 ac_cv_c_bigendian=yes
13649fi
13650rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13651 conftest.$ac_objext conftest.beam conftest.$ac_ext
13652fi
13653
13654 fi
13655fi
13656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13657$as_echo "$ac_cv_c_bigendian" >&6; }
13658 case $ac_cv_c_bigendian in #(
13659 yes)
13660 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13661;; #(
13662 no)
13663 ;; #(
13664 universal)
13665
13666$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13667
13668 ;; #(
13669 *)
13670 as_fn_error $? "unknown endianness
13671 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13672 esac
13673
13674
13675for ac_func in strndup
13676do :
13677 ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_strndup"
13678if test "x$ac_cv_func_strndup" = xyes; then :
13679 cat >>confdefs.h <<_ACEOF
13680#define HAVE_STRNDUP 1
13681_ACEOF
13682
13683fi
13684done
13685
13686for ac_func in strnlen
13687do :
13688 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
13689if test "x$ac_cv_func_strnlen" = xyes; then :
13690 cat >>confdefs.h <<_ACEOF
13691#define HAVE_STRNLEN 1
13692_ACEOF
13693
13694fi
13695done
13696
13697for ac_func in gettimeofday
13698do :
13699 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
13700if test "x$ac_cv_func_gettimeofday" = xyes; then :
13701 cat >>confdefs.h <<_ACEOF
13702#define HAVE_GETTIMEOFDAY 1
13703_ACEOF
13704
13705fi
13706done
13707
13708for ac_func in usleep
13709do :
13710 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
13711if test "x$ac_cv_func_usleep" = xyes; then :
13712 cat >>confdefs.h <<_ACEOF
13713#define HAVE_USLEEP 1
13714_ACEOF
13715
13716fi
13717done
13718
13719for ac_func in vasprintf
13720do :
13721 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
13722if test "x$ac_cv_func_vasprintf" = xyes; then :
13723 cat >>confdefs.h <<_ACEOF
13724#define HAVE_VASPRINTF 1
13725_ACEOF
13726
13727fi
13728done
13729
13730for ac_func in realpath
13731do :
13732 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
13733if test "x$ac_cv_func_realpath" = xyes; then :
13734 cat >>confdefs.h <<_ACEOF
13735#define HAVE_REALPATH 1
13736_ACEOF
13737
13738fi
13739done
13740
13741
13742# guess-rev.sh only exists in the repository, not in the released archives
13743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build a release" >&5
13744$as_echo_n "checking whether to build a release... " >&6; }
13745if test -x "$srcdir/guess-rev.sh"; then :
13746
13747 build_release=no
13748
13749else
13750
13751 build_release=yes
13752
13753fi
13754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_release" >&5
13755$as_echo "$build_release" >&6; }
13756
13757# Adapter drivers
13758# 1st column -- configure option
13759# 2nd column -- description
13760# 3rd column -- symbol used for both config.h and automake
13761
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777
13778
13779
13780# Check whether --enable-doxygen-html was given.
13781if test "${enable_doxygen_html+set}" = set; then :
13782 enableval=$enable_doxygen_html; doxygen_as_html=$enableval
13783else
13784 doxygen_as_html=yes
13785fi
13786
13787
13788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Doxygen as HTML" >&5
13789$as_echo_n "checking whether to build Doxygen as HTML... " >&6; }
13790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen_as_html" >&5
13791$as_echo "$doxygen_as_html" >&6; }
13792
13793# Check whether --enable-doxygen-pdf was given.
13794if test "${enable_doxygen_pdf+set}" = set; then :
13795 enableval=$enable_doxygen_pdf; doxygen_as_pdf=$enableval
13796else
13797 doxygen_as_pdf=no
13798fi
13799
13800
13801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Doxygen as PDF" >&5
13802$as_echo_n "checking whether to build Doxygen as PDF... " >&6; }
13803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $doxygen_as_pdf" >&5
13804$as_echo "$doxygen_as_pdf" >&6; }
13805
13806# Check whether --enable-gccwarnings was given.
13807if test "${enable_gccwarnings+set}" = set; then :
13808 enableval=$enable_gccwarnings; gcc_warnings=$enableval
13809else
13810 gcc_warnings=yes
13811fi
13812
13813
13814# Check whether --enable-wextra was given.
13815if test "${enable_wextra+set}" = set; then :
13816 enableval=$enable_wextra; gcc_wextra=$enableval
13817else
13818 gcc_wextra=$gcc_warnings
13819fi
13820
13821
13822# Check whether --enable-werror was given.
13823if test "${enable_werror+set}" = set; then :
13824 enableval=$enable_werror; gcc_werror=$enableval
13825else
13826 gcc_werror=$gcc_warnings
13827fi
13828
13829
13830# set default verbose options, overridden by following options
13831debug_jtag_io=no
13832debug_usb_io=no
13833debug_usb_comms=no
13834
13835# Check whether --enable-verbose was given.
13836if test "${enable_verbose+set}" = set; then :
13837 enableval=$enable_verbose;
13838 debug_jtag_io=$enableval
13839 debug_usb_io=$enableval
13840 debug_usb_comms=$enableval
13841
13842fi
13843
13844
13845# Check whether --enable-verbose_jtag_io was given.
13846if test "${enable_verbose_jtag_io+set}" = set; then :
13847 enableval=$enable_verbose_jtag_io; debug_jtag_io=$enableval
13848fi
13849
13850
13851# Check whether --enable-verbose_usb_io was given.
13852if test "${enable_verbose_usb_io+set}" = set; then :
13853 enableval=$enable_verbose_usb_io; debug_usb_io=$enableval
13854fi
13855
13856
13857# Check whether --enable-verbose_usb_comms was given.
13858if test "${enable_verbose_usb_comms+set}" = set; then :
13859 enableval=$enable_verbose_usb_comms; debug_usb_comms=$enableval
13860fi
13861
13862
13863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose JTAG I/O messages" >&5
13864$as_echo_n "checking whether to enable verbose JTAG I/O messages... " >&6; };
13865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug_jtag_io" >&5
13866$as_echo "$debug_jtag_io" >&6; }
13867if test "x$debug_jtag_io" = "xyes"; then :
13868
13869
13870$as_echo "#define _DEBUG_JTAG_IO_ 1" >>confdefs.h
13871
13872
13873fi
13874
13875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose USB I/O messages" >&5
13876$as_echo_n "checking whether to enable verbose USB I/O messages... " >&6; };
13877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug_usb_io" >&5
13878$as_echo "$debug_usb_io" >&6; }
13879if test "x$debug_usb_io" = "xyes"; then :
13880
13881
13882$as_echo "#define _DEBUG_USB_IO_ 1" >>confdefs.h
13883
13884
13885fi
13886
13887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose USB communication messages" >&5
13888$as_echo_n "checking whether to enable verbose USB communication messages... " >&6; };
13889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug_usb_comms" >&5
13890$as_echo "$debug_usb_comms" >&6; }
13891if test "x$debug_usb_comms" = "xyes"; then :
13892
13893
13894$as_echo "#define _DEBUG_USB_COMMS_ 1" >>confdefs.h
13895
13896
13897fi
13898
13899debug_malloc=no
13900# Check whether --enable-malloc_logging was given.
13901if test "${enable_malloc_logging+set}" = set; then :
13902 enableval=$enable_malloc_logging; debug_malloc=$enableval
13903fi
13904
13905
13906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable malloc free space logging" >&5
13907$as_echo_n "checking whether to enable malloc free space logging... " >&6; };
13908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug_malloc" >&5
13909$as_echo "$debug_malloc" >&6; }
13910if test "x$debug_malloc" = "xyes"; then :
13911
13912
13913$as_echo "#define _DEBUG_FREE_SPACE_ 1" >>confdefs.h
13914
13915
13916fi
13917
13918# Check whether --enable-dummy was given.
13919if test "${enable_dummy+set}" = set; then :
13920 enableval=$enable_dummy; build_dummy=$enableval
13921else
13922 build_dummy=no
13923fi
13924
13925
13926
13927
13928
13929 # Check whether --enable-ftdi was given.
13930if test "${enable_ftdi+set}" = set; then :
13931 enableval=$enable_ftdi;
13932else
13933 enable_ftdi=auto
13934fi
13935
13936 # Check whether --enable-stlink was given.
13937if test "${enable_stlink+set}" = set; then :
13938 enableval=$enable_stlink;
13939else
13940 enable_stlink=auto
13941fi
13942
13943 # Check whether --enable-ti-icdi was given.
13944if test "${enable_ti_icdi+set}" = set; then :
13945 enableval=$enable_ti_icdi;
13946else
13947 enable_ti_icdi=auto
13948fi
13949
13950 # Check whether --enable-ulink was given.
13951if test "${enable_ulink+set}" = set; then :
13952 enableval=$enable_ulink;
13953else
13954 enable_ulink=auto
13955fi
13956
13957 # Check whether --enable-usb-blaster-2 was given.
13958if test "${enable_usb_blaster_2+set}" = set; then :
13959 enableval=$enable_usb_blaster_2;
13960else
13961 enable_usb_blaster_2=auto
13962fi
13963
13964 # Check whether --enable-vsllink was given.
13965if test "${enable_vsllink+set}" = set; then :
13966 enableval=$enable_vsllink;
13967else
13968 enable_vsllink=auto
13969fi
13970
13971 # Check whether --enable-osbdm was given.
13972if test "${enable_osbdm+set}" = set; then :
13973 enableval=$enable_osbdm;
13974else
13975 enable_osbdm=auto
13976fi
13977
13978 # Check whether --enable-opendous was given.
13979if test "${enable_opendous+set}" = set; then :
13980 enableval=$enable_opendous;
13981else
13982 enable_opendous=auto
13983fi
13984
13985 # Check whether --enable-aice was given.
13986if test "${enable_aice+set}" = set; then :
13987 enableval=$enable_aice;
13988else
13989 enable_aice=auto
13990fi
13991
13992 # Check whether --enable-usbprog was given.
13993if test "${enable_usbprog+set}" = set; then :
13994 enableval=$enable_usbprog;
13995else
13996 enable_usbprog=auto
13997fi
13998
13999 # Check whether --enable-rlink was given.
14000if test "${enable_rlink+set}" = set; then :
14001 enableval=$enable_rlink;
14002else
14003 enable_rlink=auto
14004fi
14005
14006 # Check whether --enable-armjtagew was given.
14007if test "${enable_armjtagew+set}" = set; then :
14008 enableval=$enable_armjtagew;
14009else
14010 enable_armjtagew=auto
14011fi
14012
14013 # Check whether --enable-cmsis-dap was given.
14014if test "${enable_cmsis_dap+set}" = set; then :
14015 enableval=$enable_cmsis_dap;
14016else
14017 enable_cmsis_dap=auto
14018fi
14019
14020 # Check whether --enable-usb-blaster was given.
14021if test "${enable_usb_blaster+set}" = set; then :
14022 enableval=$enable_usb_blaster;
14023else
14024 enable_usb_blaster=auto
14025fi
14026
14027 # Check whether --enable-presto was given.
14028if test "${enable_presto+set}" = set; then :
14029 enableval=$enable_presto;
14030else
14031 enable_presto=auto
14032fi
14033
14034 # Check whether --enable-openjtag was given.
14035if test "${enable_openjtag+set}" = set; then :
14036 enableval=$enable_openjtag;
14037else
14038 enable_openjtag=auto
14039fi
14040
14041 # Check whether --enable-jlink was given.
14042if test "${enable_jlink+set}" = set; then :
14043 enableval=$enable_jlink;
14044else
14045 enable_jlink=auto
14046fi
14047
14048
14049
14050
14051# Check whether --enable-parport was given.
14052if test "${enable_parport+set}" = set; then :
14053 enableval=$enable_parport; build_parport=$enableval
14054else
14055 build_parport=no
14056fi
14057
14058
14059# Check whether --enable-parport_ppdev was given.
14060if test "${enable_parport_ppdev+set}" = set; then :
14061 enableval=$enable_parport_ppdev; parport_use_ppdev=$enableval
14062else
14063 parport_use_ppdev=yes
14064fi
14065
14066
14067# Check whether --enable-parport_giveio was given.
14068if test "${enable_parport_giveio+set}" = set; then :
14069 enableval=$enable_parport_giveio; parport_use_giveio=$enableval
14070else
14071 parport_use_giveio=
14072fi
14073
14074
14075# Check whether --enable-jtag_vpi was given.
14076if test "${enable_jtag_vpi+set}" = set; then :
14077 enableval=$enable_jtag_vpi; build_jtag_vpi=$enableval
14078else
14079 build_jtag_vpi=no
14080fi
14081
14082
14083# Check whether --enable-amtjtagaccel was given.
14084if test "${enable_amtjtagaccel+set}" = set; then :
14085 enableval=$enable_amtjtagaccel; build_amtjtagaccel=$enableval
14086else
14087 build_amtjtagaccel=no
14088fi
14089
14090
14091# Check whether --enable-zy1000_master was given.
14092if test "${enable_zy1000_master+set}" = set; then :
14093 enableval=$enable_zy1000_master; build_zy1000_master=$enableval
14094else
14095 build_zy1000_master=no
14096fi
14097
14098
14099# Check whether --enable-zy1000 was given.
14100if test "${enable_zy1000+set}" = set; then :
14101 enableval=$enable_zy1000; build_zy1000=$enableval
14102else
14103 build_zy1000=no
14104fi
14105
14106
14107# Check whether --enable-ioutil was given.
14108if test "${enable_ioutil+set}" = set; then :
14109 enableval=$enable_ioutil; build_ioutil=$enableval
14110else
14111 build_ioutil=no
14112fi
14113
14114
14115case "${host_cpu}" in #(
14116 arm*) :
14117
14118 # Check whether --enable-ep93xx was given.
14119if test "${enable_ep93xx+set}" = set; then :
14120 enableval=$enable_ep93xx; build_ep93xx=$enableval
14121else
14122 build_ep93xx=no
14123fi
14124
14125
14126 # Check whether --enable-at91rm9200 was given.
14127if test "${enable_at91rm9200+set}" = set; then :
14128 enableval=$enable_at91rm9200; build_at91rm9200=$enableval
14129else
14130 build_at91rm9200=no
14131fi
14132
14133
14134 # Check whether --enable-bcm2835gpio was given.
14135if test "${enable_bcm2835gpio+set}" = set; then :
14136 enableval=$enable_bcm2835gpio; build_bcm2835gpio=$enableval
14137else
14138 build_bcm2835gpio=no
14139fi
14140
14141 ;; #(
14142 *) :
14143
14144 build_ep93xx=no
14145 build_at91rm9200=no
14146 build_bcm2835gpio=no
14147 ;;
14148esac
14149
14150# Check whether --enable-gw16012 was given.
14151if test "${enable_gw16012+set}" = set; then :
14152 enableval=$enable_gw16012; build_gw16012=$enableval
14153else
14154 build_gw16012=no
14155fi
14156
14157
14158# Check whether --enable-oocd_trace was given.
14159if test "${enable_oocd_trace+set}" = set; then :
14160 enableval=$enable_oocd_trace; build_oocd_trace=$enableval
14161else
14162 build_oocd_trace=no
14163fi
14164
14165
14166# Check whether --enable-buspirate was given.
14167if test "${enable_buspirate+set}" = set; then :
14168 enableval=$enable_buspirate; build_buspirate=$enableval
14169else
14170 build_buspirate=no
14171fi
14172
14173
14174# Check whether --enable-sysfsgpio was given.
14175if test "${enable_sysfsgpio+set}" = set; then :
14176 enableval=$enable_sysfsgpio; build_sysfsgpio=$enableval
14177else
14178 build_sysfsgpio=no
14179fi
14180
14181
14182case $host_os in #(
14183 linux*) :
14184 ;; #(
14185 *) :
14186
14187 if test "x$build_sysfsgpio" = "xyes"; then :
14188
14189 as_fn_error $? "sysfsgpio is only available on linux" "$LINENO" 5
14190
14191fi
14192 ;;
14193esac
14194
14195# Check whether --enable-minidriver_dummy was given.
14196if test "${enable_minidriver_dummy+set}" = set; then :
14197 enableval=$enable_minidriver_dummy; build_minidriver_dummy=$enableval
14198else
14199 build_minidriver_dummy=no
14200fi
14201
14202
14203# Check whether --enable-internal-jimtcl was given.
14204if test "${enable_internal_jimtcl+set}" = set; then :
14205 enableval=$enable_internal_jimtcl; use_internal_jimtcl=$enableval
14206else
14207 use_internal_jimtcl=yes
14208fi
14209
14210
14211# Check whether --enable-internal-libjaylink was given.
14212if test "${enable_internal_libjaylink+set}" = set; then :
14213 enableval=$enable_internal_libjaylink; use_internal_libjaylink=$enableval
14214else
14215 use_internal_libjaylink=yes
14216fi
14217
14218
14219build_minidriver=no
14220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ZY1000 minidriver" >&5
14221$as_echo_n "checking whether to enable ZY1000 minidriver... " >&6; }
14222if test "x$build_zy1000" = "xyes"; then :
14223
14224 if test "x$build_minidriver" = "xyes"; then :
14225
14226 as_fn_error $? "Multiple minidriver options have been enabled." "$LINENO" 5
14227
14228fi
14229
14230$as_echo "#define HAVE_JTAG_MINIDRIVER_H 1" >>confdefs.h
14231
14232 build_minidriver=yes
14233
14234fi
14235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_zy1000" >&5
14236$as_echo "$build_zy1000" >&6; }
14237
14238# Check whether --enable-remote-bitbang was given.
14239if test "${enable_remote_bitbang+set}" = set; then :
14240 enableval=$enable_remote_bitbang; build_remote_bitbang=$enableval
14241else
14242 build_remote_bitbang=no
14243fi
14244
14245
14246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable dummy minidriver" >&5
14247$as_echo_n "checking whether to enable dummy minidriver... " >&6; }
14248if test "x$build_minidriver_dummy" = "xyes"; then :
14249
14250 if test "x$build_minidriver" = "xyes"; then :
14251
14252 as_fn_error $? "Multiple minidriver options have been enabled." "$LINENO" 5
14253
14254fi
14255 build_minidriver=yes
14256
14257$as_echo "#define BUILD_MINIDRIVER_DUMMY 1" >>confdefs.h
14258
14259
14260$as_echo "#define HAVE_JTAG_MINIDRIVER_H 1" >>confdefs.h
14261
14262
14263fi
14264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_minidriver_dummy" >&5
14265$as_echo "$build_minidriver_dummy" >&6; }
14266
14267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether standard drivers can be built" >&5
14268$as_echo_n "checking whether standard drivers can be built... " >&6; }
14269if test "x$build_minidriver" = "xyes"; then :
14270
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14272$as_echo "no" >&6; }
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using the minidriver disables all other drivers." >&5
14274$as_echo "$as_me: WARNING: Using the minidriver disables all other drivers." >&2;}
14275 sleep 2
14276
14277else
14278
14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14280$as_echo "yes" >&6; }
14281
14282fi
14283
14284case "${host_cpu}" in #(
14285 i?86|x86*) :
14286 ;; #(
14287 *) :
14288
14289 if test "x$parport_use_ppdev" = "xno"; then :
14290
14291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --disable-parport-ppdev is not supported by the host CPU" >&5
14292$as_echo "$as_me: WARNING: --disable-parport-ppdev is not supported by the host CPU" >&2;}
14293
14294fi
14295 parport_use_ppdev=yes
14296 ;;
14297esac
14298
14299case $host in #(
14300 *-cygwin*) :
14301
14302 is_win32=yes
14303 parport_use_ppdev=no
14304
14305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14306/* end confdefs.h. */
14307
14308int
14309main ()
14310{
14311return __MINGW32__;
14312 ;
14313 return 0;
14314}
14315_ACEOF
14316if ac_fn_c_try_compile "$LINENO"; then :
14317 is_mingw=yes
14318else
14319 is_mingw=no
14320fi
14321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14322 if test "x$is_mingw" = "xyes"; then :
14323
14324 if test "x$parport_use_giveio" = "xno"; then :
14325
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --disable-parport-giveio is not supported by MinGW32 hosts" >&5
14327$as_echo "$as_me: WARNING: --disable-parport-giveio is not supported by MinGW32 hosts" >&2;}
14328
14329fi
14330 parport_use_giveio=yes
14331 is_cygwin=no
14332
14333else
14334
14335 is_cygwin=yes
14336 # sys/io.h needed under cygwin for parport access
14337 if test "x$build_parport" = "xyes"; then :
14338
14339 for ac_header in sys/io.h
14340do :
14341 ac_fn_c_check_header_mongrel "$LINENO" "sys/io.h" "ac_cv_header_sys_io_h" "$ac_includes_default"
14342if test "x$ac_cv_header_sys_io_h" = xyes; then :
14343 cat >>confdefs.h <<_ACEOF
14344#define HAVE_SYS_IO_H 1
14345_ACEOF
14346
14347else
14348 as_fn_error $? "Please install the cygwin ioperm package" "$LINENO" 5
14349fi
14350
14351done
14352
14353
14354fi
14355
14356fi
14357 ;; #(
14358 *-mingw* | *-msys*) :
14359
14360 is_mingw=yes
14361 is_win32=yes
14362 parport_use_ppdev=no
14363
14364 if test "x$parport_use_giveio" = "xno"; then :
14365
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --disable-parport-giveio is not supported by MinGW32 hosts" >&5
14367$as_echo "$as_me: WARNING: --disable-parport-giveio is not supported by MinGW32 hosts" >&2;}
14368
14369fi
14370 parport_use_giveio=yes
14371
14372 if test "x$build_buspirate" = "xyes"; then :
14373
14374 as_fn_error $? "buspirate currently not supported by MinGW32 hosts" "$LINENO" 5
14375
14376fi
14377
14378 HOST_CPPFLAGS=-D__USE_MINGW_ANSI_STDIO
14379
14380 ;; #(
14381 *darwin*) :
14382
14383 is_darwin=yes
14384
14385 if test "x$parport_use_giveio" = "xyes"; then :
14386
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-parport-giveio cannot be used by Darwin hosts" >&5
14388$as_echo "$as_me: WARNING: --enable-parport-giveio cannot be used by Darwin hosts" >&2;}
14389
14390fi
14391 parport_use_giveio=no
14392 ;; #(
14393 *) :
14394
14395 if test "x$parport_use_giveio" = "xyes"; then :
14396
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-parport-giveio cannot be used by $host hosts" >&5
14398$as_echo "$as_me: WARNING: --enable-parport-giveio cannot be used by $host hosts" >&2;}
14399
14400fi
14401 parport_use_giveio=no
14402 ;;
14403esac
14404
14405if test "x$is_cygwin" = "xyes"; then :
14406
14407
14408$as_echo "#define IS_CYGWIN 1" >>confdefs.h
14409
14410
14411else
14412
14413
14414$as_echo "#define IS_CYGWIN 0" >>confdefs.h
14415
14416
14417fi
14418
14419if test "x$is_mingw" = "xyes"; then :
14420
14421
14422$as_echo "#define IS_MINGW 1" >>confdefs.h
14423
14424
14425else
14426
14427
14428$as_echo "#define IS_MINGW 0" >>confdefs.h
14429
14430
14431fi
14432
14433if test "x$is_win32" = "xyes"; then :
14434
14435
14436$as_echo "#define IS_WIN32 1" >>confdefs.h
14437
14438
14439else
14440
14441
14442$as_echo "#define IS_WIN32 0" >>confdefs.h
14443
14444
14445fi
14446
14447if test "x$is_darwin" = "xyes"; then :
14448
14449
14450$as_echo "#define IS_DARWIN 1" >>confdefs.h
14451
14452
14453else
14454
14455
14456$as_echo "#define IS_DARWIN 0" >>confdefs.h
14457
14458
14459fi
14460
14461if test "x$build_parport" = "xyes"; then :
14462
14463 build_bitbang=yes
14464
14465$as_echo "#define BUILD_PARPORT 1" >>confdefs.h
14466
14467
14468else
14469
14470
14471$as_echo "#define BUILD_PARPORT 0" >>confdefs.h
14472
14473
14474fi
14475
14476if test "x$build_dummy" = "xyes"; then :
14477
14478 build_bitbang=yes
14479
14480$as_echo "#define BUILD_DUMMY 1" >>confdefs.h
14481
14482
14483else
14484
14485
14486$as_echo "#define BUILD_DUMMY 0" >>confdefs.h
14487
14488
14489fi
14490
14491if test "x$build_ep93xx" = "xyes"; then :
14492
14493 build_bitbang=yes
14494
14495$as_echo "#define BUILD_EP93XX 1" >>confdefs.h
14496
14497
14498else
14499
14500
14501$as_echo "#define BUILD_EP93XX 0" >>confdefs.h
14502
14503
14504fi
14505
14506if test "x$build_zy1000" = "xyes"; then :
14507
14508
14509$as_echo "#define BUILD_ZY1000 1" >>confdefs.h
14510
14511
14512else
14513
14514
14515$as_echo "#define BUILD_ZY1000 0" >>confdefs.h
14516
14517
14518fi
14519
14520if test "x$build_zy1000_master" = "xyes"; then :
14521
14522
14523$as_echo "#define BUILD_ZY1000_MASTER 1" >>confdefs.h
14524
14525
14526else
14527
14528
14529$as_echo "#define BUILD_ZY1000_MASTER 0" >>confdefs.h
14530
14531
14532fi
14533
14534if test "x$build_at91rm9200" = "xyes"; then :
14535
14536 build_bitbang=yes
14537
14538$as_echo "#define BUILD_AT91RM9200 1" >>confdefs.h
14539
14540
14541else
14542
14543
14544$as_echo "#define BUILD_AT91RM9200 0" >>confdefs.h
14545
14546
14547fi
14548
14549if test "x$build_bcm2835gpio" = "xyes"; then :
14550
14551 build_bitbang=yes
14552
14553$as_echo "#define BUILD_BCM2835GPIO 1" >>confdefs.h
14554
14555
14556else
14557
14558
14559$as_echo "#define BUILD_BCM2835GPIO 0" >>confdefs.h
14560
14561
14562fi
14563
14564if test "x$parport_use_ppdev" = "xyes"; then :
14565
14566
14567$as_echo "#define PARPORT_USE_PPDEV 1" >>confdefs.h
14568
14569
14570else
14571
14572
14573$as_echo "#define PARPORT_USE_PPDEV 0" >>confdefs.h
14574
14575
14576fi
14577
14578if test "x$parport_use_giveio" = "xyes"; then :
14579
14580
14581$as_echo "#define PARPORT_USE_GIVEIO 1" >>confdefs.h
14582
14583
14584else
14585
14586
14587$as_echo "#define PARPORT_USE_GIVEIO 0" >>confdefs.h
14588
14589
14590fi
14591
14592if test "x$build_jtag_vpi" = "xyes"; then :
14593
14594
14595$as_echo "#define BUILD_JTAG_VPI 1" >>confdefs.h
14596
14597
14598else
14599
14600
14601$as_echo "#define BUILD_JTAG_VPI 0" >>confdefs.h
14602
14603
14604fi
14605
14606if test "x$build_amtjtagaccel" = "xyes"; then :
14607
14608
14609$as_echo "#define BUILD_AMTJTAGACCEL 1" >>confdefs.h
14610
14611
14612else
14613
14614
14615$as_echo "#define BUILD_AMTJTAGACCEL 0" >>confdefs.h
14616
14617
14618fi
14619
14620if test "x$build_gw16012" = "xyes"; then :
14621
14622
14623$as_echo "#define BUILD_GW16012 1" >>confdefs.h
14624
14625
14626else
14627
14628
14629$as_echo "#define BUILD_GW16012 0" >>confdefs.h
14630
14631
14632fi
14633
14634if test "x$build_oocd_trace" = "xyes"; then :
14635
14636
14637$as_echo "#define BUILD_OOCD_TRACE 1" >>confdefs.h
14638
14639
14640else
14641
14642
14643$as_echo "#define BUILD_OOCD_TRACE 0" >>confdefs.h
14644
14645
14646fi
14647
14648if test "x$build_buspirate" = "xyes"; then :
14649
14650
14651$as_echo "#define BUILD_BUSPIRATE 1" >>confdefs.h
14652
14653
14654else
14655
14656
14657$as_echo "#define BUILD_BUSPIRATE 0" >>confdefs.h
14658
14659
14660fi
14661
14662
14663
14664if test "x$use_internal_jimtcl" = "xyes"; then :
14665
14666 if test -f "$srcdir/jimtcl/configure.ac"; then :
14667
14668
14669subdirs="$subdirs jimtcl"
14670
14671
14672echo -e '#!/bin/sh\nexec "`dirname "'\$'0"`/configure" --disable-install-jim --with-ext="eventloop array clock regexp stdlib tclcompat" --without-ext="default" "'\$'@"' > "$srcdir/jimtcl/configure.gnu"
14673
14674
14675
14676else
14677
14678 as_fn_error $? "jimtcl not found, run git submodule init and git submodule update." "$LINENO" 5
14679
14680fi
14681
14682fi
14683
14684if test "x$build_remote_bitbang" = "xyes"; then :
14685
14686 build_bitbang=yes
14687
14688$as_echo "#define BUILD_REMOTE_BITBANG 1" >>confdefs.h
14689
14690
14691else
14692
14693
14694$as_echo "#define BUILD_REMOTE_BITBANG 0" >>confdefs.h
14695
14696
14697fi
14698
14699if test "x$build_sysfsgpio" = "xyes"; then :
14700
14701 build_bitbang=yes
14702
14703$as_echo "#define BUILD_SYSFSGPIO 1" >>confdefs.h
14704
14705
14706else
14707
14708
14709$as_echo "#define BUILD_SYSFSGPIO 0" >>confdefs.h
14710
14711
14712fi
14713
14714
14715pkg_failed=no
14716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB1" >&5
14717$as_echo_n "checking for LIBUSB1... " >&6; }
14718
14719if test -n "$LIBUSB1_CFLAGS"; then
14720 pkg_cv_LIBUSB1_CFLAGS="$LIBUSB1_CFLAGS"
14721 elif test -n "$PKG_CONFIG"; then
14722 if test -n "$PKG_CONFIG" && \
14723 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
14724 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
14725 ac_status=$?
14726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14727 test $ac_status = 0; }; then
14728 pkg_cv_LIBUSB1_CFLAGS=`$PKG_CONFIG --cflags "libusb-1.0" 2>/dev/null`
14729 test "x$?" != "x0" && pkg_failed=yes
14730else
14731 pkg_failed=yes
14732fi
14733 else
14734 pkg_failed=untried
14735fi
14736if test -n "$LIBUSB1_LIBS"; then
14737 pkg_cv_LIBUSB1_LIBS="$LIBUSB1_LIBS"
14738 elif test -n "$PKG_CONFIG"; then
14739 if test -n "$PKG_CONFIG" && \
14740 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0\""; } >&5
14741 ($PKG_CONFIG --exists --print-errors "libusb-1.0") 2>&5
14742 ac_status=$?
14743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14744 test $ac_status = 0; }; then
14745 pkg_cv_LIBUSB1_LIBS=`$PKG_CONFIG --libs "libusb-1.0" 2>/dev/null`
14746 test "x$?" != "x0" && pkg_failed=yes
14747else
14748 pkg_failed=yes
14749fi
14750 else
14751 pkg_failed=untried
14752fi
14753
14754
14755
14756if test $pkg_failed = yes; then
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14758$as_echo "no" >&6; }
14759
14760if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14761 _pkg_short_errors_supported=yes
14762else
14763 _pkg_short_errors_supported=no
14764fi
14765 if test $_pkg_short_errors_supported = yes; then
14766 LIBUSB1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb-1.0" 2>&1`
14767 else
14768 LIBUSB1_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb-1.0" 2>&1`
14769 fi
14770 # Put the nasty error message in config.log where it belongs
14771 echo "$LIBUSB1_PKG_ERRORS" >&5
14772
14773
14774 use_libusb1=no
14775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libusb-1.x not found, trying legacy libusb-0.1 as a fallback; consider installing libusb-1.x instead" >&5
14776$as_echo "$as_me: WARNING: libusb-1.x not found, trying legacy libusb-0.1 as a fallback; consider installing libusb-1.x instead" >&2;}
14777
14778elif test $pkg_failed = untried; then
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14780$as_echo "no" >&6; }
14781
14782 use_libusb1=no
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libusb-1.x not found, trying legacy libusb-0.1 as a fallback; consider installing libusb-1.x instead" >&5
14784$as_echo "$as_me: WARNING: libusb-1.x not found, trying legacy libusb-0.1 as a fallback; consider installing libusb-1.x instead" >&2;}
14785
14786else
14787 LIBUSB1_CFLAGS=$pkg_cv_LIBUSB1_CFLAGS
14788 LIBUSB1_LIBS=$pkg_cv_LIBUSB1_LIBS
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14790$as_echo "yes" >&6; }
14791
14792 use_libusb1=yes
14793
14794$as_echo "#define HAVE_LIBUSB1 1" >>confdefs.h
14795
14796 if test -n "$PKG_CONFIG" && \
14797 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 1.0.9\""; } >&5
14798 ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 1.0.9") 2>&5
14799 ac_status=$?
14800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14801 test $ac_status = 0; }; then
14802
14803$as_echo "#define HAVE_LIBUSB_ERROR_NAME 1" >>confdefs.h
14804
14805else
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libusb-1.x older than 1.0.9 detected, consider updating" >&5
14807$as_echo "$as_me: WARNING: libusb-1.x older than 1.0.9 detected, consider updating" >&2;}
14808fi
14809 LIBUSB1_CFLAGS=`echo $LIBUSB1_CFLAGS | sed 's/-I/-isystem /'`
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: libusb-1.0 header bug workaround: LIBUSB1_CFLAGS changed to \"$LIBUSB1_CFLAGS\"" >&5
14811$as_echo "$as_me: libusb-1.0 header bug workaround: LIBUSB1_CFLAGS changed to \"$LIBUSB1_CFLAGS\"" >&6;}
14812 if test -n "$PKG_CONFIG" && \
14813 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb-1.0 >= 1.0.16\""; } >&5
14814 ($PKG_CONFIG --exists --print-errors "libusb-1.0 >= 1.0.16") 2>&5
14815 ac_status=$?
14816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14817 test $ac_status = 0; }; then
14818
14819$as_echo "#define HAVE_LIBUSB_GET_PORT_NUMBERS 1" >>confdefs.h
14820
14821fi
14822
14823fi
14824
14825
14826pkg_failed=no
14827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUSB0" >&5
14828$as_echo_n "checking for LIBUSB0... " >&6; }
14829
14830if test -n "$LIBUSB0_CFLAGS"; then
14831 pkg_cv_LIBUSB0_CFLAGS="$LIBUSB0_CFLAGS"
14832 elif test -n "$PKG_CONFIG"; then
14833 if test -n "$PKG_CONFIG" && \
14834 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb\""; } >&5
14835 ($PKG_CONFIG --exists --print-errors "libusb") 2>&5
14836 ac_status=$?
14837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14838 test $ac_status = 0; }; then
14839 pkg_cv_LIBUSB0_CFLAGS=`$PKG_CONFIG --cflags "libusb" 2>/dev/null`
14840 test "x$?" != "x0" && pkg_failed=yes
14841else
14842 pkg_failed=yes
14843fi
14844 else
14845 pkg_failed=untried
14846fi
14847if test -n "$LIBUSB0_LIBS"; then
14848 pkg_cv_LIBUSB0_LIBS="$LIBUSB0_LIBS"
14849 elif test -n "$PKG_CONFIG"; then
14850 if test -n "$PKG_CONFIG" && \
14851 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libusb\""; } >&5
14852 ($PKG_CONFIG --exists --print-errors "libusb") 2>&5
14853 ac_status=$?
14854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14855 test $ac_status = 0; }; then
14856 pkg_cv_LIBUSB0_LIBS=`$PKG_CONFIG --libs "libusb" 2>/dev/null`
14857 test "x$?" != "x0" && pkg_failed=yes
14858else
14859 pkg_failed=yes
14860fi
14861 else
14862 pkg_failed=untried
14863fi
14864
14865
14866
14867if test $pkg_failed = yes; then
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14869$as_echo "no" >&6; }
14870
14871if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14872 _pkg_short_errors_supported=yes
14873else
14874 _pkg_short_errors_supported=no
14875fi
14876 if test $_pkg_short_errors_supported = yes; then
14877 LIBUSB0_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libusb" 2>&1`
14878 else
14879 LIBUSB0_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libusb" 2>&1`
14880 fi
14881 # Put the nasty error message in config.log where it belongs
14882 echo "$LIBUSB0_PKG_ERRORS" >&5
14883
14884 use_libusb0=no
14885elif test $pkg_failed = untried; then
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14887$as_echo "no" >&6; }
14888 use_libusb0=no
14889else
14890 LIBUSB0_CFLAGS=$pkg_cv_LIBUSB0_CFLAGS
14891 LIBUSB0_LIBS=$pkg_cv_LIBUSB0_LIBS
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14893$as_echo "yes" >&6; }
14894 use_libusb0=yes
14895fi
14896
14897for hidapi_lib in hidapi hidapi-hidraw hidapi-libusb; do
14898
14899pkg_failed=no
14900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HIDAPI" >&5
14901$as_echo_n "checking for HIDAPI... " >&6; }
14902
14903if test -n "$HIDAPI_CFLAGS"; then
14904 pkg_cv_HIDAPI_CFLAGS="$HIDAPI_CFLAGS"
14905 elif test -n "$PKG_CONFIG"; then
14906 if test -n "$PKG_CONFIG" && \
14907 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$hidapi_lib\""; } >&5
14908 ($PKG_CONFIG --exists --print-errors "$hidapi_lib") 2>&5
14909 ac_status=$?
14910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14911 test $ac_status = 0; }; then
14912 pkg_cv_HIDAPI_CFLAGS=`$PKG_CONFIG --cflags "$hidapi_lib" 2>/dev/null`
14913 test "x$?" != "x0" && pkg_failed=yes
14914else
14915 pkg_failed=yes
14916fi
14917 else
14918 pkg_failed=untried
14919fi
14920if test -n "$HIDAPI_LIBS"; then
14921 pkg_cv_HIDAPI_LIBS="$HIDAPI_LIBS"
14922 elif test -n "$PKG_CONFIG"; then
14923 if test -n "$PKG_CONFIG" && \
14924 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$hidapi_lib\""; } >&5
14925 ($PKG_CONFIG --exists --print-errors "$hidapi_lib") 2>&5
14926 ac_status=$?
14927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14928 test $ac_status = 0; }; then
14929 pkg_cv_HIDAPI_LIBS=`$PKG_CONFIG --libs "$hidapi_lib" 2>/dev/null`
14930 test "x$?" != "x0" && pkg_failed=yes
14931else
14932 pkg_failed=yes
14933fi
14934 else
14935 pkg_failed=untried
14936fi
14937
14938
14939
14940if test $pkg_failed = yes; then
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14942$as_echo "no" >&6; }
14943
14944if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14945 _pkg_short_errors_supported=yes
14946else
14947 _pkg_short_errors_supported=no
14948fi
14949 if test $_pkg_short_errors_supported = yes; then
14950 HIDAPI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$hidapi_lib" 2>&1`
14951 else
14952 HIDAPI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$hidapi_lib" 2>&1`
14953 fi
14954 # Put the nasty error message in config.log where it belongs
14955 echo "$HIDAPI_PKG_ERRORS" >&5
14956
14957
14958 use_hidapi=no
14959
14960elif test $pkg_failed = untried; then
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14962$as_echo "no" >&6; }
14963
14964 use_hidapi=no
14965
14966else
14967 HIDAPI_CFLAGS=$pkg_cv_HIDAPI_CFLAGS
14968 HIDAPI_LIBS=$pkg_cv_HIDAPI_LIBS
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14970$as_echo "yes" >&6; }
14971
14972 use_hidapi=yes
14973 break
14974
14975fi
14976done
14977
14978
14979pkg_failed=no
14980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFTDI" >&5
14981$as_echo_n "checking for LIBFTDI... " >&6; }
14982
14983if test -n "$LIBFTDI_CFLAGS"; then
14984 pkg_cv_LIBFTDI_CFLAGS="$LIBFTDI_CFLAGS"
14985 elif test -n "$PKG_CONFIG"; then
14986 if test -n "$PKG_CONFIG" && \
14987 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libftdi1\""; } >&5
14988 ($PKG_CONFIG --exists --print-errors "libftdi1") 2>&5
14989 ac_status=$?
14990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14991 test $ac_status = 0; }; then
14992 pkg_cv_LIBFTDI_CFLAGS=`$PKG_CONFIG --cflags "libftdi1" 2>/dev/null`
14993 test "x$?" != "x0" && pkg_failed=yes
14994else
14995 pkg_failed=yes
14996fi
14997 else
14998 pkg_failed=untried
14999fi
15000if test -n "$LIBFTDI_LIBS"; then
15001 pkg_cv_LIBFTDI_LIBS="$LIBFTDI_LIBS"
15002 elif test -n "$PKG_CONFIG"; then
15003 if test -n "$PKG_CONFIG" && \
15004 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libftdi1\""; } >&5
15005 ($PKG_CONFIG --exists --print-errors "libftdi1") 2>&5
15006 ac_status=$?
15007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15008 test $ac_status = 0; }; then
15009 pkg_cv_LIBFTDI_LIBS=`$PKG_CONFIG --libs "libftdi1" 2>/dev/null`
15010 test "x$?" != "x0" && pkg_failed=yes
15011else
15012 pkg_failed=yes
15013fi
15014 else
15015 pkg_failed=untried
15016fi
15017
15018
15019
15020if test $pkg_failed = yes; then
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15022$as_echo "no" >&6; }
15023
15024if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15025 _pkg_short_errors_supported=yes
15026else
15027 _pkg_short_errors_supported=no
15028fi
15029 if test $_pkg_short_errors_supported = yes; then
15030 LIBFTDI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libftdi1" 2>&1`
15031 else
15032 LIBFTDI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libftdi1" 2>&1`
15033 fi
15034 # Put the nasty error message in config.log where it belongs
15035 echo "$LIBFTDI_PKG_ERRORS" >&5
15036
15037
15038
15039pkg_failed=no
15040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFTDI" >&5
15041$as_echo_n "checking for LIBFTDI... " >&6; }
15042
15043if test -n "$LIBFTDI_CFLAGS"; then
15044 pkg_cv_LIBFTDI_CFLAGS="$LIBFTDI_CFLAGS"
15045 elif test -n "$PKG_CONFIG"; then
15046 if test -n "$PKG_CONFIG" && \
15047 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libftdi\""; } >&5
15048 ($PKG_CONFIG --exists --print-errors "libftdi") 2>&5
15049 ac_status=$?
15050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15051 test $ac_status = 0; }; then
15052 pkg_cv_LIBFTDI_CFLAGS=`$PKG_CONFIG --cflags "libftdi" 2>/dev/null`
15053 test "x$?" != "x0" && pkg_failed=yes
15054else
15055 pkg_failed=yes
15056fi
15057 else
15058 pkg_failed=untried
15059fi
15060if test -n "$LIBFTDI_LIBS"; then
15061 pkg_cv_LIBFTDI_LIBS="$LIBFTDI_LIBS"
15062 elif test -n "$PKG_CONFIG"; then
15063 if test -n "$PKG_CONFIG" && \
15064 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libftdi\""; } >&5
15065 ($PKG_CONFIG --exists --print-errors "libftdi") 2>&5
15066 ac_status=$?
15067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15068 test $ac_status = 0; }; then
15069 pkg_cv_LIBFTDI_LIBS=`$PKG_CONFIG --libs "libftdi" 2>/dev/null`
15070 test "x$?" != "x0" && pkg_failed=yes
15071else
15072 pkg_failed=yes
15073fi
15074 else
15075 pkg_failed=untried
15076fi
15077
15078
15079
15080if test $pkg_failed = yes; then
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15082$as_echo "no" >&6; }
15083
15084if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15085 _pkg_short_errors_supported=yes
15086else
15087 _pkg_short_errors_supported=no
15088fi
15089 if test $_pkg_short_errors_supported = yes; then
15090 LIBFTDI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libftdi" 2>&1`
15091 else
15092 LIBFTDI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libftdi" 2>&1`
15093 fi
15094 # Put the nasty error message in config.log where it belongs
15095 echo "$LIBFTDI_PKG_ERRORS" >&5
15096
15097 use_libftdi=no
15098elif test $pkg_failed = untried; then
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15100$as_echo "no" >&6; }
15101 use_libftdi=no
15102else
15103 LIBFTDI_CFLAGS=$pkg_cv_LIBFTDI_CFLAGS
15104 LIBFTDI_LIBS=$pkg_cv_LIBFTDI_LIBS
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15106$as_echo "yes" >&6; }
15107 use_libftdi=yes
15108fi
15109
15110elif test $pkg_failed = untried; then
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15112$as_echo "no" >&6; }
15113
15114
15115pkg_failed=no
15116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFTDI" >&5
15117$as_echo_n "checking for LIBFTDI... " >&6; }
15118
15119if test -n "$LIBFTDI_CFLAGS"; then
15120 pkg_cv_LIBFTDI_CFLAGS="$LIBFTDI_CFLAGS"
15121 elif test -n "$PKG_CONFIG"; then
15122 if test -n "$PKG_CONFIG" && \
15123 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libftdi\""; } >&5
15124 ($PKG_CONFIG --exists --print-errors "libftdi") 2>&5
15125 ac_status=$?
15126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15127 test $ac_status = 0; }; then
15128 pkg_cv_LIBFTDI_CFLAGS=`$PKG_CONFIG --cflags "libftdi" 2>/dev/null`
15129 test "x$?" != "x0" && pkg_failed=yes
15130else
15131 pkg_failed=yes
15132fi
15133 else
15134 pkg_failed=untried
15135fi
15136if test -n "$LIBFTDI_LIBS"; then
15137 pkg_cv_LIBFTDI_LIBS="$LIBFTDI_LIBS"
15138 elif test -n "$PKG_CONFIG"; then
15139 if test -n "$PKG_CONFIG" && \
15140 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libftdi\""; } >&5
15141 ($PKG_CONFIG --exists --print-errors "libftdi") 2>&5
15142 ac_status=$?
15143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15144 test $ac_status = 0; }; then
15145 pkg_cv_LIBFTDI_LIBS=`$PKG_CONFIG --libs "libftdi" 2>/dev/null`
15146 test "x$?" != "x0" && pkg_failed=yes
15147else
15148 pkg_failed=yes
15149fi
15150 else
15151 pkg_failed=untried
15152fi
15153
15154
15155
15156if test $pkg_failed = yes; then
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15158$as_echo "no" >&6; }
15159
15160if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15161 _pkg_short_errors_supported=yes
15162else
15163 _pkg_short_errors_supported=no
15164fi
15165 if test $_pkg_short_errors_supported = yes; then
15166 LIBFTDI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libftdi" 2>&1`
15167 else
15168 LIBFTDI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libftdi" 2>&1`
15169 fi
15170 # Put the nasty error message in config.log where it belongs
15171 echo "$LIBFTDI_PKG_ERRORS" >&5
15172
15173 use_libftdi=no
15174elif test $pkg_failed = untried; then
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15176$as_echo "no" >&6; }
15177 use_libftdi=no
15178else
15179 LIBFTDI_CFLAGS=$pkg_cv_LIBFTDI_CFLAGS
15180 LIBFTDI_LIBS=$pkg_cv_LIBFTDI_LIBS
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15182$as_echo "yes" >&6; }
15183 use_libftdi=yes
15184fi
15185
15186else
15187 LIBFTDI_CFLAGS=$pkg_cv_LIBFTDI_CFLAGS
15188 LIBFTDI_LIBS=$pkg_cv_LIBFTDI_LIBS
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15190$as_echo "yes" >&6; }
15191 use_libftdi=yes
15192fi
15193
15194
15195pkg_failed=no
15196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBJAYLINK" >&5
15197$as_echo_n "checking for LIBJAYLINK... " >&6; }
15198
15199if test -n "$LIBJAYLINK_CFLAGS"; then
15200 pkg_cv_LIBJAYLINK_CFLAGS="$LIBJAYLINK_CFLAGS"
15201 elif test -n "$PKG_CONFIG"; then
15202 if test -n "$PKG_CONFIG" && \
15203 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjaylink >= 0.1\""; } >&5
15204 ($PKG_CONFIG --exists --print-errors "libjaylink >= 0.1") 2>&5
15205 ac_status=$?
15206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15207 test $ac_status = 0; }; then
15208 pkg_cv_LIBJAYLINK_CFLAGS=`$PKG_CONFIG --cflags "libjaylink >= 0.1" 2>/dev/null`
15209 test "x$?" != "x0" && pkg_failed=yes
15210else
15211 pkg_failed=yes
15212fi
15213 else
15214 pkg_failed=untried
15215fi
15216if test -n "$LIBJAYLINK_LIBS"; then
15217 pkg_cv_LIBJAYLINK_LIBS="$LIBJAYLINK_LIBS"
15218 elif test -n "$PKG_CONFIG"; then
15219 if test -n "$PKG_CONFIG" && \
15220 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libjaylink >= 0.1\""; } >&5
15221 ($PKG_CONFIG --exists --print-errors "libjaylink >= 0.1") 2>&5
15222 ac_status=$?
15223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15224 test $ac_status = 0; }; then
15225 pkg_cv_LIBJAYLINK_LIBS=`$PKG_CONFIG --libs "libjaylink >= 0.1" 2>/dev/null`
15226 test "x$?" != "x0" && pkg_failed=yes
15227else
15228 pkg_failed=yes
15229fi
15230 else
15231 pkg_failed=untried
15232fi
15233
15234
15235
15236if test $pkg_failed = yes; then
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15238$as_echo "no" >&6; }
15239
15240if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15241 _pkg_short_errors_supported=yes
15242else
15243 _pkg_short_errors_supported=no
15244fi
15245 if test $_pkg_short_errors_supported = yes; then
15246 LIBJAYLINK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libjaylink >= 0.1" 2>&1`
15247 else
15248 LIBJAYLINK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libjaylink >= 0.1" 2>&1`
15249 fi
15250 # Put the nasty error message in config.log where it belongs
15251 echo "$LIBJAYLINK_PKG_ERRORS" >&5
15252
15253 use_libjaylink=no
15254elif test $pkg_failed = untried; then
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15256$as_echo "no" >&6; }
15257 use_libjaylink=no
15258else
15259 LIBJAYLINK_CFLAGS=$pkg_cv_LIBJAYLINK_CFLAGS
15260 LIBJAYLINK_LIBS=$pkg_cv_LIBJAYLINK_LIBS
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15262$as_echo "yes" >&6; }
15263 use_libjaylink=yes
15264fi
15265
15266
15267
15268
15269
15270 if test "x$use_libusb1" = "xyes"; then :
15271
15272 if test "x$enable_ftdi" != "xno"; then :
15273
15274
15275$as_echo "#define BUILD_FTDI 1" >>confdefs.h
15276
15277
15278else
15279
15280
15281$as_echo "#define BUILD_FTDI 0" >>confdefs.h
15282
15283
15284fi
15285
15286else
15287
15288 if test "x$enable_ftdi" = "xyes"; then :
15289
15290 as_fn_error $? "libusb-1.x is required for the MPSSE mode of FTDI based devices" "$LINENO" 5
15291
15292fi
15293 enable_ftdi=no
15294
15295fi
15296 if test "x$enable_ftdi" != "xno"; then
15297 FTDI_TRUE=
15298 FTDI_FALSE='#'
15299else
15300 FTDI_TRUE='#'
15301 FTDI_FALSE=
15302fi
15303
15304
15305 if test "x$use_libusb1" = "xyes"; then :
15306
15307 if test "x$enable_stlink" != "xno"; then :
15308
15309
15310$as_echo "#define BUILD_HLADAPTER_STLINK 1" >>confdefs.h
15311
15312
15313else
15314
15315
15316$as_echo "#define BUILD_HLADAPTER_STLINK 0" >>confdefs.h
15317
15318
15319fi
15320
15321else
15322
15323 if test "x$enable_stlink" = "xyes"; then :
15324
15325 as_fn_error $? "libusb-1.x is required for the ST-Link JTAG Programmer" "$LINENO" 5
15326
15327fi
15328 enable_stlink=no
15329
15330fi
15331 if test "x$enable_stlink" != "xno"; then
15332 HLADAPTER_STLINK_TRUE=
15333 HLADAPTER_STLINK_FALSE='#'
15334else
15335 HLADAPTER_STLINK_TRUE='#'
15336 HLADAPTER_STLINK_FALSE=
15337fi
15338
15339
15340 if test "x$use_libusb1" = "xyes"; then :
15341
15342 if test "x$enable_ti_icdi" != "xno"; then :
15343
15344
15345$as_echo "#define BUILD_HLADAPTER_ICDI 1" >>confdefs.h
15346
15347
15348else
15349
15350
15351$as_echo "#define BUILD_HLADAPTER_ICDI 0" >>confdefs.h
15352
15353
15354fi
15355
15356else
15357
15358 if test "x$enable_ti_icdi" = "xyes"; then :
15359
15360 as_fn_error $? "libusb-1.x is required for the TI ICDI JTAG Programmer" "$LINENO" 5
15361
15362fi
15363 enable_ti_icdi=no
15364
15365fi
15366 if test "x$enable_ti_icdi" != "xno"; then
15367 HLADAPTER_ICDI_TRUE=
15368 HLADAPTER_ICDI_FALSE='#'
15369else
15370 HLADAPTER_ICDI_TRUE='#'
15371 HLADAPTER_ICDI_FALSE=
15372fi
15373
15374
15375 if test "x$use_libusb1" = "xyes"; then :
15376
15377 if test "x$enable_ulink" != "xno"; then :
15378
15379
15380$as_echo "#define BUILD_ULINK 1" >>confdefs.h
15381
15382
15383else
15384
15385
15386$as_echo "#define BUILD_ULINK 0" >>confdefs.h
15387
15388
15389fi
15390
15391else
15392
15393 if test "x$enable_ulink" = "xyes"; then :
15394
15395 as_fn_error $? "libusb-1.x is required for the Keil ULINK JTAG Programmer" "$LINENO" 5
15396
15397fi
15398 enable_ulink=no
15399
15400fi
15401 if test "x$enable_ulink" != "xno"; then
15402 ULINK_TRUE=
15403 ULINK_FALSE='#'
15404else
15405 ULINK_TRUE='#'
15406 ULINK_FALSE=
15407fi
15408
15409
15410 if test "x$use_libusb1" = "xyes"; then :
15411
15412 if test "x$enable_usb_blaster_2" != "xno"; then :
15413
15414
15415$as_echo "#define BUILD_USB_BLASTER_2 1" >>confdefs.h
15416
15417
15418else
15419
15420
15421$as_echo "#define BUILD_USB_BLASTER_2 0" >>confdefs.h
15422
15423
15424fi
15425
15426else
15427
15428 if test "x$enable_usb_blaster_2" = "xyes"; then :
15429
15430 as_fn_error $? "libusb-1.x is required for the Altera USB-Blaster II Compatible" "$LINENO" 5
15431
15432fi
15433 enable_usb_blaster_2=no
15434
15435fi
15436 if test "x$enable_usb_blaster_2" != "xno"; then
15437 USB_BLASTER_2_TRUE=
15438 USB_BLASTER_2_FALSE='#'
15439else
15440 USB_BLASTER_2_TRUE='#'
15441 USB_BLASTER_2_FALSE=
15442fi
15443
15444
15445 if test "x$use_libusb1" = "xyes"; then :
15446
15447 if test "x$enable_vsllink" != "xno"; then :
15448
15449
15450$as_echo "#define BUILD_VSLLINK 1" >>confdefs.h
15451
15452
15453else
15454
15455
15456$as_echo "#define BUILD_VSLLINK 0" >>confdefs.h
15457
15458
15459fi
15460
15461else
15462
15463 if test "x$enable_vsllink" = "xyes"; then :
15464
15465 as_fn_error $? "libusb-1.x is required for the Versaloon-Link JTAG Programmer" "$LINENO" 5
15466
15467fi
15468 enable_vsllink=no
15469
15470fi
15471 if test "x$enable_vsllink" != "xno"; then
15472 VSLLINK_TRUE=
15473 VSLLINK_FALSE='#'
15474else
15475 VSLLINK_TRUE='#'
15476 VSLLINK_FALSE=
15477fi
15478
15479
15480
15481
15482
15483 if test "x$use_libusb1" = "xyes" -o "x$use_libusb0" = "xyes"; then :
15484
15485 if test "x$enable_osbdm" != "xno"; then :
15486
15487
15488$as_echo "#define BUILD_OSBDM 1" >>confdefs.h
15489
15490
15491else
15492
15493
15494$as_echo "#define BUILD_OSBDM 0" >>confdefs.h
15495
15496
15497fi
15498
15499else
15500
15501 if test "x$enable_osbdm" = "xyes"; then :
15502
15503 as_fn_error $? "libusb-1.x or libusb-0.1 is required for the OSBDM (JTAG only) Programmer" "$LINENO" 5
15504
15505fi
15506 enable_osbdm=no
15507
15508fi
15509 if test "x$enable_osbdm" != "xno"; then
15510 OSBDM_TRUE=
15511 OSBDM_FALSE='#'
15512else
15513 OSBDM_TRUE='#'
15514 OSBDM_FALSE=
15515fi
15516
15517
15518 if test "x$use_libusb1" = "xyes" -o "x$use_libusb0" = "xyes"; then :
15519
15520 if test "x$enable_opendous" != "xno"; then :
15521
15522
15523$as_echo "#define BUILD_OPENDOUS 1" >>confdefs.h
15524
15525
15526else
15527
15528
15529$as_echo "#define BUILD_OPENDOUS 0" >>confdefs.h
15530
15531
15532fi
15533
15534else
15535
15536 if test "x$enable_opendous" = "xyes"; then :
15537
15538 as_fn_error $? "libusb-1.x or libusb-0.1 is required for the eStick/opendous JTAG Programmer" "$LINENO" 5
15539
15540fi
15541 enable_opendous=no
15542
15543fi
15544 if test "x$enable_opendous" != "xno"; then
15545 OPENDOUS_TRUE=
15546 OPENDOUS_FALSE='#'
15547else
15548 OPENDOUS_TRUE='#'
15549 OPENDOUS_FALSE=
15550fi
15551
15552
15553 if test "x$use_libusb1" = "xyes" -o "x$use_libusb0" = "xyes"; then :
15554
15555 if test "x$enable_aice" != "xno"; then :
15556
15557
15558$as_echo "#define BUILD_AICE 1" >>confdefs.h
15559
15560
15561else
15562
15563
15564$as_echo "#define BUILD_AICE 0" >>confdefs.h
15565
15566
15567fi
15568
15569else
15570
15571 if test "x$enable_aice" = "xyes"; then :
15572
15573 as_fn_error $? "libusb-1.x or libusb-0.1 is required for the Andes JTAG Programmer" "$LINENO" 5
15574
15575fi
15576 enable_aice=no
15577
15578fi
15579 if test "x$enable_aice" != "xno"; then
15580 AICE_TRUE=
15581 AICE_FALSE='#'
15582else
15583 AICE_TRUE='#'
15584 AICE_FALSE=
15585fi
15586
15587
15588
15589
15590
15591 if test "x$use_libusb0" = "xyes"; then :
15592
15593 if test "x$enable_usbprog" != "xno"; then :
15594
15595
15596$as_echo "#define BUILD_USBPROG 1" >>confdefs.h
15597
15598
15599else
15600
15601
15602$as_echo "#define BUILD_USBPROG 0" >>confdefs.h
15603
15604
15605fi
15606
15607else
15608
15609 if test "x$enable_usbprog" = "xyes"; then :
15610
15611 as_fn_error $? "libusb-0.1 is required for the USBProg JTAG Programmer" "$LINENO" 5
15612
15613fi
15614 enable_usbprog=no
15615
15616fi
15617 if test "x$enable_usbprog" != "xno"; then
15618 USBPROG_TRUE=
15619 USBPROG_FALSE='#'
15620else
15621 USBPROG_TRUE='#'
15622 USBPROG_FALSE=
15623fi
15624
15625
15626 if test "x$use_libusb0" = "xyes"; then :
15627
15628 if test "x$enable_rlink" != "xno"; then :
15629
15630
15631$as_echo "#define BUILD_RLINK 1" >>confdefs.h
15632
15633
15634else
15635
15636
15637$as_echo "#define BUILD_RLINK 0" >>confdefs.h
15638
15639
15640fi
15641
15642else
15643
15644 if test "x$enable_rlink" = "xyes"; then :
15645
15646 as_fn_error $? "libusb-0.1 is required for the Raisonance RLink JTAG Programmer" "$LINENO" 5
15647
15648fi
15649 enable_rlink=no
15650
15651fi
15652 if test "x$enable_rlink" != "xno"; then
15653 RLINK_TRUE=
15654 RLINK_FALSE='#'
15655else
15656 RLINK_TRUE='#'
15657 RLINK_FALSE=
15658fi
15659
15660
15661 if test "x$use_libusb0" = "xyes"; then :
15662
15663 if test "x$enable_armjtagew" != "xno"; then :
15664
15665
15666$as_echo "#define BUILD_ARMJTAGEW 1" >>confdefs.h
15667
15668
15669else
15670
15671
15672$as_echo "#define BUILD_ARMJTAGEW 0" >>confdefs.h
15673
15674
15675fi
15676
15677else
15678
15679 if test "x$enable_armjtagew" = "xyes"; then :
15680
15681 as_fn_error $? "libusb-0.1 is required for the Olimex ARM-JTAG-EW Programmer" "$LINENO" 5
15682
15683fi
15684 enable_armjtagew=no
15685
15686fi
15687 if test "x$enable_armjtagew" != "xno"; then
15688 ARMJTAGEW_TRUE=
15689 ARMJTAGEW_FALSE='#'
15690else
15691 ARMJTAGEW_TRUE='#'
15692 ARMJTAGEW_FALSE=
15693fi
15694
15695
15696
15697
15698
15699 if test "x$use_hidapi" = "xyes"; then :
15700
15701 if test "x$enable_cmsis_dap" != "xno"; then :
15702
15703
15704$as_echo "#define BUILD_CMSIS_DAP 1" >>confdefs.h
15705
15706
15707else
15708
15709
15710$as_echo "#define BUILD_CMSIS_DAP 0" >>confdefs.h
15711
15712
15713fi
15714
15715else
15716
15717 if test "x$enable_cmsis_dap" = "xyes"; then :
15718
15719 as_fn_error $? "hidapi is required for the CMSIS-DAP Compliant Debugger" "$LINENO" 5
15720
15721fi
15722 enable_cmsis_dap=no
15723
15724fi
15725 if test "x$enable_cmsis_dap" != "xno"; then
15726 CMSIS_DAP_TRUE=
15727 CMSIS_DAP_FALSE='#'
15728else
15729 CMSIS_DAP_TRUE='#'
15730 CMSIS_DAP_FALSE=
15731fi
15732
15733
15734
15735
15736
15737 if test "x$use_libftdi" = "xyes"; then :
15738
15739 if test "x$enable_usb_blaster" != "xno"; then :
15740
15741
15742$as_echo "#define BUILD_USB_BLASTER 1" >>confdefs.h
15743
15744
15745else
15746
15747
15748$as_echo "#define BUILD_USB_BLASTER 0" >>confdefs.h
15749
15750
15751fi
15752
15753else
15754
15755 if test "x$enable_usb_blaster" = "xyes"; then :
15756
15757 as_fn_error $? "libftdi is required for the Altera USB-Blaster Compatible" "$LINENO" 5
15758
15759fi
15760 enable_usb_blaster=no
15761
15762fi
15763 if test "x$enable_usb_blaster" != "xno"; then
15764 USB_BLASTER_TRUE=
15765 USB_BLASTER_FALSE='#'
15766else
15767 USB_BLASTER_TRUE='#'
15768 USB_BLASTER_FALSE=
15769fi
15770
15771
15772 if test "x$use_libftdi" = "xyes"; then :
15773
15774 if test "x$enable_presto" != "xno"; then :
15775
15776
15777$as_echo "#define BUILD_PRESTO 1" >>confdefs.h
15778
15779
15780else
15781
15782
15783$as_echo "#define BUILD_PRESTO 0" >>confdefs.h
15784
15785
15786fi
15787
15788else
15789
15790 if test "x$enable_presto" = "xyes"; then :
15791
15792 as_fn_error $? "libftdi is required for the ASIX Presto Adapter" "$LINENO" 5
15793
15794fi
15795 enable_presto=no
15796
15797fi
15798 if test "x$enable_presto" != "xno"; then
15799 PRESTO_TRUE=
15800 PRESTO_FALSE='#'
15801else
15802 PRESTO_TRUE='#'
15803 PRESTO_FALSE=
15804fi
15805
15806
15807 if test "x$use_libftdi" = "xyes"; then :
15808
15809 if test "x$enable_openjtag" != "xno"; then :
15810
15811
15812$as_echo "#define BUILD_OPENJTAG 1" >>confdefs.h
15813
15814
15815else
15816
15817
15818$as_echo "#define BUILD_OPENJTAG 0" >>confdefs.h
15819
15820
15821fi
15822
15823else
15824
15825 if test "x$enable_openjtag" = "xyes"; then :
15826
15827 as_fn_error $? "libftdi is required for the OpenJTAG Adapter" "$LINENO" 5
15828
15829fi
15830 enable_openjtag=no
15831
15832fi
15833 if test "x$enable_openjtag" != "xno"; then
15834 OPENJTAG_TRUE=
15835 OPENJTAG_FALSE='#'
15836else
15837 OPENJTAG_TRUE='#'
15838 OPENJTAG_FALSE=
15839fi
15840
15841
15842
15843
15844
15845 if test "x$use_libusb1" = "xyes" -a "x$use_internal_libjaylink" = "xyes" -o "x$use_libjaylink" = "xyes"; then :
15846
15847 if test "x$enable_jlink" != "xno"; then :
15848
15849
15850$as_echo "#define BUILD_JLINK 1" >>confdefs.h
15851
15852
15853else
15854
15855
15856$as_echo "#define BUILD_JLINK 0" >>confdefs.h
15857
15858
15859fi
15860
15861else
15862
15863 if test "x$enable_jlink" = "xyes"; then :
15864
15865 as_fn_error $? "libusb-1.x or libjaylink-0.1 is required for the SEGGER J-Link Programmer" "$LINENO" 5
15866
15867fi
15868 enable_jlink=no
15869
15870fi
15871 if test "x$enable_jlink" != "xno"; then
15872 JLINK_TRUE=
15873 JLINK_FALSE='#'
15874else
15875 JLINK_TRUE='#'
15876 JLINK_FALSE=
15877fi
15878
15879
15880
15881
15882if test "x$build_openjtag" = "xyes"; then :
15883
15884 if test "x$use_libusb1" != "xyes" -a "x$use_libusb0" != "xyes"; then :
15885
15886 as_fn_error $? "libusb-1.x or libusb-0.1 is required for the OpenJTAG Programmer" "$LINENO" 5
15887 build_openjtag=no
15888
15889fi
15890
15891fi
15892
15893if test "x$enable_stlink" != "xno" -o "x$enable_ti_icdi" != "xno"; then :
15894
15895
15896$as_echo "#define BUILD_HLADAPTER 1" >>confdefs.h
15897
15898
15899else
15900
15901
15902$as_echo "#define BUILD_HLADAPTER 0" >>confdefs.h
15903
15904
15905fi
15906 if test "x$enable_stlink" != "xno" -o "x$enable_ti_icdi" != "xno"; then
15907 HLADAPTER_TRUE=
15908 HLADAPTER_FALSE='#'
15909else
15910 HLADAPTER_TRUE='#'
15911 HLADAPTER_FALSE=
15912fi
15913
15914
15915if test "x$enable_jlink" != "xno"; then :
15916
15917 if test "x$use_internal_libjaylink" = "xyes"; then :
15918
15919 if test -f "$srcdir/src/jtag/drivers/libjaylink/configure.ac"; then :
15920
15921
15922subdirs="$subdirs src/jtag/drivers/libjaylink"
15923
15924
15925echo -e '#!/bin/sh\nexec "`dirname "'\$'0"`/configure" --enable-subproject-build "'\$'@"' > "$srcdir/src/jtag/drivers/libjaylink/configure.gnu"
15926
15927
15928
15929else
15930
15931 as_fn_error $? "Internal libjaylink not found, run either 'git submodule init' and 'git submodule update' or disable internal libjaylink with --disable-internal-libjaylink." "$LINENO" 5
15932
15933fi
15934
15935fi
15936
15937fi
15938
15939# Presto needs the bitq module
15940if test "x$enable_presto" != "xno"; then :
15941
15942 build_bitq=yes
15943
15944fi
15945
15946 if test "x$build_release" = "xyes"; then
15947 RELEASE_TRUE=
15948 RELEASE_FALSE='#'
15949else
15950 RELEASE_TRUE='#'
15951 RELEASE_FALSE=
15952fi
15953
15954 if test "x$build_parport" = "xyes"; then
15955 PARPORT_TRUE=
15956 PARPORT_FALSE='#'
15957else
15958 PARPORT_TRUE='#'
15959 PARPORT_FALSE=
15960fi
15961
15962 if test "x$build_dummy" = "xyes"; then
15963 DUMMY_TRUE=
15964 DUMMY_FALSE='#'
15965else
15966 DUMMY_TRUE='#'
15967 DUMMY_FALSE=
15968fi
15969
15970 if test "x$parport_use_giveio" = "xyes"; then
15971 GIVEIO_TRUE=
15972 GIVEIO_FALSE='#'
15973else
15974 GIVEIO_TRUE='#'
15975 GIVEIO_FALSE=
15976fi
15977
15978 if test "x$build_ep93xx" = "xyes"; then
15979 EP93XX_TRUE=
15980 EP93XX_FALSE='#'
15981else
15982 EP93XX_TRUE='#'
15983 EP93XX_FALSE=
15984fi
15985
15986 if test "x$build_zy1000" = "xyes"; then
15987 ZY1000_TRUE=
15988 ZY1000_FALSE='#'
15989else
15990 ZY1000_TRUE='#'
15991 ZY1000_FALSE=
15992fi
15993
15994 if test "x$build_zy1000_master" = "xyes"; then
15995 ZY1000_MASTER_TRUE=
15996 ZY1000_MASTER_FALSE='#'
15997else
15998 ZY1000_MASTER_TRUE='#'
15999 ZY1000_MASTER_FALSE=
16000fi
16001
16002 if test "x$build_ioutil" = "xyes"; then
16003 IOUTIL_TRUE=
16004 IOUTIL_FALSE='#'
16005else
16006 IOUTIL_TRUE='#'
16007 IOUTIL_FALSE=
16008fi
16009
16010 if test "x$build_at91rm9200" = "xyes"; then
16011 AT91RM9200_TRUE=
16012 AT91RM9200_FALSE='#'
16013else
16014 AT91RM9200_TRUE='#'
16015 AT91RM9200_FALSE=
16016fi
16017
16018 if test "x$build_bcm2835gpio" = "xyes"; then
16019 BCM2835GPIO_TRUE=
16020 BCM2835GPIO_FALSE='#'
16021else
16022 BCM2835GPIO_TRUE='#'
16023 BCM2835GPIO_FALSE=
16024fi
16025
16026 if test "x$build_bitbang" = "xyes"; then
16027 BITBANG_TRUE=
16028 BITBANG_FALSE='#'
16029else
16030 BITBANG_TRUE='#'
16031 BITBANG_FALSE=
16032fi
16033
16034 if test "x$build_jtag_vpi" = "xyes" -o "x$build_jtag_vpi" = "xyes"; then
16035 JTAG_VPI_TRUE=
16036 JTAG_VPI_FALSE='#'
16037else
16038 JTAG_VPI_TRUE='#'
16039 JTAG_VPI_FALSE=
16040fi
16041
16042 if test "x$enable_usb_blaster" != "xno" -o "x$enable_usb_blaster_2" != "xno"; then
16043 USB_BLASTER_DRIVER_TRUE=
16044 USB_BLASTER_DRIVER_FALSE='#'
16045else
16046 USB_BLASTER_DRIVER_TRUE='#'
16047 USB_BLASTER_DRIVER_FALSE=
16048fi
16049
16050 if test "x$build_amtjtagaccel" = "xyes"; then
16051 AMTJTAGACCEL_TRUE=
16052 AMTJTAGACCEL_FALSE='#'
16053else
16054 AMTJTAGACCEL_TRUE='#'
16055 AMTJTAGACCEL_FALSE=
16056fi
16057
16058 if test "x$build_gw16012" = "xyes"; then
16059 GW16012_TRUE=
16060 GW16012_FALSE='#'
16061else
16062 GW16012_TRUE='#'
16063 GW16012_FALSE=
16064fi
16065
16066 if test "x$build_oocd_trace" = "xyes"; then
16067 OOCD_TRACE_TRUE=
16068 OOCD_TRACE_FALSE='#'
16069else
16070 OOCD_TRACE_TRUE='#'
16071 OOCD_TRACE_FALSE=
16072fi
16073
16074 if test "x$build_remote_bitbang" = "xyes"; then
16075 REMOTE_BITBANG_TRUE=
16076 REMOTE_BITBANG_FALSE='#'
16077else
16078 REMOTE_BITBANG_TRUE='#'
16079 REMOTE_BITBANG_FALSE=
16080fi
16081
16082 if test "x$build_buspirate" = "xyes"; then
16083 BUSPIRATE_TRUE=
16084 BUSPIRATE_FALSE='#'
16085else
16086 BUSPIRATE_TRUE='#'
16087 BUSPIRATE_FALSE=
16088fi
16089
16090 if test "x$build_sysfsgpio" = "xyes"; then
16091 SYSFSGPIO_TRUE=
16092 SYSFSGPIO_FALSE='#'
16093else
16094 SYSFSGPIO_TRUE='#'
16095 SYSFSGPIO_FALSE=
16096fi
16097
16098 if test "x$use_libusb0" = "xyes"; then
16099 USE_LIBUSB0_TRUE=
16100 USE_LIBUSB0_FALSE='#'
16101else
16102 USE_LIBUSB0_TRUE='#'
16103 USE_LIBUSB0_FALSE=
16104fi
16105
16106 if test "x$use_libusb1" = "xyes"; then
16107 USE_LIBUSB1_TRUE=
16108 USE_LIBUSB1_FALSE='#'
16109else
16110 USE_LIBUSB1_TRUE='#'
16111 USE_LIBUSB1_FALSE=
16112fi
16113
16114 if test "x$is_cygwin" = "xyes"; then
16115 IS_CYGWIN_TRUE=
16116 IS_CYGWIN_FALSE='#'
16117else
16118 IS_CYGWIN_TRUE='#'
16119 IS_CYGWIN_FALSE=
16120fi
16121
16122 if test "x$is_mingw" = "xyes"; then
16123 IS_MINGW_TRUE=
16124 IS_MINGW_FALSE='#'
16125else
16126 IS_MINGW_TRUE='#'
16127 IS_MINGW_FALSE=
16128fi
16129
16130 if test "x$is_win32" = "xyes"; then
16131 IS_WIN32_TRUE=
16132 IS_WIN32_FALSE='#'
16133else
16134 IS_WIN32_TRUE='#'
16135 IS_WIN32_FALSE=
16136fi
16137
16138 if test "x$is_darwin" = "xyes"; then
16139 IS_DARWIN_TRUE=
16140 IS_DARWIN_FALSE='#'
16141else
16142 IS_DARWIN_TRUE='#'
16143 IS_DARWIN_FALSE=
16144fi
16145
16146 if test "x$build_bitq" = "xyes"; then
16147 BITQ_TRUE=
16148 BITQ_FALSE='#'
16149else
16150 BITQ_TRUE='#'
16151 BITQ_FALSE=
16152fi
16153
16154 if test "x$use_libftdi" = "xyes"; then
16155 USE_LIBFTDI_TRUE=
16156 USE_LIBFTDI_FALSE='#'
16157else
16158 USE_LIBFTDI_TRUE='#'
16159 USE_LIBFTDI_FALSE=
16160fi
16161
16162 if test "x$use_hidapi" = "xyes"; then
16163 USE_HIDAPI_TRUE=
16164 USE_HIDAPI_FALSE='#'
16165else
16166 USE_HIDAPI_TRUE='#'
16167 USE_HIDAPI_FALSE=
16168fi
16169
16170 if test "x$use_libjaylink" = "xyes"; then
16171 USE_LIBJAYLINK_TRUE=
16172 USE_LIBJAYLINK_FALSE='#'
16173else
16174 USE_LIBJAYLINK_TRUE='#'
16175 USE_LIBJAYLINK_FALSE=
16176fi
16177
16178
16179 if test "x$build_minidriver" = "xyes"; then
16180 MINIDRIVER_TRUE=
16181 MINIDRIVER_FALSE='#'
16182else
16183 MINIDRIVER_TRUE='#'
16184 MINIDRIVER_FALSE=
16185fi
16186
16187 if test "x$build_minidriver_dummy" = "xyes"; then
16188 MINIDRIVER_DUMMY_TRUE=
16189 MINIDRIVER_DUMMY_FALSE='#'
16190else
16191 MINIDRIVER_DUMMY_TRUE='#'
16192 MINIDRIVER_DUMMY_FALSE=
16193fi
16194
16195
16196 if test "x$use_internal_jimtcl" = "xyes"; then
16197 INTERNAL_JIMTCL_TRUE=
16198 INTERNAL_JIMTCL_FALSE='#'
16199else
16200 INTERNAL_JIMTCL_TRUE='#'
16201 INTERNAL_JIMTCL_FALSE=
16202fi
16203
16204 if test "x$use_internal_libjaylink" = "xyes"; then
16205 INTERNAL_LIBJAYLINK_TRUE=
16206 INTERNAL_LIBJAYLINK_FALSE='#'
16207else
16208 INTERNAL_LIBJAYLINK_TRUE='#'
16209 INTERNAL_LIBJAYLINK_FALSE=
16210fi
16211
16212
16213# Look for environ alternatives. Possibility #1: is environ in unistd.h or stdlib.h?
16214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for environ in unistd.h and stdlib.h" >&5
16215$as_echo_n "checking for environ in unistd.h and stdlib.h... " >&6; }
16216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16217/* end confdefs.h. */
16218
16219#define _GNU_SOURCE
16220#include <unistd.h>
16221#include <stdlib.h>
16222
16223int
16224main ()
16225{
16226char **ep = environ;
16227
16228 ;
16229 return 0;
16230}
16231_ACEOF
16232if ac_fn_c_try_compile "$LINENO"; then :
16233
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16235$as_echo "yes" >&6; }
16236 has_environ=yes
16237
16238else
16239
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16241$as_echo "no" >&6; }
16242
16243 # Possibility #2: can environ be found in an available library?
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extern environ" >&5
16245$as_echo_n "checking for extern environ... " >&6; }
16246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16247/* end confdefs.h. */
16248
16249 extern char **environ;
16250
16251int
16252main ()
16253{
16254char **ep = environ;
16255
16256 ;
16257 return 0;
16258}
16259_ACEOF
16260if ac_fn_c_try_link "$LINENO"; then :
16261
16262
16263$as_echo "#define NEED_ENVIRON_EXTERN 1" >>confdefs.h
16264
16265 has_environ=yes
16266
16267else
16268
16269 has_environ=no
16270
16271fi
16272rm -f core conftest.err conftest.$ac_objext \
16273 conftest$ac_exeext conftest.$ac_ext
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${has_environ}" >&5
16275$as_echo "${has_environ}" >&6; }
16276
16277fi
16278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16279
16280if test "x${has_environ}" != "xyes" ; then :
16281
16282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16283$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16284as_fn_error $? "Could not find 'environ' in unistd.h or available libraries.
16285See \`config.log' for more details" "$LINENO" 5; }
16286
16287fi
16288
16289
16290$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
16291
16292
16293# set default gcc warnings
16294GCC_WARNINGS="-Wall -Wstrict-prototypes -Wformat-security -Wshadow"
16295if test "x${gcc_wextra}" = "xyes"; then :
16296
16297 GCC_WARNINGS="${GCC_WARNINGS} -Wextra -Wno-unused-parameter"
16298 GCC_WARNINGS="${GCC_WARNINGS} -Wbad-function-cast"
16299 GCC_WARNINGS="${GCC_WARNINGS} -Wcast-align"
16300 GCC_WARNINGS="${GCC_WARNINGS} -Wredundant-decls"
16301
16302fi
16303if test "x${gcc_werror}" = "xyes"; then :
16304
16305 GCC_WARNINGS="${GCC_WARNINGS} -Werror"
16306
16307fi
16308
16309# overide default gcc cflags
16310if test "x$gcc_warnings" = "xyes"; then :
16311
16312 GCC_WARNINGS=$GCC_WARNINGS
16313
16314
16315fi
16316
16317ac_config_files="$ac_config_files Makefile"
16318
16319cat >confcache <<\_ACEOF
16320# This file is a shell script that caches the results of configure
16321# tests run on this system so they can be shared between configure
16322# scripts and configure runs, see configure's option --config-cache.
16323# It is not useful on other systems. If it contains results you don't
16324# want to keep, you may remove or edit it.
16325#
16326# config.status only pays attention to the cache file if you give it
16327# the --recheck option to rerun configure.
16328#
16329# `ac_cv_env_foo' variables (set or unset) will be overridden when
16330# loading this file, other *unset* `ac_cv_foo' will be assigned the
16331# following values.
16332
16333_ACEOF
16334
16335# The following way of writing the cache mishandles newlines in values,
16336# but we know of no workaround that is simple, portable, and efficient.
16337# So, we kill variables containing newlines.
16338# Ultrix sh set writes to stderr and can't be redirected directly,
16339# and sets the high bit in the cache file unless we assign to the vars.
16340(
16341 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16342 eval ac_val=\$$ac_var
16343 case $ac_val in #(
16344 *${as_nl}*)
16345 case $ac_var in #(
16346 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16347$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16348 esac
16349 case $ac_var in #(
16350 _ | IFS | as_nl) ;; #(
16351 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16352 *) { eval $ac_var=; unset $ac_var;} ;;
16353 esac ;;
16354 esac
16355 done
16356
16357 (set) 2>&1 |
16358 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16359 *${as_nl}ac_space=\ *)
16360 # `set' does not quote correctly, so add quotes: double-quote
16361 # substitution turns \\\\ into \\, and sed turns \\ into \.
16362 sed -n \
16363 "s/'/'\\\\''/g;
16364 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16365 ;; #(
16366 *)
16367 # `set' quotes correctly as required by POSIX, so do not add quotes.
16368 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16369 ;;
16370 esac |
16371 sort
16372) |
16373 sed '
16374 /^ac_cv_env_/b end
16375 t clear
16376 :clear
16377 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16378 t end
16379 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16380 :end' >>confcache
16381if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16382 if test -w "$cache_file"; then
16383 if test "x$cache_file" != "x/dev/null"; then
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16385$as_echo "$as_me: updating cache $cache_file" >&6;}
16386 if test ! -f "$cache_file" || test -h "$cache_file"; then
16387 cat confcache >"$cache_file"
16388 else
16389 case $cache_file in #(
16390 */* | ?:*)
16391 mv -f confcache "$cache_file"$$ &&
16392 mv -f "$cache_file"$$ "$cache_file" ;; #(
16393 *)
16394 mv -f confcache "$cache_file" ;;
16395 esac
16396 fi
16397 fi
16398 else
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16400$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16401 fi
16402fi
16403rm -f confcache
16404
16405test "x$prefix" = xNONE && prefix=$ac_default_prefix
16406# Let make expand exec_prefix.
16407test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16408
16409DEFS=-DHAVE_CONFIG_H
16410
16411ac_libobjs=
16412ac_ltlibobjs=
16413U=
16414for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16415 # 1. Remove the extension, and $U if already installed.
16416 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16417 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16418 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16419 # will be set to the directory where LIBOBJS objects are built.
16420 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16421 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16422done
16423LIBOBJS=$ac_libobjs
16424
16425LTLIBOBJS=$ac_ltlibobjs
16426
16427
16428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16429$as_echo_n "checking that generated files are newer than configure... " >&6; }
16430 if test -n "$am_sleep_pid"; then
16431 # Hide warnings about reused PIDs.
16432 wait $am_sleep_pid 2>/dev/null
16433 fi
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16435$as_echo "done" >&6; }
16436 if test -n "$EXEEXT"; then
16437 am__EXEEXT_TRUE=
16438 am__EXEEXT_FALSE='#'
16439else
16440 am__EXEEXT_TRUE='#'
16441 am__EXEEXT_FALSE=
16442fi
16443
16444if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16445 as_fn_error $? "conditional \"AMDEP\" was never defined.
16446Usually this means the macro was only invoked conditionally." "$LINENO" 5
16447fi
16448if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16449 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16450Usually this means the macro was only invoked conditionally." "$LINENO" 5
16451fi
16452
16453if test -z "${FTDI_TRUE}" && test -z "${FTDI_FALSE}"; then
16454 as_fn_error $? "conditional \"FTDI\" was never defined.
16455Usually this means the macro was only invoked conditionally." "$LINENO" 5
16456fi
16457if test -z "${HLADAPTER_STLINK_TRUE}" && test -z "${HLADAPTER_STLINK_FALSE}"; then
16458 as_fn_error $? "conditional \"HLADAPTER_STLINK\" was never defined.
16459Usually this means the macro was only invoked conditionally." "$LINENO" 5
16460fi
16461if test -z "${HLADAPTER_ICDI_TRUE}" && test -z "${HLADAPTER_ICDI_FALSE}"; then
16462 as_fn_error $? "conditional \"HLADAPTER_ICDI\" was never defined.
16463Usually this means the macro was only invoked conditionally." "$LINENO" 5
16464fi
16465if test -z "${ULINK_TRUE}" && test -z "${ULINK_FALSE}"; then
16466 as_fn_error $? "conditional \"ULINK\" was never defined.
16467Usually this means the macro was only invoked conditionally." "$LINENO" 5
16468fi
16469if test -z "${USB_BLASTER_2_TRUE}" && test -z "${USB_BLASTER_2_FALSE}"; then
16470 as_fn_error $? "conditional \"USB_BLASTER_2\" was never defined.
16471Usually this means the macro was only invoked conditionally." "$LINENO" 5
16472fi
16473if test -z "${VSLLINK_TRUE}" && test -z "${VSLLINK_FALSE}"; then
16474 as_fn_error $? "conditional \"VSLLINK\" was never defined.
16475Usually this means the macro was only invoked conditionally." "$LINENO" 5
16476fi
16477if test -z "${OSBDM_TRUE}" && test -z "${OSBDM_FALSE}"; then
16478 as_fn_error $? "conditional \"OSBDM\" was never defined.
16479Usually this means the macro was only invoked conditionally." "$LINENO" 5
16480fi
16481if test -z "${OPENDOUS_TRUE}" && test -z "${OPENDOUS_FALSE}"; then
16482 as_fn_error $? "conditional \"OPENDOUS\" was never defined.
16483Usually this means the macro was only invoked conditionally." "$LINENO" 5
16484fi
16485if test -z "${AICE_TRUE}" && test -z "${AICE_FALSE}"; then
16486 as_fn_error $? "conditional \"AICE\" was never defined.
16487Usually this means the macro was only invoked conditionally." "$LINENO" 5
16488fi
16489if test -z "${USBPROG_TRUE}" && test -z "${USBPROG_FALSE}"; then
16490 as_fn_error $? "conditional \"USBPROG\" was never defined.
16491Usually this means the macro was only invoked conditionally." "$LINENO" 5
16492fi
16493if test -z "${RLINK_TRUE}" && test -z "${RLINK_FALSE}"; then
16494 as_fn_error $? "conditional \"RLINK\" was never defined.
16495Usually this means the macro was only invoked conditionally." "$LINENO" 5
16496fi
16497if test -z "${ARMJTAGEW_TRUE}" && test -z "${ARMJTAGEW_FALSE}"; then
16498 as_fn_error $? "conditional \"ARMJTAGEW\" was never defined.
16499Usually this means the macro was only invoked conditionally." "$LINENO" 5
16500fi
16501if test -z "${CMSIS_DAP_TRUE}" && test -z "${CMSIS_DAP_FALSE}"; then
16502 as_fn_error $? "conditional \"CMSIS_DAP\" was never defined.
16503Usually this means the macro was only invoked conditionally." "$LINENO" 5
16504fi
16505if test -z "${USB_BLASTER_TRUE}" && test -z "${USB_BLASTER_FALSE}"; then
16506 as_fn_error $? "conditional \"USB_BLASTER\" was never defined.
16507Usually this means the macro was only invoked conditionally." "$LINENO" 5
16508fi
16509if test -z "${PRESTO_TRUE}" && test -z "${PRESTO_FALSE}"; then
16510 as_fn_error $? "conditional \"PRESTO\" was never defined.
16511Usually this means the macro was only invoked conditionally." "$LINENO" 5
16512fi
16513if test -z "${OPENJTAG_TRUE}" && test -z "${OPENJTAG_FALSE}"; then
16514 as_fn_error $? "conditional \"OPENJTAG\" was never defined.
16515Usually this means the macro was only invoked conditionally." "$LINENO" 5
16516fi
16517if test -z "${JLINK_TRUE}" && test -z "${JLINK_FALSE}"; then
16518 as_fn_error $? "conditional \"JLINK\" was never defined.
16519Usually this means the macro was only invoked conditionally." "$LINENO" 5
16520fi
16521if test -z "${HLADAPTER_TRUE}" && test -z "${HLADAPTER_FALSE}"; then
16522 as_fn_error $? "conditional \"HLADAPTER\" was never defined.
16523Usually this means the macro was only invoked conditionally." "$LINENO" 5
16524fi
16525if test -z "${RELEASE_TRUE}" && test -z "${RELEASE_FALSE}"; then
16526 as_fn_error $? "conditional \"RELEASE\" was never defined.
16527Usually this means the macro was only invoked conditionally." "$LINENO" 5
16528fi
16529if test -z "${PARPORT_TRUE}" && test -z "${PARPORT_FALSE}"; then
16530 as_fn_error $? "conditional \"PARPORT\" was never defined.
16531Usually this means the macro was only invoked conditionally." "$LINENO" 5
16532fi
16533if test -z "${DUMMY_TRUE}" && test -z "${DUMMY_FALSE}"; then
16534 as_fn_error $? "conditional \"DUMMY\" was never defined.
16535Usually this means the macro was only invoked conditionally." "$LINENO" 5
16536fi
16537if test -z "${GIVEIO_TRUE}" && test -z "${GIVEIO_FALSE}"; then
16538 as_fn_error $? "conditional \"GIVEIO\" was never defined.
16539Usually this means the macro was only invoked conditionally." "$LINENO" 5
16540fi
16541if test -z "${EP93XX_TRUE}" && test -z "${EP93XX_FALSE}"; then
16542 as_fn_error $? "conditional \"EP93XX\" was never defined.
16543Usually this means the macro was only invoked conditionally." "$LINENO" 5
16544fi
16545if test -z "${ZY1000_TRUE}" && test -z "${ZY1000_FALSE}"; then
16546 as_fn_error $? "conditional \"ZY1000\" was never defined.
16547Usually this means the macro was only invoked conditionally." "$LINENO" 5
16548fi
16549if test -z "${ZY1000_MASTER_TRUE}" && test -z "${ZY1000_MASTER_FALSE}"; then
16550 as_fn_error $? "conditional \"ZY1000_MASTER\" was never defined.
16551Usually this means the macro was only invoked conditionally." "$LINENO" 5
16552fi
16553if test -z "${IOUTIL_TRUE}" && test -z "${IOUTIL_FALSE}"; then
16554 as_fn_error $? "conditional \"IOUTIL\" was never defined.
16555Usually this means the macro was only invoked conditionally." "$LINENO" 5
16556fi
16557if test -z "${AT91RM9200_TRUE}" && test -z "${AT91RM9200_FALSE}"; then
16558 as_fn_error $? "conditional \"AT91RM9200\" was never defined.
16559Usually this means the macro was only invoked conditionally." "$LINENO" 5
16560fi
16561if test -z "${BCM2835GPIO_TRUE}" && test -z "${BCM2835GPIO_FALSE}"; then
16562 as_fn_error $? "conditional \"BCM2835GPIO\" was never defined.
16563Usually this means the macro was only invoked conditionally." "$LINENO" 5
16564fi
16565if test -z "${BITBANG_TRUE}" && test -z "${BITBANG_FALSE}"; then
16566 as_fn_error $? "conditional \"BITBANG\" was never defined.
16567Usually this means the macro was only invoked conditionally." "$LINENO" 5
16568fi
16569if test -z "${JTAG_VPI_TRUE}" && test -z "${JTAG_VPI_FALSE}"; then
16570 as_fn_error $? "conditional \"JTAG_VPI\" was never defined.
16571Usually this means the macro was only invoked conditionally." "$LINENO" 5
16572fi
16573if test -z "${USB_BLASTER_DRIVER_TRUE}" && test -z "${USB_BLASTER_DRIVER_FALSE}"; then
16574 as_fn_error $? "conditional \"USB_BLASTER_DRIVER\" was never defined.
16575Usually this means the macro was only invoked conditionally." "$LINENO" 5
16576fi
16577if test -z "${AMTJTAGACCEL_TRUE}" && test -z "${AMTJTAGACCEL_FALSE}"; then
16578 as_fn_error $? "conditional \"AMTJTAGACCEL\" was never defined.
16579Usually this means the macro was only invoked conditionally." "$LINENO" 5
16580fi
16581if test -z "${GW16012_TRUE}" && test -z "${GW16012_FALSE}"; then
16582 as_fn_error $? "conditional \"GW16012\" was never defined.
16583Usually this means the macro was only invoked conditionally." "$LINENO" 5
16584fi
16585if test -z "${OOCD_TRACE_TRUE}" && test -z "${OOCD_TRACE_FALSE}"; then
16586 as_fn_error $? "conditional \"OOCD_TRACE\" was never defined.
16587Usually this means the macro was only invoked conditionally." "$LINENO" 5
16588fi
16589if test -z "${REMOTE_BITBANG_TRUE}" && test -z "${REMOTE_BITBANG_FALSE}"; then
16590 as_fn_error $? "conditional \"REMOTE_BITBANG\" was never defined.
16591Usually this means the macro was only invoked conditionally." "$LINENO" 5
16592fi
16593if test -z "${BUSPIRATE_TRUE}" && test -z "${BUSPIRATE_FALSE}"; then
16594 as_fn_error $? "conditional \"BUSPIRATE\" was never defined.
16595Usually this means the macro was only invoked conditionally." "$LINENO" 5
16596fi
16597if test -z "${SYSFSGPIO_TRUE}" && test -z "${SYSFSGPIO_FALSE}"; then
16598 as_fn_error $? "conditional \"SYSFSGPIO\" was never defined.
16599Usually this means the macro was only invoked conditionally." "$LINENO" 5
16600fi
16601if test -z "${USE_LIBUSB0_TRUE}" && test -z "${USE_LIBUSB0_FALSE}"; then
16602 as_fn_error $? "conditional \"USE_LIBUSB0\" was never defined.
16603Usually this means the macro was only invoked conditionally." "$LINENO" 5
16604fi
16605if test -z "${USE_LIBUSB1_TRUE}" && test -z "${USE_LIBUSB1_FALSE}"; then
16606 as_fn_error $? "conditional \"USE_LIBUSB1\" was never defined.
16607Usually this means the macro was only invoked conditionally." "$LINENO" 5
16608fi
16609if test -z "${IS_CYGWIN_TRUE}" && test -z "${IS_CYGWIN_FALSE}"; then
16610 as_fn_error $? "conditional \"IS_CYGWIN\" was never defined.
16611Usually this means the macro was only invoked conditionally." "$LINENO" 5
16612fi
16613if test -z "${IS_MINGW_TRUE}" && test -z "${IS_MINGW_FALSE}"; then
16614 as_fn_error $? "conditional \"IS_MINGW\" was never defined.
16615Usually this means the macro was only invoked conditionally." "$LINENO" 5
16616fi
16617if test -z "${IS_WIN32_TRUE}" && test -z "${IS_WIN32_FALSE}"; then
16618 as_fn_error $? "conditional \"IS_WIN32\" was never defined.
16619Usually this means the macro was only invoked conditionally." "$LINENO" 5
16620fi
16621if test -z "${IS_DARWIN_TRUE}" && test -z "${IS_DARWIN_FALSE}"; then
16622 as_fn_error $? "conditional \"IS_DARWIN\" was never defined.
16623Usually this means the macro was only invoked conditionally." "$LINENO" 5
16624fi
16625if test -z "${BITQ_TRUE}" && test -z "${BITQ_FALSE}"; then
16626 as_fn_error $? "conditional \"BITQ\" was never defined.
16627Usually this means the macro was only invoked conditionally." "$LINENO" 5
16628fi
16629if test -z "${USE_LIBFTDI_TRUE}" && test -z "${USE_LIBFTDI_FALSE}"; then
16630 as_fn_error $? "conditional \"USE_LIBFTDI\" was never defined.
16631Usually this means the macro was only invoked conditionally." "$LINENO" 5
16632fi
16633if test -z "${USE_HIDAPI_TRUE}" && test -z "${USE_HIDAPI_FALSE}"; then
16634 as_fn_error $? "conditional \"USE_HIDAPI\" was never defined.
16635Usually this means the macro was only invoked conditionally." "$LINENO" 5
16636fi
16637if test -z "${USE_LIBJAYLINK_TRUE}" && test -z "${USE_LIBJAYLINK_FALSE}"; then
16638 as_fn_error $? "conditional \"USE_LIBJAYLINK\" was never defined.
16639Usually this means the macro was only invoked conditionally." "$LINENO" 5
16640fi
16641if test -z "${MINIDRIVER_TRUE}" && test -z "${MINIDRIVER_FALSE}"; then
16642 as_fn_error $? "conditional \"MINIDRIVER\" was never defined.
16643Usually this means the macro was only invoked conditionally." "$LINENO" 5
16644fi
16645if test -z "${MINIDRIVER_DUMMY_TRUE}" && test -z "${MINIDRIVER_DUMMY_FALSE}"; then
16646 as_fn_error $? "conditional \"MINIDRIVER_DUMMY\" was never defined.
16647Usually this means the macro was only invoked conditionally." "$LINENO" 5
16648fi
16649if test -z "${INTERNAL_JIMTCL_TRUE}" && test -z "${INTERNAL_JIMTCL_FALSE}"; then
16650 as_fn_error $? "conditional \"INTERNAL_JIMTCL\" was never defined.
16651Usually this means the macro was only invoked conditionally." "$LINENO" 5
16652fi
16653if test -z "${INTERNAL_LIBJAYLINK_TRUE}" && test -z "${INTERNAL_LIBJAYLINK_FALSE}"; then
16654 as_fn_error $? "conditional \"INTERNAL_LIBJAYLINK\" was never defined.
16655Usually this means the macro was only invoked conditionally." "$LINENO" 5
16656fi
16657
16658: "${CONFIG_STATUS=./config.status}"
16659ac_write_fail=0
16660ac_clean_files_save=$ac_clean_files
16661ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16662{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16663$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16664as_write_fail=0
16665cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16666#! $SHELL
16667# Generated by $as_me.
16668# Run this file to recreate the current configuration.
16669# Compiler output produced by configure, useful for debugging
16670# configure, is in config.log if it exists.
16671
16672debug=false
16673ac_cs_recheck=false
16674ac_cs_silent=false
16675
16676SHELL=\${CONFIG_SHELL-$SHELL}
16677export SHELL
16678_ASEOF
16679cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16680## -------------------- ##
16681## M4sh Initialization. ##
16682## -------------------- ##
16683
16684# Be more Bourne compatible
16685DUALCASE=1; export DUALCASE # for MKS sh
16686if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16687 emulate sh
16688 NULLCMD=:
16689 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16690 # is contrary to our usage. Disable this feature.
16691 alias -g '${1+"$@"}'='"$@"'
16692 setopt NO_GLOB_SUBST
16693else
16694 case `(set -o) 2>/dev/null` in #(
16695 *posix*) :
16696 set -o posix ;; #(
16697 *) :
16698 ;;
16699esac
16700fi
16701
16702
16703as_nl='
16704'
16705export as_nl
16706# Printing a long string crashes Solaris 7 /usr/bin/printf.
16707as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16708as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16709as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16710# Prefer a ksh shell builtin over an external printf program on Solaris,
16711# but without wasting forks for bash or zsh.
16712if test -z "$BASH_VERSION$ZSH_VERSION" \
16713 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16714 as_echo='print -r --'
16715 as_echo_n='print -rn --'
16716elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16717 as_echo='printf %s\n'
16718 as_echo_n='printf %s'
16719else
16720 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16721 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16722 as_echo_n='/usr/ucb/echo -n'
16723 else
16724 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16725 as_echo_n_body='eval
16726 arg=$1;
16727 case $arg in #(
16728 *"$as_nl"*)
16729 expr "X$arg" : "X\\(.*\\)$as_nl";
16730 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16731 esac;
16732 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16733 '
16734 export as_echo_n_body
16735 as_echo_n='sh -c $as_echo_n_body as_echo'
16736 fi
16737 export as_echo_body
16738 as_echo='sh -c $as_echo_body as_echo'
16739fi
16740
16741# The user is always right.
16742if test "${PATH_SEPARATOR+set}" != set; then
16743 PATH_SEPARATOR=:
16744 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16745 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16746 PATH_SEPARATOR=';'
16747 }
16748fi
16749
16750
16751# IFS
16752# We need space, tab and new line, in precisely that order. Quoting is
16753# there to prevent editors from complaining about space-tab.
16754# (If _AS_PATH_WALK were called with IFS unset, it would disable word
16755# splitting by setting IFS to empty value.)
16756IFS=" "" $as_nl"
16757
16758# Find who we are. Look in the path if we contain no directory separator.
16759as_myself=
16760case $0 in #((
16761 *[\\/]* ) as_myself=$0 ;;
16762 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16763for as_dir in $PATH
16764do
16765 IFS=$as_save_IFS
16766 test -z "$as_dir" && as_dir=.
16767 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16768 done
16769IFS=$as_save_IFS
16770
16771 ;;
16772esac
16773# We did not find ourselves, most probably we were run as `sh COMMAND'
16774# in which case we are not to be found in the path.
16775if test "x$as_myself" = x; then
16776 as_myself=$0
16777fi
16778if test ! -f "$as_myself"; then
16779 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16780 exit 1
16781fi
16782
16783# Unset variables that we do not need and which cause bugs (e.g. in
16784# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16785# suppresses any "Segmentation fault" message there. '((' could
16786# trigger a bug in pdksh 5.2.14.
16787for as_var in BASH_ENV ENV MAIL MAILPATH
16788do eval test x\${$as_var+set} = xset \
16789 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16790done
16791PS1='$ '
16792PS2='> '
16793PS4='+ '
16794
16795# NLS nuisances.
16796LC_ALL=C
16797export LC_ALL
16798LANGUAGE=C
16799export LANGUAGE
16800
16801# CDPATH.
16802(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16803
16804
16805# as_fn_error STATUS ERROR [LINENO LOG_FD]
16806# ----------------------------------------
16807# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16808# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16809# script with STATUS, using 1 if that was 0.
16810as_fn_error ()
16811{
16812 as_status=$1; test $as_status -eq 0 && as_status=1
16813 if test "$4"; then
16814 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16815 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16816 fi
16817 $as_echo "$as_me: error: $2" >&2
16818 as_fn_exit $as_status
16819} # as_fn_error
16820
16821
16822# as_fn_set_status STATUS
16823# -----------------------
16824# Set $? to STATUS, without forking.
16825as_fn_set_status ()
16826{
16827 return $1
16828} # as_fn_set_status
16829
16830# as_fn_exit STATUS
16831# -----------------
16832# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16833as_fn_exit ()
16834{
16835 set +e
16836 as_fn_set_status $1
16837 exit $1
16838} # as_fn_exit
16839
16840# as_fn_unset VAR
16841# ---------------
16842# Portably unset VAR.
16843as_fn_unset ()
16844{
16845 { eval $1=; unset $1;}
16846}
16847as_unset=as_fn_unset
16848# as_fn_append VAR VALUE
16849# ----------------------
16850# Append the text in VALUE to the end of the definition contained in VAR. Take
16851# advantage of any shell optimizations that allow amortized linear growth over
16852# repeated appends, instead of the typical quadratic growth present in naive
16853# implementations.
16854if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16855 eval 'as_fn_append ()
16856 {
16857 eval $1+=\$2
16858 }'
16859else
16860 as_fn_append ()
16861 {
16862 eval $1=\$$1\$2
16863 }
16864fi # as_fn_append
16865
16866# as_fn_arith ARG...
16867# ------------------
16868# Perform arithmetic evaluation on the ARGs, and store the result in the
16869# global $as_val. Take advantage of shells that can avoid forks. The arguments
16870# must be portable across $(()) and expr.
16871if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16872 eval 'as_fn_arith ()
16873 {
16874 as_val=$(( $* ))
16875 }'
16876else
16877 as_fn_arith ()
16878 {
16879 as_val=`expr "$@" || test $? -eq 1`
16880 }
16881fi # as_fn_arith
16882
16883
16884if expr a : '\(a\)' >/dev/null 2>&1 &&
16885 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16886 as_expr=expr
16887else
16888 as_expr=false
16889fi
16890
16891if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16892 as_basename=basename
16893else
16894 as_basename=false
16895fi
16896
16897if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16898 as_dirname=dirname
16899else
16900 as_dirname=false
16901fi
16902
16903as_me=`$as_basename -- "$0" ||
16904$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16905 X"$0" : 'X\(//\)$' \| \
16906 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16907$as_echo X/"$0" |
16908 sed '/^.*\/\([^/][^/]*\)\/*$/{
16909 s//\1/
16910 q
16911 }
16912 /^X\/\(\/\/\)$/{
16913 s//\1/
16914 q
16915 }
16916 /^X\/\(\/\).*/{
16917 s//\1/
16918 q
16919 }
16920 s/.*/./; q'`
16921
16922# Avoid depending upon Character Ranges.
16923as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16924as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16925as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16926as_cr_digits='0123456789'
16927as_cr_alnum=$as_cr_Letters$as_cr_digits
16928
16929ECHO_C= ECHO_N= ECHO_T=
16930case `echo -n x` in #(((((
16931-n*)
16932 case `echo 'xy\c'` in
16933 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16934 xy) ECHO_C='\c';;
16935 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16936 ECHO_T=' ';;
16937 esac;;
16938*)
16939 ECHO_N='-n';;
16940esac
16941
16942rm -f conf$$ conf$$.exe conf$$.file
16943if test -d conf$$.dir; then
16944 rm -f conf$$.dir/conf$$.file
16945else
16946 rm -f conf$$.dir
16947 mkdir conf$$.dir 2>/dev/null
16948fi
16949if (echo >conf$$.file) 2>/dev/null; then
16950 if ln -s conf$$.file conf$$ 2>/dev/null; then
16951 as_ln_s='ln -s'
16952 # ... but there are two gotchas:
16953 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16954 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16955 # In both cases, we have to default to `cp -pR'.
16956 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16957 as_ln_s='cp -pR'
16958 elif ln conf$$.file conf$$ 2>/dev/null; then
16959 as_ln_s=ln
16960 else
16961 as_ln_s='cp -pR'
16962 fi
16963else
16964 as_ln_s='cp -pR'
16965fi
16966rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16967rmdir conf$$.dir 2>/dev/null
16968
16969
16970# as_fn_mkdir_p
16971# -------------
16972# Create "$as_dir" as a directory, including parents if necessary.
16973as_fn_mkdir_p ()
16974{
16975
16976 case $as_dir in #(
16977 -*) as_dir=./$as_dir;;
16978 esac
16979 test -d "$as_dir" || eval $as_mkdir_p || {
16980 as_dirs=
16981 while :; do
16982 case $as_dir in #(
16983 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16984 *) as_qdir=$as_dir;;
16985 esac
16986 as_dirs="'$as_qdir' $as_dirs"
16987 as_dir=`$as_dirname -- "$as_dir" ||
16988$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16989 X"$as_dir" : 'X\(//\)[^/]' \| \
16990 X"$as_dir" : 'X\(//\)$' \| \
16991 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16992$as_echo X"$as_dir" |
16993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16994 s//\1/
16995 q
16996 }
16997 /^X\(\/\/\)[^/].*/{
16998 s//\1/
16999 q