blob: d31ef346c6c0f5ef19f2209474f613c415a651f2 [file] [log] [blame]
Jon Dugane34c20c2010-07-08 23:26:52 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for iperf 3.0a4.
4#
5# Report bugs to <iperf-users@lists.sourceforge.net>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
94case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103IFS=$as_save_IFS
104
105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
177 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 PATH=/empty FPATH=/empty; export PATH FPATH
182 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
183 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
184test \$(( 1 + 1 )) = 2 || exit 1"
185 if (eval "$as_required") 2>/dev/null; then :
186 as_have_required=yes
187else
188 as_have_required=no
189fi
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192else
193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194as_found=false
195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196do
197 IFS=$as_save_IFS
198 test -z "$as_dir" && as_dir=.
199 as_found=:
200 case $as_dir in #(
201 /*)
202 for as_base in sh bash ksh sh5; do
203 # Try only shells that exist, to save several forks.
204 as_shell=$as_dir/$as_base
205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 CONFIG_SHELL=$as_shell as_have_required=yes
208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209 break 2
210fi
211fi
212 done;;
213 esac
214 as_found=false
215done
216$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218 CONFIG_SHELL=$SHELL as_have_required=yes
219fi; }
220IFS=$as_save_IFS
221
222
223 if test "x$CONFIG_SHELL" != x; then :
224 # We cannot yet assume a decent shell, so we have to provide a
225 # neutralization value for shells without unset; and this also
226 # works around shells that cannot unset nonexistent variables.
227 BASH_ENV=/dev/null
228 ENV=/dev/null
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230 export CONFIG_SHELL
231 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: iperf-users@lists.sourceforge.net about your system,
243$0: including any error possibly output before this
244$0: message. Then install a modern shell, or manually run
245$0: the script under such a shell if you do have one."
246 fi
247 exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265 { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274 return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282 set +e
283 as_fn_set_status $1
284 exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\).*/{
323 s//\1/
324 q
325 }
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
342 {
343 eval $1+=\$2
344 }'
345else
346 as_fn_append ()
347 {
348 eval $1=\$$1\$2
349 }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
359 {
360 as_val=$(( $* ))
361 }'
362else
363 as_fn_arith ()
364 {
365 as_val=`expr "$@" || test $? -eq 1`
366 }
367fi # as_fn_arith
368
369
370# as_fn_error ERROR [LINENO LOG_FD]
371# ---------------------------------
372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374# script with status $?, using 1 if that was 0.
375as_fn_error ()
376{
377 as_status=$?; test $as_status -eq 0 && as_status=1
378 if test "$3"; then
379 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
381 fi
382 $as_echo "$as_me: error: $1" >&2
383 as_fn_exit $as_status
384} # as_fn_error
385
386if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389else
390 as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395else
396 as_basename=false
397fi
398
399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401else
402 as_dirname=false
403fi
404
405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409$as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
412 q
413 }
414 /^X\/\(\/\/\)$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\).*/{
419 s//\1/
420 q
421 }
422 s/.*/./; q'`
423
424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
446 N
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
461}
462
463ECHO_C= ECHO_N= ECHO_T=
464case `echo -n x` in #(((((
465-n*)
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
471 esac;;
472*)
473 ECHO_N='-n';;
474esac
475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
482fi
483if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
496 fi
497else
498 as_ln_s='cp -p'
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
505else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
508fi
509
510if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
517 fi
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
523 case $1 in #(
524 -*)set "./$1";;
525 esac;
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
529 '
530fi
531as_executable_p=$as_test_x
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539SHELL=${CONFIG_SHELL-/bin/sh}
540
541
542test -n "$DJDIR" || exec 7<&0 </dev/null
543exec 6>&1
544
545# Name of the host.
546# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
547# so uname gets run too.
548ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549
550#
551# Initializations.
552#
553ac_default_prefix=/usr/local
554ac_clean_files=
555ac_config_libobj_dir=.
556LIBOBJS=
557cross_compiling=no
558subdirs=
559MFLAGS=
560MAKEFLAGS=
561
562# Identity of this package.
563PACKAGE_NAME='iperf'
564PACKAGE_TARNAME='iperf'
565PACKAGE_VERSION='3.0a4'
566PACKAGE_STRING='iperf 3.0a4'
567PACKAGE_BUGREPORT='iperf-users@lists.sourceforge.net'
568PACKAGE_URL=''
569
570# Factoring default headers for most tests.
571ac_includes_default="\
572#include <stdio.h>
573#ifdef HAVE_SYS_TYPES_H
574# include <sys/types.h>
575#endif
576#ifdef HAVE_SYS_STAT_H
577# include <sys/stat.h>
578#endif
579#ifdef STDC_HEADERS
580# include <stdlib.h>
581# include <stddef.h>
582#else
583# ifdef HAVE_STDLIB_H
584# include <stdlib.h>
585# endif
586#endif
587#ifdef HAVE_STRING_H
588# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589# include <memory.h>
590# endif
591# include <string.h>
592#endif
593#ifdef HAVE_STRINGS_H
594# include <strings.h>
595#endif
596#ifdef HAVE_INTTYPES_H
597# include <inttypes.h>
598#endif
599#ifdef HAVE_STDINT_H
600# include <stdint.h>
601#endif
602#ifdef HAVE_UNISTD_H
603# include <unistd.h>
604#endif"
605
606ac_subst_vars='LTLIBOBJS
607LIBOBJS
608USE_UUID_LIBRARY_FALSE
609USE_UUID_LIBRARY_TRUE
610LINUX_FALSE
611LINUX_TRUE
612CPP
613OTOOL64
614OTOOL
615LIPO
616NMEDIT
617DSYMUTIL
618AR
619OBJDUMP
620NM
621ac_ct_DUMPBIN
622DUMPBIN
623LD
624FGREP
625EGREP
626GREP
627SED
628LIBTOOL
629LN_S
630RANLIB
631am__fastdepCC_FALSE
632am__fastdepCC_TRUE
633CCDEPMODE
634AMDEPBACKSLASH
635AMDEP_FALSE
636AMDEP_TRUE
637am__quote
638am__include
639DEPDIR
640OBJEXT
641EXEEXT
642ac_ct_CC
643CPPFLAGS
644LDFLAGS
645CFLAGS
646CC
647host_os
648host_vendor
649host_cpu
650host
651build_os
652build_vendor
653build_cpu
654build
655am__leading_dot
656SET_MAKE
657AWK
658INSTALL_STRIP_PROGRAM
659STRIP
660install_sh
661AMTAR
662MAKEINFO
663AUTOHEADER
664AUTOMAKE
665AUTOCONF
666ACLOCAL
667VERSION
668PACKAGE
669CYGPATH_W
670INSTALL_DATA
671INSTALL_SCRIPT
672INSTALL_PROGRAM
673target_alias
674host_alias
675build_alias
676LIBS
677ECHO_T
678ECHO_N
679ECHO_C
680DEFS
681mandir
682localedir
683libdir
684psdir
685pdfdir
686dvidir
687htmldir
688infodir
689docdir
690oldincludedir
691includedir
692localstatedir
693sharedstatedir
694sysconfdir
695datadir
696datarootdir
697libexecdir
698sbindir
699bindir
700program_transform_name
701prefix
702exec_prefix
703PACKAGE_URL
704PACKAGE_BUGREPORT
705PACKAGE_STRING
706PACKAGE_VERSION
707PACKAGE_TARNAME
708PACKAGE_NAME
709PATH_SEPARATOR
710SHELL'
711ac_subst_files=''
712ac_user_opts='
713enable_option_checking
714enable_dependency_tracking
715enable_shared
716enable_static
717with_pic
718enable_fast_install
719with_gnu_ld
720enable_libtool_lock
721'
722 ac_precious_vars='build_alias
723host_alias
724target_alias
725CC
726CFLAGS
727LDFLAGS
728LIBS
729CPPFLAGS
730CPP'
731
732
733# Initialize some variables set by options.
734ac_init_help=
735ac_init_version=false
736ac_unrecognized_opts=
737ac_unrecognized_sep=
738# The variables have the same names as the options, with
739# dashes changed to underlines.
740cache_file=/dev/null
741exec_prefix=NONE
742no_create=
743no_recursion=
744prefix=NONE
745program_prefix=NONE
746program_suffix=NONE
747program_transform_name=s,x,x,
748silent=
749site=
750srcdir=
751verbose=
752x_includes=NONE
753x_libraries=NONE
754
755# Installation directory options.
756# These are left unexpanded so users can "make install exec_prefix=/foo"
757# and all the variables that are supposed to be based on exec_prefix
758# by default will actually change.
759# Use braces instead of parens because sh, perl, etc. also accept them.
760# (The list follows the same order as the GNU Coding Standards.)
761bindir='${exec_prefix}/bin'
762sbindir='${exec_prefix}/sbin'
763libexecdir='${exec_prefix}/libexec'
764datarootdir='${prefix}/share'
765datadir='${datarootdir}'
766sysconfdir='${prefix}/etc'
767sharedstatedir='${prefix}/com'
768localstatedir='${prefix}/var'
769includedir='${prefix}/include'
770oldincludedir='/usr/include'
771docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
772infodir='${datarootdir}/info'
773htmldir='${docdir}'
774dvidir='${docdir}'
775pdfdir='${docdir}'
776psdir='${docdir}'
777libdir='${exec_prefix}/lib'
778localedir='${datarootdir}/locale'
779mandir='${datarootdir}/man'
780
781ac_prev=
782ac_dashdash=
783for ac_option
784do
785 # If the previous option needs an argument, assign it.
786 if test -n "$ac_prev"; then
787 eval $ac_prev=\$ac_option
788 ac_prev=
789 continue
790 fi
791
792 case $ac_option in
793 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
794 *) ac_optarg=yes ;;
795 esac
796
797 # Accept the important Cygnus configure options, so we can diagnose typos.
798
799 case $ac_dashdash$ac_option in
800 --)
801 ac_dashdash=yes ;;
802
803 -bindir | --bindir | --bindi | --bind | --bin | --bi)
804 ac_prev=bindir ;;
805 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
806 bindir=$ac_optarg ;;
807
808 -build | --build | --buil | --bui | --bu)
809 ac_prev=build_alias ;;
810 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
811 build_alias=$ac_optarg ;;
812
813 -cache-file | --cache-file | --cache-fil | --cache-fi \
814 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
815 ac_prev=cache_file ;;
816 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
817 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
818 cache_file=$ac_optarg ;;
819
820 --config-cache | -C)
821 cache_file=config.cache ;;
822
823 -datadir | --datadir | --datadi | --datad)
824 ac_prev=datadir ;;
825 -datadir=* | --datadir=* | --datadi=* | --datad=*)
826 datadir=$ac_optarg ;;
827
828 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
829 | --dataroo | --dataro | --datar)
830 ac_prev=datarootdir ;;
831 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
832 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
833 datarootdir=$ac_optarg ;;
834
835 -disable-* | --disable-*)
836 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
837 # Reject names that are not valid shell variable names.
838 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
839 as_fn_error "invalid feature name: $ac_useropt"
840 ac_useropt_orig=$ac_useropt
841 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
842 case $ac_user_opts in
843 *"
844"enable_$ac_useropt"
845"*) ;;
846 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
847 ac_unrecognized_sep=', ';;
848 esac
849 eval enable_$ac_useropt=no ;;
850
851 -docdir | --docdir | --docdi | --doc | --do)
852 ac_prev=docdir ;;
853 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
854 docdir=$ac_optarg ;;
855
856 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
857 ac_prev=dvidir ;;
858 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
859 dvidir=$ac_optarg ;;
860
861 -enable-* | --enable-*)
862 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
863 # Reject names that are not valid shell variable names.
864 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
865 as_fn_error "invalid feature name: $ac_useropt"
866 ac_useropt_orig=$ac_useropt
867 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
868 case $ac_user_opts in
869 *"
870"enable_$ac_useropt"
871"*) ;;
872 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
873 ac_unrecognized_sep=', ';;
874 esac
875 eval enable_$ac_useropt=\$ac_optarg ;;
876
877 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
878 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
879 | --exec | --exe | --ex)
880 ac_prev=exec_prefix ;;
881 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
882 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
883 | --exec=* | --exe=* | --ex=*)
884 exec_prefix=$ac_optarg ;;
885
886 -gas | --gas | --ga | --g)
887 # Obsolete; use --with-gas.
888 with_gas=yes ;;
889
890 -help | --help | --hel | --he | -h)
891 ac_init_help=long ;;
892 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
893 ac_init_help=recursive ;;
894 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
895 ac_init_help=short ;;
896
897 -host | --host | --hos | --ho)
898 ac_prev=host_alias ;;
899 -host=* | --host=* | --hos=* | --ho=*)
900 host_alias=$ac_optarg ;;
901
902 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
903 ac_prev=htmldir ;;
904 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
905 | --ht=*)
906 htmldir=$ac_optarg ;;
907
908 -includedir | --includedir | --includedi | --included | --include \
909 | --includ | --inclu | --incl | --inc)
910 ac_prev=includedir ;;
911 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
912 | --includ=* | --inclu=* | --incl=* | --inc=*)
913 includedir=$ac_optarg ;;
914
915 -infodir | --infodir | --infodi | --infod | --info | --inf)
916 ac_prev=infodir ;;
917 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
918 infodir=$ac_optarg ;;
919
920 -libdir | --libdir | --libdi | --libd)
921 ac_prev=libdir ;;
922 -libdir=* | --libdir=* | --libdi=* | --libd=*)
923 libdir=$ac_optarg ;;
924
925 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
926 | --libexe | --libex | --libe)
927 ac_prev=libexecdir ;;
928 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
929 | --libexe=* | --libex=* | --libe=*)
930 libexecdir=$ac_optarg ;;
931
932 -localedir | --localedir | --localedi | --localed | --locale)
933 ac_prev=localedir ;;
934 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
935 localedir=$ac_optarg ;;
936
937 -localstatedir | --localstatedir | --localstatedi | --localstated \
938 | --localstate | --localstat | --localsta | --localst | --locals)
939 ac_prev=localstatedir ;;
940 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
941 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
942 localstatedir=$ac_optarg ;;
943
944 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
945 ac_prev=mandir ;;
946 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
947 mandir=$ac_optarg ;;
948
949 -nfp | --nfp | --nf)
950 # Obsolete; use --without-fp.
951 with_fp=no ;;
952
953 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
954 | --no-cr | --no-c | -n)
955 no_create=yes ;;
956
957 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
958 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
959 no_recursion=yes ;;
960
961 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
962 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
963 | --oldin | --oldi | --old | --ol | --o)
964 ac_prev=oldincludedir ;;
965 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
966 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
967 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
968 oldincludedir=$ac_optarg ;;
969
970 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
971 ac_prev=prefix ;;
972 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
973 prefix=$ac_optarg ;;
974
975 -program-prefix | --program-prefix | --program-prefi | --program-pref \
976 | --program-pre | --program-pr | --program-p)
977 ac_prev=program_prefix ;;
978 -program-prefix=* | --program-prefix=* | --program-prefi=* \
979 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
980 program_prefix=$ac_optarg ;;
981
982 -program-suffix | --program-suffix | --program-suffi | --program-suff \
983 | --program-suf | --program-su | --program-s)
984 ac_prev=program_suffix ;;
985 -program-suffix=* | --program-suffix=* | --program-suffi=* \
986 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
987 program_suffix=$ac_optarg ;;
988
989 -program-transform-name | --program-transform-name \
990 | --program-transform-nam | --program-transform-na \
991 | --program-transform-n | --program-transform- \
992 | --program-transform | --program-transfor \
993 | --program-transfo | --program-transf \
994 | --program-trans | --program-tran \
995 | --progr-tra | --program-tr | --program-t)
996 ac_prev=program_transform_name ;;
997 -program-transform-name=* | --program-transform-name=* \
998 | --program-transform-nam=* | --program-transform-na=* \
999 | --program-transform-n=* | --program-transform-=* \
1000 | --program-transform=* | --program-transfor=* \
1001 | --program-transfo=* | --program-transf=* \
1002 | --program-trans=* | --program-tran=* \
1003 | --progr-tra=* | --program-tr=* | --program-t=*)
1004 program_transform_name=$ac_optarg ;;
1005
1006 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1007 ac_prev=pdfdir ;;
1008 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1009 pdfdir=$ac_optarg ;;
1010
1011 -psdir | --psdir | --psdi | --psd | --ps)
1012 ac_prev=psdir ;;
1013 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1014 psdir=$ac_optarg ;;
1015
1016 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1017 | -silent | --silent | --silen | --sile | --sil)
1018 silent=yes ;;
1019
1020 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1021 ac_prev=sbindir ;;
1022 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1023 | --sbi=* | --sb=*)
1024 sbindir=$ac_optarg ;;
1025
1026 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1027 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1028 | --sharedst | --shareds | --shared | --share | --shar \
1029 | --sha | --sh)
1030 ac_prev=sharedstatedir ;;
1031 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1032 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1033 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1034 | --sha=* | --sh=*)
1035 sharedstatedir=$ac_optarg ;;
1036
1037 -site | --site | --sit)
1038 ac_prev=site ;;
1039 -site=* | --site=* | --sit=*)
1040 site=$ac_optarg ;;
1041
1042 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1043 ac_prev=srcdir ;;
1044 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1045 srcdir=$ac_optarg ;;
1046
1047 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1048 | --syscon | --sysco | --sysc | --sys | --sy)
1049 ac_prev=sysconfdir ;;
1050 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1051 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1052 sysconfdir=$ac_optarg ;;
1053
1054 -target | --target | --targe | --targ | --tar | --ta | --t)
1055 ac_prev=target_alias ;;
1056 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1057 target_alias=$ac_optarg ;;
1058
1059 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1060 verbose=yes ;;
1061
1062 -version | --version | --versio | --versi | --vers | -V)
1063 ac_init_version=: ;;
1064
1065 -with-* | --with-*)
1066 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 as_fn_error "invalid package name: $ac_useropt"
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1073 *"
1074"with_$ac_useropt"
1075"*) ;;
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1078 esac
1079 eval with_$ac_useropt=\$ac_optarg ;;
1080
1081 -without-* | --without-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 as_fn_error "invalid package name: $ac_useropt"
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1089 *"
1090"with_$ac_useropt"
1091"*) ;;
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1094 esac
1095 eval with_$ac_useropt=no ;;
1096
1097 --x)
1098 # Obsolete; use --with-x.
1099 with_x=yes ;;
1100
1101 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1102 | --x-incl | --x-inc | --x-in | --x-i)
1103 ac_prev=x_includes ;;
1104 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1105 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1106 x_includes=$ac_optarg ;;
1107
1108 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1109 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1110 ac_prev=x_libraries ;;
1111 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1112 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1113 x_libraries=$ac_optarg ;;
1114
1115 -*) as_fn_error "unrecognized option: \`$ac_option'
1116Try \`$0 --help' for more information."
1117 ;;
1118
1119 *=*)
1120 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1121 # Reject names that are not valid shell variable names.
1122 case $ac_envvar in #(
1123 '' | [0-9]* | *[!_$as_cr_alnum]* )
1124 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1125 esac
1126 eval $ac_envvar=\$ac_optarg
1127 export $ac_envvar ;;
1128
1129 *)
1130 # FIXME: should be removed in autoconf 3.0.
1131 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1132 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1133 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1134 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1135 ;;
1136
1137 esac
1138done
1139
1140if test -n "$ac_prev"; then
1141 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1142 as_fn_error "missing argument to $ac_option"
1143fi
1144
1145if test -n "$ac_unrecognized_opts"; then
1146 case $enable_option_checking in
1147 no) ;;
1148 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1149 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1150 esac
1151fi
1152
1153# Check all directory arguments for consistency.
1154for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1155 datadir sysconfdir sharedstatedir localstatedir includedir \
1156 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1157 libdir localedir mandir
1158do
1159 eval ac_val=\$$ac_var
1160 # Remove trailing slashes.
1161 case $ac_val in
1162 */ )
1163 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1164 eval $ac_var=\$ac_val;;
1165 esac
1166 # Be sure to have absolute directory names.
1167 case $ac_val in
1168 [\\/$]* | ?:[\\/]* ) continue;;
1169 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1170 esac
1171 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1172done
1173
1174# There might be people who depend on the old broken behavior: `$host'
1175# used to hold the argument of --host etc.
1176# FIXME: To remove some day.
1177build=$build_alias
1178host=$host_alias
1179target=$target_alias
1180
1181# FIXME: To remove some day.
1182if test "x$host_alias" != x; then
1183 if test "x$build_alias" = x; then
1184 cross_compiling=maybe
1185 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1186 If a cross compiler is detected then cross compile mode will be used." >&2
1187 elif test "x$build_alias" != "x$host_alias"; then
1188 cross_compiling=yes
1189 fi
1190fi
1191
1192ac_tool_prefix=
1193test -n "$host_alias" && ac_tool_prefix=$host_alias-
1194
1195test "$silent" = yes && exec 6>/dev/null
1196
1197
1198ac_pwd=`pwd` && test -n "$ac_pwd" &&
1199ac_ls_di=`ls -di .` &&
1200ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1201 as_fn_error "working directory cannot be determined"
1202test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1203 as_fn_error "pwd does not report name of working directory"
1204
1205
1206# Find the source files, if location was not specified.
1207if test -z "$srcdir"; then
1208 ac_srcdir_defaulted=yes
1209 # Try the directory containing this script, then the parent directory.
1210 ac_confdir=`$as_dirname -- "$as_myself" ||
1211$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1212 X"$as_myself" : 'X\(//\)[^/]' \| \
1213 X"$as_myself" : 'X\(//\)$' \| \
1214 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1215$as_echo X"$as_myself" |
1216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1217 s//\1/
1218 q
1219 }
1220 /^X\(\/\/\)[^/].*/{
1221 s//\1/
1222 q
1223 }
1224 /^X\(\/\/\)$/{
1225 s//\1/
1226 q
1227 }
1228 /^X\(\/\).*/{
1229 s//\1/
1230 q
1231 }
1232 s/.*/./; q'`
1233 srcdir=$ac_confdir
1234 if test ! -r "$srcdir/$ac_unique_file"; then
1235 srcdir=..
1236 fi
1237else
1238 ac_srcdir_defaulted=no
1239fi
1240if test ! -r "$srcdir/$ac_unique_file"; then
1241 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1242 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1243fi
1244ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1245ac_abs_confdir=`(
1246 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1247 pwd)`
1248# When building in place, set srcdir=.
1249if test "$ac_abs_confdir" = "$ac_pwd"; then
1250 srcdir=.
1251fi
1252# Remove unnecessary trailing slashes from srcdir.
1253# Double slashes in file names in object file debugging info
1254# mess up M-x gdb in Emacs.
1255case $srcdir in
1256*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1257esac
1258for ac_var in $ac_precious_vars; do
1259 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1260 eval ac_env_${ac_var}_value=\$${ac_var}
1261 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1262 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1263done
1264
1265#
1266# Report the --help message.
1267#
1268if test "$ac_init_help" = "long"; then
1269 # Omit some internal or obsolete options to make the list less imposing.
1270 # This message is too long to be a string in the A/UX 3.1 sh.
1271 cat <<_ACEOF
1272\`configure' configures iperf 3.0a4 to adapt to many kinds of systems.
1273
1274Usage: $0 [OPTION]... [VAR=VALUE]...
1275
1276To assign environment variables (e.g., CC, CFLAGS...), specify them as
1277VAR=VALUE. See below for descriptions of some of the useful variables.
1278
1279Defaults for the options are specified in brackets.
1280
1281Configuration:
1282 -h, --help display this help and exit
1283 --help=short display options specific to this package
1284 --help=recursive display the short help of all the included packages
1285 -V, --version display version information and exit
1286 -q, --quiet, --silent do not print \`checking...' messages
1287 --cache-file=FILE cache test results in FILE [disabled]
1288 -C, --config-cache alias for \`--cache-file=config.cache'
1289 -n, --no-create do not create output files
1290 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1291
1292Installation directories:
1293 --prefix=PREFIX install architecture-independent files in PREFIX
1294 [$ac_default_prefix]
1295 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1296 [PREFIX]
1297
1298By default, \`make install' will install all the files in
1299\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1300an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1301for instance \`--prefix=\$HOME'.
1302
1303For better control, use the options below.
1304
1305Fine tuning of the installation directories:
1306 --bindir=DIR user executables [EPREFIX/bin]
1307 --sbindir=DIR system admin executables [EPREFIX/sbin]
1308 --libexecdir=DIR program executables [EPREFIX/libexec]
1309 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1310 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1311 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1312 --libdir=DIR object code libraries [EPREFIX/lib]
1313 --includedir=DIR C header files [PREFIX/include]
1314 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1315 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1316 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1317 --infodir=DIR info documentation [DATAROOTDIR/info]
1318 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1319 --mandir=DIR man documentation [DATAROOTDIR/man]
1320 --docdir=DIR documentation root [DATAROOTDIR/doc/iperf]
1321 --htmldir=DIR html documentation [DOCDIR]
1322 --dvidir=DIR dvi documentation [DOCDIR]
1323 --pdfdir=DIR pdf documentation [DOCDIR]
1324 --psdir=DIR ps documentation [DOCDIR]
1325_ACEOF
1326
1327 cat <<\_ACEOF
1328
1329Program names:
1330 --program-prefix=PREFIX prepend PREFIX to installed program names
1331 --program-suffix=SUFFIX append SUFFIX to installed program names
1332 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1333
1334System types:
1335 --build=BUILD configure for building on BUILD [guessed]
1336 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1337_ACEOF
1338fi
1339
1340if test -n "$ac_init_help"; then
1341 case $ac_init_help in
1342 short | recursive ) echo "Configuration of iperf 3.0a4:";;
1343 esac
1344 cat <<\_ACEOF
1345
1346Optional Features:
1347 --disable-option-checking ignore unrecognized --enable/--with options
1348 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1349 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1350 --disable-dependency-tracking Speeds up one-time builds
1351 --enable-dependency-tracking Do not reject slow dependency extractors
1352 --enable-shared[=PKGS] build shared libraries [default=yes]
1353 --enable-static[=PKGS] build static libraries [default=yes]
1354 --enable-fast-install[=PKGS]
1355 optimize for fast installation [default=yes]
1356 --disable-libtool-lock avoid locking (might break parallel builds)
1357
1358Optional Packages:
1359 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1360 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1361 --with-pic try to use only PIC/non-PIC objects [default=use
1362 both]
1363 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1364
1365Some influential environment variables:
1366 CC C compiler command
1367 CFLAGS C compiler flags
1368 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1369 nonstandard directory <lib dir>
1370 LIBS libraries to pass to the linker, e.g. -l<library>
1371 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1372 you have headers in a nonstandard directory <include dir>
1373 CPP C preprocessor
1374
1375Use these variables to override the choices made by `configure' or to help
1376it to find libraries and programs with nonstandard names/locations.
1377
1378Report bugs to <iperf-users@lists.sourceforge.net>.
1379_ACEOF
1380ac_status=$?
1381fi
1382
1383if test "$ac_init_help" = "recursive"; then
1384 # If there are subdirs, report their specific --help.
1385 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1386 test -d "$ac_dir" ||
1387 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1388 continue
1389 ac_builddir=.
1390
1391case "$ac_dir" in
1392.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393*)
1394 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1395 # A ".." for each directory in $ac_dir_suffix.
1396 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1397 case $ac_top_builddir_sub in
1398 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1399 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1400 esac ;;
1401esac
1402ac_abs_top_builddir=$ac_pwd
1403ac_abs_builddir=$ac_pwd$ac_dir_suffix
1404# for backward compatibility:
1405ac_top_builddir=$ac_top_build_prefix
1406
1407case $srcdir in
1408 .) # We are building in place.
1409 ac_srcdir=.
1410 ac_top_srcdir=$ac_top_builddir_sub
1411 ac_abs_top_srcdir=$ac_pwd ;;
1412 [\\/]* | ?:[\\/]* ) # Absolute name.
1413 ac_srcdir=$srcdir$ac_dir_suffix;
1414 ac_top_srcdir=$srcdir
1415 ac_abs_top_srcdir=$srcdir ;;
1416 *) # Relative name.
1417 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1418 ac_top_srcdir=$ac_top_build_prefix$srcdir
1419 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1420esac
1421ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1422
1423 cd "$ac_dir" || { ac_status=$?; continue; }
1424 # Check for guested configure.
1425 if test -f "$ac_srcdir/configure.gnu"; then
1426 echo &&
1427 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1428 elif test -f "$ac_srcdir/configure"; then
1429 echo &&
1430 $SHELL "$ac_srcdir/configure" --help=recursive
1431 else
1432 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1433 fi || ac_status=$?
1434 cd "$ac_pwd" || { ac_status=$?; break; }
1435 done
1436fi
1437
1438test -n "$ac_init_help" && exit $ac_status
1439if $ac_init_version; then
1440 cat <<\_ACEOF
1441iperf configure 3.0a4
1442generated by GNU Autoconf 2.65
1443
1444Copyright (C) 2009 Free Software Foundation, Inc.
1445This configure script is free software; the Free Software Foundation
1446gives unlimited permission to copy, distribute and modify it.
1447_ACEOF
1448 exit
1449fi
1450
1451## ------------------------ ##
1452## Autoconf initialization. ##
1453## ------------------------ ##
1454
1455# ac_fn_c_try_compile LINENO
1456# --------------------------
1457# Try to compile conftest.$ac_ext, and return whether this succeeded.
1458ac_fn_c_try_compile ()
1459{
1460 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1461 rm -f conftest.$ac_objext
1462 if { { ac_try="$ac_compile"
1463case "(($ac_try" in
1464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1465 *) ac_try_echo=$ac_try;;
1466esac
1467eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1468$as_echo "$ac_try_echo"; } >&5
1469 (eval "$ac_compile") 2>conftest.err
1470 ac_status=$?
1471 if test -s conftest.err; then
1472 grep -v '^ *+' conftest.err >conftest.er1
1473 cat conftest.er1 >&5
1474 mv -f conftest.er1 conftest.err
1475 fi
1476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1477 test $ac_status = 0; } && {
1478 test -z "$ac_c_werror_flag" ||
1479 test ! -s conftest.err
1480 } && test -s conftest.$ac_objext; then :
1481 ac_retval=0
1482else
1483 $as_echo "$as_me: failed program was:" >&5
1484sed 's/^/| /' conftest.$ac_ext >&5
1485
1486 ac_retval=1
1487fi
1488 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1489 as_fn_set_status $ac_retval
1490
1491} # ac_fn_c_try_compile
1492
1493# ac_fn_c_try_link LINENO
1494# -----------------------
1495# Try to link conftest.$ac_ext, and return whether this succeeded.
1496ac_fn_c_try_link ()
1497{
1498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1499 rm -f conftest.$ac_objext conftest$ac_exeext
1500 if { { ac_try="$ac_link"
1501case "(($ac_try" in
1502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1503 *) ac_try_echo=$ac_try;;
1504esac
1505eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1506$as_echo "$ac_try_echo"; } >&5
1507 (eval "$ac_link") 2>conftest.err
1508 ac_status=$?
1509 if test -s conftest.err; then
1510 grep -v '^ *+' conftest.err >conftest.er1
1511 cat conftest.er1 >&5
1512 mv -f conftest.er1 conftest.err
1513 fi
1514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1515 test $ac_status = 0; } && {
1516 test -z "$ac_c_werror_flag" ||
1517 test ! -s conftest.err
1518 } && test -s conftest$ac_exeext && {
1519 test "$cross_compiling" = yes ||
1520 $as_test_x conftest$ac_exeext
1521 }; then :
1522 ac_retval=0
1523else
1524 $as_echo "$as_me: failed program was:" >&5
1525sed 's/^/| /' conftest.$ac_ext >&5
1526
1527 ac_retval=1
1528fi
1529 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1530 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1531 # interfere with the next link command; also delete a directory that is
1532 # left behind by Apple's compiler. We do this before executing the actions.
1533 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1534 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1535 as_fn_set_status $ac_retval
1536
1537} # ac_fn_c_try_link
1538
1539# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1540# -------------------------------------------------------
1541# Tests whether HEADER exists and can be compiled using the include files in
1542# INCLUDES, setting the cache variable VAR accordingly.
1543ac_fn_c_check_header_compile ()
1544{
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1547$as_echo_n "checking for $2... " >&6; }
1548if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1549 $as_echo_n "(cached) " >&6
1550else
1551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1552/* end confdefs.h. */
1553$4
1554#include <$2>
1555_ACEOF
1556if ac_fn_c_try_compile "$LINENO"; then :
1557 eval "$3=yes"
1558else
1559 eval "$3=no"
1560fi
1561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1562fi
1563eval ac_res=\$$3
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1565$as_echo "$ac_res" >&6; }
1566 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1567
1568} # ac_fn_c_check_header_compile
1569
1570# ac_fn_c_try_cpp LINENO
1571# ----------------------
1572# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1573ac_fn_c_try_cpp ()
1574{
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 if { { ac_try="$ac_cpp conftest.$ac_ext"
1577case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580esac
1581eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582$as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1589 fi
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } >/dev/null && {
1592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 }; then :
1595 ac_retval=0
1596else
1597 $as_echo "$as_me: failed program was:" >&5
1598sed 's/^/| /' conftest.$ac_ext >&5
1599
1600 ac_retval=1
1601fi
1602 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1603 as_fn_set_status $ac_retval
1604
1605} # ac_fn_c_try_cpp
1606
1607# ac_fn_c_try_run LINENO
1608# ----------------------
1609# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1610# that executables *can* be run.
1611ac_fn_c_try_run ()
1612{
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 if { { ac_try="$ac_link"
1615case "(($ac_try" in
1616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1617 *) ac_try_echo=$ac_try;;
1618esac
1619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1620$as_echo "$ac_try_echo"; } >&5
1621 (eval "$ac_link") 2>&5
1622 ac_status=$?
1623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1624 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1625 { { case "(($ac_try" in
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1628esac
1629eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630$as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_try") 2>&5
1632 ac_status=$?
1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1634 test $ac_status = 0; }; }; then :
1635 ac_retval=0
1636else
1637 $as_echo "$as_me: program exited with status $ac_status" >&5
1638 $as_echo "$as_me: failed program was:" >&5
1639sed 's/^/| /' conftest.$ac_ext >&5
1640
1641 ac_retval=$ac_status
1642fi
1643 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1644 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1645 as_fn_set_status $ac_retval
1646
1647} # ac_fn_c_try_run
1648
1649# ac_fn_c_check_func LINENO FUNC VAR
1650# ----------------------------------
1651# Tests whether FUNC exists, setting the cache variable VAR accordingly
1652ac_fn_c_check_func ()
1653{
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656$as_echo_n "checking for $2... " >&6; }
1657if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1658 $as_echo_n "(cached) " >&6
1659else
1660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1661/* end confdefs.h. */
1662/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1664#define $2 innocuous_$2
1665
1666/* System header to define __stub macros and hopefully few prototypes,
1667 which can conflict with char $2 (); below.
1668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1669 <limits.h> exists even on freestanding compilers. */
1670
1671#ifdef __STDC__
1672# include <limits.h>
1673#else
1674# include <assert.h>
1675#endif
1676
1677#undef $2
1678
1679/* Override any GCC internal prototype to avoid an error.
1680 Use char because int might match the return type of a GCC
1681 builtin and then its argument prototype would still apply. */
1682#ifdef __cplusplus
1683extern "C"
1684#endif
1685char $2 ();
1686/* The GNU C library defines this for functions which it implements
1687 to always fail with ENOSYS. Some functions are actually named
1688 something starting with __ and the normal name is an alias. */
1689#if defined __stub_$2 || defined __stub___$2
1690choke me
1691#endif
1692
1693int
1694main ()
1695{
1696return $2 ();
1697 ;
1698 return 0;
1699}
1700_ACEOF
1701if ac_fn_c_try_link "$LINENO"; then :
1702 eval "$3=yes"
1703else
1704 eval "$3=no"
1705fi
1706rm -f core conftest.err conftest.$ac_objext \
1707 conftest$ac_exeext conftest.$ac_ext
1708fi
1709eval ac_res=\$$3
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1711$as_echo "$ac_res" >&6; }
1712 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1713
1714} # ac_fn_c_check_func
1715
1716# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1717# -------------------------------------------------------
1718# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1719# the include files in INCLUDES and setting the cache variable VAR
1720# accordingly.
1721ac_fn_c_check_header_mongrel ()
1722{
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726$as_echo_n "checking for $2... " >&6; }
1727if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1728 $as_echo_n "(cached) " >&6
1729fi
1730eval ac_res=\$$3
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732$as_echo "$ac_res" >&6; }
1733else
1734 # Is the header compilable?
1735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1736$as_echo_n "checking $2 usability... " >&6; }
1737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738/* end confdefs.h. */
1739$4
1740#include <$2>
1741_ACEOF
1742if ac_fn_c_try_compile "$LINENO"; then :
1743 ac_header_compiler=yes
1744else
1745 ac_header_compiler=no
1746fi
1747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1749$as_echo "$ac_header_compiler" >&6; }
1750
1751# Is the header present?
1752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1753$as_echo_n "checking $2 presence... " >&6; }
1754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755/* end confdefs.h. */
1756#include <$2>
1757_ACEOF
1758if ac_fn_c_try_cpp "$LINENO"; then :
1759 ac_header_preproc=yes
1760else
1761 ac_header_preproc=no
1762fi
1763rm -f conftest.err conftest.$ac_ext
1764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1765$as_echo "$ac_header_preproc" >&6; }
1766
1767# So? What about this header?
1768case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1769 yes:no: )
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1771$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1773$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1774 ;;
1775 no:yes:* )
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1777$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1779$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1781$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1783$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1785$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1786( cat <<\_ASBOX
1787## ------------------------------------------------ ##
1788## Report this to iperf-users@lists.sourceforge.net ##
1789## ------------------------------------------------ ##
1790_ASBOX
1791 ) | sed "s/^/$as_me: WARNING: /" >&2
1792 ;;
1793esac
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795$as_echo_n "checking for $2... " >&6; }
1796if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1797 $as_echo_n "(cached) " >&6
1798else
1799 eval "$3=\$ac_header_compiler"
1800fi
1801eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803$as_echo "$ac_res" >&6; }
1804fi
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806
1807} # ac_fn_c_check_header_mongrel
1808cat >config.log <<_ACEOF
1809This file contains any messages produced by compilers while
1810running configure, to aid debugging if configure makes a mistake.
1811
1812It was created by iperf $as_me 3.0a4, which was
1813generated by GNU Autoconf 2.65. Invocation command line was
1814
1815 $ $0 $@
1816
1817_ACEOF
1818exec 5>>config.log
1819{
1820cat <<_ASUNAME
1821## --------- ##
1822## Platform. ##
1823## --------- ##
1824
1825hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1826uname -m = `(uname -m) 2>/dev/null || echo unknown`
1827uname -r = `(uname -r) 2>/dev/null || echo unknown`
1828uname -s = `(uname -s) 2>/dev/null || echo unknown`
1829uname -v = `(uname -v) 2>/dev/null || echo unknown`
1830
1831/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1832/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1833
1834/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1835/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1836/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1837/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1838/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1839/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1840/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1841
1842_ASUNAME
1843
1844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1845for as_dir in $PATH
1846do
1847 IFS=$as_save_IFS
1848 test -z "$as_dir" && as_dir=.
1849 $as_echo "PATH: $as_dir"
1850 done
1851IFS=$as_save_IFS
1852
1853} >&5
1854
1855cat >&5 <<_ACEOF
1856
1857
1858## ----------- ##
1859## Core tests. ##
1860## ----------- ##
1861
1862_ACEOF
1863
1864
1865# Keep a trace of the command line.
1866# Strip out --no-create and --no-recursion so they do not pile up.
1867# Strip out --silent because we don't want to record it for future runs.
1868# Also quote any args containing shell meta-characters.
1869# Make two passes to allow for proper duplicate-argument suppression.
1870ac_configure_args=
1871ac_configure_args0=
1872ac_configure_args1=
1873ac_must_keep_next=false
1874for ac_pass in 1 2
1875do
1876 for ac_arg
1877 do
1878 case $ac_arg in
1879 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1880 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1881 | -silent | --silent | --silen | --sile | --sil)
1882 continue ;;
1883 *\'*)
1884 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1885 esac
1886 case $ac_pass in
1887 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1888 2)
1889 as_fn_append ac_configure_args1 " '$ac_arg'"
1890 if test $ac_must_keep_next = true; then
1891 ac_must_keep_next=false # Got value, back to normal.
1892 else
1893 case $ac_arg in
1894 *=* | --config-cache | -C | -disable-* | --disable-* \
1895 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1896 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1897 | -with-* | --with-* | -without-* | --without-* | --x)
1898 case "$ac_configure_args0 " in
1899 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1900 esac
1901 ;;
1902 -* ) ac_must_keep_next=true ;;
1903 esac
1904 fi
1905 as_fn_append ac_configure_args " '$ac_arg'"
1906 ;;
1907 esac
1908 done
1909done
1910{ ac_configure_args0=; unset ac_configure_args0;}
1911{ ac_configure_args1=; unset ac_configure_args1;}
1912
1913# When interrupted or exit'd, cleanup temporary files, and complete
1914# config.log. We remove comments because anyway the quotes in there
1915# would cause problems or look ugly.
1916# WARNING: Use '\'' to represent an apostrophe within the trap.
1917# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1918trap 'exit_status=$?
1919 # Save into config.log some information that might help in debugging.
1920 {
1921 echo
1922
1923 cat <<\_ASBOX
1924## ---------------- ##
1925## Cache variables. ##
1926## ---------------- ##
1927_ASBOX
1928 echo
1929 # The following way of writing the cache mishandles newlines in values,
1930(
1931 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1932 eval ac_val=\$$ac_var
1933 case $ac_val in #(
1934 *${as_nl}*)
1935 case $ac_var in #(
1936 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1937$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1938 esac
1939 case $ac_var in #(
1940 _ | IFS | as_nl) ;; #(
1941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1942 *) { eval $ac_var=; unset $ac_var;} ;;
1943 esac ;;
1944 esac
1945 done
1946 (set) 2>&1 |
1947 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1948 *${as_nl}ac_space=\ *)
1949 sed -n \
1950 "s/'\''/'\''\\\\'\'''\''/g;
1951 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1952 ;; #(
1953 *)
1954 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1955 ;;
1956 esac |
1957 sort
1958)
1959 echo
1960
1961 cat <<\_ASBOX
1962## ----------------- ##
1963## Output variables. ##
1964## ----------------- ##
1965_ASBOX
1966 echo
1967 for ac_var in $ac_subst_vars
1968 do
1969 eval ac_val=\$$ac_var
1970 case $ac_val in
1971 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1972 esac
1973 $as_echo "$ac_var='\''$ac_val'\''"
1974 done | sort
1975 echo
1976
1977 if test -n "$ac_subst_files"; then
1978 cat <<\_ASBOX
1979## ------------------- ##
1980## File substitutions. ##
1981## ------------------- ##
1982_ASBOX
1983 echo
1984 for ac_var in $ac_subst_files
1985 do
1986 eval ac_val=\$$ac_var
1987 case $ac_val in
1988 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1989 esac
1990 $as_echo "$ac_var='\''$ac_val'\''"
1991 done | sort
1992 echo
1993 fi
1994
1995 if test -s confdefs.h; then
1996 cat <<\_ASBOX
1997## ----------- ##
1998## confdefs.h. ##
1999## ----------- ##
2000_ASBOX
2001 echo
2002 cat confdefs.h
2003 echo
2004 fi
2005 test "$ac_signal" != 0 &&
2006 $as_echo "$as_me: caught signal $ac_signal"
2007 $as_echo "$as_me: exit $exit_status"
2008 } >&5
2009 rm -f core *.core core.conftest.* &&
2010 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2011 exit $exit_status
2012' 0
2013for ac_signal in 1 2 13 15; do
2014 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2015done
2016ac_signal=0
2017
2018# confdefs.h avoids OS command line length limits that DEFS can exceed.
2019rm -f -r conftest* confdefs.h
2020
2021$as_echo "/* confdefs.h */" > confdefs.h
2022
2023# Predefined preprocessor variables.
2024
2025cat >>confdefs.h <<_ACEOF
2026#define PACKAGE_NAME "$PACKAGE_NAME"
2027_ACEOF
2028
2029cat >>confdefs.h <<_ACEOF
2030#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2031_ACEOF
2032
2033cat >>confdefs.h <<_ACEOF
2034#define PACKAGE_VERSION "$PACKAGE_VERSION"
2035_ACEOF
2036
2037cat >>confdefs.h <<_ACEOF
2038#define PACKAGE_STRING "$PACKAGE_STRING"
2039_ACEOF
2040
2041cat >>confdefs.h <<_ACEOF
2042#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2043_ACEOF
2044
2045cat >>confdefs.h <<_ACEOF
2046#define PACKAGE_URL "$PACKAGE_URL"
2047_ACEOF
2048
2049
2050# Let the site file select an alternate cache file if it wants to.
2051# Prefer an explicitly selected file to automatically selected ones.
2052ac_site_file1=NONE
2053ac_site_file2=NONE
2054if test -n "$CONFIG_SITE"; then
2055 ac_site_file1=$CONFIG_SITE
2056elif test "x$prefix" != xNONE; then
2057 ac_site_file1=$prefix/share/config.site
2058 ac_site_file2=$prefix/etc/config.site
2059else
2060 ac_site_file1=$ac_default_prefix/share/config.site
2061 ac_site_file2=$ac_default_prefix/etc/config.site
2062fi
2063for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2064do
2065 test "x$ac_site_file" = xNONE && continue
2066 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2068$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2069 sed 's/^/| /' "$ac_site_file" >&5
2070 . "$ac_site_file"
2071 fi
2072done
2073
2074if test -r "$cache_file"; then
2075 # Some versions of bash will fail to source /dev/null (special files
2076 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2077 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2079$as_echo "$as_me: loading cache $cache_file" >&6;}
2080 case $cache_file in
2081 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2082 *) . "./$cache_file";;
2083 esac
2084 fi
2085else
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2087$as_echo "$as_me: creating cache $cache_file" >&6;}
2088 >$cache_file
2089fi
2090
2091# Check that the precious variables saved in the cache have kept the same
2092# value.
2093ac_cache_corrupted=false
2094for ac_var in $ac_precious_vars; do
2095 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2096 eval ac_new_set=\$ac_env_${ac_var}_set
2097 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2098 eval ac_new_val=\$ac_env_${ac_var}_value
2099 case $ac_old_set,$ac_new_set in
2100 set,)
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2102$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2103 ac_cache_corrupted=: ;;
2104 ,set)
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2106$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2107 ac_cache_corrupted=: ;;
2108 ,);;
2109 *)
2110 if test "x$ac_old_val" != "x$ac_new_val"; then
2111 # differences in whitespace do not lead to failure.
2112 ac_old_val_w=`echo x $ac_old_val`
2113 ac_new_val_w=`echo x $ac_new_val`
2114 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2116$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2117 ac_cache_corrupted=:
2118 else
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2120$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2121 eval $ac_var=\$ac_old_val
2122 fi
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2124$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2126$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2127 fi;;
2128 esac
2129 # Pass precious variables to config.status.
2130 if test "$ac_new_set" = set; then
2131 case $ac_new_val in
2132 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2133 *) ac_arg=$ac_var=$ac_new_val ;;
2134 esac
2135 case " $ac_configure_args " in
2136 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2137 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2138 esac
2139 fi
2140done
2141if $ac_cache_corrupted; then
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2145$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2146 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2147fi
2148## -------------------- ##
2149## Main body of script. ##
2150## -------------------- ##
2151
2152ac_ext=c
2153ac_cpp='$CPP $CPPFLAGS'
2154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2156ac_compiler_gnu=$ac_cv_c_compiler_gnu
2157
2158
2159
2160# Specify where the auxiliary files created by configure should go. The config
2161# directory is picked so that they don't clutter up more useful directories.
2162ac_aux_dir=
2163for ac_dir in config "$srcdir"/config; do
2164 for ac_t in install-sh install.sh shtool; do
2165 if test -f "$ac_dir/$ac_t"; then
2166 ac_aux_dir=$ac_dir
2167 ac_install_sh="$ac_aux_dir/$ac_t -c"
2168 break 2
2169 fi
2170 done
2171done
2172if test -z "$ac_aux_dir"; then
2173 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2174fi
2175
2176# These three variables are undocumented and unsupported,
2177# and are intended to be withdrawn in a future Autoconf release.
2178# They can cause serious problems if a builder's source tree is in a directory
2179# whose full name contains unusual characters.
2180ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2181ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2182ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2183
2184
2185
2186
2187# Initialize the automake system
2188am__api_version="1.7"
2189# Find a good install program. We prefer a C program (faster),
2190# so one script is as good as another. But avoid the broken or
2191# incompatible versions:
2192# SysV /etc/install, /usr/sbin/install
2193# SunOS /usr/etc/install
2194# IRIX /sbin/install
2195# AIX /bin/install
2196# AmigaOS /C/install, which installs bootblocks on floppy discs
2197# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2198# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2199# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2200# OS/2's system install, which has a completely different semantic
2201# ./install, which can be erroneously created by make from ./install.sh.
2202# Reject install programs that cannot install multiple files.
2203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2204$as_echo_n "checking for a BSD-compatible install... " >&6; }
2205if test -z "$INSTALL"; then
2206if test "${ac_cv_path_install+set}" = set; then :
2207 $as_echo_n "(cached) " >&6
2208else
2209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2210for as_dir in $PATH
2211do
2212 IFS=$as_save_IFS
2213 test -z "$as_dir" && as_dir=.
2214 # Account for people who put trailing slashes in PATH elements.
2215case $as_dir/ in #((
2216 ./ | .// | /[cC]/* | \
2217 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2218 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2219 /usr/ucb/* ) ;;
2220 *)
2221 # OSF1 and SCO ODT 3.0 have their own names for install.
2222 # Don't use installbsd from OSF since it installs stuff as root
2223 # by default.
2224 for ac_prog in ginstall scoinst install; do
2225 for ac_exec_ext in '' $ac_executable_extensions; do
2226 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2227 if test $ac_prog = install &&
2228 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2229 # AIX install. It has an incompatible calling convention.
2230 :
2231 elif test $ac_prog = install &&
2232 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2233 # program-specific install script used by HP pwplus--don't use.
2234 :
2235 else
2236 rm -rf conftest.one conftest.two conftest.dir
2237 echo one > conftest.one
2238 echo two > conftest.two
2239 mkdir conftest.dir
2240 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2241 test -s conftest.one && test -s conftest.two &&
2242 test -s conftest.dir/conftest.one &&
2243 test -s conftest.dir/conftest.two
2244 then
2245 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2246 break 3
2247 fi
2248 fi
2249 fi
2250 done
2251 done
2252 ;;
2253esac
2254
2255 done
2256IFS=$as_save_IFS
2257
2258rm -rf conftest.one conftest.two conftest.dir
2259
2260fi
2261 if test "${ac_cv_path_install+set}" = set; then
2262 INSTALL=$ac_cv_path_install
2263 else
2264 # As a last resort, use the slow shell script. Don't cache a
2265 # value for INSTALL within a source directory, because that will
2266 # break other packages using the cache if that directory is
2267 # removed, or if the value is a relative name.
2268 INSTALL=$ac_install_sh
2269 fi
2270fi
2271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2272$as_echo "$INSTALL" >&6; }
2273
2274# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2275# It thinks the first close brace ends the variable substitution.
2276test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2277
2278test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2279
2280test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2281
2282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2283$as_echo_n "checking whether build environment is sane... " >&6; }
2284# Just in case
2285sleep 1
2286echo timestamp > conftest.file
2287# Do `set' in a subshell so we don't clobber the current shell's
2288# arguments. Must try -L first in case configure is actually a
2289# symlink; some systems play weird games with the mod time of symlinks
2290# (eg FreeBSD returns the mod time of the symlink's containing
2291# directory).
2292if (
2293 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2294 if test "$*" = "X"; then
2295 # -L didn't work.
2296 set X `ls -t $srcdir/configure conftest.file`
2297 fi
2298 rm -f conftest.file
2299 if test "$*" != "X $srcdir/configure conftest.file" \
2300 && test "$*" != "X conftest.file $srcdir/configure"; then
2301
2302 # If neither matched, then we have a broken ls. This can happen
2303 # if, for instance, CONFIG_SHELL is bash and it inherits a
2304 # broken ls alias from the environment. This has actually
2305 # happened. Such a system could not be considered "sane".
2306 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2307alias in your environment" "$LINENO" 5
2308 fi
2309
2310 test "$2" = conftest.file
2311 )
2312then
2313 # Ok.
2314 :
2315else
2316 as_fn_error "newly created file is older than distributed files!
2317Check your system clock" "$LINENO" 5
2318fi
2319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2320$as_echo "yes" >&6; }
2321test "$program_prefix" != NONE &&
2322 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2323# Use a double $ so make ignores it.
2324test "$program_suffix" != NONE &&
2325 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2326# Double any \ or $.
2327# By default was `s,x,x', remove it if useless.
2328ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2329program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2330
2331
2332# expand $ac_aux_dir to an absolute path
2333am_aux_dir=`cd $ac_aux_dir && pwd`
2334
2335test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2336# Use eval to expand $SHELL
2337if eval "$MISSING --run true"; then
2338 am_missing_run="$MISSING --run "
2339else
2340 am_missing_run=
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2342$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2343fi
2344
2345for ac_prog in gawk mawk nawk awk
2346do
2347 # Extract the first word of "$ac_prog", so it can be a program name with args.
2348set dummy $ac_prog; ac_word=$2
2349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2350$as_echo_n "checking for $ac_word... " >&6; }
2351if test "${ac_cv_prog_AWK+set}" = set; then :
2352 $as_echo_n "(cached) " >&6
2353else
2354 if test -n "$AWK"; then
2355 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2356else
2357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358for as_dir in $PATH
2359do
2360 IFS=$as_save_IFS
2361 test -z "$as_dir" && as_dir=.
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364 ac_cv_prog_AWK="$ac_prog"
2365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2366 break 2
2367 fi
2368done
2369 done
2370IFS=$as_save_IFS
2371
2372fi
2373fi
2374AWK=$ac_cv_prog_AWK
2375if test -n "$AWK"; then
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2377$as_echo "$AWK" >&6; }
2378else
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2380$as_echo "no" >&6; }
2381fi
2382
2383
2384 test -n "$AWK" && break
2385done
2386
2387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2388$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2389set x ${MAKE-make}
2390ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2391if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2392 $as_echo_n "(cached) " >&6
2393else
2394 cat >conftest.make <<\_ACEOF
2395SHELL = /bin/sh
2396all:
2397 @echo '@@@%%%=$(MAKE)=@@@%%%'
2398_ACEOF
2399# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2400case `${MAKE-make} -f conftest.make 2>/dev/null` in
2401 *@@@%%%=?*=@@@%%%*)
2402 eval ac_cv_prog_make_${ac_make}_set=yes;;
2403 *)
2404 eval ac_cv_prog_make_${ac_make}_set=no;;
2405esac
2406rm -f conftest.make
2407fi
2408if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2410$as_echo "yes" >&6; }
2411 SET_MAKE=
2412else
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2414$as_echo "no" >&6; }
2415 SET_MAKE="MAKE=${MAKE-make}"
2416fi
2417
2418rm -rf .tst 2>/dev/null
2419mkdir .tst 2>/dev/null
2420if test -d .tst; then
2421 am__leading_dot=.
2422else
2423 am__leading_dot=_
2424fi
2425rmdir .tst 2>/dev/null
2426
2427 # test to see if srcdir already configured
2428if test "`cd $srcdir && pwd`" != "`pwd`" &&
2429 test -f $srcdir/config.status; then
2430 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2431fi
2432
2433# test whether we have cygpath
2434if test -z "$CYGPATH_W"; then
2435 if (cygpath --version) >/dev/null 2>/dev/null; then
2436 CYGPATH_W='cygpath -w'
2437 else
2438 CYGPATH_W=echo
2439 fi
2440fi
2441
2442
2443# Define the identity of the package.
2444 PACKAGE='iperf'
2445 VERSION='3.0a4'
2446
2447
2448cat >>confdefs.h <<_ACEOF
2449#define PACKAGE "$PACKAGE"
2450_ACEOF
2451
2452
2453cat >>confdefs.h <<_ACEOF
2454#define VERSION "$VERSION"
2455_ACEOF
2456
2457# Some tools Automake needs.
2458
2459ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2460
2461
2462AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2463
2464
2465AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2466
2467
2468AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2469
2470
2471MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2472
2473
2474AMTAR=${AMTAR-"${am_missing_run}tar"}
2475
2476install_sh=${install_sh-"$am_aux_dir/install-sh"}
2477
2478# Installed binaries are usually stripped using `strip' when the user
2479# run `make install-strip'. However `strip' might not be the right
2480# tool to use in cross-compilation environments, therefore Automake
2481# will honor the `STRIP' environment variable to overrule this program.
2482if test "$cross_compiling" != no; then
2483 if test -n "$ac_tool_prefix"; then
2484 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2485set dummy ${ac_tool_prefix}strip; ac_word=$2
2486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2487$as_echo_n "checking for $ac_word... " >&6; }
2488if test "${ac_cv_prog_STRIP+set}" = set; then :
2489 $as_echo_n "(cached) " >&6
2490else
2491 if test -n "$STRIP"; then
2492 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2493else
2494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495for as_dir in $PATH
2496do
2497 IFS=$as_save_IFS
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2501 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 break 2
2504 fi
2505done
2506 done
2507IFS=$as_save_IFS
2508
2509fi
2510fi
2511STRIP=$ac_cv_prog_STRIP
2512if test -n "$STRIP"; then
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2514$as_echo "$STRIP" >&6; }
2515else
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2517$as_echo "no" >&6; }
2518fi
2519
2520
2521fi
2522if test -z "$ac_cv_prog_STRIP"; then
2523 ac_ct_STRIP=$STRIP
2524 # Extract the first word of "strip", so it can be a program name with args.
2525set dummy strip; ac_word=$2
2526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2527$as_echo_n "checking for $ac_word... " >&6; }
2528if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2529 $as_echo_n "(cached) " >&6
2530else
2531 if test -n "$ac_ct_STRIP"; then
2532 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2533else
2534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535for as_dir in $PATH
2536do
2537 IFS=$as_save_IFS
2538 test -z "$as_dir" && as_dir=.
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2541 ac_cv_prog_ac_ct_STRIP="strip"
2542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2543 break 2
2544 fi
2545done
2546 done
2547IFS=$as_save_IFS
2548
2549fi
2550fi
2551ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2552if test -n "$ac_ct_STRIP"; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2554$as_echo "$ac_ct_STRIP" >&6; }
2555else
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2557$as_echo "no" >&6; }
2558fi
2559
2560 if test "x$ac_ct_STRIP" = x; then
2561 STRIP=":"
2562 else
2563 case $cross_compiling:$ac_tool_warned in
2564yes:)
2565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2567ac_tool_warned=yes ;;
2568esac
2569 STRIP=$ac_ct_STRIP
2570 fi
2571else
2572 STRIP="$ac_cv_prog_STRIP"
2573fi
2574
2575fi
2576INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2577
2578# We need awk for the "check" target. The system "awk" is bad on
2579# some platforms.
2580
2581
2582
2583
2584ac_config_headers="$ac_config_headers src/config.h"
2585
2586
2587# Make sure we can run config.sub.
2588$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2589 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2590
2591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2592$as_echo_n "checking build system type... " >&6; }
2593if test "${ac_cv_build+set}" = set; then :
2594 $as_echo_n "(cached) " >&6
2595else
2596 ac_build_alias=$build_alias
2597test "x$ac_build_alias" = x &&
2598 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2599test "x$ac_build_alias" = x &&
2600 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2601ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2602 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2603
2604fi
2605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2606$as_echo "$ac_cv_build" >&6; }
2607case $ac_cv_build in
2608*-*-*) ;;
2609*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2610esac
2611build=$ac_cv_build
2612ac_save_IFS=$IFS; IFS='-'
2613set x $ac_cv_build
2614shift
2615build_cpu=$1
2616build_vendor=$2
2617shift; shift
2618# Remember, the first character of IFS is used to create $*,
2619# except with old shells:
2620build_os=$*
2621IFS=$ac_save_IFS
2622case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2623
2624
2625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2626$as_echo_n "checking host system type... " >&6; }
2627if test "${ac_cv_host+set}" = set; then :
2628 $as_echo_n "(cached) " >&6
2629else
2630 if test "x$host_alias" = x; then
2631 ac_cv_host=$ac_cv_build
2632else
2633 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2634 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2635fi
2636
2637fi
2638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2639$as_echo "$ac_cv_host" >&6; }
2640case $ac_cv_host in
2641*-*-*) ;;
2642*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2643esac
2644host=$ac_cv_host
2645ac_save_IFS=$IFS; IFS='-'
2646set x $ac_cv_host
2647shift
2648host_cpu=$1
2649host_vendor=$2
2650shift; shift
2651# Remember, the first character of IFS is used to create $*,
2652# except with old shells:
2653host_os=$*
2654IFS=$ac_save_IFS
2655case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2656
2657
2658
2659# Checks for tools: c compiler, ranlib (used for creating static libraries),
2660# symlinks and libtool
2661ac_ext=c
2662ac_cpp='$CPP $CPPFLAGS'
2663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2665ac_compiler_gnu=$ac_cv_c_compiler_gnu
2666if test -n "$ac_tool_prefix"; then
2667 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2668set dummy ${ac_tool_prefix}gcc; ac_word=$2
2669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2670$as_echo_n "checking for $ac_word... " >&6; }
2671if test "${ac_cv_prog_CC+set}" = set; then :
2672 $as_echo_n "(cached) " >&6
2673else
2674 if test -n "$CC"; then
2675 ac_cv_prog_CC="$CC" # Let the user override the test.
2676else
2677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678for as_dir in $PATH
2679do
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2686 break 2
2687 fi
2688done
2689 done
2690IFS=$as_save_IFS
2691
2692fi
2693fi
2694CC=$ac_cv_prog_CC
2695if test -n "$CC"; then
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2697$as_echo "$CC" >&6; }
2698else
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2700$as_echo "no" >&6; }
2701fi
2702
2703
2704fi
2705if test -z "$ac_cv_prog_CC"; then
2706 ac_ct_CC=$CC
2707 # Extract the first word of "gcc", so it can be a program name with args.
2708set dummy gcc; ac_word=$2
2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2710$as_echo_n "checking for $ac_word... " >&6; }
2711if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2712 $as_echo_n "(cached) " >&6
2713else
2714 if test -n "$ac_ct_CC"; then
2715 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2716else
2717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718for as_dir in $PATH
2719do
2720 IFS=$as_save_IFS
2721 test -z "$as_dir" && as_dir=.
2722 for ac_exec_ext in '' $ac_executable_extensions; do
2723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2724 ac_cv_prog_ac_ct_CC="gcc"
2725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2726 break 2
2727 fi
2728done
2729 done
2730IFS=$as_save_IFS
2731
2732fi
2733fi
2734ac_ct_CC=$ac_cv_prog_ac_ct_CC
2735if test -n "$ac_ct_CC"; then
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2737$as_echo "$ac_ct_CC" >&6; }
2738else
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2740$as_echo "no" >&6; }
2741fi
2742
2743 if test "x$ac_ct_CC" = x; then
2744 CC=""
2745 else
2746 case $cross_compiling:$ac_tool_warned in
2747yes:)
2748{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2749$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2750ac_tool_warned=yes ;;
2751esac
2752 CC=$ac_ct_CC
2753 fi
2754else
2755 CC="$ac_cv_prog_CC"
2756fi
2757
2758if test -z "$CC"; then
2759 if test -n "$ac_tool_prefix"; then
2760 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2761set dummy ${ac_tool_prefix}cc; ac_word=$2
2762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2763$as_echo_n "checking for $ac_word... " >&6; }
2764if test "${ac_cv_prog_CC+set}" = set; then :
2765 $as_echo_n "(cached) " >&6
2766else
2767 if test -n "$CC"; then
2768 ac_cv_prog_CC="$CC" # Let the user override the test.
2769else
2770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771for as_dir in $PATH
2772do
2773 IFS=$as_save_IFS
2774 test -z "$as_dir" && as_dir=.
2775 for ac_exec_ext in '' $ac_executable_extensions; do
2776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2777 ac_cv_prog_CC="${ac_tool_prefix}cc"
2778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 break 2
2780 fi
2781done
2782 done
2783IFS=$as_save_IFS
2784
2785fi
2786fi
2787CC=$ac_cv_prog_CC
2788if test -n "$CC"; then
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2790$as_echo "$CC" >&6; }
2791else
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793$as_echo "no" >&6; }
2794fi
2795
2796
2797 fi
2798fi
2799if test -z "$CC"; then
2800 # Extract the first word of "cc", so it can be a program name with args.
2801set dummy cc; ac_word=$2
2802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2803$as_echo_n "checking for $ac_word... " >&6; }
2804if test "${ac_cv_prog_CC+set}" = set; then :
2805 $as_echo_n "(cached) " >&6
2806else
2807 if test -n "$CC"; then
2808 ac_cv_prog_CC="$CC" # Let the user override the test.
2809else
2810 ac_prog_rejected=no
2811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2812for as_dir in $PATH
2813do
2814 IFS=$as_save_IFS
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2819 ac_prog_rejected=yes
2820 continue
2821 fi
2822 ac_cv_prog_CC="cc"
2823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2824 break 2
2825 fi
2826done
2827 done
2828IFS=$as_save_IFS
2829
2830if test $ac_prog_rejected = yes; then
2831 # We found a bogon in the path, so make sure we never use it.
2832 set dummy $ac_cv_prog_CC
2833 shift
2834 if test $# != 0; then
2835 # We chose a different compiler from the bogus one.
2836 # However, it has the same basename, so the bogon will be chosen
2837 # first if we set CC to just the basename; use the full file name.
2838 shift
2839 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2840 fi
2841fi
2842fi
2843fi
2844CC=$ac_cv_prog_CC
2845if test -n "$CC"; then
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2847$as_echo "$CC" >&6; }
2848else
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2850$as_echo "no" >&6; }
2851fi
2852
2853
2854fi
2855if test -z "$CC"; then
2856 if test -n "$ac_tool_prefix"; then
2857 for ac_prog in cl.exe
2858 do
2859 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2860set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2862$as_echo_n "checking for $ac_word... " >&6; }
2863if test "${ac_cv_prog_CC+set}" = set; then :
2864 $as_echo_n "(cached) " >&6
2865else
2866 if test -n "$CC"; then
2867 ac_cv_prog_CC="$CC" # Let the user override the test.
2868else
2869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870for as_dir in $PATH
2871do
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2876 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 break 2
2879 fi
2880done
2881 done
2882IFS=$as_save_IFS
2883
2884fi
2885fi
2886CC=$ac_cv_prog_CC
2887if test -n "$CC"; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2889$as_echo "$CC" >&6; }
2890else
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2892$as_echo "no" >&6; }
2893fi
2894
2895
2896 test -n "$CC" && break
2897 done
2898fi
2899if test -z "$CC"; then
2900 ac_ct_CC=$CC
2901 for ac_prog in cl.exe
2902do
2903 # Extract the first word of "$ac_prog", so it can be a program name with args.
2904set dummy $ac_prog; ac_word=$2
2905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2906$as_echo_n "checking for $ac_word... " >&6; }
2907if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2908 $as_echo_n "(cached) " >&6
2909else
2910 if test -n "$ac_ct_CC"; then
2911 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2912else
2913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914for as_dir in $PATH
2915do
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2920 ac_cv_prog_ac_ct_CC="$ac_prog"
2921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 break 2
2923 fi
2924done
2925 done
2926IFS=$as_save_IFS
2927
2928fi
2929fi
2930ac_ct_CC=$ac_cv_prog_ac_ct_CC
2931if test -n "$ac_ct_CC"; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2933$as_echo "$ac_ct_CC" >&6; }
2934else
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2936$as_echo "no" >&6; }
2937fi
2938
2939
2940 test -n "$ac_ct_CC" && break
2941done
2942
2943 if test "x$ac_ct_CC" = x; then
2944 CC=""
2945 else
2946 case $cross_compiling:$ac_tool_warned in
2947yes:)
2948{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2949$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2950ac_tool_warned=yes ;;
2951esac
2952 CC=$ac_ct_CC
2953 fi
2954fi
2955
2956fi
2957
2958
2959test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2960$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2961as_fn_error "no acceptable C compiler found in \$PATH
2962See \`config.log' for more details." "$LINENO" 5; }
2963
2964# Provide some information about the compiler.
2965$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2966set X $ac_compile
2967ac_compiler=$2
2968for ac_option in --version -v -V -qversion; do
2969 { { ac_try="$ac_compiler $ac_option >&5"
2970case "(($ac_try" in
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2973esac
2974eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2975$as_echo "$ac_try_echo"; } >&5
2976 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2977 ac_status=$?
2978 if test -s conftest.err; then
2979 sed '10a\
2980... rest of stderr output deleted ...
2981 10q' conftest.err >conftest.er1
2982 cat conftest.er1 >&5
2983 fi
2984 rm -f conftest.er1 conftest.err
2985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2986 test $ac_status = 0; }
2987done
2988
2989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2990/* end confdefs.h. */
2991
2992int
2993main ()
2994{
2995
2996 ;
2997 return 0;
2998}
2999_ACEOF
3000ac_clean_files_save=$ac_clean_files
3001ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3002# Try to create an executable without -o first, disregard a.out.
3003# It will help us diagnose broken compilers, and finding out an intuition
3004# of exeext.
3005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3006$as_echo_n "checking whether the C compiler works... " >&6; }
3007ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3008
3009# The possible output files:
3010ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3011
3012ac_rmfiles=
3013for ac_file in $ac_files
3014do
3015 case $ac_file in
3016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3017 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3018 esac
3019done
3020rm -f $ac_rmfiles
3021
3022if { { ac_try="$ac_link_default"
3023case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3026esac
3027eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3028$as_echo "$ac_try_echo"; } >&5
3029 (eval "$ac_link_default") 2>&5
3030 ac_status=$?
3031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3032 test $ac_status = 0; }; then :
3033 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3034# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3035# in a Makefile. We should not override ac_cv_exeext if it was cached,
3036# so that the user can short-circuit this test for compilers unknown to
3037# Autoconf.
3038for ac_file in $ac_files ''
3039do
3040 test -f "$ac_file" || continue
3041 case $ac_file in
3042 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3043 ;;
3044 [ab].out )
3045 # We found the default executable, but exeext='' is most
3046 # certainly right.
3047 break;;
3048 *.* )
3049 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3050 then :; else
3051 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3052 fi
3053 # We set ac_cv_exeext here because the later test for it is not
3054 # safe: cross compilers may not add the suffix if given an `-o'
3055 # argument, so we may need to know it at that point already.
3056 # Even if this section looks crufty: it has the advantage of
3057 # actually working.
3058 break;;
3059 * )
3060 break;;
3061 esac
3062done
3063test "$ac_cv_exeext" = no && ac_cv_exeext=
3064
3065else
3066 ac_file=''
3067fi
3068if test -z "$ac_file"; then :
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070$as_echo "no" >&6; }
3071$as_echo "$as_me: failed program was:" >&5
3072sed 's/^/| /' conftest.$ac_ext >&5
3073
3074{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3076{ as_fn_set_status 77
3077as_fn_error "C compiler cannot create executables
3078See \`config.log' for more details." "$LINENO" 5; }; }
3079else
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3081$as_echo "yes" >&6; }
3082fi
3083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3084$as_echo_n "checking for C compiler default output file name... " >&6; }
3085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3086$as_echo "$ac_file" >&6; }
3087ac_exeext=$ac_cv_exeext
3088
3089rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3090ac_clean_files=$ac_clean_files_save
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3092$as_echo_n "checking for suffix of executables... " >&6; }
3093if { { ac_try="$ac_link"
3094case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097esac
3098eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3099$as_echo "$ac_try_echo"; } >&5
3100 (eval "$ac_link") 2>&5
3101 ac_status=$?
3102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3103 test $ac_status = 0; }; then :
3104 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3105# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3106# work properly (i.e., refer to `conftest.exe'), while it won't with
3107# `rm'.
3108for ac_file in conftest.exe conftest conftest.*; do
3109 test -f "$ac_file" || continue
3110 case $ac_file in
3111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3112 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3113 break;;
3114 * ) break;;
3115 esac
3116done
3117else
3118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3119$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3120as_fn_error "cannot compute suffix of executables: cannot compile and link
3121See \`config.log' for more details." "$LINENO" 5; }
3122fi
3123rm -f conftest conftest$ac_cv_exeext
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3125$as_echo "$ac_cv_exeext" >&6; }
3126
3127rm -f conftest.$ac_ext
3128EXEEXT=$ac_cv_exeext
3129ac_exeext=$EXEEXT
3130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3131/* end confdefs.h. */
3132#include <stdio.h>
3133int
3134main ()
3135{
3136FILE *f = fopen ("conftest.out", "w");
3137 return ferror (f) || fclose (f) != 0;
3138
3139 ;
3140 return 0;
3141}
3142_ACEOF
3143ac_clean_files="$ac_clean_files conftest.out"
3144# Check that the compiler produces executables we can run. If not, either
3145# the compiler is broken, or we cross compile.
3146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3147$as_echo_n "checking whether we are cross compiling... " >&6; }
3148if test "$cross_compiling" != yes; then
3149 { { ac_try="$ac_link"
3150case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153esac
3154eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3155$as_echo "$ac_try_echo"; } >&5
3156 (eval "$ac_link") 2>&5
3157 ac_status=$?
3158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3159 test $ac_status = 0; }
3160 if { ac_try='./conftest$ac_cv_exeext'
3161 { { case "(($ac_try" in
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3164esac
3165eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3166$as_echo "$ac_try_echo"; } >&5
3167 (eval "$ac_try") 2>&5
3168 ac_status=$?
3169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3170 test $ac_status = 0; }; }; then
3171 cross_compiling=no
3172 else
3173 if test "$cross_compiling" = maybe; then
3174 cross_compiling=yes
3175 else
3176 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3177$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3178as_fn_error "cannot run C compiled programs.
3179If you meant to cross compile, use \`--host'.
3180See \`config.log' for more details." "$LINENO" 5; }
3181 fi
3182 fi
3183fi
3184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3185$as_echo "$cross_compiling" >&6; }
3186
3187rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3188ac_clean_files=$ac_clean_files_save
3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3190$as_echo_n "checking for suffix of object files... " >&6; }
3191if test "${ac_cv_objext+set}" = set; then :
3192 $as_echo_n "(cached) " >&6
3193else
3194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195/* end confdefs.h. */
3196
3197int
3198main ()
3199{
3200
3201 ;
3202 return 0;
3203}
3204_ACEOF
3205rm -f conftest.o conftest.obj
3206if { { ac_try="$ac_compile"
3207case "(($ac_try" in
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3210esac
3211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3212$as_echo "$ac_try_echo"; } >&5
3213 (eval "$ac_compile") 2>&5
3214 ac_status=$?
3215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3216 test $ac_status = 0; }; then :
3217 for ac_file in conftest.o conftest.obj conftest.*; do
3218 test -f "$ac_file" || continue;
3219 case $ac_file in
3220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3221 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3222 break;;
3223 esac
3224done
3225else
3226 $as_echo "$as_me: failed program was:" >&5
3227sed 's/^/| /' conftest.$ac_ext >&5
3228
3229{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3230$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3231as_fn_error "cannot compute suffix of object files: cannot compile
3232See \`config.log' for more details." "$LINENO" 5; }
3233fi
3234rm -f conftest.$ac_cv_objext conftest.$ac_ext
3235fi
3236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3237$as_echo "$ac_cv_objext" >&6; }
3238OBJEXT=$ac_cv_objext
3239ac_objext=$OBJEXT
3240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3241$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3242if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3243 $as_echo_n "(cached) " >&6
3244else
3245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3246/* end confdefs.h. */
3247
3248int
3249main ()
3250{
3251#ifndef __GNUC__
3252 choke me
3253#endif
3254
3255 ;
3256 return 0;
3257}
3258_ACEOF
3259if ac_fn_c_try_compile "$LINENO"; then :
3260 ac_compiler_gnu=yes
3261else
3262 ac_compiler_gnu=no
3263fi
3264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3265ac_cv_c_compiler_gnu=$ac_compiler_gnu
3266
3267fi
3268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3269$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3270if test $ac_compiler_gnu = yes; then
3271 GCC=yes
3272else
3273 GCC=
3274fi
3275ac_test_CFLAGS=${CFLAGS+set}
3276ac_save_CFLAGS=$CFLAGS
3277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3278$as_echo_n "checking whether $CC accepts -g... " >&6; }
3279if test "${ac_cv_prog_cc_g+set}" = set; then :
3280 $as_echo_n "(cached) " >&6
3281else
3282 ac_save_c_werror_flag=$ac_c_werror_flag
3283 ac_c_werror_flag=yes
3284 ac_cv_prog_cc_g=no
3285 CFLAGS="-g"
3286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3287/* end confdefs.h. */
3288
3289int
3290main ()
3291{
3292
3293 ;
3294 return 0;
3295}
3296_ACEOF
3297if ac_fn_c_try_compile "$LINENO"; then :
3298 ac_cv_prog_cc_g=yes
3299else
3300 CFLAGS=""
3301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3302/* end confdefs.h. */
3303
3304int
3305main ()
3306{
3307
3308 ;
3309 return 0;
3310}
3311_ACEOF
3312if ac_fn_c_try_compile "$LINENO"; then :
3313
3314else
3315 ac_c_werror_flag=$ac_save_c_werror_flag
3316 CFLAGS="-g"
3317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318/* end confdefs.h. */
3319
3320int
3321main ()
3322{
3323
3324 ;
3325 return 0;
3326}
3327_ACEOF
3328if ac_fn_c_try_compile "$LINENO"; then :
3329 ac_cv_prog_cc_g=yes
3330fi
3331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3332fi
3333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334fi
3335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 ac_c_werror_flag=$ac_save_c_werror_flag
3337fi
3338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3339$as_echo "$ac_cv_prog_cc_g" >&6; }
3340if test "$ac_test_CFLAGS" = set; then
3341 CFLAGS=$ac_save_CFLAGS
3342elif test $ac_cv_prog_cc_g = yes; then
3343 if test "$GCC" = yes; then
3344 CFLAGS="-g -O2"
3345 else
3346 CFLAGS="-g"
3347 fi
3348else
3349 if test "$GCC" = yes; then
3350 CFLAGS="-O2"
3351 else
3352 CFLAGS=
3353 fi
3354fi
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3356$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3357if test "${ac_cv_prog_cc_c89+set}" = set; then :
3358 $as_echo_n "(cached) " >&6
3359else
3360 ac_cv_prog_cc_c89=no
3361ac_save_CC=$CC
3362cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363/* end confdefs.h. */
3364#include <stdarg.h>
3365#include <stdio.h>
3366#include <sys/types.h>
3367#include <sys/stat.h>
3368/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3369struct buf { int x; };
3370FILE * (*rcsopen) (struct buf *, struct stat *, int);
3371static char *e (p, i)
3372 char **p;
3373 int i;
3374{
3375 return p[i];
3376}
3377static char *f (char * (*g) (char **, int), char **p, ...)
3378{
3379 char *s;
3380 va_list v;
3381 va_start (v,p);
3382 s = g (p, va_arg (v,int));
3383 va_end (v);
3384 return s;
3385}
3386
3387/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3388 function prototypes and stuff, but not '\xHH' hex character constants.
3389 These don't provoke an error unfortunately, instead are silently treated
3390 as 'x'. The following induces an error, until -std is added to get
3391 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3392 array size at least. It's necessary to write '\x00'==0 to get something
3393 that's true only with -std. */
3394int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3395
3396/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3397 inside strings and character constants. */
3398#define FOO(x) 'x'
3399int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3400
3401int test (int i, double x);
3402struct s1 {int (*f) (int a);};
3403struct s2 {int (*f) (double a);};
3404int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3405int argc;
3406char **argv;
3407int
3408main ()
3409{
3410return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3411 ;
3412 return 0;
3413}
3414_ACEOF
3415for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3416 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3417do
3418 CC="$ac_save_CC $ac_arg"
3419 if ac_fn_c_try_compile "$LINENO"; then :
3420 ac_cv_prog_cc_c89=$ac_arg
3421fi
3422rm -f core conftest.err conftest.$ac_objext
3423 test "x$ac_cv_prog_cc_c89" != "xno" && break
3424done
3425rm -f conftest.$ac_ext
3426CC=$ac_save_CC
3427
3428fi
3429# AC_CACHE_VAL
3430case "x$ac_cv_prog_cc_c89" in
3431 x)
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3433$as_echo "none needed" >&6; } ;;
3434 xno)
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3436$as_echo "unsupported" >&6; } ;;
3437 *)
3438 CC="$CC $ac_cv_prog_cc_c89"
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3440$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3441esac
3442if test "x$ac_cv_prog_cc_c89" != xno; then :
3443
3444fi
3445
3446ac_ext=c
3447ac_cpp='$CPP $CPPFLAGS'
3448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3450ac_compiler_gnu=$ac_cv_c_compiler_gnu
3451DEPDIR="${am__leading_dot}deps"
3452
3453ac_config_commands="$ac_config_commands depfiles"
3454
3455
3456am_make=${MAKE-make}
3457cat > confinc << 'END'
3458am__doit:
3459 @echo done
3460.PHONY: am__doit
3461END
3462# If we don't find an include directive, just comment out the code.
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3464$as_echo_n "checking for style of include used by $am_make... " >&6; }
3465am__include="#"
3466am__quote=
3467_am_result=none
3468# First try GNU make style include.
3469echo "include confinc" > confmf
3470# We grep out `Entering directory' and `Leaving directory'
3471# messages which can occur if `w' ends up in MAKEFLAGS.
3472# In particular we don't look at `^make:' because GNU make might
3473# be invoked under some other name (usually "gmake"), in which
3474# case it prints its new name instead of `make'.
3475if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3476 am__include=include
3477 am__quote=
3478 _am_result=GNU
3479fi
3480# Now try BSD make style include.
3481if test "$am__include" = "#"; then
3482 echo '.include "confinc"' > confmf
3483 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3484 am__include=.include
3485 am__quote="\""
3486 _am_result=BSD
3487 fi
3488fi
3489
3490
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3492$as_echo "$_am_result" >&6; }
3493rm -f confinc confmf
3494
3495# Check whether --enable-dependency-tracking was given.
3496if test "${enable_dependency_tracking+set}" = set; then :
3497 enableval=$enable_dependency_tracking;
3498fi
3499
3500if test "x$enable_dependency_tracking" != xno; then
3501 am_depcomp="$ac_aux_dir/depcomp"
3502 AMDEPBACKSLASH='\'
3503fi
3504
3505
3506if test "x$enable_dependency_tracking" != xno; then
3507 AMDEP_TRUE=
3508 AMDEP_FALSE='#'
3509else
3510 AMDEP_TRUE='#'
3511 AMDEP_FALSE=
3512fi
3513
3514
3515
3516
3517depcc="$CC" am_compiler_list=
3518
3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3520$as_echo_n "checking dependency style of $depcc... " >&6; }
3521if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3522 $as_echo_n "(cached) " >&6
3523else
3524 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3525 # We make a subdir and do the tests there. Otherwise we can end up
3526 # making bogus files that we don't know about and never remove. For
3527 # instance it was reported that on HP-UX the gcc test will end up
3528 # making a dummy file named `D' -- because `-MD' means `put the output
3529 # in D'.
3530 mkdir conftest.dir
3531 # Copy depcomp to subdir because otherwise we won't find it if we're
3532 # using a relative directory.
3533 cp "$am_depcomp" conftest.dir
3534 cd conftest.dir
3535 # We will build objects and dependencies in a subdirectory because
3536 # it helps to detect inapplicable dependency modes. For instance
3537 # both Tru64's cc and ICC support -MD to output dependencies as a
3538 # side effect of compilation, but ICC will put the dependencies in
3539 # the current directory while Tru64 will put them in the object
3540 # directory.
3541 mkdir sub
3542
3543 am_cv_CC_dependencies_compiler_type=none
3544 if test "$am_compiler_list" = ""; then
3545 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3546 fi
3547 for depmode in $am_compiler_list; do
3548 # Setup a source with many dependencies, because some compilers
3549 # like to wrap large dependency lists on column 80 (with \), and
3550 # we should not choose a depcomp mode which is confused by this.
3551 #
3552 # We need to recreate these files for each test, as the compiler may
3553 # overwrite some of them when testing with obscure command lines.
3554 # This happens at least with the AIX C compiler.
3555 : > sub/conftest.c
3556 for i in 1 2 3 4 5 6; do
3557 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3558 : > sub/conftst$i.h
3559 done
3560 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3561
3562 case $depmode in
3563 nosideeffect)
3564 # after this tag, mechanisms are not by side-effect, so they'll
3565 # only be used when explicitly requested
3566 if test "x$enable_dependency_tracking" = xyes; then
3567 continue
3568 else
3569 break
3570 fi
3571 ;;
3572 none) break ;;
3573 esac
3574 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3575 # mode. It turns out that the SunPro C++ compiler does not properly
3576 # handle `-M -o', and we need to detect this.
3577 if depmode=$depmode \
3578 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3579 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3580 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3581 >/dev/null 2>conftest.err &&
3582 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3583 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3584 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3585 # icc doesn't choke on unknown options, it will just issue warnings
3586 # (even with -Werror). So we grep stderr for any message
3587 # that says an option was ignored.
3588 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3589 am_cv_CC_dependencies_compiler_type=$depmode
3590 break
3591 fi
3592 fi
3593 done
3594
3595 cd ..
3596 rm -rf conftest.dir
3597else
3598 am_cv_CC_dependencies_compiler_type=none
3599fi
3600
3601fi
3602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3603$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3604CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3605
3606
3607
3608if
3609 test "x$enable_dependency_tracking" != xno \
3610 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3611 am__fastdepCC_TRUE=
3612 am__fastdepCC_FALSE='#'
3613else
3614 am__fastdepCC_TRUE='#'
3615 am__fastdepCC_FALSE=
3616fi
3617
3618
3619if test -n "$ac_tool_prefix"; then
3620 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3621set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3623$as_echo_n "checking for $ac_word... " >&6; }
3624if test "${ac_cv_prog_RANLIB+set}" = set; then :
3625 $as_echo_n "(cached) " >&6
3626else
3627 if test -n "$RANLIB"; then
3628 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3629else
3630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631for as_dir in $PATH
3632do
3633 IFS=$as_save_IFS
3634 test -z "$as_dir" && as_dir=.
3635 for ac_exec_ext in '' $ac_executable_extensions; do
3636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3637 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 break 2
3640 fi
3641done
3642 done
3643IFS=$as_save_IFS
3644
3645fi
3646fi
3647RANLIB=$ac_cv_prog_RANLIB
3648if test -n "$RANLIB"; then
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3650$as_echo "$RANLIB" >&6; }
3651else
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653$as_echo "no" >&6; }
3654fi
3655
3656
3657fi
3658if test -z "$ac_cv_prog_RANLIB"; then
3659 ac_ct_RANLIB=$RANLIB
3660 # Extract the first word of "ranlib", so it can be a program name with args.
3661set dummy ranlib; ac_word=$2
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3663$as_echo_n "checking for $ac_word... " >&6; }
3664if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3665 $as_echo_n "(cached) " >&6
3666else
3667 if test -n "$ac_ct_RANLIB"; then
3668 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3669else
3670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671for as_dir in $PATH
3672do
3673 IFS=$as_save_IFS
3674 test -z "$as_dir" && as_dir=.
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3677 ac_cv_prog_ac_ct_RANLIB="ranlib"
3678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3679 break 2
3680 fi
3681done
3682 done
3683IFS=$as_save_IFS
3684
3685fi
3686fi
3687ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3688if test -n "$ac_ct_RANLIB"; then
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3690$as_echo "$ac_ct_RANLIB" >&6; }
3691else
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693$as_echo "no" >&6; }
3694fi
3695
3696 if test "x$ac_ct_RANLIB" = x; then
3697 RANLIB=":"
3698 else
3699 case $cross_compiling:$ac_tool_warned in
3700yes:)
3701{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3702$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3703ac_tool_warned=yes ;;
3704esac
3705 RANLIB=$ac_ct_RANLIB
3706 fi
3707else
3708 RANLIB="$ac_cv_prog_RANLIB"
3709fi
3710
3711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3712$as_echo_n "checking whether ln -s works... " >&6; }
3713LN_S=$as_ln_s
3714if test "$LN_S" = "ln -s"; then
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3716$as_echo "yes" >&6; }
3717else
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3719$as_echo "no, using $LN_S" >&6; }
3720fi
3721
3722case `pwd` in
3723 *\ * | *\ *)
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3725$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3726esac
3727
3728
3729
3730macro_version='2.2.10'
3731macro_revision='1.3175'
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745ltmain="$ac_aux_dir/ltmain.sh"
3746
3747# Backslashify metacharacters that are still active within
3748# double-quoted strings.
3749sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3750
3751# Same as above, but do not quote variable references.
3752double_quote_subst='s/\(["`\\]\)/\\\1/g'
3753
3754# Sed substitution to delay expansion of an escaped shell variable in a
3755# double_quote_subst'ed string.
3756delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3757
3758# Sed substitution to delay expansion of an escaped single quote.
3759delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3760
3761# Sed substitution to avoid accidental globbing in evaled expressions
3762no_glob_subst='s/\*/\\\*/g'
3763
3764ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3765ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3766ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3767
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3769$as_echo_n "checking how to print strings... " >&6; }
3770# Test print first, because it will be a builtin if present.
3771if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3772 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3773 ECHO='print -r --'
3774elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3775 ECHO='printf %s\n'
3776else
3777 # Use this function as a fallback that always works.
3778 func_fallback_echo ()
3779 {
3780 eval 'cat <<_LTECHO_EOF
3781$1
3782_LTECHO_EOF'
3783 }
3784 ECHO='func_fallback_echo'
3785fi
3786
3787# func_echo_all arg...
3788# Invoke $ECHO with all args, space-separated.
3789func_echo_all ()
3790{
3791 $ECHO ""
3792}
3793
3794case "$ECHO" in
3795 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3796$as_echo "printf" >&6; } ;;
3797 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3798$as_echo "print -r" >&6; } ;;
3799 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3800$as_echo "cat" >&6; } ;;
3801esac
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3817$as_echo_n "checking for a sed that does not truncate output... " >&6; }
3818if test "${ac_cv_path_SED+set}" = set; then :
3819 $as_echo_n "(cached) " >&6
3820else
3821 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3822 for ac_i in 1 2 3 4 5 6 7; do
3823 ac_script="$ac_script$as_nl$ac_script"
3824 done
3825 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3826 { ac_script=; unset ac_script;}
3827 if test -z "$SED"; then
3828 ac_path_SED_found=false
3829 # Loop through the user's path and test for each of PROGNAME-LIST
3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831for as_dir in $PATH
3832do
3833 IFS=$as_save_IFS
3834 test -z "$as_dir" && as_dir=.
3835 for ac_prog in sed gsed; do
3836 for ac_exec_ext in '' $ac_executable_extensions; do
3837 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3838 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3839# Check for GNU ac_path_SED and select it if it is found.
3840 # Check for GNU $ac_path_SED
3841case `"$ac_path_SED" --version 2>&1` in
3842*GNU*)
3843 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3844*)
3845 ac_count=0
3846 $as_echo_n 0123456789 >"conftest.in"
3847 while :
3848 do
3849 cat "conftest.in" "conftest.in" >"conftest.tmp"
3850 mv "conftest.tmp" "conftest.in"
3851 cp "conftest.in" "conftest.nl"
3852 $as_echo '' >> "conftest.nl"
3853 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3854 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3855 as_fn_arith $ac_count + 1 && ac_count=$as_val
3856 if test $ac_count -gt ${ac_path_SED_max-0}; then
3857 # Best one so far, save it but keep looking for a better one
3858 ac_cv_path_SED="$ac_path_SED"
3859 ac_path_SED_max=$ac_count
3860 fi
3861 # 10*(2^10) chars as input seems more than enough
3862 test $ac_count -gt 10 && break
3863 done
3864 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3865esac
3866
3867 $ac_path_SED_found && break 3
3868 done
3869 done
3870 done
3871IFS=$as_save_IFS
3872 if test -z "$ac_cv_path_SED"; then
3873 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3874 fi
3875else
3876 ac_cv_path_SED=$SED
3877fi
3878
3879fi
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3881$as_echo "$ac_cv_path_SED" >&6; }
3882 SED="$ac_cv_path_SED"
3883 rm -f conftest.sed
3884
3885test -z "$SED" && SED=sed
3886Xsed="$SED -e 1s/^X//"
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3899$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3900if test "${ac_cv_path_GREP+set}" = set; then :
3901 $as_echo_n "(cached) " >&6
3902else
3903 if test -z "$GREP"; then
3904 ac_path_GREP_found=false
3905 # Loop through the user's path and test for each of PROGNAME-LIST
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3908do
3909 IFS=$as_save_IFS
3910 test -z "$as_dir" && as_dir=.
3911 for ac_prog in grep ggrep; do
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3914 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3915# Check for GNU ac_path_GREP and select it if it is found.
3916 # Check for GNU $ac_path_GREP
3917case `"$ac_path_GREP" --version 2>&1` in
3918*GNU*)
3919 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3920*)
3921 ac_count=0
3922 $as_echo_n 0123456789 >"conftest.in"
3923 while :
3924 do
3925 cat "conftest.in" "conftest.in" >"conftest.tmp"
3926 mv "conftest.tmp" "conftest.in"
3927 cp "conftest.in" "conftest.nl"
3928 $as_echo 'GREP' >> "conftest.nl"
3929 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3930 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3931 as_fn_arith $ac_count + 1 && ac_count=$as_val
3932 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3933 # Best one so far, save it but keep looking for a better one
3934 ac_cv_path_GREP="$ac_path_GREP"
3935 ac_path_GREP_max=$ac_count
3936 fi
3937 # 10*(2^10) chars as input seems more than enough
3938 test $ac_count -gt 10 && break
3939 done
3940 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3941esac
3942
3943 $ac_path_GREP_found && break 3
3944 done
3945 done
3946 done
3947IFS=$as_save_IFS
3948 if test -z "$ac_cv_path_GREP"; then
3949 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3950 fi
3951else
3952 ac_cv_path_GREP=$GREP
3953fi
3954
3955fi
3956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3957$as_echo "$ac_cv_path_GREP" >&6; }
3958 GREP="$ac_cv_path_GREP"
3959
3960
3961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3962$as_echo_n "checking for egrep... " >&6; }
3963if test "${ac_cv_path_EGREP+set}" = set; then :
3964 $as_echo_n "(cached) " >&6
3965else
3966 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3967 then ac_cv_path_EGREP="$GREP -E"
3968 else
3969 if test -z "$EGREP"; then
3970 ac_path_EGREP_found=false
3971 # Loop through the user's path and test for each of PROGNAME-LIST
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3974do
3975 IFS=$as_save_IFS
3976 test -z "$as_dir" && as_dir=.
3977 for ac_prog in egrep; do
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3980 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3981# Check for GNU ac_path_EGREP and select it if it is found.
3982 # Check for GNU $ac_path_EGREP
3983case `"$ac_path_EGREP" --version 2>&1` in
3984*GNU*)
3985 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3986*)
3987 ac_count=0
3988 $as_echo_n 0123456789 >"conftest.in"
3989 while :
3990 do
3991 cat "conftest.in" "conftest.in" >"conftest.tmp"
3992 mv "conftest.tmp" "conftest.in"
3993 cp "conftest.in" "conftest.nl"
3994 $as_echo 'EGREP' >> "conftest.nl"
3995 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3996 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3997 as_fn_arith $ac_count + 1 && ac_count=$as_val
3998 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3999 # Best one so far, save it but keep looking for a better one
4000 ac_cv_path_EGREP="$ac_path_EGREP"
4001 ac_path_EGREP_max=$ac_count
4002 fi
4003 # 10*(2^10) chars as input seems more than enough
4004 test $ac_count -gt 10 && break
4005 done
4006 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4007esac
4008
4009 $ac_path_EGREP_found && break 3
4010 done
4011 done
4012 done
4013IFS=$as_save_IFS
4014 if test -z "$ac_cv_path_EGREP"; then
4015 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4016 fi
4017else
4018 ac_cv_path_EGREP=$EGREP
4019fi
4020
4021 fi
4022fi
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4024$as_echo "$ac_cv_path_EGREP" >&6; }
4025 EGREP="$ac_cv_path_EGREP"
4026
4027
4028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4029$as_echo_n "checking for fgrep... " >&6; }
4030if test "${ac_cv_path_FGREP+set}" = set; then :
4031 $as_echo_n "(cached) " >&6
4032else
4033 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4034 then ac_cv_path_FGREP="$GREP -F"
4035 else
4036 if test -z "$FGREP"; then
4037 ac_path_FGREP_found=false
4038 # Loop through the user's path and test for each of PROGNAME-LIST
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4041do
4042 IFS=$as_save_IFS
4043 test -z "$as_dir" && as_dir=.
4044 for ac_prog in fgrep; do
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4047 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4048# Check for GNU ac_path_FGREP and select it if it is found.
4049 # Check for GNU $ac_path_FGREP
4050case `"$ac_path_FGREP" --version 2>&1` in
4051*GNU*)
4052 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4053*)
4054 ac_count=0
4055 $as_echo_n 0123456789 >"conftest.in"
4056 while :
4057 do
4058 cat "conftest.in" "conftest.in" >"conftest.tmp"
4059 mv "conftest.tmp" "conftest.in"
4060 cp "conftest.in" "conftest.nl"
4061 $as_echo 'FGREP' >> "conftest.nl"
4062 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4063 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4064 as_fn_arith $ac_count + 1 && ac_count=$as_val
4065 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4066 # Best one so far, save it but keep looking for a better one
4067 ac_cv_path_FGREP="$ac_path_FGREP"
4068 ac_path_FGREP_max=$ac_count
4069 fi
4070 # 10*(2^10) chars as input seems more than enough
4071 test $ac_count -gt 10 && break
4072 done
4073 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4074esac
4075
4076 $ac_path_FGREP_found && break 3
4077 done
4078 done
4079 done
4080IFS=$as_save_IFS
4081 if test -z "$ac_cv_path_FGREP"; then
4082 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4083 fi
4084else
4085 ac_cv_path_FGREP=$FGREP
4086fi
4087
4088 fi
4089fi
4090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4091$as_echo "$ac_cv_path_FGREP" >&6; }
4092 FGREP="$ac_cv_path_FGREP"
4093
4094
4095test -z "$GREP" && GREP=grep
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115# Check whether --with-gnu-ld was given.
4116if test "${with_gnu_ld+set}" = set; then :
4117 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4118else
4119 with_gnu_ld=no
4120fi
4121
4122ac_prog=ld
4123if test "$GCC" = yes; then
4124 # Check if gcc -print-prog-name=ld gives a path.
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4126$as_echo_n "checking for ld used by $CC... " >&6; }
4127 case $host in
4128 *-*-mingw*)
4129 # gcc leaves a trailing carriage return which upsets mingw
4130 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4131 *)
4132 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4133 esac
4134 case $ac_prog in
4135 # Accept absolute paths.
4136 [\\/]* | ?:[\\/]*)
4137 re_direlt='/[^/][^/]*/\.\./'
4138 # Canonicalize the pathname of ld
4139 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4140 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4141 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4142 done
4143 test -z "$LD" && LD="$ac_prog"
4144 ;;
4145 "")
4146 # If it fails, then pretend we aren't using GCC.
4147 ac_prog=ld
4148 ;;
4149 *)
4150 # If it is relative, then search for the first ld in PATH.
4151 with_gnu_ld=unknown
4152 ;;
4153 esac
4154elif test "$with_gnu_ld" = yes; then
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4156$as_echo_n "checking for GNU ld... " >&6; }
4157else
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4159$as_echo_n "checking for non-GNU ld... " >&6; }
4160fi
4161if test "${lt_cv_path_LD+set}" = set; then :
4162 $as_echo_n "(cached) " >&6
4163else
4164 if test -z "$LD"; then
4165 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4166 for ac_dir in $PATH; do
4167 IFS="$lt_save_ifs"
4168 test -z "$ac_dir" && ac_dir=.
4169 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4170 lt_cv_path_LD="$ac_dir/$ac_prog"
4171 # Check to see if the program is GNU ld. I'd rather use --version,
4172 # but apparently some variants of GNU ld only accept -v.
4173 # Break only if it was the GNU/non-GNU ld that we prefer.
4174 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4175 *GNU* | *'with BFD'*)
4176 test "$with_gnu_ld" != no && break
4177 ;;
4178 *)
4179 test "$with_gnu_ld" != yes && break
4180 ;;
4181 esac
4182 fi
4183 done
4184 IFS="$lt_save_ifs"
4185else
4186 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4187fi
4188fi
4189
4190LD="$lt_cv_path_LD"
4191if test -n "$LD"; then
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4193$as_echo "$LD" >&6; }
4194else
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4196$as_echo "no" >&6; }
4197fi
4198test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4200$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4201if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4202 $as_echo_n "(cached) " >&6
4203else
4204 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4205case `$LD -v 2>&1 </dev/null` in
4206*GNU* | *'with BFD'*)
4207 lt_cv_prog_gnu_ld=yes
4208 ;;
4209*)
4210 lt_cv_prog_gnu_ld=no
4211 ;;
4212esac
4213fi
4214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4215$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4216with_gnu_ld=$lt_cv_prog_gnu_ld
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4227$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4228if test "${lt_cv_path_NM+set}" = set; then :
4229 $as_echo_n "(cached) " >&6
4230else
4231 if test -n "$NM"; then
4232 # Let the user override the test.
4233 lt_cv_path_NM="$NM"
4234else
4235 lt_nm_to_check="${ac_tool_prefix}nm"
4236 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4237 lt_nm_to_check="$lt_nm_to_check nm"
4238 fi
4239 for lt_tmp_nm in $lt_nm_to_check; do
4240 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4241 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4242 IFS="$lt_save_ifs"
4243 test -z "$ac_dir" && ac_dir=.
4244 tmp_nm="$ac_dir/$lt_tmp_nm"
4245 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4246 # Check to see if the nm accepts a BSD-compat flag.
4247 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4248 # nm: unknown option "B" ignored
4249 # Tru64's nm complains that /dev/null is an invalid object file
4250 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4251 */dev/null* | *'Invalid file or object type'*)
4252 lt_cv_path_NM="$tmp_nm -B"
4253 break
4254 ;;
4255 *)
4256 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4257 */dev/null*)
4258 lt_cv_path_NM="$tmp_nm -p"
4259 break
4260 ;;
4261 *)
4262 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4263 continue # so that we can try to find one that supports BSD flags
4264 ;;
4265 esac
4266 ;;
4267 esac
4268 fi
4269 done
4270 IFS="$lt_save_ifs"
4271 done
4272 : ${lt_cv_path_NM=no}
4273fi
4274fi
4275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4276$as_echo "$lt_cv_path_NM" >&6; }
4277if test "$lt_cv_path_NM" != "no"; then
4278 NM="$lt_cv_path_NM"
4279else
4280 # Didn't find any BSD compatible name lister, look for dumpbin.
4281 if test -n "$DUMPBIN"; then :
4282 # Let the user override the test.
4283 else
4284 if test -n "$ac_tool_prefix"; then
4285 for ac_prog in dumpbin "link -dump"
4286 do
4287 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4288set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4290$as_echo_n "checking for $ac_word... " >&6; }
4291if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4292 $as_echo_n "(cached) " >&6
4293else
4294 if test -n "$DUMPBIN"; then
4295 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4296else
4297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4298for as_dir in $PATH
4299do
4300 IFS=$as_save_IFS
4301 test -z "$as_dir" && as_dir=.
4302 for ac_exec_ext in '' $ac_executable_extensions; do
4303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4304 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4306 break 2
4307 fi
4308done
4309 done
4310IFS=$as_save_IFS
4311
4312fi
4313fi
4314DUMPBIN=$ac_cv_prog_DUMPBIN
4315if test -n "$DUMPBIN"; then
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4317$as_echo "$DUMPBIN" >&6; }
4318else
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4320$as_echo "no" >&6; }
4321fi
4322
4323
4324 test -n "$DUMPBIN" && break
4325 done
4326fi
4327if test -z "$DUMPBIN"; then
4328 ac_ct_DUMPBIN=$DUMPBIN
4329 for ac_prog in dumpbin "link -dump"
4330do
4331 # Extract the first word of "$ac_prog", so it can be a program name with args.
4332set dummy $ac_prog; ac_word=$2
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4334$as_echo_n "checking for $ac_word... " >&6; }
4335if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4336 $as_echo_n "(cached) " >&6
4337else
4338 if test -n "$ac_ct_DUMPBIN"; then
4339 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4340else
4341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4342for as_dir in $PATH
4343do
4344 IFS=$as_save_IFS
4345 test -z "$as_dir" && as_dir=.
4346 for ac_exec_ext in '' $ac_executable_extensions; do
4347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4348 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4350 break 2
4351 fi
4352done
4353 done
4354IFS=$as_save_IFS
4355
4356fi
4357fi
4358ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4359if test -n "$ac_ct_DUMPBIN"; then
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4361$as_echo "$ac_ct_DUMPBIN" >&6; }
4362else
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4364$as_echo "no" >&6; }
4365fi
4366
4367
4368 test -n "$ac_ct_DUMPBIN" && break
4369done
4370
4371 if test "x$ac_ct_DUMPBIN" = x; then
4372 DUMPBIN=":"
4373 else
4374 case $cross_compiling:$ac_tool_warned in
4375yes:)
4376{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4377$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4378ac_tool_warned=yes ;;
4379esac
4380 DUMPBIN=$ac_ct_DUMPBIN
4381 fi
4382fi
4383
4384 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4385 *COFF*)
4386 DUMPBIN="$DUMPBIN -symbols"
4387 ;;
4388 *)
4389 DUMPBIN=:
4390 ;;
4391 esac
4392 fi
4393
4394 if test "$DUMPBIN" != ":"; then
4395 NM="$DUMPBIN"
4396 fi
4397fi
4398test -z "$NM" && NM=nm
4399
4400
4401
4402
4403
4404
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4406$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4407if test "${lt_cv_nm_interface+set}" = set; then :
4408 $as_echo_n "(cached) " >&6
4409else
4410 lt_cv_nm_interface="BSD nm"
4411 echo "int some_variable = 0;" > conftest.$ac_ext
4412 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4413 (eval "$ac_compile" 2>conftest.err)
4414 cat conftest.err >&5
4415 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4416 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4417 cat conftest.err >&5
4418 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4419 cat conftest.out >&5
4420 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4421 lt_cv_nm_interface="MS dumpbin"
4422 fi
4423 rm -f conftest*
4424fi
4425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4426$as_echo "$lt_cv_nm_interface" >&6; }
4427
4428# find the maximum length of command line arguments
4429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4430$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4431if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4432 $as_echo_n "(cached) " >&6
4433else
4434 i=0
4435 teststring="ABCD"
4436
4437 case $build_os in
4438 msdosdjgpp*)
4439 # On DJGPP, this test can blow up pretty badly due to problems in libc
4440 # (any single argument exceeding 2000 bytes causes a buffer overrun
4441 # during glob expansion). Even if it were fixed, the result of this
4442 # check would be larger than it should be.
4443 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4444 ;;
4445
4446 gnu*)
4447 # Under GNU Hurd, this test is not required because there is
4448 # no limit to the length of command line arguments.
4449 # Libtool will interpret -1 as no limit whatsoever
4450 lt_cv_sys_max_cmd_len=-1;
4451 ;;
4452
4453 cygwin* | mingw* | cegcc*)
4454 # On Win9x/ME, this test blows up -- it succeeds, but takes
4455 # about 5 minutes as the teststring grows exponentially.
4456 # Worse, since 9x/ME are not pre-emptively multitasking,
4457 # you end up with a "frozen" computer, even though with patience
4458 # the test eventually succeeds (with a max line length of 256k).
4459 # Instead, let's just punt: use the minimum linelength reported by
4460 # all of the supported platforms: 8192 (on NT/2K/XP).
4461 lt_cv_sys_max_cmd_len=8192;
4462 ;;
4463
4464 mint*)
4465 # On MiNT this can take a long time and run out of memory.
4466 lt_cv_sys_max_cmd_len=8192;
4467 ;;
4468
4469 amigaos*)
4470 # On AmigaOS with pdksh, this test takes hours, literally.
4471 # So we just punt and use a minimum line length of 8192.
4472 lt_cv_sys_max_cmd_len=8192;
4473 ;;
4474
4475 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4476 # This has been around since 386BSD, at least. Likely further.
4477 if test -x /sbin/sysctl; then
4478 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4479 elif test -x /usr/sbin/sysctl; then
4480 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4481 else
4482 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4483 fi
4484 # And add a safety zone
4485 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4486 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4487 ;;
4488
4489 interix*)
4490 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4491 lt_cv_sys_max_cmd_len=196608
4492 ;;
4493
4494 osf*)
4495 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4496 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4497 # nice to cause kernel panics so lets avoid the loop below.
4498 # First set a reasonable default.
4499 lt_cv_sys_max_cmd_len=16384
4500 #
4501 if test -x /sbin/sysconfig; then
4502 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4503 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4504 esac
4505 fi
4506 ;;
4507 sco3.2v5*)
4508 lt_cv_sys_max_cmd_len=102400
4509 ;;
4510 sysv5* | sco5v6* | sysv4.2uw2*)
4511 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4512 if test -n "$kargmax"; then
4513 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4514 else
4515 lt_cv_sys_max_cmd_len=32768
4516 fi
4517 ;;
4518 *)
4519 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4520 if test -n "$lt_cv_sys_max_cmd_len"; then
4521 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4522 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4523 else
4524 # Make teststring a little bigger before we do anything with it.
4525 # a 1K string should be a reasonable start.
4526 for i in 1 2 3 4 5 6 7 8 ; do
4527 teststring=$teststring$teststring
4528 done
4529 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4530 # If test is not a shell built-in, we'll probably end up computing a
4531 # maximum length that is only half of the actual maximum length, but
4532 # we can't tell.
4533 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4534 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4535 test $i != 17 # 1/2 MB should be enough
4536 do
4537 i=`expr $i + 1`
4538 teststring=$teststring$teststring
4539 done
4540 # Only check the string length outside the loop.
4541 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4542 teststring=
4543 # Add a significant safety factor because C++ compilers can tack on
4544 # massive amounts of additional arguments before passing them to the
4545 # linker. It appears as though 1/2 is a usable value.
4546 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4547 fi
4548 ;;
4549 esac
4550
4551fi
4552
4553if test -n $lt_cv_sys_max_cmd_len ; then
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4555$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4556else
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4558$as_echo "none" >&6; }
4559fi
4560max_cmd_len=$lt_cv_sys_max_cmd_len
4561
4562
4563
4564
4565
4566
4567: ${CP="cp -f"}
4568: ${MV="mv -f"}
4569: ${RM="rm -f"}
4570
4571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4572$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4573# Try some XSI features
4574xsi_shell=no
4575( _lt_dummy="a/b/c"
4576 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4577 = c,a/b,, \
4578 && eval 'test $(( 1 + 1 )) -eq 2 \
4579 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4580 && xsi_shell=yes
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4582$as_echo "$xsi_shell" >&6; }
4583
4584
4585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4586$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4587lt_shell_append=no
4588( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4589 >/dev/null 2>&1 \
4590 && lt_shell_append=yes
4591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4592$as_echo "$lt_shell_append" >&6; }
4593
4594
4595if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4596 lt_unset=unset
4597else
4598 lt_unset=false
4599fi
4600
4601
4602
4603
4604
4605# test EBCDIC or ASCII
4606case `echo X|tr X '\101'` in
4607 A) # ASCII based system
4608 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4609 lt_SP2NL='tr \040 \012'
4610 lt_NL2SP='tr \015\012 \040\040'
4611 ;;
4612 *) # EBCDIC based system
4613 lt_SP2NL='tr \100 \n'
4614 lt_NL2SP='tr \r\n \100\100'
4615 ;;
4616esac
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4627$as_echo_n "checking for $LD option to reload object files... " >&6; }
4628if test "${lt_cv_ld_reload_flag+set}" = set; then :
4629 $as_echo_n "(cached) " >&6
4630else
4631 lt_cv_ld_reload_flag='-r'
4632fi
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4634$as_echo "$lt_cv_ld_reload_flag" >&6; }
4635reload_flag=$lt_cv_ld_reload_flag
4636case $reload_flag in
4637"" | " "*) ;;
4638*) reload_flag=" $reload_flag" ;;
4639esac
4640reload_cmds='$LD$reload_flag -o $output$reload_objs'
4641case $host_os in
4642 darwin*)
4643 if test "$GCC" = yes; then
4644 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4645 else
4646 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4647 fi
4648 ;;
4649esac
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659if test -n "$ac_tool_prefix"; then
4660 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4661set dummy ${ac_tool_prefix}objdump; ac_word=$2
4662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4663$as_echo_n "checking for $ac_word... " >&6; }
4664if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4665 $as_echo_n "(cached) " >&6
4666else
4667 if test -n "$OBJDUMP"; then
4668 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4669else
4670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671for as_dir in $PATH
4672do
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_exec_ext in '' $ac_executable_extensions; do
4676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4677 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4679 break 2
4680 fi
4681done
4682 done
4683IFS=$as_save_IFS
4684
4685fi
4686fi
4687OBJDUMP=$ac_cv_prog_OBJDUMP
4688if test -n "$OBJDUMP"; then
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4690$as_echo "$OBJDUMP" >&6; }
4691else
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4693$as_echo "no" >&6; }
4694fi
4695
4696
4697fi
4698if test -z "$ac_cv_prog_OBJDUMP"; then
4699 ac_ct_OBJDUMP=$OBJDUMP
4700 # Extract the first word of "objdump", so it can be a program name with args.
4701set dummy objdump; ac_word=$2
4702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4703$as_echo_n "checking for $ac_word... " >&6; }
4704if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4705 $as_echo_n "(cached) " >&6
4706else
4707 if test -n "$ac_ct_OBJDUMP"; then
4708 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4709else
4710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711for as_dir in $PATH
4712do
4713 IFS=$as_save_IFS
4714 test -z "$as_dir" && as_dir=.
4715 for ac_exec_ext in '' $ac_executable_extensions; do
4716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4717 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 break 2
4720 fi
4721done
4722 done
4723IFS=$as_save_IFS
4724
4725fi
4726fi
4727ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4728if test -n "$ac_ct_OBJDUMP"; then
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4730$as_echo "$ac_ct_OBJDUMP" >&6; }
4731else
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4733$as_echo "no" >&6; }
4734fi
4735
4736 if test "x$ac_ct_OBJDUMP" = x; then
4737 OBJDUMP="false"
4738 else
4739 case $cross_compiling:$ac_tool_warned in
4740yes:)
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4743ac_tool_warned=yes ;;
4744esac
4745 OBJDUMP=$ac_ct_OBJDUMP
4746 fi
4747else
4748 OBJDUMP="$ac_cv_prog_OBJDUMP"
4749fi
4750
4751test -z "$OBJDUMP" && OBJDUMP=objdump
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4762$as_echo_n "checking how to recognize dependent libraries... " >&6; }
4763if test "${lt_cv_deplibs_check_method+set}" = set; then :
4764 $as_echo_n "(cached) " >&6
4765else
4766 lt_cv_file_magic_cmd='$MAGIC_CMD'
4767lt_cv_file_magic_test_file=
4768lt_cv_deplibs_check_method='unknown'
4769# Need to set the preceding variable on all platforms that support
4770# interlibrary dependencies.
4771# 'none' -- dependencies not supported.
4772# `unknown' -- same as none, but documents that we really don't know.
4773# 'pass_all' -- all dependencies passed with no checks.
4774# 'test_compile' -- check by making test program.
4775# 'file_magic [[regex]]' -- check by looking for files in library path
4776# which responds to the $file_magic_cmd with a given extended regex.
4777# If you have `file' or equivalent on your system and you're not sure
4778# whether `pass_all' will *always* work, you probably want this one.
4779
4780case $host_os in
4781aix[4-9]*)
4782 lt_cv_deplibs_check_method=pass_all
4783 ;;
4784
4785beos*)
4786 lt_cv_deplibs_check_method=pass_all
4787 ;;
4788
4789bsdi[45]*)
4790 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4791 lt_cv_file_magic_cmd='/usr/bin/file -L'
4792 lt_cv_file_magic_test_file=/shlib/libc.so
4793 ;;
4794
4795cygwin*)
4796 # func_win32_libid is a shell function defined in ltmain.sh
4797 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4798 lt_cv_file_magic_cmd='func_win32_libid'
4799 ;;
4800
4801mingw* | pw32*)
4802 # Base MSYS/MinGW do not provide the 'file' command needed by
4803 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4804 # unless we find 'file', for example because we are cross-compiling.
4805 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
4806 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
4807 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4808 lt_cv_file_magic_cmd='func_win32_libid'
4809 else
4810 # Keep this pattern in sync with the one in func_win32_libid.
4811 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4812 lt_cv_file_magic_cmd='$OBJDUMP -f'
4813 fi
4814 ;;
4815
4816cegcc*)
4817 # use the weaker test based on 'objdump'. See mingw*.
4818 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4819 lt_cv_file_magic_cmd='$OBJDUMP -f'
4820 ;;
4821
4822darwin* | rhapsody*)
4823 lt_cv_deplibs_check_method=pass_all
4824 ;;
4825
4826freebsd* | dragonfly*)
4827 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4828 case $host_cpu in
4829 i*86 )
4830 # Not sure whether the presence of OpenBSD here was a mistake.
4831 # Let's accept both of them until this is cleared up.
4832 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4833 lt_cv_file_magic_cmd=/usr/bin/file
4834 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4835 ;;
4836 esac
4837 else
4838 lt_cv_deplibs_check_method=pass_all
4839 fi
4840 ;;
4841
4842gnu*)
4843 lt_cv_deplibs_check_method=pass_all
4844 ;;
4845
4846haiku*)
4847 lt_cv_deplibs_check_method=pass_all
4848 ;;
4849
4850hpux10.20* | hpux11*)
4851 lt_cv_file_magic_cmd=/usr/bin/file
4852 case $host_cpu in
4853 ia64*)
4854 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4855 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4856 ;;
4857 hppa*64*)
4858 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]'
4859 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4860 ;;
4861 *)
4862 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4863 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4864 ;;
4865 esac
4866 ;;
4867
4868interix[3-9]*)
4869 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4870 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4871 ;;
4872
4873irix5* | irix6* | nonstopux*)
4874 case $LD in
4875 *-32|*"-32 ") libmagic=32-bit;;
4876 *-n32|*"-n32 ") libmagic=N32;;
4877 *-64|*"-64 ") libmagic=64-bit;;
4878 *) libmagic=never-match;;
4879 esac
4880 lt_cv_deplibs_check_method=pass_all
4881 ;;
4882
4883# This must be Linux ELF.
4884linux* | k*bsd*-gnu | kopensolaris*-gnu)
4885 lt_cv_deplibs_check_method=pass_all
4886 ;;
4887
4888netbsd*)
4889 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4890 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4891 else
4892 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4893 fi
4894 ;;
4895
4896newos6*)
4897 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4898 lt_cv_file_magic_cmd=/usr/bin/file
4899 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4900 ;;
4901
4902*nto* | *qnx*)
4903 lt_cv_deplibs_check_method=pass_all
4904 ;;
4905
4906openbsd*)
4907 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4908 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4909 else
4910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4911 fi
4912 ;;
4913
4914osf3* | osf4* | osf5*)
4915 lt_cv_deplibs_check_method=pass_all
4916 ;;
4917
4918rdos*)
4919 lt_cv_deplibs_check_method=pass_all
4920 ;;
4921
4922solaris*)
4923 lt_cv_deplibs_check_method=pass_all
4924 ;;
4925
4926sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4927 lt_cv_deplibs_check_method=pass_all
4928 ;;
4929
4930sysv4 | sysv4.3*)
4931 case $host_vendor in
4932 motorola)
4933 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]'
4934 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4935 ;;
4936 ncr)
4937 lt_cv_deplibs_check_method=pass_all
4938 ;;
4939 sequent)
4940 lt_cv_file_magic_cmd='/bin/file'
4941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4942 ;;
4943 sni)
4944 lt_cv_file_magic_cmd='/bin/file'
4945 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4946 lt_cv_file_magic_test_file=/lib/libc.so
4947 ;;
4948 siemens)
4949 lt_cv_deplibs_check_method=pass_all
4950 ;;
4951 pc)
4952 lt_cv_deplibs_check_method=pass_all
4953 ;;
4954 esac
4955 ;;
4956
4957tpf*)
4958 lt_cv_deplibs_check_method=pass_all
4959 ;;
4960esac
4961
4962fi
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4964$as_echo "$lt_cv_deplibs_check_method" >&6; }
4965file_magic_cmd=$lt_cv_file_magic_cmd
4966deplibs_check_method=$lt_cv_deplibs_check_method
4967test -z "$deplibs_check_method" && deplibs_check_method=unknown
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980if test -n "$ac_tool_prefix"; then
4981 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4982set dummy ${ac_tool_prefix}ar; ac_word=$2
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984$as_echo_n "checking for $ac_word... " >&6; }
4985if test "${ac_cv_prog_AR+set}" = set; then :
4986 $as_echo_n "(cached) " >&6
4987else
4988 if test -n "$AR"; then
4989 ac_cv_prog_AR="$AR" # Let the user override the test.
4990else
4991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992for as_dir in $PATH
4993do
4994 IFS=$as_save_IFS
4995 test -z "$as_dir" && as_dir=.
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4998 ac_cv_prog_AR="${ac_tool_prefix}ar"
4999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 break 2
5001 fi
5002done
5003 done
5004IFS=$as_save_IFS
5005
5006fi
5007fi
5008AR=$ac_cv_prog_AR
5009if test -n "$AR"; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5011$as_echo "$AR" >&6; }
5012else
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014$as_echo "no" >&6; }
5015fi
5016
5017
5018fi
5019if test -z "$ac_cv_prog_AR"; then
5020 ac_ct_AR=$AR
5021 # Extract the first word of "ar", so it can be a program name with args.
5022set dummy ar; ac_word=$2
5023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024$as_echo_n "checking for $ac_word... " >&6; }
5025if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5026 $as_echo_n "(cached) " >&6
5027else
5028 if test -n "$ac_ct_AR"; then
5029 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5030else
5031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032for as_dir in $PATH
5033do
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038 ac_cv_prog_ac_ct_AR="ar"
5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 break 2
5041 fi
5042done
5043 done
5044IFS=$as_save_IFS
5045
5046fi
5047fi
5048ac_ct_AR=$ac_cv_prog_ac_ct_AR
5049if test -n "$ac_ct_AR"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5051$as_echo "$ac_ct_AR" >&6; }
5052else
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054$as_echo "no" >&6; }
5055fi
5056
5057 if test "x$ac_ct_AR" = x; then
5058 AR="false"
5059 else
5060 case $cross_compiling:$ac_tool_warned in
5061yes:)
5062{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5064ac_tool_warned=yes ;;
5065esac
5066 AR=$ac_ct_AR
5067 fi
5068else
5069 AR="$ac_cv_prog_AR"
5070fi
5071
5072test -z "$AR" && AR=ar
5073test -z "$AR_FLAGS" && AR_FLAGS=cru
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085if test -n "$ac_tool_prefix"; then
5086 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5087set dummy ${ac_tool_prefix}strip; ac_word=$2
5088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089$as_echo_n "checking for $ac_word... " >&6; }
5090if test "${ac_cv_prog_STRIP+set}" = set; then :
5091 $as_echo_n "(cached) " >&6
5092else
5093 if test -n "$STRIP"; then
5094 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5095else
5096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097for as_dir in $PATH
5098do
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5103 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 break 2
5106 fi
5107done
5108 done
5109IFS=$as_save_IFS
5110
5111fi
5112fi
5113STRIP=$ac_cv_prog_STRIP
5114if test -n "$STRIP"; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5116$as_echo "$STRIP" >&6; }
5117else
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119$as_echo "no" >&6; }
5120fi
5121
5122
5123fi
5124if test -z "$ac_cv_prog_STRIP"; then
5125 ac_ct_STRIP=$STRIP
5126 # Extract the first word of "strip", so it can be a program name with args.
5127set dummy strip; ac_word=$2
5128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129$as_echo_n "checking for $ac_word... " >&6; }
5130if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5131 $as_echo_n "(cached) " >&6
5132else
5133 if test -n "$ac_ct_STRIP"; then
5134 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5135else
5136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137for as_dir in $PATH
5138do
5139 IFS=$as_save_IFS
5140 test -z "$as_dir" && as_dir=.
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5143 ac_cv_prog_ac_ct_STRIP="strip"
5144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 break 2
5146 fi
5147done
5148 done
5149IFS=$as_save_IFS
5150
5151fi
5152fi
5153ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5154if test -n "$ac_ct_STRIP"; then
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5156$as_echo "$ac_ct_STRIP" >&6; }
5157else
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159$as_echo "no" >&6; }
5160fi
5161
5162 if test "x$ac_ct_STRIP" = x; then
5163 STRIP=":"
5164 else
5165 case $cross_compiling:$ac_tool_warned in
5166yes:)
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5169ac_tool_warned=yes ;;
5170esac
5171 STRIP=$ac_ct_STRIP
5172 fi
5173else
5174 STRIP="$ac_cv_prog_STRIP"
5175fi
5176
5177test -z "$STRIP" && STRIP=:
5178
5179
5180
5181
5182
5183
5184if test -n "$ac_tool_prefix"; then
5185 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5186set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188$as_echo_n "checking for $ac_word... " >&6; }
5189if test "${ac_cv_prog_RANLIB+set}" = set; then :
5190 $as_echo_n "(cached) " >&6
5191else
5192 if test -n "$RANLIB"; then
5193 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5194else
5195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5196for as_dir in $PATH
5197do
5198 IFS=$as_save_IFS
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5202 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5204 break 2
5205 fi
5206done
5207 done
5208IFS=$as_save_IFS
5209
5210fi
5211fi
5212RANLIB=$ac_cv_prog_RANLIB
5213if test -n "$RANLIB"; then
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5215$as_echo "$RANLIB" >&6; }
5216else
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5218$as_echo "no" >&6; }
5219fi
5220
5221
5222fi
5223if test -z "$ac_cv_prog_RANLIB"; then
5224 ac_ct_RANLIB=$RANLIB
5225 # Extract the first word of "ranlib", so it can be a program name with args.
5226set dummy ranlib; ac_word=$2
5227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5228$as_echo_n "checking for $ac_word... " >&6; }
5229if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5230 $as_echo_n "(cached) " >&6
5231else
5232 if test -n "$ac_ct_RANLIB"; then
5233 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5234else
5235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236for as_dir in $PATH
5237do
5238 IFS=$as_save_IFS
5239 test -z "$as_dir" && as_dir=.
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5242 ac_cv_prog_ac_ct_RANLIB="ranlib"
5243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 break 2
5245 fi
5246done
5247 done
5248IFS=$as_save_IFS
5249
5250fi
5251fi
5252ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5253if test -n "$ac_ct_RANLIB"; then
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5255$as_echo "$ac_ct_RANLIB" >&6; }
5256else
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258$as_echo "no" >&6; }
5259fi
5260
5261 if test "x$ac_ct_RANLIB" = x; then
5262 RANLIB=":"
5263 else
5264 case $cross_compiling:$ac_tool_warned in
5265yes:)
5266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5267$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5268ac_tool_warned=yes ;;
5269esac
5270 RANLIB=$ac_ct_RANLIB
5271 fi
5272else
5273 RANLIB="$ac_cv_prog_RANLIB"
5274fi
5275
5276test -z "$RANLIB" && RANLIB=:
5277
5278
5279
5280
5281
5282
5283# Determine commands to create old-style static archives.
5284old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5285old_postinstall_cmds='chmod 644 $oldlib'
5286old_postuninstall_cmds=
5287
5288if test -n "$RANLIB"; then
5289 case $host_os in
5290 openbsd*)
5291 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5292 ;;
5293 *)
5294 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5295 ;;
5296 esac
5297 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5298fi
5299
5300case $host_os in
5301 darwin*)
5302 lock_old_archive_extraction=yes ;;
5303 *)
5304 lock_old_archive_extraction=no ;;
5305esac
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345# If no C compiler was specified, use CC.
5346LTCC=${LTCC-"$CC"}
5347
5348# If no C compiler flags were specified, use CFLAGS.
5349LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5350
5351# Allow CC to be a program name with arguments.
5352compiler=$CC
5353
5354
5355# Check for command to grab the raw symbol name followed by C symbol from nm.
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5357$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5358if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5359 $as_echo_n "(cached) " >&6
5360else
5361
5362# These are sane defaults that work on at least a few old systems.
5363# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5364
5365# Character class describing NM global symbol codes.
5366symcode='[BCDEGRST]'
5367
5368# Regexp to match symbols that can be accessed directly from C.
5369sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5370
5371# Define system-specific variables.
5372case $host_os in
5373aix*)
5374 symcode='[BCDT]'
5375 ;;
5376cygwin* | mingw* | pw32* | cegcc*)
5377 symcode='[ABCDGISTW]'
5378 ;;
5379hpux*)
5380 if test "$host_cpu" = ia64; then
5381 symcode='[ABCDEGRST]'
5382 fi
5383 ;;
5384irix* | nonstopux*)
5385 symcode='[BCDEGRST]'
5386 ;;
5387osf*)
5388 symcode='[BCDEGQRST]'
5389 ;;
5390solaris*)
5391 symcode='[BDRT]'
5392 ;;
5393sco3.2v5*)
5394 symcode='[DT]'
5395 ;;
5396sysv4.2uw2*)
5397 symcode='[DT]'
5398 ;;
5399sysv5* | sco5v6* | unixware* | OpenUNIX*)
5400 symcode='[ABDT]'
5401 ;;
5402sysv4)
5403 symcode='[DFNSTU]'
5404 ;;
5405esac
5406
5407# If we're using GNU nm, then use its standard symbol codes.
5408case `$NM -V 2>&1` in
5409*GNU* | *'with BFD'*)
5410 symcode='[ABCDGIRSTW]' ;;
5411esac
5412
5413# Transform an extracted symbol line into a proper C declaration.
5414# Some systems (esp. on ia64) link data and code symbols differently,
5415# so use this general approach.
5416lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5417
5418# Transform an extracted symbol line into symbol name and symbol address
5419lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5420lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
5421
5422# Handle CRLF in mingw tool chain
5423opt_cr=
5424case $build_os in
5425mingw*)
5426 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5427 ;;
5428esac
5429
5430# Try without a prefix underscore, then with it.
5431for ac_symprfx in "" "_"; do
5432
5433 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5434 symxfrm="\\1 $ac_symprfx\\2 \\2"
5435
5436 # Write the raw and C identifiers.
5437 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5438 # Fake it for dumpbin and say T for any non-static function
5439 # and D for any global variable.
5440 # Also find C++ and __fastcall symbols from MSVC++,
5441 # which start with @ or ?.
5442 lt_cv_sys_global_symbol_pipe="$AWK '"\
5443" {last_section=section; section=\$ 3};"\
5444" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5445" \$ 0!~/External *\|/{next};"\
5446" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5447" {if(hide[section]) next};"\
5448" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5449" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5450" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5451" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5452" ' prfx=^$ac_symprfx"
5453 else
5454 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5455 fi
5456
5457 # Check to see that the pipe works correctly.
5458 pipe_works=no
5459
5460 rm -f conftest*
5461 cat > conftest.$ac_ext <<_LT_EOF
5462#ifdef __cplusplus
5463extern "C" {
5464#endif
5465char nm_test_var;
5466void nm_test_func(void);
5467void nm_test_func(void){}
5468#ifdef __cplusplus
5469}
5470#endif
5471int main(){nm_test_var='a';nm_test_func();return(0);}
5472_LT_EOF
5473
5474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5475 (eval $ac_compile) 2>&5
5476 ac_status=$?
5477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5478 test $ac_status = 0; }; then
5479 # Now try to grab the symbols.
5480 nlist=conftest.nm
5481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5482 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5483 ac_status=$?
5484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5485 test $ac_status = 0; } && test -s "$nlist"; then
5486 # Try sorting and uniquifying the output.
5487 if sort "$nlist" | uniq > "$nlist"T; then
5488 mv -f "$nlist"T "$nlist"
5489 else
5490 rm -f "$nlist"T
5491 fi
5492
5493 # Make sure that we snagged all the symbols we need.
5494 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5495 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5496 cat <<_LT_EOF > conftest.$ac_ext
5497#ifdef __cplusplus
5498extern "C" {
5499#endif
5500
5501_LT_EOF
5502 # Now generate the symbol file.
5503 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5504
5505 cat <<_LT_EOF >> conftest.$ac_ext
5506
5507/* The mapping between symbol names and symbols. */
5508const struct {
5509 const char *name;
5510 void *address;
5511}
5512lt__PROGRAM__LTX_preloaded_symbols[] =
5513{
5514 { "@PROGRAM@", (void *) 0 },
5515_LT_EOF
5516 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5517 cat <<\_LT_EOF >> conftest.$ac_ext
5518 {0, (void *) 0}
5519};
5520
5521/* This works around a problem in FreeBSD linker */
5522#ifdef FREEBSD_WORKAROUND
5523static const void *lt_preloaded_setup() {
5524 return lt__PROGRAM__LTX_preloaded_symbols;
5525}
5526#endif
5527
5528#ifdef __cplusplus
5529}
5530#endif
5531_LT_EOF
5532 # Now try linking the two files.
5533 mv conftest.$ac_objext conftstm.$ac_objext
5534 lt_save_LIBS="$LIBS"
5535 lt_save_CFLAGS="$CFLAGS"
5536 LIBS="conftstm.$ac_objext"
5537 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5539 (eval $ac_link) 2>&5
5540 ac_status=$?
5541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5542 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5543 pipe_works=yes
5544 fi
5545 LIBS="$lt_save_LIBS"
5546 CFLAGS="$lt_save_CFLAGS"
5547 else
5548 echo "cannot find nm_test_func in $nlist" >&5
5549 fi
5550 else
5551 echo "cannot find nm_test_var in $nlist" >&5
5552 fi
5553 else
5554 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5555 fi
5556 else
5557 echo "$progname: failed program was:" >&5
5558 cat conftest.$ac_ext >&5
5559 fi
5560 rm -rf conftest* conftst*
5561
5562 # Do not use the global_symbol_pipe unless it works.
5563 if test "$pipe_works" = yes; then
5564 break
5565 else
5566 lt_cv_sys_global_symbol_pipe=
5567 fi
5568done
5569
5570fi
5571
5572if test -z "$lt_cv_sys_global_symbol_pipe"; then
5573 lt_cv_sys_global_symbol_to_cdecl=
5574fi
5575if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5577$as_echo "failed" >&6; }
5578else
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5580$as_echo "ok" >&6; }
5581fi
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605# Check whether --enable-libtool-lock was given.
5606if test "${enable_libtool_lock+set}" = set; then :
5607 enableval=$enable_libtool_lock;
5608fi
5609
5610test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5611
5612# Some flags need to be propagated to the compiler or linker for good
5613# libtool support.
5614case $host in
5615ia64-*-hpux*)
5616 # Find out which ABI we are using.
5617 echo 'int i;' > conftest.$ac_ext
5618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5619 (eval $ac_compile) 2>&5
5620 ac_status=$?
5621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5622 test $ac_status = 0; }; then
5623 case `/usr/bin/file conftest.$ac_objext` in
5624 *ELF-32*)
5625 HPUX_IA64_MODE="32"
5626 ;;
5627 *ELF-64*)
5628 HPUX_IA64_MODE="64"
5629 ;;
5630 esac
5631 fi
5632 rm -rf conftest*
5633 ;;
5634*-*-irix6*)
5635 # Find out which ABI we are using.
5636 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
5637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5638 (eval $ac_compile) 2>&5
5639 ac_status=$?
5640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5641 test $ac_status = 0; }; then
5642 if test "$lt_cv_prog_gnu_ld" = yes; then
5643 case `/usr/bin/file conftest.$ac_objext` in
5644 *32-bit*)
5645 LD="${LD-ld} -melf32bsmip"
5646 ;;
5647 *N32*)
5648 LD="${LD-ld} -melf32bmipn32"
5649 ;;
5650 *64-bit*)
5651 LD="${LD-ld} -melf64bmip"
5652 ;;
5653 esac
5654 else
5655 case `/usr/bin/file conftest.$ac_objext` in
5656 *32-bit*)
5657 LD="${LD-ld} -32"
5658 ;;
5659 *N32*)
5660 LD="${LD-ld} -n32"
5661 ;;
5662 *64-bit*)
5663 LD="${LD-ld} -64"
5664 ;;
5665 esac
5666 fi
5667 fi
5668 rm -rf conftest*
5669 ;;
5670
5671x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5672s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5673 # Find out which ABI we are using.
5674 echo 'int i;' > conftest.$ac_ext
5675 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5676 (eval $ac_compile) 2>&5
5677 ac_status=$?
5678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5679 test $ac_status = 0; }; then
5680 case `/usr/bin/file conftest.o` in
5681 *32-bit*)
5682 case $host in
5683 x86_64-*kfreebsd*-gnu)
5684 LD="${LD-ld} -m elf_i386_fbsd"
5685 ;;
5686 x86_64-*linux*)
5687 LD="${LD-ld} -m elf_i386"
5688 ;;
5689 ppc64-*linux*|powerpc64-*linux*)
5690 LD="${LD-ld} -m elf32ppclinux"
5691 ;;
5692 s390x-*linux*)
5693 LD="${LD-ld} -m elf_s390"
5694 ;;
5695 sparc64-*linux*)
5696 LD="${LD-ld} -m elf32_sparc"
5697 ;;
5698 esac
5699 ;;
5700 *64-bit*)
5701 case $host in
5702 x86_64-*kfreebsd*-gnu)
5703 LD="${LD-ld} -m elf_x86_64_fbsd"
5704 ;;
5705 x86_64-*linux*)
5706 LD="${LD-ld} -m elf_x86_64"
5707 ;;
5708 ppc*-*linux*|powerpc*-*linux*)
5709 LD="${LD-ld} -m elf64ppc"
5710 ;;
5711 s390*-*linux*|s390*-*tpf*)
5712 LD="${LD-ld} -m elf64_s390"
5713 ;;
5714 sparc*-*linux*)
5715 LD="${LD-ld} -m elf64_sparc"
5716 ;;
5717 esac
5718 ;;
5719 esac
5720 fi
5721 rm -rf conftest*
5722 ;;
5723
5724*-*-sco3.2v5*)
5725 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5726 SAVE_CFLAGS="$CFLAGS"
5727 CFLAGS="$CFLAGS -belf"
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5729$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5730if test "${lt_cv_cc_needs_belf+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5732else
5733 ac_ext=c
5734ac_cpp='$CPP $CPPFLAGS'
5735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5737ac_compiler_gnu=$ac_cv_c_compiler_gnu
5738
5739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5740/* end confdefs.h. */
5741
5742int
5743main ()
5744{
5745
5746 ;
5747 return 0;
5748}
5749_ACEOF
5750if ac_fn_c_try_link "$LINENO"; then :
5751 lt_cv_cc_needs_belf=yes
5752else
5753 lt_cv_cc_needs_belf=no
5754fi
5755rm -f core conftest.err conftest.$ac_objext \
5756 conftest$ac_exeext conftest.$ac_ext
5757 ac_ext=c
5758ac_cpp='$CPP $CPPFLAGS'
5759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5761ac_compiler_gnu=$ac_cv_c_compiler_gnu
5762
5763fi
5764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5765$as_echo "$lt_cv_cc_needs_belf" >&6; }
5766 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5767 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5768 CFLAGS="$SAVE_CFLAGS"
5769 fi
5770 ;;
5771sparc*-*solaris*)
5772 # Find out which ABI we are using.
5773 echo 'int i;' > conftest.$ac_ext
5774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5775 (eval $ac_compile) 2>&5
5776 ac_status=$?
5777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5778 test $ac_status = 0; }; then
5779 case `/usr/bin/file conftest.o` in
5780 *64-bit*)
5781 case $lt_cv_prog_gnu_ld in
5782 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5783 *)
5784 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5785 LD="${LD-ld} -64"
5786 fi
5787 ;;
5788 esac
5789 ;;
5790 esac
5791 fi
5792 rm -rf conftest*
5793 ;;
5794esac
5795
5796need_locks="$enable_libtool_lock"
5797
5798
5799 case $host_os in
5800 rhapsody* | darwin*)
5801 if test -n "$ac_tool_prefix"; then
5802 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5803set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5805$as_echo_n "checking for $ac_word... " >&6; }
5806if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5807 $as_echo_n "(cached) " >&6
5808else
5809 if test -n "$DSYMUTIL"; then
5810 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5811else
5812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813for as_dir in $PATH
5814do
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5819 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
5820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 break 2
5822 fi
5823done
5824 done
5825IFS=$as_save_IFS
5826
5827fi
5828fi
5829DSYMUTIL=$ac_cv_prog_DSYMUTIL
5830if test -n "$DSYMUTIL"; then
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
5832$as_echo "$DSYMUTIL" >&6; }
5833else
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835$as_echo "no" >&6; }
5836fi
5837
5838
5839fi
5840if test -z "$ac_cv_prog_DSYMUTIL"; then
5841 ac_ct_DSYMUTIL=$DSYMUTIL
5842 # Extract the first word of "dsymutil", so it can be a program name with args.
5843set dummy dsymutil; ac_word=$2
5844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5845$as_echo_n "checking for $ac_word... " >&6; }
5846if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
5847 $as_echo_n "(cached) " >&6
5848else
5849 if test -n "$ac_ct_DSYMUTIL"; then
5850 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
5851else
5852as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853for as_dir in $PATH
5854do
5855 IFS=$as_save_IFS
5856 test -z "$as_dir" && as_dir=.
5857 for ac_exec_ext in '' $ac_executable_extensions; do
5858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5859 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
5860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5861 break 2
5862 fi
5863done
5864 done
5865IFS=$as_save_IFS
5866
5867fi
5868fi
5869ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
5870if test -n "$ac_ct_DSYMUTIL"; then
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
5872$as_echo "$ac_ct_DSYMUTIL" >&6; }
5873else
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5875$as_echo "no" >&6; }
5876fi
5877
5878 if test "x$ac_ct_DSYMUTIL" = x; then
5879 DSYMUTIL=":"
5880 else
5881 case $cross_compiling:$ac_tool_warned in
5882yes:)
5883{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5884$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5885ac_tool_warned=yes ;;
5886esac
5887 DSYMUTIL=$ac_ct_DSYMUTIL
5888 fi
5889else
5890 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
5891fi
5892
5893 if test -n "$ac_tool_prefix"; then
5894 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
5895set dummy ${ac_tool_prefix}nmedit; ac_word=$2
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897$as_echo_n "checking for $ac_word... " >&6; }
5898if test "${ac_cv_prog_NMEDIT+set}" = set; then :
5899 $as_echo_n "(cached) " >&6
5900else
5901 if test -n "$NMEDIT"; then
5902 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
5903else
5904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905for as_dir in $PATH
5906do
5907 IFS=$as_save_IFS
5908 test -z "$as_dir" && as_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5911 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
5912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 break 2
5914 fi
5915done
5916 done
5917IFS=$as_save_IFS
5918
5919fi
5920fi
5921NMEDIT=$ac_cv_prog_NMEDIT
5922if test -n "$NMEDIT"; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
5924$as_echo "$NMEDIT" >&6; }
5925else
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927$as_echo "no" >&6; }
5928fi
5929
5930
5931fi
5932if test -z "$ac_cv_prog_NMEDIT"; then
5933 ac_ct_NMEDIT=$NMEDIT
5934 # Extract the first word of "nmedit", so it can be a program name with args.
5935set dummy nmedit; ac_word=$2
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937$as_echo_n "checking for $ac_word... " >&6; }
5938if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
5939 $as_echo_n "(cached) " >&6
5940else
5941 if test -n "$ac_ct_NMEDIT"; then
5942 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
5943else
5944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945for as_dir in $PATH
5946do
5947 IFS=$as_save_IFS
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5951 ac_cv_prog_ac_ct_NMEDIT="nmedit"
5952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 break 2
5954 fi
5955done
5956 done
5957IFS=$as_save_IFS
5958
5959fi
5960fi
5961ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
5962if test -n "$ac_ct_NMEDIT"; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
5964$as_echo "$ac_ct_NMEDIT" >&6; }
5965else
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967$as_echo "no" >&6; }
5968fi
5969
5970 if test "x$ac_ct_NMEDIT" = x; then
5971 NMEDIT=":"
5972 else
5973 case $cross_compiling:$ac_tool_warned in
5974yes:)
5975{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5977ac_tool_warned=yes ;;
5978esac
5979 NMEDIT=$ac_ct_NMEDIT
5980 fi
5981else
5982 NMEDIT="$ac_cv_prog_NMEDIT"
5983fi
5984
5985 if test -n "$ac_tool_prefix"; then
5986 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
5987set dummy ${ac_tool_prefix}lipo; ac_word=$2
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5989$as_echo_n "checking for $ac_word... " >&6; }
5990if test "${ac_cv_prog_LIPO+set}" = set; then :
5991 $as_echo_n "(cached) " >&6
5992else
5993 if test -n "$LIPO"; then
5994 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
5995else
5996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5997for as_dir in $PATH
5998do
5999 IFS=$as_save_IFS
6000 test -z "$as_dir" && as_dir=.
6001 for ac_exec_ext in '' $ac_executable_extensions; do
6002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6003 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6005 break 2
6006 fi
6007done
6008 done
6009IFS=$as_save_IFS
6010
6011fi
6012fi
6013LIPO=$ac_cv_prog_LIPO
6014if test -n "$LIPO"; then
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6016$as_echo "$LIPO" >&6; }
6017else
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6019$as_echo "no" >&6; }
6020fi
6021
6022
6023fi
6024if test -z "$ac_cv_prog_LIPO"; then
6025 ac_ct_LIPO=$LIPO
6026 # Extract the first word of "lipo", so it can be a program name with args.
6027set dummy lipo; ac_word=$2
6028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6029$as_echo_n "checking for $ac_word... " >&6; }
6030if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6031 $as_echo_n "(cached) " >&6
6032else
6033 if test -n "$ac_ct_LIPO"; then
6034 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6035else
6036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6037for as_dir in $PATH
6038do
6039 IFS=$as_save_IFS
6040 test -z "$as_dir" && as_dir=.
6041 for ac_exec_ext in '' $ac_executable_extensions; do
6042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6043 ac_cv_prog_ac_ct_LIPO="lipo"
6044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6045 break 2
6046 fi
6047done
6048 done
6049IFS=$as_save_IFS
6050
6051fi
6052fi
6053ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6054if test -n "$ac_ct_LIPO"; then
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6056$as_echo "$ac_ct_LIPO" >&6; }
6057else
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6059$as_echo "no" >&6; }
6060fi
6061
6062 if test "x$ac_ct_LIPO" = x; then
6063 LIPO=":"
6064 else
6065 case $cross_compiling:$ac_tool_warned in
6066yes:)
6067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6069ac_tool_warned=yes ;;
6070esac
6071 LIPO=$ac_ct_LIPO
6072 fi
6073else
6074 LIPO="$ac_cv_prog_LIPO"
6075fi
6076
6077 if test -n "$ac_tool_prefix"; then
6078 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6079set dummy ${ac_tool_prefix}otool; ac_word=$2
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081$as_echo_n "checking for $ac_word... " >&6; }
6082if test "${ac_cv_prog_OTOOL+set}" = set; then :
6083 $as_echo_n "(cached) " >&6
6084else
6085 if test -n "$OTOOL"; then
6086 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6087else
6088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089for as_dir in $PATH
6090do
6091 IFS=$as_save_IFS
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6095 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 break 2
6098 fi
6099done
6100 done
6101IFS=$as_save_IFS
6102
6103fi
6104fi
6105OTOOL=$ac_cv_prog_OTOOL
6106if test -n "$OTOOL"; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6108$as_echo "$OTOOL" >&6; }
6109else
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111$as_echo "no" >&6; }
6112fi
6113
6114
6115fi
6116if test -z "$ac_cv_prog_OTOOL"; then
6117 ac_ct_OTOOL=$OTOOL
6118 # Extract the first word of "otool", so it can be a program name with args.
6119set dummy otool; ac_word=$2
6120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121$as_echo_n "checking for $ac_word... " >&6; }
6122if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6123 $as_echo_n "(cached) " >&6
6124else
6125 if test -n "$ac_ct_OTOOL"; then
6126 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6127else
6128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129for as_dir in $PATH
6130do
6131 IFS=$as_save_IFS
6132 test -z "$as_dir" && as_dir=.
6133 for ac_exec_ext in '' $ac_executable_extensions; do
6134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6135 ac_cv_prog_ac_ct_OTOOL="otool"
6136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6137 break 2
6138 fi
6139done
6140 done
6141IFS=$as_save_IFS
6142
6143fi
6144fi
6145ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6146if test -n "$ac_ct_OTOOL"; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6148$as_echo "$ac_ct_OTOOL" >&6; }
6149else
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151$as_echo "no" >&6; }
6152fi
6153
6154 if test "x$ac_ct_OTOOL" = x; then
6155 OTOOL=":"
6156 else
6157 case $cross_compiling:$ac_tool_warned in
6158yes:)
6159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6161ac_tool_warned=yes ;;
6162esac
6163 OTOOL=$ac_ct_OTOOL
6164 fi
6165else
6166 OTOOL="$ac_cv_prog_OTOOL"
6167fi
6168
6169 if test -n "$ac_tool_prefix"; then
6170 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6171set dummy ${ac_tool_prefix}otool64; ac_word=$2
6172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6173$as_echo_n "checking for $ac_word... " >&6; }
6174if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6175 $as_echo_n "(cached) " >&6
6176else
6177 if test -n "$OTOOL64"; then
6178 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6179else
6180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6181for as_dir in $PATH
6182do
6183 IFS=$as_save_IFS
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6187 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6189 break 2
6190 fi
6191done
6192 done
6193IFS=$as_save_IFS
6194
6195fi
6196fi
6197OTOOL64=$ac_cv_prog_OTOOL64
6198if test -n "$OTOOL64"; then
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6200$as_echo "$OTOOL64" >&6; }
6201else
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203$as_echo "no" >&6; }
6204fi
6205
6206
6207fi
6208if test -z "$ac_cv_prog_OTOOL64"; then
6209 ac_ct_OTOOL64=$OTOOL64
6210 # Extract the first word of "otool64", so it can be a program name with args.
6211set dummy otool64; ac_word=$2
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6213$as_echo_n "checking for $ac_word... " >&6; }
6214if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6215 $as_echo_n "(cached) " >&6
6216else
6217 if test -n "$ac_ct_OTOOL64"; then
6218 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6219else
6220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221for as_dir in $PATH
6222do
6223 IFS=$as_save_IFS
6224 test -z "$as_dir" && as_dir=.
6225 for ac_exec_ext in '' $ac_executable_extensions; do
6226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6227 ac_cv_prog_ac_ct_OTOOL64="otool64"
6228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 break 2
6230 fi
6231done
6232 done
6233IFS=$as_save_IFS
6234
6235fi
6236fi
6237ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6238if test -n "$ac_ct_OTOOL64"; then
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6240$as_echo "$ac_ct_OTOOL64" >&6; }
6241else
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6243$as_echo "no" >&6; }
6244fi
6245
6246 if test "x$ac_ct_OTOOL64" = x; then
6247 OTOOL64=":"
6248 else
6249 case $cross_compiling:$ac_tool_warned in
6250yes:)
6251{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6252$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6253ac_tool_warned=yes ;;
6254esac
6255 OTOOL64=$ac_ct_OTOOL64
6256 fi
6257else
6258 OTOOL64="$ac_cv_prog_OTOOL64"
6259fi
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6288$as_echo_n "checking for -single_module linker flag... " >&6; }
6289if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6290 $as_echo_n "(cached) " >&6
6291else
6292 lt_cv_apple_cc_single_mod=no
6293 if test -z "${LT_MULTI_MODULE}"; then
6294 # By default we will add the -single_module flag. You can override
6295 # by either setting the environment variable LT_MULTI_MODULE
6296 # non-empty at configure time, or by adding -multi_module to the
6297 # link flags.
6298 rm -rf libconftest.dylib*
6299 echo "int foo(void){return 1;}" > conftest.c
6300 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6301-dynamiclib -Wl,-single_module conftest.c" >&5
6302 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6303 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6304 _lt_result=$?
6305 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6306 lt_cv_apple_cc_single_mod=yes
6307 else
6308 cat conftest.err >&5
6309 fi
6310 rm -rf libconftest.dylib*
6311 rm -f conftest.*
6312 fi
6313fi
6314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6315$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6317$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6318if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6319 $as_echo_n "(cached) " >&6
6320else
6321 lt_cv_ld_exported_symbols_list=no
6322 save_LDFLAGS=$LDFLAGS
6323 echo "_main" > conftest.sym
6324 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6326/* end confdefs.h. */
6327
6328int
6329main ()
6330{
6331
6332 ;
6333 return 0;
6334}
6335_ACEOF
6336if ac_fn_c_try_link "$LINENO"; then :
6337 lt_cv_ld_exported_symbols_list=yes
6338else
6339 lt_cv_ld_exported_symbols_list=no
6340fi
6341rm -f core conftest.err conftest.$ac_objext \
6342 conftest$ac_exeext conftest.$ac_ext
6343 LDFLAGS="$save_LDFLAGS"
6344
6345fi
6346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6347$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6349$as_echo_n "checking for -force_load linker flag... " >&6; }
6350if test "${lt_cv_ld_force_load+set}" = set; then :
6351 $as_echo_n "(cached) " >&6
6352else
6353 lt_cv_ld_force_load=no
6354 cat > conftest.c << _LT_EOF
6355int forced_loaded() { return 2;}
6356_LT_EOF
6357 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6358 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6359 echo "$AR cru libconftest.a conftest.o" >&5
6360 $AR cru libconftest.a conftest.o 2>&5
6361 echo "$RANLIB libconftest.a" >&5
6362 $RANLIB libconftest.a 2>&5
6363 cat > conftest.c << _LT_EOF
6364int main() { return 0;}
6365_LT_EOF
6366 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
6367 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
6368 _lt_result=$?
6369 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
6370 lt_cv_ld_force_load=yes
6371 else
6372 cat conftest.err >&5
6373 fi
6374 rm -f conftest.err libconftest.a conftest conftest.c
6375 rm -rf conftest.dSYM
6376
6377fi
6378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
6379$as_echo "$lt_cv_ld_force_load" >&6; }
6380 case $host_os in
6381 rhapsody* | darwin1.[012])
6382 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6383 darwin1.*)
6384 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6385 darwin*) # darwin 5.x on
6386 # if running on 10.5 or later, the deployment target defaults
6387 # to the OS version, if on x86, and 10.4, the deployment
6388 # target defaults to 10.4. Don't you love it?
6389 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6390 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6391 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6392 10.[012]*)
6393 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6394 10.*)
6395 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6396 esac
6397 ;;
6398 esac
6399 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6400 _lt_dar_single_mod='$single_module'
6401 fi
6402 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6403 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6404 else
6405 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6406 fi
6407 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
6408 _lt_dsymutil='~$DSYMUTIL $lib || :'
6409 else
6410 _lt_dsymutil=
6411 fi
6412 ;;
6413 esac
6414
6415ac_ext=c
6416ac_cpp='$CPP $CPPFLAGS'
6417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6419ac_compiler_gnu=$ac_cv_c_compiler_gnu
6420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6421$as_echo_n "checking how to run the C preprocessor... " >&6; }
6422# On Suns, sometimes $CPP names a directory.
6423if test -n "$CPP" && test -d "$CPP"; then
6424 CPP=
6425fi
6426if test -z "$CPP"; then
6427 if test "${ac_cv_prog_CPP+set}" = set; then :
6428 $as_echo_n "(cached) " >&6
6429else
6430 # Double quotes because CPP needs to be expanded
6431 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6432 do
6433 ac_preproc_ok=false
6434for ac_c_preproc_warn_flag in '' yes
6435do
6436 # Use a header file that comes with gcc, so configuring glibc
6437 # with a fresh cross-compiler works.
6438 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6439 # <limits.h> exists even on freestanding compilers.
6440 # On the NeXT, cc -E runs the code through the compiler's parser,
6441 # not just through cpp. "Syntax error" is here to catch this case.
6442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6443/* end confdefs.h. */
6444#ifdef __STDC__
6445# include <limits.h>
6446#else
6447# include <assert.h>
6448#endif
6449 Syntax error
6450_ACEOF
6451if ac_fn_c_try_cpp "$LINENO"; then :
6452
6453else
6454 # Broken: fails on valid input.
6455continue
6456fi
6457rm -f conftest.err conftest.$ac_ext
6458
6459 # OK, works on sane cases. Now check whether nonexistent headers
6460 # can be detected and how.
6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6462/* end confdefs.h. */
6463#include <ac_nonexistent.h>
6464_ACEOF
6465if ac_fn_c_try_cpp "$LINENO"; then :
6466 # Broken: success on invalid input.
6467continue
6468else
6469 # Passes both tests.
6470ac_preproc_ok=:
6471break
6472fi
6473rm -f conftest.err conftest.$ac_ext
6474
6475done
6476# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6477rm -f conftest.err conftest.$ac_ext
6478if $ac_preproc_ok; then :
6479 break
6480fi
6481
6482 done
6483 ac_cv_prog_CPP=$CPP
6484
6485fi
6486 CPP=$ac_cv_prog_CPP
6487else
6488 ac_cv_prog_CPP=$CPP
6489fi
6490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6491$as_echo "$CPP" >&6; }
6492ac_preproc_ok=false
6493for ac_c_preproc_warn_flag in '' yes
6494do
6495 # Use a header file that comes with gcc, so configuring glibc
6496 # with a fresh cross-compiler works.
6497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6498 # <limits.h> exists even on freestanding compilers.
6499 # On the NeXT, cc -E runs the code through the compiler's parser,
6500 # not just through cpp. "Syntax error" is here to catch this case.
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502/* end confdefs.h. */
6503#ifdef __STDC__
6504# include <limits.h>
6505#else
6506# include <assert.h>
6507#endif
6508 Syntax error
6509_ACEOF
6510if ac_fn_c_try_cpp "$LINENO"; then :
6511
6512else
6513 # Broken: fails on valid input.
6514continue
6515fi
6516rm -f conftest.err conftest.$ac_ext
6517
6518 # OK, works on sane cases. Now check whether nonexistent headers
6519 # can be detected and how.
6520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6521/* end confdefs.h. */
6522#include <ac_nonexistent.h>
6523_ACEOF
6524if ac_fn_c_try_cpp "$LINENO"; then :
6525 # Broken: success on invalid input.
6526continue
6527else
6528 # Passes both tests.
6529ac_preproc_ok=:
6530break
6531fi
6532rm -f conftest.err conftest.$ac_ext
6533
6534done
6535# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6536rm -f conftest.err conftest.$ac_ext
6537if $ac_preproc_ok; then :
6538
6539else
6540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6542as_fn_error "C preprocessor \"$CPP\" fails sanity check
6543See \`config.log' for more details." "$LINENO" 5; }
6544fi
6545
6546ac_ext=c
6547ac_cpp='$CPP $CPPFLAGS'
6548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6550ac_compiler_gnu=$ac_cv_c_compiler_gnu
6551
6552
6553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6554$as_echo_n "checking for ANSI C header files... " >&6; }
6555if test "${ac_cv_header_stdc+set}" = set; then :
6556 $as_echo_n "(cached) " >&6
6557else
6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559/* end confdefs.h. */
6560#include <stdlib.h>
6561#include <stdarg.h>
6562#include <string.h>
6563#include <float.h>
6564
6565int
6566main ()
6567{
6568
6569 ;
6570 return 0;
6571}
6572_ACEOF
6573if ac_fn_c_try_compile "$LINENO"; then :
6574 ac_cv_header_stdc=yes
6575else
6576 ac_cv_header_stdc=no
6577fi
6578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579
6580if test $ac_cv_header_stdc = yes; then
6581 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6583/* end confdefs.h. */
6584#include <string.h>
6585
6586_ACEOF
6587if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6588 $EGREP "memchr" >/dev/null 2>&1; then :
6589
6590else
6591 ac_cv_header_stdc=no
6592fi
6593rm -f conftest*
6594
6595fi
6596
6597if test $ac_cv_header_stdc = yes; then
6598 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6600/* end confdefs.h. */
6601#include <stdlib.h>
6602
6603_ACEOF
6604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6605 $EGREP "free" >/dev/null 2>&1; then :
6606
6607else
6608 ac_cv_header_stdc=no
6609fi
6610rm -f conftest*
6611
6612fi
6613
6614if test $ac_cv_header_stdc = yes; then
6615 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6616 if test "$cross_compiling" = yes; then :
6617 :
6618else
6619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6620/* end confdefs.h. */
6621#include <ctype.h>
6622#include <stdlib.h>
6623#if ((' ' & 0x0FF) == 0x020)
6624# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6625# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6626#else
6627# define ISLOWER(c) \
6628 (('a' <= (c) && (c) <= 'i') \
6629 || ('j' <= (c) && (c) <= 'r') \
6630 || ('s' <= (c) && (c) <= 'z'))
6631# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6632#endif
6633
6634#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6635int
6636main ()
6637{
6638 int i;
6639 for (i = 0; i < 256; i++)
6640 if (XOR (islower (i), ISLOWER (i))
6641 || toupper (i) != TOUPPER (i))
6642 return 2;
6643 return 0;
6644}
6645_ACEOF
6646if ac_fn_c_try_run "$LINENO"; then :
6647
6648else
6649 ac_cv_header_stdc=no
6650fi
6651rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6652 conftest.$ac_objext conftest.beam conftest.$ac_ext
6653fi
6654
6655fi
6656fi
6657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6658$as_echo "$ac_cv_header_stdc" >&6; }
6659if test $ac_cv_header_stdc = yes; then
6660
6661$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6662
6663fi
6664
6665# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6666for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6667 inttypes.h stdint.h unistd.h
6668do :
6669 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6670ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6671"
6672eval as_val=\$$as_ac_Header
6673 if test "x$as_val" = x""yes; then :
6674 cat >>confdefs.h <<_ACEOF
6675#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6676_ACEOF
6677
6678fi
6679
6680done
6681
6682
6683for ac_header in dlfcn.h
6684do :
6685 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6686"
6687if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6688 cat >>confdefs.h <<_ACEOF
6689#define HAVE_DLFCN_H 1
6690_ACEOF
6691
6692fi
6693
6694done
6695
6696
6697
6698
6699
6700# Set options
6701
6702
6703
6704 enable_dlopen=no
6705
6706
6707 enable_win32_dll=no
6708
6709
6710 # Check whether --enable-shared was given.
6711if test "${enable_shared+set}" = set; then :
6712 enableval=$enable_shared; p=${PACKAGE-default}
6713 case $enableval in
6714 yes) enable_shared=yes ;;
6715 no) enable_shared=no ;;
6716 *)
6717 enable_shared=no
6718 # Look at the argument we got. We use all the common list separators.
6719 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6720 for pkg in $enableval; do
6721 IFS="$lt_save_ifs"
6722 if test "X$pkg" = "X$p"; then
6723 enable_shared=yes
6724 fi
6725 done
6726 IFS="$lt_save_ifs"
6727 ;;
6728 esac
6729else
6730 enable_shared=yes
6731fi
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741 # Check whether --enable-static was given.
6742if test "${enable_static+set}" = set; then :
6743 enableval=$enable_static; p=${PACKAGE-default}
6744 case $enableval in
6745 yes) enable_static=yes ;;
6746 no) enable_static=no ;;
6747 *)
6748 enable_static=no
6749 # Look at the argument we got. We use all the common list separators.
6750 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6751 for pkg in $enableval; do
6752 IFS="$lt_save_ifs"
6753 if test "X$pkg" = "X$p"; then
6754 enable_static=yes
6755 fi
6756 done
6757 IFS="$lt_save_ifs"
6758 ;;
6759 esac
6760else
6761 enable_static=yes
6762fi
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773# Check whether --with-pic was given.
6774if test "${with_pic+set}" = set; then :
6775 withval=$with_pic; pic_mode="$withval"
6776else
6777 pic_mode=default
6778fi
6779
6780
6781test -z "$pic_mode" && pic_mode=default
6782
6783
6784
6785
6786
6787
6788
6789 # Check whether --enable-fast-install was given.
6790if test "${enable_fast_install+set}" = set; then :
6791 enableval=$enable_fast_install; p=${PACKAGE-default}
6792 case $enableval in
6793 yes) enable_fast_install=yes ;;
6794 no) enable_fast_install=no ;;
6795 *)
6796 enable_fast_install=no
6797 # Look at the argument we got. We use all the common list separators.
6798 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6799 for pkg in $enableval; do
6800 IFS="$lt_save_ifs"
6801 if test "X$pkg" = "X$p"; then
6802 enable_fast_install=yes
6803 fi
6804 done
6805 IFS="$lt_save_ifs"
6806 ;;
6807 esac
6808else
6809 enable_fast_install=yes
6810fi
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822# This can be used to rebuild libtool when needed
6823LIBTOOL_DEPS="$ltmain"
6824
6825# Always use our own libtool.
6826LIBTOOL='$(SHELL) $(top_builddir)/libtool'
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853test -z "$LN_S" && LN_S="ln -s"
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868if test -n "${ZSH_VERSION+set}" ; then
6869 setopt NO_GLOB_SUBST
6870fi
6871
6872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6873$as_echo_n "checking for objdir... " >&6; }
6874if test "${lt_cv_objdir+set}" = set; then :
6875 $as_echo_n "(cached) " >&6
6876else
6877 rm -f .libs 2>/dev/null
6878mkdir .libs 2>/dev/null
6879if test -d .libs; then
6880 lt_cv_objdir=.libs
6881else
6882 # MS-DOS does not allow filenames that begin with a dot.
6883 lt_cv_objdir=_libs
6884fi
6885rmdir .libs 2>/dev/null
6886fi
6887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6888$as_echo "$lt_cv_objdir" >&6; }
6889objdir=$lt_cv_objdir
6890
6891
6892
6893
6894
6895cat >>confdefs.h <<_ACEOF
6896#define LT_OBJDIR "$lt_cv_objdir/"
6897_ACEOF
6898
6899
6900
6901
6902case $host_os in
6903aix3*)
6904 # AIX sometimes has problems with the GCC collect2 program. For some
6905 # reason, if we set the COLLECT_NAMES environment variable, the problems
6906 # vanish in a puff of smoke.
6907 if test "X${COLLECT_NAMES+set}" != Xset; then
6908 COLLECT_NAMES=
6909 export COLLECT_NAMES
6910 fi
6911 ;;
6912esac
6913
6914# Global variables:
6915ofile=libtool
6916can_build_shared=yes
6917
6918# All known linkers require a `.a' archive for static linking (except MSVC,
6919# which needs '.lib').
6920libext=a
6921
6922with_gnu_ld="$lt_cv_prog_gnu_ld"
6923
6924old_CC="$CC"
6925old_CFLAGS="$CFLAGS"
6926
6927# Set sane defaults for various variables
6928test -z "$CC" && CC=cc
6929test -z "$LTCC" && LTCC=$CC
6930test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6931test -z "$LD" && LD=ld
6932test -z "$ac_objext" && ac_objext=o
6933
6934for cc_temp in $compiler""; do
6935 case $cc_temp in
6936 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6937 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6938 \-*) ;;
6939 *) break;;
6940 esac
6941done
6942cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6943
6944
6945# Only perform the check for file, if the check method requires it
6946test -z "$MAGIC_CMD" && MAGIC_CMD=file
6947case $deplibs_check_method in
6948file_magic*)
6949 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6951$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6952if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
6953 $as_echo_n "(cached) " >&6
6954else
6955 case $MAGIC_CMD in
6956[\\/*] | ?:[\\/]*)
6957 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6958 ;;
6959*)
6960 lt_save_MAGIC_CMD="$MAGIC_CMD"
6961 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6962 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6963 for ac_dir in $ac_dummy; do
6964 IFS="$lt_save_ifs"
6965 test -z "$ac_dir" && ac_dir=.
6966 if test -f $ac_dir/${ac_tool_prefix}file; then
6967 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6968 if test -n "$file_magic_test_file"; then
6969 case $deplibs_check_method in
6970 "file_magic "*)
6971 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6972 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6973 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6974 $EGREP "$file_magic_regex" > /dev/null; then
6975 :
6976 else
6977 cat <<_LT_EOF 1>&2
6978
6979*** Warning: the command libtool uses to detect shared libraries,
6980*** $file_magic_cmd, produces output that libtool cannot recognize.
6981*** The result is that libtool may fail to recognize shared libraries
6982*** as such. This will affect the creation of libtool libraries that
6983*** depend on shared libraries, but programs linked with such libtool
6984*** libraries will work regardless of this problem. Nevertheless, you
6985*** may want to report the problem to your system manager and/or to
6986*** bug-libtool@gnu.org
6987
6988_LT_EOF
6989 fi ;;
6990 esac
6991 fi
6992 break
6993 fi
6994 done
6995 IFS="$lt_save_ifs"
6996 MAGIC_CMD="$lt_save_MAGIC_CMD"
6997 ;;
6998esac
6999fi
7000
7001MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7002if test -n "$MAGIC_CMD"; then
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7004$as_echo "$MAGIC_CMD" >&6; }
7005else
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007$as_echo "no" >&6; }
7008fi
7009
7010
7011
7012
7013
7014if test -z "$lt_cv_path_MAGIC_CMD"; then
7015 if test -n "$ac_tool_prefix"; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7017$as_echo_n "checking for file... " >&6; }
7018if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7019 $as_echo_n "(cached) " >&6
7020else
7021 case $MAGIC_CMD in
7022[\\/*] | ?:[\\/]*)
7023 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7024 ;;
7025*)
7026 lt_save_MAGIC_CMD="$MAGIC_CMD"
7027 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7028 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7029 for ac_dir in $ac_dummy; do
7030 IFS="$lt_save_ifs"
7031 test -z "$ac_dir" && ac_dir=.
7032 if test -f $ac_dir/file; then
7033 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7034 if test -n "$file_magic_test_file"; then
7035 case $deplibs_check_method in
7036 "file_magic "*)
7037 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7038 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7039 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7040 $EGREP "$file_magic_regex" > /dev/null; then
7041 :
7042 else
7043 cat <<_LT_EOF 1>&2
7044
7045*** Warning: the command libtool uses to detect shared libraries,
7046*** $file_magic_cmd, produces output that libtool cannot recognize.
7047*** The result is that libtool may fail to recognize shared libraries
7048*** as such. This will affect the creation of libtool libraries that
7049*** depend on shared libraries, but programs linked with such libtool
7050*** libraries will work regardless of this problem. Nevertheless, you
7051*** may want to report the problem to your system manager and/or to
7052*** bug-libtool@gnu.org
7053
7054_LT_EOF
7055 fi ;;
7056 esac
7057 fi
7058 break
7059 fi
7060 done
7061 IFS="$lt_save_ifs"
7062 MAGIC_CMD="$lt_save_MAGIC_CMD"
7063 ;;
7064esac
7065fi
7066
7067MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7068if test -n "$MAGIC_CMD"; then
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7070$as_echo "$MAGIC_CMD" >&6; }
7071else
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7073$as_echo "no" >&6; }
7074fi
7075
7076
7077 else
7078 MAGIC_CMD=:
7079 fi
7080fi
7081
7082 fi
7083 ;;
7084esac
7085
7086# Use C for the default configuration in the libtool script
7087
7088lt_save_CC="$CC"
7089ac_ext=c
7090ac_cpp='$CPP $CPPFLAGS'
7091ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7092ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7093ac_compiler_gnu=$ac_cv_c_compiler_gnu
7094
7095
7096# Source file extension for C test sources.
7097ac_ext=c
7098
7099# Object file extension for compiled C test sources.
7100objext=o
7101objext=$objext
7102
7103# Code to be used in simple compile tests
7104lt_simple_compile_test_code="int some_variable = 0;"
7105
7106# Code to be used in simple link tests
7107lt_simple_link_test_code='int main(){return(0);}'
7108
7109
7110
7111
7112
7113
7114
7115# If no C compiler was specified, use CC.
7116LTCC=${LTCC-"$CC"}
7117
7118# If no C compiler flags were specified, use CFLAGS.
7119LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7120
7121# Allow CC to be a program name with arguments.
7122compiler=$CC
7123
7124# Save the default compiler, since it gets overwritten when the other
7125# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7126compiler_DEFAULT=$CC
7127
7128# save warnings/boilerplate of simple test code
7129ac_outfile=conftest.$ac_objext
7130echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7131eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7132_lt_compiler_boilerplate=`cat conftest.err`
7133$RM conftest*
7134
7135ac_outfile=conftest.$ac_objext
7136echo "$lt_simple_link_test_code" >conftest.$ac_ext
7137eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7138_lt_linker_boilerplate=`cat conftest.err`
7139$RM -r conftest*
7140
7141
7142if test -n "$compiler"; then
7143
7144lt_prog_compiler_no_builtin_flag=
7145
7146if test "$GCC" = yes; then
7147 case $cc_basename in
7148 nvcc*)
7149 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7150 *)
7151 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7152 esac
7153
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7155$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7156if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7157 $as_echo_n "(cached) " >&6
7158else
7159 lt_cv_prog_compiler_rtti_exceptions=no
7160 ac_outfile=conftest.$ac_objext
7161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7162 lt_compiler_flag="-fno-rtti -fno-exceptions"
7163 # Insert the option either (1) after the last *FLAGS variable, or
7164 # (2) before a word containing "conftest.", or (3) at the end.
7165 # Note that $ac_compile itself does not contain backslashes and begins
7166 # with a dollar sign (not a hyphen), so the echo should work correctly.
7167 # The option is referenced via a variable to avoid confusing sed.
7168 lt_compile=`echo "$ac_compile" | $SED \
7169 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7171 -e 's:$: $lt_compiler_flag:'`
7172 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7173 (eval "$lt_compile" 2>conftest.err)
7174 ac_status=$?
7175 cat conftest.err >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 if (exit $ac_status) && test -s "$ac_outfile"; then
7178 # The compiler can only warn and ignore the option if not recognized
7179 # So say no if there are warnings other than the usual output.
7180 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7182 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7183 lt_cv_prog_compiler_rtti_exceptions=yes
7184 fi
7185 fi
7186 $RM conftest*
7187
7188fi
7189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7190$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7191
7192if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7193 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7194else
7195 :
7196fi
7197
7198fi
7199
7200
7201
7202
7203
7204
7205 lt_prog_compiler_wl=
7206lt_prog_compiler_pic=
7207lt_prog_compiler_static=
7208
7209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7210$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7211
7212 if test "$GCC" = yes; then
7213 lt_prog_compiler_wl='-Wl,'
7214 lt_prog_compiler_static='-static'
7215
7216 case $host_os in
7217 aix*)
7218 # All AIX code is PIC.
7219 if test "$host_cpu" = ia64; then
7220 # AIX 5 now supports IA64 processor
7221 lt_prog_compiler_static='-Bstatic'
7222 fi
7223 ;;
7224
7225 amigaos*)
7226 case $host_cpu in
7227 powerpc)
7228 # see comment about AmigaOS4 .so support
7229 lt_prog_compiler_pic='-fPIC'
7230 ;;
7231 m68k)
7232 # FIXME: we need at least 68020 code to build shared libraries, but
7233 # adding the `-m68020' flag to GCC prevents building anything better,
7234 # like `-m68040'.
7235 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7236 ;;
7237 esac
7238 ;;
7239
7240 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7241 # PIC is the default for these OSes.
7242 ;;
7243
7244 mingw* | cygwin* | pw32* | os2* | cegcc*)
7245 # This hack is so that the source file can tell whether it is being
7246 # built for inclusion in a dll (and should export symbols for example).
7247 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7248 # (--disable-auto-import) libraries
7249 lt_prog_compiler_pic='-DDLL_EXPORT'
7250 ;;
7251
7252 darwin* | rhapsody*)
7253 # PIC is the default on this platform
7254 # Common symbols not allowed in MH_DYLIB files
7255 lt_prog_compiler_pic='-fno-common'
7256 ;;
7257
7258 haiku*)
7259 # PIC is the default for Haiku.
7260 # The "-static" flag exists, but is broken.
7261 lt_prog_compiler_static=
7262 ;;
7263
7264 hpux*)
7265 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7266 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7267 # sets the default TLS model and affects inlining.
7268 case $host_cpu in
7269 hppa*64*)
7270 # +Z the default
7271 ;;
7272 *)
7273 lt_prog_compiler_pic='-fPIC'
7274 ;;
7275 esac
7276 ;;
7277
7278 interix[3-9]*)
7279 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7280 # Instead, we relocate shared libraries at runtime.
7281 ;;
7282
7283 msdosdjgpp*)
7284 # Just because we use GCC doesn't mean we suddenly get shared libraries
7285 # on systems that don't support them.
7286 lt_prog_compiler_can_build_shared=no
7287 enable_shared=no
7288 ;;
7289
7290 *nto* | *qnx*)
7291 # QNX uses GNU C++, but need to define -shared option too, otherwise
7292 # it will coredump.
7293 lt_prog_compiler_pic='-fPIC -shared'
7294 ;;
7295
7296 sysv4*MP*)
7297 if test -d /usr/nec; then
7298 lt_prog_compiler_pic=-Kconform_pic
7299 fi
7300 ;;
7301
7302 *)
7303 lt_prog_compiler_pic='-fPIC'
7304 ;;
7305 esac
7306
7307 case $cc_basename in
7308 nvcc*) # Cuda Compiler Driver 2.2
7309 lt_prog_compiler_wl='-Xlinker '
7310 lt_prog_compiler_pic='-Xcompiler -fPIC'
7311 ;;
7312 esac
7313 else
7314 # PORTME Check for flag to pass linker flags through the system compiler.
7315 case $host_os in
7316 aix*)
7317 lt_prog_compiler_wl='-Wl,'
7318 if test "$host_cpu" = ia64; then
7319 # AIX 5 now supports IA64 processor
7320 lt_prog_compiler_static='-Bstatic'
7321 else
7322 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7323 fi
7324 ;;
7325
7326 mingw* | cygwin* | pw32* | os2* | cegcc*)
7327 # This hack is so that the source file can tell whether it is being
7328 # built for inclusion in a dll (and should export symbols for example).
7329 lt_prog_compiler_pic='-DDLL_EXPORT'
7330 ;;
7331
7332 hpux9* | hpux10* | hpux11*)
7333 lt_prog_compiler_wl='-Wl,'
7334 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7335 # not for PA HP-UX.
7336 case $host_cpu in
7337 hppa*64*|ia64*)
7338 # +Z the default
7339 ;;
7340 *)
7341 lt_prog_compiler_pic='+Z'
7342 ;;
7343 esac
7344 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7345 lt_prog_compiler_static='${wl}-a ${wl}archive'
7346 ;;
7347
7348 irix5* | irix6* | nonstopux*)
7349 lt_prog_compiler_wl='-Wl,'
7350 # PIC (with -KPIC) is the default.
7351 lt_prog_compiler_static='-non_shared'
7352 ;;
7353
7354 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7355 case $cc_basename in
7356 # old Intel for x86_64 which still supported -KPIC.
7357 ecc*)
7358 lt_prog_compiler_wl='-Wl,'
7359 lt_prog_compiler_pic='-KPIC'
7360 lt_prog_compiler_static='-static'
7361 ;;
7362 # icc used to be incompatible with GCC.
7363 # ICC 10 doesn't accept -KPIC any more.
7364 icc* | ifort*)
7365 lt_prog_compiler_wl='-Wl,'
7366 lt_prog_compiler_pic='-fPIC'
7367 lt_prog_compiler_static='-static'
7368 ;;
7369 # Lahey Fortran 8.1.
7370 lf95*)
7371 lt_prog_compiler_wl='-Wl,'
7372 lt_prog_compiler_pic='--shared'
7373 lt_prog_compiler_static='--static'
7374 ;;
7375 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7376 # Portland Group compilers (*not* the Pentium gcc compiler,
7377 # which looks to be a dead project)
7378 lt_prog_compiler_wl='-Wl,'
7379 lt_prog_compiler_pic='-fpic'
7380 lt_prog_compiler_static='-Bstatic'
7381 ;;
7382 ccc*)
7383 lt_prog_compiler_wl='-Wl,'
7384 # All Alpha code is PIC.
7385 lt_prog_compiler_static='-non_shared'
7386 ;;
7387 xl* | bgxl* | bgf* | mpixl*)
7388 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7389 lt_prog_compiler_wl='-Wl,'
7390 lt_prog_compiler_pic='-qpic'
7391 lt_prog_compiler_static='-qstaticlink'
7392 ;;
7393 *)
7394 case `$CC -V 2>&1 | sed 5q` in
7395 *Sun\ F* | *Sun*Fortran*)
7396 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7397 lt_prog_compiler_pic='-KPIC'
7398 lt_prog_compiler_static='-Bstatic'
7399 lt_prog_compiler_wl=''
7400 ;;
7401 *Sun\ C*)
7402 # Sun C 5.9
7403 lt_prog_compiler_pic='-KPIC'
7404 lt_prog_compiler_static='-Bstatic'
7405 lt_prog_compiler_wl='-Wl,'
7406 ;;
7407 esac
7408 ;;
7409 esac
7410 ;;
7411
7412 newsos6)
7413 lt_prog_compiler_pic='-KPIC'
7414 lt_prog_compiler_static='-Bstatic'
7415 ;;
7416
7417 *nto* | *qnx*)
7418 # QNX uses GNU C++, but need to define -shared option too, otherwise
7419 # it will coredump.
7420 lt_prog_compiler_pic='-fPIC -shared'
7421 ;;
7422
7423 osf3* | osf4* | osf5*)
7424 lt_prog_compiler_wl='-Wl,'
7425 # All OSF/1 code is PIC.
7426 lt_prog_compiler_static='-non_shared'
7427 ;;
7428
7429 rdos*)
7430 lt_prog_compiler_static='-non_shared'
7431 ;;
7432
7433 solaris*)
7434 lt_prog_compiler_pic='-KPIC'
7435 lt_prog_compiler_static='-Bstatic'
7436 case $cc_basename in
7437 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
7438 lt_prog_compiler_wl='-Qoption ld ';;
7439 *)
7440 lt_prog_compiler_wl='-Wl,';;
7441 esac
7442 ;;
7443
7444 sunos4*)
7445 lt_prog_compiler_wl='-Qoption ld '
7446 lt_prog_compiler_pic='-PIC'
7447 lt_prog_compiler_static='-Bstatic'
7448 ;;
7449
7450 sysv4 | sysv4.2uw2* | sysv4.3*)
7451 lt_prog_compiler_wl='-Wl,'
7452 lt_prog_compiler_pic='-KPIC'
7453 lt_prog_compiler_static='-Bstatic'
7454 ;;
7455
7456 sysv4*MP*)
7457 if test -d /usr/nec ;then
7458 lt_prog_compiler_pic='-Kconform_pic'
7459 lt_prog_compiler_static='-Bstatic'
7460 fi
7461 ;;
7462
7463 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7464 lt_prog_compiler_wl='-Wl,'
7465 lt_prog_compiler_pic='-KPIC'
7466 lt_prog_compiler_static='-Bstatic'
7467 ;;
7468
7469 unicos*)
7470 lt_prog_compiler_wl='-Wl,'
7471 lt_prog_compiler_can_build_shared=no
7472 ;;
7473
7474 uts4*)
7475 lt_prog_compiler_pic='-pic'
7476 lt_prog_compiler_static='-Bstatic'
7477 ;;
7478
7479 *)
7480 lt_prog_compiler_can_build_shared=no
7481 ;;
7482 esac
7483 fi
7484
7485case $host_os in
7486 # For platforms which do not support PIC, -DPIC is meaningless:
7487 *djgpp*)
7488 lt_prog_compiler_pic=
7489 ;;
7490 *)
7491 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7492 ;;
7493esac
7494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7495$as_echo "$lt_prog_compiler_pic" >&6; }
7496
7497
7498
7499
7500
7501
7502#
7503# Check to make sure the PIC flag actually works.
7504#
7505if test -n "$lt_prog_compiler_pic"; then
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7507$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7508if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7509 $as_echo_n "(cached) " >&6
7510else
7511 lt_cv_prog_compiler_pic_works=no
7512 ac_outfile=conftest.$ac_objext
7513 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7514 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7515 # Insert the option either (1) after the last *FLAGS variable, or
7516 # (2) before a word containing "conftest.", or (3) at the end.
7517 # Note that $ac_compile itself does not contain backslashes and begins
7518 # with a dollar sign (not a hyphen), so the echo should work correctly.
7519 # The option is referenced via a variable to avoid confusing sed.
7520 lt_compile=`echo "$ac_compile" | $SED \
7521 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7523 -e 's:$: $lt_compiler_flag:'`
7524 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7525 (eval "$lt_compile" 2>conftest.err)
7526 ac_status=$?
7527 cat conftest.err >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 if (exit $ac_status) && test -s "$ac_outfile"; then
7530 # The compiler can only warn and ignore the option if not recognized
7531 # So say no if there are warnings other than the usual output.
7532 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7534 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7535 lt_cv_prog_compiler_pic_works=yes
7536 fi
7537 fi
7538 $RM conftest*
7539
7540fi
7541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7542$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7543
7544if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7545 case $lt_prog_compiler_pic in
7546 "" | " "*) ;;
7547 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7548 esac
7549else
7550 lt_prog_compiler_pic=
7551 lt_prog_compiler_can_build_shared=no
7552fi
7553
7554fi
7555
7556
7557
7558
7559
7560
7561#
7562# Check to make sure the static flag actually works.
7563#
7564wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7566$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7567if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7568 $as_echo_n "(cached) " >&6
7569else
7570 lt_cv_prog_compiler_static_works=no
7571 save_LDFLAGS="$LDFLAGS"
7572 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7573 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7574 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7575 # The linker can only warn and ignore the option if not recognized
7576 # So say no if there are warnings
7577 if test -s conftest.err; then
7578 # Append any errors to the config.log.
7579 cat conftest.err 1>&5
7580 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
7581 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7582 if diff conftest.exp conftest.er2 >/dev/null; then
7583 lt_cv_prog_compiler_static_works=yes
7584 fi
7585 else
7586 lt_cv_prog_compiler_static_works=yes
7587 fi
7588 fi
7589 $RM -r conftest*
7590 LDFLAGS="$save_LDFLAGS"
7591
7592fi
7593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7594$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7595
7596if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7597 :
7598else
7599 lt_prog_compiler_static=
7600fi
7601
7602
7603
7604
7605
7606
7607
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7609$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7610if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7611 $as_echo_n "(cached) " >&6
7612else
7613 lt_cv_prog_compiler_c_o=no
7614 $RM -r conftest 2>/dev/null
7615 mkdir conftest
7616 cd conftest
7617 mkdir out
7618 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7619
7620 lt_compiler_flag="-o out/conftest2.$ac_objext"
7621 # Insert the option either (1) after the last *FLAGS variable, or
7622 # (2) before a word containing "conftest.", or (3) at the end.
7623 # Note that $ac_compile itself does not contain backslashes and begins
7624 # with a dollar sign (not a hyphen), so the echo should work correctly.
7625 lt_compile=`echo "$ac_compile" | $SED \
7626 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7627 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7628 -e 's:$: $lt_compiler_flag:'`
7629 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7630 (eval "$lt_compile" 2>out/conftest.err)
7631 ac_status=$?
7632 cat out/conftest.err >&5
7633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7635 then
7636 # The compiler can only warn and ignore the option if not recognized
7637 # So say no if there are warnings
7638 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7639 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7640 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7641 lt_cv_prog_compiler_c_o=yes
7642 fi
7643 fi
7644 chmod u+w . 2>&5
7645 $RM conftest*
7646 # SGI C++ compiler will create directory out/ii_files/ for
7647 # template instantiation
7648 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7649 $RM out/* && rmdir out
7650 cd ..
7651 $RM -r conftest
7652 $RM conftest*
7653
7654fi
7655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7656$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7657
7658
7659
7660
7661
7662
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7664$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7665if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7666 $as_echo_n "(cached) " >&6
7667else
7668 lt_cv_prog_compiler_c_o=no
7669 $RM -r conftest 2>/dev/null
7670 mkdir conftest
7671 cd conftest
7672 mkdir out
7673 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7674
7675 lt_compiler_flag="-o out/conftest2.$ac_objext"
7676 # Insert the option either (1) after the last *FLAGS variable, or
7677 # (2) before a word containing "conftest.", or (3) at the end.
7678 # Note that $ac_compile itself does not contain backslashes and begins
7679 # with a dollar sign (not a hyphen), so the echo should work correctly.
7680 lt_compile=`echo "$ac_compile" | $SED \
7681 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7682 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7683 -e 's:$: $lt_compiler_flag:'`
7684 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7685 (eval "$lt_compile" 2>out/conftest.err)
7686 ac_status=$?
7687 cat out/conftest.err >&5
7688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7690 then
7691 # The compiler can only warn and ignore the option if not recognized
7692 # So say no if there are warnings
7693 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
7694 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7695 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7696 lt_cv_prog_compiler_c_o=yes
7697 fi
7698 fi
7699 chmod u+w . 2>&5
7700 $RM conftest*
7701 # SGI C++ compiler will create directory out/ii_files/ for
7702 # template instantiation
7703 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7704 $RM out/* && rmdir out
7705 cd ..
7706 $RM -r conftest
7707 $RM conftest*
7708
7709fi
7710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7711$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7712
7713
7714
7715
7716hard_links="nottested"
7717if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7718 # do not overwrite the value of need_locks provided by the user
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7720$as_echo_n "checking if we can lock with hard links... " >&6; }
7721 hard_links=yes
7722 $RM conftest*
7723 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7724 touch conftest.a
7725 ln conftest.a conftest.b 2>&5 || hard_links=no
7726 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7728$as_echo "$hard_links" >&6; }
7729 if test "$hard_links" = no; then
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7731$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7732 need_locks=warn
7733 fi
7734else
7735 need_locks=no
7736fi
7737
7738
7739
7740
7741
7742
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7744$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7745
7746 runpath_var=
7747 allow_undefined_flag=
7748 always_export_symbols=no
7749 archive_cmds=
7750 archive_expsym_cmds=
7751 compiler_needs_object=no
7752 enable_shared_with_static_runtimes=no
7753 export_dynamic_flag_spec=
7754 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7755 hardcode_automatic=no
7756 hardcode_direct=no
7757 hardcode_direct_absolute=no
7758 hardcode_libdir_flag_spec=
7759 hardcode_libdir_flag_spec_ld=
7760 hardcode_libdir_separator=
7761 hardcode_minus_L=no
7762 hardcode_shlibpath_var=unsupported
7763 inherit_rpath=no
7764 link_all_deplibs=unknown
7765 module_cmds=
7766 module_expsym_cmds=
7767 old_archive_from_new_cmds=
7768 old_archive_from_expsyms_cmds=
7769 thread_safe_flag_spec=
7770 whole_archive_flag_spec=
7771 # include_expsyms should be a list of space-separated symbols to be *always*
7772 # included in the symbol list
7773 include_expsyms=
7774 # exclude_expsyms can be an extended regexp of symbols to exclude
7775 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7776 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7777 # as well as any symbol that contains `d'.
7778 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7779 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7780 # platforms (ab)use it in PIC code, but their linkers get confused if
7781 # the symbol is explicitly referenced. Since portable code cannot
7782 # rely on this symbol name, it's probably fine to never include it in
7783 # preloaded symbol tables.
7784 # Exclude shared library initialization/finalization symbols.
7785 extract_expsyms_cmds=
7786
7787 case $host_os in
7788 cygwin* | mingw* | pw32* | cegcc*)
7789 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7790 # When not using gcc, we currently assume that we are using
7791 # Microsoft Visual C++.
7792 if test "$GCC" != yes; then
7793 with_gnu_ld=no
7794 fi
7795 ;;
7796 interix*)
7797 # we just hope/assume this is gcc and not c89 (= MSVC++)
7798 with_gnu_ld=yes
7799 ;;
7800 openbsd*)
7801 with_gnu_ld=no
7802 ;;
7803 esac
7804
7805 ld_shlibs=yes
7806
7807 # On some targets, GNU ld is compatible enough with the native linker
7808 # that we're better off using the native interface for both.
7809 lt_use_gnu_ld_interface=no
7810 if test "$with_gnu_ld" = yes; then
7811 case $host_os in
7812 aix*)
7813 # The AIX port of GNU ld has always aspired to compatibility
7814 # with the native linker. However, as the warning in the GNU ld
7815 # block says, versions before 2.19.5* couldn't really create working
7816 # shared libraries, regardless of the interface used.
7817 case `$LD -v 2>&1` in
7818 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
7819 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
7820 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
7821 *)
7822 lt_use_gnu_ld_interface=yes
7823 ;;
7824 esac
7825 ;;
7826 *)
7827 lt_use_gnu_ld_interface=yes
7828 ;;
7829 esac
7830 fi
7831
7832 if test "$lt_use_gnu_ld_interface" = yes; then
7833 # If archive_cmds runs LD, not CC, wlarc should be empty
7834 wlarc='${wl}'
7835
7836 # Set some defaults for GNU ld with shared library support. These
7837 # are reset later if shared libraries are not supported. Putting them
7838 # here allows them to be overridden if necessary.
7839 runpath_var=LD_RUN_PATH
7840 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7841 export_dynamic_flag_spec='${wl}--export-dynamic'
7842 # ancient GNU ld didn't support --whole-archive et. al.
7843 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7844 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7845 else
7846 whole_archive_flag_spec=
7847 fi
7848 supports_anon_versioning=no
7849 case `$LD -v 2>&1` in
7850 *GNU\ gold*) supports_anon_versioning=yes ;;
7851 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7852 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7853 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7854 *\ 2.11.*) ;; # other 2.11 versions
7855 *) supports_anon_versioning=yes ;;
7856 esac
7857
7858 # See if GNU ld supports shared libraries.
7859 case $host_os in
7860 aix[3-9]*)
7861 # On AIX/PPC, the GNU linker is very broken
7862 if test "$host_cpu" != ia64; then
7863 ld_shlibs=no
7864 cat <<_LT_EOF 1>&2
7865
7866*** Warning: the GNU linker, at least up to release 2.19, is reported
7867*** to be unable to reliably create shared libraries on AIX.
7868*** Therefore, libtool is disabling shared libraries support. If you
7869*** really care for shared libraries, you may want to install binutils
7870*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
7871*** You will then need to restart the configuration process.
7872
7873_LT_EOF
7874 fi
7875 ;;
7876
7877 amigaos*)
7878 case $host_cpu in
7879 powerpc)
7880 # see comment about AmigaOS4 .so support
7881 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7882 archive_expsym_cmds=''
7883 ;;
7884 m68k)
7885 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)'
7886 hardcode_libdir_flag_spec='-L$libdir'
7887 hardcode_minus_L=yes
7888 ;;
7889 esac
7890 ;;
7891
7892 beos*)
7893 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
7894 allow_undefined_flag=unsupported
7895 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7896 # support --undefined. This deserves some investigation. FIXME
7897 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7898 else
7899 ld_shlibs=no
7900 fi
7901 ;;
7902
7903 cygwin* | mingw* | pw32* | cegcc*)
7904 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7905 # as there is no search path for DLLs.
7906 hardcode_libdir_flag_spec='-L$libdir'
7907 export_dynamic_flag_spec='${wl}--export-all-symbols'
7908 allow_undefined_flag=unsupported
7909 always_export_symbols=no
7910 enable_shared_with_static_runtimes=yes
7911 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7912
7913 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
7914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7915 # If the export-symbols file already is a .def file (1st line
7916 # is EXPORTS), use it as is; otherwise, prepend...
7917 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7918 cp $export_symbols $output_objdir/$soname.def;
7919 else
7920 echo EXPORTS > $output_objdir/$soname.def;
7921 cat $export_symbols >> $output_objdir/$soname.def;
7922 fi~
7923 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7924 else
7925 ld_shlibs=no
7926 fi
7927 ;;
7928
7929 haiku*)
7930 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7931 link_all_deplibs=yes
7932 ;;
7933
7934 interix[3-9]*)
7935 hardcode_direct=no
7936 hardcode_shlibpath_var=no
7937 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7938 export_dynamic_flag_spec='${wl}-E'
7939 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7940 # Instead, shared libraries are loaded at an image base (0x10000000 by
7941 # default) and relocated if they conflict, which is a slow very memory
7942 # consuming and fragmenting process. To avoid this, we pick a random,
7943 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7944 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7945 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7946 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'
7947 ;;
7948
7949 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
7950 tmp_diet=no
7951 if test "$host_os" = linux-dietlibc; then
7952 case $cc_basename in
7953 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
7954 esac
7955 fi
7956 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
7957 && test "$tmp_diet" = no
7958 then
7959 tmp_addflag=
7960 tmp_sharedflag='-shared'
7961 case $cc_basename,$host_cpu in
7962 pgcc*) # Portland Group C compiler
7963 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'
7964 tmp_addflag=' $pic_flag'
7965 ;;
7966 pgf77* | pgf90* | pgf95* | pgfortran*)
7967 # Portland Group f77 and f90 compilers
7968 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'
7969 tmp_addflag=' $pic_flag -Mnomain' ;;
7970 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7971 tmp_addflag=' -i_dynamic' ;;
7972 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7973 tmp_addflag=' -i_dynamic -nofor_main' ;;
7974 ifc* | ifort*) # Intel Fortran compiler
7975 tmp_addflag=' -nofor_main' ;;
7976 lf95*) # Lahey Fortran 8.1
7977 whole_archive_flag_spec=
7978 tmp_sharedflag='--shared' ;;
7979 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
7980 tmp_sharedflag='-qmkshrobj'
7981 tmp_addflag= ;;
7982 nvcc*) # Cuda Compiler Driver 2.2
7983 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'
7984 compiler_needs_object=yes
7985 ;;
7986 esac
7987 case `$CC -V 2>&1 | sed 5q` in
7988 *Sun\ C*) # Sun C 5.9
7989 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'
7990 compiler_needs_object=yes
7991 tmp_sharedflag='-G' ;;
7992 *Sun\ F*) # Sun Fortran 8.3
7993 tmp_sharedflag='-G' ;;
7994 esac
7995 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7996
7997 if test "x$supports_anon_versioning" = xyes; then
7998 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
7999 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8000 echo "local: *; };" >> $output_objdir/$libname.ver~
8001 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8002 fi
8003
8004 case $cc_basename in
8005 xlf* | bgf* | bgxlf* | mpixlf*)
8006 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8007 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8008 hardcode_libdir_flag_spec=
8009 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8010 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8011 if test "x$supports_anon_versioning" = xyes; then
8012 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8013 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8014 echo "local: *; };" >> $output_objdir/$libname.ver~
8015 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8016 fi
8017 ;;
8018 esac
8019 else
8020 ld_shlibs=no
8021 fi
8022 ;;
8023
8024 netbsd*)
8025 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8026 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8027 wlarc=
8028 else
8029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8030 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8031 fi
8032 ;;
8033
8034 solaris*)
8035 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8036 ld_shlibs=no
8037 cat <<_LT_EOF 1>&2
8038
8039*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8040*** create shared libraries on Solaris systems. Therefore, libtool
8041*** is disabling shared libraries support. We urge you to upgrade GNU
8042*** binutils to release 2.9.1 or newer. Another option is to modify
8043*** your PATH or compiler configuration so that the native linker is
8044*** used, and then restart.
8045
8046_LT_EOF
8047 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8048 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8049 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8050 else
8051 ld_shlibs=no
8052 fi
8053 ;;
8054
8055 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8056 case `$LD -v 2>&1` in
8057 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8058 ld_shlibs=no
8059 cat <<_LT_EOF 1>&2
8060
8061*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8062*** reliably create shared libraries on SCO systems. Therefore, libtool
8063*** is disabling shared libraries support. We urge you to upgrade GNU
8064*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8065*** your PATH or compiler configuration so that the native linker is
8066*** used, and then restart.
8067
8068_LT_EOF
8069 ;;
8070 *)
8071 # For security reasons, it is highly recommended that you always
8072 # use absolute paths for naming shared libraries, and exclude the
8073 # DT_RUNPATH tag from executables and libraries. But doing so
8074 # requires that you compile everything twice, which is a pain.
8075 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8076 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8077 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8078 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8079 else
8080 ld_shlibs=no
8081 fi
8082 ;;
8083 esac
8084 ;;
8085
8086 sunos4*)
8087 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8088 wlarc=
8089 hardcode_direct=yes
8090 hardcode_shlibpath_var=no
8091 ;;
8092
8093 *)
8094 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8095 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8096 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8097 else
8098 ld_shlibs=no
8099 fi
8100 ;;
8101 esac
8102
8103 if test "$ld_shlibs" = no; then
8104 runpath_var=
8105 hardcode_libdir_flag_spec=
8106 export_dynamic_flag_spec=
8107 whole_archive_flag_spec=
8108 fi
8109 else
8110 # PORTME fill in a description of your system's linker (not GNU ld)
8111 case $host_os in
8112 aix3*)
8113 allow_undefined_flag=unsupported
8114 always_export_symbols=yes
8115 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'
8116 # Note: this linker hardcodes the directories in LIBPATH if there
8117 # are no directories specified by -L.
8118 hardcode_minus_L=yes
8119 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8120 # Neither direct hardcoding nor static linking is supported with a
8121 # broken collect2.
8122 hardcode_direct=unsupported
8123 fi
8124 ;;
8125
8126 aix[4-9]*)
8127 if test "$host_cpu" = ia64; then
8128 # On IA64, the linker does run time linking by default, so we don't
8129 # have to do anything special.
8130 aix_use_runtimelinking=no
8131 exp_sym_flag='-Bexport'
8132 no_entry_flag=""
8133 else
8134 # If we're using GNU nm, then we don't want the "-C" option.
8135 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8136 # Also, AIX nm treats weak defined symbols like other global
8137 # defined symbols, whereas GNU nm marks them as "W".
8138 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8139 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8140 else
8141 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8142 fi
8143 aix_use_runtimelinking=no
8144
8145 # Test if we are trying to use run time linking or normal
8146 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8147 # need to do runtime linking.
8148 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8149 for ld_flag in $LDFLAGS; do
8150 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8151 aix_use_runtimelinking=yes
8152 break
8153 fi
8154 done
8155 ;;
8156 esac
8157
8158 exp_sym_flag='-bexport'
8159 no_entry_flag='-bnoentry'
8160 fi
8161
8162 # When large executables or shared objects are built, AIX ld can
8163 # have problems creating the table of contents. If linking a library
8164 # or program results in "error TOC overflow" add -mminimal-toc to
8165 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8166 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8167
8168 archive_cmds=''
8169 hardcode_direct=yes
8170 hardcode_direct_absolute=yes
8171 hardcode_libdir_separator=':'
8172 link_all_deplibs=yes
8173 file_list_spec='${wl}-f,'
8174
8175 if test "$GCC" = yes; then
8176 case $host_os in aix4.[012]|aix4.[012].*)
8177 # We only want to do this on AIX 4.2 and lower, the check
8178 # below for broken collect2 doesn't work under 4.3+
8179 collect2name=`${CC} -print-prog-name=collect2`
8180 if test -f "$collect2name" &&
8181 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8182 then
8183 # We have reworked collect2
8184 :
8185 else
8186 # We have old collect2
8187 hardcode_direct=unsupported
8188 # It fails to find uninstalled libraries when the uninstalled
8189 # path is not listed in the libpath. Setting hardcode_minus_L
8190 # to unsupported forces relinking
8191 hardcode_minus_L=yes
8192 hardcode_libdir_flag_spec='-L$libdir'
8193 hardcode_libdir_separator=
8194 fi
8195 ;;
8196 esac
8197 shared_flag='-shared'
8198 if test "$aix_use_runtimelinking" = yes; then
8199 shared_flag="$shared_flag "'${wl}-G'
8200 fi
8201 else
8202 # not using gcc
8203 if test "$host_cpu" = ia64; then
8204 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8205 # chokes on -Wl,-G. The following line is correct:
8206 shared_flag='-G'
8207 else
8208 if test "$aix_use_runtimelinking" = yes; then
8209 shared_flag='${wl}-G'
8210 else
8211 shared_flag='${wl}-bM:SRE'
8212 fi
8213 fi
8214 fi
8215
8216 export_dynamic_flag_spec='${wl}-bexpall'
8217 # It seems that -bexpall does not export symbols beginning with
8218 # underscore (_), so it is better to generate a list of symbols to export.
8219 always_export_symbols=yes
8220 if test "$aix_use_runtimelinking" = yes; then
8221 # Warning - without using the other runtime loading flags (-brtl),
8222 # -berok will link without error, but may produce a broken library.
8223 allow_undefined_flag='-berok'
8224 # Determine the default libpath from the value encoded in an
8225 # empty executable.
8226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8227/* end confdefs.h. */
8228
8229int
8230main ()
8231{
8232
8233 ;
8234 return 0;
8235}
8236_ACEOF
8237if ac_fn_c_try_link "$LINENO"; then :
8238
8239lt_aix_libpath_sed='
8240 /Import File Strings/,/^$/ {
8241 /^0/ {
8242 s/^0 *\(.*\)$/\1/
8243 p
8244 }
8245 }'
8246aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8247# Check for a 64-bit object if we didn't find anything.
8248if test -z "$aix_libpath"; then
8249 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8250fi
8251fi
8252rm -f core conftest.err conftest.$ac_objext \
8253 conftest$ac_exeext conftest.$ac_ext
8254if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8255
8256 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8257 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8258 else
8259 if test "$host_cpu" = ia64; then
8260 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8261 allow_undefined_flag="-z nodefs"
8262 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"
8263 else
8264 # Determine the default libpath from the value encoded in an
8265 # empty executable.
8266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267/* end confdefs.h. */
8268
8269int
8270main ()
8271{
8272
8273 ;
8274 return 0;
8275}
8276_ACEOF
8277if ac_fn_c_try_link "$LINENO"; then :
8278
8279lt_aix_libpath_sed='
8280 /Import File Strings/,/^$/ {
8281 /^0/ {
8282 s/^0 *\(.*\)$/\1/
8283 p
8284 }
8285 }'
8286aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8287# Check for a 64-bit object if we didn't find anything.
8288if test -z "$aix_libpath"; then
8289 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8290fi
8291fi
8292rm -f core conftest.err conftest.$ac_objext \
8293 conftest$ac_exeext conftest.$ac_ext
8294if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8295
8296 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8297 # Warning - without using the other run time loading flags,
8298 # -berok will link without error, but may produce a broken library.
8299 no_undefined_flag=' ${wl}-bernotok'
8300 allow_undefined_flag=' ${wl}-berok'
8301 if test "$with_gnu_ld" = yes; then
8302 # We only use this code for GNU lds that support --whole-archive.
8303 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8304 else
8305 # Exported symbols can be pulled into shared objects from archives
8306 whole_archive_flag_spec='$convenience'
8307 fi
8308 archive_cmds_need_lc=yes
8309 # This is similar to how AIX traditionally builds its shared libraries.
8310 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8311 fi
8312 fi
8313 ;;
8314
8315 amigaos*)
8316 case $host_cpu in
8317 powerpc)
8318 # see comment about AmigaOS4 .so support
8319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8320 archive_expsym_cmds=''
8321 ;;
8322 m68k)
8323 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)'
8324 hardcode_libdir_flag_spec='-L$libdir'
8325 hardcode_minus_L=yes
8326 ;;
8327 esac
8328 ;;
8329
8330 bsdi[45]*)
8331 export_dynamic_flag_spec=-rdynamic
8332 ;;
8333
8334 cygwin* | mingw* | pw32* | cegcc*)
8335 # When not using gcc, we currently assume that we are using
8336 # Microsoft Visual C++.
8337 # hardcode_libdir_flag_spec is actually meaningless, as there is
8338 # no search path for DLLs.
8339 hardcode_libdir_flag_spec=' '
8340 allow_undefined_flag=unsupported
8341 # Tell ltmain to make .lib files, not .a files.
8342 libext=lib
8343 # Tell ltmain to make .dll files, not .so files.
8344 shrext_cmds=".dll"
8345 # FIXME: Setting linknames here is a bad hack.
8346 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8347 # The linker will automatically build a .lib file if we build a DLL.
8348 old_archive_from_new_cmds='true'
8349 # FIXME: Should let the user specify the lib program.
8350 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8351 fix_srcfile_path='`cygpath -w "$srcfile"`'
8352 enable_shared_with_static_runtimes=yes
8353 ;;
8354
8355 darwin* | rhapsody*)
8356
8357
8358 archive_cmds_need_lc=no
8359 hardcode_direct=no
8360 hardcode_automatic=yes
8361 hardcode_shlibpath_var=unsupported
8362 if test "$lt_cv_ld_force_load" = "yes"; then
8363 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\"`'
8364 else
8365 whole_archive_flag_spec=''
8366 fi
8367 link_all_deplibs=yes
8368 allow_undefined_flag="$_lt_dar_allow_undefined"
8369 case $cc_basename in
8370 ifort*) _lt_dar_can_shared=yes ;;
8371 *) _lt_dar_can_shared=$GCC ;;
8372 esac
8373 if test "$_lt_dar_can_shared" = "yes"; then
8374 output_verbose_link_cmd=func_echo_all
8375 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8376 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8377 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}"
8378 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}"
8379
8380 else
8381 ld_shlibs=no
8382 fi
8383
8384 ;;
8385
8386 dgux*)
8387 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8388 hardcode_libdir_flag_spec='-L$libdir'
8389 hardcode_shlibpath_var=no
8390 ;;
8391
8392 freebsd1*)
8393 ld_shlibs=no
8394 ;;
8395
8396 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8397 # support. Future versions do this automatically, but an explicit c++rt0.o
8398 # does not break anything, and helps significantly (at the cost of a little
8399 # extra space).
8400 freebsd2.2*)
8401 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8402 hardcode_libdir_flag_spec='-R$libdir'
8403 hardcode_direct=yes
8404 hardcode_shlibpath_var=no
8405 ;;
8406
8407 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8408 freebsd2*)
8409 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8410 hardcode_direct=yes
8411 hardcode_minus_L=yes
8412 hardcode_shlibpath_var=no
8413 ;;
8414
8415 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8416 freebsd* | dragonfly*)
8417 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8418 hardcode_libdir_flag_spec='-R$libdir'
8419 hardcode_direct=yes
8420 hardcode_shlibpath_var=no
8421 ;;
8422
8423 hpux9*)
8424 if test "$GCC" = yes; then
8425 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8426 else
8427 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8428 fi
8429 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8430 hardcode_libdir_separator=:
8431 hardcode_direct=yes
8432
8433 # hardcode_minus_L: Not really in the search PATH,
8434 # but as the default location of the library.
8435 hardcode_minus_L=yes
8436 export_dynamic_flag_spec='${wl}-E'
8437 ;;
8438
8439 hpux10*)
8440 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8441 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8442 else
8443 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8444 fi
8445 if test "$with_gnu_ld" = no; then
8446 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8447 hardcode_libdir_flag_spec_ld='+b $libdir'
8448 hardcode_libdir_separator=:
8449 hardcode_direct=yes
8450 hardcode_direct_absolute=yes
8451 export_dynamic_flag_spec='${wl}-E'
8452 # hardcode_minus_L: Not really in the search PATH,
8453 # but as the default location of the library.
8454 hardcode_minus_L=yes
8455 fi
8456 ;;
8457
8458 hpux11*)
8459 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
8460 case $host_cpu in
8461 hppa*64*)
8462 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8463 ;;
8464 ia64*)
8465 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8466 ;;
8467 *)
8468 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8469 ;;
8470 esac
8471 else
8472 case $host_cpu in
8473 hppa*64*)
8474 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8475 ;;
8476 ia64*)
8477 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8478 ;;
8479 *)
8480
8481 # Older versions of the 11.00 compiler do not understand -b yet
8482 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
8484$as_echo_n "checking if $CC understands -b... " >&6; }
8485if test "${lt_cv_prog_compiler__b+set}" = set; then :
8486 $as_echo_n "(cached) " >&6
8487else
8488 lt_cv_prog_compiler__b=no
8489 save_LDFLAGS="$LDFLAGS"
8490 LDFLAGS="$LDFLAGS -b"
8491 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8492 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8493 # The linker can only warn and ignore the option if not recognized
8494 # So say no if there are warnings
8495 if test -s conftest.err; then
8496 # Append any errors to the config.log.
8497 cat conftest.err 1>&5
8498 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8499 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8500 if diff conftest.exp conftest.er2 >/dev/null; then
8501 lt_cv_prog_compiler__b=yes
8502 fi
8503 else
8504 lt_cv_prog_compiler__b=yes
8505 fi
8506 fi
8507 $RM -r conftest*
8508 LDFLAGS="$save_LDFLAGS"
8509
8510fi
8511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
8512$as_echo "$lt_cv_prog_compiler__b" >&6; }
8513
8514if test x"$lt_cv_prog_compiler__b" = xyes; then
8515 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8516else
8517 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8518fi
8519
8520 ;;
8521 esac
8522 fi
8523 if test "$with_gnu_ld" = no; then
8524 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8525 hardcode_libdir_separator=:
8526
8527 case $host_cpu in
8528 hppa*64*|ia64*)
8529 hardcode_direct=no
8530 hardcode_shlibpath_var=no
8531 ;;
8532 *)
8533 hardcode_direct=yes
8534 hardcode_direct_absolute=yes
8535 export_dynamic_flag_spec='${wl}-E'
8536
8537 # hardcode_minus_L: Not really in the search PATH,
8538 # but as the default location of the library.
8539 hardcode_minus_L=yes
8540 ;;
8541 esac
8542 fi
8543 ;;
8544
8545 irix5* | irix6* | nonstopux*)
8546 if test "$GCC" = yes; then
8547 archive_cmds='$CC -shared $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'
8548 # Try to use the -exported_symbol ld option, if it does not
8549 # work, assume that -exports_file does not work either and
8550 # implicitly export all symbols.
8551 save_LDFLAGS="$LDFLAGS"
8552 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8554/* end confdefs.h. */
8555int foo(void) {}
8556_ACEOF
8557if ac_fn_c_try_link "$LINENO"; then :
8558 archive_expsym_cmds='$CC -shared $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'
8559
8560fi
8561rm -f core conftest.err conftest.$ac_objext \
8562 conftest$ac_exeext conftest.$ac_ext
8563 LDFLAGS="$save_LDFLAGS"
8564 else
8565 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'
8566 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'
8567 fi
8568 archive_cmds_need_lc='no'
8569 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8570 hardcode_libdir_separator=:
8571 inherit_rpath=yes
8572 link_all_deplibs=yes
8573 ;;
8574
8575 netbsd*)
8576 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8577 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8578 else
8579 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8580 fi
8581 hardcode_libdir_flag_spec='-R$libdir'
8582 hardcode_direct=yes
8583 hardcode_shlibpath_var=no
8584 ;;
8585
8586 newsos6)
8587 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8588 hardcode_direct=yes
8589 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8590 hardcode_libdir_separator=:
8591 hardcode_shlibpath_var=no
8592 ;;
8593
8594 *nto* | *qnx*)
8595 ;;
8596
8597 openbsd*)
8598 if test -f /usr/libexec/ld.so; then
8599 hardcode_direct=yes
8600 hardcode_shlibpath_var=no
8601 hardcode_direct_absolute=yes
8602 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8603 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8604 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8605 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8606 export_dynamic_flag_spec='${wl}-E'
8607 else
8608 case $host_os in
8609 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8610 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8611 hardcode_libdir_flag_spec='-R$libdir'
8612 ;;
8613 *)
8614 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8615 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8616 ;;
8617 esac
8618 fi
8619 else
8620 ld_shlibs=no
8621 fi
8622 ;;
8623
8624 os2*)
8625 hardcode_libdir_flag_spec='-L$libdir'
8626 hardcode_minus_L=yes
8627 allow_undefined_flag=unsupported
8628 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8629 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8630 ;;
8631
8632 osf3*)
8633 if test "$GCC" = yes; then
8634 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8635 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'
8636 else
8637 allow_undefined_flag=' -expect_unresolved \*'
8638 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'
8639 fi
8640 archive_cmds_need_lc='no'
8641 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8642 hardcode_libdir_separator=:
8643 ;;
8644
8645 osf4* | osf5*) # as osf3* with the addition of -msym flag
8646 if test "$GCC" = yes; then
8647 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8648 archive_cmds='$CC -shared${allow_undefined_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'
8649 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8650 else
8651 allow_undefined_flag=' -expect_unresolved \*'
8652 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'
8653 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~
8654 $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'
8655
8656 # Both c and cxx compiler support -rpath directly
8657 hardcode_libdir_flag_spec='-rpath $libdir'
8658 fi
8659 archive_cmds_need_lc='no'
8660 hardcode_libdir_separator=:
8661 ;;
8662
8663 solaris*)
8664 no_undefined_flag=' -z defs'
8665 if test "$GCC" = yes; then
8666 wlarc='${wl}'
8667 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8668 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8669 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8670 else
8671 case `$CC -V 2>&1` in
8672 *"Compilers 5.0"*)
8673 wlarc=''
8674 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8675 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8676 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8677 ;;
8678 *)
8679 wlarc='${wl}'
8680 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8681 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8682 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8683 ;;
8684 esac
8685 fi
8686 hardcode_libdir_flag_spec='-R$libdir'
8687 hardcode_shlibpath_var=no
8688 case $host_os in
8689 solaris2.[0-5] | solaris2.[0-5].*) ;;
8690 *)
8691 # The compiler driver will combine and reorder linker options,
8692 # but understands `-z linker_flag'. GCC discards it without `$wl',
8693 # but is careful enough not to reorder.
8694 # Supported since Solaris 2.6 (maybe 2.5.1?)
8695 if test "$GCC" = yes; then
8696 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8697 else
8698 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8699 fi
8700 ;;
8701 esac
8702 link_all_deplibs=yes
8703 ;;
8704
8705 sunos4*)
8706 if test "x$host_vendor" = xsequent; then
8707 # Use $CC to link under sequent, because it throws in some extra .o
8708 # files that make .init and .fini sections work.
8709 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8710 else
8711 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8712 fi
8713 hardcode_libdir_flag_spec='-L$libdir'
8714 hardcode_direct=yes
8715 hardcode_minus_L=yes
8716 hardcode_shlibpath_var=no
8717 ;;
8718
8719 sysv4)
8720 case $host_vendor in
8721 sni)
8722 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8723 hardcode_direct=yes # is this really true???
8724 ;;
8725 siemens)
8726 ## LD is ld it makes a PLAMLIB
8727 ## CC just makes a GrossModule.
8728 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8729 reload_cmds='$CC -r -o $output$reload_objs'
8730 hardcode_direct=no
8731 ;;
8732 motorola)
8733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8734 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8735 ;;
8736 esac
8737 runpath_var='LD_RUN_PATH'
8738 hardcode_shlibpath_var=no
8739 ;;
8740
8741 sysv4.3*)
8742 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8743 hardcode_shlibpath_var=no
8744 export_dynamic_flag_spec='-Bexport'
8745 ;;
8746
8747 sysv4*MP*)
8748 if test -d /usr/nec; then
8749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8750 hardcode_shlibpath_var=no
8751 runpath_var=LD_RUN_PATH
8752 hardcode_runpath_var=yes
8753 ld_shlibs=yes
8754 fi
8755 ;;
8756
8757 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8758 no_undefined_flag='${wl}-z,text'
8759 archive_cmds_need_lc=no
8760 hardcode_shlibpath_var=no
8761 runpath_var='LD_RUN_PATH'
8762
8763 if test "$GCC" = yes; then
8764 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8765 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8766 else
8767 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8768 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8769 fi
8770 ;;
8771
8772 sysv5* | sco3.2v5* | sco5v6*)
8773 # Note: We can NOT use -z defs as we might desire, because we do not
8774 # link with -lc, and that would cause any symbols used from libc to
8775 # always be unresolved, which means just about no library would
8776 # ever link correctly. If we're not using GNU ld we use -z text
8777 # though, which does catch some bad symbols but isn't as heavy-handed
8778 # as -z defs.
8779 no_undefined_flag='${wl}-z,text'
8780 allow_undefined_flag='${wl}-z,nodefs'
8781 archive_cmds_need_lc=no
8782 hardcode_shlibpath_var=no
8783 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8784 hardcode_libdir_separator=':'
8785 link_all_deplibs=yes
8786 export_dynamic_flag_spec='${wl}-Bexport'
8787 runpath_var='LD_RUN_PATH'
8788
8789 if test "$GCC" = yes; then
8790 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8791 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8792 else
8793 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8794 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8795 fi
8796 ;;
8797
8798 uts4*)
8799 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8800 hardcode_libdir_flag_spec='-L$libdir'
8801 hardcode_shlibpath_var=no
8802 ;;
8803
8804 *)
8805 ld_shlibs=no
8806 ;;
8807 esac
8808
8809 if test x$host_vendor = xsni; then
8810 case $host in
8811 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8812 export_dynamic_flag_spec='${wl}-Blargedynsym'
8813 ;;
8814 esac
8815 fi
8816 fi
8817
8818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8819$as_echo "$ld_shlibs" >&6; }
8820test "$ld_shlibs" = no && can_build_shared=no
8821
8822with_gnu_ld=$with_gnu_ld
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838#
8839# Do we need to explicitly link libc?
8840#
8841case "x$archive_cmds_need_lc" in
8842x|xyes)
8843 # Assume -lc should be added
8844 archive_cmds_need_lc=yes
8845
8846 if test "$enable_shared" = yes && test "$GCC" = yes; then
8847 case $archive_cmds in
8848 *'~'*)
8849 # FIXME: we may have to deal with multi-command sequences.
8850 ;;
8851 '$CC '*)
8852 # Test whether the compiler implicitly links with -lc since on some
8853 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8854 # to ld, don't add -lc before -lgcc.
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8856$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8857if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
8858 $as_echo_n "(cached) " >&6
8859else
8860 $RM conftest*
8861 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8862
8863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8864 (eval $ac_compile) 2>&5
8865 ac_status=$?
8866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8867 test $ac_status = 0; } 2>conftest.err; then
8868 soname=conftest
8869 lib=conftest
8870 libobjs=conftest.$ac_objext
8871 deplibs=
8872 wl=$lt_prog_compiler_wl
8873 pic_flag=$lt_prog_compiler_pic
8874 compiler_flags=-v
8875 linker_flags=-v
8876 verstring=
8877 output_objdir=.
8878 libname=conftest
8879 lt_save_allow_undefined_flag=$allow_undefined_flag
8880 allow_undefined_flag=
8881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8882 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8883 ac_status=$?
8884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8885 test $ac_status = 0; }
8886 then
8887 lt_cv_archive_cmds_need_lc=no
8888 else
8889 lt_cv_archive_cmds_need_lc=yes
8890 fi
8891 allow_undefined_flag=$lt_save_allow_undefined_flag
8892 else
8893 cat conftest.err 1>&5
8894 fi
8895 $RM conftest*
8896
8897fi
8898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
8899$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
8900 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
8901 ;;
8902 esac
8903 fi
8904 ;;
8905esac
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9064$as_echo_n "checking dynamic linker characteristics... " >&6; }
9065
9066if test "$GCC" = yes; then
9067 case $host_os in
9068 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9069 *) lt_awk_arg="/^libraries:/" ;;
9070 esac
9071 case $host_os in
9072 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9073 *) lt_sed_strip_eq="s,=/,/,g" ;;
9074 esac
9075 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9076 case $lt_search_path_spec in
9077 *\;*)
9078 # if the path contains ";" then we assume it to be the separator
9079 # otherwise default to the standard path separator (i.e. ":") - it is
9080 # assumed that no part of a normal pathname contains ";" but that should
9081 # okay in the real world where ";" in dirpaths is itself problematic.
9082 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9083 ;;
9084 *)
9085 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9086 ;;
9087 esac
9088 # Ok, now we have the path, separated by spaces, we can step through it
9089 # and add multilib dir if necessary.
9090 lt_tmp_lt_search_path_spec=
9091 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9092 for lt_sys_path in $lt_search_path_spec; do
9093 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9094 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9095 else
9096 test -d "$lt_sys_path" && \
9097 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9098 fi
9099 done
9100 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9101BEGIN {RS=" "; FS="/|\n";} {
9102 lt_foo="";
9103 lt_count=0;
9104 for (lt_i = NF; lt_i > 0; lt_i--) {
9105 if ($lt_i != "" && $lt_i != ".") {
9106 if ($lt_i == "..") {
9107 lt_count++;
9108 } else {
9109 if (lt_count == 0) {
9110 lt_foo="/" $lt_i lt_foo;
9111 } else {
9112 lt_count--;
9113 }
9114 }
9115 }
9116 }
9117 if (lt_foo != "") { lt_freq[lt_foo]++; }
9118 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9119}'`
9120 # AWK program above erroneously prepends '/' to C:/dos/paths
9121 # for these hosts.
9122 case $host_os in
9123 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9124 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9125 esac
9126 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9127else
9128 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9129fi
9130library_names_spec=
9131libname_spec='lib$name'
9132soname_spec=
9133shrext_cmds=".so"
9134postinstall_cmds=
9135postuninstall_cmds=
9136finish_cmds=
9137finish_eval=
9138shlibpath_var=
9139shlibpath_overrides_runpath=unknown
9140version_type=none
9141dynamic_linker="$host_os ld.so"
9142sys_lib_dlsearch_path_spec="/lib /usr/lib"
9143need_lib_prefix=unknown
9144hardcode_into_libs=no
9145
9146# when you set need_version to no, make sure it does not cause -set_version
9147# flags to be left without arguments
9148need_version=unknown
9149
9150case $host_os in
9151aix3*)
9152 version_type=linux
9153 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9154 shlibpath_var=LIBPATH
9155
9156 # AIX 3 has no versioning support, so we append a major version to the name.
9157 soname_spec='${libname}${release}${shared_ext}$major'
9158 ;;
9159
9160aix[4-9]*)
9161 version_type=linux
9162 need_lib_prefix=no
9163 need_version=no
9164 hardcode_into_libs=yes
9165 if test "$host_cpu" = ia64; then
9166 # AIX 5 supports IA64
9167 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9168 shlibpath_var=LD_LIBRARY_PATH
9169 else
9170 # With GCC up to 2.95.x, collect2 would create an import file
9171 # for dependence libraries. The import file would start with
9172 # the line `#! .'. This would cause the generated library to
9173 # depend on `.', always an invalid library. This was fixed in
9174 # development snapshots of GCC prior to 3.0.
9175 case $host_os in
9176 aix4 | aix4.[01] | aix4.[01].*)
9177 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9178 echo ' yes '
9179 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9180 :
9181 else
9182 can_build_shared=no
9183 fi
9184 ;;
9185 esac
9186 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9187 # soname into executable. Probably we can add versioning support to
9188 # collect2, so additional links can be useful in future.
9189 if test "$aix_use_runtimelinking" = yes; then
9190 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9191 # instead of lib<name>.a to let people know that these are not
9192 # typical AIX shared libraries.
9193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9194 else
9195 # We preserve .a as extension for shared libraries through AIX4.2
9196 # and later when we are not doing run time linking.
9197 library_names_spec='${libname}${release}.a $libname.a'
9198 soname_spec='${libname}${release}${shared_ext}$major'
9199 fi
9200 shlibpath_var=LIBPATH
9201 fi
9202 ;;
9203
9204amigaos*)
9205 case $host_cpu in
9206 powerpc)
9207 # Since July 2007 AmigaOS4 officially supports .so libraries.
9208 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9210 ;;
9211 m68k)
9212 library_names_spec='$libname.ixlibrary $libname.a'
9213 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9214 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9215 ;;
9216 esac
9217 ;;
9218
9219beos*)
9220 library_names_spec='${libname}${shared_ext}'
9221 dynamic_linker="$host_os ld.so"
9222 shlibpath_var=LIBRARY_PATH
9223 ;;
9224
9225bsdi[45]*)
9226 version_type=linux
9227 need_version=no
9228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9229 soname_spec='${libname}${release}${shared_ext}$major'
9230 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9231 shlibpath_var=LD_LIBRARY_PATH
9232 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9233 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9234 # the default ld.so.conf also contains /usr/contrib/lib and
9235 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9236 # libtool to hard-code these into programs
9237 ;;
9238
9239cygwin* | mingw* | pw32* | cegcc*)
9240 version_type=windows
9241 shrext_cmds=".dll"
9242 need_version=no
9243 need_lib_prefix=no
9244
9245 case $GCC,$host_os in
9246 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9247 library_names_spec='$libname.dll.a'
9248 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9249 postinstall_cmds='base_file=`basename \${file}`~
9250 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9251 dldir=$destdir/`dirname \$dlpath`~
9252 test -d \$dldir || mkdir -p \$dldir~
9253 $install_prog $dir/$dlname \$dldir/$dlname~
9254 chmod a+x \$dldir/$dlname~
9255 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9256 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9257 fi'
9258 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9259 dlpath=$dir/\$dldll~
9260 $RM \$dlpath'
9261 shlibpath_overrides_runpath=yes
9262
9263 case $host_os in
9264 cygwin*)
9265 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9266 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9267
9268 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9269 ;;
9270 mingw* | cegcc*)
9271 # MinGW DLLs use traditional 'lib' prefix
9272 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9273 ;;
9274 pw32*)
9275 # pw32 DLLs use 'pw' prefix rather than 'lib'
9276 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9277 ;;
9278 esac
9279 ;;
9280
9281 *)
9282 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9283 ;;
9284 esac
9285 dynamic_linker='Win32 ld.exe'
9286 # FIXME: first we should search . and the directory the executable is in
9287 shlibpath_var=PATH
9288 ;;
9289
9290darwin* | rhapsody*)
9291 dynamic_linker="$host_os dyld"
9292 version_type=darwin
9293 need_lib_prefix=no
9294 need_version=no
9295 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9296 soname_spec='${libname}${release}${major}$shared_ext'
9297 shlibpath_overrides_runpath=yes
9298 shlibpath_var=DYLD_LIBRARY_PATH
9299 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9300
9301 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9302 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9303 ;;
9304
9305dgux*)
9306 version_type=linux
9307 need_lib_prefix=no
9308 need_version=no
9309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9310 soname_spec='${libname}${release}${shared_ext}$major'
9311 shlibpath_var=LD_LIBRARY_PATH
9312 ;;
9313
9314freebsd1*)
9315 dynamic_linker=no
9316 ;;
9317
9318freebsd* | dragonfly*)
9319 # DragonFly does not have aout. When/if they implement a new
9320 # versioning mechanism, adjust this.
9321 if test -x /usr/bin/objformat; then
9322 objformat=`/usr/bin/objformat`
9323 else
9324 case $host_os in
9325 freebsd[123]*) objformat=aout ;;
9326 *) objformat=elf ;;
9327 esac
9328 fi
9329 version_type=freebsd-$objformat
9330 case $version_type in
9331 freebsd-elf*)
9332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9333 need_version=no
9334 need_lib_prefix=no
9335 ;;
9336 freebsd-*)
9337 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9338 need_version=yes
9339 ;;
9340 esac
9341 shlibpath_var=LD_LIBRARY_PATH
9342 case $host_os in
9343 freebsd2*)
9344 shlibpath_overrides_runpath=yes
9345 ;;
9346 freebsd3.[01]* | freebsdelf3.[01]*)
9347 shlibpath_overrides_runpath=yes
9348 hardcode_into_libs=yes
9349 ;;
9350 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9351 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9352 shlibpath_overrides_runpath=no
9353 hardcode_into_libs=yes
9354 ;;
9355 *) # from 4.6 on, and DragonFly
9356 shlibpath_overrides_runpath=yes
9357 hardcode_into_libs=yes
9358 ;;
9359 esac
9360 ;;
9361
9362gnu*)
9363 version_type=linux
9364 need_lib_prefix=no
9365 need_version=no
9366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9367 soname_spec='${libname}${release}${shared_ext}$major'
9368 shlibpath_var=LD_LIBRARY_PATH
9369 hardcode_into_libs=yes
9370 ;;
9371
9372haiku*)
9373 version_type=linux
9374 need_lib_prefix=no
9375 need_version=no
9376 dynamic_linker="$host_os runtime_loader"
9377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9378 soname_spec='${libname}${release}${shared_ext}$major'
9379 shlibpath_var=LIBRARY_PATH
9380 shlibpath_overrides_runpath=yes
9381 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
9382 hardcode_into_libs=yes
9383 ;;
9384
9385hpux9* | hpux10* | hpux11*)
9386 # Give a soname corresponding to the major version so that dld.sl refuses to
9387 # link against other versions.
9388 version_type=sunos
9389 need_lib_prefix=no
9390 need_version=no
9391 case $host_cpu in
9392 ia64*)
9393 shrext_cmds='.so'
9394 hardcode_into_libs=yes
9395 dynamic_linker="$host_os dld.so"
9396 shlibpath_var=LD_LIBRARY_PATH
9397 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9399 soname_spec='${libname}${release}${shared_ext}$major'
9400 if test "X$HPUX_IA64_MODE" = X32; then
9401 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9402 else
9403 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9404 fi
9405 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9406 ;;
9407 hppa*64*)
9408 shrext_cmds='.sl'
9409 hardcode_into_libs=yes
9410 dynamic_linker="$host_os dld.sl"
9411 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9412 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9414 soname_spec='${libname}${release}${shared_ext}$major'
9415 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9416 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9417 ;;
9418 *)
9419 shrext_cmds='.sl'
9420 dynamic_linker="$host_os dld.sl"
9421 shlibpath_var=SHLIB_PATH
9422 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9424 soname_spec='${libname}${release}${shared_ext}$major'
9425 ;;
9426 esac
9427 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9428 postinstall_cmds='chmod 555 $lib'
9429 # or fails outright, so override atomically:
9430 install_override_mode=555
9431 ;;
9432
9433interix[3-9]*)
9434 version_type=linux
9435 need_lib_prefix=no
9436 need_version=no
9437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9438 soname_spec='${libname}${release}${shared_ext}$major'
9439 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9440 shlibpath_var=LD_LIBRARY_PATH
9441 shlibpath_overrides_runpath=no
9442 hardcode_into_libs=yes
9443 ;;
9444
9445irix5* | irix6* | nonstopux*)
9446 case $host_os in
9447 nonstopux*) version_type=nonstopux ;;
9448 *)
9449 if test "$lt_cv_prog_gnu_ld" = yes; then
9450 version_type=linux
9451 else
9452 version_type=irix
9453 fi ;;
9454 esac
9455 need_lib_prefix=no
9456 need_version=no
9457 soname_spec='${libname}${release}${shared_ext}$major'
9458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9459 case $host_os in
9460 irix5* | nonstopux*)
9461 libsuff= shlibsuff=
9462 ;;
9463 *)
9464 case $LD in # libtool.m4 will add one of these switches to LD
9465 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9466 libsuff= shlibsuff= libmagic=32-bit;;
9467 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9468 libsuff=32 shlibsuff=N32 libmagic=N32;;
9469 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9470 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9471 *) libsuff= shlibsuff= libmagic=never-match;;
9472 esac
9473 ;;
9474 esac
9475 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9476 shlibpath_overrides_runpath=no
9477 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9478 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9479 hardcode_into_libs=yes
9480 ;;
9481
9482# No shared lib support for Linux oldld, aout, or coff.
9483linux*oldld* | linux*aout* | linux*coff*)
9484 dynamic_linker=no
9485 ;;
9486
9487# This must be Linux ELF.
9488linux* | k*bsd*-gnu | kopensolaris*-gnu)
9489 version_type=linux
9490 need_lib_prefix=no
9491 need_version=no
9492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9493 soname_spec='${libname}${release}${shared_ext}$major'
9494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9495 shlibpath_var=LD_LIBRARY_PATH
9496 shlibpath_overrides_runpath=no
9497
9498 # Some binutils ld are patched to set DT_RUNPATH
9499 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
9500 $as_echo_n "(cached) " >&6
9501else
9502 lt_cv_shlibpath_overrides_runpath=no
9503 save_LDFLAGS=$LDFLAGS
9504 save_libdir=$libdir
9505 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9506 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9508/* end confdefs.h. */
9509
9510int
9511main ()
9512{
9513
9514 ;
9515 return 0;
9516}
9517_ACEOF
9518if ac_fn_c_try_link "$LINENO"; then :
9519 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9520 lt_cv_shlibpath_overrides_runpath=yes
9521fi
9522fi
9523rm -f core conftest.err conftest.$ac_objext \
9524 conftest$ac_exeext conftest.$ac_ext
9525 LDFLAGS=$save_LDFLAGS
9526 libdir=$save_libdir
9527
9528fi
9529
9530 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
9531
9532 # This implies no fast_install, which is unacceptable.
9533 # Some rework will be needed to allow for fast_install
9534 # before this can be enabled.
9535 hardcode_into_libs=yes
9536
9537 # Append ld.so.conf contents to the search path
9538 if test -f /etc/ld.so.conf; then
9539 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' ' '`
9540 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9541 fi
9542
9543 # We used to test for /lib/ld.so.1 and disable shared libraries on
9544 # powerpc, because MkLinux only supported shared libraries with the
9545 # GNU dynamic linker. Since this was broken with cross compilers,
9546 # most powerpc-linux boxes support dynamic linking these days and
9547 # people can always --disable-shared, the test was removed, and we
9548 # assume the GNU/Linux dynamic linker is in use.
9549 dynamic_linker='GNU/Linux ld.so'
9550 ;;
9551
9552netbsd*)
9553 version_type=sunos
9554 need_lib_prefix=no
9555 need_version=no
9556 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9559 dynamic_linker='NetBSD (a.out) ld.so'
9560 else
9561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9562 soname_spec='${libname}${release}${shared_ext}$major'
9563 dynamic_linker='NetBSD ld.elf_so'
9564 fi
9565 shlibpath_var=LD_LIBRARY_PATH
9566 shlibpath_overrides_runpath=yes
9567 hardcode_into_libs=yes
9568 ;;
9569
9570newsos6)
9571 version_type=linux
9572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9573 shlibpath_var=LD_LIBRARY_PATH
9574 shlibpath_overrides_runpath=yes
9575 ;;
9576
9577*nto* | *qnx*)
9578 version_type=qnx
9579 need_lib_prefix=no
9580 need_version=no
9581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9582 soname_spec='${libname}${release}${shared_ext}$major'
9583 shlibpath_var=LD_LIBRARY_PATH
9584 shlibpath_overrides_runpath=no
9585 hardcode_into_libs=yes
9586 dynamic_linker='ldqnx.so'
9587 ;;
9588
9589openbsd*)
9590 version_type=sunos
9591 sys_lib_dlsearch_path_spec="/usr/lib"
9592 need_lib_prefix=no
9593 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9594 case $host_os in
9595 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9596 *) need_version=no ;;
9597 esac
9598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9600 shlibpath_var=LD_LIBRARY_PATH
9601 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9602 case $host_os in
9603 openbsd2.[89] | openbsd2.[89].*)
9604 shlibpath_overrides_runpath=no
9605 ;;
9606 *)
9607 shlibpath_overrides_runpath=yes
9608 ;;
9609 esac
9610 else
9611 shlibpath_overrides_runpath=yes
9612 fi
9613 ;;
9614
9615os2*)
9616 libname_spec='$name'
9617 shrext_cmds=".dll"
9618 need_lib_prefix=no
9619 library_names_spec='$libname${shared_ext} $libname.a'
9620 dynamic_linker='OS/2 ld.exe'
9621 shlibpath_var=LIBPATH
9622 ;;
9623
9624osf3* | osf4* | osf5*)
9625 version_type=osf
9626 need_lib_prefix=no
9627 need_version=no
9628 soname_spec='${libname}${release}${shared_ext}$major'
9629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9630 shlibpath_var=LD_LIBRARY_PATH
9631 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9632 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9633 ;;
9634
9635rdos*)
9636 dynamic_linker=no
9637 ;;
9638
9639solaris*)
9640 version_type=linux
9641 need_lib_prefix=no
9642 need_version=no
9643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9644 soname_spec='${libname}${release}${shared_ext}$major'
9645 shlibpath_var=LD_LIBRARY_PATH
9646 shlibpath_overrides_runpath=yes
9647 hardcode_into_libs=yes
9648 # ldd complains unless libraries are executable
9649 postinstall_cmds='chmod +x $lib'
9650 ;;
9651
9652sunos4*)
9653 version_type=sunos
9654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9655 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9656 shlibpath_var=LD_LIBRARY_PATH
9657 shlibpath_overrides_runpath=yes
9658 if test "$with_gnu_ld" = yes; then
9659 need_lib_prefix=no
9660 fi
9661 need_version=yes
9662 ;;
9663
9664sysv4 | sysv4.3*)
9665 version_type=linux
9666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9667 soname_spec='${libname}${release}${shared_ext}$major'
9668 shlibpath_var=LD_LIBRARY_PATH
9669 case $host_vendor in
9670 sni)
9671 shlibpath_overrides_runpath=no
9672 need_lib_prefix=no
9673 runpath_var=LD_RUN_PATH
9674 ;;
9675 siemens)
9676 need_lib_prefix=no
9677 ;;
9678 motorola)
9679 need_lib_prefix=no
9680 need_version=no
9681 shlibpath_overrides_runpath=no
9682 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9683 ;;
9684 esac
9685 ;;
9686
9687sysv4*MP*)
9688 if test -d /usr/nec ;then
9689 version_type=linux
9690 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9691 soname_spec='$libname${shared_ext}.$major'
9692 shlibpath_var=LD_LIBRARY_PATH
9693 fi
9694 ;;
9695
9696sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9697 version_type=freebsd-elf
9698 need_lib_prefix=no
9699 need_version=no
9700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9701 soname_spec='${libname}${release}${shared_ext}$major'
9702 shlibpath_var=LD_LIBRARY_PATH
9703 shlibpath_overrides_runpath=yes
9704 hardcode_into_libs=yes
9705 if test "$with_gnu_ld" = yes; then
9706 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9707 else
9708 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9709 case $host_os in
9710 sco3.2v5*)
9711 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9712 ;;
9713 esac
9714 fi
9715 sys_lib_dlsearch_path_spec='/usr/lib'
9716 ;;
9717
9718tpf*)
9719 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9720 version_type=linux
9721 need_lib_prefix=no
9722 need_version=no
9723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9724 shlibpath_var=LD_LIBRARY_PATH
9725 shlibpath_overrides_runpath=no
9726 hardcode_into_libs=yes
9727 ;;
9728
9729uts4*)
9730 version_type=linux
9731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9732 soname_spec='${libname}${release}${shared_ext}$major'
9733 shlibpath_var=LD_LIBRARY_PATH
9734 ;;
9735
9736*)
9737 dynamic_linker=no
9738 ;;
9739esac
9740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9741$as_echo "$dynamic_linker" >&6; }
9742test "$dynamic_linker" = no && can_build_shared=no
9743
9744variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9745if test "$GCC" = yes; then
9746 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9747fi
9748
9749if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9750 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9751fi
9752if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9753 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9754fi
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9848$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9849hardcode_action=
9850if test -n "$hardcode_libdir_flag_spec" ||
9851 test -n "$runpath_var" ||
9852 test "X$hardcode_automatic" = "Xyes" ; then
9853
9854 # We can hardcode non-existent directories.
9855 if test "$hardcode_direct" != no &&
9856 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9857 # have to relink, otherwise we might link with an installed library
9858 # when we should be linking with a yet-to-be-installed one
9859 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9860 test "$hardcode_minus_L" != no; then
9861 # Linking always hardcodes the temporary library directory.
9862 hardcode_action=relink
9863 else
9864 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9865 hardcode_action=immediate
9866 fi
9867else
9868 # We cannot hardcode anything, or else we can only hardcode existing
9869 # directories.
9870 hardcode_action=unsupported
9871fi
9872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9873$as_echo "$hardcode_action" >&6; }
9874
9875if test "$hardcode_action" = relink ||
9876 test "$inherit_rpath" = yes; then
9877 # Fast installation is not supported
9878 enable_fast_install=no
9879elif test "$shlibpath_overrides_runpath" = yes ||
9880 test "$enable_shared" = no; then
9881 # Fast installation is not necessary
9882 enable_fast_install=needless
9883fi
9884
9885
9886
9887
9888
9889
9890 if test "x$enable_dlopen" != xyes; then
9891 enable_dlopen=unknown
9892 enable_dlopen_self=unknown
9893 enable_dlopen_self_static=unknown
9894else
9895 lt_cv_dlopen=no
9896 lt_cv_dlopen_libs=
9897
9898 case $host_os in
9899 beos*)
9900 lt_cv_dlopen="load_add_on"
9901 lt_cv_dlopen_libs=
9902 lt_cv_dlopen_self=yes
9903 ;;
9904
9905 mingw* | pw32* | cegcc*)
9906 lt_cv_dlopen="LoadLibrary"
9907 lt_cv_dlopen_libs=
9908 ;;
9909
9910 cygwin*)
9911 lt_cv_dlopen="dlopen"
9912 lt_cv_dlopen_libs=
9913 ;;
9914
9915 darwin*)
9916 # if libdl is installed we need to link against it
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9918$as_echo_n "checking for dlopen in -ldl... " >&6; }
9919if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9920 $as_echo_n "(cached) " >&6
9921else
9922 ac_check_lib_save_LIBS=$LIBS
9923LIBS="-ldl $LIBS"
9924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9925/* end confdefs.h. */
9926
9927/* Override any GCC internal prototype to avoid an error.
9928 Use char because int might match the return type of a GCC
9929 builtin and then its argument prototype would still apply. */
9930#ifdef __cplusplus
9931extern "C"
9932#endif
9933char dlopen ();
9934int
9935main ()
9936{
9937return dlopen ();
9938 ;
9939 return 0;
9940}
9941_ACEOF
9942if ac_fn_c_try_link "$LINENO"; then :
9943 ac_cv_lib_dl_dlopen=yes
9944else
9945 ac_cv_lib_dl_dlopen=no
9946fi
9947rm -f core conftest.err conftest.$ac_objext \
9948 conftest$ac_exeext conftest.$ac_ext
9949LIBS=$ac_check_lib_save_LIBS
9950fi
9951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9952$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9953if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9954 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9955else
9956
9957 lt_cv_dlopen="dyld"
9958 lt_cv_dlopen_libs=
9959 lt_cv_dlopen_self=yes
9960
9961fi
9962
9963 ;;
9964
9965 *)
9966 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9967if test "x$ac_cv_func_shl_load" = x""yes; then :
9968 lt_cv_dlopen="shl_load"
9969else
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9971$as_echo_n "checking for shl_load in -ldld... " >&6; }
9972if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9973 $as_echo_n "(cached) " >&6
9974else
9975 ac_check_lib_save_LIBS=$LIBS
9976LIBS="-ldld $LIBS"
9977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978/* end confdefs.h. */
9979
9980/* Override any GCC internal prototype to avoid an error.
9981 Use char because int might match the return type of a GCC
9982 builtin and then its argument prototype would still apply. */
9983#ifdef __cplusplus
9984extern "C"
9985#endif
9986char shl_load ();
9987int
9988main ()
9989{
9990return shl_load ();
9991 ;
9992 return 0;
9993}
9994_ACEOF
9995if ac_fn_c_try_link "$LINENO"; then :
9996 ac_cv_lib_dld_shl_load=yes
9997else
9998 ac_cv_lib_dld_shl_load=no
9999fi
10000rm -f core conftest.err conftest.$ac_objext \
10001 conftest$ac_exeext conftest.$ac_ext
10002LIBS=$ac_check_lib_save_LIBS
10003fi
10004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10005$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10006if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10007 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10008else
10009 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10010if test "x$ac_cv_func_dlopen" = x""yes; then :
10011 lt_cv_dlopen="dlopen"
10012else
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10014$as_echo_n "checking for dlopen in -ldl... " >&6; }
10015if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10016 $as_echo_n "(cached) " >&6
10017else
10018 ac_check_lib_save_LIBS=$LIBS
10019LIBS="-ldl $LIBS"
10020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021/* end confdefs.h. */
10022
10023/* Override any GCC internal prototype to avoid an error.
10024 Use char because int might match the return type of a GCC
10025 builtin and then its argument prototype would still apply. */
10026#ifdef __cplusplus
10027extern "C"
10028#endif
10029char dlopen ();
10030int
10031main ()
10032{
10033return dlopen ();
10034 ;
10035 return 0;
10036}
10037_ACEOF
10038if ac_fn_c_try_link "$LINENO"; then :
10039 ac_cv_lib_dl_dlopen=yes
10040else
10041 ac_cv_lib_dl_dlopen=no
10042fi
10043rm -f core conftest.err conftest.$ac_objext \
10044 conftest$ac_exeext conftest.$ac_ext
10045LIBS=$ac_check_lib_save_LIBS
10046fi
10047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10048$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10049if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10050 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10051else
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10053$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10054if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10055 $as_echo_n "(cached) " >&6
10056else
10057 ac_check_lib_save_LIBS=$LIBS
10058LIBS="-lsvld $LIBS"
10059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10060/* end confdefs.h. */
10061
10062/* Override any GCC internal prototype to avoid an error.
10063 Use char because int might match the return type of a GCC
10064 builtin and then its argument prototype would still apply. */
10065#ifdef __cplusplus
10066extern "C"
10067#endif
10068char dlopen ();
10069int
10070main ()
10071{
10072return dlopen ();
10073 ;
10074 return 0;
10075}
10076_ACEOF
10077if ac_fn_c_try_link "$LINENO"; then :
10078 ac_cv_lib_svld_dlopen=yes
10079else
10080 ac_cv_lib_svld_dlopen=no
10081fi
10082rm -f core conftest.err conftest.$ac_objext \
10083 conftest$ac_exeext conftest.$ac_ext
10084LIBS=$ac_check_lib_save_LIBS
10085fi
10086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10087$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10088if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10089 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10090else
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10092$as_echo_n "checking for dld_link in -ldld... " >&6; }
10093if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10094 $as_echo_n "(cached) " >&6
10095else
10096 ac_check_lib_save_LIBS=$LIBS
10097LIBS="-ldld $LIBS"
10098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10099/* end confdefs.h. */
10100
10101/* Override any GCC internal prototype to avoid an error.
10102 Use char because int might match the return type of a GCC
10103 builtin and then its argument prototype would still apply. */
10104#ifdef __cplusplus
10105extern "C"
10106#endif
10107char dld_link ();
10108int
10109main ()
10110{
10111return dld_link ();
10112 ;
10113 return 0;
10114}
10115_ACEOF
10116if ac_fn_c_try_link "$LINENO"; then :
10117 ac_cv_lib_dld_dld_link=yes
10118else
10119 ac_cv_lib_dld_dld_link=no
10120fi
10121rm -f core conftest.err conftest.$ac_objext \
10122 conftest$ac_exeext conftest.$ac_ext
10123LIBS=$ac_check_lib_save_LIBS
10124fi
10125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10126$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10127if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10128 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10129fi
10130
10131
10132fi
10133
10134
10135fi
10136
10137
10138fi
10139
10140
10141fi
10142
10143
10144fi
10145
10146 ;;
10147 esac
10148
10149 if test "x$lt_cv_dlopen" != xno; then
10150 enable_dlopen=yes
10151 else
10152 enable_dlopen=no
10153 fi
10154
10155 case $lt_cv_dlopen in
10156 dlopen)
10157 save_CPPFLAGS="$CPPFLAGS"
10158 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10159
10160 save_LDFLAGS="$LDFLAGS"
10161 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10162
10163 save_LIBS="$LIBS"
10164 LIBS="$lt_cv_dlopen_libs $LIBS"
10165
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10167$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10168if test "${lt_cv_dlopen_self+set}" = set; then :
10169 $as_echo_n "(cached) " >&6
10170else
10171 if test "$cross_compiling" = yes; then :
10172 lt_cv_dlopen_self=cross
10173else
10174 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10175 lt_status=$lt_dlunknown
10176 cat > conftest.$ac_ext <<_LT_EOF
10177#line $LINENO "configure"
10178#include "confdefs.h"
10179
10180#if HAVE_DLFCN_H
10181#include <dlfcn.h>
10182#endif
10183
10184#include <stdio.h>
10185
10186#ifdef RTLD_GLOBAL
10187# define LT_DLGLOBAL RTLD_GLOBAL
10188#else
10189# ifdef DL_GLOBAL
10190# define LT_DLGLOBAL DL_GLOBAL
10191# else
10192# define LT_DLGLOBAL 0
10193# endif
10194#endif
10195
10196/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10197 find out it does not work in some platform. */
10198#ifndef LT_DLLAZY_OR_NOW
10199# ifdef RTLD_LAZY
10200# define LT_DLLAZY_OR_NOW RTLD_LAZY
10201# else
10202# ifdef DL_LAZY
10203# define LT_DLLAZY_OR_NOW DL_LAZY
10204# else
10205# ifdef RTLD_NOW
10206# define LT_DLLAZY_OR_NOW RTLD_NOW
10207# else
10208# ifdef DL_NOW
10209# define LT_DLLAZY_OR_NOW DL_NOW
10210# else
10211# define LT_DLLAZY_OR_NOW 0
10212# endif
10213# endif
10214# endif
10215# endif
10216#endif
10217
10218/* When -fvisbility=hidden is used, assume the code has been annotated
10219 correspondingly for the symbols needed. */
10220#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10221void fnord () __attribute__((visibility("default")));
10222#endif
10223
10224void fnord () { int i=42; }
10225int main ()
10226{
10227 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10228 int status = $lt_dlunknown;
10229
10230 if (self)
10231 {
10232 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10233 else
10234 {
10235 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10236 else puts (dlerror ());
10237 }
10238 /* dlclose (self); */
10239 }
10240 else
10241 puts (dlerror ());
10242
10243 return status;
10244}
10245_LT_EOF
10246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10247 (eval $ac_link) 2>&5
10248 ac_status=$?
10249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10250 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10251 (./conftest; exit; ) >&5 2>/dev/null
10252 lt_status=$?
10253 case x$lt_status in
10254 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10255 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10256 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10257 esac
10258 else :
10259 # compilation failed
10260 lt_cv_dlopen_self=no
10261 fi
10262fi
10263rm -fr conftest*
10264
10265
10266fi
10267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10268$as_echo "$lt_cv_dlopen_self" >&6; }
10269
10270 if test "x$lt_cv_dlopen_self" = xyes; then
10271 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10273$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10274if test "${lt_cv_dlopen_self_static+set}" = set; then :
10275 $as_echo_n "(cached) " >&6
10276else
10277 if test "$cross_compiling" = yes; then :
10278 lt_cv_dlopen_self_static=cross
10279else
10280 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10281 lt_status=$lt_dlunknown
10282 cat > conftest.$ac_ext <<_LT_EOF
10283#line $LINENO "configure"
10284#include "confdefs.h"
10285
10286#if HAVE_DLFCN_H
10287#include <dlfcn.h>
10288#endif
10289
10290#include <stdio.h>
10291
10292#ifdef RTLD_GLOBAL
10293# define LT_DLGLOBAL RTLD_GLOBAL
10294#else
10295# ifdef DL_GLOBAL
10296# define LT_DLGLOBAL DL_GLOBAL
10297# else
10298# define LT_DLGLOBAL 0
10299# endif
10300#endif
10301
10302/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10303 find out it does not work in some platform. */
10304#ifndef LT_DLLAZY_OR_NOW
10305# ifdef RTLD_LAZY
10306# define LT_DLLAZY_OR_NOW RTLD_LAZY
10307# else
10308# ifdef DL_LAZY
10309# define LT_DLLAZY_OR_NOW DL_LAZY
10310# else
10311# ifdef RTLD_NOW
10312# define LT_DLLAZY_OR_NOW RTLD_NOW
10313# else
10314# ifdef DL_NOW
10315# define LT_DLLAZY_OR_NOW DL_NOW
10316# else
10317# define LT_DLLAZY_OR_NOW 0
10318# endif
10319# endif
10320# endif
10321# endif
10322#endif
10323
10324/* When -fvisbility=hidden is used, assume the code has been annotated
10325 correspondingly for the symbols needed. */
10326#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10327void fnord () __attribute__((visibility("default")));
10328#endif
10329
10330void fnord () { int i=42; }
10331int main ()
10332{
10333 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10334 int status = $lt_dlunknown;
10335
10336 if (self)
10337 {
10338 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10339 else
10340 {
10341 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10342 else puts (dlerror ());
10343 }
10344 /* dlclose (self); */
10345 }
10346 else
10347 puts (dlerror ());
10348
10349 return status;
10350}
10351_LT_EOF
10352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10353 (eval $ac_link) 2>&5
10354 ac_status=$?
10355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10356 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10357 (./conftest; exit; ) >&5 2>/dev/null
10358 lt_status=$?
10359 case x$lt_status in
10360 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10361 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10362 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10363 esac
10364 else :
10365 # compilation failed
10366 lt_cv_dlopen_self_static=no
10367 fi
10368fi
10369rm -fr conftest*
10370
10371
10372fi
10373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10374$as_echo "$lt_cv_dlopen_self_static" >&6; }
10375 fi
10376
10377 CPPFLAGS="$save_CPPFLAGS"
10378 LDFLAGS="$save_LDFLAGS"
10379 LIBS="$save_LIBS"
10380 ;;
10381 esac
10382
10383 case $lt_cv_dlopen_self in
10384 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10385 *) enable_dlopen_self=unknown ;;
10386 esac
10387
10388 case $lt_cv_dlopen_self_static in
10389 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10390 *) enable_dlopen_self_static=unknown ;;
10391 esac
10392fi
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410striplib=
10411old_striplib=
10412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10413$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10414if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10415 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10416 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10418$as_echo "yes" >&6; }
10419else
10420# FIXME - insert some real tests, host_os isn't really good enough
10421 case $host_os in
10422 darwin*)
10423 if test -n "$STRIP" ; then
10424 striplib="$STRIP -x"
10425 old_striplib="$STRIP -S"
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10427$as_echo "yes" >&6; }
10428 else
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10430$as_echo "no" >&6; }
10431 fi
10432 ;;
10433 *)
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10435$as_echo "no" >&6; }
10436 ;;
10437 esac
10438fi
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451 # Report which library types will actually be built
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10453$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10455$as_echo "$can_build_shared" >&6; }
10456
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10458$as_echo_n "checking whether to build shared libraries... " >&6; }
10459 test "$can_build_shared" = "no" && enable_shared=no
10460
10461 # On AIX, shared libraries and static libraries use the same namespace, and
10462 # are all built from PIC.
10463 case $host_os in
10464 aix3*)
10465 test "$enable_shared" = yes && enable_static=no
10466 if test -n "$RANLIB"; then
10467 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10468 postinstall_cmds='$RANLIB $lib'
10469 fi
10470 ;;
10471
10472 aix[4-9]*)
10473 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10474 test "$enable_shared" = yes && enable_static=no
10475 fi
10476 ;;
10477 esac
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10479$as_echo "$enable_shared" >&6; }
10480
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10482$as_echo_n "checking whether to build static libraries... " >&6; }
10483 # Make sure either enable_shared or enable_static is yes.
10484 test "$enable_shared" = yes || enable_static=yes
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10486$as_echo "$enable_static" >&6; }
10487
10488
10489
10490
10491fi
10492ac_ext=c
10493ac_cpp='$CPP $CPPFLAGS'
10494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10496ac_compiler_gnu=$ac_cv_c_compiler_gnu
10497
10498CC="$lt_save_CC"
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512 ac_config_commands="$ac_config_commands libtool"
10513
10514
10515
10516
10517# Only expand once:
10518
10519
10520
10521
10522# Sets a conditional makefile variable so that certain Makefile tasks will be
10523# performed only on linux (currently, add -luuid to LD_FLAGS)
10524
10525
10526if case $host_os in linux*) true;; *) false;; esac; then
10527 LINUX_TRUE=
10528 LINUX_FALSE='#'
10529else
10530 LINUX_TRUE='#'
10531 LINUX_FALSE=
10532fi
10533
10534
10535# Checks for header files.
10536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10537$as_echo_n "checking for ANSI C header files... " >&6; }
10538if test "${ac_cv_header_stdc+set}" = set; then :
10539 $as_echo_n "(cached) " >&6
10540else
10541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10542/* end confdefs.h. */
10543#include <stdlib.h>
10544#include <stdarg.h>
10545#include <string.h>
10546#include <float.h>
10547
10548int
10549main ()
10550{
10551
10552 ;
10553 return 0;
10554}
10555_ACEOF
10556if ac_fn_c_try_compile "$LINENO"; then :
10557 ac_cv_header_stdc=yes
10558else
10559 ac_cv_header_stdc=no
10560fi
10561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10562
10563if test $ac_cv_header_stdc = yes; then
10564 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10566/* end confdefs.h. */
10567#include <string.h>
10568
10569_ACEOF
10570if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10571 $EGREP "memchr" >/dev/null 2>&1; then :
10572
10573else
10574 ac_cv_header_stdc=no
10575fi
10576rm -f conftest*
10577
10578fi
10579
10580if test $ac_cv_header_stdc = yes; then
10581 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10583/* end confdefs.h. */
10584#include <stdlib.h>
10585
10586_ACEOF
10587if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10588 $EGREP "free" >/dev/null 2>&1; then :
10589
10590else
10591 ac_cv_header_stdc=no
10592fi
10593rm -f conftest*
10594
10595fi
10596
10597if test $ac_cv_header_stdc = yes; then
10598 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10599 if test "$cross_compiling" = yes; then :
10600 :
10601else
10602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10603/* end confdefs.h. */
10604#include <ctype.h>
10605#include <stdlib.h>
10606#if ((' ' & 0x0FF) == 0x020)
10607# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10608# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10609#else
10610# define ISLOWER(c) \
10611 (('a' <= (c) && (c) <= 'i') \
10612 || ('j' <= (c) && (c) <= 'r') \
10613 || ('s' <= (c) && (c) <= 'z'))
10614# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10615#endif
10616
10617#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10618int
10619main ()
10620{
10621 int i;
10622 for (i = 0; i < 256; i++)
10623 if (XOR (islower (i), ISLOWER (i))
10624 || toupper (i) != TOUPPER (i))
10625 return 2;
10626 return 0;
10627}
10628_ACEOF
10629if ac_fn_c_try_run "$LINENO"; then :
10630
10631else
10632 ac_cv_header_stdc=no
10633fi
10634rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10635 conftest.$ac_objext conftest.beam conftest.$ac_ext
10636fi
10637
10638fi
10639fi
10640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10641$as_echo "$ac_cv_header_stdc" >&6; }
10642if test $ac_cv_header_stdc = yes; then
10643
10644$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10645
10646fi
10647
10648
10649# Check for uuid.h and a valid libuuid
10650ac_fn_c_check_func "$LINENO" "uuid_create" "ac_cv_func_uuid_create"
10651if test "x$ac_cv_func_uuid_create" = x""yes; then :
10652
10653fi
10654
10655if test "${ac_cv_func_uuid_create}" = yes ; then
10656
10657$as_echo "#define HAVE_UUID_CREATE /**/" >>confdefs.h
10658
10659 use_uuid_library="no"
10660else
10661 ac_fn_c_check_func "$LINENO" "uuid_generate" "ac_cv_func_uuid_generate"
10662if test "x$ac_cv_func_uuid_generate" = x""yes; then :
10663
10664fi
10665
10666 if test "${ac_cv_func_uuid_generate}" = yes ; then
10667
10668$as_echo "#define HAVE_UUID_GENERATE /**/" >>confdefs.h
10669
10670 use_uuid_library="no"
10671 else
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
10673$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
10674if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
10675 $as_echo_n "(cached) " >&6
10676else
10677 ac_check_lib_save_LIBS=$LIBS
10678LIBS="-luuid $LIBS"
10679cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10680/* end confdefs.h. */
10681
10682/* Override any GCC internal prototype to avoid an error.
10683 Use char because int might match the return type of a GCC
10684 builtin and then its argument prototype would still apply. */
10685#ifdef __cplusplus
10686extern "C"
10687#endif
10688char uuid_generate ();
10689int
10690main ()
10691{
10692return uuid_generate ();
10693 ;
10694 return 0;
10695}
10696_ACEOF
10697if ac_fn_c_try_link "$LINENO"; then :
10698 ac_cv_lib_uuid_uuid_generate=yes
10699else
10700 ac_cv_lib_uuid_uuid_generate=no
10701fi
10702rm -f core conftest.err conftest.$ac_objext \
10703 conftest$ac_exeext conftest.$ac_ext
10704LIBS=$ac_check_lib_save_LIBS
10705fi
10706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
10707$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
10708if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then :
10709 cat >>confdefs.h <<_ACEOF
10710#define HAVE_LIBUUID 1
10711_ACEOF
10712
10713 LIBS="-luuid $LIBS"
10714
10715else
10716 as_fn_error "libuuid is not available" "$LINENO" 5
10717fi
10718
10719
10720$as_echo "#define HAVE_UUID_GENERATE /**/" >>confdefs.h
10721
10722 use_uuid_library="yes"
10723 fi
10724fi
10725
10726
10727
10728if test "${use_uuid_library}" = yes; then
10729 USE_UUID_LIBRARY_TRUE=
10730 USE_UUID_LIBRARY_FALSE='#'
10731else
10732 USE_UUID_LIBRARY_TRUE='#'
10733 USE_UUID_LIBRARY_FALSE=
10734fi
10735
10736
10737ac_fn_c_check_header_mongrel "$LINENO" "uuid.h" "ac_cv_header_uuid_h" "$ac_includes_default"
10738if test "x$ac_cv_header_uuid_h" = x""yes; then :
10739
10740fi
10741
10742
10743if test "${ac_cv_header_uuid_h}" = yes ; then
10744
10745$as_echo "#define HAVE_UUID_H /**/" >>confdefs.h
10746
10747else
10748 ac_fn_c_check_header_mongrel "$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
10749if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then :
10750
10751fi
10752
10753
10754 if test "${ac_cv_header_uuid_uuid_h}" = yes ; then
10755
10756$as_echo "#define HAVE_UUID_UUID_H /**/" >>confdefs.h
10757
10758 fi
10759fi
10760
10761# Checks for typedefs, structures, and compiler characteristics.
10762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
10763$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10764if test "${ac_cv_c_const+set}" = set; then :
10765 $as_echo_n "(cached) " >&6
10766else
10767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10768/* end confdefs.h. */
10769
10770int
10771main ()
10772{
10773/* FIXME: Include the comments suggested by Paul. */
10774#ifndef __cplusplus
10775 /* Ultrix mips cc rejects this. */
10776 typedef int charset[2];
10777 const charset cs;
10778 /* SunOS 4.1.1 cc rejects this. */
10779 char const *const *pcpcc;
10780 char **ppc;
10781 /* NEC SVR4.0.2 mips cc rejects this. */
10782 struct point {int x, y;};
10783 static struct point const zero = {0,0};
10784 /* AIX XL C 1.02.0.0 rejects this.
10785 It does not let you subtract one const X* pointer from another in
10786 an arm of an if-expression whose if-part is not a constant
10787 expression */
10788 const char *g = "string";
10789 pcpcc = &g + (g ? g-g : 0);
10790 /* HPUX 7.0 cc rejects these. */
10791 ++pcpcc;
10792 ppc = (char**) pcpcc;
10793 pcpcc = (char const *const *) ppc;
10794 { /* SCO 3.2v4 cc rejects this. */
10795 char *t;
10796 char const *s = 0 ? (char *) 0 : (char const *) 0;
10797
10798 *t++ = 0;
10799 if (s) return 0;
10800 }
10801 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
10802 int x[] = {25, 17};
10803 const int *foo = &x[0];
10804 ++foo;
10805 }
10806 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10807 typedef const int *iptr;
10808 iptr p = 0;
10809 ++p;
10810 }
10811 { /* AIX XL C 1.02.0.0 rejects this saying
10812 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10813 struct s { int j; const int *ap[3]; };
10814 struct s *b; b->j = 5;
10815 }
10816 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10817 const int foo = 10;
10818 if (!foo) return 0;
10819 }
10820 return !cs[0] && !zero.x;
10821#endif
10822
10823 ;
10824 return 0;
10825}
10826_ACEOF
10827if ac_fn_c_try_compile "$LINENO"; then :
10828 ac_cv_c_const=yes
10829else
10830 ac_cv_c_const=no
10831fi
10832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10833fi
10834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
10835$as_echo "$ac_cv_c_const" >&6; }
10836if test $ac_cv_c_const = no; then
10837
10838$as_echo "#define const /**/" >>confdefs.h
10839
10840fi
10841
10842
10843ac_config_files="$ac_config_files Makefile src/Makefile"
10844
10845cat >confcache <<\_ACEOF
10846# This file is a shell script that caches the results of configure
10847# tests run on this system so they can be shared between configure
10848# scripts and configure runs, see configure's option --config-cache.
10849# It is not useful on other systems. If it contains results you don't
10850# want to keep, you may remove or edit it.
10851#
10852# config.status only pays attention to the cache file if you give it
10853# the --recheck option to rerun configure.
10854#
10855# `ac_cv_env_foo' variables (set or unset) will be overridden when
10856# loading this file, other *unset* `ac_cv_foo' will be assigned the
10857# following values.
10858
10859_ACEOF
10860
10861# The following way of writing the cache mishandles newlines in values,
10862# but we know of no workaround that is simple, portable, and efficient.
10863# So, we kill variables containing newlines.
10864# Ultrix sh set writes to stderr and can't be redirected directly,
10865# and sets the high bit in the cache file unless we assign to the vars.
10866(
10867 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10868 eval ac_val=\$$ac_var
10869 case $ac_val in #(
10870 *${as_nl}*)
10871 case $ac_var in #(
10872 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10873$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10874 esac
10875 case $ac_var in #(
10876 _ | IFS | as_nl) ;; #(
10877 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10878 *) { eval $ac_var=; unset $ac_var;} ;;
10879 esac ;;
10880 esac
10881 done
10882
10883 (set) 2>&1 |
10884 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10885 *${as_nl}ac_space=\ *)
10886 # `set' does not quote correctly, so add quotes: double-quote
10887 # substitution turns \\\\ into \\, and sed turns \\ into \.
10888 sed -n \
10889 "s/'/'\\\\''/g;
10890 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10891 ;; #(
10892 *)
10893 # `set' quotes correctly as required by POSIX, so do not add quotes.
10894 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10895 ;;
10896 esac |
10897 sort
10898) |
10899 sed '
10900 /^ac_cv_env_/b end
10901 t clear
10902 :clear
10903 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10904 t end
10905 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10906 :end' >>confcache
10907if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10908 if test -w "$cache_file"; then
10909 test "x$cache_file" != "x/dev/null" &&
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10911$as_echo "$as_me: updating cache $cache_file" >&6;}
10912 cat confcache >$cache_file
10913 else
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10915$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10916 fi
10917fi
10918rm -f confcache
10919
10920test "x$prefix" = xNONE && prefix=$ac_default_prefix
10921# Let make expand exec_prefix.
10922test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10923
10924DEFS=-DHAVE_CONFIG_H
10925
10926ac_libobjs=
10927ac_ltlibobjs=
10928for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10929 # 1. Remove the extension, and $U if already installed.
10930 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10931 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10932 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10933 # will be set to the directory where LIBOBJS objects are built.
10934 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10935 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10936done
10937LIBOBJS=$ac_libobjs
10938
10939LTLIBOBJS=$ac_ltlibobjs
10940
10941
10942if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
10943 as_fn_error "conditional \"AMDEP\" was never defined.
10944Usually this means the macro was only invoked conditionally." "$LINENO" 5
10945fi
10946if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
10947 as_fn_error "conditional \"am__fastdepCC\" was never defined.
10948Usually this means the macro was only invoked conditionally." "$LINENO" 5
10949fi
10950if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
10951 as_fn_error "conditional \"LINUX\" was never defined.
10952Usually this means the macro was only invoked conditionally." "$LINENO" 5
10953fi
10954if test -z "${USE_UUID_LIBRARY_TRUE}" && test -z "${USE_UUID_LIBRARY_FALSE}"; then
10955 as_fn_error "conditional \"USE_UUID_LIBRARY\" was never defined.
10956Usually this means the macro was only invoked conditionally." "$LINENO" 5
10957fi
10958
10959: ${CONFIG_STATUS=./config.status}
10960ac_write_fail=0
10961ac_clean_files_save=$ac_clean_files
10962ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10963{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10964$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10965as_write_fail=0
10966cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10967#! $SHELL
10968# Generated by $as_me.
10969# Run this file to recreate the current configuration.
10970# Compiler output produced by configure, useful for debugging
10971# configure, is in config.log if it exists.
10972
10973debug=false
10974ac_cs_recheck=false
10975ac_cs_silent=false
10976
10977SHELL=\${CONFIG_SHELL-$SHELL}
10978export SHELL
10979_ASEOF
10980cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10981## -------------------- ##
10982## M4sh Initialization. ##
10983## -------------------- ##
10984
10985# Be more Bourne compatible
10986DUALCASE=1; export DUALCASE # for MKS sh
10987if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10988 emulate sh
10989 NULLCMD=:
10990 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10991 # is contrary to our usage. Disable this feature.
10992 alias -g '${1+"$@"}'='"$@"'
10993 setopt NO_GLOB_SUBST
10994else
10995 case `(set -o) 2>/dev/null` in #(
10996 *posix*) :
10997 set -o posix ;; #(
10998 *) :
10999 ;;
11000esac
11001fi
11002
11003
11004as_nl='
11005'
11006export as_nl
11007# Printing a long string crashes Solaris 7 /usr/bin/printf.
11008as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11009as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11010as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11011# Prefer a ksh shell builtin over an external printf program on Solaris,
11012# but without wasting forks for bash or zsh.
11013if test -z "$BASH_VERSION$ZSH_VERSION" \
11014 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11015 as_echo='print -r --'
11016 as_echo_n='print -rn --'
11017elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11018 as_echo='printf %s\n'
11019 as_echo_n='printf %s'
11020else
11021 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11022 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11023 as_echo_n='/usr/ucb/echo -n'
11024 else
11025 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11026 as_echo_n_body='eval
11027 arg=$1;
11028 case $arg in #(
11029 *"$as_nl"*)
11030 expr "X$arg" : "X\\(.*\\)$as_nl";
11031 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11032 esac;
11033 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11034 '
11035 export as_echo_n_body
11036 as_echo_n='sh -c $as_echo_n_body as_echo'
11037 fi
11038 export as_echo_body
11039 as_echo='sh -c $as_echo_body as_echo'
11040fi
11041
11042# The user is always right.
11043if test "${PATH_SEPARATOR+set}" != set; then
11044 PATH_SEPARATOR=:
11045 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11046 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11047 PATH_SEPARATOR=';'
11048 }
11049fi
11050
11051
11052# IFS
11053# We need space, tab and new line, in precisely that order. Quoting is
11054# there to prevent editors from complaining about space-tab.
11055# (If _AS_PATH_WALK were called with IFS unset, it would disable word
11056# splitting by setting IFS to empty value.)
11057IFS=" "" $as_nl"
11058
11059# Find who we are. Look in the path if we contain no directory separator.
11060case $0 in #((
11061 *[\\/]* ) as_myself=$0 ;;
11062 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11063for as_dir in $PATH
11064do
11065 IFS=$as_save_IFS
11066 test -z "$as_dir" && as_dir=.
11067 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11068 done
11069IFS=$as_save_IFS
11070
11071 ;;
11072esac
11073# We did not find ourselves, most probably we were run as `sh COMMAND'
11074# in which case we are not to be found in the path.
11075if test "x$as_myself" = x; then
11076 as_myself=$0
11077fi
11078if test ! -f "$as_myself"; then
11079 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11080 exit 1
11081fi
11082
11083# Unset variables that we do not need and which cause bugs (e.g. in
11084# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11085# suppresses any "Segmentation fault" message there. '((' could
11086# trigger a bug in pdksh 5.2.14.
11087for as_var in BASH_ENV ENV MAIL MAILPATH
11088do eval test x\${$as_var+set} = xset \
11089 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11090done
11091PS1='$ '
11092PS2='> '
11093PS4='+ '
11094
11095# NLS nuisances.
11096LC_ALL=C
11097export LC_ALL
11098LANGUAGE=C
11099export LANGUAGE
11100
11101# CDPATH.
11102(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11103
11104
11105# as_fn_error ERROR [LINENO LOG_FD]
11106# ---------------------------------
11107# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11108# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11109# script with status $?, using 1 if that was 0.
11110as_fn_error ()
11111{
11112 as_status=$?; test $as_status -eq 0 && as_status=1
11113 if test "$3"; then
11114 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11115 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11116 fi
11117 $as_echo "$as_me: error: $1" >&2
11118 as_fn_exit $as_status
11119} # as_fn_error
11120
11121
11122# as_fn_set_status STATUS
11123# -----------------------
11124# Set $? to STATUS, without forking.
11125as_fn_set_status ()
11126{
11127 return $1
11128} # as_fn_set_status
11129
11130# as_fn_exit STATUS
11131# -----------------
11132# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11133as_fn_exit ()
11134{
11135 set +e
11136 as_fn_set_status $1
11137 exit $1
11138} # as_fn_exit
11139
11140# as_fn_unset VAR
11141# ---------------
11142# Portably unset VAR.
11143as_fn_unset ()
11144{
11145 { eval $1=; unset $1;}
11146}
11147as_unset=as_fn_unset
11148# as_fn_append VAR VALUE
11149# ----------------------
11150# Append the text in VALUE to the end of the definition contained in VAR. Take
11151# advantage of any shell optimizations that allow amortized linear growth over
11152# repeated appends, instead of the typical quadratic growth present in naive
11153# implementations.
11154if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11155 eval 'as_fn_append ()
11156 {
11157 eval $1+=\$2
11158 }'
11159else
11160 as_fn_append ()
11161 {
11162 eval $1=\$$1\$2
11163 }
11164fi # as_fn_append
11165
11166# as_fn_arith ARG...
11167# ------------------
11168# Perform arithmetic evaluation on the ARGs, and store the result in the
11169# global $as_val. Take advantage of shells that can avoid forks. The arguments
11170# must be portable across $(()) and expr.
11171if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11172 eval 'as_fn_arith ()
11173 {
11174 as_val=$(( $* ))
11175 }'
11176else
11177 as_fn_arith ()
11178 {
11179 as_val=`expr "$@" || test $? -eq 1`
11180 }
11181fi # as_fn_arith
11182
11183
11184if expr a : '\(a\)' >/dev/null 2>&1 &&
11185 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11186 as_expr=expr
11187else
11188 as_expr=false
11189fi
11190
11191if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11192 as_basename=basename
11193else
11194 as_basename=false
11195fi
11196
11197if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11198 as_dirname=dirname
11199else
11200 as_dirname=false
11201fi
11202
11203as_me=`$as_basename -- "$0" ||
11204$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11205 X"$0" : 'X\(//\)$' \| \
11206 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11207$as_echo X/"$0" |
11208 sed '/^.*\/\([^/][^/]*\)\/*$/{
11209 s//\1/
11210 q
11211 }
11212 /^X\/\(\/\/\)$/{
11213 s//\1/
11214 q
11215 }
11216 /^X\/\(\/\).*/{
11217 s//\1/
11218 q
11219 }
11220 s/.*/./; q'`
11221
11222# Avoid depending upon Character Ranges.
11223as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11224as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11225as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11226as_cr_digits='0123456789'
11227as_cr_alnum=$as_cr_Letters$as_cr_digits
11228
11229ECHO_C= ECHO_N= ECHO_T=
11230case `echo -n x` in #(((((
11231-n*)
11232 case `echo 'xy\c'` in
11233 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11234 xy) ECHO_C='\c';;
11235 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11236 ECHO_T=' ';;
11237 esac;;
11238*)
11239 ECHO_N='-n';;
11240esac
11241
11242rm -f conf$$ conf$$.exe conf$$.file
11243if test -d conf$$.dir; then
11244 rm -f conf$$.dir/conf$$.file
11245else
11246 rm -f conf$$.dir
11247 mkdir conf$$.dir 2>/dev/null
11248fi
11249if (echo >conf$$.file) 2>/dev/null; then
11250 if ln -s conf$$.file conf$$ 2>/dev/null; then
11251 as_ln_s='ln -s'
11252 # ... but there are two gotchas:
11253 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11254 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11255 # In both cases, we have to default to `cp -p'.
11256 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11257 as_ln_s='cp -p'
11258 elif ln conf$$.file conf$$ 2>/dev/null; then
11259 as_ln_s=ln
11260 else
11261 as_ln_s='cp -p'
11262 fi
11263else
11264 as_ln_s='cp -p'
11265fi
11266rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11267rmdir conf$$.dir 2>/dev/null
11268
11269
11270# as_fn_mkdir_p
11271# -------------
11272# Create "$as_dir" as a directory, including parents if necessary.
11273as_fn_mkdir_p ()
11274{
11275
11276 case $as_dir in #(
11277 -*) as_dir=./$as_dir;;
11278 esac
11279 test -d "$as_dir" || eval $as_mkdir_p || {
11280 as_dirs=
11281 while :; do
11282 case $as_dir in #(
11283 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11284 *) as_qdir=$as_dir;;
11285 esac
11286 as_dirs="'$as_qdir' $as_dirs"
11287 as_dir=`$as_dirname -- "$as_dir" ||
11288$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11289 X"$as_dir" : 'X\(//\)[^/]' \| \
11290 X"$as_dir" : 'X\(//\)$' \| \
11291 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11292$as_echo X"$as_dir" |
11293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11294 s//\1/
11295 q
11296 }
11297 /^X\(\/\/\)[^/].*/{
11298 s//\1/
11299 q
11300 }
11301 /^X\(\/\/\)$/{
11302 s//\1/
11303 q
11304 }
11305 /^X\(\/\).*/{
11306 s//\1/
11307 q
11308 }
11309 s/.*/./; q'`
11310 test -d "$as_dir" && break
11311 done
11312 test -z "$as_dirs" || eval "mkdir $as_dirs"
11313 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11314
11315
11316} # as_fn_mkdir_p
11317if mkdir -p . 2>/dev/null; then
11318 as_mkdir_p='mkdir -p "$as_dir"'
11319else
11320 test -d ./-p && rmdir ./-p
11321 as_mkdir_p=false
11322fi
11323
11324if test -x / >/dev/null 2>&1; then
11325 as_test_x='test -x'
11326else
11327 if ls -dL / >/dev/null 2>&1; then
11328 as_ls_L_option=L
11329 else
11330 as_ls_L_option=
11331 fi
11332 as_test_x='
11333 eval sh -c '\''
11334 if test -d "$1"; then
11335 test -d "$1/.";
11336 else
11337 case $1 in #(
11338 -*)set "./$1";;
11339 esac;
11340 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11341 ???[sx]*):;;*)false;;esac;fi
11342 '\'' sh
11343 '
11344fi
11345as_executable_p=$as_test_x
11346
11347# Sed expression to map a string onto a valid CPP name.
11348as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11349
11350# Sed expression to map a string onto a valid variable name.
11351as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11352
11353
11354exec 6>&1
11355## ----------------------------------- ##
11356## Main body of $CONFIG_STATUS script. ##
11357## ----------------------------------- ##
11358_ASEOF
11359test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11360
11361cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11362# Save the log message, to keep $0 and so on meaningful, and to
11363# report actual input values of CONFIG_FILES etc. instead of their
11364# values after options handling.
11365ac_log="
11366This file was extended by iperf $as_me 3.0a4, which was
11367generated by GNU Autoconf 2.65. Invocation command line was
11368
11369 CONFIG_FILES = $CONFIG_FILES
11370 CONFIG_HEADERS = $CONFIG_HEADERS
11371 CONFIG_LINKS = $CONFIG_LINKS
11372 CONFIG_COMMANDS = $CONFIG_COMMANDS
11373 $ $0 $@
11374
11375on `(hostname || uname -n) 2>/dev/null | sed 1q`
11376"
11377
11378_ACEOF
11379
11380case $ac_config_files in *"
11381"*) set x $ac_config_files; shift; ac_config_files=$*;;
11382esac
11383
11384case $ac_config_headers in *"
11385"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11386esac
11387
11388
11389cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11390# Files that config.status was made for.
11391config_files="$ac_config_files"
11392config_headers="$ac_config_headers"
11393config_commands="$ac_config_commands"
11394
11395_ACEOF
11396
11397cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11398ac_cs_usage="\
11399\`$as_me' instantiates files and other configuration actions
11400from templates according to the current configuration. Unless the files
11401and actions are specified as TAGs, all are instantiated by default.
11402
11403Usage: $0 [OPTION]... [TAG]...
11404
11405 -h, --help print this help, then exit
11406 -V, --version print version number and configuration settings, then exit
11407 --config print configuration, then exit
11408 -q, --quiet, --silent
11409 do not print progress messages
11410 -d, --debug don't remove temporary files
11411 --recheck update $as_me by reconfiguring in the same conditions
11412 --file=FILE[:TEMPLATE]
11413 instantiate the configuration file FILE
11414 --header=FILE[:TEMPLATE]
11415 instantiate the configuration header FILE
11416
11417Configuration files:
11418$config_files
11419
11420Configuration headers:
11421$config_headers
11422
11423Configuration commands:
11424$config_commands
11425
11426Report bugs to <iperf-users@lists.sourceforge.net>."
11427
11428_ACEOF
11429cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11430ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11431ac_cs_version="\\
11432iperf config.status 3.0a4
11433configured by $0, generated by GNU Autoconf 2.65,
11434 with options \\"\$ac_cs_config\\"
11435
11436Copyright (C) 2009 Free Software Foundation, Inc.
11437This config.status script is free software; the Free Software Foundation
11438gives unlimited permission to copy, distribute and modify it."
11439
11440ac_pwd='$ac_pwd'
11441srcdir='$srcdir'
11442INSTALL='$INSTALL'
11443AWK='$AWK'
11444test -n "\$AWK" || AWK=awk
11445_ACEOF
11446
11447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11448# The default lists apply if the user does not specify any file.
11449ac_need_defaults=:
11450while test $# != 0
11451do
11452 case $1 in
11453 --*=*)
11454 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11455 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11456 ac_shift=:
11457 ;;
11458 *)
11459 ac_option=$1
11460 ac_optarg=$2
11461 ac_shift=shift
11462 ;;
11463 esac
11464
11465 case $ac_option in
11466 # Handling of the options.
11467 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11468 ac_cs_recheck=: ;;
11469 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11470 $as_echo "$ac_cs_version"; exit ;;
11471 --config | --confi | --conf | --con | --co | --c )
11472 $as_echo "$ac_cs_config"; exit ;;
11473 --debug | --debu | --deb | --de | --d | -d )
11474 debug=: ;;
11475 --file | --fil | --fi | --f )
11476 $ac_shift
11477 case $ac_optarg in
11478 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11479 esac
11480 as_fn_append CONFIG_FILES " '$ac_optarg'"
11481 ac_need_defaults=false;;
11482 --header | --heade | --head | --hea )
11483 $ac_shift
11484 case $ac_optarg in
11485 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11486 esac
11487 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11488 ac_need_defaults=false;;
11489 --he | --h)
11490 # Conflict between --help and --header
11491 as_fn_error "ambiguous option: \`$1'
11492Try \`$0 --help' for more information.";;
11493 --help | --hel | -h )
11494 $as_echo "$ac_cs_usage"; exit ;;
11495 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11496 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11497 ac_cs_silent=: ;;
11498
11499 # This is an error.
11500 -*) as_fn_error "unrecognized option: \`$1'
11501Try \`$0 --help' for more information." ;;
11502
11503 *) as_fn_append ac_config_targets " $1"
11504 ac_need_defaults=false ;;
11505
11506 esac
11507 shift
11508done
11509
11510ac_configure_extra_args=
11511
11512if $ac_cs_silent; then
11513 exec 6>/dev/null
11514 ac_configure_extra_args="$ac_configure_extra_args --silent"
11515fi
11516
11517_ACEOF
11518cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11519if \$ac_cs_recheck; then
11520 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11521 shift
11522 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11523 CONFIG_SHELL='$SHELL'
11524 export CONFIG_SHELL
11525 exec "\$@"
11526fi
11527
11528_ACEOF
11529cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11530exec 5>>config.log
11531{
11532 echo
11533 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11534## Running $as_me. ##
11535_ASBOX
11536 $as_echo "$ac_log"
11537} >&5
11538
11539_ACEOF
11540cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11541#
11542# INIT-COMMANDS
11543#
11544AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11545
11546
11547# The HP-UX ksh and POSIX shell print the target directory to stdout
11548# if CDPATH is set.
11549(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11550
11551sed_quote_subst='$sed_quote_subst'
11552double_quote_subst='$double_quote_subst'
11553delay_variable_subst='$delay_variable_subst'
11554macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11555macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11556enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11557enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11558pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11559enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11560SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11561ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11562host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11563host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11564host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11565build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11566build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11567build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11568SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11569Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11570GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11571EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11572FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11573LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11574NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11575LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11576max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11577ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11578exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11579lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11580lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11581lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11582reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11583reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11584OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11585deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11586file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11587AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11588AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11589STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11590RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11591old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11592old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11593old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11594lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11595CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11596CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11597compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11598GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11599lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11600lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11601lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11602lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
11603objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11604MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11605lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11606lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11607lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11608lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11609lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11610need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11611DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11612NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11613LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11614OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
11615OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
11616libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
11617shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
11618extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11619archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
11620enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
11621export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
11622whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
11623compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
11624old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
11625old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11626archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
11627archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11628module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
11629module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11630with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
11631allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
11632no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
11633hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
11634hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
11635hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
11636hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
11637hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
11638hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
11639hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
11640hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
11641inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
11642link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
11643fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
11644always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
11645export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
11646exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
11647include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
11648prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
11649file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
11650variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
11651need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
11652need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
11653version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
11654runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
11655shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
11656shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
11657libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
11658library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
11659soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
11660install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
11661postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11662postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11663finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
11664finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
11665hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
11666sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
11667sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
11668hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
11669enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
11670enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
11671enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
11672old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
11673striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
11674
11675LTCC='$LTCC'
11676LTCFLAGS='$LTCFLAGS'
11677compiler='$compiler_DEFAULT'
11678
11679# A function that is used when there is no print builtin or printf.
11680func_fallback_echo ()
11681{
11682 eval 'cat <<_LTECHO_EOF
11683\$1
11684_LTECHO_EOF'
11685}
11686
11687# Quote evaled strings.
11688for var in SHELL \
11689ECHO \
11690SED \
11691GREP \
11692EGREP \
11693FGREP \
11694LD \
11695NM \
11696LN_S \
11697lt_SP2NL \
11698lt_NL2SP \
11699reload_flag \
11700OBJDUMP \
11701deplibs_check_method \
11702file_magic_cmd \
11703AR \
11704AR_FLAGS \
11705STRIP \
11706RANLIB \
11707CC \
11708CFLAGS \
11709compiler \
11710lt_cv_sys_global_symbol_pipe \
11711lt_cv_sys_global_symbol_to_cdecl \
11712lt_cv_sys_global_symbol_to_c_name_address \
11713lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
11714lt_prog_compiler_no_builtin_flag \
11715lt_prog_compiler_wl \
11716lt_prog_compiler_pic \
11717lt_prog_compiler_static \
11718lt_cv_prog_compiler_c_o \
11719need_locks \
11720DSYMUTIL \
11721NMEDIT \
11722LIPO \
11723OTOOL \
11724OTOOL64 \
11725shrext_cmds \
11726export_dynamic_flag_spec \
11727whole_archive_flag_spec \
11728compiler_needs_object \
11729with_gnu_ld \
11730allow_undefined_flag \
11731no_undefined_flag \
11732hardcode_libdir_flag_spec \
11733hardcode_libdir_flag_spec_ld \
11734hardcode_libdir_separator \
11735fix_srcfile_path \
11736exclude_expsyms \
11737include_expsyms \
11738file_list_spec \
11739variables_saved_for_relink \
11740libname_spec \
11741library_names_spec \
11742soname_spec \
11743install_override_mode \
11744finish_eval \
11745old_striplib \
11746striplib; do
11747 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11748 *[\\\\\\\`\\"\\\$]*)
11749 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
11750 ;;
11751 *)
11752 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11753 ;;
11754 esac
11755done
11756
11757# Double-quote double-evaled strings.
11758for var in reload_cmds \
11759old_postinstall_cmds \
11760old_postuninstall_cmds \
11761old_archive_cmds \
11762extract_expsyms_cmds \
11763old_archive_from_new_cmds \
11764old_archive_from_expsyms_cmds \
11765archive_cmds \
11766archive_expsym_cmds \
11767module_cmds \
11768module_expsym_cmds \
11769export_symbols_cmds \
11770prelink_cmds \
11771postinstall_cmds \
11772postuninstall_cmds \
11773finish_cmds \
11774sys_lib_search_path_spec \
11775sys_lib_dlsearch_path_spec; do
11776 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
11777 *[\\\\\\\`\\"\\\$]*)
11778 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
11779 ;;
11780 *)
11781 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
11782 ;;
11783 esac
11784done
11785
11786ac_aux_dir='$ac_aux_dir'
11787xsi_shell='$xsi_shell'
11788lt_shell_append='$lt_shell_append'
11789
11790# See if we are running on zsh, and set the options which allow our
11791# commands through without removal of \ escapes INIT.
11792if test -n "\${ZSH_VERSION+set}" ; then
11793 setopt NO_GLOB_SUBST
11794fi
11795
11796
11797 PACKAGE='$PACKAGE'
11798 VERSION='$VERSION'
11799 TIMESTAMP='$TIMESTAMP'
11800 RM='$RM'
11801 ofile='$ofile'
11802
11803
11804
11805
11806_ACEOF
11807
11808cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11809
11810# Handling of arguments.
11811for ac_config_target in $ac_config_targets
11812do
11813 case $ac_config_target in
11814 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
11815 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
11816 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
11817 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11818 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
11819
11820 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11821 esac
11822done
11823
11824
11825# If the user did not use the arguments to specify the items to instantiate,
11826# then the envvar interface is used. Set only those that are not.
11827# We use the long form for the default assignment because of an extremely
11828# bizarre bug on SunOS 4.1.3.
11829if $ac_need_defaults; then
11830 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11831 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11832 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11833fi
11834
11835# Have a temporary directory for convenience. Make it in the build tree
11836# simply because there is no reason against having it here, and in addition,
11837# creating and moving files from /tmp can sometimes cause problems.
11838# Hook for its removal unless debugging.
11839# Note that there is a small window in which the directory will not be cleaned:
11840# after its creation but before its name has been assigned to `$tmp'.
11841$debug ||
11842{
11843 tmp=
11844 trap 'exit_status=$?
11845 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11846' 0
11847 trap 'as_fn_exit 1' 1 2 13 15
11848}
11849# Create a (secure) tmp directory for tmp files.
11850
11851{
11852 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11853 test -n "$tmp" && test -d "$tmp"
11854} ||
11855{
11856 tmp=./conf$$-$RANDOM
11857 (umask 077 && mkdir "$tmp")
11858} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11859
11860# Set up the scripts for CONFIG_FILES section.
11861# No need to generate them if there are no CONFIG_FILES.
11862# This happens for instance with `./config.status config.h'.
11863if test -n "$CONFIG_FILES"; then
11864
11865
11866ac_cr=`echo X | tr X '\015'`
11867# On cygwin, bash can eat \r inside `` if the user requested igncr.
11868# But we know of no other shell where ac_cr would be empty at this
11869# point, so we can use a bashism as a fallback.
11870if test "x$ac_cr" = x; then
11871 eval ac_cr=\$\'\\r\'
11872fi
11873ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11874if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11875 ac_cs_awk_cr='\r'
11876else
11877 ac_cs_awk_cr=$ac_cr
11878fi
11879
11880echo 'BEGIN {' >"$tmp/subs1.awk" &&
11881_ACEOF
11882
11883
11884{
11885 echo "cat >conf$$subs.awk <<_ACEOF" &&
11886 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11887 echo "_ACEOF"
11888} >conf$$subs.sh ||
11889 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11890ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11891ac_delim='%!_!# '
11892for ac_last_try in false false false false false :; do
11893 . ./conf$$subs.sh ||
11894 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11895
11896 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11897 if test $ac_delim_n = $ac_delim_num; then
11898 break
11899 elif $ac_last_try; then
11900 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11901 else
11902 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11903 fi
11904done
11905rm -f conf$$subs.sh
11906
11907cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11908cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11909_ACEOF
11910sed -n '
11911h
11912s/^/S["/; s/!.*/"]=/
11913p
11914g
11915s/^[^!]*!//
11916:repl
11917t repl
11918s/'"$ac_delim"'$//
11919t delim
11920:nl
11921h
11922s/\(.\{148\}\)..*/\1/
11923t more1
11924s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11925p
11926n
11927b repl
11928:more1
11929s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11930p
11931g
11932s/.\{148\}//
11933t nl
11934:delim
11935h
11936s/\(.\{148\}\)..*/\1/
11937t more2
11938s/["\\]/\\&/g; s/^/"/; s/$/"/
11939p
11940b
11941:more2
11942s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11943p
11944g
11945s/.\{148\}//
11946t delim
11947' <conf$$subs.awk | sed '
11948/^[^""]/{
11949 N
11950 s/\n//
11951}
11952' >>$CONFIG_STATUS || ac_write_fail=1
11953rm -f conf$$subs.awk
11954cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11955_ACAWK
11956cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11957 for (key in S) S_is_set[key] = 1
11958 FS = ""
11959
11960}
11961{
11962 line = $ 0
11963 nfields = split(line, field, "@")
11964 substed = 0
11965 len = length(field[1])
11966 for (i = 2; i < nfields; i++) {
11967 key = field[i]
11968 keylen = length(key)
11969 if (S_is_set[key]) {
11970 value = S[key]
11971 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11972 len += length(value) + length(field[++i])
11973 substed = 1
11974 } else
11975 len += 1 + keylen
11976 }
11977
11978 print line
11979}
11980
11981_ACAWK
11982_ACEOF
11983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11984if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11985 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11986else
11987 cat
11988fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11989 || as_fn_error "could not setup config files machinery" "$LINENO" 5
11990_ACEOF
11991
11992# VPATH may cause trouble with some makes, so we remove $(srcdir),
11993# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11994# trailing colons and then remove the whole line if VPATH becomes empty
11995# (actually we leave an empty line to preserve line numbers).
11996if test "x$srcdir" = x.; then
11997 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11998s/:*\$(srcdir):*/:/
11999s/:*\${srcdir}:*/:/
12000s/:*@srcdir@:*/:/
12001s/^\([^=]*=[ ]*\):*/\1/
12002s/:*$//
12003s/^[^=]*=[ ]*$//
12004}'
12005fi
12006
12007cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12008fi # test -n "$CONFIG_FILES"
12009
12010# Set up the scripts for CONFIG_HEADERS section.
12011# No need to generate them if there are no CONFIG_HEADERS.
12012# This happens for instance with `./config.status Makefile'.
12013if test -n "$CONFIG_HEADERS"; then
12014cat >"$tmp/defines.awk" <<\_ACAWK ||
12015BEGIN {
12016_ACEOF
12017
12018# Transform confdefs.h into an awk script `defines.awk', embedded as
12019# here-document in config.status, that substitutes the proper values into
12020# config.h.in to produce config.h.
12021
12022# Create a delimiter string that does not exist in confdefs.h, to ease
12023# handling of long lines.
12024ac_delim='%!_!# '
12025for ac_last_try in false false :; do
12026 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12027 if test -z "$ac_t"; then
12028 break
12029 elif $ac_last_try; then
12030 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12031 else
12032 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12033 fi
12034done
12035
12036# For the awk script, D is an array of macro values keyed by name,
12037# likewise P contains macro parameters if any. Preserve backslash
12038# newline sequences.
12039
12040ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12041sed -n '
12042s/.\{148\}/&'"$ac_delim"'/g
12043t rset
12044:rset
12045s/^[ ]*#[ ]*define[ ][ ]*/ /
12046t def
12047d
12048:def
12049s/\\$//
12050t bsnl
12051s/["\\]/\\&/g
12052s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12053D["\1"]=" \3"/p
12054s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12055d
12056:bsnl
12057s/["\\]/\\&/g
12058s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12059D["\1"]=" \3\\\\\\n"\\/p
12060t cont
12061s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12062t cont
12063d
12064:cont
12065n
12066s/.\{148\}/&'"$ac_delim"'/g
12067t clear
12068:clear
12069s/\\$//
12070t bsnlc
12071s/["\\]/\\&/g; s/^/"/; s/$/"/p
12072d
12073:bsnlc
12074s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12075b cont
12076' <confdefs.h | sed '
12077s/'"$ac_delim"'/"\\\
12078"/g' >>$CONFIG_STATUS || ac_write_fail=1
12079
12080cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12081 for (key in D) D_is_set[key] = 1
12082 FS = ""
12083}
12084/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12085 line = \$ 0
12086 split(line, arg, " ")
12087 if (arg[1] == "#") {
12088 defundef = arg[2]
12089 mac1 = arg[3]
12090 } else {
12091 defundef = substr(arg[1], 2)
12092 mac1 = arg[2]
12093 }
12094 split(mac1, mac2, "(") #)
12095 macro = mac2[1]
12096 prefix = substr(line, 1, index(line, defundef) - 1)
12097 if (D_is_set[macro]) {
12098 # Preserve the white space surrounding the "#".
12099 print prefix "define", macro P[macro] D[macro]
12100 next
12101 } else {
12102 # Replace #undef with comments. This is necessary, for example,
12103 # in the case of _POSIX_SOURCE, which is predefined and required
12104 # on some systems where configure will not decide to define it.
12105 if (defundef == "undef") {
12106 print "/*", prefix defundef, macro, "*/"
12107 next
12108 }
12109 }
12110}
12111{ print }
12112_ACAWK
12113_ACEOF
12114cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12115 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12116fi # test -n "$CONFIG_HEADERS"
12117
12118
12119eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12120shift
12121for ac_tag
12122do
12123 case $ac_tag in
12124 :[FHLC]) ac_mode=$ac_tag; continue;;
12125 esac
12126 case $ac_mode$ac_tag in
12127 :[FHL]*:*);;
12128 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12129 :[FH]-) ac_tag=-:-;;
12130 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12131 esac
12132 ac_save_IFS=$IFS
12133 IFS=:
12134 set x $ac_tag
12135 IFS=$ac_save_IFS
12136 shift
12137 ac_file=$1
12138 shift
12139
12140 case $ac_mode in
12141 :L) ac_source=$1;;
12142 :[FH])
12143 ac_file_inputs=
12144 for ac_f
12145 do
12146 case $ac_f in
12147 -) ac_f="$tmp/stdin";;
12148 *) # Look for the file first in the build tree, then in the source tree
12149 # (if the path is not absolute). The absolute path cannot be DOS-style,
12150 # because $ac_f cannot contain `:'.
12151 test -f "$ac_f" ||
12152 case $ac_f in
12153 [\\/$]*) false;;
12154 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12155 esac ||
12156 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12157 esac
12158 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12159 as_fn_append ac_file_inputs " '$ac_f'"
12160 done
12161
12162 # Let's still pretend it is `configure' which instantiates (i.e., don't
12163 # use $as_me), people would be surprised to read:
12164 # /* config.h. Generated by config.status. */
12165 configure_input='Generated from '`
12166 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12167 `' by configure.'
12168 if test x"$ac_file" != x-; then
12169 configure_input="$ac_file. $configure_input"
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12171$as_echo "$as_me: creating $ac_file" >&6;}
12172 fi
12173 # Neutralize special characters interpreted by sed in replacement strings.
12174 case $configure_input in #(
12175 *\&* | *\|* | *\\* )
12176 ac_sed_conf_input=`$as_echo "$configure_input" |
12177 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12178 *) ac_sed_conf_input=$configure_input;;
12179 esac
12180
12181 case $ac_tag in
12182 *:-:* | *:-) cat >"$tmp/stdin" \
12183 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12184 esac
12185 ;;
12186 esac
12187
12188 ac_dir=`$as_dirname -- "$ac_file" ||
12189$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12190 X"$ac_file" : 'X\(//\)[^/]' \| \
12191 X"$ac_file" : 'X\(//\)$' \| \
12192 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12193$as_echo X"$ac_file" |
12194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12195 s//\1/
12196 q
12197 }
12198 /^X\(\/\/\)[^/].*/{
12199 s//\1/
12200 q
12201 }
12202 /^X\(\/\/\)$/{
12203 s//\1/
12204 q
12205 }
12206 /^X\(\/\).*/{
12207 s//\1/
12208 q
12209 }
12210 s/.*/./; q'`
12211 as_dir="$ac_dir"; as_fn_mkdir_p
12212 ac_builddir=.
12213
12214case "$ac_dir" in
12215.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12216*)
12217 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12218 # A ".." for each directory in $ac_dir_suffix.
12219 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12220 case $ac_top_builddir_sub in
12221 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12222 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12223 esac ;;
12224esac
12225ac_abs_top_builddir=$ac_pwd
12226ac_abs_builddir=$ac_pwd$ac_dir_suffix
12227# for backward compatibility:
12228ac_top_builddir=$ac_top_build_prefix
12229
12230case $srcdir in
12231 .) # We are building in place.
12232 ac_srcdir=.
12233 ac_top_srcdir=$ac_top_builddir_sub
12234 ac_abs_top_srcdir=$ac_pwd ;;
12235 [\\/]* | ?:[\\/]* ) # Absolute name.
12236 ac_srcdir=$srcdir$ac_dir_suffix;
12237 ac_top_srcdir=$srcdir
12238 ac_abs_top_srcdir=$srcdir ;;
12239 *) # Relative name.
12240 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12241 ac_top_srcdir=$ac_top_build_prefix$srcdir
12242 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12243esac
12244ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12245
12246
12247 case $ac_mode in
12248 :F)
12249 #
12250 # CONFIG_FILE
12251 #
12252
12253 case $INSTALL in
12254 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12255 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12256 esac
12257_ACEOF
12258
12259cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12260# If the template does not know about datarootdir, expand it.
12261# FIXME: This hack should be removed a few years after 2.60.
12262ac_datarootdir_hack=; ac_datarootdir_seen=
12263ac_sed_dataroot='
12264/datarootdir/ {
12265 p
12266 q
12267}
12268/@datadir@/p
12269/@docdir@/p
12270/@infodir@/p
12271/@localedir@/p
12272/@mandir@/p'
12273case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12274*datarootdir*) ac_datarootdir_seen=yes;;
12275*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12277$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12278_ACEOF
12279cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12280 ac_datarootdir_hack='
12281 s&@datadir@&$datadir&g
12282 s&@docdir@&$docdir&g
12283 s&@infodir@&$infodir&g
12284 s&@localedir@&$localedir&g
12285 s&@mandir@&$mandir&g
12286 s&\\\${datarootdir}&$datarootdir&g' ;;
12287esac
12288_ACEOF
12289
12290# Neutralize VPATH when `$srcdir' = `.'.
12291# Shell code in configure.ac might set extrasub.
12292# FIXME: do we really want to maintain this feature?
12293cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12294ac_sed_extra="$ac_vpsub
12295$extrasub
12296_ACEOF
12297cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12298:t
12299/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12300s|@configure_input@|$ac_sed_conf_input|;t t
12301s&@top_builddir@&$ac_top_builddir_sub&;t t
12302s&@top_build_prefix@&$ac_top_build_prefix&;t t
12303s&@srcdir@&$ac_srcdir&;t t
12304s&@abs_srcdir@&$ac_abs_srcdir&;t t
12305s&@top_srcdir@&$ac_top_srcdir&;t t
12306s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12307s&@builddir@&$ac_builddir&;t t
12308s&@abs_builddir@&$ac_abs_builddir&;t t
12309s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12310s&@INSTALL@&$ac_INSTALL&;t t
12311$ac_datarootdir_hack
12312"
12313eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12314 || as_fn_error "could not create $ac_file" "$LINENO" 5
12315
12316test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12317 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12318 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12320which seems to be undefined. Please make sure it is defined." >&5
12321$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12322which seems to be undefined. Please make sure it is defined." >&2;}
12323
12324 rm -f "$tmp/stdin"
12325 case $ac_file in
12326 -) cat "$tmp/out" && rm -f "$tmp/out";;
12327 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12328 esac \
12329 || as_fn_error "could not create $ac_file" "$LINENO" 5
12330 ;;
12331 :H)
12332 #
12333 # CONFIG_HEADER
12334 #
12335 if test x"$ac_file" != x-; then
12336 {
12337 $as_echo "/* $configure_input */" \
12338 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12339 } >"$tmp/config.h" \
12340 || as_fn_error "could not create $ac_file" "$LINENO" 5
12341 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12343$as_echo "$as_me: $ac_file is unchanged" >&6;}
12344 else
12345 rm -f "$ac_file"
12346 mv "$tmp/config.h" "$ac_file" \
12347 || as_fn_error "could not create $ac_file" "$LINENO" 5
12348 fi
12349 else
12350 $as_echo "/* $configure_input */" \
12351 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12352 || as_fn_error "could not create -" "$LINENO" 5
12353 fi
12354# Compute "$ac_file"'s index in $config_headers.
12355_am_stamp_count=1
12356for _am_header in $config_headers :; do
12357 case $_am_header in
12358 "$ac_file" | "$ac_file":* )
12359 break ;;
12360 * )
12361 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12362 esac
12363done
12364echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
12365$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12366 X"$ac_file" : 'X\(//\)[^/]' \| \
12367 X"$ac_file" : 'X\(//\)$' \| \
12368 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12369$as_echo X"$ac_file" |
12370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12371 s//\1/
12372 q
12373 }
12374 /^X\(\/\/\)[^/].*/{
12375 s//\1/
12376 q
12377 }
12378 /^X\(\/\/\)$/{
12379 s//\1/
12380 q
12381 }
12382 /^X\(\/\).*/{
12383 s//\1/
12384 q
12385 }
12386 s/.*/./; q'`/stamp-h$_am_stamp_count
12387 ;;
12388
12389 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12390$as_echo "$as_me: executing $ac_file commands" >&6;}
12391 ;;
12392 esac
12393
12394
12395 case $ac_file$ac_mode in
12396 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
12397 # Strip MF so we end up with the name of the file.
12398 mf=`echo "$mf" | sed -e 's/:.*$//'`
12399 # Check whether this is an Automake generated Makefile or not.
12400 # We used to match only the files named `Makefile.in', but
12401 # some people rename them; so instead we look at the file content.
12402 # Grep'ing the first line is not enough: some people post-process
12403 # each Makefile.in and add a new line on top of each file to say so.
12404 # So let's grep whole file.
12405 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
12406 dirpart=`$as_dirname -- "$mf" ||
12407$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12408 X"$mf" : 'X\(//\)[^/]' \| \
12409 X"$mf" : 'X\(//\)$' \| \
12410 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12411$as_echo X"$mf" |
12412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12413 s//\1/
12414 q
12415 }
12416 /^X\(\/\/\)[^/].*/{
12417 s//\1/
12418 q
12419 }
12420 /^X\(\/\/\)$/{
12421 s//\1/
12422 q
12423 }
12424 /^X\(\/\).*/{
12425 s//\1/
12426 q
12427 }
12428 s/.*/./; q'`
12429 else
12430 continue
12431 fi
12432 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
12433 # Extract the definition of DEP_FILES from the Makefile without
12434 # running `make'.
12435 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
12436 test -z "$DEPDIR" && continue
12437 # When using ansi2knr, U may be empty or an underscore; expand it
12438 U=`sed -n -e '/^U = / s///p' < "$mf"`
12439 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
12440 # We invoke sed twice because it is the simplest approach to
12441 # changing $(DEPDIR) to its actual value in the expansion.
12442 for file in `sed -n -e '
12443 /^DEP_FILES = .*\\\\$/ {
12444 s/^DEP_FILES = //
12445 :loop
12446 s/\\\\$//
12447 p
12448 n
12449 /\\\\$/ b loop
12450 p
12451 }
12452 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
12453 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12454 # Make sure the directory exists.
12455 test -f "$dirpart/$file" && continue
12456 fdir=`$as_dirname -- "$file" ||
12457$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12458 X"$file" : 'X\(//\)[^/]' \| \
12459 X"$file" : 'X\(//\)$' \| \
12460 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12461$as_echo X"$file" |
12462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12463 s//\1/
12464 q
12465 }
12466 /^X\(\/\/\)[^/].*/{
12467 s//\1/
12468 q
12469 }
12470 /^X\(\/\/\)$/{
12471 s//\1/
12472 q
12473 }
12474 /^X\(\/\).*/{
12475 s//\1/
12476 q
12477 }
12478 s/.*/./; q'`
12479 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12480 # echo "creating $dirpart/$file"
12481 echo '# dummy' > "$dirpart/$file"
12482 done
12483done
12484 ;;
12485 "libtool":C)
12486
12487 # See if we are running on zsh, and set the options which allow our
12488 # commands through without removal of \ escapes.
12489 if test -n "${ZSH_VERSION+set}" ; then
12490 setopt NO_GLOB_SUBST
12491 fi
12492
12493 cfgfile="${ofile}T"
12494 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12495 $RM "$cfgfile"
12496
12497 cat <<_LT_EOF >> "$cfgfile"
12498#! $SHELL
12499
12500# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12501# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12502# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12503# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12504#
12505# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12506# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
12507# Inc.
12508# Written by Gordon Matzigkeit, 1996
12509#
12510# This file is part of GNU Libtool.
12511#
12512# GNU Libtool is free software; you can redistribute it and/or
12513# modify it under the terms of the GNU General Public License as
12514# published by the Free Software Foundation; either version 2 of
12515# the License, or (at your option) any later version.
12516#
12517# As a special exception to the GNU General Public License,
12518# if you distribute this file as part of a program or library that
12519# is built using GNU Libtool, you may include this file under the
12520# same distribution terms that you use for the rest of that program.
12521#
12522# GNU Libtool is distributed in the hope that it will be useful,
12523# but WITHOUT ANY WARRANTY; without even the implied warranty of
12524# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12525# GNU General Public License for more details.
12526#
12527# You should have received a copy of the GNU General Public License
12528# along with GNU Libtool; see the file COPYING. If not, a copy
12529# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12530# obtained by writing to the Free Software Foundation, Inc.,
12531# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12532
12533
12534# The names of the tagged configurations supported by this script.
12535available_tags=""
12536
12537# ### BEGIN LIBTOOL CONFIG
12538
12539# Which release of libtool.m4 was used?
12540macro_version=$macro_version
12541macro_revision=$macro_revision
12542
12543# Whether or not to build shared libraries.
12544build_libtool_libs=$enable_shared
12545
12546# Whether or not to build static libraries.
12547build_old_libs=$enable_static
12548
12549# What type of objects to build.
12550pic_mode=$pic_mode
12551
12552# Whether or not to optimize for fast installation.
12553fast_install=$enable_fast_install
12554
12555# Shell to use when invoking shell scripts.
12556SHELL=$lt_SHELL
12557
12558# An echo program that protects backslashes.
12559ECHO=$lt_ECHO
12560
12561# The host system.
12562host_alias=$host_alias
12563host=$host
12564host_os=$host_os
12565
12566# The build system.
12567build_alias=$build_alias
12568build=$build
12569build_os=$build_os
12570
12571# A sed program that does not truncate output.
12572SED=$lt_SED
12573
12574# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12575Xsed="\$SED -e 1s/^X//"
12576
12577# A grep program that handles long lines.
12578GREP=$lt_GREP
12579
12580# An ERE matcher.
12581EGREP=$lt_EGREP
12582
12583# A literal string matcher.
12584FGREP=$lt_FGREP
12585
12586# A BSD- or MS-compatible name lister.
12587NM=$lt_NM
12588
12589# Whether we need soft or hard links.
12590LN_S=$lt_LN_S
12591
12592# What is the maximum length of a command?
12593max_cmd_len=$max_cmd_len
12594
12595# Object file suffix (normally "o").
12596objext=$ac_objext
12597
12598# Executable file suffix (normally "").
12599exeext=$exeext
12600
12601# whether the shell understands "unset".
12602lt_unset=$lt_unset
12603
12604# turn spaces into newlines.
12605SP2NL=$lt_lt_SP2NL
12606
12607# turn newlines into spaces.
12608NL2SP=$lt_lt_NL2SP
12609
12610# An object symbol dumper.
12611OBJDUMP=$lt_OBJDUMP
12612
12613# Method to check whether dependent libraries are shared objects.
12614deplibs_check_method=$lt_deplibs_check_method
12615
12616# Command to use when deplibs_check_method == "file_magic".
12617file_magic_cmd=$lt_file_magic_cmd
12618
12619# The archiver.
12620AR=$lt_AR
12621AR_FLAGS=$lt_AR_FLAGS
12622
12623# A symbol stripping program.
12624STRIP=$lt_STRIP
12625
12626# Commands used to install an old-style archive.
12627RANLIB=$lt_RANLIB
12628old_postinstall_cmds=$lt_old_postinstall_cmds
12629old_postuninstall_cmds=$lt_old_postuninstall_cmds
12630
12631# Whether to use a lock for old archive extraction.
12632lock_old_archive_extraction=$lock_old_archive_extraction
12633
12634# A C compiler.
12635LTCC=$lt_CC
12636
12637# LTCC compiler flags.
12638LTCFLAGS=$lt_CFLAGS
12639
12640# Take the output of nm and produce a listing of raw symbols and C names.
12641global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12642
12643# Transform the output of nm in a proper C declaration.
12644global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12645
12646# Transform the output of nm in a C name address pair.
12647global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12648
12649# Transform the output of nm in a C name address pair when lib prefix is needed.
12650global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
12651
12652# The name of the directory that contains temporary libtool files.
12653objdir=$objdir
12654
12655# Used to examine libraries when file_magic_cmd begins with "file".
12656MAGIC_CMD=$MAGIC_CMD
12657
12658# Must we lock files when doing compilation?
12659need_locks=$lt_need_locks
12660
12661# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
12662DSYMUTIL=$lt_DSYMUTIL
12663
12664# Tool to change global to local symbols on Mac OS X.
12665NMEDIT=$lt_NMEDIT
12666
12667# Tool to manipulate fat objects and archives on Mac OS X.
12668LIPO=$lt_LIPO
12669
12670# ldd/readelf like tool for Mach-O binaries on Mac OS X.
12671OTOOL=$lt_OTOOL
12672
12673# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
12674OTOOL64=$lt_OTOOL64
12675
12676# Old archive suffix (normally "a").
12677libext=$libext
12678
12679# Shared library suffix (normally ".so").
12680shrext_cmds=$lt_shrext_cmds
12681
12682# The commands to extract the exported symbol list from a shared archive.
12683extract_expsyms_cmds=$lt_extract_expsyms_cmds
12684
12685# Variables whose values should be saved in libtool wrapper scripts and
12686# restored at link time.
12687variables_saved_for_relink=$lt_variables_saved_for_relink
12688
12689# Do we need the "lib" prefix for modules?
12690need_lib_prefix=$need_lib_prefix
12691
12692# Do we need a version for libraries?
12693need_version=$need_version
12694
12695# Library versioning type.
12696version_type=$version_type
12697
12698# Shared library runtime path variable.
12699runpath_var=$runpath_var
12700
12701# Shared library path variable.
12702shlibpath_var=$shlibpath_var
12703
12704# Is shlibpath searched before the hard-coded library search path?
12705shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12706
12707# Format of library name prefix.
12708libname_spec=$lt_libname_spec
12709
12710# List of archive names. First name is the real one, the rest are links.
12711# The last name is the one that the linker finds with -lNAME
12712library_names_spec=$lt_library_names_spec
12713
12714# The coded name of the library, if different from the real name.
12715soname_spec=$lt_soname_spec
12716
12717# Permission mode override for installation of shared libraries.
12718install_override_mode=$lt_install_override_mode
12719
12720# Command to use after installation of a shared archive.
12721postinstall_cmds=$lt_postinstall_cmds
12722
12723# Command to use after uninstallation of a shared archive.
12724postuninstall_cmds=$lt_postuninstall_cmds
12725
12726# Commands used to finish a libtool library installation in a directory.
12727finish_cmds=$lt_finish_cmds
12728
12729# As "finish_cmds", except a single script fragment to be evaled but
12730# not shown.
12731finish_eval=$lt_finish_eval
12732
12733# Whether we should hardcode library paths into libraries.
12734hardcode_into_libs=$hardcode_into_libs
12735
12736# Compile-time system search path for libraries.
12737sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12738
12739# Run-time system search path for libraries.
12740sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12741
12742# Whether dlopen is supported.
12743dlopen_support=$enable_dlopen
12744
12745# Whether dlopen of programs is supported.
12746dlopen_self=$enable_dlopen_self
12747
12748# Whether dlopen of statically linked programs is supported.
12749dlopen_self_static=$enable_dlopen_self_static
12750
12751# Commands to strip libraries.
12752old_striplib=$lt_old_striplib
12753striplib=$lt_striplib
12754
12755
12756# The linker used to build libraries.
12757LD=$lt_LD
12758
12759# How to create reloadable object files.
12760reload_flag=$lt_reload_flag
12761reload_cmds=$lt_reload_cmds
12762
12763# Commands used to build an old-style archive.
12764old_archive_cmds=$lt_old_archive_cmds
12765
12766# A language specific compiler.
12767CC=$lt_compiler
12768
12769# Is the compiler the GNU compiler?
12770with_gcc=$GCC
12771
12772# Compiler flag to turn off builtin functions.
12773no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
12774
12775# How to pass a linker flag through the compiler.
12776wl=$lt_lt_prog_compiler_wl
12777
12778# Additional compiler flags for building library objects.
12779pic_flag=$lt_lt_prog_compiler_pic
12780
12781# Compiler flag to prevent dynamic linking.
12782link_static_flag=$lt_lt_prog_compiler_static
12783
12784# Does compiler simultaneously support -c and -o options?
12785compiler_c_o=$lt_lt_cv_prog_compiler_c_o
12786
12787# Whether or not to add -lc for building shared libraries.
12788build_libtool_need_lc=$archive_cmds_need_lc
12789
12790# Whether or not to disallow shared libs when runtime libs are static.
12791allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12792
12793# Compiler flag to allow reflexive dlopens.
12794export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
12795
12796# Compiler flag to generate shared objects directly from archives.
12797whole_archive_flag_spec=$lt_whole_archive_flag_spec
12798
12799# Whether the compiler copes with passing no objects directly.
12800compiler_needs_object=$lt_compiler_needs_object
12801
12802# Create an old-style archive from a shared archive.
12803old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
12804
12805# Create a temporary old-style archive to link instead of a shared archive.
12806old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
12807
12808# Commands used to build a shared archive.
12809archive_cmds=$lt_archive_cmds
12810archive_expsym_cmds=$lt_archive_expsym_cmds
12811
12812# Commands used to build a loadable module if different from building
12813# a shared archive.
12814module_cmds=$lt_module_cmds
12815module_expsym_cmds=$lt_module_expsym_cmds
12816
12817# Whether we are building with GNU ld or not.
12818with_gnu_ld=$lt_with_gnu_ld
12819
12820# Flag that allows shared libraries with undefined symbols to be built.
12821allow_undefined_flag=$lt_allow_undefined_flag
12822
12823# Flag that enforces no undefined symbols.
12824no_undefined_flag=$lt_no_undefined_flag
12825
12826# Flag to hardcode \$libdir into a binary during linking.
12827# This must work even if \$libdir does not exist
12828hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
12829
12830# If ld is used when linking, flag to hardcode \$libdir into a binary
12831# during linking. This must work even if \$libdir does not exist.
12832hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
12833
12834# Whether we need a single "-rpath" flag with a separated argument.
12835hardcode_libdir_separator=$lt_hardcode_libdir_separator
12836
12837# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12838# DIR into the resulting binary.
12839hardcode_direct=$hardcode_direct
12840
12841# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
12842# DIR into the resulting binary and the resulting library dependency is
12843# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
12844# library is relocated.
12845hardcode_direct_absolute=$hardcode_direct_absolute
12846
12847# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
12848# into the resulting binary.
12849hardcode_minus_L=$hardcode_minus_L
12850
12851# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
12852# into the resulting binary.
12853hardcode_shlibpath_var=$hardcode_shlibpath_var
12854
12855# Set to "yes" if building a shared library automatically hardcodes DIR
12856# into the library and all subsequent libraries and executables linked
12857# against it.
12858hardcode_automatic=$hardcode_automatic
12859
12860# Set to yes if linker adds runtime paths of dependent libraries
12861# to runtime path list.
12862inherit_rpath=$inherit_rpath
12863
12864# Whether libtool must link a program against all its dependency libraries.
12865link_all_deplibs=$link_all_deplibs
12866
12867# Fix the shell variable \$srcfile for the compiler.
12868fix_srcfile_path=$lt_fix_srcfile_path
12869
12870# Set to "yes" if exported symbols are required.
12871always_export_symbols=$always_export_symbols
12872
12873# The commands to list exported symbols.
12874export_symbols_cmds=$lt_export_symbols_cmds
12875
12876# Symbols that should not be listed in the preloaded symbols.
12877exclude_expsyms=$lt_exclude_expsyms
12878
12879# Symbols that must always be exported.
12880include_expsyms=$lt_include_expsyms
12881
12882# Commands necessary for linking programs (against libraries) with templates.
12883prelink_cmds=$lt_prelink_cmds
12884
12885# Specify filename containing input files.
12886file_list_spec=$lt_file_list_spec
12887
12888# How to hardcode a shared library path into an executable.
12889hardcode_action=$hardcode_action
12890
12891# ### END LIBTOOL CONFIG
12892
12893_LT_EOF
12894
12895 case $host_os in
12896 aix3*)
12897 cat <<\_LT_EOF >> "$cfgfile"
12898# AIX sometimes has problems with the GCC collect2 program. For some
12899# reason, if we set the COLLECT_NAMES environment variable, the problems
12900# vanish in a puff of smoke.
12901if test "X${COLLECT_NAMES+set}" != Xset; then
12902 COLLECT_NAMES=
12903 export COLLECT_NAMES
12904fi
12905_LT_EOF
12906 ;;
12907 esac
12908
12909
12910ltmain="$ac_aux_dir/ltmain.sh"
12911
12912
12913 # We use sed instead of cat because bash on DJGPP gets confused if
12914 # if finds mixed CR/LF and LF-only lines. Since sed operates in
12915 # text mode, it properly converts lines to CR/LF. This bash problem
12916 # is reportedly fixed, but why not run on old versions too?
12917 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
12918 || (rm -f "$cfgfile"; exit 1)
12919
12920 case $xsi_shell in
12921 yes)
12922 cat << \_LT_EOF >> "$cfgfile"
12923
12924# func_dirname file append nondir_replacement
12925# Compute the dirname of FILE. If nonempty, add APPEND to the result,
12926# otherwise set result to NONDIR_REPLACEMENT.
12927func_dirname ()
12928{
12929 case ${1} in
12930 */*) func_dirname_result="${1%/*}${2}" ;;
12931 * ) func_dirname_result="${3}" ;;
12932 esac
12933}
12934
12935# func_basename file
12936func_basename ()
12937{
12938 func_basename_result="${1##*/}"
12939}
12940
12941# func_dirname_and_basename file append nondir_replacement
12942# perform func_basename and func_dirname in a single function
12943# call:
12944# dirname: Compute the dirname of FILE. If nonempty,
12945# add APPEND to the result, otherwise set result
12946# to NONDIR_REPLACEMENT.
12947# value returned in "$func_dirname_result"
12948# basename: Compute filename of FILE.
12949# value retuned in "$func_basename_result"
12950# Implementation must be kept synchronized with func_dirname
12951# and func_basename. For efficiency, we do not delegate to
12952# those functions but instead duplicate the functionality here.
12953func_dirname_and_basename ()
12954{
12955 case ${1} in
12956 */*) func_dirname_result="${1%/*}${2}" ;;
12957 * ) func_dirname_result="${3}" ;;
12958 esac
12959 func_basename_result="${1##*/}"
12960}
12961
12962# func_stripname prefix suffix name
12963# strip PREFIX and SUFFIX off of NAME.
12964# PREFIX and SUFFIX must not contain globbing or regex special
12965# characters, hashes, percent signs, but SUFFIX may contain a leading
12966# dot (in which case that matches only a dot).
12967func_stripname ()
12968{
12969 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
12970 # positional parameters, so assign one to ordinary parameter first.
12971 func_stripname_result=${3}
12972 func_stripname_result=${func_stripname_result#"${1}"}
12973 func_stripname_result=${func_stripname_result%"${2}"}
12974}
12975
12976# func_opt_split
12977func_opt_split ()
12978{
12979 func_opt_split_opt=${1%%=*}
12980 func_opt_split_arg=${1#*=}
12981}
12982
12983# func_lo2o object
12984func_lo2o ()
12985{
12986 case ${1} in
12987 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
12988 *) func_lo2o_result=${1} ;;
12989 esac
12990}
12991
12992# func_xform libobj-or-source
12993func_xform ()
12994{
12995 func_xform_result=${1%.*}.lo
12996}
12997
12998# func_arith arithmetic-term...
12999func_arith ()
13000{
13001 func_arith_result=$(( $* ))
13002}
13003
13004# func_len string
13005# STRING may not start with a hyphen.
13006func_len ()
13007{
13008 func_len_result=${#1}
13009}
13010
13011_LT_EOF
13012 ;;
13013 *) # Bourne compatible functions.
13014 cat << \_LT_EOF >> "$cfgfile"
13015
13016# func_dirname file append nondir_replacement
13017# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13018# otherwise set result to NONDIR_REPLACEMENT.
13019func_dirname ()
13020{
13021 # Extract subdirectory from the argument.
13022 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13023 if test "X$func_dirname_result" = "X${1}"; then
13024 func_dirname_result="${3}"
13025 else
13026 func_dirname_result="$func_dirname_result${2}"
13027 fi
13028}
13029
13030# func_basename file
13031func_basename ()
13032{
13033 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13034}
13035
13036
13037# func_stripname prefix suffix name
13038# strip PREFIX and SUFFIX off of NAME.
13039# PREFIX and SUFFIX must not contain globbing or regex special
13040# characters, hashes, percent signs, but SUFFIX may contain a leading
13041# dot (in which case that matches only a dot).
13042# func_strip_suffix prefix name
13043func_stripname ()
13044{
13045 case ${2} in
13046 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13047 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13048 esac
13049}
13050
13051# sed scripts:
13052my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13053my_sed_long_arg='1s/^-[^=]*=//'
13054
13055# func_opt_split
13056func_opt_split ()
13057{
13058 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13059 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13060}
13061
13062# func_lo2o object
13063func_lo2o ()
13064{
13065 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13066}
13067
13068# func_xform libobj-or-source
13069func_xform ()
13070{
13071 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13072}
13073
13074# func_arith arithmetic-term...
13075func_arith ()
13076{
13077 func_arith_result=`expr "$@"`
13078}
13079
13080# func_len string
13081# STRING may not start with a hyphen.
13082func_len ()
13083{
13084 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13085}
13086
13087_LT_EOF
13088esac
13089
13090case $lt_shell_append in
13091 yes)
13092 cat << \_LT_EOF >> "$cfgfile"
13093
13094# func_append var value
13095# Append VALUE to the end of shell variable VAR.
13096func_append ()
13097{
13098 eval "$1+=\$2"
13099}
13100_LT_EOF
13101 ;;
13102 *)
13103 cat << \_LT_EOF >> "$cfgfile"
13104
13105# func_append var value
13106# Append VALUE to the end of shell variable VAR.
13107func_append ()
13108{
13109 eval "$1=\$$1\$2"
13110}
13111
13112_LT_EOF
13113 ;;
13114 esac
13115
13116
13117 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13118 || (rm -f "$cfgfile"; exit 1)
13119
13120 mv -f "$cfgfile" "$ofile" ||
13121 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13122 chmod +x "$ofile"
13123
13124 ;;
13125
13126 esac
13127done # for ac_tag
13128
13129
13130as_fn_exit 0
13131_ACEOF
13132ac_clean_files=$ac_clean_files_save
13133
13134test $ac_write_fail = 0 ||
13135 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13136
13137
13138# configure is writing to config.log, and then calls config.status.
13139# config.status does its own redirection, appending to config.log.
13140# Unfortunately, on DOS this fails, as config.log is still kept open
13141# by configure, so config.status won't be able to write to it; its
13142# output is simply discarded. So we exec the FD to /dev/null,
13143# effectively closing config.log, so it can be properly (re)opened and
13144# appended to by config.status. When coming back to configure, we
13145# need to make the FD available again.
13146if test "$no_create" != yes; then
13147 ac_cs_success=:
13148 ac_config_status_args=
13149 test "$silent" = yes &&
13150 ac_config_status_args="$ac_config_status_args --quiet"
13151 exec 5>/dev/null
13152 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13153 exec 5>>config.log
13154 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13155 # would make configure fail if this is the last instruction.
13156 $ac_cs_success || as_fn_exit $?
13157fi
13158if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13160$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13161fi
13162