· 10 years ago · Nov 12, 2015, 08:39 PM
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for ratbagd 1.
4#
5# Report bugs to <http://www.github.com/libratbag/ratbagd>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://www.github.com/libratbag/ratbagd about your
279$0: system, including any error possibly output before this
280$0: message. Then install a modern shell, or manually run
281$0: the script under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520*)
521 ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545else
546 as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='ratbagd'
592PACKAGE_TARNAME='ratbagd'
593PACKAGE_VERSION='1'
594PACKAGE_STRING='ratbagd 1'
595PACKAGE_BUGREPORT='http://www.github.com/libratbag/ratbagd'
596PACKAGE_URL='http://www.github.com/libratbag/ratbagd'
597
598ac_unique_file="src/ratbagd.h"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIBOBJS
639LIBRATBAG_LIBS
640LIBRATBAG_CFLAGS
641LIBSYSTEMD_LIBS
642LIBSYSTEMD_CFLAGS
643LIBUDEV_LIBS
644LIBUDEV_CFLAGS
645PKG_CONFIG_LIBDIR
646PKG_CONFIG_PATH
647PKG_CONFIG
648OUR_LDFLAGS
649OUR_CPPFLAGS
650OUR_CFLAGS
651XSLTPROC
652M4
653LT_SYS_LIBRARY_PATH
654OTOOL64
655OTOOL
656LIPO
657NMEDIT
658DSYMUTIL
659MANIFEST_TOOL
660RANLIB
661ac_ct_AR
662AR
663DLLTOOL
664OBJDUMP
665LN_S
666NM
667ac_ct_DUMPBIN
668DUMPBIN
669LD
670FGREP
671SED
672LIBTOOL
673host_os
674host_vendor
675host_cpu
676host
677build_os
678build_vendor
679build_cpu
680build
681AM_BACKSLASH
682AM_DEFAULT_VERBOSITY
683AM_DEFAULT_V
684AM_V
685am__fastdepCC_FALSE
686am__fastdepCC_TRUE
687CCDEPMODE
688am__nodep
689AMDEPBACKSLASH
690AMDEP_FALSE
691AMDEP_TRUE
692am__quote
693am__include
694DEPDIR
695am__untar
696am__tar
697AMTAR
698am__leading_dot
699SET_MAKE
700AWK
701mkdir_p
702MKDIR_P
703INSTALL_STRIP_PROGRAM
704STRIP
705install_sh
706MAKEINFO
707AUTOHEADER
708AUTOMAKE
709AUTOCONF
710ACLOCAL
711VERSION
712PACKAGE
713CYGPATH_W
714am__isrc
715INSTALL_DATA
716INSTALL_SCRIPT
717INSTALL_PROGRAM
718MAINT
719MAINTAINER_MODE_FALSE
720MAINTAINER_MODE_TRUE
721EGREP
722GREP
723CPP
724OBJEXT
725EXEEXT
726ac_ct_CC
727CPPFLAGS
728LDFLAGS
729CFLAGS
730CC
731target_alias
732host_alias
733build_alias
734LIBS
735ECHO_T
736ECHO_N
737ECHO_C
738DEFS
739mandir
740localedir
741libdir
742psdir
743pdfdir
744dvidir
745htmldir
746infodir
747docdir
748oldincludedir
749includedir
750localstatedir
751sharedstatedir
752sysconfdir
753datadir
754datarootdir
755libexecdir
756sbindir
757bindir
758program_transform_name
759prefix
760exec_prefix
761PACKAGE_URL
762PACKAGE_BUGREPORT
763PACKAGE_STRING
764PACKAGE_VERSION
765PACKAGE_TARNAME
766PACKAGE_NAME
767PATH_SEPARATOR
768SHELL'
769ac_subst_files=''
770ac_user_opts='
771enable_option_checking
772enable_largefile
773enable_maintainer_mode
774enable_dependency_tracking
775enable_silent_rules
776enable_static
777enable_shared
778with_pic
779enable_fast_install
780with_aix_soname
781with_gnu_ld
782with_sysroot
783enable_libtool_lock
784enable_debug
785'
786 ac_precious_vars='build_alias
787host_alias
788target_alias
789CC
790CFLAGS
791LDFLAGS
792LIBS
793CPPFLAGS
794CPP
795LT_SYS_LIBRARY_PATH
796PKG_CONFIG
797PKG_CONFIG_PATH
798PKG_CONFIG_LIBDIR
799LIBUDEV_CFLAGS
800LIBUDEV_LIBS
801LIBSYSTEMD_CFLAGS
802LIBSYSTEMD_LIBS
803LIBRATBAG_CFLAGS
804LIBRATBAG_LIBS'
805
806
807# Initialize some variables set by options.
808ac_init_help=
809ac_init_version=false
810ac_unrecognized_opts=
811ac_unrecognized_sep=
812# The variables have the same names as the options, with
813# dashes changed to underlines.
814cache_file=/dev/null
815exec_prefix=NONE
816no_create=
817no_recursion=
818prefix=NONE
819program_prefix=NONE
820program_suffix=NONE
821program_transform_name=s,x,x,
822silent=
823site=
824srcdir=
825verbose=
826x_includes=NONE
827x_libraries=NONE
828
829# Installation directory options.
830# These are left unexpanded so users can "make install exec_prefix=/foo"
831# and all the variables that are supposed to be based on exec_prefix
832# by default will actually change.
833# Use braces instead of parens because sh, perl, etc. also accept them.
834# (The list follows the same order as the GNU Coding Standards.)
835bindir='${exec_prefix}/bin'
836sbindir='${exec_prefix}/sbin'
837libexecdir='${exec_prefix}/libexec'
838datarootdir='${prefix}/share'
839datadir='${datarootdir}'
840sysconfdir='${prefix}/etc'
841sharedstatedir='${prefix}/com'
842localstatedir='${prefix}/var'
843includedir='${prefix}/include'
844oldincludedir='/usr/include'
845docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
846infodir='${datarootdir}/info'
847htmldir='${docdir}'
848dvidir='${docdir}'
849pdfdir='${docdir}'
850psdir='${docdir}'
851libdir='${exec_prefix}/lib'
852localedir='${datarootdir}/locale'
853mandir='${datarootdir}/man'
854
855ac_prev=
856ac_dashdash=
857for ac_option
858do
859 # If the previous option needs an argument, assign it.
860 if test -n "$ac_prev"; then
861 eval $ac_prev=\$ac_option
862 ac_prev=
863 continue
864 fi
865
866 case $ac_option in
867 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868 *=) ac_optarg= ;;
869 *) ac_optarg=yes ;;
870 esac
871
872 # Accept the important Cygnus configure options, so we can diagnose typos.
873
874 case $ac_dashdash$ac_option in
875 --)
876 ac_dashdash=yes ;;
877
878 -bindir | --bindir | --bindi | --bind | --bin | --bi)
879 ac_prev=bindir ;;
880 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
881 bindir=$ac_optarg ;;
882
883 -build | --build | --buil | --bui | --bu)
884 ac_prev=build_alias ;;
885 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
886 build_alias=$ac_optarg ;;
887
888 -cache-file | --cache-file | --cache-fil | --cache-fi \
889 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
890 ac_prev=cache_file ;;
891 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
892 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
893 cache_file=$ac_optarg ;;
894
895 --config-cache | -C)
896 cache_file=config.cache ;;
897
898 -datadir | --datadir | --datadi | --datad)
899 ac_prev=datadir ;;
900 -datadir=* | --datadir=* | --datadi=* | --datad=*)
901 datadir=$ac_optarg ;;
902
903 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
904 | --dataroo | --dataro | --datar)
905 ac_prev=datarootdir ;;
906 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
907 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
908 datarootdir=$ac_optarg ;;
909
910 -disable-* | --disable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error $? "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
918 *"
919"enable_$ac_useropt"
920"*) ;;
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
923 esac
924 eval enable_$ac_useropt=no ;;
925
926 -docdir | --docdir | --docdi | --doc | --do)
927 ac_prev=docdir ;;
928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929 docdir=$ac_optarg ;;
930
931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932 ac_prev=dvidir ;;
933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934 dvidir=$ac_optarg ;;
935
936 -enable-* | --enable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: $ac_useropt"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
944 *"
945"enable_$ac_useropt"
946"*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=\$ac_optarg ;;
951
952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954 | --exec | --exe | --ex)
955 ac_prev=exec_prefix ;;
956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958 | --exec=* | --exe=* | --ex=*)
959 exec_prefix=$ac_optarg ;;
960
961 -gas | --gas | --ga | --g)
962 # Obsolete; use --with-gas.
963 with_gas=yes ;;
964
965 -help | --help | --hel | --he | -h)
966 ac_init_help=long ;;
967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968 ac_init_help=recursive ;;
969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970 ac_init_help=short ;;
971
972 -host | --host | --hos | --ho)
973 ac_prev=host_alias ;;
974 -host=* | --host=* | --hos=* | --ho=*)
975 host_alias=$ac_optarg ;;
976
977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 ac_prev=htmldir ;;
979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 | --ht=*)
981 htmldir=$ac_optarg ;;
982
983 -includedir | --includedir | --includedi | --included | --include \
984 | --includ | --inclu | --incl | --inc)
985 ac_prev=includedir ;;
986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987 | --includ=* | --inclu=* | --incl=* | --inc=*)
988 includedir=$ac_optarg ;;
989
990 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 ac_prev=infodir ;;
992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993 infodir=$ac_optarg ;;
994
995 -libdir | --libdir | --libdi | --libd)
996 ac_prev=libdir ;;
997 -libdir=* | --libdir=* | --libdi=* | --libd=*)
998 libdir=$ac_optarg ;;
999
1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001 | --libexe | --libex | --libe)
1002 ac_prev=libexecdir ;;
1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004 | --libexe=* | --libex=* | --libe=*)
1005 libexecdir=$ac_optarg ;;
1006
1007 -localedir | --localedir | --localedi | --localed | --locale)
1008 ac_prev=localedir ;;
1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010 localedir=$ac_optarg ;;
1011
1012 -localstatedir | --localstatedir | --localstatedi | --localstated \
1013 | --localstate | --localstat | --localsta | --localst | --locals)
1014 ac_prev=localstatedir ;;
1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017 localstatedir=$ac_optarg ;;
1018
1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 ac_prev=mandir ;;
1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022 mandir=$ac_optarg ;;
1023
1024 -nfp | --nfp | --nf)
1025 # Obsolete; use --without-fp.
1026 with_fp=no ;;
1027
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n)
1030 no_create=yes ;;
1031
1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 no_recursion=yes ;;
1035
1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038 | --oldin | --oldi | --old | --ol | --o)
1039 ac_prev=oldincludedir ;;
1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043 oldincludedir=$ac_optarg ;;
1044
1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 ac_prev=prefix ;;
1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048 prefix=$ac_optarg ;;
1049
1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051 | --program-pre | --program-pr | --program-p)
1052 ac_prev=program_prefix ;;
1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055 program_prefix=$ac_optarg ;;
1056
1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058 | --program-suf | --program-su | --program-s)
1059 ac_prev=program_suffix ;;
1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062 program_suffix=$ac_optarg ;;
1063
1064 -program-transform-name | --program-transform-name \
1065 | --program-transform-nam | --program-transform-na \
1066 | --program-transform-n | --program-transform- \
1067 | --program-transform | --program-transfor \
1068 | --program-transfo | --program-transf \
1069 | --program-trans | --program-tran \
1070 | --progr-tra | --program-tr | --program-t)
1071 ac_prev=program_transform_name ;;
1072 -program-transform-name=* | --program-transform-name=* \
1073 | --program-transform-nam=* | --program-transform-na=* \
1074 | --program-transform-n=* | --program-transform-=* \
1075 | --program-transform=* | --program-transfor=* \
1076 | --program-transfo=* | --program-transf=* \
1077 | --program-trans=* | --program-tran=* \
1078 | --progr-tra=* | --program-tr=* | --program-t=*)
1079 program_transform_name=$ac_optarg ;;
1080
1081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 ac_prev=pdfdir ;;
1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084 pdfdir=$ac_optarg ;;
1085
1086 -psdir | --psdir | --psdi | --psd | --ps)
1087 ac_prev=psdir ;;
1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 psdir=$ac_optarg ;;
1090
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1093 silent=yes ;;
1094
1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 ac_prev=sbindir ;;
1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 | --sbi=* | --sb=*)
1099 sbindir=$ac_optarg ;;
1100
1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103 | --sharedst | --shareds | --shared | --share | --shar \
1104 | --sha | --sh)
1105 ac_prev=sharedstatedir ;;
1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 | --sha=* | --sh=*)
1110 sharedstatedir=$ac_optarg ;;
1111
1112 -site | --site | --sit)
1113 ac_prev=site ;;
1114 -site=* | --site=* | --sit=*)
1115 site=$ac_optarg ;;
1116
1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 ac_prev=srcdir ;;
1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120 srcdir=$ac_optarg ;;
1121
1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123 | --syscon | --sysco | --sysc | --sys | --sy)
1124 ac_prev=sysconfdir ;;
1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127 sysconfdir=$ac_optarg ;;
1128
1129 -target | --target | --targe | --targ | --tar | --ta | --t)
1130 ac_prev=target_alias ;;
1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132 target_alias=$ac_optarg ;;
1133
1134 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 verbose=yes ;;
1136
1137 -version | --version | --versio | --versi | --vers | -V)
1138 ac_init_version=: ;;
1139
1140 -with-* | --with-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error $? "invalid package name: $ac_useropt"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1148 *"
1149"with_$ac_useropt"
1150"*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval with_$ac_useropt=\$ac_optarg ;;
1155
1156 -without-* | --without-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error $? "invalid package name: $ac_useropt"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1164 *"
1165"with_$ac_useropt"
1166"*) ;;
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1169 esac
1170 eval with_$ac_useropt=no ;;
1171
1172 --x)
1173 # Obsolete; use --with-x.
1174 with_x=yes ;;
1175
1176 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177 | --x-incl | --x-inc | --x-in | --x-i)
1178 ac_prev=x_includes ;;
1179 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181 x_includes=$ac_optarg ;;
1182
1183 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185 ac_prev=x_libraries ;;
1186 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188 x_libraries=$ac_optarg ;;
1189
1190 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1191Try \`$0 --help' for more information"
1192 ;;
1193
1194 *=*)
1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196 # Reject names that are not valid shell variable names.
1197 case $ac_envvar in #(
1198 '' | [0-9]* | *[!_$as_cr_alnum]* )
1199 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1200 esac
1201 eval $ac_envvar=\$ac_optarg
1202 export $ac_envvar ;;
1203
1204 *)
1205 # FIXME: should be removed in autoconf 3.0.
1206 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1207 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1209 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1210 ;;
1211
1212 esac
1213done
1214
1215if test -n "$ac_prev"; then
1216 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217 as_fn_error $? "missing argument to $ac_option"
1218fi
1219
1220if test -n "$ac_unrecognized_opts"; then
1221 case $enable_option_checking in
1222 no) ;;
1223 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225 esac
1226fi
1227
1228# Check all directory arguments for consistency.
1229for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230 datadir sysconfdir sharedstatedir localstatedir includedir \
1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232 libdir localedir mandir
1233do
1234 eval ac_val=\$$ac_var
1235 # Remove trailing slashes.
1236 case $ac_val in
1237 */ )
1238 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239 eval $ac_var=\$ac_val;;
1240 esac
1241 # Be sure to have absolute directory names.
1242 case $ac_val in
1243 [\\/$]* | ?:[\\/]* ) continue;;
1244 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245 esac
1246 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247done
1248
1249# There might be people who depend on the old broken behavior: `$host'
1250# used to hold the argument of --host etc.
1251# FIXME: To remove some day.
1252build=$build_alias
1253host=$host_alias
1254target=$target_alias
1255
1256# FIXME: To remove some day.
1257if test "x$host_alias" != x; then
1258 if test "x$build_alias" = x; then
1259 cross_compiling=maybe
1260 elif test "x$build_alias" != "x$host_alias"; then
1261 cross_compiling=yes
1262 fi
1263fi
1264
1265ac_tool_prefix=
1266test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267
1268test "$silent" = yes && exec 6>/dev/null
1269
1270
1271ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272ac_ls_di=`ls -di .` &&
1273ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274 as_fn_error $? "working directory cannot be determined"
1275test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276 as_fn_error $? "pwd does not report name of working directory"
1277
1278
1279# Find the source files, if location was not specified.
1280if test -z "$srcdir"; then
1281 ac_srcdir_defaulted=yes
1282 # Try the directory containing this script, then the parent directory.
1283 ac_confdir=`$as_dirname -- "$as_myself" ||
1284$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285 X"$as_myself" : 'X\(//\)[^/]' \| \
1286 X"$as_myself" : 'X\(//\)$' \| \
1287 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288$as_echo X"$as_myself" |
1289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290 s//\1/
1291 q
1292 }
1293 /^X\(\/\/\)[^/].*/{
1294 s//\1/
1295 q
1296 }
1297 /^X\(\/\/\)$/{
1298 s//\1/
1299 q
1300 }
1301 /^X\(\/\).*/{
1302 s//\1/
1303 q
1304 }
1305 s/.*/./; q'`
1306 srcdir=$ac_confdir
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1308 srcdir=..
1309 fi
1310else
1311 ac_srcdir_defaulted=no
1312fi
1313if test ! -r "$srcdir/$ac_unique_file"; then
1314 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1316fi
1317ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318ac_abs_confdir=`(
1319 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320 pwd)`
1321# When building in place, set srcdir=.
1322if test "$ac_abs_confdir" = "$ac_pwd"; then
1323 srcdir=.
1324fi
1325# Remove unnecessary trailing slashes from srcdir.
1326# Double slashes in file names in object file debugging info
1327# mess up M-x gdb in Emacs.
1328case $srcdir in
1329*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330esac
1331for ac_var in $ac_precious_vars; do
1332 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_env_${ac_var}_value=\$${ac_var}
1334 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336done
1337
1338#
1339# Report the --help message.
1340#
1341if test "$ac_init_help" = "long"; then
1342 # Omit some internal or obsolete options to make the list less imposing.
1343 # This message is too long to be a string in the A/UX 3.1 sh.
1344 cat <<_ACEOF
1345\`configure' configures ratbagd 1 to adapt to many kinds of systems.
1346
1347Usage: $0 [OPTION]... [VAR=VALUE]...
1348
1349To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350VAR=VALUE. See below for descriptions of some of the useful variables.
1351
1352Defaults for the options are specified in brackets.
1353
1354Configuration:
1355 -h, --help display this help and exit
1356 --help=short display options specific to this package
1357 --help=recursive display the short help of all the included packages
1358 -V, --version display version information and exit
1359 -q, --quiet, --silent do not print \`checking ...' messages
1360 --cache-file=FILE cache test results in FILE [disabled]
1361 -C, --config-cache alias for \`--cache-file=config.cache'
1362 -n, --no-create do not create output files
1363 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1364
1365Installation directories:
1366 --prefix=PREFIX install architecture-independent files in PREFIX
1367 [$ac_default_prefix]
1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1369 [PREFIX]
1370
1371By default, \`make install' will install all the files in
1372\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1373an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374for instance \`--prefix=\$HOME'.
1375
1376For better control, use the options below.
1377
1378Fine tuning of the installation directories:
1379 --bindir=DIR user executables [EPREFIX/bin]
1380 --sbindir=DIR system admin executables [EPREFIX/sbin]
1381 --libexecdir=DIR program executables [EPREFIX/libexec]
1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1385 --libdir=DIR object code libraries [EPREFIX/lib]
1386 --includedir=DIR C header files [PREFIX/include]
1387 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1388 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1389 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1390 --infodir=DIR info documentation [DATAROOTDIR/info]
1391 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1392 --mandir=DIR man documentation [DATAROOTDIR/man]
1393 --docdir=DIR documentation root [DATAROOTDIR/doc/ratbagd]
1394 --htmldir=DIR html documentation [DOCDIR]
1395 --dvidir=DIR dvi documentation [DOCDIR]
1396 --pdfdir=DIR pdf documentation [DOCDIR]
1397 --psdir=DIR ps documentation [DOCDIR]
1398_ACEOF
1399
1400 cat <<\_ACEOF
1401
1402Program names:
1403 --program-prefix=PREFIX prepend PREFIX to installed program names
1404 --program-suffix=SUFFIX append SUFFIX to installed program names
1405 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1406
1407System types:
1408 --build=BUILD configure for building on BUILD [guessed]
1409 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1410_ACEOF
1411fi
1412
1413if test -n "$ac_init_help"; then
1414 case $ac_init_help in
1415 short | recursive ) echo "Configuration of ratbagd 1:";;
1416 esac
1417 cat <<\_ACEOF
1418
1419Optional Features:
1420 --disable-option-checking ignore unrecognized --enable/--with options
1421 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1422 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1423 --disable-largefile omit support for large files
1424 --disable-maintainer-mode
1425 disable make rules and dependencies not useful (and
1426 sometimes confusing) to the casual installer
1427 --enable-dependency-tracking
1428 do not reject slow dependency extractors
1429 --disable-dependency-tracking
1430 speeds up one-time build
1431 --enable-silent-rules less verbose build output (undo: "make V=1")
1432 --disable-silent-rules verbose build output (undo: "make V=0")
1433 --enable-static[=PKGS] build static libraries [default=no]
1434 --enable-shared[=PKGS] build shared libraries [default=yes]
1435 --enable-fast-install[=PKGS]
1436 optimize for fast installation [default=yes]
1437 --disable-libtool-lock avoid locking (might break parallel builds)
1438 --enable-debug enable debug options
1439
1440Optional Packages:
1441 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1442 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1443 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1444 both]
1445 --with-aix-soname=aix|svr4|both
1446 shared library versioning (aka "SONAME") variant to
1447 provide on AIX, [default=aix].
1448 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1449 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1450 compiler's sysroot if not specified).
1451
1452Some influential environment variables:
1453 CC C compiler command
1454 CFLAGS C compiler flags
1455 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1456 nonstandard directory <lib dir>
1457 LIBS libraries to pass to the linker, e.g. -l<library>
1458 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1459 you have headers in a nonstandard directory <include dir>
1460 CPP C preprocessor
1461 LT_SYS_LIBRARY_PATH
1462 User-defined run-time library search path.
1463 PKG_CONFIG path to pkg-config utility
1464 PKG_CONFIG_PATH
1465 directories to add to pkg-config's search path
1466 PKG_CONFIG_LIBDIR
1467 path overriding pkg-config's built-in search path
1468 LIBUDEV_CFLAGS
1469 C compiler flags for LIBUDEV, overriding pkg-config
1470 LIBUDEV_LIBS
1471 linker flags for LIBUDEV, overriding pkg-config
1472 LIBSYSTEMD_CFLAGS
1473 C compiler flags for LIBSYSTEMD, overriding pkg-config
1474 LIBSYSTEMD_LIBS
1475 linker flags for LIBSYSTEMD, overriding pkg-config
1476 LIBRATBAG_CFLAGS
1477 C compiler flags for LIBRATBAG, overriding pkg-config
1478 LIBRATBAG_LIBS
1479 linker flags for LIBRATBAG, overriding pkg-config
1480
1481Use these variables to override the choices made by `configure' or to help
1482it to find libraries and programs with nonstandard names/locations.
1483
1484Report bugs to <http://www.github.com/libratbag/ratbagd>.
1485ratbagd home page: <http://www.github.com/libratbag/ratbagd>.
1486_ACEOF
1487ac_status=$?
1488fi
1489
1490if test "$ac_init_help" = "recursive"; then
1491 # If there are subdirs, report their specific --help.
1492 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1493 test -d "$ac_dir" ||
1494 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1495 continue
1496 ac_builddir=.
1497
1498case "$ac_dir" in
1499.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500*)
1501 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1502 # A ".." for each directory in $ac_dir_suffix.
1503 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1504 case $ac_top_builddir_sub in
1505 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1507 esac ;;
1508esac
1509ac_abs_top_builddir=$ac_pwd
1510ac_abs_builddir=$ac_pwd$ac_dir_suffix
1511# for backward compatibility:
1512ac_top_builddir=$ac_top_build_prefix
1513
1514case $srcdir in
1515 .) # We are building in place.
1516 ac_srcdir=.
1517 ac_top_srcdir=$ac_top_builddir_sub
1518 ac_abs_top_srcdir=$ac_pwd ;;
1519 [\\/]* | ?:[\\/]* ) # Absolute name.
1520 ac_srcdir=$srcdir$ac_dir_suffix;
1521 ac_top_srcdir=$srcdir
1522 ac_abs_top_srcdir=$srcdir ;;
1523 *) # Relative name.
1524 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1525 ac_top_srcdir=$ac_top_build_prefix$srcdir
1526 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1527esac
1528ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1529
1530 cd "$ac_dir" || { ac_status=$?; continue; }
1531 # Check for guested configure.
1532 if test -f "$ac_srcdir/configure.gnu"; then
1533 echo &&
1534 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1535 elif test -f "$ac_srcdir/configure"; then
1536 echo &&
1537 $SHELL "$ac_srcdir/configure" --help=recursive
1538 else
1539 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1540 fi || ac_status=$?
1541 cd "$ac_pwd" || { ac_status=$?; break; }
1542 done
1543fi
1544
1545test -n "$ac_init_help" && exit $ac_status
1546if $ac_init_version; then
1547 cat <<\_ACEOF
1548ratbagd configure 1
1549generated by GNU Autoconf 2.69
1550
1551Copyright (C) 2012 Free Software Foundation, Inc.
1552This configure script is free software; the Free Software Foundation
1553gives unlimited permission to copy, distribute and modify it.
1554_ACEOF
1555 exit
1556fi
1557
1558## ------------------------ ##
1559## Autoconf initialization. ##
1560## ------------------------ ##
1561
1562# ac_fn_c_try_compile LINENO
1563# --------------------------
1564# Try to compile conftest.$ac_ext, and return whether this succeeded.
1565ac_fn_c_try_compile ()
1566{
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568 rm -f conftest.$ac_objext
1569 if { { ac_try="$ac_compile"
1570case "(($ac_try" in
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572 *) ac_try_echo=$ac_try;;
1573esac
1574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575$as_echo "$ac_try_echo"; } >&5
1576 (eval "$ac_compile") 2>conftest.err
1577 ac_status=$?
1578 if test -s conftest.err; then
1579 grep -v '^ *+' conftest.err >conftest.er1
1580 cat conftest.er1 >&5
1581 mv -f conftest.er1 conftest.err
1582 fi
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584 test $ac_status = 0; } && {
1585 test -z "$ac_c_werror_flag" ||
1586 test ! -s conftest.err
1587 } && test -s conftest.$ac_objext; then :
1588 ac_retval=0
1589else
1590 $as_echo "$as_me: failed program was:" >&5
1591sed 's/^/| /' conftest.$ac_ext >&5
1592
1593 ac_retval=1
1594fi
1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1596 as_fn_set_status $ac_retval
1597
1598} # ac_fn_c_try_compile
1599
1600# ac_fn_c_try_cpp LINENO
1601# ----------------------
1602# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1603ac_fn_c_try_cpp ()
1604{
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606 if { { ac_try="$ac_cpp conftest.$ac_ext"
1607case "(($ac_try" in
1608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609 *) ac_try_echo=$ac_try;;
1610esac
1611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612$as_echo "$ac_try_echo"; } >&5
1613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1614 ac_status=$?
1615 if test -s conftest.err; then
1616 grep -v '^ *+' conftest.err >conftest.er1
1617 cat conftest.er1 >&5
1618 mv -f conftest.er1 conftest.err
1619 fi
1620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621 test $ac_status = 0; } > conftest.i && {
1622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1623 test ! -s conftest.err
1624 }; then :
1625 ac_retval=0
1626else
1627 $as_echo "$as_me: failed program was:" >&5
1628sed 's/^/| /' conftest.$ac_ext >&5
1629
1630 ac_retval=1
1631fi
1632 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1633 as_fn_set_status $ac_retval
1634
1635} # ac_fn_c_try_cpp
1636
1637# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1638# -------------------------------------------------------
1639# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1640# the include files in INCLUDES and setting the cache variable VAR
1641# accordingly.
1642ac_fn_c_check_header_mongrel ()
1643{
1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645 if eval \${$3+:} false; then :
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647$as_echo_n "checking for $2... " >&6; }
1648if eval \${$3+:} false; then :
1649 $as_echo_n "(cached) " >&6
1650fi
1651eval ac_res=\$$3
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653$as_echo "$ac_res" >&6; }
1654else
1655 # Is the header compilable?
1656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1657$as_echo_n "checking $2 usability... " >&6; }
1658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659/* end confdefs.h. */
1660$4
1661#include <$2>
1662_ACEOF
1663if ac_fn_c_try_compile "$LINENO"; then :
1664 ac_header_compiler=yes
1665else
1666 ac_header_compiler=no
1667fi
1668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1670$as_echo "$ac_header_compiler" >&6; }
1671
1672# Is the header present?
1673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1674$as_echo_n "checking $2 presence... " >&6; }
1675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676/* end confdefs.h. */
1677#include <$2>
1678_ACEOF
1679if ac_fn_c_try_cpp "$LINENO"; then :
1680 ac_header_preproc=yes
1681else
1682 ac_header_preproc=no
1683fi
1684rm -f conftest.err conftest.i conftest.$ac_ext
1685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1686$as_echo "$ac_header_preproc" >&6; }
1687
1688# So? What about this header?
1689case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1690 yes:no: )
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1692$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1694$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1695 ;;
1696 no:yes:* )
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1698$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1700$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1702$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1704$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1706$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1707( $as_echo "## ------------------------------------------------------ ##
1708## Report this to http://www.github.com/libratbag/ratbagd ##
1709## ------------------------------------------------------ ##"
1710 ) | sed "s/^/$as_me: WARNING: /" >&2
1711 ;;
1712esac
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714$as_echo_n "checking for $2... " >&6; }
1715if eval \${$3+:} false; then :
1716 $as_echo_n "(cached) " >&6
1717else
1718 eval "$3=\$ac_header_compiler"
1719fi
1720eval ac_res=\$$3
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722$as_echo "$ac_res" >&6; }
1723fi
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725
1726} # ac_fn_c_check_header_mongrel
1727
1728# ac_fn_c_try_run LINENO
1729# ----------------------
1730# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1731# that executables *can* be run.
1732ac_fn_c_try_run ()
1733{
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 if { { ac_try="$ac_link"
1736case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1739esac
1740eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741$as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_link") 2>&5
1743 ac_status=$?
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1746 { { case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749esac
1750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751$as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_try") 2>&5
1753 ac_status=$?
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; }; }; then :
1756 ac_retval=0
1757else
1758 $as_echo "$as_me: program exited with status $ac_status" >&5
1759 $as_echo "$as_me: failed program was:" >&5
1760sed 's/^/| /' conftest.$ac_ext >&5
1761
1762 ac_retval=$ac_status
1763fi
1764 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766 as_fn_set_status $ac_retval
1767
1768} # ac_fn_c_try_run
1769
1770# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1771# -------------------------------------------------------
1772# Tests whether HEADER exists and can be compiled using the include files in
1773# INCLUDES, setting the cache variable VAR accordingly.
1774ac_fn_c_check_header_compile ()
1775{
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778$as_echo_n "checking for $2... " >&6; }
1779if eval \${$3+:} false; then :
1780 $as_echo_n "(cached) " >&6
1781else
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783/* end confdefs.h. */
1784$4
1785#include <$2>
1786_ACEOF
1787if ac_fn_c_try_compile "$LINENO"; then :
1788 eval "$3=yes"
1789else
1790 eval "$3=no"
1791fi
1792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793fi
1794eval ac_res=\$$3
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796$as_echo "$ac_res" >&6; }
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798
1799} # ac_fn_c_check_header_compile
1800
1801# ac_fn_c_try_link LINENO
1802# -----------------------
1803# Try to link conftest.$ac_ext, and return whether this succeeded.
1804ac_fn_c_try_link ()
1805{
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 rm -f conftest.$ac_objext conftest$ac_exeext
1808 if { { ac_try="$ac_link"
1809case "(($ac_try" in
1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1812esac
1813eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814$as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_link") 2>conftest.err
1816 ac_status=$?
1817 if test -s conftest.err; then
1818 grep -v '^ *+' conftest.err >conftest.er1
1819 cat conftest.er1 >&5
1820 mv -f conftest.er1 conftest.err
1821 fi
1822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823 test $ac_status = 0; } && {
1824 test -z "$ac_c_werror_flag" ||
1825 test ! -s conftest.err
1826 } && test -s conftest$ac_exeext && {
1827 test "$cross_compiling" = yes ||
1828 test -x conftest$ac_exeext
1829 }; then :
1830 ac_retval=0
1831else
1832 $as_echo "$as_me: failed program was:" >&5
1833sed 's/^/| /' conftest.$ac_ext >&5
1834
1835 ac_retval=1
1836fi
1837 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1838 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1839 # interfere with the next link command; also delete a directory that is
1840 # left behind by Apple's compiler. We do this before executing the actions.
1841 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843 as_fn_set_status $ac_retval
1844
1845} # ac_fn_c_try_link
1846
1847# ac_fn_c_check_func LINENO FUNC VAR
1848# ----------------------------------
1849# Tests whether FUNC exists, setting the cache variable VAR accordingly
1850ac_fn_c_check_func ()
1851{
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1854$as_echo_n "checking for $2... " >&6; }
1855if eval \${$3+:} false; then :
1856 $as_echo_n "(cached) " >&6
1857else
1858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859/* end confdefs.h. */
1860/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1862#define $2 innocuous_$2
1863
1864/* System header to define __stub macros and hopefully few prototypes,
1865 which can conflict with char $2 (); below.
1866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1867 <limits.h> exists even on freestanding compilers. */
1868
1869#ifdef __STDC__
1870# include <limits.h>
1871#else
1872# include <assert.h>
1873#endif
1874
1875#undef $2
1876
1877/* Override any GCC internal prototype to avoid an error.
1878 Use char because int might match the return type of a GCC
1879 builtin and then its argument prototype would still apply. */
1880#ifdef __cplusplus
1881extern "C"
1882#endif
1883char $2 ();
1884/* The GNU C library defines this for functions which it implements
1885 to always fail with ENOSYS. Some functions are actually named
1886 something starting with __ and the normal name is an alias. */
1887#if defined __stub_$2 || defined __stub___$2
1888choke me
1889#endif
1890
1891int
1892main ()
1893{
1894return $2 ();
1895 ;
1896 return 0;
1897}
1898_ACEOF
1899if ac_fn_c_try_link "$LINENO"; then :
1900 eval "$3=yes"
1901else
1902 eval "$3=no"
1903fi
1904rm -f core conftest.err conftest.$ac_objext \
1905 conftest$ac_exeext conftest.$ac_ext
1906fi
1907eval ac_res=\$$3
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909$as_echo "$ac_res" >&6; }
1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911
1912} # ac_fn_c_check_func
1913cat >config.log <<_ACEOF
1914This file contains any messages produced by compilers while
1915running configure, to aid debugging if configure makes a mistake.
1916
1917It was created by ratbagd $as_me 1, which was
1918generated by GNU Autoconf 2.69. Invocation command line was
1919
1920 $ $0 $@
1921
1922_ACEOF
1923exec 5>>config.log
1924{
1925cat <<_ASUNAME
1926## --------- ##
1927## Platform. ##
1928## --------- ##
1929
1930hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1931uname -m = `(uname -m) 2>/dev/null || echo unknown`
1932uname -r = `(uname -r) 2>/dev/null || echo unknown`
1933uname -s = `(uname -s) 2>/dev/null || echo unknown`
1934uname -v = `(uname -v) 2>/dev/null || echo unknown`
1935
1936/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1937/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1938
1939/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1940/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1941/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1942/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1943/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1944/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1945/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1946
1947_ASUNAME
1948
1949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1950for as_dir in $PATH
1951do
1952 IFS=$as_save_IFS
1953 test -z "$as_dir" && as_dir=.
1954 $as_echo "PATH: $as_dir"
1955 done
1956IFS=$as_save_IFS
1957
1958} >&5
1959
1960cat >&5 <<_ACEOF
1961
1962
1963## ----------- ##
1964## Core tests. ##
1965## ----------- ##
1966
1967_ACEOF
1968
1969
1970# Keep a trace of the command line.
1971# Strip out --no-create and --no-recursion so they do not pile up.
1972# Strip out --silent because we don't want to record it for future runs.
1973# Also quote any args containing shell meta-characters.
1974# Make two passes to allow for proper duplicate-argument suppression.
1975ac_configure_args=
1976ac_configure_args0=
1977ac_configure_args1=
1978ac_must_keep_next=false
1979for ac_pass in 1 2
1980do
1981 for ac_arg
1982 do
1983 case $ac_arg in
1984 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1985 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1986 | -silent | --silent | --silen | --sile | --sil)
1987 continue ;;
1988 *\'*)
1989 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1990 esac
1991 case $ac_pass in
1992 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1993 2)
1994 as_fn_append ac_configure_args1 " '$ac_arg'"
1995 if test $ac_must_keep_next = true; then
1996 ac_must_keep_next=false # Got value, back to normal.
1997 else
1998 case $ac_arg in
1999 *=* | --config-cache | -C | -disable-* | --disable-* \
2000 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2001 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2002 | -with-* | --with-* | -without-* | --without-* | --x)
2003 case "$ac_configure_args0 " in
2004 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2005 esac
2006 ;;
2007 -* ) ac_must_keep_next=true ;;
2008 esac
2009 fi
2010 as_fn_append ac_configure_args " '$ac_arg'"
2011 ;;
2012 esac
2013 done
2014done
2015{ ac_configure_args0=; unset ac_configure_args0;}
2016{ ac_configure_args1=; unset ac_configure_args1;}
2017
2018# When interrupted or exit'd, cleanup temporary files, and complete
2019# config.log. We remove comments because anyway the quotes in there
2020# would cause problems or look ugly.
2021# WARNING: Use '\'' to represent an apostrophe within the trap.
2022# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2023trap 'exit_status=$?
2024 # Save into config.log some information that might help in debugging.
2025 {
2026 echo
2027
2028 $as_echo "## ---------------- ##
2029## Cache variables. ##
2030## ---------------- ##"
2031 echo
2032 # The following way of writing the cache mishandles newlines in values,
2033(
2034 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2035 eval ac_val=\$$ac_var
2036 case $ac_val in #(
2037 *${as_nl}*)
2038 case $ac_var in #(
2039 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2040$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2041 esac
2042 case $ac_var in #(
2043 _ | IFS | as_nl) ;; #(
2044 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2045 *) { eval $ac_var=; unset $ac_var;} ;;
2046 esac ;;
2047 esac
2048 done
2049 (set) 2>&1 |
2050 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2051 *${as_nl}ac_space=\ *)
2052 sed -n \
2053 "s/'\''/'\''\\\\'\'''\''/g;
2054 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2055 ;; #(
2056 *)
2057 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2058 ;;
2059 esac |
2060 sort
2061)
2062 echo
2063
2064 $as_echo "## ----------------- ##
2065## Output variables. ##
2066## ----------------- ##"
2067 echo
2068 for ac_var in $ac_subst_vars
2069 do
2070 eval ac_val=\$$ac_var
2071 case $ac_val in
2072 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2073 esac
2074 $as_echo "$ac_var='\''$ac_val'\''"
2075 done | sort
2076 echo
2077
2078 if test -n "$ac_subst_files"; then
2079 $as_echo "## ------------------- ##
2080## File substitutions. ##
2081## ------------------- ##"
2082 echo
2083 for ac_var in $ac_subst_files
2084 do
2085 eval ac_val=\$$ac_var
2086 case $ac_val in
2087 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2088 esac
2089 $as_echo "$ac_var='\''$ac_val'\''"
2090 done | sort
2091 echo
2092 fi
2093
2094 if test -s confdefs.h; then
2095 $as_echo "## ----------- ##
2096## confdefs.h. ##
2097## ----------- ##"
2098 echo
2099 cat confdefs.h
2100 echo
2101 fi
2102 test "$ac_signal" != 0 &&
2103 $as_echo "$as_me: caught signal $ac_signal"
2104 $as_echo "$as_me: exit $exit_status"
2105 } >&5
2106 rm -f core *.core core.conftest.* &&
2107 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2108 exit $exit_status
2109' 0
2110for ac_signal in 1 2 13 15; do
2111 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2112done
2113ac_signal=0
2114
2115# confdefs.h avoids OS command line length limits that DEFS can exceed.
2116rm -f -r conftest* confdefs.h
2117
2118$as_echo "/* confdefs.h */" > confdefs.h
2119
2120# Predefined preprocessor variables.
2121
2122cat >>confdefs.h <<_ACEOF
2123#define PACKAGE_NAME "$PACKAGE_NAME"
2124_ACEOF
2125
2126cat >>confdefs.h <<_ACEOF
2127#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2128_ACEOF
2129
2130cat >>confdefs.h <<_ACEOF
2131#define PACKAGE_VERSION "$PACKAGE_VERSION"
2132_ACEOF
2133
2134cat >>confdefs.h <<_ACEOF
2135#define PACKAGE_STRING "$PACKAGE_STRING"
2136_ACEOF
2137
2138cat >>confdefs.h <<_ACEOF
2139#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2140_ACEOF
2141
2142cat >>confdefs.h <<_ACEOF
2143#define PACKAGE_URL "$PACKAGE_URL"
2144_ACEOF
2145
2146
2147# Let the site file select an alternate cache file if it wants to.
2148# Prefer an explicitly selected file to automatically selected ones.
2149ac_site_file1=NONE
2150ac_site_file2=NONE
2151if test -n "$CONFIG_SITE"; then
2152 # We do not want a PATH search for config.site.
2153 case $CONFIG_SITE in #((
2154 -*) ac_site_file1=./$CONFIG_SITE;;
2155 */*) ac_site_file1=$CONFIG_SITE;;
2156 *) ac_site_file1=./$CONFIG_SITE;;
2157 esac
2158elif test "x$prefix" != xNONE; then
2159 ac_site_file1=$prefix/share/config.site
2160 ac_site_file2=$prefix/etc/config.site
2161else
2162 ac_site_file1=$ac_default_prefix/share/config.site
2163 ac_site_file2=$ac_default_prefix/etc/config.site
2164fi
2165for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2166do
2167 test "x$ac_site_file" = xNONE && continue
2168 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2170$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2171 sed 's/^/| /' "$ac_site_file" >&5
2172 . "$ac_site_file" \
2173 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2175as_fn_error $? "failed to load site script $ac_site_file
2176See \`config.log' for more details" "$LINENO" 5; }
2177 fi
2178done
2179
2180if test -r "$cache_file"; then
2181 # Some versions of bash will fail to source /dev/null (special files
2182 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2183 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2185$as_echo "$as_me: loading cache $cache_file" >&6;}
2186 case $cache_file in
2187 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2188 *) . "./$cache_file";;
2189 esac
2190 fi
2191else
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2193$as_echo "$as_me: creating cache $cache_file" >&6;}
2194 >$cache_file
2195fi
2196
2197# Check that the precious variables saved in the cache have kept the same
2198# value.
2199ac_cache_corrupted=false
2200for ac_var in $ac_precious_vars; do
2201 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2202 eval ac_new_set=\$ac_env_${ac_var}_set
2203 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2204 eval ac_new_val=\$ac_env_${ac_var}_value
2205 case $ac_old_set,$ac_new_set in
2206 set,)
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2208$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2209 ac_cache_corrupted=: ;;
2210 ,set)
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2212$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2213 ac_cache_corrupted=: ;;
2214 ,);;
2215 *)
2216 if test "x$ac_old_val" != "x$ac_new_val"; then
2217 # differences in whitespace do not lead to failure.
2218 ac_old_val_w=`echo x $ac_old_val`
2219 ac_new_val_w=`echo x $ac_new_val`
2220 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2222$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2223 ac_cache_corrupted=:
2224 else
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2226$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2227 eval $ac_var=\$ac_old_val
2228 fi
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2230$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2232$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2233 fi;;
2234 esac
2235 # Pass precious variables to config.status.
2236 if test "$ac_new_set" = set; then
2237 case $ac_new_val in
2238 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2239 *) ac_arg=$ac_var=$ac_new_val ;;
2240 esac
2241 case " $ac_configure_args " in
2242 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2243 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2244 esac
2245 fi
2246done
2247if $ac_cache_corrupted; then
2248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2249$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2251$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2252 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2253fi
2254## -------------------- ##
2255## Main body of script. ##
2256## -------------------- ##
2257
2258ac_ext=c
2259ac_cpp='$CPP $CPPFLAGS'
2260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2262ac_compiler_gnu=$ac_cv_c_compiler_gnu
2263
2264
2265
2266
2267
2268ac_config_headers="$ac_config_headers config.h"
2269
2270ac_aux_dir=
2271for ac_dir in build-aux "$srcdir"/build-aux; do
2272 if test -f "$ac_dir/install-sh"; then
2273 ac_aux_dir=$ac_dir
2274 ac_install_sh="$ac_aux_dir/install-sh -c"
2275 break
2276 elif test -f "$ac_dir/install.sh"; then
2277 ac_aux_dir=$ac_dir
2278 ac_install_sh="$ac_aux_dir/install.sh -c"
2279 break
2280 elif test -f "$ac_dir/shtool"; then
2281 ac_aux_dir=$ac_dir
2282 ac_install_sh="$ac_aux_dir/shtool install -c"
2283 break
2284 fi
2285done
2286if test -z "$ac_aux_dir"; then
2287 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2288fi
2289
2290# These three variables are undocumented and unsupported,
2291# and are intended to be withdrawn in a future Autoconf release.
2292# They can cause serious problems if a builder's source tree is in a directory
2293# whose full name contains unusual characters.
2294ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2295ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2296ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2297
2298
2299
2300# Expand $ac_aux_dir to an absolute path.
2301am_aux_dir=`cd "$ac_aux_dir" && pwd`
2302
2303ac_ext=c
2304ac_cpp='$CPP $CPPFLAGS'
2305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2307ac_compiler_gnu=$ac_cv_c_compiler_gnu
2308if test -n "$ac_tool_prefix"; then
2309 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2310set dummy ${ac_tool_prefix}gcc; ac_word=$2
2311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2312$as_echo_n "checking for $ac_word... " >&6; }
2313if ${ac_cv_prog_CC+:} false; then :
2314 $as_echo_n "(cached) " >&6
2315else
2316 if test -n "$CC"; then
2317 ac_cv_prog_CC="$CC" # Let the user override the test.
2318else
2319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2320for as_dir in $PATH
2321do
2322 IFS=$as_save_IFS
2323 test -z "$as_dir" && as_dir=.
2324 for ac_exec_ext in '' $ac_executable_extensions; do
2325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2326 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2328 break 2
2329 fi
2330done
2331 done
2332IFS=$as_save_IFS
2333
2334fi
2335fi
2336CC=$ac_cv_prog_CC
2337if test -n "$CC"; then
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2339$as_echo "$CC" >&6; }
2340else
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2342$as_echo "no" >&6; }
2343fi
2344
2345
2346fi
2347if test -z "$ac_cv_prog_CC"; then
2348 ac_ct_CC=$CC
2349 # Extract the first word of "gcc", so it can be a program name with args.
2350set dummy gcc; ac_word=$2
2351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2352$as_echo_n "checking for $ac_word... " >&6; }
2353if ${ac_cv_prog_ac_ct_CC+:} false; then :
2354 $as_echo_n "(cached) " >&6
2355else
2356 if test -n "$ac_ct_CC"; then
2357 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2358else
2359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2360for as_dir in $PATH
2361do
2362 IFS=$as_save_IFS
2363 test -z "$as_dir" && as_dir=.
2364 for ac_exec_ext in '' $ac_executable_extensions; do
2365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2366 ac_cv_prog_ac_ct_CC="gcc"
2367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2368 break 2
2369 fi
2370done
2371 done
2372IFS=$as_save_IFS
2373
2374fi
2375fi
2376ac_ct_CC=$ac_cv_prog_ac_ct_CC
2377if test -n "$ac_ct_CC"; then
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2379$as_echo "$ac_ct_CC" >&6; }
2380else
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2382$as_echo "no" >&6; }
2383fi
2384
2385 if test "x$ac_ct_CC" = x; then
2386 CC=""
2387 else
2388 case $cross_compiling:$ac_tool_warned in
2389yes:)
2390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2392ac_tool_warned=yes ;;
2393esac
2394 CC=$ac_ct_CC
2395 fi
2396else
2397 CC="$ac_cv_prog_CC"
2398fi
2399
2400if test -z "$CC"; then
2401 if test -n "$ac_tool_prefix"; then
2402 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2403set dummy ${ac_tool_prefix}cc; ac_word=$2
2404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2405$as_echo_n "checking for $ac_word... " >&6; }
2406if ${ac_cv_prog_CC+:} false; then :
2407 $as_echo_n "(cached) " >&6
2408else
2409 if test -n "$CC"; then
2410 ac_cv_prog_CC="$CC" # Let the user override the test.
2411else
2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413for as_dir in $PATH
2414do
2415 IFS=$as_save_IFS
2416 test -z "$as_dir" && as_dir=.
2417 for ac_exec_ext in '' $ac_executable_extensions; do
2418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2419 ac_cv_prog_CC="${ac_tool_prefix}cc"
2420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2421 break 2
2422 fi
2423done
2424 done
2425IFS=$as_save_IFS
2426
2427fi
2428fi
2429CC=$ac_cv_prog_CC
2430if test -n "$CC"; then
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2432$as_echo "$CC" >&6; }
2433else
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2435$as_echo "no" >&6; }
2436fi
2437
2438
2439 fi
2440fi
2441if test -z "$CC"; then
2442 # Extract the first word of "cc", so it can be a program name with args.
2443set dummy cc; ac_word=$2
2444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2445$as_echo_n "checking for $ac_word... " >&6; }
2446if ${ac_cv_prog_CC+:} false; then :
2447 $as_echo_n "(cached) " >&6
2448else
2449 if test -n "$CC"; then
2450 ac_cv_prog_CC="$CC" # Let the user override the test.
2451else
2452 ac_prog_rejected=no
2453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2454for as_dir in $PATH
2455do
2456 IFS=$as_save_IFS
2457 test -z "$as_dir" && as_dir=.
2458 for ac_exec_ext in '' $ac_executable_extensions; do
2459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2460 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2461 ac_prog_rejected=yes
2462 continue
2463 fi
2464 ac_cv_prog_CC="cc"
2465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2466 break 2
2467 fi
2468done
2469 done
2470IFS=$as_save_IFS
2471
2472if test $ac_prog_rejected = yes; then
2473 # We found a bogon in the path, so make sure we never use it.
2474 set dummy $ac_cv_prog_CC
2475 shift
2476 if test $# != 0; then
2477 # We chose a different compiler from the bogus one.
2478 # However, it has the same basename, so the bogon will be chosen
2479 # first if we set CC to just the basename; use the full file name.
2480 shift
2481 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2482 fi
2483fi
2484fi
2485fi
2486CC=$ac_cv_prog_CC
2487if test -n "$CC"; then
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2489$as_echo "$CC" >&6; }
2490else
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2492$as_echo "no" >&6; }
2493fi
2494
2495
2496fi
2497if test -z "$CC"; then
2498 if test -n "$ac_tool_prefix"; then
2499 for ac_prog in cl.exe
2500 do
2501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2502set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2504$as_echo_n "checking for $ac_word... " >&6; }
2505if ${ac_cv_prog_CC+:} false; then :
2506 $as_echo_n "(cached) " >&6
2507else
2508 if test -n "$CC"; then
2509 ac_cv_prog_CC="$CC" # Let the user override the test.
2510else
2511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2512for as_dir in $PATH
2513do
2514 IFS=$as_save_IFS
2515 test -z "$as_dir" && as_dir=.
2516 for ac_exec_ext in '' $ac_executable_extensions; do
2517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2518 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2520 break 2
2521 fi
2522done
2523 done
2524IFS=$as_save_IFS
2525
2526fi
2527fi
2528CC=$ac_cv_prog_CC
2529if test -n "$CC"; then
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2531$as_echo "$CC" >&6; }
2532else
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2534$as_echo "no" >&6; }
2535fi
2536
2537
2538 test -n "$CC" && break
2539 done
2540fi
2541if test -z "$CC"; then
2542 ac_ct_CC=$CC
2543 for ac_prog in cl.exe
2544do
2545 # Extract the first word of "$ac_prog", so it can be a program name with args.
2546set dummy $ac_prog; ac_word=$2
2547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2548$as_echo_n "checking for $ac_word... " >&6; }
2549if ${ac_cv_prog_ac_ct_CC+:} false; then :
2550 $as_echo_n "(cached) " >&6
2551else
2552 if test -n "$ac_ct_CC"; then
2553 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2554else
2555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556for as_dir in $PATH
2557do
2558 IFS=$as_save_IFS
2559 test -z "$as_dir" && as_dir=.
2560 for ac_exec_ext in '' $ac_executable_extensions; do
2561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2562 ac_cv_prog_ac_ct_CC="$ac_prog"
2563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2564 break 2
2565 fi
2566done
2567 done
2568IFS=$as_save_IFS
2569
2570fi
2571fi
2572ac_ct_CC=$ac_cv_prog_ac_ct_CC
2573if test -n "$ac_ct_CC"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2575$as_echo "$ac_ct_CC" >&6; }
2576else
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2578$as_echo "no" >&6; }
2579fi
2580
2581
2582 test -n "$ac_ct_CC" && break
2583done
2584
2585 if test "x$ac_ct_CC" = x; then
2586 CC=""
2587 else
2588 case $cross_compiling:$ac_tool_warned in
2589yes:)
2590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2592ac_tool_warned=yes ;;
2593esac
2594 CC=$ac_ct_CC
2595 fi
2596fi
2597
2598fi
2599
2600
2601test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2602$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2603as_fn_error $? "no acceptable C compiler found in \$PATH
2604See \`config.log' for more details" "$LINENO" 5; }
2605
2606# Provide some information about the compiler.
2607$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2608set X $ac_compile
2609ac_compiler=$2
2610for ac_option in --version -v -V -qversion; do
2611 { { ac_try="$ac_compiler $ac_option >&5"
2612case "(($ac_try" in
2613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2614 *) ac_try_echo=$ac_try;;
2615esac
2616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2617$as_echo "$ac_try_echo"; } >&5
2618 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2619 ac_status=$?
2620 if test -s conftest.err; then
2621 sed '10a\
2622... rest of stderr output deleted ...
2623 10q' conftest.err >conftest.er1
2624 cat conftest.er1 >&5
2625 fi
2626 rm -f conftest.er1 conftest.err
2627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2628 test $ac_status = 0; }
2629done
2630
2631cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2632/* end confdefs.h. */
2633
2634int
2635main ()
2636{
2637
2638 ;
2639 return 0;
2640}
2641_ACEOF
2642ac_clean_files_save=$ac_clean_files
2643ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2644# Try to create an executable without -o first, disregard a.out.
2645# It will help us diagnose broken compilers, and finding out an intuition
2646# of exeext.
2647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2648$as_echo_n "checking whether the C compiler works... " >&6; }
2649ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2650
2651# The possible output files:
2652ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2653
2654ac_rmfiles=
2655for ac_file in $ac_files
2656do
2657 case $ac_file in
2658 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2659 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2660 esac
2661done
2662rm -f $ac_rmfiles
2663
2664if { { ac_try="$ac_link_default"
2665case "(($ac_try" in
2666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667 *) ac_try_echo=$ac_try;;
2668esac
2669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2670$as_echo "$ac_try_echo"; } >&5
2671 (eval "$ac_link_default") 2>&5
2672 ac_status=$?
2673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2674 test $ac_status = 0; }; then :
2675 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2676# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2677# in a Makefile. We should not override ac_cv_exeext if it was cached,
2678# so that the user can short-circuit this test for compilers unknown to
2679# Autoconf.
2680for ac_file in $ac_files ''
2681do
2682 test -f "$ac_file" || continue
2683 case $ac_file in
2684 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2685 ;;
2686 [ab].out )
2687 # We found the default executable, but exeext='' is most
2688 # certainly right.
2689 break;;
2690 *.* )
2691 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2692 then :; else
2693 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2694 fi
2695 # We set ac_cv_exeext here because the later test for it is not
2696 # safe: cross compilers may not add the suffix if given an `-o'
2697 # argument, so we may need to know it at that point already.
2698 # Even if this section looks crufty: it has the advantage of
2699 # actually working.
2700 break;;
2701 * )
2702 break;;
2703 esac
2704done
2705test "$ac_cv_exeext" = no && ac_cv_exeext=
2706
2707else
2708 ac_file=''
2709fi
2710if test -z "$ac_file"; then :
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2712$as_echo "no" >&6; }
2713$as_echo "$as_me: failed program was:" >&5
2714sed 's/^/| /' conftest.$ac_ext >&5
2715
2716{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2717$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2718as_fn_error 77 "C compiler cannot create executables
2719See \`config.log' for more details" "$LINENO" 5; }
2720else
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2722$as_echo "yes" >&6; }
2723fi
2724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2725$as_echo_n "checking for C compiler default output file name... " >&6; }
2726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2727$as_echo "$ac_file" >&6; }
2728ac_exeext=$ac_cv_exeext
2729
2730rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2731ac_clean_files=$ac_clean_files_save
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2733$as_echo_n "checking for suffix of executables... " >&6; }
2734if { { ac_try="$ac_link"
2735case "(($ac_try" in
2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737 *) ac_try_echo=$ac_try;;
2738esac
2739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2740$as_echo "$ac_try_echo"; } >&5
2741 (eval "$ac_link") 2>&5
2742 ac_status=$?
2743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2744 test $ac_status = 0; }; then :
2745 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2746# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2747# work properly (i.e., refer to `conftest.exe'), while it won't with
2748# `rm'.
2749for ac_file in conftest.exe conftest conftest.*; do
2750 test -f "$ac_file" || continue
2751 case $ac_file in
2752 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2753 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2754 break;;
2755 * ) break;;
2756 esac
2757done
2758else
2759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2760$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2761as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2762See \`config.log' for more details" "$LINENO" 5; }
2763fi
2764rm -f conftest conftest$ac_cv_exeext
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2766$as_echo "$ac_cv_exeext" >&6; }
2767
2768rm -f conftest.$ac_ext
2769EXEEXT=$ac_cv_exeext
2770ac_exeext=$EXEEXT
2771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2772/* end confdefs.h. */
2773#include <stdio.h>
2774int
2775main ()
2776{
2777FILE *f = fopen ("conftest.out", "w");
2778 return ferror (f) || fclose (f) != 0;
2779
2780 ;
2781 return 0;
2782}
2783_ACEOF
2784ac_clean_files="$ac_clean_files conftest.out"
2785# Check that the compiler produces executables we can run. If not, either
2786# the compiler is broken, or we cross compile.
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2788$as_echo_n "checking whether we are cross compiling... " >&6; }
2789if test "$cross_compiling" != yes; then
2790 { { ac_try="$ac_link"
2791case "(($ac_try" in
2792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2793 *) ac_try_echo=$ac_try;;
2794esac
2795eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2796$as_echo "$ac_try_echo"; } >&5
2797 (eval "$ac_link") 2>&5
2798 ac_status=$?
2799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2800 test $ac_status = 0; }
2801 if { ac_try='./conftest$ac_cv_exeext'
2802 { { case "(($ac_try" in
2803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2804 *) ac_try_echo=$ac_try;;
2805esac
2806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2807$as_echo "$ac_try_echo"; } >&5
2808 (eval "$ac_try") 2>&5
2809 ac_status=$?
2810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2811 test $ac_status = 0; }; }; then
2812 cross_compiling=no
2813 else
2814 if test "$cross_compiling" = maybe; then
2815 cross_compiling=yes
2816 else
2817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2818$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2819as_fn_error $? "cannot run C compiled programs.
2820If you meant to cross compile, use \`--host'.
2821See \`config.log' for more details" "$LINENO" 5; }
2822 fi
2823 fi
2824fi
2825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2826$as_echo "$cross_compiling" >&6; }
2827
2828rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2829ac_clean_files=$ac_clean_files_save
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2831$as_echo_n "checking for suffix of object files... " >&6; }
2832if ${ac_cv_objext+:} false; then :
2833 $as_echo_n "(cached) " >&6
2834else
2835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2836/* end confdefs.h. */
2837
2838int
2839main ()
2840{
2841
2842 ;
2843 return 0;
2844}
2845_ACEOF
2846rm -f conftest.o conftest.obj
2847if { { ac_try="$ac_compile"
2848case "(($ac_try" in
2849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2850 *) ac_try_echo=$ac_try;;
2851esac
2852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2853$as_echo "$ac_try_echo"; } >&5
2854 (eval "$ac_compile") 2>&5
2855 ac_status=$?
2856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2857 test $ac_status = 0; }; then :
2858 for ac_file in conftest.o conftest.obj conftest.*; do
2859 test -f "$ac_file" || continue;
2860 case $ac_file in
2861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2862 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2863 break;;
2864 esac
2865done
2866else
2867 $as_echo "$as_me: failed program was:" >&5
2868sed 's/^/| /' conftest.$ac_ext >&5
2869
2870{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2872as_fn_error $? "cannot compute suffix of object files: cannot compile
2873See \`config.log' for more details" "$LINENO" 5; }
2874fi
2875rm -f conftest.$ac_cv_objext conftest.$ac_ext
2876fi
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2878$as_echo "$ac_cv_objext" >&6; }
2879OBJEXT=$ac_cv_objext
2880ac_objext=$OBJEXT
2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2882$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2883if ${ac_cv_c_compiler_gnu+:} false; then :
2884 $as_echo_n "(cached) " >&6
2885else
2886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2887/* end confdefs.h. */
2888
2889int
2890main ()
2891{
2892#ifndef __GNUC__
2893 choke me
2894#endif
2895
2896 ;
2897 return 0;
2898}
2899_ACEOF
2900if ac_fn_c_try_compile "$LINENO"; then :
2901 ac_compiler_gnu=yes
2902else
2903 ac_compiler_gnu=no
2904fi
2905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2906ac_cv_c_compiler_gnu=$ac_compiler_gnu
2907
2908fi
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2910$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2911if test $ac_compiler_gnu = yes; then
2912 GCC=yes
2913else
2914 GCC=
2915fi
2916ac_test_CFLAGS=${CFLAGS+set}
2917ac_save_CFLAGS=$CFLAGS
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2919$as_echo_n "checking whether $CC accepts -g... " >&6; }
2920if ${ac_cv_prog_cc_g+:} false; then :
2921 $as_echo_n "(cached) " >&6
2922else
2923 ac_save_c_werror_flag=$ac_c_werror_flag
2924 ac_c_werror_flag=yes
2925 ac_cv_prog_cc_g=no
2926 CFLAGS="-g"
2927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2928/* end confdefs.h. */
2929
2930int
2931main ()
2932{
2933
2934 ;
2935 return 0;
2936}
2937_ACEOF
2938if ac_fn_c_try_compile "$LINENO"; then :
2939 ac_cv_prog_cc_g=yes
2940else
2941 CFLAGS=""
2942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2943/* end confdefs.h. */
2944
2945int
2946main ()
2947{
2948
2949 ;
2950 return 0;
2951}
2952_ACEOF
2953if ac_fn_c_try_compile "$LINENO"; then :
2954
2955else
2956 ac_c_werror_flag=$ac_save_c_werror_flag
2957 CFLAGS="-g"
2958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2959/* end confdefs.h. */
2960
2961int
2962main ()
2963{
2964
2965 ;
2966 return 0;
2967}
2968_ACEOF
2969if ac_fn_c_try_compile "$LINENO"; then :
2970 ac_cv_prog_cc_g=yes
2971fi
2972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2973fi
2974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2975fi
2976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2977 ac_c_werror_flag=$ac_save_c_werror_flag
2978fi
2979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2980$as_echo "$ac_cv_prog_cc_g" >&6; }
2981if test "$ac_test_CFLAGS" = set; then
2982 CFLAGS=$ac_save_CFLAGS
2983elif test $ac_cv_prog_cc_g = yes; then
2984 if test "$GCC" = yes; then
2985 CFLAGS="-g -O2"
2986 else
2987 CFLAGS="-g"
2988 fi
2989else
2990 if test "$GCC" = yes; then
2991 CFLAGS="-O2"
2992 else
2993 CFLAGS=
2994 fi
2995fi
2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2997$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2998if ${ac_cv_prog_cc_c89+:} false; then :
2999 $as_echo_n "(cached) " >&6
3000else
3001 ac_cv_prog_cc_c89=no
3002ac_save_CC=$CC
3003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3004/* end confdefs.h. */
3005#include <stdarg.h>
3006#include <stdio.h>
3007struct stat;
3008/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3009struct buf { int x; };
3010FILE * (*rcsopen) (struct buf *, struct stat *, int);
3011static char *e (p, i)
3012 char **p;
3013 int i;
3014{
3015 return p[i];
3016}
3017static char *f (char * (*g) (char **, int), char **p, ...)
3018{
3019 char *s;
3020 va_list v;
3021 va_start (v,p);
3022 s = g (p, va_arg (v,int));
3023 va_end (v);
3024 return s;
3025}
3026
3027/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3028 function prototypes and stuff, but not '\xHH' hex character constants.
3029 These don't provoke an error unfortunately, instead are silently treated
3030 as 'x'. The following induces an error, until -std is added to get
3031 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3032 array size at least. It's necessary to write '\x00'==0 to get something
3033 that's true only with -std. */
3034int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3035
3036/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3037 inside strings and character constants. */
3038#define FOO(x) 'x'
3039int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3040
3041int test (int i, double x);
3042struct s1 {int (*f) (int a);};
3043struct s2 {int (*f) (double a);};
3044int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3045int argc;
3046char **argv;
3047int
3048main ()
3049{
3050return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3051 ;
3052 return 0;
3053}
3054_ACEOF
3055for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3056 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3057do
3058 CC="$ac_save_CC $ac_arg"
3059 if ac_fn_c_try_compile "$LINENO"; then :
3060 ac_cv_prog_cc_c89=$ac_arg
3061fi
3062rm -f core conftest.err conftest.$ac_objext
3063 test "x$ac_cv_prog_cc_c89" != "xno" && break
3064done
3065rm -f conftest.$ac_ext
3066CC=$ac_save_CC
3067
3068fi
3069# AC_CACHE_VAL
3070case "x$ac_cv_prog_cc_c89" in
3071 x)
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3073$as_echo "none needed" >&6; } ;;
3074 xno)
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3076$as_echo "unsupported" >&6; } ;;
3077 *)
3078 CC="$CC $ac_cv_prog_cc_c89"
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3080$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3081esac
3082if test "x$ac_cv_prog_cc_c89" != xno; then :
3083
3084fi
3085
3086ac_ext=c
3087ac_cpp='$CPP $CPPFLAGS'
3088ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3089ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3090ac_compiler_gnu=$ac_cv_c_compiler_gnu
3091
3092ac_ext=c
3093ac_cpp='$CPP $CPPFLAGS'
3094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3096ac_compiler_gnu=$ac_cv_c_compiler_gnu
3097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3098$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3099if ${am_cv_prog_cc_c_o+:} false; then :
3100 $as_echo_n "(cached) " >&6
3101else
3102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3103/* end confdefs.h. */
3104
3105int
3106main ()
3107{
3108
3109 ;
3110 return 0;
3111}
3112_ACEOF
3113 # Make sure it works both with $CC and with simple cc.
3114 # Following AC_PROG_CC_C_O, we do the test twice because some
3115 # compilers refuse to overwrite an existing .o file with -o,
3116 # though they will create one.
3117 am_cv_prog_cc_c_o=yes
3118 for am_i in 1 2; do
3119 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3120 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3121 ac_status=$?
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); } \
3124 && test -f conftest2.$ac_objext; then
3125 : OK
3126 else
3127 am_cv_prog_cc_c_o=no
3128 break
3129 fi
3130 done
3131 rm -f core conftest*
3132 unset am_i
3133fi
3134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3135$as_echo "$am_cv_prog_cc_c_o" >&6; }
3136if test "$am_cv_prog_cc_c_o" != yes; then
3137 # Losing compiler, so override with the script.
3138 # FIXME: It is wrong to rewrite CC.
3139 # But if we don't then we get into trouble of one sort or another.
3140 # A longer-term fix would be to have automake use am__CC in this case,
3141 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3142 CC="$am_aux_dir/compile $CC"
3143fi
3144ac_ext=c
3145ac_cpp='$CPP $CPPFLAGS'
3146ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3147ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3148ac_compiler_gnu=$ac_cv_c_compiler_gnu
3149
3150
3151
3152ac_ext=c
3153ac_cpp='$CPP $CPPFLAGS'
3154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3156ac_compiler_gnu=$ac_cv_c_compiler_gnu
3157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3158$as_echo_n "checking how to run the C preprocessor... " >&6; }
3159# On Suns, sometimes $CPP names a directory.
3160if test -n "$CPP" && test -d "$CPP"; then
3161 CPP=
3162fi
3163if test -z "$CPP"; then
3164 if ${ac_cv_prog_CPP+:} false; then :
3165 $as_echo_n "(cached) " >&6
3166else
3167 # Double quotes because CPP needs to be expanded
3168 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3169 do
3170 ac_preproc_ok=false
3171for ac_c_preproc_warn_flag in '' yes
3172do
3173 # Use a header file that comes with gcc, so configuring glibc
3174 # with a fresh cross-compiler works.
3175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3176 # <limits.h> exists even on freestanding compilers.
3177 # On the NeXT, cc -E runs the code through the compiler's parser,
3178 # not just through cpp. "Syntax error" is here to catch this case.
3179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180/* end confdefs.h. */
3181#ifdef __STDC__
3182# include <limits.h>
3183#else
3184# include <assert.h>
3185#endif
3186 Syntax error
3187_ACEOF
3188if ac_fn_c_try_cpp "$LINENO"; then :
3189
3190else
3191 # Broken: fails on valid input.
3192continue
3193fi
3194rm -f conftest.err conftest.i conftest.$ac_ext
3195
3196 # OK, works on sane cases. Now check whether nonexistent headers
3197 # can be detected and how.
3198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3199/* end confdefs.h. */
3200#include <ac_nonexistent.h>
3201_ACEOF
3202if ac_fn_c_try_cpp "$LINENO"; then :
3203 # Broken: success on invalid input.
3204continue
3205else
3206 # Passes both tests.
3207ac_preproc_ok=:
3208break
3209fi
3210rm -f conftest.err conftest.i conftest.$ac_ext
3211
3212done
3213# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3214rm -f conftest.i conftest.err conftest.$ac_ext
3215if $ac_preproc_ok; then :
3216 break
3217fi
3218
3219 done
3220 ac_cv_prog_CPP=$CPP
3221
3222fi
3223 CPP=$ac_cv_prog_CPP
3224else
3225 ac_cv_prog_CPP=$CPP
3226fi
3227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3228$as_echo "$CPP" >&6; }
3229ac_preproc_ok=false
3230for ac_c_preproc_warn_flag in '' yes
3231do
3232 # Use a header file that comes with gcc, so configuring glibc
3233 # with a fresh cross-compiler works.
3234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3235 # <limits.h> exists even on freestanding compilers.
3236 # On the NeXT, cc -E runs the code through the compiler's parser,
3237 # not just through cpp. "Syntax error" is here to catch this case.
3238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3239/* end confdefs.h. */
3240#ifdef __STDC__
3241# include <limits.h>
3242#else
3243# include <assert.h>
3244#endif
3245 Syntax error
3246_ACEOF
3247if ac_fn_c_try_cpp "$LINENO"; then :
3248
3249else
3250 # Broken: fails on valid input.
3251continue
3252fi
3253rm -f conftest.err conftest.i conftest.$ac_ext
3254
3255 # OK, works on sane cases. Now check whether nonexistent headers
3256 # can be detected and how.
3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258/* end confdefs.h. */
3259#include <ac_nonexistent.h>
3260_ACEOF
3261if ac_fn_c_try_cpp "$LINENO"; then :
3262 # Broken: success on invalid input.
3263continue
3264else
3265 # Passes both tests.
3266ac_preproc_ok=:
3267break
3268fi
3269rm -f conftest.err conftest.i conftest.$ac_ext
3270
3271done
3272# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3273rm -f conftest.i conftest.err conftest.$ac_ext
3274if $ac_preproc_ok; then :
3275
3276else
3277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3279as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3280See \`config.log' for more details" "$LINENO" 5; }
3281fi
3282
3283ac_ext=c
3284ac_cpp='$CPP $CPPFLAGS'
3285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3287ac_compiler_gnu=$ac_cv_c_compiler_gnu
3288
3289
3290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3291$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3292if ${ac_cv_path_GREP+:} false; then :
3293 $as_echo_n "(cached) " >&6
3294else
3295 if test -z "$GREP"; then
3296 ac_path_GREP_found=false
3297 # Loop through the user's path and test for each of PROGNAME-LIST
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3300do
3301 IFS=$as_save_IFS
3302 test -z "$as_dir" && as_dir=.
3303 for ac_prog in grep ggrep; do
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3306 as_fn_executable_p "$ac_path_GREP" || continue
3307# Check for GNU ac_path_GREP and select it if it is found.
3308 # Check for GNU $ac_path_GREP
3309case `"$ac_path_GREP" --version 2>&1` in
3310*GNU*)
3311 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3312*)
3313 ac_count=0
3314 $as_echo_n 0123456789 >"conftest.in"
3315 while :
3316 do
3317 cat "conftest.in" "conftest.in" >"conftest.tmp"
3318 mv "conftest.tmp" "conftest.in"
3319 cp "conftest.in" "conftest.nl"
3320 $as_echo 'GREP' >> "conftest.nl"
3321 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3322 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3323 as_fn_arith $ac_count + 1 && ac_count=$as_val
3324 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3325 # Best one so far, save it but keep looking for a better one
3326 ac_cv_path_GREP="$ac_path_GREP"
3327 ac_path_GREP_max=$ac_count
3328 fi
3329 # 10*(2^10) chars as input seems more than enough
3330 test $ac_count -gt 10 && break
3331 done
3332 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3333esac
3334
3335 $ac_path_GREP_found && break 3
3336 done
3337 done
3338 done
3339IFS=$as_save_IFS
3340 if test -z "$ac_cv_path_GREP"; then
3341 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3342 fi
3343else
3344 ac_cv_path_GREP=$GREP
3345fi
3346
3347fi
3348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3349$as_echo "$ac_cv_path_GREP" >&6; }
3350 GREP="$ac_cv_path_GREP"
3351
3352
3353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3354$as_echo_n "checking for egrep... " >&6; }
3355if ${ac_cv_path_EGREP+:} false; then :
3356 $as_echo_n "(cached) " >&6
3357else
3358 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3359 then ac_cv_path_EGREP="$GREP -E"
3360 else
3361 if test -z "$EGREP"; then
3362 ac_path_EGREP_found=false
3363 # Loop through the user's path and test for each of PROGNAME-LIST
3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3366do
3367 IFS=$as_save_IFS
3368 test -z "$as_dir" && as_dir=.
3369 for ac_prog in egrep; do
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3372 as_fn_executable_p "$ac_path_EGREP" || continue
3373# Check for GNU ac_path_EGREP and select it if it is found.
3374 # Check for GNU $ac_path_EGREP
3375case `"$ac_path_EGREP" --version 2>&1` in
3376*GNU*)
3377 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3378*)
3379 ac_count=0
3380 $as_echo_n 0123456789 >"conftest.in"
3381 while :
3382 do
3383 cat "conftest.in" "conftest.in" >"conftest.tmp"
3384 mv "conftest.tmp" "conftest.in"
3385 cp "conftest.in" "conftest.nl"
3386 $as_echo 'EGREP' >> "conftest.nl"
3387 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3388 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3389 as_fn_arith $ac_count + 1 && ac_count=$as_val
3390 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3391 # Best one so far, save it but keep looking for a better one
3392 ac_cv_path_EGREP="$ac_path_EGREP"
3393 ac_path_EGREP_max=$ac_count
3394 fi
3395 # 10*(2^10) chars as input seems more than enough
3396 test $ac_count -gt 10 && break
3397 done
3398 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3399esac
3400
3401 $ac_path_EGREP_found && break 3
3402 done
3403 done
3404 done
3405IFS=$as_save_IFS
3406 if test -z "$ac_cv_path_EGREP"; then
3407 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3408 fi
3409else
3410 ac_cv_path_EGREP=$EGREP
3411fi
3412
3413 fi
3414fi
3415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3416$as_echo "$ac_cv_path_EGREP" >&6; }
3417 EGREP="$ac_cv_path_EGREP"
3418
3419
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3421$as_echo_n "checking for ANSI C header files... " >&6; }
3422if ${ac_cv_header_stdc+:} false; then :
3423 $as_echo_n "(cached) " >&6
3424else
3425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3426/* end confdefs.h. */
3427#include <stdlib.h>
3428#include <stdarg.h>
3429#include <string.h>
3430#include <float.h>
3431
3432int
3433main ()
3434{
3435
3436 ;
3437 return 0;
3438}
3439_ACEOF
3440if ac_fn_c_try_compile "$LINENO"; then :
3441 ac_cv_header_stdc=yes
3442else
3443 ac_cv_header_stdc=no
3444fi
3445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446
3447if test $ac_cv_header_stdc = yes; then
3448 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450/* end confdefs.h. */
3451#include <string.h>
3452
3453_ACEOF
3454if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3455 $EGREP "memchr" >/dev/null 2>&1; then :
3456
3457else
3458 ac_cv_header_stdc=no
3459fi
3460rm -f conftest*
3461
3462fi
3463
3464if test $ac_cv_header_stdc = yes; then
3465 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467/* end confdefs.h. */
3468#include <stdlib.h>
3469
3470_ACEOF
3471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3472 $EGREP "free" >/dev/null 2>&1; then :
3473
3474else
3475 ac_cv_header_stdc=no
3476fi
3477rm -f conftest*
3478
3479fi
3480
3481if test $ac_cv_header_stdc = yes; then
3482 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3483 if test "$cross_compiling" = yes; then :
3484 :
3485else
3486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487/* end confdefs.h. */
3488#include <ctype.h>
3489#include <stdlib.h>
3490#if ((' ' & 0x0FF) == 0x020)
3491# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3492# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3493#else
3494# define ISLOWER(c) \
3495 (('a' <= (c) && (c) <= 'i') \
3496 || ('j' <= (c) && (c) <= 'r') \
3497 || ('s' <= (c) && (c) <= 'z'))
3498# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3499#endif
3500
3501#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3502int
3503main ()
3504{
3505 int i;
3506 for (i = 0; i < 256; i++)
3507 if (XOR (islower (i), ISLOWER (i))
3508 || toupper (i) != TOUPPER (i))
3509 return 2;
3510 return 0;
3511}
3512_ACEOF
3513if ac_fn_c_try_run "$LINENO"; then :
3514
3515else
3516 ac_cv_header_stdc=no
3517fi
3518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3519 conftest.$ac_objext conftest.beam conftest.$ac_ext
3520fi
3521
3522fi
3523fi
3524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3525$as_echo "$ac_cv_header_stdc" >&6; }
3526if test $ac_cv_header_stdc = yes; then
3527
3528$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3529
3530fi
3531
3532# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3533for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3534 inttypes.h stdint.h unistd.h
3535do :
3536 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3537ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3538"
3539if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3540 cat >>confdefs.h <<_ACEOF
3541#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3542_ACEOF
3543
3544fi
3545
3546done
3547
3548
3549
3550 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3551if test "x$ac_cv_header_minix_config_h" = xyes; then :
3552 MINIX=yes
3553else
3554 MINIX=
3555fi
3556
3557
3558 if test "$MINIX" = yes; then
3559
3560$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3561
3562
3563$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3564
3565
3566$as_echo "#define _MINIX 1" >>confdefs.h
3567
3568 fi
3569
3570
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3572$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3573if ${ac_cv_safe_to_define___extensions__+:} false; then :
3574 $as_echo_n "(cached) " >&6
3575else
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577/* end confdefs.h. */
3578
3579# define __EXTENSIONS__ 1
3580 $ac_includes_default
3581int
3582main ()
3583{
3584
3585 ;
3586 return 0;
3587}
3588_ACEOF
3589if ac_fn_c_try_compile "$LINENO"; then :
3590 ac_cv_safe_to_define___extensions__=yes
3591else
3592 ac_cv_safe_to_define___extensions__=no
3593fi
3594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3595fi
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3597$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3598 test $ac_cv_safe_to_define___extensions__ = yes &&
3599 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3600
3601 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3602
3603 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3604
3605 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3606
3607 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3608
3609
3610# Check whether --enable-largefile was given.
3611if test "${enable_largefile+set}" = set; then :
3612 enableval=$enable_largefile;
3613fi
3614
3615if test "$enable_largefile" != no; then
3616
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
3618$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
3619if ${ac_cv_sys_largefile_CC+:} false; then :
3620 $as_echo_n "(cached) " >&6
3621else
3622 ac_cv_sys_largefile_CC=no
3623 if test "$GCC" != yes; then
3624 ac_save_CC=$CC
3625 while :; do
3626 # IRIX 6.2 and later do not support large files by default,
3627 # so use the C compiler's -n32 option if that helps.
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629/* end confdefs.h. */
3630#include <sys/types.h>
3631 /* Check that off_t can represent 2**63 - 1 correctly.
3632 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3633 since some C++ compilers masquerading as C compilers
3634 incorrectly reject 9223372036854775807. */
3635#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3636 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3637 && LARGE_OFF_T % 2147483647 == 1)
3638 ? 1 : -1];
3639int
3640main ()
3641{
3642
3643 ;
3644 return 0;
3645}
3646_ACEOF
3647 if ac_fn_c_try_compile "$LINENO"; then :
3648 break
3649fi
3650rm -f core conftest.err conftest.$ac_objext
3651 CC="$CC -n32"
3652 if ac_fn_c_try_compile "$LINENO"; then :
3653 ac_cv_sys_largefile_CC=' -n32'; break
3654fi
3655rm -f core conftest.err conftest.$ac_objext
3656 break
3657 done
3658 CC=$ac_save_CC
3659 rm -f conftest.$ac_ext
3660 fi
3661fi
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
3663$as_echo "$ac_cv_sys_largefile_CC" >&6; }
3664 if test "$ac_cv_sys_largefile_CC" != no; then
3665 CC=$CC$ac_cv_sys_largefile_CC
3666 fi
3667
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
3669$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
3670if ${ac_cv_sys_file_offset_bits+:} false; then :
3671 $as_echo_n "(cached) " >&6
3672else
3673 while :; do
3674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3675/* end confdefs.h. */
3676#include <sys/types.h>
3677 /* Check that off_t can represent 2**63 - 1 correctly.
3678 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3679 since some C++ compilers masquerading as C compilers
3680 incorrectly reject 9223372036854775807. */
3681#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3682 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3683 && LARGE_OFF_T % 2147483647 == 1)
3684 ? 1 : -1];
3685int
3686main ()
3687{
3688
3689 ;
3690 return 0;
3691}
3692_ACEOF
3693if ac_fn_c_try_compile "$LINENO"; then :
3694 ac_cv_sys_file_offset_bits=no; break
3695fi
3696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698/* end confdefs.h. */
3699#define _FILE_OFFSET_BITS 64
3700#include <sys/types.h>
3701 /* Check that off_t can represent 2**63 - 1 correctly.
3702 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3703 since some C++ compilers masquerading as C compilers
3704 incorrectly reject 9223372036854775807. */
3705#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3706 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3707 && LARGE_OFF_T % 2147483647 == 1)
3708 ? 1 : -1];
3709int
3710main ()
3711{
3712
3713 ;
3714 return 0;
3715}
3716_ACEOF
3717if ac_fn_c_try_compile "$LINENO"; then :
3718 ac_cv_sys_file_offset_bits=64; break
3719fi
3720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3721 ac_cv_sys_file_offset_bits=unknown
3722 break
3723done
3724fi
3725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
3726$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
3727case $ac_cv_sys_file_offset_bits in #(
3728 no | unknown) ;;
3729 *)
3730cat >>confdefs.h <<_ACEOF
3731#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3732_ACEOF
3733;;
3734esac
3735rm -rf conftest*
3736 if test $ac_cv_sys_file_offset_bits = unknown; then
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
3738$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
3739if ${ac_cv_sys_large_files+:} false; then :
3740 $as_echo_n "(cached) " >&6
3741else
3742 while :; do
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744/* end confdefs.h. */
3745#include <sys/types.h>
3746 /* Check that off_t can represent 2**63 - 1 correctly.
3747 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3748 since some C++ compilers masquerading as C compilers
3749 incorrectly reject 9223372036854775807. */
3750#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3751 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3752 && LARGE_OFF_T % 2147483647 == 1)
3753 ? 1 : -1];
3754int
3755main ()
3756{
3757
3758 ;
3759 return 0;
3760}
3761_ACEOF
3762if ac_fn_c_try_compile "$LINENO"; then :
3763 ac_cv_sys_large_files=no; break
3764fi
3765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767/* end confdefs.h. */
3768#define _LARGE_FILES 1
3769#include <sys/types.h>
3770 /* Check that off_t can represent 2**63 - 1 correctly.
3771 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3772 since some C++ compilers masquerading as C compilers
3773 incorrectly reject 9223372036854775807. */
3774#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3775 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3776 && LARGE_OFF_T % 2147483647 == 1)
3777 ? 1 : -1];
3778int
3779main ()
3780{
3781
3782 ;
3783 return 0;
3784}
3785_ACEOF
3786if ac_fn_c_try_compile "$LINENO"; then :
3787 ac_cv_sys_large_files=1; break
3788fi
3789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3790 ac_cv_sys_large_files=unknown
3791 break
3792done
3793fi
3794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
3795$as_echo "$ac_cv_sys_large_files" >&6; }
3796case $ac_cv_sys_large_files in #(
3797 no | unknown) ;;
3798 *)
3799cat >>confdefs.h <<_ACEOF
3800#define _LARGE_FILES $ac_cv_sys_large_files
3801_ACEOF
3802;;
3803esac
3804rm -rf conftest*
3805 fi
3806
3807
3808fi
3809
3810
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3812$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3813 # Check whether --enable-maintainer-mode was given.
3814if test "${enable_maintainer_mode+set}" = set; then :
3815 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3816else
3817 USE_MAINTAINER_MODE=yes
3818fi
3819
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3821$as_echo "$USE_MAINTAINER_MODE" >&6; }
3822 if test $USE_MAINTAINER_MODE = yes; then
3823 MAINTAINER_MODE_TRUE=
3824 MAINTAINER_MODE_FALSE='#'
3825else
3826 MAINTAINER_MODE_TRUE='#'
3827 MAINTAINER_MODE_FALSE=
3828fi
3829
3830 MAINT=$MAINTAINER_MODE_TRUE
3831
3832
3833am__api_version='1.15'
3834
3835# Find a good install program. We prefer a C program (faster),
3836# so one script is as good as another. But avoid the broken or
3837# incompatible versions:
3838# SysV /etc/install, /usr/sbin/install
3839# SunOS /usr/etc/install
3840# IRIX /sbin/install
3841# AIX /bin/install
3842# AmigaOS /C/install, which installs bootblocks on floppy discs
3843# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3844# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3845# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3846# OS/2's system install, which has a completely different semantic
3847# ./install, which can be erroneously created by make from ./install.sh.
3848# Reject install programs that cannot install multiple files.
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3850$as_echo_n "checking for a BSD-compatible install... " >&6; }
3851if test -z "$INSTALL"; then
3852if ${ac_cv_path_install+:} false; then :
3853 $as_echo_n "(cached) " >&6
3854else
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856for as_dir in $PATH
3857do
3858 IFS=$as_save_IFS
3859 test -z "$as_dir" && as_dir=.
3860 # Account for people who put trailing slashes in PATH elements.
3861case $as_dir/ in #((
3862 ./ | .// | /[cC]/* | \
3863 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3864 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3865 /usr/ucb/* ) ;;
3866 *)
3867 # OSF1 and SCO ODT 3.0 have their own names for install.
3868 # Don't use installbsd from OSF since it installs stuff as root
3869 # by default.
3870 for ac_prog in ginstall scoinst install; do
3871 for ac_exec_ext in '' $ac_executable_extensions; do
3872 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3873 if test $ac_prog = install &&
3874 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3875 # AIX install. It has an incompatible calling convention.
3876 :
3877 elif test $ac_prog = install &&
3878 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3879 # program-specific install script used by HP pwplus--don't use.
3880 :
3881 else
3882 rm -rf conftest.one conftest.two conftest.dir
3883 echo one > conftest.one
3884 echo two > conftest.two
3885 mkdir conftest.dir
3886 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3887 test -s conftest.one && test -s conftest.two &&
3888 test -s conftest.dir/conftest.one &&
3889 test -s conftest.dir/conftest.two
3890 then
3891 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3892 break 3
3893 fi
3894 fi
3895 fi
3896 done
3897 done
3898 ;;
3899esac
3900
3901 done
3902IFS=$as_save_IFS
3903
3904rm -rf conftest.one conftest.two conftest.dir
3905
3906fi
3907 if test "${ac_cv_path_install+set}" = set; then
3908 INSTALL=$ac_cv_path_install
3909 else
3910 # As a last resort, use the slow shell script. Don't cache a
3911 # value for INSTALL within a source directory, because that will
3912 # break other packages using the cache if that directory is
3913 # removed, or if the value is a relative name.
3914 INSTALL=$ac_install_sh
3915 fi
3916fi
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3918$as_echo "$INSTALL" >&6; }
3919
3920# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3921# It thinks the first close brace ends the variable substitution.
3922test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3923
3924test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3925
3926test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3927
3928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3929$as_echo_n "checking whether build environment is sane... " >&6; }
3930# Reject unsafe characters in $srcdir or the absolute working directory
3931# name. Accept space and tab only in the latter.
3932am_lf='
3933'
3934case `pwd` in
3935 *[\\\"\#\$\&\'\`$am_lf]*)
3936 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3937esac
3938case $srcdir in
3939 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3940 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3941esac
3942
3943# Do 'set' in a subshell so we don't clobber the current shell's
3944# arguments. Must try -L first in case configure is actually a
3945# symlink; some systems play weird games with the mod time of symlinks
3946# (eg FreeBSD returns the mod time of the symlink's containing
3947# directory).
3948if (
3949 am_has_slept=no
3950 for am_try in 1 2; do
3951 echo "timestamp, slept: $am_has_slept" > conftest.file
3952 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3953 if test "$*" = "X"; then
3954 # -L didn't work.
3955 set X `ls -t "$srcdir/configure" conftest.file`
3956 fi
3957 if test "$*" != "X $srcdir/configure conftest.file" \
3958 && test "$*" != "X conftest.file $srcdir/configure"; then
3959
3960 # If neither matched, then we have a broken ls. This can happen
3961 # if, for instance, CONFIG_SHELL is bash and it inherits a
3962 # broken ls alias from the environment. This has actually
3963 # happened. Such a system could not be considered "sane".
3964 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3965 alias in your environment" "$LINENO" 5
3966 fi
3967 if test "$2" = conftest.file || test $am_try -eq 2; then
3968 break
3969 fi
3970 # Just in case.
3971 sleep 1
3972 am_has_slept=yes
3973 done
3974 test "$2" = conftest.file
3975 )
3976then
3977 # Ok.
3978 :
3979else
3980 as_fn_error $? "newly created file is older than distributed files!
3981Check your system clock" "$LINENO" 5
3982fi
3983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3984$as_echo "yes" >&6; }
3985# If we didn't sleep, we still need to ensure time stamps of config.status and
3986# generated files are strictly newer.
3987am_sleep_pid=
3988if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3989 ( sleep 1 ) &
3990 am_sleep_pid=$!
3991fi
3992
3993rm -f conftest.file
3994
3995test "$program_prefix" != NONE &&
3996 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3997# Use a double $ so make ignores it.
3998test "$program_suffix" != NONE &&
3999 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4000# Double any \ or $.
4001# By default was `s,x,x', remove it if useless.
4002ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4003program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4004
4005if test x"${MISSING+set}" != xset; then
4006 case $am_aux_dir in
4007 *\ * | *\ *)
4008 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4009 *)
4010 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4011 esac
4012fi
4013# Use eval to expand $SHELL
4014if eval "$MISSING --is-lightweight"; then
4015 am_missing_run="$MISSING "
4016else
4017 am_missing_run=
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4019$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4020fi
4021
4022if test x"${install_sh+set}" != xset; then
4023 case $am_aux_dir in
4024 *\ * | *\ *)
4025 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4026 *)
4027 install_sh="\${SHELL} $am_aux_dir/install-sh"
4028 esac
4029fi
4030
4031# Installed binaries are usually stripped using 'strip' when the user
4032# run "make install-strip". However 'strip' might not be the right
4033# tool to use in cross-compilation environments, therefore Automake
4034# will honor the 'STRIP' environment variable to overrule this program.
4035if test "$cross_compiling" != no; then
4036 if test -n "$ac_tool_prefix"; then
4037 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4038set dummy ${ac_tool_prefix}strip; ac_word=$2
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040$as_echo_n "checking for $ac_word... " >&6; }
4041if ${ac_cv_prog_STRIP+:} false; then :
4042 $as_echo_n "(cached) " >&6
4043else
4044 if test -n "$STRIP"; then
4045 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4046else
4047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048for as_dir in $PATH
4049do
4050 IFS=$as_save_IFS
4051 test -z "$as_dir" && as_dir=.
4052 for ac_exec_ext in '' $ac_executable_extensions; do
4053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4054 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4056 break 2
4057 fi
4058done
4059 done
4060IFS=$as_save_IFS
4061
4062fi
4063fi
4064STRIP=$ac_cv_prog_STRIP
4065if test -n "$STRIP"; then
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4067$as_echo "$STRIP" >&6; }
4068else
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4070$as_echo "no" >&6; }
4071fi
4072
4073
4074fi
4075if test -z "$ac_cv_prog_STRIP"; then
4076 ac_ct_STRIP=$STRIP
4077 # Extract the first word of "strip", so it can be a program name with args.
4078set dummy strip; ac_word=$2
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4080$as_echo_n "checking for $ac_word... " >&6; }
4081if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4082 $as_echo_n "(cached) " >&6
4083else
4084 if test -n "$ac_ct_STRIP"; then
4085 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4086else
4087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088for as_dir in $PATH
4089do
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4094 ac_cv_prog_ac_ct_STRIP="strip"
4095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4096 break 2
4097 fi
4098done
4099 done
4100IFS=$as_save_IFS
4101
4102fi
4103fi
4104ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4105if test -n "$ac_ct_STRIP"; then
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4107$as_echo "$ac_ct_STRIP" >&6; }
4108else
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4110$as_echo "no" >&6; }
4111fi
4112
4113 if test "x$ac_ct_STRIP" = x; then
4114 STRIP=":"
4115 else
4116 case $cross_compiling:$ac_tool_warned in
4117yes:)
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4119$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4120ac_tool_warned=yes ;;
4121esac
4122 STRIP=$ac_ct_STRIP
4123 fi
4124else
4125 STRIP="$ac_cv_prog_STRIP"
4126fi
4127
4128fi
4129INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4130
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4132$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4133if test -z "$MKDIR_P"; then
4134 if ${ac_cv_path_mkdir+:} false; then :
4135 $as_echo_n "(cached) " >&6
4136else
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4139do
4140 IFS=$as_save_IFS
4141 test -z "$as_dir" && as_dir=.
4142 for ac_prog in mkdir gmkdir; do
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4145 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4146 'mkdir (GNU coreutils) '* | \
4147 'mkdir (coreutils) '* | \
4148 'mkdir (fileutils) '4.1*)
4149 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4150 break 3;;
4151 esac
4152 done
4153 done
4154 done
4155IFS=$as_save_IFS
4156
4157fi
4158
4159 test -d ./--version && rmdir ./--version
4160 if test "${ac_cv_path_mkdir+set}" = set; then
4161 MKDIR_P="$ac_cv_path_mkdir -p"
4162 else
4163 # As a last resort, use the slow shell script. Don't cache a
4164 # value for MKDIR_P within a source directory, because that will
4165 # break other packages using the cache if that directory is
4166 # removed, or if the value is a relative name.
4167 MKDIR_P="$ac_install_sh -d"
4168 fi
4169fi
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4171$as_echo "$MKDIR_P" >&6; }
4172
4173for ac_prog in gawk mawk nawk awk
4174do
4175 # Extract the first word of "$ac_prog", so it can be a program name with args.
4176set dummy $ac_prog; ac_word=$2
4177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4178$as_echo_n "checking for $ac_word... " >&6; }
4179if ${ac_cv_prog_AWK+:} false; then :
4180 $as_echo_n "(cached) " >&6
4181else
4182 if test -n "$AWK"; then
4183 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4184else
4185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186for as_dir in $PATH
4187do
4188 IFS=$as_save_IFS
4189 test -z "$as_dir" && as_dir=.
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4192 ac_cv_prog_AWK="$ac_prog"
4193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4194 break 2
4195 fi
4196done
4197 done
4198IFS=$as_save_IFS
4199
4200fi
4201fi
4202AWK=$ac_cv_prog_AWK
4203if test -n "$AWK"; then
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4205$as_echo "$AWK" >&6; }
4206else
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4208$as_echo "no" >&6; }
4209fi
4210
4211
4212 test -n "$AWK" && break
4213done
4214
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4216$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4217set x ${MAKE-make}
4218ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4219if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4220 $as_echo_n "(cached) " >&6
4221else
4222 cat >conftest.make <<\_ACEOF
4223SHELL = /bin/sh
4224all:
4225 @echo '@@@%%%=$(MAKE)=@@@%%%'
4226_ACEOF
4227# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4228case `${MAKE-make} -f conftest.make 2>/dev/null` in
4229 *@@@%%%=?*=@@@%%%*)
4230 eval ac_cv_prog_make_${ac_make}_set=yes;;
4231 *)
4232 eval ac_cv_prog_make_${ac_make}_set=no;;
4233esac
4234rm -f conftest.make
4235fi
4236if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4238$as_echo "yes" >&6; }
4239 SET_MAKE=
4240else
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4242$as_echo "no" >&6; }
4243 SET_MAKE="MAKE=${MAKE-make}"
4244fi
4245
4246rm -rf .tst 2>/dev/null
4247mkdir .tst 2>/dev/null
4248if test -d .tst; then
4249 am__leading_dot=.
4250else
4251 am__leading_dot=_
4252fi
4253rmdir .tst 2>/dev/null
4254
4255DEPDIR="${am__leading_dot}deps"
4256
4257ac_config_commands="$ac_config_commands depfiles"
4258
4259
4260am_make=${MAKE-make}
4261cat > confinc << 'END'
4262am__doit:
4263 @echo this is the am__doit target
4264.PHONY: am__doit
4265END
4266# If we don't find an include directive, just comment out the code.
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4268$as_echo_n "checking for style of include used by $am_make... " >&6; }
4269am__include="#"
4270am__quote=
4271_am_result=none
4272# First try GNU make style include.
4273echo "include confinc" > confmf
4274# Ignore all kinds of additional output from 'make'.
4275case `$am_make -s -f confmf 2> /dev/null` in #(
4276*the\ am__doit\ target*)
4277 am__include=include
4278 am__quote=
4279 _am_result=GNU
4280 ;;
4281esac
4282# Now try BSD make style include.
4283if test "$am__include" = "#"; then
4284 echo '.include "confinc"' > confmf
4285 case `$am_make -s -f confmf 2> /dev/null` in #(
4286 *the\ am__doit\ target*)
4287 am__include=.include
4288 am__quote="\""
4289 _am_result=BSD
4290 ;;
4291 esac
4292fi
4293
4294
4295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4296$as_echo "$_am_result" >&6; }
4297rm -f confinc confmf
4298
4299# Check whether --enable-dependency-tracking was given.
4300if test "${enable_dependency_tracking+set}" = set; then :
4301 enableval=$enable_dependency_tracking;
4302fi
4303
4304if test "x$enable_dependency_tracking" != xno; then
4305 am_depcomp="$ac_aux_dir/depcomp"
4306 AMDEPBACKSLASH='\'
4307 am__nodep='_no'
4308fi
4309 if test "x$enable_dependency_tracking" != xno; then
4310 AMDEP_TRUE=
4311 AMDEP_FALSE='#'
4312else
4313 AMDEP_TRUE='#'
4314 AMDEP_FALSE=
4315fi
4316
4317
4318# Check whether --enable-silent-rules was given.
4319if test "${enable_silent_rules+set}" = set; then :
4320 enableval=$enable_silent_rules;
4321fi
4322
4323case $enable_silent_rules in # (((
4324 yes) AM_DEFAULT_VERBOSITY=0;;
4325 no) AM_DEFAULT_VERBOSITY=1;;
4326 *) AM_DEFAULT_VERBOSITY=1;;
4327esac
4328am_make=${MAKE-make}
4329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4330$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4331if ${am_cv_make_support_nested_variables+:} false; then :
4332 $as_echo_n "(cached) " >&6
4333else
4334 if $as_echo 'TRUE=$(BAR$(V))
4335BAR0=false
4336BAR1=true
4337V=1
4338am__doit:
4339 @$(TRUE)
4340.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4341 am_cv_make_support_nested_variables=yes
4342else
4343 am_cv_make_support_nested_variables=no
4344fi
4345fi
4346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4347$as_echo "$am_cv_make_support_nested_variables" >&6; }
4348if test $am_cv_make_support_nested_variables = yes; then
4349 AM_V='$(V)'
4350 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4351else
4352 AM_V=$AM_DEFAULT_VERBOSITY
4353 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4354fi
4355AM_BACKSLASH='\'
4356
4357if test "`cd $srcdir && pwd`" != "`pwd`"; then
4358 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4359 # is not polluted with repeated "-I."
4360 am__isrc=' -I$(srcdir)'
4361 # test to see if srcdir already configured
4362 if test -f $srcdir/config.status; then
4363 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4364 fi
4365fi
4366
4367# test whether we have cygpath
4368if test -z "$CYGPATH_W"; then
4369 if (cygpath --version) >/dev/null 2>/dev/null; then
4370 CYGPATH_W='cygpath -w'
4371 else
4372 CYGPATH_W=echo
4373 fi
4374fi
4375
4376
4377# Define the identity of the package.
4378 PACKAGE='ratbagd'
4379 VERSION='1'
4380
4381
4382cat >>confdefs.h <<_ACEOF
4383#define PACKAGE "$PACKAGE"
4384_ACEOF
4385
4386
4387cat >>confdefs.h <<_ACEOF
4388#define VERSION "$VERSION"
4389_ACEOF
4390
4391# Some tools Automake needs.
4392
4393ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4394
4395
4396AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4397
4398
4399AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4400
4401
4402AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4403
4404
4405MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4406
4407# For better backward compatibility. To be removed once Automake 1.9.x
4408# dies out for good. For more background, see:
4409# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4410# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4411mkdir_p='$(MKDIR_P)'
4412
4413# We need awk for the "check" target (and possibly the TAP driver). The
4414# system "awk" is bad on some platforms.
4415# Always define AMTAR for backward compatibility. Yes, it's still used
4416# in the wild :-( We should find a proper way to deprecate it ...
4417AMTAR='$${TAR-tar}'
4418
4419
4420# We'll loop over all known methods to create a tar archive until one works.
4421_am_tools='gnutar pax cpio none'
4422
4423
4424
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
4426$as_echo_n "checking how to create a pax tar archive... " >&6; }
4427
4428 # Go ahead even if we have the value already cached. We do so because we
4429 # need to set the values for the 'am__tar' and 'am__untar' variables.
4430 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
4431
4432 for _am_tool in $_am_tools; do
4433 case $_am_tool in
4434 gnutar)
4435 for _am_tar in tar gnutar gtar; do
4436 { echo "$as_me:$LINENO: $_am_tar --version" >&5
4437 ($_am_tar --version) >&5 2>&5
4438 ac_status=$?
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } && break
4441 done
4442 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
4443 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
4444 am__untar="$_am_tar -xf -"
4445 ;;
4446 plaintar)
4447 # Must skip GNU tar: if it does not support --format= it doesn't create
4448 # ustar tarball either.
4449 (tar --version) >/dev/null 2>&1 && continue
4450 am__tar='tar chf - "$$tardir"'
4451 am__tar_='tar chf - "$tardir"'
4452 am__untar='tar xf -'
4453 ;;
4454 pax)
4455 am__tar='pax -L -x pax -w "$$tardir"'
4456 am__tar_='pax -L -x pax -w "$tardir"'
4457 am__untar='pax -r'
4458 ;;
4459 cpio)
4460 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
4461 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
4462 am__untar='cpio -i -H pax -d'
4463 ;;
4464 none)
4465 am__tar=false
4466 am__tar_=false
4467 am__untar=false
4468 ;;
4469 esac
4470
4471 # If the value was cached, stop now. We just wanted to have am__tar
4472 # and am__untar set.
4473 test -n "${am_cv_prog_tar_pax}" && break
4474
4475 # tar/untar a dummy directory, and stop if the command works.
4476 rm -rf conftest.dir
4477 mkdir conftest.dir
4478 echo GrepMe > conftest.dir/file
4479 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4480 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4481 ac_status=$?
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }
4484 rm -rf conftest.dir
4485 if test -s conftest.tar; then
4486 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4487 ($am__untar <conftest.tar) >&5 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }
4491 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4492 (cat conftest.dir/file) >&5 2>&5
4493 ac_status=$?
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }
4496 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4497 fi
4498 done
4499 rm -rf conftest.dir
4500
4501 if ${am_cv_prog_tar_pax+:} false; then :
4502 $as_echo_n "(cached) " >&6
4503else
4504 am_cv_prog_tar_pax=$_am_tool
4505fi
4506
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
4508$as_echo "$am_cv_prog_tar_pax" >&6; }
4509
4510
4511
4512
4513
4514depcc="$CC" am_compiler_list=
4515
4516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4517$as_echo_n "checking dependency style of $depcc... " >&6; }
4518if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4519 $as_echo_n "(cached) " >&6
4520else
4521 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4522 # We make a subdir and do the tests there. Otherwise we can end up
4523 # making bogus files that we don't know about and never remove. For
4524 # instance it was reported that on HP-UX the gcc test will end up
4525 # making a dummy file named 'D' -- because '-MD' means "put the output
4526 # in D".
4527 rm -rf conftest.dir
4528 mkdir conftest.dir
4529 # Copy depcomp to subdir because otherwise we won't find it if we're
4530 # using a relative directory.
4531 cp "$am_depcomp" conftest.dir
4532 cd conftest.dir
4533 # We will build objects and dependencies in a subdirectory because
4534 # it helps to detect inapplicable dependency modes. For instance
4535 # both Tru64's cc and ICC support -MD to output dependencies as a
4536 # side effect of compilation, but ICC will put the dependencies in
4537 # the current directory while Tru64 will put them in the object
4538 # directory.
4539 mkdir sub
4540
4541 am_cv_CC_dependencies_compiler_type=none
4542 if test "$am_compiler_list" = ""; then
4543 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4544 fi
4545 am__universal=false
4546 case " $depcc " in #(
4547 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4548 esac
4549
4550 for depmode in $am_compiler_list; do
4551 # Setup a source with many dependencies, because some compilers
4552 # like to wrap large dependency lists on column 80 (with \), and
4553 # we should not choose a depcomp mode which is confused by this.
4554 #
4555 # We need to recreate these files for each test, as the compiler may
4556 # overwrite some of them when testing with obscure command lines.
4557 # This happens at least with the AIX C compiler.
4558 : > sub/conftest.c
4559 for i in 1 2 3 4 5 6; do
4560 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4561 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4562 # Solaris 10 /bin/sh.
4563 echo '/* dummy */' > sub/conftst$i.h
4564 done
4565 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4566
4567 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4568 # mode. It turns out that the SunPro C++ compiler does not properly
4569 # handle '-M -o', and we need to detect this. Also, some Intel
4570 # versions had trouble with output in subdirs.
4571 am__obj=sub/conftest.${OBJEXT-o}
4572 am__minus_obj="-o $am__obj"
4573 case $depmode in
4574 gcc)
4575 # This depmode causes a compiler race in universal mode.
4576 test "$am__universal" = false || continue
4577 ;;
4578 nosideeffect)
4579 # After this tag, mechanisms are not by side-effect, so they'll
4580 # only be used when explicitly requested.
4581 if test "x$enable_dependency_tracking" = xyes; then
4582 continue
4583 else
4584 break
4585 fi
4586 ;;
4587 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4588 # This compiler won't grok '-c -o', but also, the minuso test has
4589 # not run yet. These depmodes are late enough in the game, and
4590 # so weak that their functioning should not be impacted.
4591 am__obj=conftest.${OBJEXT-o}
4592 am__minus_obj=
4593 ;;
4594 none) break ;;
4595 esac
4596 if depmode=$depmode \
4597 source=sub/conftest.c object=$am__obj \
4598 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4599 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4600 >/dev/null 2>conftest.err &&
4601 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4602 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4603 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4604 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4605 # icc doesn't choke on unknown options, it will just issue warnings
4606 # or remarks (even with -Werror). So we grep stderr for any message
4607 # that says an option was ignored or not supported.
4608 # When given -MP, icc 7.0 and 7.1 complain thusly:
4609 # icc: Command line warning: ignoring option '-M'; no argument required
4610 # The diagnosis changed in icc 8.0:
4611 # icc: Command line remark: option '-MP' not supported
4612 if (grep 'ignoring option' conftest.err ||
4613 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4614 am_cv_CC_dependencies_compiler_type=$depmode
4615 break
4616 fi
4617 fi
4618 done
4619
4620 cd ..
4621 rm -rf conftest.dir
4622else
4623 am_cv_CC_dependencies_compiler_type=none
4624fi
4625
4626fi
4627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4628$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4629CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4630
4631 if
4632 test "x$enable_dependency_tracking" != xno \
4633 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4634 am__fastdepCC_TRUE=
4635 am__fastdepCC_FALSE='#'
4636else
4637 am__fastdepCC_TRUE='#'
4638 am__fastdepCC_FALSE=
4639fi
4640
4641
4642
4643# POSIX will say in a future version that running "rm -f" with no argument
4644# is OK; and we want to be able to make that assumption in our Makefile
4645# recipes. So use an aggressive probe to check that the usage we want is
4646# actually supported "in the wild" to an acceptable degree.
4647# See automake bug#10828.
4648# To make any issue more visible, cause the running configure to be aborted
4649# by default if the 'rm' program in use doesn't match our expectations; the
4650# user can still override this though.
4651if rm -f && rm -fr && rm -rf; then : OK; else
4652 cat >&2 <<'END'
4653Oops!
4654
4655Your 'rm' program seems unable to run without file operands specified
4656on the command line, even when the '-f' option is present. This is contrary
4657to the behaviour of most rm programs out there, and not conforming with
4658the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4659
4660Please tell bug-automake@gnu.org about your system, including the value
4661of your $PATH and any error possibly output before this message. This
4662can help us improve future automake versions.
4663
4664END
4665 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4666 echo 'Configuration will proceed anyway, since you have set the' >&2
4667 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4668 echo >&2
4669 else
4670 cat >&2 <<'END'
4671Aborting the configuration process, to ensure you take notice of the issue.
4672
4673You can download and install GNU coreutils to get an 'rm' implementation
4674that behaves properly: <http://www.gnu.org/software/coreutils/>.
4675
4676If you want to complete the configuration process using your problematic
4677'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4678to "yes", and re-run configure.
4679
4680END
4681 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4682 fi
4683fi
4684
4685# Check whether --enable-silent-rules was given.
4686if test "${enable_silent_rules+set}" = set; then :
4687 enableval=$enable_silent_rules;
4688fi
4689
4690case $enable_silent_rules in # (((
4691 yes) AM_DEFAULT_VERBOSITY=0;;
4692 no) AM_DEFAULT_VERBOSITY=1;;
4693 *) AM_DEFAULT_VERBOSITY=0;;
4694esac
4695am_make=${MAKE-make}
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4697$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4698if ${am_cv_make_support_nested_variables+:} false; then :
4699 $as_echo_n "(cached) " >&6
4700else
4701 if $as_echo 'TRUE=$(BAR$(V))
4702BAR0=false
4703BAR1=true
4704V=1
4705am__doit:
4706 @$(TRUE)
4707.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4708 am_cv_make_support_nested_variables=yes
4709else
4710 am_cv_make_support_nested_variables=no
4711fi
4712fi
4713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4714$as_echo "$am_cv_make_support_nested_variables" >&6; }
4715if test $am_cv_make_support_nested_variables = yes; then
4716 AM_V='$(V)'
4717 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4718else
4719 AM_V=$AM_DEFAULT_VERBOSITY
4720 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4721fi
4722AM_BACKSLASH='\'
4723
4724# Make sure we can run config.sub.
4725$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4726 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4727
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4729$as_echo_n "checking build system type... " >&6; }
4730if ${ac_cv_build+:} false; then :
4731 $as_echo_n "(cached) " >&6
4732else
4733 ac_build_alias=$build_alias
4734test "x$ac_build_alias" = x &&
4735 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4736test "x$ac_build_alias" = x &&
4737 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4738ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4739 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4740
4741fi
4742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4743$as_echo "$ac_cv_build" >&6; }
4744case $ac_cv_build in
4745*-*-*) ;;
4746*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4747esac
4748build=$ac_cv_build
4749ac_save_IFS=$IFS; IFS='-'
4750set x $ac_cv_build
4751shift
4752build_cpu=$1
4753build_vendor=$2
4754shift; shift
4755# Remember, the first character of IFS is used to create $*,
4756# except with old shells:
4757build_os=$*
4758IFS=$ac_save_IFS
4759case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4760
4761
4762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4763$as_echo_n "checking host system type... " >&6; }
4764if ${ac_cv_host+:} false; then :
4765 $as_echo_n "(cached) " >&6
4766else
4767 if test "x$host_alias" = x; then
4768 ac_cv_host=$ac_cv_build
4769else
4770 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4771 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4772fi
4773
4774fi
4775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4776$as_echo "$ac_cv_host" >&6; }
4777case $ac_cv_host in
4778*-*-*) ;;
4779*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4780esac
4781host=$ac_cv_host
4782ac_save_IFS=$IFS; IFS='-'
4783set x $ac_cv_host
4784shift
4785host_cpu=$1
4786host_vendor=$2
4787shift; shift
4788# Remember, the first character of IFS is used to create $*,
4789# except with old shells:
4790host_os=$*
4791IFS=$ac_save_IFS
4792case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4793
4794
4795
4796cat >>confdefs.h <<_ACEOF
4797#define CANONICAL_HOST "$host"
4798_ACEOF
4799
4800
4801
4802case `pwd` in
4803 *\ * | *\ *)
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4805$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4806esac
4807
4808
4809
4810macro_version='2.4.6'
4811macro_revision='2.4.6'
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825ltmain=$ac_aux_dir/ltmain.sh
4826
4827# Backslashify metacharacters that are still active within
4828# double-quoted strings.
4829sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4830
4831# Same as above, but do not quote variable references.
4832double_quote_subst='s/\(["`\\]\)/\\\1/g'
4833
4834# Sed substitution to delay expansion of an escaped shell variable in a
4835# double_quote_subst'ed string.
4836delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4837
4838# Sed substitution to delay expansion of an escaped single quote.
4839delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4840
4841# Sed substitution to avoid accidental globbing in evaled expressions
4842no_glob_subst='s/\*/\\\*/g'
4843
4844ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4845ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4846ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4847
4848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4849$as_echo_n "checking how to print strings... " >&6; }
4850# Test print first, because it will be a builtin if present.
4851if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4852 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4853 ECHO='print -r --'
4854elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4855 ECHO='printf %s\n'
4856else
4857 # Use this function as a fallback that always works.
4858 func_fallback_echo ()
4859 {
4860 eval 'cat <<_LTECHO_EOF
4861$1
4862_LTECHO_EOF'
4863 }
4864 ECHO='func_fallback_echo'
4865fi
4866
4867# func_echo_all arg...
4868# Invoke $ECHO with all args, space-separated.
4869func_echo_all ()
4870{
4871 $ECHO ""
4872}
4873
4874case $ECHO in
4875 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4876$as_echo "printf" >&6; } ;;
4877 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4878$as_echo "print -r" >&6; } ;;
4879 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4880$as_echo "cat" >&6; } ;;
4881esac
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4897$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4898if ${ac_cv_path_SED+:} false; then :
4899 $as_echo_n "(cached) " >&6
4900else
4901 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4902 for ac_i in 1 2 3 4 5 6 7; do
4903 ac_script="$ac_script$as_nl$ac_script"
4904 done
4905 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4906 { ac_script=; unset ac_script;}
4907 if test -z "$SED"; then
4908 ac_path_SED_found=false
4909 # Loop through the user's path and test for each of PROGNAME-LIST
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911for as_dir in $PATH
4912do
4913 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=.
4915 for ac_prog in sed gsed; do
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4918 as_fn_executable_p "$ac_path_SED" || continue
4919# Check for GNU ac_path_SED and select it if it is found.
4920 # Check for GNU $ac_path_SED
4921case `"$ac_path_SED" --version 2>&1` in
4922*GNU*)
4923 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4924*)
4925 ac_count=0
4926 $as_echo_n 0123456789 >"conftest.in"
4927 while :
4928 do
4929 cat "conftest.in" "conftest.in" >"conftest.tmp"
4930 mv "conftest.tmp" "conftest.in"
4931 cp "conftest.in" "conftest.nl"
4932 $as_echo '' >> "conftest.nl"
4933 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4934 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4935 as_fn_arith $ac_count + 1 && ac_count=$as_val
4936 if test $ac_count -gt ${ac_path_SED_max-0}; then
4937 # Best one so far, save it but keep looking for a better one
4938 ac_cv_path_SED="$ac_path_SED"
4939 ac_path_SED_max=$ac_count
4940 fi
4941 # 10*(2^10) chars as input seems more than enough
4942 test $ac_count -gt 10 && break
4943 done
4944 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4945esac
4946
4947 $ac_path_SED_found && break 3
4948 done
4949 done
4950 done
4951IFS=$as_save_IFS
4952 if test -z "$ac_cv_path_SED"; then
4953 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4954 fi
4955else
4956 ac_cv_path_SED=$SED
4957fi
4958
4959fi
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4961$as_echo "$ac_cv_path_SED" >&6; }
4962 SED="$ac_cv_path_SED"
4963 rm -f conftest.sed
4964
4965test -z "$SED" && SED=sed
4966Xsed="$SED -e 1s/^X//"
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4979$as_echo_n "checking for fgrep... " >&6; }
4980if ${ac_cv_path_FGREP+:} false; then :
4981 $as_echo_n "(cached) " >&6
4982else
4983 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4984 then ac_cv_path_FGREP="$GREP -F"
4985 else
4986 if test -z "$FGREP"; then
4987 ac_path_FGREP_found=false
4988 # Loop through the user's path and test for each of PROGNAME-LIST
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4991do
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_prog in fgrep; do
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4997 as_fn_executable_p "$ac_path_FGREP" || continue
4998# Check for GNU ac_path_FGREP and select it if it is found.
4999 # Check for GNU $ac_path_FGREP
5000case `"$ac_path_FGREP" --version 2>&1` in
5001*GNU*)
5002 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5003*)
5004 ac_count=0
5005 $as_echo_n 0123456789 >"conftest.in"
5006 while :
5007 do
5008 cat "conftest.in" "conftest.in" >"conftest.tmp"
5009 mv "conftest.tmp" "conftest.in"
5010 cp "conftest.in" "conftest.nl"
5011 $as_echo 'FGREP' >> "conftest.nl"
5012 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5013 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5014 as_fn_arith $ac_count + 1 && ac_count=$as_val
5015 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5016 # Best one so far, save it but keep looking for a better one
5017 ac_cv_path_FGREP="$ac_path_FGREP"
5018 ac_path_FGREP_max=$ac_count
5019 fi
5020 # 10*(2^10) chars as input seems more than enough
5021 test $ac_count -gt 10 && break
5022 done
5023 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5024esac
5025
5026 $ac_path_FGREP_found && break 3
5027 done
5028 done
5029 done
5030IFS=$as_save_IFS
5031 if test -z "$ac_cv_path_FGREP"; then
5032 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5033 fi
5034else
5035 ac_cv_path_FGREP=$FGREP
5036fi
5037
5038 fi
5039fi
5040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5041$as_echo "$ac_cv_path_FGREP" >&6; }
5042 FGREP="$ac_cv_path_FGREP"
5043
5044
5045test -z "$GREP" && GREP=grep
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065# Check whether --with-gnu-ld was given.
5066if test "${with_gnu_ld+set}" = set; then :
5067 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5068else
5069 with_gnu_ld=no
5070fi
5071
5072ac_prog=ld
5073if test yes = "$GCC"; then
5074 # Check if gcc -print-prog-name=ld gives a path.
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5076$as_echo_n "checking for ld used by $CC... " >&6; }
5077 case $host in
5078 *-*-mingw*)
5079 # gcc leaves a trailing carriage return, which upsets mingw
5080 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5081 *)
5082 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5083 esac
5084 case $ac_prog in
5085 # Accept absolute paths.
5086 [\\/]* | ?:[\\/]*)
5087 re_direlt='/[^/][^/]*/\.\./'
5088 # Canonicalize the pathname of ld
5089 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5090 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5091 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5092 done
5093 test -z "$LD" && LD=$ac_prog
5094 ;;
5095 "")
5096 # If it fails, then pretend we aren't using GCC.
5097 ac_prog=ld
5098 ;;
5099 *)
5100 # If it is relative, then search for the first ld in PATH.
5101 with_gnu_ld=unknown
5102 ;;
5103 esac
5104elif test yes = "$with_gnu_ld"; then
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5106$as_echo_n "checking for GNU ld... " >&6; }
5107else
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5109$as_echo_n "checking for non-GNU ld... " >&6; }
5110fi
5111if ${lt_cv_path_LD+:} false; then :
5112 $as_echo_n "(cached) " >&6
5113else
5114 if test -z "$LD"; then
5115 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5116 for ac_dir in $PATH; do
5117 IFS=$lt_save_ifs
5118 test -z "$ac_dir" && ac_dir=.
5119 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5120 lt_cv_path_LD=$ac_dir/$ac_prog
5121 # Check to see if the program is GNU ld. I'd rather use --version,
5122 # but apparently some variants of GNU ld only accept -v.
5123 # Break only if it was the GNU/non-GNU ld that we prefer.
5124 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5125 *GNU* | *'with BFD'*)
5126 test no != "$with_gnu_ld" && break
5127 ;;
5128 *)
5129 test yes != "$with_gnu_ld" && break
5130 ;;
5131 esac
5132 fi
5133 done
5134 IFS=$lt_save_ifs
5135else
5136 lt_cv_path_LD=$LD # Let the user override the test with a path.
5137fi
5138fi
5139
5140LD=$lt_cv_path_LD
5141if test -n "$LD"; then
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5143$as_echo "$LD" >&6; }
5144else
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146$as_echo "no" >&6; }
5147fi
5148test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5150$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5151if ${lt_cv_prog_gnu_ld+:} false; then :
5152 $as_echo_n "(cached) " >&6
5153else
5154 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5155case `$LD -v 2>&1 </dev/null` in
5156*GNU* | *'with BFD'*)
5157 lt_cv_prog_gnu_ld=yes
5158 ;;
5159*)
5160 lt_cv_prog_gnu_ld=no
5161 ;;
5162esac
5163fi
5164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5165$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5166with_gnu_ld=$lt_cv_prog_gnu_ld
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5177$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5178if ${lt_cv_path_NM+:} false; then :
5179 $as_echo_n "(cached) " >&6
5180else
5181 if test -n "$NM"; then
5182 # Let the user override the test.
5183 lt_cv_path_NM=$NM
5184else
5185 lt_nm_to_check=${ac_tool_prefix}nm
5186 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5187 lt_nm_to_check="$lt_nm_to_check nm"
5188 fi
5189 for lt_tmp_nm in $lt_nm_to_check; do
5190 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5191 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5192 IFS=$lt_save_ifs
5193 test -z "$ac_dir" && ac_dir=.
5194 tmp_nm=$ac_dir/$lt_tmp_nm
5195 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5196 # Check to see if the nm accepts a BSD-compat flag.
5197 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5198 # nm: unknown option "B" ignored
5199 # Tru64's nm complains that /dev/null is an invalid object file
5200 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5201 case $build_os in
5202 mingw*) lt_bad_file=conftest.nm/nofile ;;
5203 *) lt_bad_file=/dev/null ;;
5204 esac
5205 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5206 *$lt_bad_file* | *'Invalid file or object type'*)
5207 lt_cv_path_NM="$tmp_nm -B"
5208 break 2
5209 ;;
5210 *)
5211 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5212 */dev/null*)
5213 lt_cv_path_NM="$tmp_nm -p"
5214 break 2
5215 ;;
5216 *)
5217 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5218 continue # so that we can try to find one that supports BSD flags
5219 ;;
5220 esac
5221 ;;
5222 esac
5223 fi
5224 done
5225 IFS=$lt_save_ifs
5226 done
5227 : ${lt_cv_path_NM=no}
5228fi
5229fi
5230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5231$as_echo "$lt_cv_path_NM" >&6; }
5232if test no != "$lt_cv_path_NM"; then
5233 NM=$lt_cv_path_NM
5234else
5235 # Didn't find any BSD compatible name lister, look for dumpbin.
5236 if test -n "$DUMPBIN"; then :
5237 # Let the user override the test.
5238 else
5239 if test -n "$ac_tool_prefix"; then
5240 for ac_prog in dumpbin "link -dump"
5241 do
5242 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5243set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5245$as_echo_n "checking for $ac_word... " >&6; }
5246if ${ac_cv_prog_DUMPBIN+:} false; then :
5247 $as_echo_n "(cached) " >&6
5248else
5249 if test -n "$DUMPBIN"; then
5250 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5251else
5252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253for as_dir in $PATH
5254do
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 break 2
5262 fi
5263done
5264 done
5265IFS=$as_save_IFS
5266
5267fi
5268fi
5269DUMPBIN=$ac_cv_prog_DUMPBIN
5270if test -n "$DUMPBIN"; then
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5272$as_echo "$DUMPBIN" >&6; }
5273else
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5275$as_echo "no" >&6; }
5276fi
5277
5278
5279 test -n "$DUMPBIN" && break
5280 done
5281fi
5282if test -z "$DUMPBIN"; then
5283 ac_ct_DUMPBIN=$DUMPBIN
5284 for ac_prog in dumpbin "link -dump"
5285do
5286 # Extract the first word of "$ac_prog", so it can be a program name with args.
5287set dummy $ac_prog; ac_word=$2
5288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5289$as_echo_n "checking for $ac_word... " >&6; }
5290if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5291 $as_echo_n "(cached) " >&6
5292else
5293 if test -n "$ac_ct_DUMPBIN"; then
5294 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5295else
5296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297for as_dir in $PATH
5298do
5299 IFS=$as_save_IFS
5300 test -z "$as_dir" && as_dir=.
5301 for ac_exec_ext in '' $ac_executable_extensions; do
5302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5303 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5305 break 2
5306 fi
5307done
5308 done
5309IFS=$as_save_IFS
5310
5311fi
5312fi
5313ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5314if test -n "$ac_ct_DUMPBIN"; then
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5316$as_echo "$ac_ct_DUMPBIN" >&6; }
5317else
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5319$as_echo "no" >&6; }
5320fi
5321
5322
5323 test -n "$ac_ct_DUMPBIN" && break
5324done
5325
5326 if test "x$ac_ct_DUMPBIN" = x; then
5327 DUMPBIN=":"
5328 else
5329 case $cross_compiling:$ac_tool_warned in
5330yes:)
5331{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5332$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5333ac_tool_warned=yes ;;
5334esac
5335 DUMPBIN=$ac_ct_DUMPBIN
5336 fi
5337fi
5338
5339 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5340 *COFF*)
5341 DUMPBIN="$DUMPBIN -symbols -headers"
5342 ;;
5343 *)
5344 DUMPBIN=:
5345 ;;
5346 esac
5347 fi
5348
5349 if test : != "$DUMPBIN"; then
5350 NM=$DUMPBIN
5351 fi
5352fi
5353test -z "$NM" && NM=nm
5354
5355
5356
5357
5358
5359
5360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5361$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5362if ${lt_cv_nm_interface+:} false; then :
5363 $as_echo_n "(cached) " >&6
5364else
5365 lt_cv_nm_interface="BSD nm"
5366 echo "int some_variable = 0;" > conftest.$ac_ext
5367 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5368 (eval "$ac_compile" 2>conftest.err)
5369 cat conftest.err >&5
5370 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5371 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5372 cat conftest.err >&5
5373 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5374 cat conftest.out >&5
5375 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5376 lt_cv_nm_interface="MS dumpbin"
5377 fi
5378 rm -f conftest*
5379fi
5380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5381$as_echo "$lt_cv_nm_interface" >&6; }
5382
5383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5384$as_echo_n "checking whether ln -s works... " >&6; }
5385LN_S=$as_ln_s
5386if test "$LN_S" = "ln -s"; then
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5388$as_echo "yes" >&6; }
5389else
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5391$as_echo "no, using $LN_S" >&6; }
5392fi
5393
5394# find the maximum length of command line arguments
5395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5396$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5397if ${lt_cv_sys_max_cmd_len+:} false; then :
5398 $as_echo_n "(cached) " >&6
5399else
5400 i=0
5401 teststring=ABCD
5402
5403 case $build_os in
5404 msdosdjgpp*)
5405 # On DJGPP, this test can blow up pretty badly due to problems in libc
5406 # (any single argument exceeding 2000 bytes causes a buffer overrun
5407 # during glob expansion). Even if it were fixed, the result of this
5408 # check would be larger than it should be.
5409 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5410 ;;
5411
5412 gnu*)
5413 # Under GNU Hurd, this test is not required because there is
5414 # no limit to the length of command line arguments.
5415 # Libtool will interpret -1 as no limit whatsoever
5416 lt_cv_sys_max_cmd_len=-1;
5417 ;;
5418
5419 cygwin* | mingw* | cegcc*)
5420 # On Win9x/ME, this test blows up -- it succeeds, but takes
5421 # about 5 minutes as the teststring grows exponentially.
5422 # Worse, since 9x/ME are not pre-emptively multitasking,
5423 # you end up with a "frozen" computer, even though with patience
5424 # the test eventually succeeds (with a max line length of 256k).
5425 # Instead, let's just punt: use the minimum linelength reported by
5426 # all of the supported platforms: 8192 (on NT/2K/XP).
5427 lt_cv_sys_max_cmd_len=8192;
5428 ;;
5429
5430 mint*)
5431 # On MiNT this can take a long time and run out of memory.
5432 lt_cv_sys_max_cmd_len=8192;
5433 ;;
5434
5435 amigaos*)
5436 # On AmigaOS with pdksh, this test takes hours, literally.
5437 # So we just punt and use a minimum line length of 8192.
5438 lt_cv_sys_max_cmd_len=8192;
5439 ;;
5440
5441 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5442 # This has been around since 386BSD, at least. Likely further.
5443 if test -x /sbin/sysctl; then
5444 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5445 elif test -x /usr/sbin/sysctl; then
5446 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5447 else
5448 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5449 fi
5450 # And add a safety zone
5451 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5452 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5453 ;;
5454
5455 interix*)
5456 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5457 lt_cv_sys_max_cmd_len=196608
5458 ;;
5459
5460 os2*)
5461 # The test takes a long time on OS/2.
5462 lt_cv_sys_max_cmd_len=8192
5463 ;;
5464
5465 osf*)
5466 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5467 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5468 # nice to cause kernel panics so lets avoid the loop below.
5469 # First set a reasonable default.
5470 lt_cv_sys_max_cmd_len=16384
5471 #
5472 if test -x /sbin/sysconfig; then
5473 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5474 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5475 esac
5476 fi
5477 ;;
5478 sco3.2v5*)
5479 lt_cv_sys_max_cmd_len=102400
5480 ;;
5481 sysv5* | sco5v6* | sysv4.2uw2*)
5482 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5483 if test -n "$kargmax"; then
5484 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5485 else
5486 lt_cv_sys_max_cmd_len=32768
5487 fi
5488 ;;
5489 *)
5490 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5491 if test -n "$lt_cv_sys_max_cmd_len" && \
5492 test undefined != "$lt_cv_sys_max_cmd_len"; then
5493 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5494 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5495 else
5496 # Make teststring a little bigger before we do anything with it.
5497 # a 1K string should be a reasonable start.
5498 for i in 1 2 3 4 5 6 7 8; do
5499 teststring=$teststring$teststring
5500 done
5501 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5502 # If test is not a shell built-in, we'll probably end up computing a
5503 # maximum length that is only half of the actual maximum length, but
5504 # we can't tell.
5505 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5506 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5507 test 17 != "$i" # 1/2 MB should be enough
5508 do
5509 i=`expr $i + 1`
5510 teststring=$teststring$teststring
5511 done
5512 # Only check the string length outside the loop.
5513 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5514 teststring=
5515 # Add a significant safety factor because C++ compilers can tack on
5516 # massive amounts of additional arguments before passing them to the
5517 # linker. It appears as though 1/2 is a usable value.
5518 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5519 fi
5520 ;;
5521 esac
5522
5523fi
5524
5525if test -n "$lt_cv_sys_max_cmd_len"; then
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5527$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5528else
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5530$as_echo "none" >&6; }
5531fi
5532max_cmd_len=$lt_cv_sys_max_cmd_len
5533
5534
5535
5536
5537
5538
5539: ${CP="cp -f"}
5540: ${MV="mv -f"}
5541: ${RM="rm -f"}
5542
5543if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5544 lt_unset=unset
5545else
5546 lt_unset=false
5547fi
5548
5549
5550
5551
5552
5553# test EBCDIC or ASCII
5554case `echo X|tr X '\101'` in
5555 A) # ASCII based system
5556 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5557 lt_SP2NL='tr \040 \012'
5558 lt_NL2SP='tr \015\012 \040\040'
5559 ;;
5560 *) # EBCDIC based system
5561 lt_SP2NL='tr \100 \n'
5562 lt_NL2SP='tr \r\n \100\100'
5563 ;;
5564esac
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5575$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5576if ${lt_cv_to_host_file_cmd+:} false; then :
5577 $as_echo_n "(cached) " >&6
5578else
5579 case $host in
5580 *-*-mingw* )
5581 case $build in
5582 *-*-mingw* ) # actually msys
5583 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5584 ;;
5585 *-*-cygwin* )
5586 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5587 ;;
5588 * ) # otherwise, assume *nix
5589 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5590 ;;
5591 esac
5592 ;;
5593 *-*-cygwin* )
5594 case $build in
5595 *-*-mingw* ) # actually msys
5596 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5597 ;;
5598 *-*-cygwin* )
5599 lt_cv_to_host_file_cmd=func_convert_file_noop
5600 ;;
5601 * ) # otherwise, assume *nix
5602 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5603 ;;
5604 esac
5605 ;;
5606 * ) # unhandled hosts (and "normal" native builds)
5607 lt_cv_to_host_file_cmd=func_convert_file_noop
5608 ;;
5609esac
5610
5611fi
5612
5613to_host_file_cmd=$lt_cv_to_host_file_cmd
5614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5615$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5616
5617
5618
5619
5620
5621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5622$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5623if ${lt_cv_to_tool_file_cmd+:} false; then :
5624 $as_echo_n "(cached) " >&6
5625else
5626 #assume ordinary cross tools, or native build.
5627lt_cv_to_tool_file_cmd=func_convert_file_noop
5628case $host in
5629 *-*-mingw* )
5630 case $build in
5631 *-*-mingw* ) # actually msys
5632 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5633 ;;
5634 esac
5635 ;;
5636esac
5637
5638fi
5639
5640to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5642$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5643
5644
5645
5646
5647
5648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5649$as_echo_n "checking for $LD option to reload object files... " >&6; }
5650if ${lt_cv_ld_reload_flag+:} false; then :
5651 $as_echo_n "(cached) " >&6
5652else
5653 lt_cv_ld_reload_flag='-r'
5654fi
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5656$as_echo "$lt_cv_ld_reload_flag" >&6; }
5657reload_flag=$lt_cv_ld_reload_flag
5658case $reload_flag in
5659"" | " "*) ;;
5660*) reload_flag=" $reload_flag" ;;
5661esac
5662reload_cmds='$LD$reload_flag -o $output$reload_objs'
5663case $host_os in
5664 cygwin* | mingw* | pw32* | cegcc*)
5665 if test yes != "$GCC"; then
5666 reload_cmds=false
5667 fi
5668 ;;
5669 darwin*)
5670 if test yes = "$GCC"; then
5671 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5672 else
5673 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5674 fi
5675 ;;
5676esac
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686if test -n "$ac_tool_prefix"; then
5687 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5688set dummy ${ac_tool_prefix}objdump; ac_word=$2
5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5690$as_echo_n "checking for $ac_word... " >&6; }
5691if ${ac_cv_prog_OBJDUMP+:} false; then :
5692 $as_echo_n "(cached) " >&6
5693else
5694 if test -n "$OBJDUMP"; then
5695 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5696else
5697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698for as_dir in $PATH
5699do
5700 IFS=$as_save_IFS
5701 test -z "$as_dir" && as_dir=.
5702 for ac_exec_ext in '' $ac_executable_extensions; do
5703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5704 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 break 2
5707 fi
5708done
5709 done
5710IFS=$as_save_IFS
5711
5712fi
5713fi
5714OBJDUMP=$ac_cv_prog_OBJDUMP
5715if test -n "$OBJDUMP"; then
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5717$as_echo "$OBJDUMP" >&6; }
5718else
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5720$as_echo "no" >&6; }
5721fi
5722
5723
5724fi
5725if test -z "$ac_cv_prog_OBJDUMP"; then
5726 ac_ct_OBJDUMP=$OBJDUMP
5727 # Extract the first word of "objdump", so it can be a program name with args.
5728set dummy objdump; ac_word=$2
5729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5730$as_echo_n "checking for $ac_word... " >&6; }
5731if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5732 $as_echo_n "(cached) " >&6
5733else
5734 if test -n "$ac_ct_OBJDUMP"; then
5735 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5736else
5737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738for as_dir in $PATH
5739do
5740 IFS=$as_save_IFS
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 break 2
5747 fi
5748done
5749 done
5750IFS=$as_save_IFS
5751
5752fi
5753fi
5754ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5755if test -n "$ac_ct_OBJDUMP"; then
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5757$as_echo "$ac_ct_OBJDUMP" >&6; }
5758else
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760$as_echo "no" >&6; }
5761fi
5762
5763 if test "x$ac_ct_OBJDUMP" = x; then
5764 OBJDUMP="false"
5765 else
5766 case $cross_compiling:$ac_tool_warned in
5767yes:)
5768{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5769$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5770ac_tool_warned=yes ;;
5771esac
5772 OBJDUMP=$ac_ct_OBJDUMP
5773 fi
5774else
5775 OBJDUMP="$ac_cv_prog_OBJDUMP"
5776fi
5777
5778test -z "$OBJDUMP" && OBJDUMP=objdump
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5789$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5790if ${lt_cv_deplibs_check_method+:} false; then :
5791 $as_echo_n "(cached) " >&6
5792else
5793 lt_cv_file_magic_cmd='$MAGIC_CMD'
5794lt_cv_file_magic_test_file=
5795lt_cv_deplibs_check_method='unknown'
5796# Need to set the preceding variable on all platforms that support
5797# interlibrary dependencies.
5798# 'none' -- dependencies not supported.
5799# 'unknown' -- same as none, but documents that we really don't know.
5800# 'pass_all' -- all dependencies passed with no checks.
5801# 'test_compile' -- check by making test program.
5802# 'file_magic [[regex]]' -- check by looking for files in library path
5803# that responds to the $file_magic_cmd with a given extended regex.
5804# If you have 'file' or equivalent on your system and you're not sure
5805# whether 'pass_all' will *always* work, you probably want this one.
5806
5807case $host_os in
5808aix[4-9]*)
5809 lt_cv_deplibs_check_method=pass_all
5810 ;;
5811
5812beos*)
5813 lt_cv_deplibs_check_method=pass_all
5814 ;;
5815
5816bsdi[45]*)
5817 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5818 lt_cv_file_magic_cmd='/usr/bin/file -L'
5819 lt_cv_file_magic_test_file=/shlib/libc.so
5820 ;;
5821
5822cygwin*)
5823 # func_win32_libid is a shell function defined in ltmain.sh
5824 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5825 lt_cv_file_magic_cmd='func_win32_libid'
5826 ;;
5827
5828mingw* | pw32*)
5829 # Base MSYS/MinGW do not provide the 'file' command needed by
5830 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5831 # unless we find 'file', for example because we are cross-compiling.
5832 if ( file / ) >/dev/null 2>&1; then
5833 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5834 lt_cv_file_magic_cmd='func_win32_libid'
5835 else
5836 # Keep this pattern in sync with the one in func_win32_libid.
5837 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5838 lt_cv_file_magic_cmd='$OBJDUMP -f'
5839 fi
5840 ;;
5841
5842cegcc*)
5843 # use the weaker test based on 'objdump'. See mingw*.
5844 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5845 lt_cv_file_magic_cmd='$OBJDUMP -f'
5846 ;;
5847
5848darwin* | rhapsody*)
5849 lt_cv_deplibs_check_method=pass_all
5850 ;;
5851
5852freebsd* | dragonfly*)
5853 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5854 case $host_cpu in
5855 i*86 )
5856 # Not sure whether the presence of OpenBSD here was a mistake.
5857 # Let's accept both of them until this is cleared up.
5858 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5859 lt_cv_file_magic_cmd=/usr/bin/file
5860 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5861 ;;
5862 esac
5863 else
5864 lt_cv_deplibs_check_method=pass_all
5865 fi
5866 ;;
5867
5868haiku*)
5869 lt_cv_deplibs_check_method=pass_all
5870 ;;
5871
5872hpux10.20* | hpux11*)
5873 lt_cv_file_magic_cmd=/usr/bin/file
5874 case $host_cpu in
5875 ia64*)
5876 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5877 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5878 ;;
5879 hppa*64*)
5880 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]'
5881 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5882 ;;
5883 *)
5884 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5885 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5886 ;;
5887 esac
5888 ;;
5889
5890interix[3-9]*)
5891 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5892 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5893 ;;
5894
5895irix5* | irix6* | nonstopux*)
5896 case $LD in
5897 *-32|*"-32 ") libmagic=32-bit;;
5898 *-n32|*"-n32 ") libmagic=N32;;
5899 *-64|*"-64 ") libmagic=64-bit;;
5900 *) libmagic=never-match;;
5901 esac
5902 lt_cv_deplibs_check_method=pass_all
5903 ;;
5904
5905# This must be glibc/ELF.
5906linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5907 lt_cv_deplibs_check_method=pass_all
5908 ;;
5909
5910netbsd*)
5911 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5913 else
5914 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5915 fi
5916 ;;
5917
5918newos6*)
5919 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5920 lt_cv_file_magic_cmd=/usr/bin/file
5921 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5922 ;;
5923
5924*nto* | *qnx*)
5925 lt_cv_deplibs_check_method=pass_all
5926 ;;
5927
5928openbsd* | bitrig*)
5929 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5930 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5931 else
5932 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5933 fi
5934 ;;
5935
5936osf3* | osf4* | osf5*)
5937 lt_cv_deplibs_check_method=pass_all
5938 ;;
5939
5940rdos*)
5941 lt_cv_deplibs_check_method=pass_all
5942 ;;
5943
5944solaris*)
5945 lt_cv_deplibs_check_method=pass_all
5946 ;;
5947
5948sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5949 lt_cv_deplibs_check_method=pass_all
5950 ;;
5951
5952sysv4 | sysv4.3*)
5953 case $host_vendor in
5954 motorola)
5955 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]'
5956 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5957 ;;
5958 ncr)
5959 lt_cv_deplibs_check_method=pass_all
5960 ;;
5961 sequent)
5962 lt_cv_file_magic_cmd='/bin/file'
5963 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5964 ;;
5965 sni)
5966 lt_cv_file_magic_cmd='/bin/file'
5967 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5968 lt_cv_file_magic_test_file=/lib/libc.so
5969 ;;
5970 siemens)
5971 lt_cv_deplibs_check_method=pass_all
5972 ;;
5973 pc)
5974 lt_cv_deplibs_check_method=pass_all
5975 ;;
5976 esac
5977 ;;
5978
5979tpf*)
5980 lt_cv_deplibs_check_method=pass_all
5981 ;;
5982os2*)
5983 lt_cv_deplibs_check_method=pass_all
5984 ;;
5985esac
5986
5987fi
5988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5989$as_echo "$lt_cv_deplibs_check_method" >&6; }
5990
5991file_magic_glob=
5992want_nocaseglob=no
5993if test "$build" = "$host"; then
5994 case $host_os in
5995 mingw* | pw32*)
5996 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5997 want_nocaseglob=yes
5998 else
5999 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6000 fi
6001 ;;
6002 esac
6003fi
6004
6005file_magic_cmd=$lt_cv_file_magic_cmd
6006deplibs_check_method=$lt_cv_deplibs_check_method
6007test -z "$deplibs_check_method" && deplibs_check_method=unknown
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030if test -n "$ac_tool_prefix"; then
6031 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6032set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034$as_echo_n "checking for $ac_word... " >&6; }
6035if ${ac_cv_prog_DLLTOOL+:} false; then :
6036 $as_echo_n "(cached) " >&6
6037else
6038 if test -n "$DLLTOOL"; then
6039 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6040else
6041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042for as_dir in $PATH
6043do
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6048 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 break 2
6051 fi
6052done
6053 done
6054IFS=$as_save_IFS
6055
6056fi
6057fi
6058DLLTOOL=$ac_cv_prog_DLLTOOL
6059if test -n "$DLLTOOL"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6061$as_echo "$DLLTOOL" >&6; }
6062else
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064$as_echo "no" >&6; }
6065fi
6066
6067
6068fi
6069if test -z "$ac_cv_prog_DLLTOOL"; then
6070 ac_ct_DLLTOOL=$DLLTOOL
6071 # Extract the first word of "dlltool", so it can be a program name with args.
6072set dummy dlltool; ac_word=$2
6073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074$as_echo_n "checking for $ac_word... " >&6; }
6075if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6076 $as_echo_n "(cached) " >&6
6077else
6078 if test -n "$ac_ct_DLLTOOL"; then
6079 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6080else
6081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082for as_dir in $PATH
6083do
6084 IFS=$as_save_IFS
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
6087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6088 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6090 break 2
6091 fi
6092done
6093 done
6094IFS=$as_save_IFS
6095
6096fi
6097fi
6098ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6099if test -n "$ac_ct_DLLTOOL"; then
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6101$as_echo "$ac_ct_DLLTOOL" >&6; }
6102else
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104$as_echo "no" >&6; }
6105fi
6106
6107 if test "x$ac_ct_DLLTOOL" = x; then
6108 DLLTOOL="false"
6109 else
6110 case $cross_compiling:$ac_tool_warned in
6111yes:)
6112{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6113$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6114ac_tool_warned=yes ;;
6115esac
6116 DLLTOOL=$ac_ct_DLLTOOL
6117 fi
6118else
6119 DLLTOOL="$ac_cv_prog_DLLTOOL"
6120fi
6121
6122test -z "$DLLTOOL" && DLLTOOL=dlltool
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6134$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6135if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6136 $as_echo_n "(cached) " >&6
6137else
6138 lt_cv_sharedlib_from_linklib_cmd='unknown'
6139
6140case $host_os in
6141cygwin* | mingw* | pw32* | cegcc*)
6142 # two different shell functions defined in ltmain.sh;
6143 # decide which one to use based on capabilities of $DLLTOOL
6144 case `$DLLTOOL --help 2>&1` in
6145 *--identify-strict*)
6146 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6147 ;;
6148 *)
6149 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6150 ;;
6151 esac
6152 ;;
6153*)
6154 # fallback: assume linklib IS sharedlib
6155 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6156 ;;
6157esac
6158
6159fi
6160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6161$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6162sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6163test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6164
6165
6166
6167
6168
6169
6170
6171if test -n "$ac_tool_prefix"; then
6172 for ac_prog in ar
6173 do
6174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6175set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6177$as_echo_n "checking for $ac_word... " >&6; }
6178if ${ac_cv_prog_AR+:} false; then :
6179 $as_echo_n "(cached) " >&6
6180else
6181 if test -n "$AR"; then
6182 ac_cv_prog_AR="$AR" # Let the user override the test.
6183else
6184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6185for as_dir in $PATH
6186do
6187 IFS=$as_save_IFS
6188 test -z "$as_dir" && as_dir=.
6189 for ac_exec_ext in '' $ac_executable_extensions; do
6190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6191 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6193 break 2
6194 fi
6195done
6196 done
6197IFS=$as_save_IFS
6198
6199fi
6200fi
6201AR=$ac_cv_prog_AR
6202if test -n "$AR"; then
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6204$as_echo "$AR" >&6; }
6205else
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6207$as_echo "no" >&6; }
6208fi
6209
6210
6211 test -n "$AR" && break
6212 done
6213fi
6214if test -z "$AR"; then
6215 ac_ct_AR=$AR
6216 for ac_prog in ar
6217do
6218 # Extract the first word of "$ac_prog", so it can be a program name with args.
6219set dummy $ac_prog; ac_word=$2
6220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6221$as_echo_n "checking for $ac_word... " >&6; }
6222if ${ac_cv_prog_ac_ct_AR+:} false; then :
6223 $as_echo_n "(cached) " >&6
6224else
6225 if test -n "$ac_ct_AR"; then
6226 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6227else
6228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229for as_dir in $PATH
6230do
6231 IFS=$as_save_IFS
6232 test -z "$as_dir" && as_dir=.
6233 for ac_exec_ext in '' $ac_executable_extensions; do
6234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6235 ac_cv_prog_ac_ct_AR="$ac_prog"
6236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6237 break 2
6238 fi
6239done
6240 done
6241IFS=$as_save_IFS
6242
6243fi
6244fi
6245ac_ct_AR=$ac_cv_prog_ac_ct_AR
6246if test -n "$ac_ct_AR"; then
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6248$as_echo "$ac_ct_AR" >&6; }
6249else
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6251$as_echo "no" >&6; }
6252fi
6253
6254
6255 test -n "$ac_ct_AR" && break
6256done
6257
6258 if test "x$ac_ct_AR" = x; then
6259 AR="false"
6260 else
6261 case $cross_compiling:$ac_tool_warned in
6262yes:)
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6265ac_tool_warned=yes ;;
6266esac
6267 AR=$ac_ct_AR
6268 fi
6269fi
6270
6271: ${AR=ar}
6272: ${AR_FLAGS=cru}
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6285$as_echo_n "checking for archiver @FILE support... " >&6; }
6286if ${lt_cv_ar_at_file+:} false; then :
6287 $as_echo_n "(cached) " >&6
6288else
6289 lt_cv_ar_at_file=no
6290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6291/* end confdefs.h. */
6292
6293int
6294main ()
6295{
6296
6297 ;
6298 return 0;
6299}
6300_ACEOF
6301if ac_fn_c_try_compile "$LINENO"; then :
6302 echo conftest.$ac_objext > conftest.lst
6303 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6305 (eval $lt_ar_try) 2>&5
6306 ac_status=$?
6307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6308 test $ac_status = 0; }
6309 if test 0 -eq "$ac_status"; then
6310 # Ensure the archiver fails upon bogus file names.
6311 rm -f conftest.$ac_objext libconftest.a
6312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6313 (eval $lt_ar_try) 2>&5
6314 ac_status=$?
6315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6316 test $ac_status = 0; }
6317 if test 0 -ne "$ac_status"; then
6318 lt_cv_ar_at_file=@
6319 fi
6320 fi
6321 rm -f conftest.* libconftest.a
6322
6323fi
6324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6325
6326fi
6327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6328$as_echo "$lt_cv_ar_at_file" >&6; }
6329
6330if test no = "$lt_cv_ar_at_file"; then
6331 archiver_list_spec=
6332else
6333 archiver_list_spec=$lt_cv_ar_at_file
6334fi
6335
6336
6337
6338
6339
6340
6341
6342if test -n "$ac_tool_prefix"; then
6343 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6344set dummy ${ac_tool_prefix}strip; ac_word=$2
6345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6346$as_echo_n "checking for $ac_word... " >&6; }
6347if ${ac_cv_prog_STRIP+:} false; then :
6348 $as_echo_n "(cached) " >&6
6349else
6350 if test -n "$STRIP"; then
6351 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6352else
6353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354for as_dir in $PATH
6355do
6356 IFS=$as_save_IFS
6357 test -z "$as_dir" && as_dir=.
6358 for ac_exec_ext in '' $ac_executable_extensions; do
6359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6360 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6362 break 2
6363 fi
6364done
6365 done
6366IFS=$as_save_IFS
6367
6368fi
6369fi
6370STRIP=$ac_cv_prog_STRIP
6371if test -n "$STRIP"; then
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6373$as_echo "$STRIP" >&6; }
6374else
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6376$as_echo "no" >&6; }
6377fi
6378
6379
6380fi
6381if test -z "$ac_cv_prog_STRIP"; then
6382 ac_ct_STRIP=$STRIP
6383 # Extract the first word of "strip", so it can be a program name with args.
6384set dummy strip; ac_word=$2
6385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6386$as_echo_n "checking for $ac_word... " >&6; }
6387if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6388 $as_echo_n "(cached) " >&6
6389else
6390 if test -n "$ac_ct_STRIP"; then
6391 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6392else
6393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6394for as_dir in $PATH
6395do
6396 IFS=$as_save_IFS
6397 test -z "$as_dir" && as_dir=.
6398 for ac_exec_ext in '' $ac_executable_extensions; do
6399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6400 ac_cv_prog_ac_ct_STRIP="strip"
6401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6402 break 2
6403 fi
6404done
6405 done
6406IFS=$as_save_IFS
6407
6408fi
6409fi
6410ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6411if test -n "$ac_ct_STRIP"; then
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6413$as_echo "$ac_ct_STRIP" >&6; }
6414else
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6416$as_echo "no" >&6; }
6417fi
6418
6419 if test "x$ac_ct_STRIP" = x; then
6420 STRIP=":"
6421 else
6422 case $cross_compiling:$ac_tool_warned in
6423yes:)
6424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6426ac_tool_warned=yes ;;
6427esac
6428 STRIP=$ac_ct_STRIP
6429 fi
6430else
6431 STRIP="$ac_cv_prog_STRIP"
6432fi
6433
6434test -z "$STRIP" && STRIP=:
6435
6436
6437
6438
6439
6440
6441if test -n "$ac_tool_prefix"; then
6442 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6443set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6445$as_echo_n "checking for $ac_word... " >&6; }
6446if ${ac_cv_prog_RANLIB+:} false; then :
6447 $as_echo_n "(cached) " >&6
6448else
6449 if test -n "$RANLIB"; then
6450 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6451else
6452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6453for as_dir in $PATH
6454do
6455 IFS=$as_save_IFS
6456 test -z "$as_dir" && as_dir=.
6457 for ac_exec_ext in '' $ac_executable_extensions; do
6458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6459 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6461 break 2
6462 fi
6463done
6464 done
6465IFS=$as_save_IFS
6466
6467fi
6468fi
6469RANLIB=$ac_cv_prog_RANLIB
6470if test -n "$RANLIB"; then
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6472$as_echo "$RANLIB" >&6; }
6473else
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6475$as_echo "no" >&6; }
6476fi
6477
6478
6479fi
6480if test -z "$ac_cv_prog_RANLIB"; then
6481 ac_ct_RANLIB=$RANLIB
6482 # Extract the first word of "ranlib", so it can be a program name with args.
6483set dummy ranlib; ac_word=$2
6484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485$as_echo_n "checking for $ac_word... " >&6; }
6486if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6487 $as_echo_n "(cached) " >&6
6488else
6489 if test -n "$ac_ct_RANLIB"; then
6490 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6491else
6492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493for as_dir in $PATH
6494do
6495 IFS=$as_save_IFS
6496 test -z "$as_dir" && as_dir=.
6497 for ac_exec_ext in '' $ac_executable_extensions; do
6498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6499 ac_cv_prog_ac_ct_RANLIB="ranlib"
6500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 break 2
6502 fi
6503done
6504 done
6505IFS=$as_save_IFS
6506
6507fi
6508fi
6509ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6510if test -n "$ac_ct_RANLIB"; then
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6512$as_echo "$ac_ct_RANLIB" >&6; }
6513else
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515$as_echo "no" >&6; }
6516fi
6517
6518 if test "x$ac_ct_RANLIB" = x; then
6519 RANLIB=":"
6520 else
6521 case $cross_compiling:$ac_tool_warned in
6522yes:)
6523{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6524$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6525ac_tool_warned=yes ;;
6526esac
6527 RANLIB=$ac_ct_RANLIB
6528 fi
6529else
6530 RANLIB="$ac_cv_prog_RANLIB"
6531fi
6532
6533test -z "$RANLIB" && RANLIB=:
6534
6535
6536
6537
6538
6539
6540# Determine commands to create old-style static archives.
6541old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6542old_postinstall_cmds='chmod 644 $oldlib'
6543old_postuninstall_cmds=
6544
6545if test -n "$RANLIB"; then
6546 case $host_os in
6547 bitrig* | openbsd*)
6548 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6549 ;;
6550 *)
6551 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6552 ;;
6553 esac
6554 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6555fi
6556
6557case $host_os in
6558 darwin*)
6559 lock_old_archive_extraction=yes ;;
6560 *)
6561 lock_old_archive_extraction=no ;;
6562esac
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602# If no C compiler was specified, use CC.
6603LTCC=${LTCC-"$CC"}
6604
6605# If no C compiler flags were specified, use CFLAGS.
6606LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6607
6608# Allow CC to be a program name with arguments.
6609compiler=$CC
6610
6611
6612# Check for command to grab the raw symbol name followed by C symbol from nm.
6613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6614$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6615if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6616 $as_echo_n "(cached) " >&6
6617else
6618
6619# These are sane defaults that work on at least a few old systems.
6620# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6621
6622# Character class describing NM global symbol codes.
6623symcode='[BCDEGRST]'
6624
6625# Regexp to match symbols that can be accessed directly from C.
6626sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6627
6628# Define system-specific variables.
6629case $host_os in
6630aix*)
6631 symcode='[BCDT]'
6632 ;;
6633cygwin* | mingw* | pw32* | cegcc*)
6634 symcode='[ABCDGISTW]'
6635 ;;
6636hpux*)
6637 if test ia64 = "$host_cpu"; then
6638 symcode='[ABCDEGRST]'
6639 fi
6640 ;;
6641irix* | nonstopux*)
6642 symcode='[BCDEGRST]'
6643 ;;
6644osf*)
6645 symcode='[BCDEGQRST]'
6646 ;;
6647solaris*)
6648 symcode='[BDRT]'
6649 ;;
6650sco3.2v5*)
6651 symcode='[DT]'
6652 ;;
6653sysv4.2uw2*)
6654 symcode='[DT]'
6655 ;;
6656sysv5* | sco5v6* | unixware* | OpenUNIX*)
6657 symcode='[ABDT]'
6658 ;;
6659sysv4)
6660 symcode='[DFNSTU]'
6661 ;;
6662esac
6663
6664# If we're using GNU nm, then use its standard symbol codes.
6665case `$NM -V 2>&1` in
6666*GNU* | *'with BFD'*)
6667 symcode='[ABCDGIRSTW]' ;;
6668esac
6669
6670if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6671 # Gets list of data symbols to import.
6672 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6673 # Adjust the below global symbol transforms to fixup imported variables.
6674 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6675 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6676 lt_c_name_lib_hook="\
6677 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6678 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6679else
6680 # Disable hooks by default.
6681 lt_cv_sys_global_symbol_to_import=
6682 lt_cdecl_hook=
6683 lt_c_name_hook=
6684 lt_c_name_lib_hook=
6685fi
6686
6687# Transform an extracted symbol line into a proper C declaration.
6688# Some systems (esp. on ia64) link data and code symbols differently,
6689# so use this general approach.
6690lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6691$lt_cdecl_hook\
6692" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6693" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6694
6695# Transform an extracted symbol line into symbol name and symbol address
6696lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6697$lt_c_name_hook\
6698" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6699" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6700
6701# Transform an extracted symbol line into symbol name with lib prefix and
6702# symbol address.
6703lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6704$lt_c_name_lib_hook\
6705" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6706" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6707" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6708
6709# Handle CRLF in mingw tool chain
6710opt_cr=
6711case $build_os in
6712mingw*)
6713 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6714 ;;
6715esac
6716
6717# Try without a prefix underscore, then with it.
6718for ac_symprfx in "" "_"; do
6719
6720 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6721 symxfrm="\\1 $ac_symprfx\\2 \\2"
6722
6723 # Write the raw and C identifiers.
6724 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6725 # Fake it for dumpbin and say T for any non-static function,
6726 # D for any global variable and I for any imported variable.
6727 # Also find C++ and __fastcall symbols from MSVC++,
6728 # which start with @ or ?.
6729 lt_cv_sys_global_symbol_pipe="$AWK '"\
6730" {last_section=section; section=\$ 3};"\
6731" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6732" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6733" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6734" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6735" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6736" \$ 0!~/External *\|/{next};"\
6737" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6738" {if(hide[section]) next};"\
6739" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6740" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6741" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6742" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6743" ' prfx=^$ac_symprfx"
6744 else
6745 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6746 fi
6747 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6748
6749 # Check to see that the pipe works correctly.
6750 pipe_works=no
6751
6752 rm -f conftest*
6753 cat > conftest.$ac_ext <<_LT_EOF
6754#ifdef __cplusplus
6755extern "C" {
6756#endif
6757char nm_test_var;
6758void nm_test_func(void);
6759void nm_test_func(void){}
6760#ifdef __cplusplus
6761}
6762#endif
6763int main(){nm_test_var='a';nm_test_func();return(0);}
6764_LT_EOF
6765
6766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6767 (eval $ac_compile) 2>&5
6768 ac_status=$?
6769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6770 test $ac_status = 0; }; then
6771 # Now try to grab the symbols.
6772 nlist=conftest.nm
6773 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6774 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6775 ac_status=$?
6776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6777 test $ac_status = 0; } && test -s "$nlist"; then
6778 # Try sorting and uniquifying the output.
6779 if sort "$nlist" | uniq > "$nlist"T; then
6780 mv -f "$nlist"T "$nlist"
6781 else
6782 rm -f "$nlist"T
6783 fi
6784
6785 # Make sure that we snagged all the symbols we need.
6786 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6787 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6788 cat <<_LT_EOF > conftest.$ac_ext
6789/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6790#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6791/* DATA imports from DLLs on WIN32 can't be const, because runtime
6792 relocations are performed -- see ld's documentation on pseudo-relocs. */
6793# define LT_DLSYM_CONST
6794#elif defined __osf__
6795/* This system does not cope well with relocations in const data. */
6796# define LT_DLSYM_CONST
6797#else
6798# define LT_DLSYM_CONST const
6799#endif
6800
6801#ifdef __cplusplus
6802extern "C" {
6803#endif
6804
6805_LT_EOF
6806 # Now generate the symbol file.
6807 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6808
6809 cat <<_LT_EOF >> conftest.$ac_ext
6810
6811/* The mapping between symbol names and symbols. */
6812LT_DLSYM_CONST struct {
6813 const char *name;
6814 void *address;
6815}
6816lt__PROGRAM__LTX_preloaded_symbols[] =
6817{
6818 { "@PROGRAM@", (void *) 0 },
6819_LT_EOF
6820 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6821 cat <<\_LT_EOF >> conftest.$ac_ext
6822 {0, (void *) 0}
6823};
6824
6825/* This works around a problem in FreeBSD linker */
6826#ifdef FREEBSD_WORKAROUND
6827static const void *lt_preloaded_setup() {
6828 return lt__PROGRAM__LTX_preloaded_symbols;
6829}
6830#endif
6831
6832#ifdef __cplusplus
6833}
6834#endif
6835_LT_EOF
6836 # Now try linking the two files.
6837 mv conftest.$ac_objext conftstm.$ac_objext
6838 lt_globsym_save_LIBS=$LIBS
6839 lt_globsym_save_CFLAGS=$CFLAGS
6840 LIBS=conftstm.$ac_objext
6841 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6843 (eval $ac_link) 2>&5
6844 ac_status=$?
6845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6846 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6847 pipe_works=yes
6848 fi
6849 LIBS=$lt_globsym_save_LIBS
6850 CFLAGS=$lt_globsym_save_CFLAGS
6851 else
6852 echo "cannot find nm_test_func in $nlist" >&5
6853 fi
6854 else
6855 echo "cannot find nm_test_var in $nlist" >&5
6856 fi
6857 else
6858 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6859 fi
6860 else
6861 echo "$progname: failed program was:" >&5
6862 cat conftest.$ac_ext >&5
6863 fi
6864 rm -rf conftest* conftst*
6865
6866 # Do not use the global_symbol_pipe unless it works.
6867 if test yes = "$pipe_works"; then
6868 break
6869 else
6870 lt_cv_sys_global_symbol_pipe=
6871 fi
6872done
6873
6874fi
6875
6876if test -z "$lt_cv_sys_global_symbol_pipe"; then
6877 lt_cv_sys_global_symbol_to_cdecl=
6878fi
6879if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6881$as_echo "failed" >&6; }
6882else
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6884$as_echo "ok" >&6; }
6885fi
6886
6887# Response file support.
6888if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6889 nm_file_list_spec='@'
6890elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6891 nm_file_list_spec='@'
6892fi
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6931$as_echo_n "checking for sysroot... " >&6; }
6932
6933# Check whether --with-sysroot was given.
6934if test "${with_sysroot+set}" = set; then :
6935 withval=$with_sysroot;
6936else
6937 with_sysroot=no
6938fi
6939
6940
6941lt_sysroot=
6942case $with_sysroot in #(
6943 yes)
6944 if test yes = "$GCC"; then
6945 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6946 fi
6947 ;; #(
6948 /*)
6949 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6950 ;; #(
6951 no|'')
6952 ;; #(
6953 *)
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6955$as_echo "$with_sysroot" >&6; }
6956 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6957 ;;
6958esac
6959
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6961$as_echo "${lt_sysroot:-no}" >&6; }
6962
6963
6964
6965
6966
6967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6968$as_echo_n "checking for a working dd... " >&6; }
6969if ${ac_cv_path_lt_DD+:} false; then :
6970 $as_echo_n "(cached) " >&6
6971else
6972 printf 0123456789abcdef0123456789abcdef >conftest.i
6973cat conftest.i conftest.i >conftest2.i
6974: ${lt_DD:=$DD}
6975if test -z "$lt_DD"; then
6976 ac_path_lt_DD_found=false
6977 # Loop through the user's path and test for each of PROGNAME-LIST
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979for as_dir in $PATH
6980do
6981 IFS=$as_save_IFS
6982 test -z "$as_dir" && as_dir=.
6983 for ac_prog in dd; do
6984 for ac_exec_ext in '' $ac_executable_extensions; do
6985 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6986 as_fn_executable_p "$ac_path_lt_DD" || continue
6987if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6988 cmp -s conftest.i conftest.out \
6989 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6990fi
6991 $ac_path_lt_DD_found && break 3
6992 done
6993 done
6994 done
6995IFS=$as_save_IFS
6996 if test -z "$ac_cv_path_lt_DD"; then
6997 :
6998 fi
6999else
7000 ac_cv_path_lt_DD=$lt_DD
7001fi
7002
7003rm -f conftest.i conftest2.i conftest.out
7004fi
7005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7006$as_echo "$ac_cv_path_lt_DD" >&6; }
7007
7008
7009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7010$as_echo_n "checking how to truncate binary pipes... " >&6; }
7011if ${lt_cv_truncate_bin+:} false; then :
7012 $as_echo_n "(cached) " >&6
7013else
7014 printf 0123456789abcdef0123456789abcdef >conftest.i
7015cat conftest.i conftest.i >conftest2.i
7016lt_cv_truncate_bin=
7017if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7018 cmp -s conftest.i conftest.out \
7019 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7020fi
7021rm -f conftest.i conftest2.i conftest.out
7022test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7023fi
7024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7025$as_echo "$lt_cv_truncate_bin" >&6; }
7026
7027
7028
7029
7030
7031
7032
7033# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7034func_cc_basename ()
7035{
7036 for cc_temp in $*""; do
7037 case $cc_temp in
7038 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7039 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7040 \-*) ;;
7041 *) break;;
7042 esac
7043 done
7044 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7045}
7046
7047# Check whether --enable-libtool-lock was given.
7048if test "${enable_libtool_lock+set}" = set; then :
7049 enableval=$enable_libtool_lock;
7050fi
7051
7052test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7053
7054# Some flags need to be propagated to the compiler or linker for good
7055# libtool support.
7056case $host in
7057ia64-*-hpux*)
7058 # Find out what ABI is being produced by ac_compile, and set mode
7059 # options accordingly.
7060 echo 'int i;' > conftest.$ac_ext
7061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7062 (eval $ac_compile) 2>&5
7063 ac_status=$?
7064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7065 test $ac_status = 0; }; then
7066 case `/usr/bin/file conftest.$ac_objext` in
7067 *ELF-32*)
7068 HPUX_IA64_MODE=32
7069 ;;
7070 *ELF-64*)
7071 HPUX_IA64_MODE=64
7072 ;;
7073 esac
7074 fi
7075 rm -rf conftest*
7076 ;;
7077*-*-irix6*)
7078 # Find out what ABI is being produced by ac_compile, and set linker
7079 # options accordingly.
7080 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7082 (eval $ac_compile) 2>&5
7083 ac_status=$?
7084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7085 test $ac_status = 0; }; then
7086 if test yes = "$lt_cv_prog_gnu_ld"; then
7087 case `/usr/bin/file conftest.$ac_objext` in
7088 *32-bit*)
7089 LD="${LD-ld} -melf32bsmip"
7090 ;;
7091 *N32*)
7092 LD="${LD-ld} -melf32bmipn32"
7093 ;;
7094 *64-bit*)
7095 LD="${LD-ld} -melf64bmip"
7096 ;;
7097 esac
7098 else
7099 case `/usr/bin/file conftest.$ac_objext` in
7100 *32-bit*)
7101 LD="${LD-ld} -32"
7102 ;;
7103 *N32*)
7104 LD="${LD-ld} -n32"
7105 ;;
7106 *64-bit*)
7107 LD="${LD-ld} -64"
7108 ;;
7109 esac
7110 fi
7111 fi
7112 rm -rf conftest*
7113 ;;
7114
7115mips64*-*linux*)
7116 # Find out what ABI is being produced by ac_compile, and set linker
7117 # options accordingly.
7118 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7119 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7120 (eval $ac_compile) 2>&5
7121 ac_status=$?
7122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7123 test $ac_status = 0; }; then
7124 emul=elf
7125 case `/usr/bin/file conftest.$ac_objext` in
7126 *32-bit*)
7127 emul="${emul}32"
7128 ;;
7129 *64-bit*)
7130 emul="${emul}64"
7131 ;;
7132 esac
7133 case `/usr/bin/file conftest.$ac_objext` in
7134 *MSB*)
7135 emul="${emul}btsmip"
7136 ;;
7137 *LSB*)
7138 emul="${emul}ltsmip"
7139 ;;
7140 esac
7141 case `/usr/bin/file conftest.$ac_objext` in
7142 *N32*)
7143 emul="${emul}n32"
7144 ;;
7145 esac
7146 LD="${LD-ld} -m $emul"
7147 fi
7148 rm -rf conftest*
7149 ;;
7150
7151x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7152s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7153 # Find out what ABI is being produced by ac_compile, and set linker
7154 # options accordingly. Note that the listed cases only cover the
7155 # situations where additional linker options are needed (such as when
7156 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7157 # vice versa); the common cases where no linker options are needed do
7158 # not appear in the list.
7159 echo 'int i;' > conftest.$ac_ext
7160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7161 (eval $ac_compile) 2>&5
7162 ac_status=$?
7163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7164 test $ac_status = 0; }; then
7165 case `/usr/bin/file conftest.o` in
7166 *32-bit*)
7167 case $host in
7168 x86_64-*kfreebsd*-gnu)
7169 LD="${LD-ld} -m elf_i386_fbsd"
7170 ;;
7171 x86_64-*linux*)
7172 case `/usr/bin/file conftest.o` in
7173 *x86-64*)
7174 LD="${LD-ld} -m elf32_x86_64"
7175 ;;
7176 *)
7177 LD="${LD-ld} -m elf_i386"
7178 ;;
7179 esac
7180 ;;
7181 powerpc64le-*linux*)
7182 LD="${LD-ld} -m elf32lppclinux"
7183 ;;
7184 powerpc64-*linux*)
7185 LD="${LD-ld} -m elf32ppclinux"
7186 ;;
7187 s390x-*linux*)
7188 LD="${LD-ld} -m elf_s390"
7189 ;;
7190 sparc64-*linux*)
7191 LD="${LD-ld} -m elf32_sparc"
7192 ;;
7193 esac
7194 ;;
7195 *64-bit*)
7196 case $host in
7197 x86_64-*kfreebsd*-gnu)
7198 LD="${LD-ld} -m elf_x86_64_fbsd"
7199 ;;
7200 x86_64-*linux*)
7201 LD="${LD-ld} -m elf_x86_64"
7202 ;;
7203 powerpcle-*linux*)
7204 LD="${LD-ld} -m elf64lppc"
7205 ;;
7206 powerpc-*linux*)
7207 LD="${LD-ld} -m elf64ppc"
7208 ;;
7209 s390*-*linux*|s390*-*tpf*)
7210 LD="${LD-ld} -m elf64_s390"
7211 ;;
7212 sparc*-*linux*)
7213 LD="${LD-ld} -m elf64_sparc"
7214 ;;
7215 esac
7216 ;;
7217 esac
7218 fi
7219 rm -rf conftest*
7220 ;;
7221
7222*-*-sco3.2v5*)
7223 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7224 SAVE_CFLAGS=$CFLAGS
7225 CFLAGS="$CFLAGS -belf"
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7227$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7228if ${lt_cv_cc_needs_belf+:} false; then :
7229 $as_echo_n "(cached) " >&6
7230else
7231 ac_ext=c
7232ac_cpp='$CPP $CPPFLAGS'
7233ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7234ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7235ac_compiler_gnu=$ac_cv_c_compiler_gnu
7236
7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238/* end confdefs.h. */
7239
7240int
7241main ()
7242{
7243
7244 ;
7245 return 0;
7246}
7247_ACEOF
7248if ac_fn_c_try_link "$LINENO"; then :
7249 lt_cv_cc_needs_belf=yes
7250else
7251 lt_cv_cc_needs_belf=no
7252fi
7253rm -f core conftest.err conftest.$ac_objext \
7254 conftest$ac_exeext conftest.$ac_ext
7255 ac_ext=c
7256ac_cpp='$CPP $CPPFLAGS'
7257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7259ac_compiler_gnu=$ac_cv_c_compiler_gnu
7260
7261fi
7262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7263$as_echo "$lt_cv_cc_needs_belf" >&6; }
7264 if test yes != "$lt_cv_cc_needs_belf"; then
7265 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7266 CFLAGS=$SAVE_CFLAGS
7267 fi
7268 ;;
7269*-*solaris*)
7270 # Find out what ABI is being produced by ac_compile, and set linker
7271 # options accordingly.
7272 echo 'int i;' > conftest.$ac_ext
7273 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7274 (eval $ac_compile) 2>&5
7275 ac_status=$?
7276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7277 test $ac_status = 0; }; then
7278 case `/usr/bin/file conftest.o` in
7279 *64-bit*)
7280 case $lt_cv_prog_gnu_ld in
7281 yes*)
7282 case $host in
7283 i?86-*-solaris*|x86_64-*-solaris*)
7284 LD="${LD-ld} -m elf_x86_64"
7285 ;;
7286 sparc*-*-solaris*)
7287 LD="${LD-ld} -m elf64_sparc"
7288 ;;
7289 esac
7290 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7291 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7292 LD=${LD-ld}_sol2
7293 fi
7294 ;;
7295 *)
7296 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7297 LD="${LD-ld} -64"
7298 fi
7299 ;;
7300 esac
7301 ;;
7302 esac
7303 fi
7304 rm -rf conftest*
7305 ;;
7306esac
7307
7308need_locks=$enable_libtool_lock
7309
7310if test -n "$ac_tool_prefix"; then
7311 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7312set dummy ${ac_tool_prefix}mt; ac_word=$2
7313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7314$as_echo_n "checking for $ac_word... " >&6; }
7315if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7316 $as_echo_n "(cached) " >&6
7317else
7318 if test -n "$MANIFEST_TOOL"; then
7319 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7320else
7321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7322for as_dir in $PATH
7323do
7324 IFS=$as_save_IFS
7325 test -z "$as_dir" && as_dir=.
7326 for ac_exec_ext in '' $ac_executable_extensions; do
7327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7328 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7330 break 2
7331 fi
7332done
7333 done
7334IFS=$as_save_IFS
7335
7336fi
7337fi
7338MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7339if test -n "$MANIFEST_TOOL"; then
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7341$as_echo "$MANIFEST_TOOL" >&6; }
7342else
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344$as_echo "no" >&6; }
7345fi
7346
7347
7348fi
7349if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7350 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7351 # Extract the first word of "mt", so it can be a program name with args.
7352set dummy mt; ac_word=$2
7353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7354$as_echo_n "checking for $ac_word... " >&6; }
7355if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7356 $as_echo_n "(cached) " >&6
7357else
7358 if test -n "$ac_ct_MANIFEST_TOOL"; then
7359 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7360else
7361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7362for as_dir in $PATH
7363do
7364 IFS=$as_save_IFS
7365 test -z "$as_dir" && as_dir=.
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7370 break 2
7371 fi
7372done
7373 done
7374IFS=$as_save_IFS
7375
7376fi
7377fi
7378ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7379if test -n "$ac_ct_MANIFEST_TOOL"; then
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7381$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7382else
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384$as_echo "no" >&6; }
7385fi
7386
7387 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7388 MANIFEST_TOOL=":"
7389 else
7390 case $cross_compiling:$ac_tool_warned in
7391yes:)
7392{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7393$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7394ac_tool_warned=yes ;;
7395esac
7396 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7397 fi
7398else
7399 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7400fi
7401
7402test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7404$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7405if ${lt_cv_path_mainfest_tool+:} false; then :
7406 $as_echo_n "(cached) " >&6
7407else
7408 lt_cv_path_mainfest_tool=no
7409 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7410 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7411 cat conftest.err >&5
7412 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7413 lt_cv_path_mainfest_tool=yes
7414 fi
7415 rm -f conftest*
7416fi
7417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7418$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7419if test yes != "$lt_cv_path_mainfest_tool"; then
7420 MANIFEST_TOOL=:
7421fi
7422
7423
7424
7425
7426
7427
7428 case $host_os in
7429 rhapsody* | darwin*)
7430 if test -n "$ac_tool_prefix"; then
7431 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7432set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7434$as_echo_n "checking for $ac_word... " >&6; }
7435if ${ac_cv_prog_DSYMUTIL+:} false; then :
7436 $as_echo_n "(cached) " >&6
7437else
7438 if test -n "$DSYMUTIL"; then
7439 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7440else
7441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7442for as_dir in $PATH
7443do
7444 IFS=$as_save_IFS
7445 test -z "$as_dir" && as_dir=.
7446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7448 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7450 break 2
7451 fi
7452done
7453 done
7454IFS=$as_save_IFS
7455
7456fi
7457fi
7458DSYMUTIL=$ac_cv_prog_DSYMUTIL
7459if test -n "$DSYMUTIL"; then
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7461$as_echo "$DSYMUTIL" >&6; }
7462else
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7464$as_echo "no" >&6; }
7465fi
7466
7467
7468fi
7469if test -z "$ac_cv_prog_DSYMUTIL"; then
7470 ac_ct_DSYMUTIL=$DSYMUTIL
7471 # Extract the first word of "dsymutil", so it can be a program name with args.
7472set dummy dsymutil; ac_word=$2
7473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7474$as_echo_n "checking for $ac_word... " >&6; }
7475if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7476 $as_echo_n "(cached) " >&6
7477else
7478 if test -n "$ac_ct_DSYMUTIL"; then
7479 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7480else
7481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482for as_dir in $PATH
7483do
7484 IFS=$as_save_IFS
7485 test -z "$as_dir" && as_dir=.
7486 for ac_exec_ext in '' $ac_executable_extensions; do
7487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7488 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7490 break 2
7491 fi
7492done
7493 done
7494IFS=$as_save_IFS
7495
7496fi
7497fi
7498ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7499if test -n "$ac_ct_DSYMUTIL"; then
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7501$as_echo "$ac_ct_DSYMUTIL" >&6; }
7502else
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504$as_echo "no" >&6; }
7505fi
7506
7507 if test "x$ac_ct_DSYMUTIL" = x; then
7508 DSYMUTIL=":"
7509 else
7510 case $cross_compiling:$ac_tool_warned in
7511yes:)
7512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7514ac_tool_warned=yes ;;
7515esac
7516 DSYMUTIL=$ac_ct_DSYMUTIL
7517 fi
7518else
7519 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7520fi
7521
7522 if test -n "$ac_tool_prefix"; then
7523 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7524set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7526$as_echo_n "checking for $ac_word... " >&6; }
7527if ${ac_cv_prog_NMEDIT+:} false; then :
7528 $as_echo_n "(cached) " >&6
7529else
7530 if test -n "$NMEDIT"; then
7531 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7532else
7533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534for as_dir in $PATH
7535do
7536 IFS=$as_save_IFS
7537 test -z "$as_dir" && as_dir=.
7538 for ac_exec_ext in '' $ac_executable_extensions; do
7539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7540 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7542 break 2
7543 fi
7544done
7545 done
7546IFS=$as_save_IFS
7547
7548fi
7549fi
7550NMEDIT=$ac_cv_prog_NMEDIT
7551if test -n "$NMEDIT"; then
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7553$as_echo "$NMEDIT" >&6; }
7554else
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556$as_echo "no" >&6; }
7557fi
7558
7559
7560fi
7561if test -z "$ac_cv_prog_NMEDIT"; then
7562 ac_ct_NMEDIT=$NMEDIT
7563 # Extract the first word of "nmedit", so it can be a program name with args.
7564set dummy nmedit; ac_word=$2
7565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7566$as_echo_n "checking for $ac_word... " >&6; }
7567if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7568 $as_echo_n "(cached) " >&6
7569else
7570 if test -n "$ac_ct_NMEDIT"; then
7571 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7572else
7573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574for as_dir in $PATH
7575do
7576 IFS=$as_save_IFS
7577 test -z "$as_dir" && as_dir=.
7578 for ac_exec_ext in '' $ac_executable_extensions; do
7579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7580 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7582 break 2
7583 fi
7584done
7585 done
7586IFS=$as_save_IFS
7587
7588fi
7589fi
7590ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7591if test -n "$ac_ct_NMEDIT"; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7593$as_echo "$ac_ct_NMEDIT" >&6; }
7594else
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596$as_echo "no" >&6; }
7597fi
7598
7599 if test "x$ac_ct_NMEDIT" = x; then
7600 NMEDIT=":"
7601 else
7602 case $cross_compiling:$ac_tool_warned in
7603yes:)
7604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7606ac_tool_warned=yes ;;
7607esac
7608 NMEDIT=$ac_ct_NMEDIT
7609 fi
7610else
7611 NMEDIT="$ac_cv_prog_NMEDIT"
7612fi
7613
7614 if test -n "$ac_tool_prefix"; then
7615 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7616set dummy ${ac_tool_prefix}lipo; ac_word=$2
7617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7618$as_echo_n "checking for $ac_word... " >&6; }
7619if ${ac_cv_prog_LIPO+:} false; then :
7620 $as_echo_n "(cached) " >&6
7621else
7622 if test -n "$LIPO"; then
7623 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7624else
7625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626for as_dir in $PATH
7627do
7628 IFS=$as_save_IFS
7629 test -z "$as_dir" && as_dir=.
7630 for ac_exec_ext in '' $ac_executable_extensions; do
7631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7632 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7634 break 2
7635 fi
7636done
7637 done
7638IFS=$as_save_IFS
7639
7640fi
7641fi
7642LIPO=$ac_cv_prog_LIPO
7643if test -n "$LIPO"; then
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7645$as_echo "$LIPO" >&6; }
7646else
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648$as_echo "no" >&6; }
7649fi
7650
7651
7652fi
7653if test -z "$ac_cv_prog_LIPO"; then
7654 ac_ct_LIPO=$LIPO
7655 # Extract the first word of "lipo", so it can be a program name with args.
7656set dummy lipo; ac_word=$2
7657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7658$as_echo_n "checking for $ac_word... " >&6; }
7659if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7660 $as_echo_n "(cached) " >&6
7661else
7662 if test -n "$ac_ct_LIPO"; then
7663 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7664else
7665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7666for as_dir in $PATH
7667do
7668 IFS=$as_save_IFS
7669 test -z "$as_dir" && as_dir=.
7670 for ac_exec_ext in '' $ac_executable_extensions; do
7671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7672 ac_cv_prog_ac_ct_LIPO="lipo"
7673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7674 break 2
7675 fi
7676done
7677 done
7678IFS=$as_save_IFS
7679
7680fi
7681fi
7682ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7683if test -n "$ac_ct_LIPO"; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7685$as_echo "$ac_ct_LIPO" >&6; }
7686else
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688$as_echo "no" >&6; }
7689fi
7690
7691 if test "x$ac_ct_LIPO" = x; then
7692 LIPO=":"
7693 else
7694 case $cross_compiling:$ac_tool_warned in
7695yes:)
7696{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7697$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7698ac_tool_warned=yes ;;
7699esac
7700 LIPO=$ac_ct_LIPO
7701 fi
7702else
7703 LIPO="$ac_cv_prog_LIPO"
7704fi
7705
7706 if test -n "$ac_tool_prefix"; then
7707 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7708set dummy ${ac_tool_prefix}otool; ac_word=$2
7709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7710$as_echo_n "checking for $ac_word... " >&6; }
7711if ${ac_cv_prog_OTOOL+:} false; then :
7712 $as_echo_n "(cached) " >&6
7713else
7714 if test -n "$OTOOL"; then
7715 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7716else
7717as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7718for as_dir in $PATH
7719do
7720 IFS=$as_save_IFS
7721 test -z "$as_dir" && as_dir=.
7722 for ac_exec_ext in '' $ac_executable_extensions; do
7723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7724 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7726 break 2
7727 fi
7728done
7729 done
7730IFS=$as_save_IFS
7731
7732fi
7733fi
7734OTOOL=$ac_cv_prog_OTOOL
7735if test -n "$OTOOL"; then
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7737$as_echo "$OTOOL" >&6; }
7738else
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7740$as_echo "no" >&6; }
7741fi
7742
7743
7744fi
7745if test -z "$ac_cv_prog_OTOOL"; then
7746 ac_ct_OTOOL=$OTOOL
7747 # Extract the first word of "otool", so it can be a program name with args.
7748set dummy otool; ac_word=$2
7749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7750$as_echo_n "checking for $ac_word... " >&6; }
7751if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7752 $as_echo_n "(cached) " >&6
7753else
7754 if test -n "$ac_ct_OTOOL"; then
7755 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7756else
7757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758for as_dir in $PATH
7759do
7760 IFS=$as_save_IFS
7761 test -z "$as_dir" && as_dir=.
7762 for ac_exec_ext in '' $ac_executable_extensions; do
7763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7764 ac_cv_prog_ac_ct_OTOOL="otool"
7765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7766 break 2
7767 fi
7768done
7769 done
7770IFS=$as_save_IFS
7771
7772fi
7773fi
7774ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7775if test -n "$ac_ct_OTOOL"; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7777$as_echo "$ac_ct_OTOOL" >&6; }
7778else
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780$as_echo "no" >&6; }
7781fi
7782
7783 if test "x$ac_ct_OTOOL" = x; then
7784 OTOOL=":"
7785 else
7786 case $cross_compiling:$ac_tool_warned in
7787yes:)
7788{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7789$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7790ac_tool_warned=yes ;;
7791esac
7792 OTOOL=$ac_ct_OTOOL
7793 fi
7794else
7795 OTOOL="$ac_cv_prog_OTOOL"
7796fi
7797
7798 if test -n "$ac_tool_prefix"; then
7799 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7800set dummy ${ac_tool_prefix}otool64; ac_word=$2
7801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7802$as_echo_n "checking for $ac_word... " >&6; }
7803if ${ac_cv_prog_OTOOL64+:} false; then :
7804 $as_echo_n "(cached) " >&6
7805else
7806 if test -n "$OTOOL64"; then
7807 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7808else
7809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810for as_dir in $PATH
7811do
7812 IFS=$as_save_IFS
7813 test -z "$as_dir" && as_dir=.
7814 for ac_exec_ext in '' $ac_executable_extensions; do
7815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7816 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7818 break 2
7819 fi
7820done
7821 done
7822IFS=$as_save_IFS
7823
7824fi
7825fi
7826OTOOL64=$ac_cv_prog_OTOOL64
7827if test -n "$OTOOL64"; then
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7829$as_echo "$OTOOL64" >&6; }
7830else
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832$as_echo "no" >&6; }
7833fi
7834
7835
7836fi
7837if test -z "$ac_cv_prog_OTOOL64"; then
7838 ac_ct_OTOOL64=$OTOOL64
7839 # Extract the first word of "otool64", so it can be a program name with args.
7840set dummy otool64; ac_word=$2
7841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7842$as_echo_n "checking for $ac_word... " >&6; }
7843if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7844 $as_echo_n "(cached) " >&6
7845else
7846 if test -n "$ac_ct_OTOOL64"; then
7847 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7848else
7849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850for as_dir in $PATH
7851do
7852 IFS=$as_save_IFS
7853 test -z "$as_dir" && as_dir=.
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7856 ac_cv_prog_ac_ct_OTOOL64="otool64"
7857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7858 break 2
7859 fi
7860done
7861 done
7862IFS=$as_save_IFS
7863
7864fi
7865fi
7866ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7867if test -n "$ac_ct_OTOOL64"; then
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7869$as_echo "$ac_ct_OTOOL64" >&6; }
7870else
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872$as_echo "no" >&6; }
7873fi
7874
7875 if test "x$ac_ct_OTOOL64" = x; then
7876 OTOOL64=":"
7877 else
7878 case $cross_compiling:$ac_tool_warned in
7879yes:)
7880{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7881$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7882ac_tool_warned=yes ;;
7883esac
7884 OTOOL64=$ac_ct_OTOOL64
7885 fi
7886else
7887 OTOOL64="$ac_cv_prog_OTOOL64"
7888fi
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7917$as_echo_n "checking for -single_module linker flag... " >&6; }
7918if ${lt_cv_apple_cc_single_mod+:} false; then :
7919 $as_echo_n "(cached) " >&6
7920else
7921 lt_cv_apple_cc_single_mod=no
7922 if test -z "$LT_MULTI_MODULE"; then
7923 # By default we will add the -single_module flag. You can override
7924 # by either setting the environment variable LT_MULTI_MODULE
7925 # non-empty at configure time, or by adding -multi_module to the
7926 # link flags.
7927 rm -rf libconftest.dylib*
7928 echo "int foo(void){return 1;}" > conftest.c
7929 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7930-dynamiclib -Wl,-single_module conftest.c" >&5
7931 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7932 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7933 _lt_result=$?
7934 # If there is a non-empty error log, and "single_module"
7935 # appears in it, assume the flag caused a linker warning
7936 if test -s conftest.err && $GREP single_module conftest.err; then
7937 cat conftest.err >&5
7938 # Otherwise, if the output was created with a 0 exit code from
7939 # the compiler, it worked.
7940 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7941 lt_cv_apple_cc_single_mod=yes
7942 else
7943 cat conftest.err >&5
7944 fi
7945 rm -rf libconftest.dylib*
7946 rm -f conftest.*
7947 fi
7948fi
7949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7950$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7951
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7953$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7954if ${lt_cv_ld_exported_symbols_list+:} false; then :
7955 $as_echo_n "(cached) " >&6
7956else
7957 lt_cv_ld_exported_symbols_list=no
7958 save_LDFLAGS=$LDFLAGS
7959 echo "_main" > conftest.sym
7960 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962/* end confdefs.h. */
7963
7964int
7965main ()
7966{
7967
7968 ;
7969 return 0;
7970}
7971_ACEOF
7972if ac_fn_c_try_link "$LINENO"; then :
7973 lt_cv_ld_exported_symbols_list=yes
7974else
7975 lt_cv_ld_exported_symbols_list=no
7976fi
7977rm -f core conftest.err conftest.$ac_objext \
7978 conftest$ac_exeext conftest.$ac_ext
7979 LDFLAGS=$save_LDFLAGS
7980
7981fi
7982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7983$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7984
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7986$as_echo_n "checking for -force_load linker flag... " >&6; }
7987if ${lt_cv_ld_force_load+:} false; then :
7988 $as_echo_n "(cached) " >&6
7989else
7990 lt_cv_ld_force_load=no
7991 cat > conftest.c << _LT_EOF
7992int forced_loaded() { return 2;}
7993_LT_EOF
7994 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7995 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7996 echo "$AR cru libconftest.a conftest.o" >&5
7997 $AR cru libconftest.a conftest.o 2>&5
7998 echo "$RANLIB libconftest.a" >&5
7999 $RANLIB libconftest.a 2>&5
8000 cat > conftest.c << _LT_EOF
8001int main() { return 0;}
8002_LT_EOF
8003 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8004 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8005 _lt_result=$?
8006 if test -s conftest.err && $GREP force_load conftest.err; then
8007 cat conftest.err >&5
8008 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8009 lt_cv_ld_force_load=yes
8010 else
8011 cat conftest.err >&5
8012 fi
8013 rm -f conftest.err libconftest.a conftest conftest.c
8014 rm -rf conftest.dSYM
8015
8016fi
8017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8018$as_echo "$lt_cv_ld_force_load" >&6; }
8019 case $host_os in
8020 rhapsody* | darwin1.[012])
8021 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8022 darwin1.*)
8023 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8024 darwin*) # darwin 5.x on
8025 # if running on 10.5 or later, the deployment target defaults
8026 # to the OS version, if on x86, and 10.4, the deployment
8027 # target defaults to 10.4. Don't you love it?
8028 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8029 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8030 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8031 10.[012][,.]*)
8032 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8033 10.*)
8034 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8035 esac
8036 ;;
8037 esac
8038 if test yes = "$lt_cv_apple_cc_single_mod"; then
8039 _lt_dar_single_mod='$single_module'
8040 fi
8041 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8042 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8043 else
8044 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8045 fi
8046 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8047 _lt_dsymutil='~$DSYMUTIL $lib || :'
8048 else
8049 _lt_dsymutil=
8050 fi
8051 ;;
8052 esac
8053
8054# func_munge_path_list VARIABLE PATH
8055# -----------------------------------
8056# VARIABLE is name of variable containing _space_ separated list of
8057# directories to be munged by the contents of PATH, which is string
8058# having a format:
8059# "DIR[:DIR]:"
8060# string "DIR[ DIR]" will be prepended to VARIABLE
8061# ":DIR[:DIR]"
8062# string "DIR[ DIR]" will be appended to VARIABLE
8063# "DIRP[:DIRP]::[DIRA:]DIRA"
8064# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8065# "DIRA[ DIRA]" will be appended to VARIABLE
8066# "DIR[:DIR]"
8067# VARIABLE will be replaced by "DIR[ DIR]"
8068func_munge_path_list ()
8069{
8070 case x$2 in
8071 x)
8072 ;;
8073 *:)
8074 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8075 ;;
8076 x:*)
8077 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8078 ;;
8079 *::*)
8080 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8081 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8082 ;;
8083 *)
8084 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8085 ;;
8086 esac
8087}
8088
8089for ac_header in dlfcn.h
8090do :
8091 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8092"
8093if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8094 cat >>confdefs.h <<_ACEOF
8095#define HAVE_DLFCN_H 1
8096_ACEOF
8097
8098fi
8099
8100done
8101
8102
8103
8104
8105
8106# Set options
8107# Check whether --enable-static was given.
8108if test "${enable_static+set}" = set; then :
8109 enableval=$enable_static; p=${PACKAGE-default}
8110 case $enableval in
8111 yes) enable_static=yes ;;
8112 no) enable_static=no ;;
8113 *)
8114 enable_static=no
8115 # Look at the argument we got. We use all the common list separators.
8116 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8117 for pkg in $enableval; do
8118 IFS=$lt_save_ifs
8119 if test "X$pkg" = "X$p"; then
8120 enable_static=yes
8121 fi
8122 done
8123 IFS=$lt_save_ifs
8124 ;;
8125 esac
8126else
8127 enable_static=no
8128fi
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139 enable_dlopen=no
8140
8141
8142 enable_win32_dll=no
8143
8144
8145 # Check whether --enable-shared was given.
8146if test "${enable_shared+set}" = set; then :
8147 enableval=$enable_shared; p=${PACKAGE-default}
8148 case $enableval in
8149 yes) enable_shared=yes ;;
8150 no) enable_shared=no ;;
8151 *)
8152 enable_shared=no
8153 # Look at the argument we got. We use all the common list separators.
8154 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8155 for pkg in $enableval; do
8156 IFS=$lt_save_ifs
8157 if test "X$pkg" = "X$p"; then
8158 enable_shared=yes
8159 fi
8160 done
8161 IFS=$lt_save_ifs
8162 ;;
8163 esac
8164else
8165 enable_shared=yes
8166fi
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178# Check whether --with-pic was given.
8179if test "${with_pic+set}" = set; then :
8180 withval=$with_pic; lt_p=${PACKAGE-default}
8181 case $withval in
8182 yes|no) pic_mode=$withval ;;
8183 *)
8184 pic_mode=default
8185 # Look at the argument we got. We use all the common list separators.
8186 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8187 for lt_pkg in $withval; do
8188 IFS=$lt_save_ifs
8189 if test "X$lt_pkg" = "X$lt_p"; then
8190 pic_mode=yes
8191 fi
8192 done
8193 IFS=$lt_save_ifs
8194 ;;
8195 esac
8196else
8197 pic_mode=default
8198fi
8199
8200
8201
8202
8203
8204
8205
8206
8207 # Check whether --enable-fast-install was given.
8208if test "${enable_fast_install+set}" = set; then :
8209 enableval=$enable_fast_install; p=${PACKAGE-default}
8210 case $enableval in
8211 yes) enable_fast_install=yes ;;
8212 no) enable_fast_install=no ;;
8213 *)
8214 enable_fast_install=no
8215 # Look at the argument we got. We use all the common list separators.
8216 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8217 for pkg in $enableval; do
8218 IFS=$lt_save_ifs
8219 if test "X$pkg" = "X$p"; then
8220 enable_fast_install=yes
8221 fi
8222 done
8223 IFS=$lt_save_ifs
8224 ;;
8225 esac
8226else
8227 enable_fast_install=yes
8228fi
8229
8230
8231
8232
8233
8234
8235
8236
8237 shared_archive_member_spec=
8238case $host,$enable_shared in
8239power*-*-aix[5-9]*,yes)
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8241$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8242
8243# Check whether --with-aix-soname was given.
8244if test "${with_aix_soname+set}" = set; then :
8245 withval=$with_aix_soname; case $withval in
8246 aix|svr4|both)
8247 ;;
8248 *)
8249 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8250 ;;
8251 esac
8252 lt_cv_with_aix_soname=$with_aix_soname
8253else
8254 if ${lt_cv_with_aix_soname+:} false; then :
8255 $as_echo_n "(cached) " >&6
8256else
8257 lt_cv_with_aix_soname=aix
8258fi
8259
8260 with_aix_soname=$lt_cv_with_aix_soname
8261fi
8262
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8264$as_echo "$with_aix_soname" >&6; }
8265 if test aix != "$with_aix_soname"; then
8266 # For the AIX way of multilib, we name the shared archive member
8267 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8268 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8269 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8270 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8271 if test 64 = "${OBJECT_MODE-32}"; then
8272 shared_archive_member_spec=shr_64
8273 else
8274 shared_archive_member_spec=shr
8275 fi
8276 fi
8277 ;;
8278*)
8279 with_aix_soname=aix
8280 ;;
8281esac
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292# This can be used to rebuild libtool when needed
8293LIBTOOL_DEPS=$ltmain
8294
8295# Always use our own libtool.
8296LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327test -z "$LN_S" && LN_S="ln -s"
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342if test -n "${ZSH_VERSION+set}"; then
8343 setopt NO_GLOB_SUBST
8344fi
8345
8346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8347$as_echo_n "checking for objdir... " >&6; }
8348if ${lt_cv_objdir+:} false; then :
8349 $as_echo_n "(cached) " >&6
8350else
8351 rm -f .libs 2>/dev/null
8352mkdir .libs 2>/dev/null
8353if test -d .libs; then
8354 lt_cv_objdir=.libs
8355else
8356 # MS-DOS does not allow filenames that begin with a dot.
8357 lt_cv_objdir=_libs
8358fi
8359rmdir .libs 2>/dev/null
8360fi
8361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8362$as_echo "$lt_cv_objdir" >&6; }
8363objdir=$lt_cv_objdir
8364
8365
8366
8367
8368
8369cat >>confdefs.h <<_ACEOF
8370#define LT_OBJDIR "$lt_cv_objdir/"
8371_ACEOF
8372
8373
8374
8375
8376case $host_os in
8377aix3*)
8378 # AIX sometimes has problems with the GCC collect2 program. For some
8379 # reason, if we set the COLLECT_NAMES environment variable, the problems
8380 # vanish in a puff of smoke.
8381 if test set != "${COLLECT_NAMES+set}"; then
8382 COLLECT_NAMES=
8383 export COLLECT_NAMES
8384 fi
8385 ;;
8386esac
8387
8388# Global variables:
8389ofile=libtool
8390can_build_shared=yes
8391
8392# All known linkers require a '.a' archive for static linking (except MSVC,
8393# which needs '.lib').
8394libext=a
8395
8396with_gnu_ld=$lt_cv_prog_gnu_ld
8397
8398old_CC=$CC
8399old_CFLAGS=$CFLAGS
8400
8401# Set sane defaults for various variables
8402test -z "$CC" && CC=cc
8403test -z "$LTCC" && LTCC=$CC
8404test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8405test -z "$LD" && LD=ld
8406test -z "$ac_objext" && ac_objext=o
8407
8408func_cc_basename $compiler
8409cc_basename=$func_cc_basename_result
8410
8411
8412# Only perform the check for file, if the check method requires it
8413test -z "$MAGIC_CMD" && MAGIC_CMD=file
8414case $deplibs_check_method in
8415file_magic*)
8416 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8418$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8419if ${lt_cv_path_MAGIC_CMD+:} false; then :
8420 $as_echo_n "(cached) " >&6
8421else
8422 case $MAGIC_CMD in
8423[\\/*] | ?:[\\/]*)
8424 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8425 ;;
8426*)
8427 lt_save_MAGIC_CMD=$MAGIC_CMD
8428 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8429 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8430 for ac_dir in $ac_dummy; do
8431 IFS=$lt_save_ifs
8432 test -z "$ac_dir" && ac_dir=.
8433 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8434 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8435 if test -n "$file_magic_test_file"; then
8436 case $deplibs_check_method in
8437 "file_magic "*)
8438 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8439 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8440 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8441 $EGREP "$file_magic_regex" > /dev/null; then
8442 :
8443 else
8444 cat <<_LT_EOF 1>&2
8445
8446*** Warning: the command libtool uses to detect shared libraries,
8447*** $file_magic_cmd, produces output that libtool cannot recognize.
8448*** The result is that libtool may fail to recognize shared libraries
8449*** as such. This will affect the creation of libtool libraries that
8450*** depend on shared libraries, but programs linked with such libtool
8451*** libraries will work regardless of this problem. Nevertheless, you
8452*** may want to report the problem to your system manager and/or to
8453*** bug-libtool@gnu.org
8454
8455_LT_EOF
8456 fi ;;
8457 esac
8458 fi
8459 break
8460 fi
8461 done
8462 IFS=$lt_save_ifs
8463 MAGIC_CMD=$lt_save_MAGIC_CMD
8464 ;;
8465esac
8466fi
8467
8468MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8469if test -n "$MAGIC_CMD"; then
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8471$as_echo "$MAGIC_CMD" >&6; }
8472else
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8474$as_echo "no" >&6; }
8475fi
8476
8477
8478
8479
8480
8481if test -z "$lt_cv_path_MAGIC_CMD"; then
8482 if test -n "$ac_tool_prefix"; then
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8484$as_echo_n "checking for file... " >&6; }
8485if ${lt_cv_path_MAGIC_CMD+:} false; then :
8486 $as_echo_n "(cached) " >&6
8487else
8488 case $MAGIC_CMD in
8489[\\/*] | ?:[\\/]*)
8490 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8491 ;;
8492*)
8493 lt_save_MAGIC_CMD=$MAGIC_CMD
8494 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8495 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8496 for ac_dir in $ac_dummy; do
8497 IFS=$lt_save_ifs
8498 test -z "$ac_dir" && ac_dir=.
8499 if test -f "$ac_dir/file"; then
8500 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8501 if test -n "$file_magic_test_file"; then
8502 case $deplibs_check_method in
8503 "file_magic "*)
8504 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8505 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8506 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8507 $EGREP "$file_magic_regex" > /dev/null; then
8508 :
8509 else
8510 cat <<_LT_EOF 1>&2
8511
8512*** Warning: the command libtool uses to detect shared libraries,
8513*** $file_magic_cmd, produces output that libtool cannot recognize.
8514*** The result is that libtool may fail to recognize shared libraries
8515*** as such. This will affect the creation of libtool libraries that
8516*** depend on shared libraries, but programs linked with such libtool
8517*** libraries will work regardless of this problem. Nevertheless, you
8518*** may want to report the problem to your system manager and/or to
8519*** bug-libtool@gnu.org
8520
8521_LT_EOF
8522 fi ;;
8523 esac
8524 fi
8525 break
8526 fi
8527 done
8528 IFS=$lt_save_ifs
8529 MAGIC_CMD=$lt_save_MAGIC_CMD
8530 ;;
8531esac
8532fi
8533
8534MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8535if test -n "$MAGIC_CMD"; then
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8537$as_echo "$MAGIC_CMD" >&6; }
8538else
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8540$as_echo "no" >&6; }
8541fi
8542
8543
8544 else
8545 MAGIC_CMD=:
8546 fi
8547fi
8548
8549 fi
8550 ;;
8551esac
8552
8553# Use C for the default configuration in the libtool script
8554
8555lt_save_CC=$CC
8556ac_ext=c
8557ac_cpp='$CPP $CPPFLAGS'
8558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8560ac_compiler_gnu=$ac_cv_c_compiler_gnu
8561
8562
8563# Source file extension for C test sources.
8564ac_ext=c
8565
8566# Object file extension for compiled C test sources.
8567objext=o
8568objext=$objext
8569
8570# Code to be used in simple compile tests
8571lt_simple_compile_test_code="int some_variable = 0;"
8572
8573# Code to be used in simple link tests
8574lt_simple_link_test_code='int main(){return(0);}'
8575
8576
8577
8578
8579
8580
8581
8582# If no C compiler was specified, use CC.
8583LTCC=${LTCC-"$CC"}
8584
8585# If no C compiler flags were specified, use CFLAGS.
8586LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8587
8588# Allow CC to be a program name with arguments.
8589compiler=$CC
8590
8591# Save the default compiler, since it gets overwritten when the other
8592# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8593compiler_DEFAULT=$CC
8594
8595# save warnings/boilerplate of simple test code
8596ac_outfile=conftest.$ac_objext
8597echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8598eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8599_lt_compiler_boilerplate=`cat conftest.err`
8600$RM conftest*
8601
8602ac_outfile=conftest.$ac_objext
8603echo "$lt_simple_link_test_code" >conftest.$ac_ext
8604eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8605_lt_linker_boilerplate=`cat conftest.err`
8606$RM -r conftest*
8607
8608
8609## CAVEAT EMPTOR:
8610## There is no encapsulation within the following macros, do not change
8611## the running order or otherwise move them around unless you know exactly
8612## what you are doing...
8613if test -n "$compiler"; then
8614
8615lt_prog_compiler_no_builtin_flag=
8616
8617if test yes = "$GCC"; then
8618 case $cc_basename in
8619 nvcc*)
8620 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8621 *)
8622 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8623 esac
8624
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8626$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8627if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8628 $as_echo_n "(cached) " >&6
8629else
8630 lt_cv_prog_compiler_rtti_exceptions=no
8631 ac_outfile=conftest.$ac_objext
8632 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8633 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8634 # Insert the option either (1) after the last *FLAGS variable, or
8635 # (2) before a word containing "conftest.", or (3) at the end.
8636 # Note that $ac_compile itself does not contain backslashes and begins
8637 # with a dollar sign (not a hyphen), so the echo should work correctly.
8638 # The option is referenced via a variable to avoid confusing sed.
8639 lt_compile=`echo "$ac_compile" | $SED \
8640 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8641 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8642 -e 's:$: $lt_compiler_flag:'`
8643 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8644 (eval "$lt_compile" 2>conftest.err)
8645 ac_status=$?
8646 cat conftest.err >&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 if (exit $ac_status) && test -s "$ac_outfile"; then
8649 # The compiler can only warn and ignore the option if not recognized
8650 # So say no if there are warnings other than the usual output.
8651 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8652 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8653 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8654 lt_cv_prog_compiler_rtti_exceptions=yes
8655 fi
8656 fi
8657 $RM conftest*
8658
8659fi
8660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8661$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8662
8663if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8664 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8665else
8666 :
8667fi
8668
8669fi
8670
8671
8672
8673
8674
8675
8676 lt_prog_compiler_wl=
8677lt_prog_compiler_pic=
8678lt_prog_compiler_static=
8679
8680
8681 if test yes = "$GCC"; then
8682 lt_prog_compiler_wl='-Wl,'
8683 lt_prog_compiler_static='-static'
8684
8685 case $host_os in
8686 aix*)
8687 # All AIX code is PIC.
8688 if test ia64 = "$host_cpu"; then
8689 # AIX 5 now supports IA64 processor
8690 lt_prog_compiler_static='-Bstatic'
8691 fi
8692 lt_prog_compiler_pic='-fPIC'
8693 ;;
8694
8695 amigaos*)
8696 case $host_cpu in
8697 powerpc)
8698 # see comment about AmigaOS4 .so support
8699 lt_prog_compiler_pic='-fPIC'
8700 ;;
8701 m68k)
8702 # FIXME: we need at least 68020 code to build shared libraries, but
8703 # adding the '-m68020' flag to GCC prevents building anything better,
8704 # like '-m68040'.
8705 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8706 ;;
8707 esac
8708 ;;
8709
8710 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8711 # PIC is the default for these OSes.
8712 ;;
8713
8714 mingw* | cygwin* | pw32* | os2* | cegcc*)
8715 # This hack is so that the source file can tell whether it is being
8716 # built for inclusion in a dll (and should export symbols for example).
8717 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8718 # (--disable-auto-import) libraries
8719 lt_prog_compiler_pic='-DDLL_EXPORT'
8720 case $host_os in
8721 os2*)
8722 lt_prog_compiler_static='$wl-static'
8723 ;;
8724 esac
8725 ;;
8726
8727 darwin* | rhapsody*)
8728 # PIC is the default on this platform
8729 # Common symbols not allowed in MH_DYLIB files
8730 lt_prog_compiler_pic='-fno-common'
8731 ;;
8732
8733 haiku*)
8734 # PIC is the default for Haiku.
8735 # The "-static" flag exists, but is broken.
8736 lt_prog_compiler_static=
8737 ;;
8738
8739 hpux*)
8740 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8741 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8742 # sets the default TLS model and affects inlining.
8743 case $host_cpu in
8744 hppa*64*)
8745 # +Z the default
8746 ;;
8747 *)
8748 lt_prog_compiler_pic='-fPIC'
8749 ;;
8750 esac
8751 ;;
8752
8753 interix[3-9]*)
8754 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8755 # Instead, we relocate shared libraries at runtime.
8756 ;;
8757
8758 msdosdjgpp*)
8759 # Just because we use GCC doesn't mean we suddenly get shared libraries
8760 # on systems that don't support them.
8761 lt_prog_compiler_can_build_shared=no
8762 enable_shared=no
8763 ;;
8764
8765 *nto* | *qnx*)
8766 # QNX uses GNU C++, but need to define -shared option too, otherwise
8767 # it will coredump.
8768 lt_prog_compiler_pic='-fPIC -shared'
8769 ;;
8770
8771 sysv4*MP*)
8772 if test -d /usr/nec; then
8773 lt_prog_compiler_pic=-Kconform_pic
8774 fi
8775 ;;
8776
8777 *)
8778 lt_prog_compiler_pic='-fPIC'
8779 ;;
8780 esac
8781
8782 case $cc_basename in
8783 nvcc*) # Cuda Compiler Driver 2.2
8784 lt_prog_compiler_wl='-Xlinker '
8785 if test -n "$lt_prog_compiler_pic"; then
8786 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8787 fi
8788 ;;
8789 esac
8790 else
8791 # PORTME Check for flag to pass linker flags through the system compiler.
8792 case $host_os in
8793 aix*)
8794 lt_prog_compiler_wl='-Wl,'
8795 if test ia64 = "$host_cpu"; then
8796 # AIX 5 now supports IA64 processor
8797 lt_prog_compiler_static='-Bstatic'
8798 else
8799 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8800 fi
8801 ;;
8802
8803 darwin* | rhapsody*)
8804 # PIC is the default on this platform
8805 # Common symbols not allowed in MH_DYLIB files
8806 lt_prog_compiler_pic='-fno-common'
8807 case $cc_basename in
8808 nagfor*)
8809 # NAG Fortran compiler
8810 lt_prog_compiler_wl='-Wl,-Wl,,'
8811 lt_prog_compiler_pic='-PIC'
8812 lt_prog_compiler_static='-Bstatic'
8813 ;;
8814 esac
8815 ;;
8816
8817 mingw* | cygwin* | pw32* | os2* | cegcc*)
8818 # This hack is so that the source file can tell whether it is being
8819 # built for inclusion in a dll (and should export symbols for example).
8820 lt_prog_compiler_pic='-DDLL_EXPORT'
8821 case $host_os in
8822 os2*)
8823 lt_prog_compiler_static='$wl-static'
8824 ;;
8825 esac
8826 ;;
8827
8828 hpux9* | hpux10* | hpux11*)
8829 lt_prog_compiler_wl='-Wl,'
8830 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8831 # not for PA HP-UX.
8832 case $host_cpu in
8833 hppa*64*|ia64*)
8834 # +Z the default
8835 ;;
8836 *)
8837 lt_prog_compiler_pic='+Z'
8838 ;;
8839 esac
8840 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8841 lt_prog_compiler_static='$wl-a ${wl}archive'
8842 ;;
8843
8844 irix5* | irix6* | nonstopux*)
8845 lt_prog_compiler_wl='-Wl,'
8846 # PIC (with -KPIC) is the default.
8847 lt_prog_compiler_static='-non_shared'
8848 ;;
8849
8850 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8851 case $cc_basename in
8852 # old Intel for x86_64, which still supported -KPIC.
8853 ecc*)
8854 lt_prog_compiler_wl='-Wl,'
8855 lt_prog_compiler_pic='-KPIC'
8856 lt_prog_compiler_static='-static'
8857 ;;
8858 # icc used to be incompatible with GCC.
8859 # ICC 10 doesn't accept -KPIC any more.
8860 icc* | ifort*)
8861 lt_prog_compiler_wl='-Wl,'
8862 lt_prog_compiler_pic='-fPIC'
8863 lt_prog_compiler_static='-static'
8864 ;;
8865 # Lahey Fortran 8.1.
8866 lf95*)
8867 lt_prog_compiler_wl='-Wl,'
8868 lt_prog_compiler_pic='--shared'
8869 lt_prog_compiler_static='--static'
8870 ;;
8871 nagfor*)
8872 # NAG Fortran compiler
8873 lt_prog_compiler_wl='-Wl,-Wl,,'
8874 lt_prog_compiler_pic='-PIC'
8875 lt_prog_compiler_static='-Bstatic'
8876 ;;
8877 tcc*)
8878 # Fabrice Bellard et al's Tiny C Compiler
8879 lt_prog_compiler_wl='-Wl,'
8880 lt_prog_compiler_pic='-fPIC'
8881 lt_prog_compiler_static='-static'
8882 ;;
8883 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8884 # Portland Group compilers (*not* the Pentium gcc compiler,
8885 # which looks to be a dead project)
8886 lt_prog_compiler_wl='-Wl,'
8887 lt_prog_compiler_pic='-fpic'
8888 lt_prog_compiler_static='-Bstatic'
8889 ;;
8890 ccc*)
8891 lt_prog_compiler_wl='-Wl,'
8892 # All Alpha code is PIC.
8893 lt_prog_compiler_static='-non_shared'
8894 ;;
8895 xl* | bgxl* | bgf* | mpixl*)
8896 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8897 lt_prog_compiler_wl='-Wl,'
8898 lt_prog_compiler_pic='-qpic'
8899 lt_prog_compiler_static='-qstaticlink'
8900 ;;
8901 *)
8902 case `$CC -V 2>&1 | sed 5q` in
8903 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8904 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8905 lt_prog_compiler_pic='-KPIC'
8906 lt_prog_compiler_static='-Bstatic'
8907 lt_prog_compiler_wl=''
8908 ;;
8909 *Sun\ F* | *Sun*Fortran*)
8910 lt_prog_compiler_pic='-KPIC'
8911 lt_prog_compiler_static='-Bstatic'
8912 lt_prog_compiler_wl='-Qoption ld '
8913 ;;
8914 *Sun\ C*)
8915 # Sun C 5.9
8916 lt_prog_compiler_pic='-KPIC'
8917 lt_prog_compiler_static='-Bstatic'
8918 lt_prog_compiler_wl='-Wl,'
8919 ;;
8920 *Intel*\ [CF]*Compiler*)
8921 lt_prog_compiler_wl='-Wl,'
8922 lt_prog_compiler_pic='-fPIC'
8923 lt_prog_compiler_static='-static'
8924 ;;
8925 *Portland\ Group*)
8926 lt_prog_compiler_wl='-Wl,'
8927 lt_prog_compiler_pic='-fpic'
8928 lt_prog_compiler_static='-Bstatic'
8929 ;;
8930 esac
8931 ;;
8932 esac
8933 ;;
8934
8935 newsos6)
8936 lt_prog_compiler_pic='-KPIC'
8937 lt_prog_compiler_static='-Bstatic'
8938 ;;
8939
8940 *nto* | *qnx*)
8941 # QNX uses GNU C++, but need to define -shared option too, otherwise
8942 # it will coredump.
8943 lt_prog_compiler_pic='-fPIC -shared'
8944 ;;
8945
8946 osf3* | osf4* | osf5*)
8947 lt_prog_compiler_wl='-Wl,'
8948 # All OSF/1 code is PIC.
8949 lt_prog_compiler_static='-non_shared'
8950 ;;
8951
8952 rdos*)
8953 lt_prog_compiler_static='-non_shared'
8954 ;;
8955
8956 solaris*)
8957 lt_prog_compiler_pic='-KPIC'
8958 lt_prog_compiler_static='-Bstatic'
8959 case $cc_basename in
8960 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8961 lt_prog_compiler_wl='-Qoption ld ';;
8962 *)
8963 lt_prog_compiler_wl='-Wl,';;
8964 esac
8965 ;;
8966
8967 sunos4*)
8968 lt_prog_compiler_wl='-Qoption ld '
8969 lt_prog_compiler_pic='-PIC'
8970 lt_prog_compiler_static='-Bstatic'
8971 ;;
8972
8973 sysv4 | sysv4.2uw2* | sysv4.3*)
8974 lt_prog_compiler_wl='-Wl,'
8975 lt_prog_compiler_pic='-KPIC'
8976 lt_prog_compiler_static='-Bstatic'
8977 ;;
8978
8979 sysv4*MP*)
8980 if test -d /usr/nec; then
8981 lt_prog_compiler_pic='-Kconform_pic'
8982 lt_prog_compiler_static='-Bstatic'
8983 fi
8984 ;;
8985
8986 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8987 lt_prog_compiler_wl='-Wl,'
8988 lt_prog_compiler_pic='-KPIC'
8989 lt_prog_compiler_static='-Bstatic'
8990 ;;
8991
8992 unicos*)
8993 lt_prog_compiler_wl='-Wl,'
8994 lt_prog_compiler_can_build_shared=no
8995 ;;
8996
8997 uts4*)
8998 lt_prog_compiler_pic='-pic'
8999 lt_prog_compiler_static='-Bstatic'
9000 ;;
9001
9002 *)
9003 lt_prog_compiler_can_build_shared=no
9004 ;;
9005 esac
9006 fi
9007
9008case $host_os in
9009 # For platforms that do not support PIC, -DPIC is meaningless:
9010 *djgpp*)
9011 lt_prog_compiler_pic=
9012 ;;
9013 *)
9014 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9015 ;;
9016esac
9017
9018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9019$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9020if ${lt_cv_prog_compiler_pic+:} false; then :
9021 $as_echo_n "(cached) " >&6
9022else
9023 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9024fi
9025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9026$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9027lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9028
9029#
9030# Check to make sure the PIC flag actually works.
9031#
9032if test -n "$lt_prog_compiler_pic"; then
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9034$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9035if ${lt_cv_prog_compiler_pic_works+:} false; then :
9036 $as_echo_n "(cached) " >&6
9037else
9038 lt_cv_prog_compiler_pic_works=no
9039 ac_outfile=conftest.$ac_objext
9040 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9041 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9042 # Insert the option either (1) after the last *FLAGS variable, or
9043 # (2) before a word containing "conftest.", or (3) at the end.
9044 # Note that $ac_compile itself does not contain backslashes and begins
9045 # with a dollar sign (not a hyphen), so the echo should work correctly.
9046 # The option is referenced via a variable to avoid confusing sed.
9047 lt_compile=`echo "$ac_compile" | $SED \
9048 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9049 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9050 -e 's:$: $lt_compiler_flag:'`
9051 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9052 (eval "$lt_compile" 2>conftest.err)
9053 ac_status=$?
9054 cat conftest.err >&5
9055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056 if (exit $ac_status) && test -s "$ac_outfile"; then
9057 # The compiler can only warn and ignore the option if not recognized
9058 # So say no if there are warnings other than the usual output.
9059 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9060 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9061 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9062 lt_cv_prog_compiler_pic_works=yes
9063 fi
9064 fi
9065 $RM conftest*
9066
9067fi
9068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9069$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9070
9071if test yes = "$lt_cv_prog_compiler_pic_works"; then
9072 case $lt_prog_compiler_pic in
9073 "" | " "*) ;;
9074 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9075 esac
9076else
9077 lt_prog_compiler_pic=
9078 lt_prog_compiler_can_build_shared=no
9079fi
9080
9081fi
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093#
9094# Check to make sure the static flag actually works.
9095#
9096wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9098$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9099if ${lt_cv_prog_compiler_static_works+:} false; then :
9100 $as_echo_n "(cached) " >&6
9101else
9102 lt_cv_prog_compiler_static_works=no
9103 save_LDFLAGS=$LDFLAGS
9104 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9105 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9106 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9107 # The linker can only warn and ignore the option if not recognized
9108 # So say no if there are warnings
9109 if test -s conftest.err; then
9110 # Append any errors to the config.log.
9111 cat conftest.err 1>&5
9112 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9113 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9114 if diff conftest.exp conftest.er2 >/dev/null; then
9115 lt_cv_prog_compiler_static_works=yes
9116 fi
9117 else
9118 lt_cv_prog_compiler_static_works=yes
9119 fi
9120 fi
9121 $RM -r conftest*
9122 LDFLAGS=$save_LDFLAGS
9123
9124fi
9125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9126$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9127
9128if test yes = "$lt_cv_prog_compiler_static_works"; then
9129 :
9130else
9131 lt_prog_compiler_static=
9132fi
9133
9134
9135
9136
9137
9138
9139
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9141$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9142if ${lt_cv_prog_compiler_c_o+:} false; then :
9143 $as_echo_n "(cached) " >&6
9144else
9145 lt_cv_prog_compiler_c_o=no
9146 $RM -r conftest 2>/dev/null
9147 mkdir conftest
9148 cd conftest
9149 mkdir out
9150 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9151
9152 lt_compiler_flag="-o out/conftest2.$ac_objext"
9153 # Insert the option either (1) after the last *FLAGS variable, or
9154 # (2) before a word containing "conftest.", or (3) at the end.
9155 # Note that $ac_compile itself does not contain backslashes and begins
9156 # with a dollar sign (not a hyphen), so the echo should work correctly.
9157 lt_compile=`echo "$ac_compile" | $SED \
9158 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9159 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9160 -e 's:$: $lt_compiler_flag:'`
9161 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9162 (eval "$lt_compile" 2>out/conftest.err)
9163 ac_status=$?
9164 cat out/conftest.err >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9167 then
9168 # The compiler can only warn and ignore the option if not recognized
9169 # So say no if there are warnings
9170 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9171 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9172 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9173 lt_cv_prog_compiler_c_o=yes
9174 fi
9175 fi
9176 chmod u+w . 2>&5
9177 $RM conftest*
9178 # SGI C++ compiler will create directory out/ii_files/ for
9179 # template instantiation
9180 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9181 $RM out/* && rmdir out
9182 cd ..
9183 $RM -r conftest
9184 $RM conftest*
9185
9186fi
9187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9188$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9189
9190
9191
9192
9193
9194
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9196$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9197if ${lt_cv_prog_compiler_c_o+:} false; then :
9198 $as_echo_n "(cached) " >&6
9199else
9200 lt_cv_prog_compiler_c_o=no
9201 $RM -r conftest 2>/dev/null
9202 mkdir conftest
9203 cd conftest
9204 mkdir out
9205 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9206
9207 lt_compiler_flag="-o out/conftest2.$ac_objext"
9208 # Insert the option either (1) after the last *FLAGS variable, or
9209 # (2) before a word containing "conftest.", or (3) at the end.
9210 # Note that $ac_compile itself does not contain backslashes and begins
9211 # with a dollar sign (not a hyphen), so the echo should work correctly.
9212 lt_compile=`echo "$ac_compile" | $SED \
9213 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9214 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9215 -e 's:$: $lt_compiler_flag:'`
9216 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9217 (eval "$lt_compile" 2>out/conftest.err)
9218 ac_status=$?
9219 cat out/conftest.err >&5
9220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9221 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9222 then
9223 # The compiler can only warn and ignore the option if not recognized
9224 # So say no if there are warnings
9225 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9226 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9227 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9228 lt_cv_prog_compiler_c_o=yes
9229 fi
9230 fi
9231 chmod u+w . 2>&5
9232 $RM conftest*
9233 # SGI C++ compiler will create directory out/ii_files/ for
9234 # template instantiation
9235 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9236 $RM out/* && rmdir out
9237 cd ..
9238 $RM -r conftest
9239 $RM conftest*
9240
9241fi
9242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9243$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9244
9245
9246
9247
9248hard_links=nottested
9249if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9250 # do not overwrite the value of need_locks provided by the user
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9252$as_echo_n "checking if we can lock with hard links... " >&6; }
9253 hard_links=yes
9254 $RM conftest*
9255 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9256 touch conftest.a
9257 ln conftest.a conftest.b 2>&5 || hard_links=no
9258 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9260$as_echo "$hard_links" >&6; }
9261 if test no = "$hard_links"; then
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9263$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9264 need_locks=warn
9265 fi
9266else
9267 need_locks=no
9268fi
9269
9270
9271
9272
9273
9274
9275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9276$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9277
9278 runpath_var=
9279 allow_undefined_flag=
9280 always_export_symbols=no
9281 archive_cmds=
9282 archive_expsym_cmds=
9283 compiler_needs_object=no
9284 enable_shared_with_static_runtimes=no
9285 export_dynamic_flag_spec=
9286 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9287 hardcode_automatic=no
9288 hardcode_direct=no
9289 hardcode_direct_absolute=no
9290 hardcode_libdir_flag_spec=
9291 hardcode_libdir_separator=
9292 hardcode_minus_L=no
9293 hardcode_shlibpath_var=unsupported
9294 inherit_rpath=no
9295 link_all_deplibs=unknown
9296 module_cmds=
9297 module_expsym_cmds=
9298 old_archive_from_new_cmds=
9299 old_archive_from_expsyms_cmds=
9300 thread_safe_flag_spec=
9301 whole_archive_flag_spec=
9302 # include_expsyms should be a list of space-separated symbols to be *always*
9303 # included in the symbol list
9304 include_expsyms=
9305 # exclude_expsyms can be an extended regexp of symbols to exclude
9306 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9307 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9308 # as well as any symbol that contains 'd'.
9309 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9310 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9311 # platforms (ab)use it in PIC code, but their linkers get confused if
9312 # the symbol is explicitly referenced. Since portable code cannot
9313 # rely on this symbol name, it's probably fine to never include it in
9314 # preloaded symbol tables.
9315 # Exclude shared library initialization/finalization symbols.
9316 extract_expsyms_cmds=
9317
9318 case $host_os in
9319 cygwin* | mingw* | pw32* | cegcc*)
9320 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9321 # When not using gcc, we currently assume that we are using
9322 # Microsoft Visual C++.
9323 if test yes != "$GCC"; then
9324 with_gnu_ld=no
9325 fi
9326 ;;
9327 interix*)
9328 # we just hope/assume this is gcc and not c89 (= MSVC++)
9329 with_gnu_ld=yes
9330 ;;
9331 openbsd* | bitrig*)
9332 with_gnu_ld=no
9333 ;;
9334 esac
9335
9336 ld_shlibs=yes
9337
9338 # On some targets, GNU ld is compatible enough with the native linker
9339 # that we're better off using the native interface for both.
9340 lt_use_gnu_ld_interface=no
9341 if test yes = "$with_gnu_ld"; then
9342 case $host_os in
9343 aix*)
9344 # The AIX port of GNU ld has always aspired to compatibility
9345 # with the native linker. However, as the warning in the GNU ld
9346 # block says, versions before 2.19.5* couldn't really create working
9347 # shared libraries, regardless of the interface used.
9348 case `$LD -v 2>&1` in
9349 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9350 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9351 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9352 *)
9353 lt_use_gnu_ld_interface=yes
9354 ;;
9355 esac
9356 ;;
9357 *)
9358 lt_use_gnu_ld_interface=yes
9359 ;;
9360 esac
9361 fi
9362
9363 if test yes = "$lt_use_gnu_ld_interface"; then
9364 # If archive_cmds runs LD, not CC, wlarc should be empty
9365 wlarc='$wl'
9366
9367 # Set some defaults for GNU ld with shared library support. These
9368 # are reset later if shared libraries are not supported. Putting them
9369 # here allows them to be overridden if necessary.
9370 runpath_var=LD_RUN_PATH
9371 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9372 export_dynamic_flag_spec='$wl--export-dynamic'
9373 # ancient GNU ld didn't support --whole-archive et. al.
9374 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9375 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9376 else
9377 whole_archive_flag_spec=
9378 fi
9379 supports_anon_versioning=no
9380 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9381 *GNU\ gold*) supports_anon_versioning=yes ;;
9382 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9383 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9384 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9385 *\ 2.11.*) ;; # other 2.11 versions
9386 *) supports_anon_versioning=yes ;;
9387 esac
9388
9389 # See if GNU ld supports shared libraries.
9390 case $host_os in
9391 aix[3-9]*)
9392 # On AIX/PPC, the GNU linker is very broken
9393 if test ia64 != "$host_cpu"; then
9394 ld_shlibs=no
9395 cat <<_LT_EOF 1>&2
9396
9397*** Warning: the GNU linker, at least up to release 2.19, is reported
9398*** to be unable to reliably create shared libraries on AIX.
9399*** Therefore, libtool is disabling shared libraries support. If you
9400*** really care for shared libraries, you may want to install binutils
9401*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9402*** You will then need to restart the configuration process.
9403
9404_LT_EOF
9405 fi
9406 ;;
9407
9408 amigaos*)
9409 case $host_cpu in
9410 powerpc)
9411 # see comment about AmigaOS4 .so support
9412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9413 archive_expsym_cmds=''
9414 ;;
9415 m68k)
9416 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)'
9417 hardcode_libdir_flag_spec='-L$libdir'
9418 hardcode_minus_L=yes
9419 ;;
9420 esac
9421 ;;
9422
9423 beos*)
9424 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9425 allow_undefined_flag=unsupported
9426 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9427 # support --undefined. This deserves some investigation. FIXME
9428 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9429 else
9430 ld_shlibs=no
9431 fi
9432 ;;
9433
9434 cygwin* | mingw* | pw32* | cegcc*)
9435 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9436 # as there is no search path for DLLs.
9437 hardcode_libdir_flag_spec='-L$libdir'
9438 export_dynamic_flag_spec='$wl--export-all-symbols'
9439 allow_undefined_flag=unsupported
9440 always_export_symbols=no
9441 enable_shared_with_static_runtimes=yes
9442 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9443 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9444
9445 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9446 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9447 # If the export-symbols file already is a .def file, use it as
9448 # is; otherwise, prepend EXPORTS...
9449 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9450 cp $export_symbols $output_objdir/$soname.def;
9451 else
9452 echo EXPORTS > $output_objdir/$soname.def;
9453 cat $export_symbols >> $output_objdir/$soname.def;
9454 fi~
9455 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9456 else
9457 ld_shlibs=no
9458 fi
9459 ;;
9460
9461 haiku*)
9462 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9463 link_all_deplibs=yes
9464 ;;
9465
9466 os2*)
9467 hardcode_libdir_flag_spec='-L$libdir'
9468 hardcode_minus_L=yes
9469 allow_undefined_flag=unsupported
9470 shrext_cmds=.dll
9471 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9472 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9473 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9474 $ECHO EXPORTS >> $output_objdir/$libname.def~
9475 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9476 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9477 emximp -o $lib $output_objdir/$libname.def'
9478 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9479 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9480 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9481 $ECHO EXPORTS >> $output_objdir/$libname.def~
9482 prefix_cmds="$SED"~
9483 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9484 prefix_cmds="$prefix_cmds -e 1d";
9485 fi~
9486 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9487 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9488 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9489 emximp -o $lib $output_objdir/$libname.def'
9490 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9491 enable_shared_with_static_runtimes=yes
9492 ;;
9493
9494 interix[3-9]*)
9495 hardcode_direct=no
9496 hardcode_shlibpath_var=no
9497 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9498 export_dynamic_flag_spec='$wl-E'
9499 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9500 # Instead, shared libraries are loaded at an image base (0x10000000 by
9501 # default) and relocated if they conflict, which is a slow very memory
9502 # consuming and fragmenting process. To avoid this, we pick a random,
9503 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9504 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9505 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9506 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'
9507 ;;
9508
9509 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9510 tmp_diet=no
9511 if test linux-dietlibc = "$host_os"; then
9512 case $cc_basename in
9513 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9514 esac
9515 fi
9516 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9517 && test no = "$tmp_diet"
9518 then
9519 tmp_addflag=' $pic_flag'
9520 tmp_sharedflag='-shared'
9521 case $cc_basename,$host_cpu in
9522 pgcc*) # Portland Group C compiler
9523 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'
9524 tmp_addflag=' $pic_flag'
9525 ;;
9526 pgf77* | pgf90* | pgf95* | pgfortran*)
9527 # Portland Group f77 and f90 compilers
9528 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'
9529 tmp_addflag=' $pic_flag -Mnomain' ;;
9530 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9531 tmp_addflag=' -i_dynamic' ;;
9532 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9533 tmp_addflag=' -i_dynamic -nofor_main' ;;
9534 ifc* | ifort*) # Intel Fortran compiler
9535 tmp_addflag=' -nofor_main' ;;
9536 lf95*) # Lahey Fortran 8.1
9537 whole_archive_flag_spec=
9538 tmp_sharedflag='--shared' ;;
9539 nagfor*) # NAGFOR 5.3
9540 tmp_sharedflag='-Wl,-shared' ;;
9541 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9542 tmp_sharedflag='-qmkshrobj'
9543 tmp_addflag= ;;
9544 nvcc*) # Cuda Compiler Driver 2.2
9545 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'
9546 compiler_needs_object=yes
9547 ;;
9548 esac
9549 case `$CC -V 2>&1 | sed 5q` in
9550 *Sun\ C*) # Sun C 5.9
9551 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'
9552 compiler_needs_object=yes
9553 tmp_sharedflag='-G' ;;
9554 *Sun\ F*) # Sun Fortran 8.3
9555 tmp_sharedflag='-G' ;;
9556 esac
9557 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9558
9559 if test yes = "$supports_anon_versioning"; then
9560 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9561 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9562 echo "local: *; };" >> $output_objdir/$libname.ver~
9563 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9564 fi
9565
9566 case $cc_basename in
9567 tcc*)
9568 export_dynamic_flag_spec='-rdynamic'
9569 ;;
9570 xlf* | bgf* | bgxlf* | mpixlf*)
9571 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9572 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9573 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9574 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9575 if test yes = "$supports_anon_versioning"; then
9576 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9577 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9578 echo "local: *; };" >> $output_objdir/$libname.ver~
9579 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9580 fi
9581 ;;
9582 esac
9583 else
9584 ld_shlibs=no
9585 fi
9586 ;;
9587
9588 netbsd*)
9589 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9590 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9591 wlarc=
9592 else
9593 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9594 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9595 fi
9596 ;;
9597
9598 solaris*)
9599 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9600 ld_shlibs=no
9601 cat <<_LT_EOF 1>&2
9602
9603*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9604*** create shared libraries on Solaris systems. Therefore, libtool
9605*** is disabling shared libraries support. We urge you to upgrade GNU
9606*** binutils to release 2.9.1 or newer. Another option is to modify
9607*** your PATH or compiler configuration so that the native linker is
9608*** used, and then restart.
9609
9610_LT_EOF
9611 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9612 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9613 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9614 else
9615 ld_shlibs=no
9616 fi
9617 ;;
9618
9619 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9620 case `$LD -v 2>&1` in
9621 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9622 ld_shlibs=no
9623 cat <<_LT_EOF 1>&2
9624
9625*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9626*** reliably create shared libraries on SCO systems. Therefore, libtool
9627*** is disabling shared libraries support. We urge you to upgrade GNU
9628*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9629*** your PATH or compiler configuration so that the native linker is
9630*** used, and then restart.
9631
9632_LT_EOF
9633 ;;
9634 *)
9635 # For security reasons, it is highly recommended that you always
9636 # use absolute paths for naming shared libraries, and exclude the
9637 # DT_RUNPATH tag from executables and libraries. But doing so
9638 # requires that you compile everything twice, which is a pain.
9639 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9640 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9641 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9642 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9643 else
9644 ld_shlibs=no
9645 fi
9646 ;;
9647 esac
9648 ;;
9649
9650 sunos4*)
9651 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9652 wlarc=
9653 hardcode_direct=yes
9654 hardcode_shlibpath_var=no
9655 ;;
9656
9657 *)
9658 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9659 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9660 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9661 else
9662 ld_shlibs=no
9663 fi
9664 ;;
9665 esac
9666
9667 if test no = "$ld_shlibs"; then
9668 runpath_var=
9669 hardcode_libdir_flag_spec=
9670 export_dynamic_flag_spec=
9671 whole_archive_flag_spec=
9672 fi
9673 else
9674 # PORTME fill in a description of your system's linker (not GNU ld)
9675 case $host_os in
9676 aix3*)
9677 allow_undefined_flag=unsupported
9678 always_export_symbols=yes
9679 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'
9680 # Note: this linker hardcodes the directories in LIBPATH if there
9681 # are no directories specified by -L.
9682 hardcode_minus_L=yes
9683 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9684 # Neither direct hardcoding nor static linking is supported with a
9685 # broken collect2.
9686 hardcode_direct=unsupported
9687 fi
9688 ;;
9689
9690 aix[4-9]*)
9691 if test ia64 = "$host_cpu"; then
9692 # On IA64, the linker does run time linking by default, so we don't
9693 # have to do anything special.
9694 aix_use_runtimelinking=no
9695 exp_sym_flag='-Bexport'
9696 no_entry_flag=
9697 else
9698 # If we're using GNU nm, then we don't want the "-C" option.
9699 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9700 # Without the "-l" option, or with the "-B" option, AIX nm treats
9701 # weak defined symbols like other global defined symbols, whereas
9702 # GNU nm marks them as "W".
9703 # While the 'weak' keyword is ignored in the Export File, we need
9704 # it in the Import File for the 'aix-soname' feature, so we have
9705 # to replace the "-B" option with "-P" for AIX nm.
9706 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9707 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9708 else
9709 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9710 fi
9711 aix_use_runtimelinking=no
9712
9713 # Test if we are trying to use run time linking or normal
9714 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9715 # have runtime linking enabled, and use it for executables.
9716 # For shared libraries, we enable/disable runtime linking
9717 # depending on the kind of the shared library created -
9718 # when "with_aix_soname,aix_use_runtimelinking" is:
9719 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9720 # "aix,yes" lib.so shared, rtl:yes, for executables
9721 # lib.a static archive
9722 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9723 # lib.a(lib.so.V) shared, rtl:no, for executables
9724 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9725 # lib.a(lib.so.V) shared, rtl:no
9726 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9727 # lib.a static archive
9728 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9729 for ld_flag in $LDFLAGS; do
9730 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9731 aix_use_runtimelinking=yes
9732 break
9733 fi
9734 done
9735 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9736 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9737 # so we don't have lib.a shared libs to link our executables.
9738 # We have to force runtime linking in this case.
9739 aix_use_runtimelinking=yes
9740 LDFLAGS="$LDFLAGS -Wl,-brtl"
9741 fi
9742 ;;
9743 esac
9744
9745 exp_sym_flag='-bexport'
9746 no_entry_flag='-bnoentry'
9747 fi
9748
9749 # When large executables or shared objects are built, AIX ld can
9750 # have problems creating the table of contents. If linking a library
9751 # or program results in "error TOC overflow" add -mminimal-toc to
9752 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9753 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9754
9755 archive_cmds=''
9756 hardcode_direct=yes
9757 hardcode_direct_absolute=yes
9758 hardcode_libdir_separator=':'
9759 link_all_deplibs=yes
9760 file_list_spec='$wl-f,'
9761 case $with_aix_soname,$aix_use_runtimelinking in
9762 aix,*) ;; # traditional, no import file
9763 svr4,* | *,yes) # use import file
9764 # The Import File defines what to hardcode.
9765 hardcode_direct=no
9766 hardcode_direct_absolute=no
9767 ;;
9768 esac
9769
9770 if test yes = "$GCC"; then
9771 case $host_os in aix4.[012]|aix4.[012].*)
9772 # We only want to do this on AIX 4.2 and lower, the check
9773 # below for broken collect2 doesn't work under 4.3+
9774 collect2name=`$CC -print-prog-name=collect2`
9775 if test -f "$collect2name" &&
9776 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9777 then
9778 # We have reworked collect2
9779 :
9780 else
9781 # We have old collect2
9782 hardcode_direct=unsupported
9783 # It fails to find uninstalled libraries when the uninstalled
9784 # path is not listed in the libpath. Setting hardcode_minus_L
9785 # to unsupported forces relinking
9786 hardcode_minus_L=yes
9787 hardcode_libdir_flag_spec='-L$libdir'
9788 hardcode_libdir_separator=
9789 fi
9790 ;;
9791 esac
9792 shared_flag='-shared'
9793 if test yes = "$aix_use_runtimelinking"; then
9794 shared_flag="$shared_flag "'$wl-G'
9795 fi
9796 # Need to ensure runtime linking is disabled for the traditional
9797 # shared library, or the linker may eventually find shared libraries
9798 # /with/ Import File - we do not want to mix them.
9799 shared_flag_aix='-shared'
9800 shared_flag_svr4='-shared $wl-G'
9801 else
9802 # not using gcc
9803 if test ia64 = "$host_cpu"; then
9804 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9805 # chokes on -Wl,-G. The following line is correct:
9806 shared_flag='-G'
9807 else
9808 if test yes = "$aix_use_runtimelinking"; then
9809 shared_flag='$wl-G'
9810 else
9811 shared_flag='$wl-bM:SRE'
9812 fi
9813 shared_flag_aix='$wl-bM:SRE'
9814 shared_flag_svr4='$wl-G'
9815 fi
9816 fi
9817
9818 export_dynamic_flag_spec='$wl-bexpall'
9819 # It seems that -bexpall does not export symbols beginning with
9820 # underscore (_), so it is better to generate a list of symbols to export.
9821 always_export_symbols=yes
9822 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9823 # Warning - without using the other runtime loading flags (-brtl),
9824 # -berok will link without error, but may produce a broken library.
9825 allow_undefined_flag='-berok'
9826 # Determine the default libpath from the value encoded in an
9827 # empty executable.
9828 if test set = "${lt_cv_aix_libpath+set}"; then
9829 aix_libpath=$lt_cv_aix_libpath
9830else
9831 if ${lt_cv_aix_libpath_+:} false; then :
9832 $as_echo_n "(cached) " >&6
9833else
9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835/* end confdefs.h. */
9836
9837int
9838main ()
9839{
9840
9841 ;
9842 return 0;
9843}
9844_ACEOF
9845if ac_fn_c_try_link "$LINENO"; then :
9846
9847 lt_aix_libpath_sed='
9848 /Import File Strings/,/^$/ {
9849 /^0/ {
9850 s/^0 *\([^ ]*\) *$/\1/
9851 p
9852 }
9853 }'
9854 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9855 # Check for a 64-bit object if we didn't find anything.
9856 if test -z "$lt_cv_aix_libpath_"; then
9857 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9858 fi
9859fi
9860rm -f core conftest.err conftest.$ac_objext \
9861 conftest$ac_exeext conftest.$ac_ext
9862 if test -z "$lt_cv_aix_libpath_"; then
9863 lt_cv_aix_libpath_=/usr/lib:/lib
9864 fi
9865
9866fi
9867
9868 aix_libpath=$lt_cv_aix_libpath_
9869fi
9870
9871 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9872 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9873 else
9874 if test ia64 = "$host_cpu"; then
9875 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9876 allow_undefined_flag="-z nodefs"
9877 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"
9878 else
9879 # Determine the default libpath from the value encoded in an
9880 # empty executable.
9881 if test set = "${lt_cv_aix_libpath+set}"; then
9882 aix_libpath=$lt_cv_aix_libpath
9883else
9884 if ${lt_cv_aix_libpath_+:} false; then :
9885 $as_echo_n "(cached) " >&6
9886else
9887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888/* end confdefs.h. */
9889
9890int
9891main ()
9892{
9893
9894 ;
9895 return 0;
9896}
9897_ACEOF
9898if ac_fn_c_try_link "$LINENO"; then :
9899
9900 lt_aix_libpath_sed='
9901 /Import File Strings/,/^$/ {
9902 /^0/ {
9903 s/^0 *\([^ ]*\) *$/\1/
9904 p
9905 }
9906 }'
9907 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9908 # Check for a 64-bit object if we didn't find anything.
9909 if test -z "$lt_cv_aix_libpath_"; then
9910 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9911 fi
9912fi
9913rm -f core conftest.err conftest.$ac_objext \
9914 conftest$ac_exeext conftest.$ac_ext
9915 if test -z "$lt_cv_aix_libpath_"; then
9916 lt_cv_aix_libpath_=/usr/lib:/lib
9917 fi
9918
9919fi
9920
9921 aix_libpath=$lt_cv_aix_libpath_
9922fi
9923
9924 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9925 # Warning - without using the other run time loading flags,
9926 # -berok will link without error, but may produce a broken library.
9927 no_undefined_flag=' $wl-bernotok'
9928 allow_undefined_flag=' $wl-berok'
9929 if test yes = "$with_gnu_ld"; then
9930 # We only use this code for GNU lds that support --whole-archive.
9931 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9932 else
9933 # Exported symbols can be pulled into shared objects from archives
9934 whole_archive_flag_spec='$convenience'
9935 fi
9936 archive_cmds_need_lc=yes
9937 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9938 # -brtl affects multiple linker settings, -berok does not and is overridden later
9939 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9940 if test svr4 != "$with_aix_soname"; then
9941 # This is similar to how AIX traditionally builds its shared libraries.
9942 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9943 fi
9944 if test aix != "$with_aix_soname"; then
9945 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9946 else
9947 # used by -dlpreopen to get the symbols
9948 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9949 fi
9950 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9951 fi
9952 fi
9953 ;;
9954
9955 amigaos*)
9956 case $host_cpu in
9957 powerpc)
9958 # see comment about AmigaOS4 .so support
9959 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9960 archive_expsym_cmds=''
9961 ;;
9962 m68k)
9963 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)'
9964 hardcode_libdir_flag_spec='-L$libdir'
9965 hardcode_minus_L=yes
9966 ;;
9967 esac
9968 ;;
9969
9970 bsdi[45]*)
9971 export_dynamic_flag_spec=-rdynamic
9972 ;;
9973
9974 cygwin* | mingw* | pw32* | cegcc*)
9975 # When not using gcc, we currently assume that we are using
9976 # Microsoft Visual C++.
9977 # hardcode_libdir_flag_spec is actually meaningless, as there is
9978 # no search path for DLLs.
9979 case $cc_basename in
9980 cl*)
9981 # Native MSVC
9982 hardcode_libdir_flag_spec=' '
9983 allow_undefined_flag=unsupported
9984 always_export_symbols=yes
9985 file_list_spec='@'
9986 # Tell ltmain to make .lib files, not .a files.
9987 libext=lib
9988 # Tell ltmain to make .dll files, not .so files.
9989 shrext_cmds=.dll
9990 # FIXME: Setting linknames here is a bad hack.
9991 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9992 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9993 cp "$export_symbols" "$output_objdir/$soname.def";
9994 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9995 else
9996 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9997 fi~
9998 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9999 linknames='
10000 # The linker will not automatically build a static lib if we build a DLL.
10001 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10002 enable_shared_with_static_runtimes=yes
10003 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10004 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10005 # Don't use ranlib
10006 old_postinstall_cmds='chmod 644 $oldlib'
10007 postlink_cmds='lt_outputfile="@OUTPUT@"~
10008 lt_tool_outputfile="@TOOL_OUTPUT@"~
10009 case $lt_outputfile in
10010 *.exe|*.EXE) ;;
10011 *)
10012 lt_outputfile=$lt_outputfile.exe
10013 lt_tool_outputfile=$lt_tool_outputfile.exe
10014 ;;
10015 esac~
10016 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10017 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10018 $RM "$lt_outputfile.manifest";
10019 fi'
10020 ;;
10021 *)
10022 # Assume MSVC wrapper
10023 hardcode_libdir_flag_spec=' '
10024 allow_undefined_flag=unsupported
10025 # Tell ltmain to make .lib files, not .a files.
10026 libext=lib
10027 # Tell ltmain to make .dll files, not .so files.
10028 shrext_cmds=.dll
10029 # FIXME: Setting linknames here is a bad hack.
10030 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10031 # The linker will automatically build a .lib file if we build a DLL.
10032 old_archive_from_new_cmds='true'
10033 # FIXME: Should let the user specify the lib program.
10034 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10035 enable_shared_with_static_runtimes=yes
10036 ;;
10037 esac
10038 ;;
10039
10040 darwin* | rhapsody*)
10041
10042
10043 archive_cmds_need_lc=no
10044 hardcode_direct=no
10045 hardcode_automatic=yes
10046 hardcode_shlibpath_var=unsupported
10047 if test yes = "$lt_cv_ld_force_load"; then
10048 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\"`'
10049
10050 else
10051 whole_archive_flag_spec=''
10052 fi
10053 link_all_deplibs=yes
10054 allow_undefined_flag=$_lt_dar_allow_undefined
10055 case $cc_basename in
10056 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10057 *) _lt_dar_can_shared=$GCC ;;
10058 esac
10059 if test yes = "$_lt_dar_can_shared"; then
10060 output_verbose_link_cmd=func_echo_all
10061 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10062 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10063 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"
10064 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"
10065
10066 else
10067 ld_shlibs=no
10068 fi
10069
10070 ;;
10071
10072 dgux*)
10073 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10074 hardcode_libdir_flag_spec='-L$libdir'
10075 hardcode_shlibpath_var=no
10076 ;;
10077
10078 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10079 # support. Future versions do this automatically, but an explicit c++rt0.o
10080 # does not break anything, and helps significantly (at the cost of a little
10081 # extra space).
10082 freebsd2.2*)
10083 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10084 hardcode_libdir_flag_spec='-R$libdir'
10085 hardcode_direct=yes
10086 hardcode_shlibpath_var=no
10087 ;;
10088
10089 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10090 freebsd2.*)
10091 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10092 hardcode_direct=yes
10093 hardcode_minus_L=yes
10094 hardcode_shlibpath_var=no
10095 ;;
10096
10097 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10098 freebsd* | dragonfly*)
10099 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10100 hardcode_libdir_flag_spec='-R$libdir'
10101 hardcode_direct=yes
10102 hardcode_shlibpath_var=no
10103 ;;
10104
10105 hpux9*)
10106 if test yes = "$GCC"; then
10107 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10108 else
10109 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10110 fi
10111 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10112 hardcode_libdir_separator=:
10113 hardcode_direct=yes
10114
10115 # hardcode_minus_L: Not really in the search PATH,
10116 # but as the default location of the library.
10117 hardcode_minus_L=yes
10118 export_dynamic_flag_spec='$wl-E'
10119 ;;
10120
10121 hpux10*)
10122 if test yes,no = "$GCC,$with_gnu_ld"; then
10123 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10124 else
10125 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10126 fi
10127 if test no = "$with_gnu_ld"; then
10128 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10129 hardcode_libdir_separator=:
10130 hardcode_direct=yes
10131 hardcode_direct_absolute=yes
10132 export_dynamic_flag_spec='$wl-E'
10133 # hardcode_minus_L: Not really in the search PATH,
10134 # but as the default location of the library.
10135 hardcode_minus_L=yes
10136 fi
10137 ;;
10138
10139 hpux11*)
10140 if test yes,no = "$GCC,$with_gnu_ld"; then
10141 case $host_cpu in
10142 hppa*64*)
10143 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10144 ;;
10145 ia64*)
10146 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10147 ;;
10148 *)
10149 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10150 ;;
10151 esac
10152 else
10153 case $host_cpu in
10154 hppa*64*)
10155 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10156 ;;
10157 ia64*)
10158 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10159 ;;
10160 *)
10161
10162 # Older versions of the 11.00 compiler do not understand -b yet
10163 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10165$as_echo_n "checking if $CC understands -b... " >&6; }
10166if ${lt_cv_prog_compiler__b+:} false; then :
10167 $as_echo_n "(cached) " >&6
10168else
10169 lt_cv_prog_compiler__b=no
10170 save_LDFLAGS=$LDFLAGS
10171 LDFLAGS="$LDFLAGS -b"
10172 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10173 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10174 # The linker can only warn and ignore the option if not recognized
10175 # So say no if there are warnings
10176 if test -s conftest.err; then
10177 # Append any errors to the config.log.
10178 cat conftest.err 1>&5
10179 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10180 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10181 if diff conftest.exp conftest.er2 >/dev/null; then
10182 lt_cv_prog_compiler__b=yes
10183 fi
10184 else
10185 lt_cv_prog_compiler__b=yes
10186 fi
10187 fi
10188 $RM -r conftest*
10189 LDFLAGS=$save_LDFLAGS
10190
10191fi
10192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10193$as_echo "$lt_cv_prog_compiler__b" >&6; }
10194
10195if test yes = "$lt_cv_prog_compiler__b"; then
10196 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10197else
10198 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10199fi
10200
10201 ;;
10202 esac
10203 fi
10204 if test no = "$with_gnu_ld"; then
10205 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10206 hardcode_libdir_separator=:
10207
10208 case $host_cpu in
10209 hppa*64*|ia64*)
10210 hardcode_direct=no
10211 hardcode_shlibpath_var=no
10212 ;;
10213 *)
10214 hardcode_direct=yes
10215 hardcode_direct_absolute=yes
10216 export_dynamic_flag_spec='$wl-E'
10217
10218 # hardcode_minus_L: Not really in the search PATH,
10219 # but as the default location of the library.
10220 hardcode_minus_L=yes
10221 ;;
10222 esac
10223 fi
10224 ;;
10225
10226 irix5* | irix6* | nonstopux*)
10227 if test yes = "$GCC"; then
10228 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10229 # Try to use the -exported_symbol ld option, if it does not
10230 # work, assume that -exports_file does not work either and
10231 # implicitly export all symbols.
10232 # This should be the same for all languages, so no per-tag cache variable.
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10234$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10235if ${lt_cv_irix_exported_symbol+:} false; then :
10236 $as_echo_n "(cached) " >&6
10237else
10238 save_LDFLAGS=$LDFLAGS
10239 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241/* end confdefs.h. */
10242int foo (void) { return 0; }
10243_ACEOF
10244if ac_fn_c_try_link "$LINENO"; then :
10245 lt_cv_irix_exported_symbol=yes
10246else
10247 lt_cv_irix_exported_symbol=no
10248fi
10249rm -f core conftest.err conftest.$ac_objext \
10250 conftest$ac_exeext conftest.$ac_ext
10251 LDFLAGS=$save_LDFLAGS
10252fi
10253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10254$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10255 if test yes = "$lt_cv_irix_exported_symbol"; then
10256 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10257 fi
10258 else
10259 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'
10260 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'
10261 fi
10262 archive_cmds_need_lc='no'
10263 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10264 hardcode_libdir_separator=:
10265 inherit_rpath=yes
10266 link_all_deplibs=yes
10267 ;;
10268
10269 linux*)
10270 case $cc_basename in
10271 tcc*)
10272 # Fabrice Bellard et al's Tiny C Compiler
10273 ld_shlibs=yes
10274 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10275 ;;
10276 esac
10277 ;;
10278
10279 netbsd*)
10280 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10281 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10282 else
10283 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10284 fi
10285 hardcode_libdir_flag_spec='-R$libdir'
10286 hardcode_direct=yes
10287 hardcode_shlibpath_var=no
10288 ;;
10289
10290 newsos6)
10291 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10292 hardcode_direct=yes
10293 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10294 hardcode_libdir_separator=:
10295 hardcode_shlibpath_var=no
10296 ;;
10297
10298 *nto* | *qnx*)
10299 ;;
10300
10301 openbsd* | bitrig*)
10302 if test -f /usr/libexec/ld.so; then
10303 hardcode_direct=yes
10304 hardcode_shlibpath_var=no
10305 hardcode_direct_absolute=yes
10306 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10307 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10308 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10309 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10310 export_dynamic_flag_spec='$wl-E'
10311 else
10312 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10313 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10314 fi
10315 else
10316 ld_shlibs=no
10317 fi
10318 ;;
10319
10320 os2*)
10321 hardcode_libdir_flag_spec='-L$libdir'
10322 hardcode_minus_L=yes
10323 allow_undefined_flag=unsupported
10324 shrext_cmds=.dll
10325 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10326 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10327 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10328 $ECHO EXPORTS >> $output_objdir/$libname.def~
10329 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10330 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10331 emximp -o $lib $output_objdir/$libname.def'
10332 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10333 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10334 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10335 $ECHO EXPORTS >> $output_objdir/$libname.def~
10336 prefix_cmds="$SED"~
10337 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10338 prefix_cmds="$prefix_cmds -e 1d";
10339 fi~
10340 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10341 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10342 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10343 emximp -o $lib $output_objdir/$libname.def'
10344 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10345 enable_shared_with_static_runtimes=yes
10346 ;;
10347
10348 osf3*)
10349 if test yes = "$GCC"; then
10350 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10351 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'
10352 else
10353 allow_undefined_flag=' -expect_unresolved \*'
10354 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'
10355 fi
10356 archive_cmds_need_lc='no'
10357 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10358 hardcode_libdir_separator=:
10359 ;;
10360
10361 osf4* | osf5*) # as osf3* with the addition of -msym flag
10362 if test yes = "$GCC"; then
10363 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10364 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10365 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10366 else
10367 allow_undefined_flag=' -expect_unresolved \*'
10368 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'
10369 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~
10370 $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'
10371
10372 # Both c and cxx compiler support -rpath directly
10373 hardcode_libdir_flag_spec='-rpath $libdir'
10374 fi
10375 archive_cmds_need_lc='no'
10376 hardcode_libdir_separator=:
10377 ;;
10378
10379 solaris*)
10380 no_undefined_flag=' -z defs'
10381 if test yes = "$GCC"; then
10382 wlarc='$wl'
10383 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10384 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10385 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10386 else
10387 case `$CC -V 2>&1` in
10388 *"Compilers 5.0"*)
10389 wlarc=''
10390 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10391 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10392 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10393 ;;
10394 *)
10395 wlarc='$wl'
10396 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10397 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10398 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10399 ;;
10400 esac
10401 fi
10402 hardcode_libdir_flag_spec='-R$libdir'
10403 hardcode_shlibpath_var=no
10404 case $host_os in
10405 solaris2.[0-5] | solaris2.[0-5].*) ;;
10406 *)
10407 # The compiler driver will combine and reorder linker options,
10408 # but understands '-z linker_flag'. GCC discards it without '$wl',
10409 # but is careful enough not to reorder.
10410 # Supported since Solaris 2.6 (maybe 2.5.1?)
10411 if test yes = "$GCC"; then
10412 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10413 else
10414 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10415 fi
10416 ;;
10417 esac
10418 link_all_deplibs=yes
10419 ;;
10420
10421 sunos4*)
10422 if test sequent = "$host_vendor"; then
10423 # Use $CC to link under sequent, because it throws in some extra .o
10424 # files that make .init and .fini sections work.
10425 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10426 else
10427 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10428 fi
10429 hardcode_libdir_flag_spec='-L$libdir'
10430 hardcode_direct=yes
10431 hardcode_minus_L=yes
10432 hardcode_shlibpath_var=no
10433 ;;
10434
10435 sysv4)
10436 case $host_vendor in
10437 sni)
10438 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10439 hardcode_direct=yes # is this really true???
10440 ;;
10441 siemens)
10442 ## LD is ld it makes a PLAMLIB
10443 ## CC just makes a GrossModule.
10444 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10445 reload_cmds='$CC -r -o $output$reload_objs'
10446 hardcode_direct=no
10447 ;;
10448 motorola)
10449 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10450 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10451 ;;
10452 esac
10453 runpath_var='LD_RUN_PATH'
10454 hardcode_shlibpath_var=no
10455 ;;
10456
10457 sysv4.3*)
10458 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10459 hardcode_shlibpath_var=no
10460 export_dynamic_flag_spec='-Bexport'
10461 ;;
10462
10463 sysv4*MP*)
10464 if test -d /usr/nec; then
10465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10466 hardcode_shlibpath_var=no
10467 runpath_var=LD_RUN_PATH
10468 hardcode_runpath_var=yes
10469 ld_shlibs=yes
10470 fi
10471 ;;
10472
10473 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10474 no_undefined_flag='$wl-z,text'
10475 archive_cmds_need_lc=no
10476 hardcode_shlibpath_var=no
10477 runpath_var='LD_RUN_PATH'
10478
10479 if test yes = "$GCC"; then
10480 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10481 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10482 else
10483 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10484 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10485 fi
10486 ;;
10487
10488 sysv5* | sco3.2v5* | sco5v6*)
10489 # Note: We CANNOT use -z defs as we might desire, because we do not
10490 # link with -lc, and that would cause any symbols used from libc to
10491 # always be unresolved, which means just about no library would
10492 # ever link correctly. If we're not using GNU ld we use -z text
10493 # though, which does catch some bad symbols but isn't as heavy-handed
10494 # as -z defs.
10495 no_undefined_flag='$wl-z,text'
10496 allow_undefined_flag='$wl-z,nodefs'
10497 archive_cmds_need_lc=no
10498 hardcode_shlibpath_var=no
10499 hardcode_libdir_flag_spec='$wl-R,$libdir'
10500 hardcode_libdir_separator=':'
10501 link_all_deplibs=yes
10502 export_dynamic_flag_spec='$wl-Bexport'
10503 runpath_var='LD_RUN_PATH'
10504
10505 if test yes = "$GCC"; then
10506 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10507 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10508 else
10509 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10510 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10511 fi
10512 ;;
10513
10514 uts4*)
10515 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10516 hardcode_libdir_flag_spec='-L$libdir'
10517 hardcode_shlibpath_var=no
10518 ;;
10519
10520 *)
10521 ld_shlibs=no
10522 ;;
10523 esac
10524
10525 if test sni = "$host_vendor"; then
10526 case $host in
10527 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10528 export_dynamic_flag_spec='$wl-Blargedynsym'
10529 ;;
10530 esac
10531 fi
10532 fi
10533
10534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10535$as_echo "$ld_shlibs" >&6; }
10536test no = "$ld_shlibs" && can_build_shared=no
10537
10538with_gnu_ld=$with_gnu_ld
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554#
10555# Do we need to explicitly link libc?
10556#
10557case "x$archive_cmds_need_lc" in
10558x|xyes)
10559 # Assume -lc should be added
10560 archive_cmds_need_lc=yes
10561
10562 if test yes,yes = "$GCC,$enable_shared"; then
10563 case $archive_cmds in
10564 *'~'*)
10565 # FIXME: we may have to deal with multi-command sequences.
10566 ;;
10567 '$CC '*)
10568 # Test whether the compiler implicitly links with -lc since on some
10569 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10570 # to ld, don't add -lc before -lgcc.
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10572$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10573if ${lt_cv_archive_cmds_need_lc+:} false; then :
10574 $as_echo_n "(cached) " >&6
10575else
10576 $RM conftest*
10577 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10578
10579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10580 (eval $ac_compile) 2>&5
10581 ac_status=$?
10582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10583 test $ac_status = 0; } 2>conftest.err; then
10584 soname=conftest
10585 lib=conftest
10586 libobjs=conftest.$ac_objext
10587 deplibs=
10588 wl=$lt_prog_compiler_wl
10589 pic_flag=$lt_prog_compiler_pic
10590 compiler_flags=-v
10591 linker_flags=-v
10592 verstring=
10593 output_objdir=.
10594 libname=conftest
10595 lt_save_allow_undefined_flag=$allow_undefined_flag
10596 allow_undefined_flag=
10597 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10598 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10599 ac_status=$?
10600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10601 test $ac_status = 0; }
10602 then
10603 lt_cv_archive_cmds_need_lc=no
10604 else
10605 lt_cv_archive_cmds_need_lc=yes
10606 fi
10607 allow_undefined_flag=$lt_save_allow_undefined_flag
10608 else
10609 cat conftest.err 1>&5
10610 fi
10611 $RM conftest*
10612
10613fi
10614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10615$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10616 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10617 ;;
10618 esac
10619 fi
10620 ;;
10621esac
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10775$as_echo_n "checking dynamic linker characteristics... " >&6; }
10776
10777if test yes = "$GCC"; then
10778 case $host_os in
10779 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10780 *) lt_awk_arg='/^libraries:/' ;;
10781 esac
10782 case $host_os in
10783 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10784 *) lt_sed_strip_eq='s|=/|/|g' ;;
10785 esac
10786 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10787 case $lt_search_path_spec in
10788 *\;*)
10789 # if the path contains ";" then we assume it to be the separator
10790 # otherwise default to the standard path separator (i.e. ":") - it is
10791 # assumed that no part of a normal pathname contains ";" but that should
10792 # okay in the real world where ";" in dirpaths is itself problematic.
10793 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10794 ;;
10795 *)
10796 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10797 ;;
10798 esac
10799 # Ok, now we have the path, separated by spaces, we can step through it
10800 # and add multilib dir if necessary...
10801 lt_tmp_lt_search_path_spec=
10802 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10803 # ...but if some path component already ends with the multilib dir we assume
10804 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10805 case "$lt_multi_os_dir; $lt_search_path_spec " in
10806 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10807 lt_multi_os_dir=
10808 ;;
10809 esac
10810 for lt_sys_path in $lt_search_path_spec; do
10811 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10812 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10813 elif test -n "$lt_multi_os_dir"; then
10814 test -d "$lt_sys_path" && \
10815 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10816 fi
10817 done
10818 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10819BEGIN {RS = " "; FS = "/|\n";} {
10820 lt_foo = "";
10821 lt_count = 0;
10822 for (lt_i = NF; lt_i > 0; lt_i--) {
10823 if ($lt_i != "" && $lt_i != ".") {
10824 if ($lt_i == "..") {
10825 lt_count++;
10826 } else {
10827 if (lt_count == 0) {
10828 lt_foo = "/" $lt_i lt_foo;
10829 } else {
10830 lt_count--;
10831 }
10832 }
10833 }
10834 }
10835 if (lt_foo != "") { lt_freq[lt_foo]++; }
10836 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10837}'`
10838 # AWK program above erroneously prepends '/' to C:/dos/paths
10839 # for these hosts.
10840 case $host_os in
10841 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10842 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10843 esac
10844 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10845else
10846 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10847fi
10848library_names_spec=
10849libname_spec='lib$name'
10850soname_spec=
10851shrext_cmds=.so
10852postinstall_cmds=
10853postuninstall_cmds=
10854finish_cmds=
10855finish_eval=
10856shlibpath_var=
10857shlibpath_overrides_runpath=unknown
10858version_type=none
10859dynamic_linker="$host_os ld.so"
10860sys_lib_dlsearch_path_spec="/lib /usr/lib"
10861need_lib_prefix=unknown
10862hardcode_into_libs=no
10863
10864# when you set need_version to no, make sure it does not cause -set_version
10865# flags to be left without arguments
10866need_version=unknown
10867
10868
10869
10870case $host_os in
10871aix3*)
10872 version_type=linux # correct to gnu/linux during the next big refactor
10873 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10874 shlibpath_var=LIBPATH
10875
10876 # AIX 3 has no versioning support, so we append a major version to the name.
10877 soname_spec='$libname$release$shared_ext$major'
10878 ;;
10879
10880aix[4-9]*)
10881 version_type=linux # correct to gnu/linux during the next big refactor
10882 need_lib_prefix=no
10883 need_version=no
10884 hardcode_into_libs=yes
10885 if test ia64 = "$host_cpu"; then
10886 # AIX 5 supports IA64
10887 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10888 shlibpath_var=LD_LIBRARY_PATH
10889 else
10890 # With GCC up to 2.95.x, collect2 would create an import file
10891 # for dependence libraries. The import file would start with
10892 # the line '#! .'. This would cause the generated library to
10893 # depend on '.', always an invalid library. This was fixed in
10894 # development snapshots of GCC prior to 3.0.
10895 case $host_os in
10896 aix4 | aix4.[01] | aix4.[01].*)
10897 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10898 echo ' yes '
10899 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10900 :
10901 else
10902 can_build_shared=no
10903 fi
10904 ;;
10905 esac
10906 # Using Import Files as archive members, it is possible to support
10907 # filename-based versioning of shared library archives on AIX. While
10908 # this would work for both with and without runtime linking, it will
10909 # prevent static linking of such archives. So we do filename-based
10910 # shared library versioning with .so extension only, which is used
10911 # when both runtime linking and shared linking is enabled.
10912 # Unfortunately, runtime linking may impact performance, so we do
10913 # not want this to be the default eventually. Also, we use the
10914 # versioned .so libs for executables only if there is the -brtl
10915 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10916 # To allow for filename-based versioning support, we need to create
10917 # libNAME.so.V as an archive file, containing:
10918 # *) an Import File, referring to the versioned filename of the
10919 # archive as well as the shared archive member, telling the
10920 # bitwidth (32 or 64) of that shared object, and providing the
10921 # list of exported symbols of that shared object, eventually
10922 # decorated with the 'weak' keyword
10923 # *) the shared object with the F_LOADONLY flag set, to really avoid
10924 # it being seen by the linker.
10925 # At run time we better use the real file rather than another symlink,
10926 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10927
10928 case $with_aix_soname,$aix_use_runtimelinking in
10929 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10930 # soname into executable. Probably we can add versioning support to
10931 # collect2, so additional links can be useful in future.
10932 aix,yes) # traditional libtool
10933 dynamic_linker='AIX unversionable lib.so'
10934 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10935 # instead of lib<name>.a to let people know that these are not
10936 # typical AIX shared libraries.
10937 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10938 ;;
10939 aix,no) # traditional AIX only
10940 dynamic_linker='AIX lib.a(lib.so.V)'
10941 # We preserve .a as extension for shared libraries through AIX4.2
10942 # and later when we are not doing run time linking.
10943 library_names_spec='$libname$release.a $libname.a'
10944 soname_spec='$libname$release$shared_ext$major'
10945 ;;
10946 svr4,*) # full svr4 only
10947 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10948 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10949 # We do not specify a path in Import Files, so LIBPATH fires.
10950 shlibpath_overrides_runpath=yes
10951 ;;
10952 *,yes) # both, prefer svr4
10953 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10954 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10955 # unpreferred sharedlib libNAME.a needs extra handling
10956 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10957 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10958 # We do not specify a path in Import Files, so LIBPATH fires.
10959 shlibpath_overrides_runpath=yes
10960 ;;
10961 *,no) # both, prefer aix
10962 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10963 library_names_spec='$libname$release.a $libname.a'
10964 soname_spec='$libname$release$shared_ext$major'
10965 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10966 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10967 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10968 ;;
10969 esac
10970 shlibpath_var=LIBPATH
10971 fi
10972 ;;
10973
10974amigaos*)
10975 case $host_cpu in
10976 powerpc)
10977 # Since July 2007 AmigaOS4 officially supports .so libraries.
10978 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10979 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10980 ;;
10981 m68k)
10982 library_names_spec='$libname.ixlibrary $libname.a'
10983 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10984 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10985 ;;
10986 esac
10987 ;;
10988
10989beos*)
10990 library_names_spec='$libname$shared_ext'
10991 dynamic_linker="$host_os ld.so"
10992 shlibpath_var=LIBRARY_PATH
10993 ;;
10994
10995bsdi[45]*)
10996 version_type=linux # correct to gnu/linux during the next big refactor
10997 need_version=no
10998 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10999 soname_spec='$libname$release$shared_ext$major'
11000 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11001 shlibpath_var=LD_LIBRARY_PATH
11002 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11003 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11004 # the default ld.so.conf also contains /usr/contrib/lib and
11005 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11006 # libtool to hard-code these into programs
11007 ;;
11008
11009cygwin* | mingw* | pw32* | cegcc*)
11010 version_type=windows
11011 shrext_cmds=.dll
11012 need_version=no
11013 need_lib_prefix=no
11014
11015 case $GCC,$cc_basename in
11016 yes,*)
11017 # gcc
11018 library_names_spec='$libname.dll.a'
11019 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11020 postinstall_cmds='base_file=`basename \$file`~
11021 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11022 dldir=$destdir/`dirname \$dlpath`~
11023 test -d \$dldir || mkdir -p \$dldir~
11024 $install_prog $dir/$dlname \$dldir/$dlname~
11025 chmod a+x \$dldir/$dlname~
11026 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11027 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11028 fi'
11029 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11030 dlpath=$dir/\$dldll~
11031 $RM \$dlpath'
11032 shlibpath_overrides_runpath=yes
11033
11034 case $host_os in
11035 cygwin*)
11036 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11037 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11038
11039 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11040 ;;
11041 mingw* | cegcc*)
11042 # MinGW DLLs use traditional 'lib' prefix
11043 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11044 ;;
11045 pw32*)
11046 # pw32 DLLs use 'pw' prefix rather than 'lib'
11047 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11048 ;;
11049 esac
11050 dynamic_linker='Win32 ld.exe'
11051 ;;
11052
11053 *,cl*)
11054 # Native MSVC
11055 libname_spec='$name'
11056 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11057 library_names_spec='$libname.dll.lib'
11058
11059 case $build_os in
11060 mingw*)
11061 sys_lib_search_path_spec=
11062 lt_save_ifs=$IFS
11063 IFS=';'
11064 for lt_path in $LIB
11065 do
11066 IFS=$lt_save_ifs
11067 # Let DOS variable expansion print the short 8.3 style file name.
11068 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11069 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11070 done
11071 IFS=$lt_save_ifs
11072 # Convert to MSYS style.
11073 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11074 ;;
11075 cygwin*)
11076 # Convert to unix form, then to dos form, then back to unix form
11077 # but this time dos style (no spaces!) so that the unix form looks
11078 # like /cygdrive/c/PROGRA~1:/cygdr...
11079 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11080 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11081 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11082 ;;
11083 *)
11084 sys_lib_search_path_spec=$LIB
11085 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11086 # It is most probably a Windows format PATH.
11087 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11088 else
11089 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11090 fi
11091 # FIXME: find the short name or the path components, as spaces are
11092 # common. (e.g. "Program Files" -> "PROGRA~1")
11093 ;;
11094 esac
11095
11096 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11097 postinstall_cmds='base_file=`basename \$file`~
11098 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11099 dldir=$destdir/`dirname \$dlpath`~
11100 test -d \$dldir || mkdir -p \$dldir~
11101 $install_prog $dir/$dlname \$dldir/$dlname'
11102 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11103 dlpath=$dir/\$dldll~
11104 $RM \$dlpath'
11105 shlibpath_overrides_runpath=yes
11106 dynamic_linker='Win32 link.exe'
11107 ;;
11108
11109 *)
11110 # Assume MSVC wrapper
11111 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11112 dynamic_linker='Win32 ld.exe'
11113 ;;
11114 esac
11115 # FIXME: first we should search . and the directory the executable is in
11116 shlibpath_var=PATH
11117 ;;
11118
11119darwin* | rhapsody*)
11120 dynamic_linker="$host_os dyld"
11121 version_type=darwin
11122 need_lib_prefix=no
11123 need_version=no
11124 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11125 soname_spec='$libname$release$major$shared_ext'
11126 shlibpath_overrides_runpath=yes
11127 shlibpath_var=DYLD_LIBRARY_PATH
11128 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11129
11130 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11131 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11132 ;;
11133
11134dgux*)
11135 version_type=linux # correct to gnu/linux during the next big refactor
11136 need_lib_prefix=no
11137 need_version=no
11138 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11139 soname_spec='$libname$release$shared_ext$major'
11140 shlibpath_var=LD_LIBRARY_PATH
11141 ;;
11142
11143freebsd* | dragonfly*)
11144 # DragonFly does not have aout. When/if they implement a new
11145 # versioning mechanism, adjust this.
11146 if test -x /usr/bin/objformat; then
11147 objformat=`/usr/bin/objformat`
11148 else
11149 case $host_os in
11150 freebsd[23].*) objformat=aout ;;
11151 *) objformat=elf ;;
11152 esac
11153 fi
11154 version_type=freebsd-$objformat
11155 case $version_type in
11156 freebsd-elf*)
11157 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11158 soname_spec='$libname$release$shared_ext$major'
11159 need_version=no
11160 need_lib_prefix=no
11161 ;;
11162 freebsd-*)
11163 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11164 need_version=yes
11165 ;;
11166 esac
11167 shlibpath_var=LD_LIBRARY_PATH
11168 case $host_os in
11169 freebsd2.*)
11170 shlibpath_overrides_runpath=yes
11171 ;;
11172 freebsd3.[01]* | freebsdelf3.[01]*)
11173 shlibpath_overrides_runpath=yes
11174 hardcode_into_libs=yes
11175 ;;
11176 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11177 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11178 shlibpath_overrides_runpath=no
11179 hardcode_into_libs=yes
11180 ;;
11181 *) # from 4.6 on, and DragonFly
11182 shlibpath_overrides_runpath=yes
11183 hardcode_into_libs=yes
11184 ;;
11185 esac
11186 ;;
11187
11188haiku*)
11189 version_type=linux # correct to gnu/linux during the next big refactor
11190 need_lib_prefix=no
11191 need_version=no
11192 dynamic_linker="$host_os runtime_loader"
11193 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11194 soname_spec='$libname$release$shared_ext$major'
11195 shlibpath_var=LIBRARY_PATH
11196 shlibpath_overrides_runpath=no
11197 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11198 hardcode_into_libs=yes
11199 ;;
11200
11201hpux9* | hpux10* | hpux11*)
11202 # Give a soname corresponding to the major version so that dld.sl refuses to
11203 # link against other versions.
11204 version_type=sunos
11205 need_lib_prefix=no
11206 need_version=no
11207 case $host_cpu in
11208 ia64*)
11209 shrext_cmds='.so'
11210 hardcode_into_libs=yes
11211 dynamic_linker="$host_os dld.so"
11212 shlibpath_var=LD_LIBRARY_PATH
11213 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11214 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11215 soname_spec='$libname$release$shared_ext$major'
11216 if test 32 = "$HPUX_IA64_MODE"; then
11217 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11218 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11219 else
11220 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11221 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11222 fi
11223 ;;
11224 hppa*64*)
11225 shrext_cmds='.sl'
11226 hardcode_into_libs=yes
11227 dynamic_linker="$host_os dld.sl"
11228 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11229 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11230 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11231 soname_spec='$libname$release$shared_ext$major'
11232 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11233 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11234 ;;
11235 *)
11236 shrext_cmds='.sl'
11237 dynamic_linker="$host_os dld.sl"
11238 shlibpath_var=SHLIB_PATH
11239 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11240 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11241 soname_spec='$libname$release$shared_ext$major'
11242 ;;
11243 esac
11244 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11245 postinstall_cmds='chmod 555 $lib'
11246 # or fails outright, so override atomically:
11247 install_override_mode=555
11248 ;;
11249
11250interix[3-9]*)
11251 version_type=linux # correct to gnu/linux during the next big refactor
11252 need_lib_prefix=no
11253 need_version=no
11254 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11255 soname_spec='$libname$release$shared_ext$major'
11256 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11257 shlibpath_var=LD_LIBRARY_PATH
11258 shlibpath_overrides_runpath=no
11259 hardcode_into_libs=yes
11260 ;;
11261
11262irix5* | irix6* | nonstopux*)
11263 case $host_os in
11264 nonstopux*) version_type=nonstopux ;;
11265 *)
11266 if test yes = "$lt_cv_prog_gnu_ld"; then
11267 version_type=linux # correct to gnu/linux during the next big refactor
11268 else
11269 version_type=irix
11270 fi ;;
11271 esac
11272 need_lib_prefix=no
11273 need_version=no
11274 soname_spec='$libname$release$shared_ext$major'
11275 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11276 case $host_os in
11277 irix5* | nonstopux*)
11278 libsuff= shlibsuff=
11279 ;;
11280 *)
11281 case $LD in # libtool.m4 will add one of these switches to LD
11282 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11283 libsuff= shlibsuff= libmagic=32-bit;;
11284 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11285 libsuff=32 shlibsuff=N32 libmagic=N32;;
11286 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11287 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11288 *) libsuff= shlibsuff= libmagic=never-match;;
11289 esac
11290 ;;
11291 esac
11292 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11293 shlibpath_overrides_runpath=no
11294 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11295 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11296 hardcode_into_libs=yes
11297 ;;
11298
11299# No shared lib support for Linux oldld, aout, or coff.
11300linux*oldld* | linux*aout* | linux*coff*)
11301 dynamic_linker=no
11302 ;;
11303
11304linux*android*)
11305 version_type=none # Android doesn't support versioned libraries.
11306 need_lib_prefix=no
11307 need_version=no
11308 library_names_spec='$libname$release$shared_ext'
11309 soname_spec='$libname$release$shared_ext'
11310 finish_cmds=
11311 shlibpath_var=LD_LIBRARY_PATH
11312 shlibpath_overrides_runpath=yes
11313
11314 # This implies no fast_install, which is unacceptable.
11315 # Some rework will be needed to allow for fast_install
11316 # before this can be enabled.
11317 hardcode_into_libs=yes
11318
11319 dynamic_linker='Android linker'
11320 # Don't embed -rpath directories since the linker doesn't support them.
11321 hardcode_libdir_flag_spec='-L$libdir'
11322 ;;
11323
11324# This must be glibc/ELF.
11325linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11326 version_type=linux # correct to gnu/linux during the next big refactor
11327 need_lib_prefix=no
11328 need_version=no
11329 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11330 soname_spec='$libname$release$shared_ext$major'
11331 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11332 shlibpath_var=LD_LIBRARY_PATH
11333 shlibpath_overrides_runpath=no
11334
11335 # Some binutils ld are patched to set DT_RUNPATH
11336 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11337 $as_echo_n "(cached) " >&6
11338else
11339 lt_cv_shlibpath_overrides_runpath=no
11340 save_LDFLAGS=$LDFLAGS
11341 save_libdir=$libdir
11342 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11343 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11345/* end confdefs.h. */
11346
11347int
11348main ()
11349{
11350
11351 ;
11352 return 0;
11353}
11354_ACEOF
11355if ac_fn_c_try_link "$LINENO"; then :
11356 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11357 lt_cv_shlibpath_overrides_runpath=yes
11358fi
11359fi
11360rm -f core conftest.err conftest.$ac_objext \
11361 conftest$ac_exeext conftest.$ac_ext
11362 LDFLAGS=$save_LDFLAGS
11363 libdir=$save_libdir
11364
11365fi
11366
11367 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11368
11369 # This implies no fast_install, which is unacceptable.
11370 # Some rework will be needed to allow for fast_install
11371 # before this can be enabled.
11372 hardcode_into_libs=yes
11373
11374 # Ideally, we could use ldconfig to report *all* directores which are
11375 # searched for libraries, however this is still not possible. Aside from not
11376 # being certain /sbin/ldconfig is available, command
11377 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11378 # even though it is searched at run-time. Try to do the best guess by
11379 # appending ld.so.conf contents (and includes) to the search path.
11380 if test -f /etc/ld.so.conf; then
11381 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' ' '`
11382 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11383 fi
11384
11385 # We used to test for /lib/ld.so.1 and disable shared libraries on
11386 # powerpc, because MkLinux only supported shared libraries with the
11387 # GNU dynamic linker. Since this was broken with cross compilers,
11388 # most powerpc-linux boxes support dynamic linking these days and
11389 # people can always --disable-shared, the test was removed, and we
11390 # assume the GNU/Linux dynamic linker is in use.
11391 dynamic_linker='GNU/Linux ld.so'
11392 ;;
11393
11394netbsd*)
11395 version_type=sunos
11396 need_lib_prefix=no
11397 need_version=no
11398 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11399 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11400 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11401 dynamic_linker='NetBSD (a.out) ld.so'
11402 else
11403 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11404 soname_spec='$libname$release$shared_ext$major'
11405 dynamic_linker='NetBSD ld.elf_so'
11406 fi
11407 shlibpath_var=LD_LIBRARY_PATH
11408 shlibpath_overrides_runpath=yes
11409 hardcode_into_libs=yes
11410 ;;
11411
11412newsos6)
11413 version_type=linux # correct to gnu/linux during the next big refactor
11414 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11415 shlibpath_var=LD_LIBRARY_PATH
11416 shlibpath_overrides_runpath=yes
11417 ;;
11418
11419*nto* | *qnx*)
11420 version_type=qnx
11421 need_lib_prefix=no
11422 need_version=no
11423 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11424 soname_spec='$libname$release$shared_ext$major'
11425 shlibpath_var=LD_LIBRARY_PATH
11426 shlibpath_overrides_runpath=no
11427 hardcode_into_libs=yes
11428 dynamic_linker='ldqnx.so'
11429 ;;
11430
11431openbsd* | bitrig*)
11432 version_type=sunos
11433 sys_lib_dlsearch_path_spec=/usr/lib
11434 need_lib_prefix=no
11435 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11436 need_version=no
11437 else
11438 need_version=yes
11439 fi
11440 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11442 shlibpath_var=LD_LIBRARY_PATH
11443 shlibpath_overrides_runpath=yes
11444 ;;
11445
11446os2*)
11447 libname_spec='$name'
11448 version_type=windows
11449 shrext_cmds=.dll
11450 need_version=no
11451 need_lib_prefix=no
11452 # OS/2 can only load a DLL with a base name of 8 characters or less.
11453 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11454 v=$($ECHO $release$versuffix | tr -d .-);
11455 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11456 $ECHO $n$v`$shared_ext'
11457 library_names_spec='${libname}_dll.$libext'
11458 dynamic_linker='OS/2 ld.exe'
11459 shlibpath_var=BEGINLIBPATH
11460 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11461 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11462 postinstall_cmds='base_file=`basename \$file`~
11463 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11464 dldir=$destdir/`dirname \$dlpath`~
11465 test -d \$dldir || mkdir -p \$dldir~
11466 $install_prog $dir/$dlname \$dldir/$dlname~
11467 chmod a+x \$dldir/$dlname~
11468 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11469 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11470 fi'
11471 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11472 dlpath=$dir/\$dldll~
11473 $RM \$dlpath'
11474 ;;
11475
11476osf3* | osf4* | osf5*)
11477 version_type=osf
11478 need_lib_prefix=no
11479 need_version=no
11480 soname_spec='$libname$release$shared_ext$major'
11481 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11482 shlibpath_var=LD_LIBRARY_PATH
11483 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11484 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11485 ;;
11486
11487rdos*)
11488 dynamic_linker=no
11489 ;;
11490
11491solaris*)
11492 version_type=linux # correct to gnu/linux during the next big refactor
11493 need_lib_prefix=no
11494 need_version=no
11495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11496 soname_spec='$libname$release$shared_ext$major'
11497 shlibpath_var=LD_LIBRARY_PATH
11498 shlibpath_overrides_runpath=yes
11499 hardcode_into_libs=yes
11500 # ldd complains unless libraries are executable
11501 postinstall_cmds='chmod +x $lib'
11502 ;;
11503
11504sunos4*)
11505 version_type=sunos
11506 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11507 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11508 shlibpath_var=LD_LIBRARY_PATH
11509 shlibpath_overrides_runpath=yes
11510 if test yes = "$with_gnu_ld"; then
11511 need_lib_prefix=no
11512 fi
11513 need_version=yes
11514 ;;
11515
11516sysv4 | sysv4.3*)
11517 version_type=linux # correct to gnu/linux during the next big refactor
11518 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11519 soname_spec='$libname$release$shared_ext$major'
11520 shlibpath_var=LD_LIBRARY_PATH
11521 case $host_vendor in
11522 sni)
11523 shlibpath_overrides_runpath=no
11524 need_lib_prefix=no
11525 runpath_var=LD_RUN_PATH
11526 ;;
11527 siemens)
11528 need_lib_prefix=no
11529 ;;
11530 motorola)
11531 need_lib_prefix=no
11532 need_version=no
11533 shlibpath_overrides_runpath=no
11534 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11535 ;;
11536 esac
11537 ;;
11538
11539sysv4*MP*)
11540 if test -d /usr/nec; then
11541 version_type=linux # correct to gnu/linux during the next big refactor
11542 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11543 soname_spec='$libname$shared_ext.$major'
11544 shlibpath_var=LD_LIBRARY_PATH
11545 fi
11546 ;;
11547
11548sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11549 version_type=sco
11550 need_lib_prefix=no
11551 need_version=no
11552 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11553 soname_spec='$libname$release$shared_ext$major'
11554 shlibpath_var=LD_LIBRARY_PATH
11555 shlibpath_overrides_runpath=yes
11556 hardcode_into_libs=yes
11557 if test yes = "$with_gnu_ld"; then
11558 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11559 else
11560 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11561 case $host_os in
11562 sco3.2v5*)
11563 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11564 ;;
11565 esac
11566 fi
11567 sys_lib_dlsearch_path_spec='/usr/lib'
11568 ;;
11569
11570tpf*)
11571 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11572 version_type=linux # correct to gnu/linux during the next big refactor
11573 need_lib_prefix=no
11574 need_version=no
11575 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11576 shlibpath_var=LD_LIBRARY_PATH
11577 shlibpath_overrides_runpath=no
11578 hardcode_into_libs=yes
11579 ;;
11580
11581uts4*)
11582 version_type=linux # correct to gnu/linux during the next big refactor
11583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11584 soname_spec='$libname$release$shared_ext$major'
11585 shlibpath_var=LD_LIBRARY_PATH
11586 ;;
11587
11588*)
11589 dynamic_linker=no
11590 ;;
11591esac
11592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11593$as_echo "$dynamic_linker" >&6; }
11594test no = "$dynamic_linker" && can_build_shared=no
11595
11596variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11597if test yes = "$GCC"; then
11598 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11599fi
11600
11601if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11602 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11603fi
11604
11605if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11606 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11607fi
11608
11609# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11610configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11611
11612# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11613func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11614
11615# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11616configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11715$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11716hardcode_action=
11717if test -n "$hardcode_libdir_flag_spec" ||
11718 test -n "$runpath_var" ||
11719 test yes = "$hardcode_automatic"; then
11720
11721 # We can hardcode non-existent directories.
11722 if test no != "$hardcode_direct" &&
11723 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11724 # have to relink, otherwise we might link with an installed library
11725 # when we should be linking with a yet-to-be-installed one
11726 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11727 test no != "$hardcode_minus_L"; then
11728 # Linking always hardcodes the temporary library directory.
11729 hardcode_action=relink
11730 else
11731 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11732 hardcode_action=immediate
11733 fi
11734else
11735 # We cannot hardcode anything, or else we can only hardcode existing
11736 # directories.
11737 hardcode_action=unsupported
11738fi
11739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11740$as_echo "$hardcode_action" >&6; }
11741
11742if test relink = "$hardcode_action" ||
11743 test yes = "$inherit_rpath"; then
11744 # Fast installation is not supported
11745 enable_fast_install=no
11746elif test yes = "$shlibpath_overrides_runpath" ||
11747 test no = "$enable_shared"; then
11748 # Fast installation is not necessary
11749 enable_fast_install=needless
11750fi
11751
11752
11753
11754
11755
11756
11757 if test yes != "$enable_dlopen"; then
11758 enable_dlopen=unknown
11759 enable_dlopen_self=unknown
11760 enable_dlopen_self_static=unknown
11761else
11762 lt_cv_dlopen=no
11763 lt_cv_dlopen_libs=
11764
11765 case $host_os in
11766 beos*)
11767 lt_cv_dlopen=load_add_on
11768 lt_cv_dlopen_libs=
11769 lt_cv_dlopen_self=yes
11770 ;;
11771
11772 mingw* | pw32* | cegcc*)
11773 lt_cv_dlopen=LoadLibrary
11774 lt_cv_dlopen_libs=
11775 ;;
11776
11777 cygwin*)
11778 lt_cv_dlopen=dlopen
11779 lt_cv_dlopen_libs=
11780 ;;
11781
11782 darwin*)
11783 # if libdl is installed we need to link against it
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11785$as_echo_n "checking for dlopen in -ldl... " >&6; }
11786if ${ac_cv_lib_dl_dlopen+:} false; then :
11787 $as_echo_n "(cached) " >&6
11788else
11789 ac_check_lib_save_LIBS=$LIBS
11790LIBS="-ldl $LIBS"
11791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11792/* end confdefs.h. */
11793
11794/* Override any GCC internal prototype to avoid an error.
11795 Use char because int might match the return type of a GCC
11796 builtin and then its argument prototype would still apply. */
11797#ifdef __cplusplus
11798extern "C"
11799#endif
11800char dlopen ();
11801int
11802main ()
11803{
11804return dlopen ();
11805 ;
11806 return 0;
11807}
11808_ACEOF
11809if ac_fn_c_try_link "$LINENO"; then :
11810 ac_cv_lib_dl_dlopen=yes
11811else
11812 ac_cv_lib_dl_dlopen=no
11813fi
11814rm -f core conftest.err conftest.$ac_objext \
11815 conftest$ac_exeext conftest.$ac_ext
11816LIBS=$ac_check_lib_save_LIBS
11817fi
11818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11819$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11820if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11821 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11822else
11823
11824 lt_cv_dlopen=dyld
11825 lt_cv_dlopen_libs=
11826 lt_cv_dlopen_self=yes
11827
11828fi
11829
11830 ;;
11831
11832 tpf*)
11833 # Don't try to run any link tests for TPF. We know it's impossible
11834 # because TPF is a cross-compiler, and we know how we open DSOs.
11835 lt_cv_dlopen=dlopen
11836 lt_cv_dlopen_libs=
11837 lt_cv_dlopen_self=no
11838 ;;
11839
11840 *)
11841 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11842if test "x$ac_cv_func_shl_load" = xyes; then :
11843 lt_cv_dlopen=shl_load
11844else
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11846$as_echo_n "checking for shl_load in -ldld... " >&6; }
11847if ${ac_cv_lib_dld_shl_load+:} false; then :
11848 $as_echo_n "(cached) " >&6
11849else
11850 ac_check_lib_save_LIBS=$LIBS
11851LIBS="-ldld $LIBS"
11852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11853/* end confdefs.h. */
11854
11855/* Override any GCC internal prototype to avoid an error.
11856 Use char because int might match the return type of a GCC
11857 builtin and then its argument prototype would still apply. */
11858#ifdef __cplusplus
11859extern "C"
11860#endif
11861char shl_load ();
11862int
11863main ()
11864{
11865return shl_load ();
11866 ;
11867 return 0;
11868}
11869_ACEOF
11870if ac_fn_c_try_link "$LINENO"; then :
11871 ac_cv_lib_dld_shl_load=yes
11872else
11873 ac_cv_lib_dld_shl_load=no
11874fi
11875rm -f core conftest.err conftest.$ac_objext \
11876 conftest$ac_exeext conftest.$ac_ext
11877LIBS=$ac_check_lib_save_LIBS
11878fi
11879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11880$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11881if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11882 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11883else
11884 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11885if test "x$ac_cv_func_dlopen" = xyes; then :
11886 lt_cv_dlopen=dlopen
11887else
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11889$as_echo_n "checking for dlopen in -ldl... " >&6; }
11890if ${ac_cv_lib_dl_dlopen+:} false; then :
11891 $as_echo_n "(cached) " >&6
11892else
11893 ac_check_lib_save_LIBS=$LIBS
11894LIBS="-ldl $LIBS"
11895cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11896/* end confdefs.h. */
11897
11898/* Override any GCC internal prototype to avoid an error.
11899 Use char because int might match the return type of a GCC
11900 builtin and then its argument prototype would still apply. */
11901#ifdef __cplusplus
11902extern "C"
11903#endif
11904char dlopen ();
11905int
11906main ()
11907{
11908return dlopen ();
11909 ;
11910 return 0;
11911}
11912_ACEOF
11913if ac_fn_c_try_link "$LINENO"; then :
11914 ac_cv_lib_dl_dlopen=yes
11915else
11916 ac_cv_lib_dl_dlopen=no
11917fi
11918rm -f core conftest.err conftest.$ac_objext \
11919 conftest$ac_exeext conftest.$ac_ext
11920LIBS=$ac_check_lib_save_LIBS
11921fi
11922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11923$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11924if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11925 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11926else
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11928$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11929if ${ac_cv_lib_svld_dlopen+:} false; then :
11930 $as_echo_n "(cached) " >&6
11931else
11932 ac_check_lib_save_LIBS=$LIBS
11933LIBS="-lsvld $LIBS"
11934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11935/* end confdefs.h. */
11936
11937/* Override any GCC internal prototype to avoid an error.
11938 Use char because int might match the return type of a GCC
11939 builtin and then its argument prototype would still apply. */
11940#ifdef __cplusplus
11941extern "C"
11942#endif
11943char dlopen ();
11944int
11945main ()
11946{
11947return dlopen ();
11948 ;
11949 return 0;
11950}
11951_ACEOF
11952if ac_fn_c_try_link "$LINENO"; then :
11953 ac_cv_lib_svld_dlopen=yes
11954else
11955 ac_cv_lib_svld_dlopen=no
11956fi
11957rm -f core conftest.err conftest.$ac_objext \
11958 conftest$ac_exeext conftest.$ac_ext
11959LIBS=$ac_check_lib_save_LIBS
11960fi
11961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11962$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11963if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11964 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11965else
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11967$as_echo_n "checking for dld_link in -ldld... " >&6; }
11968if ${ac_cv_lib_dld_dld_link+:} false; then :
11969 $as_echo_n "(cached) " >&6
11970else
11971 ac_check_lib_save_LIBS=$LIBS
11972LIBS="-ldld $LIBS"
11973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11974/* end confdefs.h. */
11975
11976/* Override any GCC internal prototype to avoid an error.
11977 Use char because int might match the return type of a GCC
11978 builtin and then its argument prototype would still apply. */
11979#ifdef __cplusplus
11980extern "C"
11981#endif
11982char dld_link ();
11983int
11984main ()
11985{
11986return dld_link ();
11987 ;
11988 return 0;
11989}
11990_ACEOF
11991if ac_fn_c_try_link "$LINENO"; then :
11992 ac_cv_lib_dld_dld_link=yes
11993else
11994 ac_cv_lib_dld_dld_link=no
11995fi
11996rm -f core conftest.err conftest.$ac_objext \
11997 conftest$ac_exeext conftest.$ac_ext
11998LIBS=$ac_check_lib_save_LIBS
11999fi
12000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12001$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12002if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12003 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12004fi
12005
12006
12007fi
12008
12009
12010fi
12011
12012
12013fi
12014
12015
12016fi
12017
12018
12019fi
12020
12021 ;;
12022 esac
12023
12024 if test no = "$lt_cv_dlopen"; then
12025 enable_dlopen=no
12026 else
12027 enable_dlopen=yes
12028 fi
12029
12030 case $lt_cv_dlopen in
12031 dlopen)
12032 save_CPPFLAGS=$CPPFLAGS
12033 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12034
12035 save_LDFLAGS=$LDFLAGS
12036 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12037
12038 save_LIBS=$LIBS
12039 LIBS="$lt_cv_dlopen_libs $LIBS"
12040
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12042$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12043if ${lt_cv_dlopen_self+:} false; then :
12044 $as_echo_n "(cached) " >&6
12045else
12046 if test yes = "$cross_compiling"; then :
12047 lt_cv_dlopen_self=cross
12048else
12049 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12050 lt_status=$lt_dlunknown
12051 cat > conftest.$ac_ext <<_LT_EOF
12052#line $LINENO "configure"
12053#include "confdefs.h"
12054
12055#if HAVE_DLFCN_H
12056#include <dlfcn.h>
12057#endif
12058
12059#include <stdio.h>
12060
12061#ifdef RTLD_GLOBAL
12062# define LT_DLGLOBAL RTLD_GLOBAL
12063#else
12064# ifdef DL_GLOBAL
12065# define LT_DLGLOBAL DL_GLOBAL
12066# else
12067# define LT_DLGLOBAL 0
12068# endif
12069#endif
12070
12071/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12072 find out it does not work in some platform. */
12073#ifndef LT_DLLAZY_OR_NOW
12074# ifdef RTLD_LAZY
12075# define LT_DLLAZY_OR_NOW RTLD_LAZY
12076# else
12077# ifdef DL_LAZY
12078# define LT_DLLAZY_OR_NOW DL_LAZY
12079# else
12080# ifdef RTLD_NOW
12081# define LT_DLLAZY_OR_NOW RTLD_NOW
12082# else
12083# ifdef DL_NOW
12084# define LT_DLLAZY_OR_NOW DL_NOW
12085# else
12086# define LT_DLLAZY_OR_NOW 0
12087# endif
12088# endif
12089# endif
12090# endif
12091#endif
12092
12093/* When -fvisibility=hidden is used, assume the code has been annotated
12094 correspondingly for the symbols needed. */
12095#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12096int fnord () __attribute__((visibility("default")));
12097#endif
12098
12099int fnord () { return 42; }
12100int main ()
12101{
12102 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12103 int status = $lt_dlunknown;
12104
12105 if (self)
12106 {
12107 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12108 else
12109 {
12110 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12111 else puts (dlerror ());
12112 }
12113 /* dlclose (self); */
12114 }
12115 else
12116 puts (dlerror ());
12117
12118 return status;
12119}
12120_LT_EOF
12121 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12122 (eval $ac_link) 2>&5
12123 ac_status=$?
12124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12125 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12126 (./conftest; exit; ) >&5 2>/dev/null
12127 lt_status=$?
12128 case x$lt_status in
12129 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12130 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12131 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12132 esac
12133 else :
12134 # compilation failed
12135 lt_cv_dlopen_self=no
12136 fi
12137fi
12138rm -fr conftest*
12139
12140
12141fi
12142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12143$as_echo "$lt_cv_dlopen_self" >&6; }
12144
12145 if test yes = "$lt_cv_dlopen_self"; then
12146 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12148$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12149if ${lt_cv_dlopen_self_static+:} false; then :
12150 $as_echo_n "(cached) " >&6
12151else
12152 if test yes = "$cross_compiling"; then :
12153 lt_cv_dlopen_self_static=cross
12154else
12155 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12156 lt_status=$lt_dlunknown
12157 cat > conftest.$ac_ext <<_LT_EOF
12158#line $LINENO "configure"
12159#include "confdefs.h"
12160
12161#if HAVE_DLFCN_H
12162#include <dlfcn.h>
12163#endif
12164
12165#include <stdio.h>
12166
12167#ifdef RTLD_GLOBAL
12168# define LT_DLGLOBAL RTLD_GLOBAL
12169#else
12170# ifdef DL_GLOBAL
12171# define LT_DLGLOBAL DL_GLOBAL
12172# else
12173# define LT_DLGLOBAL 0
12174# endif
12175#endif
12176
12177/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12178 find out it does not work in some platform. */
12179#ifndef LT_DLLAZY_OR_NOW
12180# ifdef RTLD_LAZY
12181# define LT_DLLAZY_OR_NOW RTLD_LAZY
12182# else
12183# ifdef DL_LAZY
12184# define LT_DLLAZY_OR_NOW DL_LAZY
12185# else
12186# ifdef RTLD_NOW
12187# define LT_DLLAZY_OR_NOW RTLD_NOW
12188# else
12189# ifdef DL_NOW
12190# define LT_DLLAZY_OR_NOW DL_NOW
12191# else
12192# define LT_DLLAZY_OR_NOW 0
12193# endif
12194# endif
12195# endif
12196# endif
12197#endif
12198
12199/* When -fvisibility=hidden is used, assume the code has been annotated
12200 correspondingly for the symbols needed. */
12201#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12202int fnord () __attribute__((visibility("default")));
12203#endif
12204
12205int fnord () { return 42; }
12206int main ()
12207{
12208 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12209 int status = $lt_dlunknown;
12210
12211 if (self)
12212 {
12213 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12214 else
12215 {
12216 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12217 else puts (dlerror ());
12218 }
12219 /* dlclose (self); */
12220 }
12221 else
12222 puts (dlerror ());
12223
12224 return status;
12225}
12226_LT_EOF
12227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12228 (eval $ac_link) 2>&5
12229 ac_status=$?
12230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12231 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12232 (./conftest; exit; ) >&5 2>/dev/null
12233 lt_status=$?
12234 case x$lt_status in
12235 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12236 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12237 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12238 esac
12239 else :
12240 # compilation failed
12241 lt_cv_dlopen_self_static=no
12242 fi
12243fi
12244rm -fr conftest*
12245
12246
12247fi
12248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12249$as_echo "$lt_cv_dlopen_self_static" >&6; }
12250 fi
12251
12252 CPPFLAGS=$save_CPPFLAGS
12253 LDFLAGS=$save_LDFLAGS
12254 LIBS=$save_LIBS
12255 ;;
12256 esac
12257
12258 case $lt_cv_dlopen_self in
12259 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12260 *) enable_dlopen_self=unknown ;;
12261 esac
12262
12263 case $lt_cv_dlopen_self_static in
12264 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12265 *) enable_dlopen_self_static=unknown ;;
12266 esac
12267fi
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285striplib=
12286old_striplib=
12287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12288$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12289if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12290 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12291 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12293$as_echo "yes" >&6; }
12294else
12295# FIXME - insert some real tests, host_os isn't really good enough
12296 case $host_os in
12297 darwin*)
12298 if test -n "$STRIP"; then
12299 striplib="$STRIP -x"
12300 old_striplib="$STRIP -S"
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12302$as_echo "yes" >&6; }
12303 else
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12305$as_echo "no" >&6; }
12306 fi
12307 ;;
12308 *)
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12310$as_echo "no" >&6; }
12311 ;;
12312 esac
12313fi
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326 # Report what library types will actually be built
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12328$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12330$as_echo "$can_build_shared" >&6; }
12331
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12333$as_echo_n "checking whether to build shared libraries... " >&6; }
12334 test no = "$can_build_shared" && enable_shared=no
12335
12336 # On AIX, shared libraries and static libraries use the same namespace, and
12337 # are all built from PIC.
12338 case $host_os in
12339 aix3*)
12340 test yes = "$enable_shared" && enable_static=no
12341 if test -n "$RANLIB"; then
12342 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12343 postinstall_cmds='$RANLIB $lib'
12344 fi
12345 ;;
12346
12347 aix[4-9]*)
12348 if test ia64 != "$host_cpu"; then
12349 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12350 yes,aix,yes) ;; # shared object as lib.so file only
12351 yes,svr4,*) ;; # shared object as lib.so archive member only
12352 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12353 esac
12354 fi
12355 ;;
12356 esac
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12358$as_echo "$enable_shared" >&6; }
12359
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12361$as_echo_n "checking whether to build static libraries... " >&6; }
12362 # Make sure either enable_shared or enable_static is yes.
12363 test yes = "$enable_shared" || enable_static=yes
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12365$as_echo "$enable_static" >&6; }
12366
12367
12368
12369
12370fi
12371ac_ext=c
12372ac_cpp='$CPP $CPPFLAGS'
12373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12375ac_compiler_gnu=$ac_cv_c_compiler_gnu
12376
12377CC=$lt_save_CC
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393 ac_config_commands="$ac_config_commands libtool"
12394
12395
12396
12397
12398# Only expand once:
12399
12400
12401
12402
12403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12404$as_echo_n "checking whether ln -s works... " >&6; }
12405LN_S=$as_ln_s
12406if test "$LN_S" = "ln -s"; then
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12408$as_echo "yes" >&6; }
12409else
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12411$as_echo "no, using $LN_S" >&6; }
12412fi
12413
12414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
12415$as_echo_n "checking for a sed that does not truncate output... " >&6; }
12416if ${ac_cv_path_SED+:} false; then :
12417 $as_echo_n "(cached) " >&6
12418else
12419 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
12420 for ac_i in 1 2 3 4 5 6 7; do
12421 ac_script="$ac_script$as_nl$ac_script"
12422 done
12423 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
12424 { ac_script=; unset ac_script;}
12425 if test -z "$SED"; then
12426 ac_path_SED_found=false
12427 # Loop through the user's path and test for each of PROGNAME-LIST
12428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12429for as_dir in $PATH
12430do
12431 IFS=$as_save_IFS
12432 test -z "$as_dir" && as_dir=.
12433 for ac_prog in sed gsed; do
12434 for ac_exec_ext in '' $ac_executable_extensions; do
12435 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
12436 as_fn_executable_p "$ac_path_SED" || continue
12437# Check for GNU ac_path_SED and select it if it is found.
12438 # Check for GNU $ac_path_SED
12439case `"$ac_path_SED" --version 2>&1` in
12440*GNU*)
12441 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
12442*)
12443 ac_count=0
12444 $as_echo_n 0123456789 >"conftest.in"
12445 while :
12446 do
12447 cat "conftest.in" "conftest.in" >"conftest.tmp"
12448 mv "conftest.tmp" "conftest.in"
12449 cp "conftest.in" "conftest.nl"
12450 $as_echo '' >> "conftest.nl"
12451 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
12452 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12453 as_fn_arith $ac_count + 1 && ac_count=$as_val
12454 if test $ac_count -gt ${ac_path_SED_max-0}; then
12455 # Best one so far, save it but keep looking for a better one
12456 ac_cv_path_SED="$ac_path_SED"
12457 ac_path_SED_max=$ac_count
12458 fi
12459 # 10*(2^10) chars as input seems more than enough
12460 test $ac_count -gt 10 && break
12461 done
12462 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12463esac
12464
12465 $ac_path_SED_found && break 3
12466 done
12467 done
12468 done
12469IFS=$as_save_IFS
12470 if test -z "$ac_cv_path_SED"; then
12471 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
12472 fi
12473else
12474 ac_cv_path_SED=$SED
12475fi
12476
12477fi
12478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
12479$as_echo "$ac_cv_path_SED" >&6; }
12480 SED="$ac_cv_path_SED"
12481 rm -f conftest.sed
12482
12483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
12484$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
12485if ${ac_cv_path_GREP+:} false; then :
12486 $as_echo_n "(cached) " >&6
12487else
12488 if test -z "$GREP"; then
12489 ac_path_GREP_found=false
12490 # Loop through the user's path and test for each of PROGNAME-LIST
12491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12492for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
12493do
12494 IFS=$as_save_IFS
12495 test -z "$as_dir" && as_dir=.
12496 for ac_prog in grep ggrep; do
12497 for ac_exec_ext in '' $ac_executable_extensions; do
12498 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
12499 as_fn_executable_p "$ac_path_GREP" || continue
12500# Check for GNU ac_path_GREP and select it if it is found.
12501 # Check for GNU $ac_path_GREP
12502case `"$ac_path_GREP" --version 2>&1` in
12503*GNU*)
12504 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
12505*)
12506 ac_count=0
12507 $as_echo_n 0123456789 >"conftest.in"
12508 while :
12509 do
12510 cat "conftest.in" "conftest.in" >"conftest.tmp"
12511 mv "conftest.tmp" "conftest.in"
12512 cp "conftest.in" "conftest.nl"
12513 $as_echo 'GREP' >> "conftest.nl"
12514 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
12515 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12516 as_fn_arith $ac_count + 1 && ac_count=$as_val
12517 if test $ac_count -gt ${ac_path_GREP_max-0}; then
12518 # Best one so far, save it but keep looking for a better one
12519 ac_cv_path_GREP="$ac_path_GREP"
12520 ac_path_GREP_max=$ac_count
12521 fi
12522 # 10*(2^10) chars as input seems more than enough
12523 test $ac_count -gt 10 && break
12524 done
12525 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12526esac
12527
12528 $ac_path_GREP_found && break 3
12529 done
12530 done
12531 done
12532IFS=$as_save_IFS
12533 if test -z "$ac_cv_path_GREP"; then
12534 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12535 fi
12536else
12537 ac_cv_path_GREP=$GREP
12538fi
12539
12540fi
12541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
12542$as_echo "$ac_cv_path_GREP" >&6; }
12543 GREP="$ac_cv_path_GREP"
12544
12545
12546for ac_prog in gawk mawk nawk awk
12547do
12548 # Extract the first word of "$ac_prog", so it can be a program name with args.
12549set dummy $ac_prog; ac_word=$2
12550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12551$as_echo_n "checking for $ac_word... " >&6; }
12552if ${ac_cv_prog_AWK+:} false; then :
12553 $as_echo_n "(cached) " >&6
12554else
12555 if test -n "$AWK"; then
12556 ac_cv_prog_AWK="$AWK" # Let the user override the test.
12557else
12558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12559for as_dir in $PATH
12560do
12561 IFS=$as_save_IFS
12562 test -z "$as_dir" && as_dir=.
12563 for ac_exec_ext in '' $ac_executable_extensions; do
12564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12565 ac_cv_prog_AWK="$ac_prog"
12566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12567 break 2
12568 fi
12569done
12570 done
12571IFS=$as_save_IFS
12572
12573fi
12574fi
12575AWK=$ac_cv_prog_AWK
12576if test -n "$AWK"; then
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12578$as_echo "$AWK" >&6; }
12579else
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581$as_echo "no" >&6; }
12582fi
12583
12584
12585 test -n "$AWK" && break
12586done
12587
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
12589$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
12590if ${ac_cv_prog_cc_c99+:} false; then :
12591 $as_echo_n "(cached) " >&6
12592else
12593 ac_cv_prog_cc_c99=no
12594ac_save_CC=$CC
12595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596/* end confdefs.h. */
12597#include <stdarg.h>
12598#include <stdbool.h>
12599#include <stdlib.h>
12600#include <wchar.h>
12601#include <stdio.h>
12602
12603// Check varargs macros. These examples are taken from C99 6.10.3.5.
12604#define debug(...) fprintf (stderr, __VA_ARGS__)
12605#define showlist(...) puts (#__VA_ARGS__)
12606#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
12607static void
12608test_varargs_macros (void)
12609{
12610 int x = 1234;
12611 int y = 5678;
12612 debug ("Flag");
12613 debug ("X = %d\n", x);
12614 showlist (The first, second, and third items.);
12615 report (x>y, "x is %d but y is %d", x, y);
12616}
12617
12618// Check long long types.
12619#define BIG64 18446744073709551615ull
12620#define BIG32 4294967295ul
12621#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
12622#if !BIG_OK
12623 your preprocessor is broken;
12624#endif
12625#if BIG_OK
12626#else
12627 your preprocessor is broken;
12628#endif
12629static long long int bignum = -9223372036854775807LL;
12630static unsigned long long int ubignum = BIG64;
12631
12632struct incomplete_array
12633{
12634 int datasize;
12635 double data[];
12636};
12637
12638struct named_init {
12639 int number;
12640 const wchar_t *name;
12641 double average;
12642};
12643
12644typedef const char *ccp;
12645
12646static inline int
12647test_restrict (ccp restrict text)
12648{
12649 // See if C++-style comments work.
12650 // Iterate through items via the restricted pointer.
12651 // Also check for declarations in for loops.
12652 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
12653 continue;
12654 return 0;
12655}
12656
12657// Check varargs and va_copy.
12658static void
12659test_varargs (const char *format, ...)
12660{
12661 va_list args;
12662 va_start (args, format);
12663 va_list args_copy;
12664 va_copy (args_copy, args);
12665
12666 const char *str;
12667 int number;
12668 float fnumber;
12669
12670 while (*format)
12671 {
12672 switch (*format++)
12673 {
12674 case 's': // string
12675 str = va_arg (args_copy, const char *);
12676 break;
12677 case 'd': // int
12678 number = va_arg (args_copy, int);
12679 break;
12680 case 'f': // float
12681 fnumber = va_arg (args_copy, double);
12682 break;
12683 default:
12684 break;
12685 }
12686 }
12687 va_end (args_copy);
12688 va_end (args);
12689}
12690
12691int
12692main ()
12693{
12694
12695 // Check bool.
12696 _Bool success = false;
12697
12698 // Check restrict.
12699 if (test_restrict ("String literal") == 0)
12700 success = true;
12701 char *restrict newvar = "Another string";
12702
12703 // Check varargs.
12704 test_varargs ("s, d' f .", "string", 65, 34.234);
12705 test_varargs_macros ();
12706
12707 // Check flexible array members.
12708 struct incomplete_array *ia =
12709 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12710 ia->datasize = 10;
12711 for (int i = 0; i < ia->datasize; ++i)
12712 ia->data[i] = i * 1.234;
12713
12714 // Check named initializers.
12715 struct named_init ni = {
12716 .number = 34,
12717 .name = L"Test wide string",
12718 .average = 543.34343,
12719 };
12720
12721 ni.number = 58;
12722
12723 int dynamic_array[ni.number];
12724 dynamic_array[ni.number - 1] = 543;
12725
12726 // work around unused variable warnings
12727 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12728 || dynamic_array[ni.number - 1] != 543);
12729
12730 ;
12731 return 0;
12732}
12733_ACEOF
12734for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12735do
12736 CC="$ac_save_CC $ac_arg"
12737 if ac_fn_c_try_compile "$LINENO"; then :
12738 ac_cv_prog_cc_c99=$ac_arg
12739fi
12740rm -f core conftest.err conftest.$ac_objext
12741 test "x$ac_cv_prog_cc_c99" != "xno" && break
12742done
12743rm -f conftest.$ac_ext
12744CC=$ac_save_CC
12745
12746fi
12747# AC_CACHE_VAL
12748case "x$ac_cv_prog_cc_c99" in
12749 x)
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12751$as_echo "none needed" >&6; } ;;
12752 xno)
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12754$as_echo "unsupported" >&6; } ;;
12755 *)
12756 CC="$CC $ac_cv_prog_cc_c99"
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12758$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12759esac
12760if test "x$ac_cv_prog_cc_c99" != xno; then :
12761
12762fi
12763
12764
12765
12766# Extract the first word of "m4", so it can be a program name with args.
12767set dummy m4; ac_word=$2
12768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12769$as_echo_n "checking for $ac_word... " >&6; }
12770if ${ac_cv_path_M4+:} false; then :
12771 $as_echo_n "(cached) " >&6
12772else
12773 case $M4 in
12774 [\\/]* | ?:[\\/]*)
12775 ac_cv_path_M4="$M4" # Let the user override the test with a path.
12776 ;;
12777 *)
12778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12779for as_dir in $PATH
12780do
12781 IFS=$as_save_IFS
12782 test -z "$as_dir" && as_dir=.
12783 for ac_exec_ext in '' $ac_executable_extensions; do
12784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12785 ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext"
12786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12787 break 2
12788 fi
12789done
12790 done
12791IFS=$as_save_IFS
12792
12793 ;;
12794esac
12795fi
12796M4=$ac_cv_path_M4
12797if test -n "$M4"; then
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
12799$as_echo "$M4" >&6; }
12800else
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12802$as_echo "no" >&6; }
12803fi
12804
12805
12806# Extract the first word of "xsltproc", so it can be a program name with args.
12807set dummy xsltproc; ac_word=$2
12808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12809$as_echo_n "checking for $ac_word... " >&6; }
12810if ${ac_cv_path_XSLTPROC+:} false; then :
12811 $as_echo_n "(cached) " >&6
12812else
12813 case $XSLTPROC in
12814 [\\/]* | ?:[\\/]*)
12815 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
12816 ;;
12817 *)
12818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12819for as_dir in $PATH
12820do
12821 IFS=$as_save_IFS
12822 test -z "$as_dir" && as_dir=.
12823 for ac_exec_ext in '' $ac_executable_extensions; do
12824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12825 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
12826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12827 break 2
12828 fi
12829done
12830 done
12831IFS=$as_save_IFS
12832
12833 ;;
12834esac
12835fi
12836XSLTPROC=$ac_cv_path_XSLTPROC
12837if test -n "$XSLTPROC"; then
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
12839$as_echo "$XSLTPROC" >&6; }
12840else
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12842$as_echo "no" >&6; }
12843fi
12844
12845
12846
12847if ! ln --relative --help > /dev/null 2>&1; then :
12848 as_fn_error $? "*** ln doesn't support --relative ***" "$LINENO" 5
12849fi
12850
12851# ------------------------------------------------------------------------------
12852# arguments
12853
12854# Check whether --enable-debug was given.
12855if test "${enable_debug+set}" = set; then :
12856 enableval=$enable_debug;
12857fi
12858
12859
12860# ------------------------------------------------------------------------------
12861# toolchain
12862
12863CC_CHECK_FLAGS_APPEND(with_cflags, CFLAGS, \
12864 -pipe \
12865 -Wall \
12866 -Wextra \
12867 -Wno-inline \
12868 -Wundef \
12869 "-Wformat=2 -Wformat-security -Wformat-nonliteral" \
12870 -Wlogical-op \
12871 -Wsign-compare \
12872 -Wmissing-include-dirs \
12873 -Wold-style-definition \
12874 -Wpointer-arith \
12875 -Winit-self \
12876 -Wdeclaration-after-statement \
12877 -Wfloat-equal \
12878 -Wsuggest-attribute=noreturn \
12879 -Wmissing-prototypes \
12880 -Wstrict-prototypes \
12881 -Wredundant-decls \
12882 -Wmissing-declarations \
12883 -Wmissing-noreturn \
12884 -Wendif-labels \
12885 -Wstrict-aliasing=2 \
12886 -Wwrite-strings \
12887 -Wno-long-long \
12888 -Wno-overlength-strings \
12889 -Wno-unused-parameter \
12890 -Wno-missing-field-initializers \
12891 -Wno-unused-result \
12892 -Werror=overflow \
12893 -Wdate-time \
12894 -Wnested-externs \
12895 -ffast-math \
12896 -fno-common \
12897 -fdiagnostics-show-option \
12898 -fno-strict-aliasing \
12899 -fvisibility=hidden \
12900 -ffunction-sections \
12901 -fdata-sections \
12902 -fstack-protector \
12903 -fstack-protector-strong \
12904 -fPIE \
12905 --param=ssp-buffer-size=4)
12906
12907case $CC in #(
12908 *clang*) :
12909 CC_CHECK_FLAGS_APPEND(with_cppflags, CPPFLAGS, \
12910 -Wno-typedef-redefinition \
12911 -Wno-gnu-variable-sized-type-not-at-end \
12912 ) ;; #(
12913 *) :
12914 ;;
12915esac
12916
12917CC_CHECK_FLAGS_APPEND(with_ldflags, LDFLAGS, \
12918 -Wl,--as-needed \
12919 -Wl,--no-undefined \
12920 -Wl,--gc-sections \
12921 -Wl,-z,relro \
12922 -Wl,-z,now \
12923 -pie)
12924
12925if test "x$enable_debug" = "xyes"; then :
12926
12927 CC_CHECK_FLAGS_APPEND(with_cflags, CFLAGS, \
12928 -g \
12929 -O0 \
12930 -ftrapv)
12931
12932else
12933
12934 CC_CHECK_FLAGS_APPEND(with_cppflags, CPPFLAGS, \
12935 -Wp,-D_FORTIFY_SOURCE=2)
12936
12937fi
12938
12939OUR_CFLAGS="$with_cflags"
12940
12941OUR_CPPFLAGS="$with_cppflags"
12942
12943OUR_LDFLAGS="$with_ldflags"
12944
12945
12946# ------------------------------------------------------------------------------
12947# system features
12948
12949# This makes sure pkg.m4 is available.
12950
12951
12952# ------------------------------------------------------------------------------
12953# dependencies
12954
12955
12956
12957
12958
12959
12960
12961
12962if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12963 if test -n "$ac_tool_prefix"; then
12964 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12965set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12967$as_echo_n "checking for $ac_word... " >&6; }
12968if ${ac_cv_path_PKG_CONFIG+:} false; then :
12969 $as_echo_n "(cached) " >&6
12970else
12971 case $PKG_CONFIG in
12972 [\\/]* | ?:[\\/]*)
12973 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12974 ;;
12975 *)
12976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12977for as_dir in $PATH
12978do
12979 IFS=$as_save_IFS
12980 test -z "$as_dir" && as_dir=.
12981 for ac_exec_ext in '' $ac_executable_extensions; do
12982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12983 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12985 break 2
12986 fi
12987done
12988 done
12989IFS=$as_save_IFS
12990
12991 ;;
12992esac
12993fi
12994PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12995if test -n "$PKG_CONFIG"; then
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12997$as_echo "$PKG_CONFIG" >&6; }
12998else
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13000$as_echo "no" >&6; }
13001fi
13002
13003
13004fi
13005if test -z "$ac_cv_path_PKG_CONFIG"; then
13006 ac_pt_PKG_CONFIG=$PKG_CONFIG
13007 # Extract the first word of "pkg-config", so it can be a program name with args.
13008set dummy pkg-config; ac_word=$2
13009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13010$as_echo_n "checking for $ac_word... " >&6; }
13011if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13012 $as_echo_n "(cached) " >&6
13013else
13014 case $ac_pt_PKG_CONFIG in
13015 [\\/]* | ?:[\\/]*)
13016 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13017 ;;
13018 *)
13019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13020for as_dir in $PATH
13021do
13022 IFS=$as_save_IFS
13023 test -z "$as_dir" && as_dir=.
13024 for ac_exec_ext in '' $ac_executable_extensions; do
13025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13026 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13028 break 2
13029 fi
13030done
13031 done
13032IFS=$as_save_IFS
13033
13034 ;;
13035esac
13036fi
13037ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13038if test -n "$ac_pt_PKG_CONFIG"; then
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13040$as_echo "$ac_pt_PKG_CONFIG" >&6; }
13041else
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13043$as_echo "no" >&6; }
13044fi
13045
13046 if test "x$ac_pt_PKG_CONFIG" = x; then
13047 PKG_CONFIG=""
13048 else
13049 case $cross_compiling:$ac_tool_warned in
13050yes:)
13051{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13052$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13053ac_tool_warned=yes ;;
13054esac
13055 PKG_CONFIG=$ac_pt_PKG_CONFIG
13056 fi
13057else
13058 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13059fi
13060
13061fi
13062if test -n "$PKG_CONFIG"; then
13063 _pkg_min_version=0.9.0
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13065$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13066 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13068$as_echo "yes" >&6; }
13069 else
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13071$as_echo "no" >&6; }
13072 PKG_CONFIG=""
13073 fi
13074fi
13075
13076pkg_failed=no
13077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBUDEV" >&5
13078$as_echo_n "checking for LIBUDEV... " >&6; }
13079
13080if test -n "$LIBUDEV_CFLAGS"; then
13081 pkg_cv_LIBUDEV_CFLAGS="$LIBUDEV_CFLAGS"
13082 elif test -n "$PKG_CONFIG"; then
13083 if test -n "$PKG_CONFIG" && \
13084 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
13085 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
13086 ac_status=$?
13087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13088 test $ac_status = 0; }; then
13089 pkg_cv_LIBUDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev" 2>/dev/null`
13090 test "x$?" != "x0" && pkg_failed=yes
13091else
13092 pkg_failed=yes
13093fi
13094 else
13095 pkg_failed=untried
13096fi
13097if test -n "$LIBUDEV_LIBS"; then
13098 pkg_cv_LIBUDEV_LIBS="$LIBUDEV_LIBS"
13099 elif test -n "$PKG_CONFIG"; then
13100 if test -n "$PKG_CONFIG" && \
13101 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev\""; } >&5
13102 ($PKG_CONFIG --exists --print-errors "libudev") 2>&5
13103 ac_status=$?
13104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13105 test $ac_status = 0; }; then
13106 pkg_cv_LIBUDEV_LIBS=`$PKG_CONFIG --libs "libudev" 2>/dev/null`
13107 test "x$?" != "x0" && pkg_failed=yes
13108else
13109 pkg_failed=yes
13110fi
13111 else
13112 pkg_failed=untried
13113fi
13114
13115
13116
13117if test $pkg_failed = yes; then
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13119$as_echo "no" >&6; }
13120
13121if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13122 _pkg_short_errors_supported=yes
13123else
13124 _pkg_short_errors_supported=no
13125fi
13126 if test $_pkg_short_errors_supported = yes; then
13127 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev" 2>&1`
13128 else
13129 LIBUDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev" 2>&1`
13130 fi
13131 # Put the nasty error message in config.log where it belongs
13132 echo "$LIBUDEV_PKG_ERRORS" >&5
13133
13134 as_fn_error $? "Package requirements (libudev) were not met:
13135
13136$LIBUDEV_PKG_ERRORS
13137
13138Consider adjusting the PKG_CONFIG_PATH environment variable if you
13139installed software in a non-standard prefix.
13140
13141Alternatively, you may set the environment variables LIBUDEV_CFLAGS
13142and LIBUDEV_LIBS to avoid the need to call pkg-config.
13143See the pkg-config man page for more details." "$LINENO" 5
13144elif test $pkg_failed = untried; then
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13146$as_echo "no" >&6; }
13147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13148$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13149as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13150is in your PATH or set the PKG_CONFIG environment variable to the full
13151path to pkg-config.
13152
13153Alternatively, you may set the environment variables LIBUDEV_CFLAGS
13154and LIBUDEV_LIBS to avoid the need to call pkg-config.
13155See the pkg-config man page for more details.
13156
13157To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13158See \`config.log' for more details" "$LINENO" 5; }
13159else
13160 LIBUDEV_CFLAGS=$pkg_cv_LIBUDEV_CFLAGS
13161 LIBUDEV_LIBS=$pkg_cv_LIBUDEV_LIBS
13162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13163$as_echo "yes" >&6; }
13164
13165fi
13166
13167pkg_failed=no
13168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSYSTEMD" >&5
13169$as_echo_n "checking for LIBSYSTEMD... " >&6; }
13170
13171if test -n "$LIBSYSTEMD_CFLAGS"; then
13172 pkg_cv_LIBSYSTEMD_CFLAGS="$LIBSYSTEMD_CFLAGS"
13173 elif test -n "$PKG_CONFIG"; then
13174 if test -n "$PKG_CONFIG" && \
13175 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 227\""; } >&5
13176 ($PKG_CONFIG --exists --print-errors "libsystemd >= 227") 2>&5
13177 ac_status=$?
13178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13179 test $ac_status = 0; }; then
13180 pkg_cv_LIBSYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd >= 227" 2>/dev/null`
13181 test "x$?" != "x0" && pkg_failed=yes
13182else
13183 pkg_failed=yes
13184fi
13185 else
13186 pkg_failed=untried
13187fi
13188if test -n "$LIBSYSTEMD_LIBS"; then
13189 pkg_cv_LIBSYSTEMD_LIBS="$LIBSYSTEMD_LIBS"
13190 elif test -n "$PKG_CONFIG"; then
13191 if test -n "$PKG_CONFIG" && \
13192 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd >= 227\""; } >&5
13193 ($PKG_CONFIG --exists --print-errors "libsystemd >= 227") 2>&5
13194 ac_status=$?
13195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13196 test $ac_status = 0; }; then
13197 pkg_cv_LIBSYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd >= 227" 2>/dev/null`
13198 test "x$?" != "x0" && pkg_failed=yes
13199else
13200 pkg_failed=yes
13201fi
13202 else
13203 pkg_failed=untried
13204fi
13205
13206
13207
13208if test $pkg_failed = yes; then
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13210$as_echo "no" >&6; }
13211
13212if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13213 _pkg_short_errors_supported=yes
13214else
13215 _pkg_short_errors_supported=no
13216fi
13217 if test $_pkg_short_errors_supported = yes; then
13218 LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd >= 227" 2>&1`
13219 else
13220 LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd >= 227" 2>&1`
13221 fi
13222 # Put the nasty error message in config.log where it belongs
13223 echo "$LIBSYSTEMD_PKG_ERRORS" >&5
13224
13225 as_fn_error $? "Package requirements (libsystemd >= 227) were not met:
13226
13227$LIBSYSTEMD_PKG_ERRORS
13228
13229Consider adjusting the PKG_CONFIG_PATH environment variable if you
13230installed software in a non-standard prefix.
13231
13232Alternatively, you may set the environment variables LIBSYSTEMD_CFLAGS
13233and LIBSYSTEMD_LIBS to avoid the need to call pkg-config.
13234See the pkg-config man page for more details." "$LINENO" 5
13235elif test $pkg_failed = untried; then
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13237$as_echo "no" >&6; }
13238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13239$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13240as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13241is in your PATH or set the PKG_CONFIG environment variable to the full
13242path to pkg-config.
13243
13244Alternatively, you may set the environment variables LIBSYSTEMD_CFLAGS
13245and LIBSYSTEMD_LIBS to avoid the need to call pkg-config.
13246See the pkg-config man page for more details.
13247
13248To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13249See \`config.log' for more details" "$LINENO" 5; }
13250else
13251 LIBSYSTEMD_CFLAGS=$pkg_cv_LIBSYSTEMD_CFLAGS
13252 LIBSYSTEMD_LIBS=$pkg_cv_LIBSYSTEMD_LIBS
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13254$as_echo "yes" >&6; }
13255
13256fi
13257
13258pkg_failed=no
13259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBRATBAG" >&5
13260$as_echo_n "checking for LIBRATBAG... " >&6; }
13261
13262if test -n "$LIBRATBAG_CFLAGS"; then
13263 pkg_cv_LIBRATBAG_CFLAGS="$LIBRATBAG_CFLAGS"
13264 elif test -n "$PKG_CONFIG"; then
13265 if test -n "$PKG_CONFIG" && \
13266 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libratbag\""; } >&5
13267 ($PKG_CONFIG --exists --print-errors "libratbag") 2>&5
13268 ac_status=$?
13269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13270 test $ac_status = 0; }; then
13271 pkg_cv_LIBRATBAG_CFLAGS=`$PKG_CONFIG --cflags "libratbag" 2>/dev/null`
13272 test "x$?" != "x0" && pkg_failed=yes
13273else
13274 pkg_failed=yes
13275fi
13276 else
13277 pkg_failed=untried
13278fi
13279if test -n "$LIBRATBAG_LIBS"; then
13280 pkg_cv_LIBRATBAG_LIBS="$LIBRATBAG_LIBS"
13281 elif test -n "$PKG_CONFIG"; then
13282 if test -n "$PKG_CONFIG" && \
13283 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libratbag\""; } >&5
13284 ($PKG_CONFIG --exists --print-errors "libratbag") 2>&5
13285 ac_status=$?
13286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13287 test $ac_status = 0; }; then
13288 pkg_cv_LIBRATBAG_LIBS=`$PKG_CONFIG --libs "libratbag" 2>/dev/null`
13289 test "x$?" != "x0" && pkg_failed=yes
13290else
13291 pkg_failed=yes
13292fi
13293 else
13294 pkg_failed=untried
13295fi
13296
13297
13298
13299if test $pkg_failed = yes; then
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13301$as_echo "no" >&6; }
13302
13303if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13304 _pkg_short_errors_supported=yes
13305else
13306 _pkg_short_errors_supported=no
13307fi
13308 if test $_pkg_short_errors_supported = yes; then
13309 LIBRATBAG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libratbag" 2>&1`
13310 else
13311 LIBRATBAG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libratbag" 2>&1`
13312 fi
13313 # Put the nasty error message in config.log where it belongs
13314 echo "$LIBRATBAG_PKG_ERRORS" >&5
13315
13316 as_fn_error $? "Package requirements (libratbag) were not met:
13317
13318$LIBRATBAG_PKG_ERRORS
13319
13320Consider adjusting the PKG_CONFIG_PATH environment variable if you
13321installed software in a non-standard prefix.
13322
13323Alternatively, you may set the environment variables LIBRATBAG_CFLAGS
13324and LIBRATBAG_LIBS to avoid the need to call pkg-config.
13325See the pkg-config man page for more details." "$LINENO" 5
13326elif test $pkg_failed = untried; then
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13328$as_echo "no" >&6; }
13329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13331as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13332is in your PATH or set the PKG_CONFIG environment variable to the full
13333path to pkg-config.
13334
13335Alternatively, you may set the environment variables LIBRATBAG_CFLAGS
13336and LIBRATBAG_LIBS to avoid the need to call pkg-config.
13337See the pkg-config man page for more details.
13338
13339To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13340See \`config.log' for more details" "$LINENO" 5; }
13341else
13342 LIBRATBAG_CFLAGS=$pkg_cv_LIBRATBAG_CFLAGS
13343 LIBRATBAG_LIBS=$pkg_cv_LIBRATBAG_LIBS
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13345$as_echo "yes" >&6; }
13346
13347fi
13348
13349# ------------------------------------------------------------------------------
13350# report
13351
13352ac_config_files="$ac_config_files Makefile"
13353
13354
13355cat >confcache <<\_ACEOF
13356# This file is a shell script that caches the results of configure
13357# tests run on this system so they can be shared between configure
13358# scripts and configure runs, see configure's option --config-cache.
13359# It is not useful on other systems. If it contains results you don't
13360# want to keep, you may remove or edit it.
13361#
13362# config.status only pays attention to the cache file if you give it
13363# the --recheck option to rerun configure.
13364#
13365# `ac_cv_env_foo' variables (set or unset) will be overridden when
13366# loading this file, other *unset* `ac_cv_foo' will be assigned the
13367# following values.
13368
13369_ACEOF
13370
13371# The following way of writing the cache mishandles newlines in values,
13372# but we know of no workaround that is simple, portable, and efficient.
13373# So, we kill variables containing newlines.
13374# Ultrix sh set writes to stderr and can't be redirected directly,
13375# and sets the high bit in the cache file unless we assign to the vars.
13376(
13377 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13378 eval ac_val=\$$ac_var
13379 case $ac_val in #(
13380 *${as_nl}*)
13381 case $ac_var in #(
13382 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13383$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13384 esac
13385 case $ac_var in #(
13386 _ | IFS | as_nl) ;; #(
13387 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13388 *) { eval $ac_var=; unset $ac_var;} ;;
13389 esac ;;
13390 esac
13391 done
13392
13393 (set) 2>&1 |
13394 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13395 *${as_nl}ac_space=\ *)
13396 # `set' does not quote correctly, so add quotes: double-quote
13397 # substitution turns \\\\ into \\, and sed turns \\ into \.
13398 sed -n \
13399 "s/'/'\\\\''/g;
13400 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13401 ;; #(
13402 *)
13403 # `set' quotes correctly as required by POSIX, so do not add quotes.
13404 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13405 ;;
13406 esac |
13407 sort
13408) |
13409 sed '
13410 /^ac_cv_env_/b end
13411 t clear
13412 :clear
13413 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13414 t end
13415 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13416 :end' >>confcache
13417if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13418 if test -w "$cache_file"; then
13419 if test "x$cache_file" != "x/dev/null"; then
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13421$as_echo "$as_me: updating cache $cache_file" >&6;}
13422 if test ! -f "$cache_file" || test -h "$cache_file"; then
13423 cat confcache >"$cache_file"
13424 else
13425 case $cache_file in #(
13426 */* | ?:*)
13427 mv -f confcache "$cache_file"$$ &&
13428 mv -f "$cache_file"$$ "$cache_file" ;; #(
13429 *)
13430 mv -f confcache "$cache_file" ;;
13431 esac
13432 fi
13433 fi
13434 else
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13436$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13437 fi
13438fi
13439rm -f confcache
13440
13441test "x$prefix" = xNONE && prefix=$ac_default_prefix
13442# Let make expand exec_prefix.
13443test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13444
13445DEFS=-DHAVE_CONFIG_H
13446
13447ac_libobjs=
13448ac_ltlibobjs=
13449U=
13450for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13451 # 1. Remove the extension, and $U if already installed.
13452 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13453 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13454 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13455 # will be set to the directory where LIBOBJS objects are built.
13456 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13457 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13458done
13459LIBOBJS=$ac_libobjs
13460
13461LTLIBOBJS=$ac_ltlibobjs
13462
13463
13464if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13465 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
13466Usually this means the macro was only invoked conditionally." "$LINENO" 5
13467fi
13468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
13469$as_echo_n "checking that generated files are newer than configure... " >&6; }
13470 if test -n "$am_sleep_pid"; then
13471 # Hide warnings about reused PIDs.
13472 wait $am_sleep_pid 2>/dev/null
13473 fi
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
13475$as_echo "done" >&6; }
13476if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13477 as_fn_error $? "conditional \"AMDEP\" was never defined.
13478Usually this means the macro was only invoked conditionally." "$LINENO" 5
13479fi
13480if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13481 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13482Usually this means the macro was only invoked conditionally." "$LINENO" 5
13483fi
13484 if test -n "$EXEEXT"; then
13485 am__EXEEXT_TRUE=
13486 am__EXEEXT_FALSE='#'
13487else
13488 am__EXEEXT_TRUE='#'
13489 am__EXEEXT_FALSE=
13490fi
13491
13492
13493: "${CONFIG_STATUS=./config.status}"
13494ac_write_fail=0
13495ac_clean_files_save=$ac_clean_files
13496ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13497{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13498$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13499as_write_fail=0
13500cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13501#! $SHELL
13502# Generated by $as_me.
13503# Run this file to recreate the current configuration.
13504# Compiler output produced by configure, useful for debugging
13505# configure, is in config.log if it exists.
13506
13507debug=false
13508ac_cs_recheck=false
13509ac_cs_silent=false
13510
13511SHELL=\${CONFIG_SHELL-$SHELL}
13512export SHELL
13513_ASEOF
13514cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13515## -------------------- ##
13516## M4sh Initialization. ##
13517## -------------------- ##
13518
13519# Be more Bourne compatible
13520DUALCASE=1; export DUALCASE # for MKS sh
13521if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13522 emulate sh
13523 NULLCMD=:
13524 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13525 # is contrary to our usage. Disable this feature.
13526 alias -g '${1+"$@"}'='"$@"'
13527 setopt NO_GLOB_SUBST
13528else
13529 case `(set -o) 2>/dev/null` in #(
13530 *posix*) :
13531 set -o posix ;; #(
13532 *) :
13533 ;;
13534esac
13535fi
13536
13537
13538as_nl='
13539'
13540export as_nl
13541# Printing a long string crashes Solaris 7 /usr/bin/printf.
13542as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13543as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13544as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13545# Prefer a ksh shell builtin over an external printf program on Solaris,
13546# but without wasting forks for bash or zsh.
13547if test -z "$BASH_VERSION$ZSH_VERSION" \
13548 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13549 as_echo='print -r --'
13550 as_echo_n='print -rn --'
13551elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13552 as_echo='printf %s\n'
13553 as_echo_n='printf %s'
13554else
13555 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13556 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13557 as_echo_n='/usr/ucb/echo -n'
13558 else
13559 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13560 as_echo_n_body='eval
13561 arg=$1;
13562 case $arg in #(
13563 *"$as_nl"*)
13564 expr "X$arg" : "X\\(.*\\)$as_nl";
13565 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13566 esac;
13567 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13568 '
13569 export as_echo_n_body
13570 as_echo_n='sh -c $as_echo_n_body as_echo'
13571 fi
13572 export as_echo_body
13573 as_echo='sh -c $as_echo_body as_echo'
13574fi
13575
13576# The user is always right.
13577if test "${PATH_SEPARATOR+set}" != set; then
13578 PATH_SEPARATOR=:
13579 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13580 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13581 PATH_SEPARATOR=';'
13582 }
13583fi
13584
13585
13586# IFS
13587# We need space, tab and new line, in precisely that order. Quoting is
13588# there to prevent editors from complaining about space-tab.
13589# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13590# splitting by setting IFS to empty value.)
13591IFS=" "" $as_nl"
13592
13593# Find who we are. Look in the path if we contain no directory separator.
13594as_myself=
13595case $0 in #((
13596 *[\\/]* ) as_myself=$0 ;;
13597 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13598for as_dir in $PATH
13599do
13600 IFS=$as_save_IFS
13601 test -z "$as_dir" && as_dir=.
13602 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13603 done
13604IFS=$as_save_IFS
13605
13606 ;;
13607esac
13608# We did not find ourselves, most probably we were run as `sh COMMAND'
13609# in which case we are not to be found in the path.
13610if test "x$as_myself" = x; then
13611 as_myself=$0
13612fi
13613if test ! -f "$as_myself"; then
13614 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13615 exit 1
13616fi
13617
13618# Unset variables that we do not need and which cause bugs (e.g. in
13619# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13620# suppresses any "Segmentation fault" message there. '((' could
13621# trigger a bug in pdksh 5.2.14.
13622for as_var in BASH_ENV ENV MAIL MAILPATH
13623do eval test x\${$as_var+set} = xset \
13624 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13625done
13626PS1='$ '
13627PS2='> '
13628PS4='+ '
13629
13630# NLS nuisances.
13631LC_ALL=C
13632export LC_ALL
13633LANGUAGE=C
13634export LANGUAGE
13635
13636# CDPATH.
13637(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13638
13639
13640# as_fn_error STATUS ERROR [LINENO LOG_FD]
13641# ----------------------------------------
13642# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13643# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13644# script with STATUS, using 1 if that was 0.
13645as_fn_error ()
13646{
13647 as_status=$1; test $as_status -eq 0 && as_status=1
13648 if test "$4"; then
13649 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13650 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13651 fi
13652 $as_echo "$as_me: error: $2" >&2
13653 as_fn_exit $as_status
13654} # as_fn_error
13655
13656
13657# as_fn_set_status STATUS
13658# -----------------------
13659# Set $? to STATUS, without forking.
13660as_fn_set_status ()
13661{
13662 return $1
13663} # as_fn_set_status
13664
13665# as_fn_exit STATUS
13666# -----------------
13667# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13668as_fn_exit ()
13669{
13670 set +e
13671 as_fn_set_status $1
13672 exit $1
13673} # as_fn_exit
13674
13675# as_fn_unset VAR
13676# ---------------
13677# Portably unset VAR.
13678as_fn_unset ()
13679{
13680 { eval $1=; unset $1;}
13681}
13682as_unset=as_fn_unset
13683# as_fn_append VAR VALUE
13684# ----------------------
13685# Append the text in VALUE to the end of the definition contained in VAR. Take
13686# advantage of any shell optimizations that allow amortized linear growth over
13687# repeated appends, instead of the typical quadratic growth present in naive
13688# implementations.
13689if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13690 eval 'as_fn_append ()
13691 {
13692 eval $1+=\$2
13693 }'
13694else
13695 as_fn_append ()
13696 {
13697 eval $1=\$$1\$2
13698 }
13699fi # as_fn_append
13700
13701# as_fn_arith ARG...
13702# ------------------
13703# Perform arithmetic evaluation on the ARGs, and store the result in the
13704# global $as_val. Take advantage of shells that can avoid forks. The arguments
13705# must be portable across $(()) and expr.
13706if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13707 eval 'as_fn_arith ()
13708 {
13709 as_val=$(( $* ))
13710 }'
13711else
13712 as_fn_arith ()
13713 {
13714 as_val=`expr "$@" || test $? -eq 1`
13715 }
13716fi # as_fn_arith
13717
13718
13719if expr a : '\(a\)' >/dev/null 2>&1 &&
13720 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13721 as_expr=expr
13722else
13723 as_expr=false
13724fi
13725
13726if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13727 as_basename=basename
13728else
13729 as_basename=false
13730fi
13731
13732if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13733 as_dirname=dirname
13734else
13735 as_dirname=false
13736fi
13737
13738as_me=`$as_basename -- "$0" ||
13739$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13740 X"$0" : 'X\(//\)$' \| \
13741 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13742$as_echo X/"$0" |
13743 sed '/^.*\/\([^/][^/]*\)\/*$/{
13744 s//\1/
13745 q
13746 }
13747 /^X\/\(\/\/\)$/{
13748 s//\1/
13749 q
13750 }
13751 /^X\/\(\/\).*/{
13752 s//\1/
13753 q
13754 }
13755 s/.*/./; q'`
13756
13757# Avoid depending upon Character Ranges.
13758as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13759as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13760as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13761as_cr_digits='0123456789'
13762as_cr_alnum=$as_cr_Letters$as_cr_digits
13763
13764ECHO_C= ECHO_N= ECHO_T=
13765case `echo -n x` in #(((((
13766-n*)
13767 case `echo 'xy\c'` in
13768 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13769 xy) ECHO_C='\c';;
13770 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13771 ECHO_T=' ';;
13772 esac;;
13773*)
13774 ECHO_N='-n';;
13775esac
13776
13777rm -f conf$$ conf$$.exe conf$$.file
13778if test -d conf$$.dir; then
13779 rm -f conf$$.dir/conf$$.file
13780else
13781 rm -f conf$$.dir
13782 mkdir conf$$.dir 2>/dev/null
13783fi
13784if (echo >conf$$.file) 2>/dev/null; then
13785 if ln -s conf$$.file conf$$ 2>/dev/null; then
13786 as_ln_s='ln -s'
13787 # ... but there are two gotchas:
13788 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13789 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13790 # In both cases, we have to default to `cp -pR'.
13791 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13792 as_ln_s='cp -pR'
13793 elif ln conf$$.file conf$$ 2>/dev/null; then
13794 as_ln_s=ln
13795 else
13796 as_ln_s='cp -pR'
13797 fi
13798else
13799 as_ln_s='cp -pR'
13800fi
13801rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13802rmdir conf$$.dir 2>/dev/null
13803
13804
13805# as_fn_mkdir_p
13806# -------------
13807# Create "$as_dir" as a directory, including parents if necessary.
13808as_fn_mkdir_p ()
13809{
13810
13811 case $as_dir in #(
13812 -*) as_dir=./$as_dir;;
13813 esac
13814 test -d "$as_dir" || eval $as_mkdir_p || {
13815 as_dirs=
13816 while :; do
13817 case $as_dir in #(
13818 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13819 *) as_qdir=$as_dir;;
13820 esac
13821 as_dirs="'$as_qdir' $as_dirs"
13822 as_dir=`$as_dirname -- "$as_dir" ||
13823$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13824 X"$as_dir" : 'X\(//\)[^/]' \| \
13825 X"$as_dir" : 'X\(//\)$' \| \
13826 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13827$as_echo X"$as_dir" |
13828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13829 s//\1/
13830 q
13831 }
13832 /^X\(\/\/\)[^/].*/{
13833 s//\1/
13834 q
13835 }
13836 /^X\(\/\/\)$/{
13837 s//\1/
13838 q
13839 }
13840 /^X\(\/\).*/{
13841 s//\1/
13842 q
13843 }
13844 s/.*/./; q'`
13845 test -d "$as_dir" && break
13846 done
13847 test -z "$as_dirs" || eval "mkdir $as_dirs"
13848 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13849
13850
13851} # as_fn_mkdir_p
13852if mkdir -p . 2>/dev/null; then
13853 as_mkdir_p='mkdir -p "$as_dir"'
13854else
13855 test -d ./-p && rmdir ./-p
13856 as_mkdir_p=false
13857fi
13858
13859
13860# as_fn_executable_p FILE
13861# -----------------------
13862# Test if FILE is an executable regular file.
13863as_fn_executable_p ()
13864{
13865 test -f "$1" && test -x "$1"
13866} # as_fn_executable_p
13867as_test_x='test -x'
13868as_executable_p=as_fn_executable_p
13869
13870# Sed expression to map a string onto a valid CPP name.
13871as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13872
13873# Sed expression to map a string onto a valid variable name.
13874as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13875
13876
13877exec 6>&1
13878## ----------------------------------- ##
13879## Main body of $CONFIG_STATUS script. ##
13880## ----------------------------------- ##
13881_ASEOF
13882test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13883
13884cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13885# Save the log message, to keep $0 and so on meaningful, and to
13886# report actual input values of CONFIG_FILES etc. instead of their
13887# values after options handling.
13888ac_log="
13889This file was extended by ratbagd $as_me 1, which was
13890generated by GNU Autoconf 2.69. Invocation command line was
13891
13892 CONFIG_FILES = $CONFIG_FILES
13893 CONFIG_HEADERS = $CONFIG_HEADERS
13894 CONFIG_LINKS = $CONFIG_LINKS
13895 CONFIG_COMMANDS = $CONFIG_COMMANDS
13896 $ $0 $@
13897
13898on `(hostname || uname -n) 2>/dev/null | sed 1q`
13899"
13900
13901_ACEOF
13902
13903case $ac_config_files in *"
13904"*) set x $ac_config_files; shift; ac_config_files=$*;;
13905esac
13906
13907case $ac_config_headers in *"
13908"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13909esac
13910
13911
13912cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13913# Files that config.status was made for.
13914config_files="$ac_config_files"
13915config_headers="$ac_config_headers"
13916config_commands="$ac_config_commands"
13917
13918_ACEOF
13919
13920cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13921ac_cs_usage="\
13922\`$as_me' instantiates files and other configuration actions
13923from templates according to the current configuration. Unless the files
13924and actions are specified as TAGs, all are instantiated by default.
13925
13926Usage: $0 [OPTION]... [TAG]...
13927
13928 -h, --help print this help, then exit
13929 -V, --version print version number and configuration settings, then exit
13930 --config print configuration, then exit
13931 -q, --quiet, --silent
13932 do not print progress messages
13933 -d, --debug don't remove temporary files
13934 --recheck update $as_me by reconfiguring in the same conditions
13935 --file=FILE[:TEMPLATE]
13936 instantiate the configuration file FILE
13937 --header=FILE[:TEMPLATE]
13938 instantiate the configuration header FILE
13939
13940Configuration files:
13941$config_files
13942
13943Configuration headers:
13944$config_headers
13945
13946Configuration commands:
13947$config_commands
13948
13949Report bugs to <http://www.github.com/libratbag/ratbagd>.
13950ratbagd home page: <http://www.github.com/libratbag/ratbagd>."
13951
13952_ACEOF
13953cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13954ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13955ac_cs_version="\\
13956ratbagd config.status 1
13957configured by $0, generated by GNU Autoconf 2.69,
13958 with options \\"\$ac_cs_config\\"
13959
13960Copyright (C) 2012 Free Software Foundation, Inc.
13961This config.status script is free software; the Free Software Foundation
13962gives unlimited permission to copy, distribute and modify it."
13963
13964ac_pwd='$ac_pwd'
13965srcdir='$srcdir'
13966INSTALL='$INSTALL'
13967MKDIR_P='$MKDIR_P'
13968AWK='$AWK'
13969test -n "\$AWK" || AWK=awk
13970_ACEOF
13971
13972cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13973# The default lists apply if the user does not specify any file.
13974ac_need_defaults=:
13975while test $# != 0
13976do
13977 case $1 in
13978 --*=?*)
13979 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13980 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13981 ac_shift=:
13982 ;;
13983 --*=)
13984 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13985 ac_optarg=
13986 ac_shift=:
13987 ;;
13988 *)
13989 ac_option=$1
13990 ac_optarg=$2
13991 ac_shift=shift
13992 ;;
13993 esac
13994
13995 case $ac_option in
13996 # Handling of the options.
13997 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13998 ac_cs_recheck=: ;;
13999 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14000 $as_echo "$ac_cs_version"; exit ;;
14001 --config | --confi | --conf | --con | --co | --c )
14002 $as_echo "$ac_cs_config"; exit ;;
14003 --debug | --debu | --deb | --de | --d | -d )
14004 debug=: ;;
14005 --file | --fil | --fi | --f )
14006 $ac_shift
14007 case $ac_optarg in
14008 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14009 '') as_fn_error $? "missing file argument" ;;
14010 esac
14011 as_fn_append CONFIG_FILES " '$ac_optarg'"
14012 ac_need_defaults=false;;
14013 --header | --heade | --head | --hea )
14014 $ac_shift
14015 case $ac_optarg in
14016 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14017 esac
14018 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14019 ac_need_defaults=false;;
14020 --he | --h)
14021 # Conflict between --help and --header
14022 as_fn_error $? "ambiguous option: \`$1'
14023Try \`$0 --help' for more information.";;
14024 --help | --hel | -h )
14025 $as_echo "$ac_cs_usage"; exit ;;
14026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14027 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14028 ac_cs_silent=: ;;
14029
14030 # This is an error.
14031 -*) as_fn_error $? "unrecognized option: \`$1'
14032Try \`$0 --help' for more information." ;;
14033
14034 *) as_fn_append ac_config_targets " $1"
14035 ac_need_defaults=false ;;
14036
14037 esac
14038 shift
14039done
14040
14041ac_configure_extra_args=
14042
14043if $ac_cs_silent; then
14044 exec 6>/dev/null
14045 ac_configure_extra_args="$ac_configure_extra_args --silent"
14046fi
14047
14048_ACEOF
14049cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14050if \$ac_cs_recheck; then
14051 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14052 shift
14053 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14054 CONFIG_SHELL='$SHELL'
14055 export CONFIG_SHELL
14056 exec "\$@"
14057fi
14058
14059_ACEOF
14060cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14061exec 5>>config.log
14062{
14063 echo
14064 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14065## Running $as_me. ##
14066_ASBOX
14067 $as_echo "$ac_log"
14068} >&5
14069
14070_ACEOF
14071cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14072#
14073# INIT-COMMANDS
14074#
14075AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14076
14077
14078# The HP-UX ksh and POSIX shell print the target directory to stdout
14079# if CDPATH is set.
14080(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14081
14082sed_quote_subst='$sed_quote_subst'
14083double_quote_subst='$double_quote_subst'
14084delay_variable_subst='$delay_variable_subst'
14085macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14086macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14087enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14088enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14089pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14090enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14091shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
14092SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14093ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14094PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
14095host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14096host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14097host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14098build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14099build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14100build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14101SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14102Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14103GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14104EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14105FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14106LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14107NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14108LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14109max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14110ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14111exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14112lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14113lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14114lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14115lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
14116lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
14117reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14118reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14119OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14120deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14121file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14122file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
14123want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
14124DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
14125sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
14126AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14127AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14128archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
14129STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14130RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14131old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14132old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14133old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14134lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14135CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14136CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14137compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14138GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14139lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14140lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14141lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
14142lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14143lt_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"`'
14144lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
14145nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
14146lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
14147lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
14148objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14149MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14150lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14151lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14152lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14153lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14154lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14155need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14156MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
14157DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14158NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14159LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14160OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14161OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14162libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14163shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14164extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14165archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14166enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14167export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14168whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14169compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14170old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14171old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14172archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14173archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14174module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14175module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14176with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
14177allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
14178no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
14179hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
14180hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
14181hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
14182hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
14183hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
14184hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
14185hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
14186inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
14187link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
14188always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
14189export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
14190exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
14191include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
14192prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
14193postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
14194file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
14195variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
14196need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
14197need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
14198version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
14199runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
14200shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
14201shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
14202libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
14203library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
14204soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
14205install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
14206postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14207postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14208finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
14209finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
14210hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
14211sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
14212configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
14213configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
14214hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
14215enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
14216enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
14217enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
14218old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
14219striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
14220
14221LTCC='$LTCC'
14222LTCFLAGS='$LTCFLAGS'
14223compiler='$compiler_DEFAULT'
14224
14225# A function that is used when there is no print builtin or printf.
14226func_fallback_echo ()
14227{
14228 eval 'cat <<_LTECHO_EOF
14229\$1
14230_LTECHO_EOF'
14231}
14232
14233# Quote evaled strings.
14234for var in SHELL \
14235ECHO \
14236PATH_SEPARATOR \
14237SED \
14238GREP \
14239EGREP \
14240FGREP \
14241LD \
14242NM \
14243LN_S \
14244lt_SP2NL \
14245lt_NL2SP \
14246reload_flag \
14247OBJDUMP \
14248deplibs_check_method \
14249file_magic_cmd \
14250file_magic_glob \
14251want_nocaseglob \
14252DLLTOOL \
14253sharedlib_from_linklib_cmd \
14254AR \
14255AR_FLAGS \
14256archiver_list_spec \
14257STRIP \
14258RANLIB \
14259CC \
14260CFLAGS \
14261compiler \
14262lt_cv_sys_global_symbol_pipe \
14263lt_cv_sys_global_symbol_to_cdecl \
14264lt_cv_sys_global_symbol_to_import \
14265lt_cv_sys_global_symbol_to_c_name_address \
14266lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14267lt_cv_nm_interface \
14268nm_file_list_spec \
14269lt_cv_truncate_bin \
14270lt_prog_compiler_no_builtin_flag \
14271lt_prog_compiler_pic \
14272lt_prog_compiler_wl \
14273lt_prog_compiler_static \
14274lt_cv_prog_compiler_c_o \
14275need_locks \
14276MANIFEST_TOOL \
14277DSYMUTIL \
14278NMEDIT \
14279LIPO \
14280OTOOL \
14281OTOOL64 \
14282shrext_cmds \
14283export_dynamic_flag_spec \
14284whole_archive_flag_spec \
14285compiler_needs_object \
14286with_gnu_ld \
14287allow_undefined_flag \
14288no_undefined_flag \
14289hardcode_libdir_flag_spec \
14290hardcode_libdir_separator \
14291exclude_expsyms \
14292include_expsyms \
14293file_list_spec \
14294variables_saved_for_relink \
14295libname_spec \
14296library_names_spec \
14297soname_spec \
14298install_override_mode \
14299finish_eval \
14300old_striplib \
14301striplib; do
14302 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14303 *[\\\\\\\`\\"\\\$]*)
14304 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14305 ;;
14306 *)
14307 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14308 ;;
14309 esac
14310done
14311
14312# Double-quote double-evaled strings.
14313for var in reload_cmds \
14314old_postinstall_cmds \
14315old_postuninstall_cmds \
14316old_archive_cmds \
14317extract_expsyms_cmds \
14318old_archive_from_new_cmds \
14319old_archive_from_expsyms_cmds \
14320archive_cmds \
14321archive_expsym_cmds \
14322module_cmds \
14323module_expsym_cmds \
14324export_symbols_cmds \
14325prelink_cmds \
14326postlink_cmds \
14327postinstall_cmds \
14328postuninstall_cmds \
14329finish_cmds \
14330sys_lib_search_path_spec \
14331configure_time_dlsearch_path \
14332configure_time_lt_sys_library_path; do
14333 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
14334 *[\\\\\\\`\\"\\\$]*)
14335 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
14336 ;;
14337 *)
14338 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14339 ;;
14340 esac
14341done
14342
14343ac_aux_dir='$ac_aux_dir'
14344
14345# See if we are running on zsh, and set the options that allow our
14346# commands through without removal of \ escapes INIT.
14347if test -n "\${ZSH_VERSION+set}"; then
14348 setopt NO_GLOB_SUBST
14349fi
14350
14351
14352 PACKAGE='$PACKAGE'
14353 VERSION='$VERSION'
14354 RM='$RM'
14355 ofile='$ofile'
14356
14357
14358
14359
14360_ACEOF
14361
14362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14363
14364# Handling of arguments.
14365for ac_config_target in $ac_config_targets
14366do
14367 case $ac_config_target in
14368 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14369 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14370 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14371 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14372
14373 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14374 esac
14375done
14376
14377
14378# If the user did not use the arguments to specify the items to instantiate,
14379# then the envvar interface is used. Set only those that are not.
14380# We use the long form for the default assignment because of an extremely
14381# bizarre bug on SunOS 4.1.3.
14382if $ac_need_defaults; then
14383 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14384 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14385 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14386fi
14387
14388# Have a temporary directory for convenience. Make it in the build tree
14389# simply because there is no reason against having it here, and in addition,
14390# creating and moving files from /tmp can sometimes cause problems.
14391# Hook for its removal unless debugging.
14392# Note that there is a small window in which the directory will not be cleaned:
14393# after its creation but before its name has been assigned to `$tmp'.
14394$debug ||
14395{
14396 tmp= ac_tmp=
14397 trap 'exit_status=$?
14398 : "${ac_tmp:=$tmp}"
14399 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14400' 0
14401 trap 'as_fn_exit 1' 1 2 13 15
14402}
14403# Create a (secure) tmp directory for tmp files.
14404
14405{
14406 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14407 test -d "$tmp"
14408} ||
14409{
14410 tmp=./conf$$-$RANDOM
14411 (umask 077 && mkdir "$tmp")
14412} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14413ac_tmp=$tmp
14414
14415# Set up the scripts for CONFIG_FILES section.
14416# No need to generate them if there are no CONFIG_FILES.
14417# This happens for instance with `./config.status config.h'.
14418if test -n "$CONFIG_FILES"; then
14419
14420
14421ac_cr=`echo X | tr X '\015'`
14422# On cygwin, bash can eat \r inside `` if the user requested igncr.
14423# But we know of no other shell where ac_cr would be empty at this
14424# point, so we can use a bashism as a fallback.
14425if test "x$ac_cr" = x; then
14426 eval ac_cr=\$\'\\r\'
14427fi
14428ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14429if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14430 ac_cs_awk_cr='\\r'
14431else
14432 ac_cs_awk_cr=$ac_cr
14433fi
14434
14435echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14436_ACEOF
14437
14438
14439{
14440 echo "cat >conf$$subs.awk <<_ACEOF" &&
14441 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14442 echo "_ACEOF"
14443} >conf$$subs.sh ||
14444 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14445ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14446ac_delim='%!_!# '
14447for ac_last_try in false false false false false :; do
14448 . ./conf$$subs.sh ||
14449 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14450
14451 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14452 if test $ac_delim_n = $ac_delim_num; then
14453 break
14454 elif $ac_last_try; then
14455 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14456 else
14457 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14458 fi
14459done
14460rm -f conf$$subs.sh
14461
14462cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14463cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14464_ACEOF
14465sed -n '
14466h
14467s/^/S["/; s/!.*/"]=/
14468p
14469g
14470s/^[^!]*!//
14471:repl
14472t repl
14473s/'"$ac_delim"'$//
14474t delim
14475:nl
14476h
14477s/\(.\{148\}\)..*/\1/
14478t more1
14479s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14480p
14481n
14482b repl
14483:more1
14484s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14485p
14486g
14487s/.\{148\}//
14488t nl
14489:delim
14490h
14491s/\(.\{148\}\)..*/\1/
14492t more2
14493s/["\\]/\\&/g; s/^/"/; s/$/"/
14494p
14495b
14496:more2
14497s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14498p
14499g
14500s/.\{148\}//
14501t delim
14502' <conf$$subs.awk | sed '
14503/^[^""]/{
14504 N
14505 s/\n//
14506}
14507' >>$CONFIG_STATUS || ac_write_fail=1
14508rm -f conf$$subs.awk
14509cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14510_ACAWK
14511cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14512 for (key in S) S_is_set[key] = 1
14513 FS = ""
14514
14515}
14516{
14517 line = $ 0
14518 nfields = split(line, field, "@")
14519 substed = 0
14520 len = length(field[1])
14521 for (i = 2; i < nfields; i++) {
14522 key = field[i]
14523 keylen = length(key)
14524 if (S_is_set[key]) {
14525 value = S[key]
14526 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14527 len += length(value) + length(field[++i])
14528 substed = 1
14529 } else
14530 len += 1 + keylen
14531 }
14532
14533 print line
14534}
14535
14536_ACAWK
14537_ACEOF
14538cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14539if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14540 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14541else
14542 cat
14543fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14544 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14545_ACEOF
14546
14547# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14548# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14549# trailing colons and then remove the whole line if VPATH becomes empty
14550# (actually we leave an empty line to preserve line numbers).
14551if test "x$srcdir" = x.; then
14552 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14553h
14554s///
14555s/^/:/
14556s/[ ]*$/:/
14557s/:\$(srcdir):/:/g
14558s/:\${srcdir}:/:/g
14559s/:@srcdir@:/:/g
14560s/^:*//
14561s/:*$//
14562x
14563s/\(=[ ]*\).*/\1/
14564G
14565s/\n//
14566s/^[^=]*=[ ]*$//
14567}'
14568fi
14569
14570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14571fi # test -n "$CONFIG_FILES"
14572
14573# Set up the scripts for CONFIG_HEADERS section.
14574# No need to generate them if there are no CONFIG_HEADERS.
14575# This happens for instance with `./config.status Makefile'.
14576if test -n "$CONFIG_HEADERS"; then
14577cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14578BEGIN {
14579_ACEOF
14580
14581# Transform confdefs.h into an awk script `defines.awk', embedded as
14582# here-document in config.status, that substitutes the proper values into
14583# config.h.in to produce config.h.
14584
14585# Create a delimiter string that does not exist in confdefs.h, to ease
14586# handling of long lines.
14587ac_delim='%!_!# '
14588for ac_last_try in false false :; do
14589 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14590 if test -z "$ac_tt"; then
14591 break
14592 elif $ac_last_try; then
14593 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14594 else
14595 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14596 fi
14597done
14598
14599# For the awk script, D is an array of macro values keyed by name,
14600# likewise P contains macro parameters if any. Preserve backslash
14601# newline sequences.
14602
14603ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14604sed -n '
14605s/.\{148\}/&'"$ac_delim"'/g
14606t rset
14607:rset
14608s/^[ ]*#[ ]*define[ ][ ]*/ /
14609t def
14610d
14611:def
14612s/\\$//
14613t bsnl
14614s/["\\]/\\&/g
14615s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14616D["\1"]=" \3"/p
14617s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14618d
14619:bsnl
14620s/["\\]/\\&/g
14621s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14622D["\1"]=" \3\\\\\\n"\\/p
14623t cont
14624s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14625t cont
14626d
14627:cont
14628n
14629s/.\{148\}/&'"$ac_delim"'/g
14630t clear
14631:clear
14632s/\\$//
14633t bsnlc
14634s/["\\]/\\&/g; s/^/"/; s/$/"/p
14635d
14636:bsnlc
14637s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14638b cont
14639' <confdefs.h | sed '
14640s/'"$ac_delim"'/"\\\
14641"/g' >>$CONFIG_STATUS || ac_write_fail=1
14642
14643cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14644 for (key in D) D_is_set[key] = 1
14645 FS = ""
14646}
14647/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14648 line = \$ 0
14649 split(line, arg, " ")
14650 if (arg[1] == "#") {
14651 defundef = arg[2]
14652 mac1 = arg[3]
14653 } else {
14654 defundef = substr(arg[1], 2)
14655 mac1 = arg[2]
14656 }
14657 split(mac1, mac2, "(") #)
14658 macro = mac2[1]
14659 prefix = substr(line, 1, index(line, defundef) - 1)
14660 if (D_is_set[macro]) {
14661 # Preserve the white space surrounding the "#".
14662 print prefix "define", macro P[macro] D[macro]
14663 next
14664 } else {
14665 # Replace #undef with comments. This is necessary, for example,
14666 # in the case of _POSIX_SOURCE, which is predefined and required
14667 # on some systems where configure will not decide to define it.
14668 if (defundef == "undef") {
14669 print "/*", prefix defundef, macro, "*/"
14670 next
14671 }
14672 }
14673}
14674{ print }
14675_ACAWK
14676_ACEOF
14677cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14678 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14679fi # test -n "$CONFIG_HEADERS"
14680
14681
14682eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14683shift
14684for ac_tag
14685do
14686 case $ac_tag in
14687 :[FHLC]) ac_mode=$ac_tag; continue;;
14688 esac
14689 case $ac_mode$ac_tag in
14690 :[FHL]*:*);;
14691 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14692 :[FH]-) ac_tag=-:-;;
14693 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14694 esac
14695 ac_save_IFS=$IFS
14696 IFS=:
14697 set x $ac_tag
14698 IFS=$ac_save_IFS
14699 shift
14700 ac_file=$1
14701 shift
14702
14703 case $ac_mode in
14704 :L) ac_source=$1;;
14705 :[FH])
14706 ac_file_inputs=
14707 for ac_f
14708 do
14709 case $ac_f in
14710 -) ac_f="$ac_tmp/stdin";;
14711 *) # Look for the file first in the build tree, then in the source tree
14712 # (if the path is not absolute). The absolute path cannot be DOS-style,
14713 # because $ac_f cannot contain `:'.
14714 test -f "$ac_f" ||
14715 case $ac_f in
14716 [\\/$]*) false;;
14717 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14718 esac ||
14719 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14720 esac
14721 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14722 as_fn_append ac_file_inputs " '$ac_f'"
14723 done
14724
14725 # Let's still pretend it is `configure' which instantiates (i.e., don't
14726 # use $as_me), people would be surprised to read:
14727 # /* config.h. Generated by config.status. */
14728 configure_input='Generated from '`
14729 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14730 `' by configure.'
14731 if test x"$ac_file" != x-; then
14732 configure_input="$ac_file. $configure_input"
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14734$as_echo "$as_me: creating $ac_file" >&6;}
14735 fi
14736 # Neutralize special characters interpreted by sed in replacement strings.
14737 case $configure_input in #(
14738 *\&* | *\|* | *\\* )
14739 ac_sed_conf_input=`$as_echo "$configure_input" |
14740 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14741 *) ac_sed_conf_input=$configure_input;;
14742 esac
14743
14744 case $ac_tag in
14745 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14746 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14747 esac
14748 ;;
14749 esac
14750
14751 ac_dir=`$as_dirname -- "$ac_file" ||
14752$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14753 X"$ac_file" : 'X\(//\)[^/]' \| \
14754 X"$ac_file" : 'X\(//\)$' \| \
14755 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14756$as_echo X"$ac_file" |
14757 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14758 s//\1/
14759 q
14760 }
14761 /^X\(\/\/\)[^/].*/{
14762 s//\1/
14763 q
14764 }
14765 /^X\(\/\/\)$/{
14766 s//\1/
14767 q
14768 }
14769 /^X\(\/\).*/{
14770 s//\1/
14771 q
14772 }
14773 s/.*/./; q'`
14774 as_dir="$ac_dir"; as_fn_mkdir_p
14775 ac_builddir=.
14776
14777case "$ac_dir" in
14778.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14779*)
14780 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14781 # A ".." for each directory in $ac_dir_suffix.
14782 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14783 case $ac_top_builddir_sub in
14784 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14785 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14786 esac ;;
14787esac
14788ac_abs_top_builddir=$ac_pwd
14789ac_abs_builddir=$ac_pwd$ac_dir_suffix
14790# for backward compatibility:
14791ac_top_builddir=$ac_top_build_prefix
14792
14793case $srcdir in
14794 .) # We are building in place.
14795 ac_srcdir=.
14796 ac_top_srcdir=$ac_top_builddir_sub
14797 ac_abs_top_srcdir=$ac_pwd ;;
14798 [\\/]* | ?:[\\/]* ) # Absolute name.
14799 ac_srcdir=$srcdir$ac_dir_suffix;
14800 ac_top_srcdir=$srcdir
14801 ac_abs_top_srcdir=$srcdir ;;
14802 *) # Relative name.
14803 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14804 ac_top_srcdir=$ac_top_build_prefix$srcdir
14805 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14806esac
14807ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14808
14809
14810 case $ac_mode in
14811 :F)
14812 #
14813 # CONFIG_FILE
14814 #
14815
14816 case $INSTALL in
14817 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14818 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14819 esac
14820 ac_MKDIR_P=$MKDIR_P
14821 case $MKDIR_P in
14822 [\\/$]* | ?:[\\/]* ) ;;
14823 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14824 esac
14825_ACEOF
14826
14827cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14828# If the template does not know about datarootdir, expand it.
14829# FIXME: This hack should be removed a few years after 2.60.
14830ac_datarootdir_hack=; ac_datarootdir_seen=
14831ac_sed_dataroot='
14832/datarootdir/ {
14833 p
14834 q
14835}
14836/@datadir@/p
14837/@docdir@/p
14838/@infodir@/p
14839/@localedir@/p
14840/@mandir@/p'
14841case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14842*datarootdir*) ac_datarootdir_seen=yes;;
14843*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14845$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14846_ACEOF
14847cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14848 ac_datarootdir_hack='
14849 s&@datadir@&$datadir&g
14850 s&@docdir@&$docdir&g
14851 s&@infodir@&$infodir&g
14852 s&@localedir@&$localedir&g
14853 s&@mandir@&$mandir&g
14854 s&\\\${datarootdir}&$datarootdir&g' ;;
14855esac
14856_ACEOF
14857
14858# Neutralize VPATH when `$srcdir' = `.'.
14859# Shell code in configure.ac might set extrasub.
14860# FIXME: do we really want to maintain this feature?
14861cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14862ac_sed_extra="$ac_vpsub
14863$extrasub
14864_ACEOF
14865cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14866:t
14867/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14868s|@configure_input@|$ac_sed_conf_input|;t t
14869s&@top_builddir@&$ac_top_builddir_sub&;t t
14870s&@top_build_prefix@&$ac_top_build_prefix&;t t
14871s&@srcdir@&$ac_srcdir&;t t
14872s&@abs_srcdir@&$ac_abs_srcdir&;t t
14873s&@top_srcdir@&$ac_top_srcdir&;t t
14874s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14875s&@builddir@&$ac_builddir&;t t
14876s&@abs_builddir@&$ac_abs_builddir&;t t
14877s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14878s&@INSTALL@&$ac_INSTALL&;t t
14879s&@MKDIR_P@&$ac_MKDIR_P&;t t
14880$ac_datarootdir_hack
14881"
14882eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14883 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14884
14885test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14886 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14887 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14888 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14890which seems to be undefined. Please make sure it is defined" >&5
14891$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14892which seems to be undefined. Please make sure it is defined" >&2;}
14893
14894 rm -f "$ac_tmp/stdin"
14895 case $ac_file in
14896 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14897 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14898 esac \
14899 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14900 ;;
14901 :H)
14902 #
14903 # CONFIG_HEADER
14904 #
14905 if test x"$ac_file" != x-; then
14906 {
14907 $as_echo "/* $configure_input */" \
14908 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14909 } >"$ac_tmp/config.h" \
14910 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14911 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14913$as_echo "$as_me: $ac_file is unchanged" >&6;}
14914 else
14915 rm -f "$ac_file"
14916 mv "$ac_tmp/config.h" "$ac_file" \
14917 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14918 fi
14919 else
14920 $as_echo "/* $configure_input */" \
14921 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14922 || as_fn_error $? "could not create -" "$LINENO" 5
14923 fi
14924# Compute "$ac_file"'s index in $config_headers.
14925_am_arg="$ac_file"
14926_am_stamp_count=1
14927for _am_header in $config_headers :; do
14928 case $_am_header in
14929 $_am_arg | $_am_arg:* )
14930 break ;;
14931 * )
14932 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14933 esac
14934done
14935echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14936$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14937 X"$_am_arg" : 'X\(//\)[^/]' \| \
14938 X"$_am_arg" : 'X\(//\)$' \| \
14939 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14940$as_echo X"$_am_arg" |
14941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14942 s//\1/
14943 q
14944 }
14945 /^X\(\/\/\)[^/].*/{
14946 s//\1/
14947 q
14948 }
14949 /^X\(\/\/\)$/{
14950 s//\1/
14951 q
14952 }
14953 /^X\(\/\).*/{
14954 s//\1/
14955 q
14956 }
14957 s/.*/./; q'`/stamp-h$_am_stamp_count
14958 ;;
14959
14960 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14961$as_echo "$as_me: executing $ac_file commands" >&6;}
14962 ;;
14963 esac
14964
14965
14966 case $ac_file$ac_mode in
14967 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14968 # Older Autoconf quotes --file arguments for eval, but not when files
14969 # are listed without --file. Let's play safe and only enable the eval
14970 # if we detect the quoting.
14971 case $CONFIG_FILES in
14972 *\'*) eval set x "$CONFIG_FILES" ;;
14973 *) set x $CONFIG_FILES ;;
14974 esac
14975 shift
14976 for mf
14977 do
14978 # Strip MF so we end up with the name of the file.
14979 mf=`echo "$mf" | sed -e 's/:.*$//'`
14980 # Check whether this is an Automake generated Makefile or not.
14981 # We used to match only the files named 'Makefile.in', but
14982 # some people rename them; so instead we look at the file content.
14983 # Grep'ing the first line is not enough: some people post-process
14984 # each Makefile.in and add a new line on top of each file to say so.
14985 # Grep'ing the whole file is not good either: AIX grep has a line
14986 # limit of 2048, but all sed's we know have understand at least 4000.
14987 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14988 dirpart=`$as_dirname -- "$mf" ||
14989$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14990 X"$mf" : 'X\(//\)[^/]' \| \
14991 X"$mf" : 'X\(//\)$' \| \
14992 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14993$as_echo X"$mf" |
14994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14995 s//\1/
14996 q
14997 }
14998 /^X\(\/\/\)[^/].*/{
14999 s//\1/
15000 q
15001 }
15002 /^X\(\/\/\)$/{
15003 s//\1/
15004 q
15005 }
15006 /^X\(\/\).*/{
15007 s//\1/
15008 q
15009 }
15010 s/.*/./; q'`
15011 else
15012 continue
15013 fi
15014 # Extract the definition of DEPDIR, am__include, and am__quote
15015 # from the Makefile without running 'make'.
15016 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15017 test -z "$DEPDIR" && continue
15018 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15019 test -z "$am__include" && continue
15020 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15021 # Find all dependency output files, they are included files with
15022 # $(DEPDIR) in their names. We invoke sed twice because it is the
15023 # simplest approach to changing $(DEPDIR) to its actual value in the
15024 # expansion.
15025 for file in `sed -n "
15026 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15027 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
15028 # Make sure the directory exists.
15029 test -f "$dirpart/$file" && continue
15030 fdir=`$as_dirname -- "$file" ||
15031$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15032 X"$file" : 'X\(//\)[^/]' \| \
15033 X"$file" : 'X\(//\)$' \| \
15034 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15035$as_echo X"$file" |
15036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15037 s//\1/
15038 q
15039 }
15040 /^X\(\/\/\)[^/].*/{
15041 s//\1/
15042 q
15043 }
15044 /^X\(\/\/\)$/{
15045 s//\1/
15046 q
15047 }
15048 /^X\(\/\).*/{
15049 s//\1/
15050 q
15051 }
15052 s/.*/./; q'`
15053 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15054 # echo "creating $dirpart/$file"
15055 echo '# dummy' > "$dirpart/$file"
15056 done
15057 done
15058}
15059 ;;
15060 "libtool":C)
15061
15062 # See if we are running on zsh, and set the options that allow our
15063 # commands through without removal of \ escapes.
15064 if test -n "${ZSH_VERSION+set}"; then
15065 setopt NO_GLOB_SUBST
15066 fi
15067
15068 cfgfile=${ofile}T
15069 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15070 $RM "$cfgfile"
15071
15072 cat <<_LT_EOF >> "$cfgfile"
15073#! $SHELL
15074# Generated automatically by $as_me ($PACKAGE) $VERSION
15075# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15076# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15077
15078# Provide generalized library-building support services.
15079# Written by Gordon Matzigkeit, 1996
15080
15081# Copyright (C) 2014 Free Software Foundation, Inc.
15082# This is free software; see the source for copying conditions. There is NO
15083# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15084
15085# GNU Libtool is free software; you can redistribute it and/or modify
15086# it under the terms of the GNU General Public License as published by
15087# the Free Software Foundation; either version 2 of of the License, or
15088# (at your option) any later version.
15089#
15090# As a special exception to the GNU General Public License, if you
15091# distribute this file as part of a program or library that is built
15092# using GNU Libtool, you may include this file under the same
15093# distribution terms that you use for the rest of that program.
15094#
15095# GNU Libtool is distributed in the hope that it will be useful, but
15096# WITHOUT ANY WARRANTY; without even the implied warranty of
15097# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15098# GNU General Public License for more details.
15099#
15100# You should have received a copy of the GNU General Public License
15101# along with this program. If not, see <http://www.gnu.org/licenses/>.
15102
15103
15104# The names of the tagged configurations supported by this script.
15105available_tags=''
15106
15107# Configured defaults for sys_lib_dlsearch_path munging.
15108: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
15109
15110# ### BEGIN LIBTOOL CONFIG
15111
15112# Which release of libtool.m4 was used?
15113macro_version=$macro_version
15114macro_revision=$macro_revision
15115
15116# Whether or not to build static libraries.
15117build_old_libs=$enable_static
15118
15119# Whether or not to build shared libraries.
15120build_libtool_libs=$enable_shared
15121
15122# What type of objects to build.
15123pic_mode=$pic_mode
15124
15125# Whether or not to optimize for fast installation.
15126fast_install=$enable_fast_install
15127
15128# Shared archive member basename,for filename based shared library versioning on AIX.
15129shared_archive_member_spec=$shared_archive_member_spec
15130
15131# Shell to use when invoking shell scripts.
15132SHELL=$lt_SHELL
15133
15134# An echo program that protects backslashes.
15135ECHO=$lt_ECHO
15136
15137# The PATH separator for the build system.
15138PATH_SEPARATOR=$lt_PATH_SEPARATOR
15139
15140# The host system.
15141host_alias=$host_alias
15142host=$host
15143host_os=$host_os
15144
15145# The build system.
15146build_alias=$build_alias
15147build=$build
15148build_os=$build_os
15149
15150# A sed program that does not truncate output.
15151SED=$lt_SED
15152
15153# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15154Xsed="\$SED -e 1s/^X//"
15155
15156# A grep program that handles long lines.
15157GREP=$lt_GREP
15158
15159# An ERE matcher.
15160EGREP=$lt_EGREP
15161
15162# A literal string matcher.
15163FGREP=$lt_FGREP
15164
15165# A BSD- or MS-compatible name lister.
15166NM=$lt_NM
15167
15168# Whether we need soft or hard links.
15169LN_S=$lt_LN_S
15170
15171# What is the maximum length of a command?
15172max_cmd_len=$max_cmd_len
15173
15174# Object file suffix (normally "o").
15175objext=$ac_objext
15176
15177# Executable file suffix (normally "").
15178exeext=$exeext
15179
15180# whether the shell understands "unset".
15181lt_unset=$lt_unset
15182
15183# turn spaces into newlines.
15184SP2NL=$lt_lt_SP2NL
15185
15186# turn newlines into spaces.
15187NL2SP=$lt_lt_NL2SP
15188
15189# convert \$build file names to \$host format.
15190to_host_file_cmd=$lt_cv_to_host_file_cmd
15191
15192# convert \$build files to toolchain format.
15193to_tool_file_cmd=$lt_cv_to_tool_file_cmd
15194
15195# An object symbol dumper.
15196OBJDUMP=$lt_OBJDUMP
15197
15198# Method to check whether dependent libraries are shared objects.
15199deplibs_check_method=$lt_deplibs_check_method
15200
15201# Command to use when deplibs_check_method = "file_magic".
15202file_magic_cmd=$lt_file_magic_cmd
15203
15204# How to find potential files when deplibs_check_method = "file_magic".
15205file_magic_glob=$lt_file_magic_glob
15206
15207# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
15208want_nocaseglob=$lt_want_nocaseglob
15209
15210# DLL creation program.
15211DLLTOOL=$lt_DLLTOOL
15212
15213# Command to associate shared and link libraries.
15214sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
15215
15216# The archiver.
15217AR=$lt_AR
15218
15219# Flags to create an archive.
15220AR_FLAGS=$lt_AR_FLAGS
15221
15222# How to feed a file listing to the archiver.
15223archiver_list_spec=$lt_archiver_list_spec
15224
15225# A symbol stripping program.
15226STRIP=$lt_STRIP
15227
15228# Commands used to install an old-style archive.
15229RANLIB=$lt_RANLIB
15230old_postinstall_cmds=$lt_old_postinstall_cmds
15231old_postuninstall_cmds=$lt_old_postuninstall_cmds
15232
15233# Whether to use a lock for old archive extraction.
15234lock_old_archive_extraction=$lock_old_archive_extraction
15235
15236# A C compiler.
15237LTCC=$lt_CC
15238
15239# LTCC compiler flags.
15240LTCFLAGS=$lt_CFLAGS
15241
15242# Take the output of nm and produce a listing of raw symbols and C names.
15243global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15244
15245# Transform the output of nm in a proper C declaration.
15246global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15247
15248# Transform the output of nm into a list of symbols to manually relocate.
15249global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
15250
15251# Transform the output of nm in a C name address pair.
15252global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15253
15254# Transform the output of nm in a C name address pair when lib prefix is needed.
15255global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15256
15257# The name lister interface.
15258nm_interface=$lt_lt_cv_nm_interface
15259
15260# Specify filename containing input files for \$NM.
15261nm_file_list_spec=$lt_nm_file_list_spec
15262
15263# The root where to search for dependent libraries,and where our libraries should be installed.
15264lt_sysroot=$lt_sysroot
15265
15266# Command to truncate a binary pipe.
15267lt_truncate_bin=$lt_lt_cv_truncate_bin
15268
15269# The name of the directory that contains temporary libtool files.
15270objdir=$objdir
15271
15272# Used to examine libraries when file_magic_cmd begins with "file".
15273MAGIC_CMD=$MAGIC_CMD
15274
15275# Must we lock files when doing compilation?
15276need_locks=$lt_need_locks
15277
15278# Manifest tool.
15279MANIFEST_TOOL=$lt_MANIFEST_TOOL
15280
15281# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15282DSYMUTIL=$lt_DSYMUTIL
15283
15284# Tool to change global to local symbols on Mac OS X.
15285NMEDIT=$lt_NMEDIT
15286
15287# Tool to manipulate fat objects and archives on Mac OS X.
15288LIPO=$lt_LIPO
15289
15290# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15291OTOOL=$lt_OTOOL
15292
15293# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15294OTOOL64=$lt_OTOOL64
15295
15296# Old archive suffix (normally "a").
15297libext=$libext
15298
15299# Shared library suffix (normally ".so").
15300shrext_cmds=$lt_shrext_cmds
15301
15302# The commands to extract the exported symbol list from a shared archive.
15303extract_expsyms_cmds=$lt_extract_expsyms_cmds
15304
15305# Variables whose values should be saved in libtool wrapper scripts and
15306# restored at link time.
15307variables_saved_for_relink=$lt_variables_saved_for_relink
15308
15309# Do we need the "lib" prefix for modules?
15310need_lib_prefix=$need_lib_prefix
15311
15312# Do we need a version for libraries?
15313need_version=$need_version
15314
15315# Library versioning type.
15316version_type=$version_type
15317
15318# Shared library runtime path variable.
15319runpath_var=$runpath_var
15320
15321# Shared library path variable.
15322shlibpath_var=$shlibpath_var
15323
15324# Is shlibpath searched before the hard-coded library search path?
15325shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15326
15327# Format of library name prefix.
15328libname_spec=$lt_libname_spec
15329
15330# List of archive names. First name is the real one, the rest are links.
15331# The last name is the one that the linker finds with -lNAME
15332library_names_spec=$lt_library_names_spec
15333
15334# The coded name of the library, if different from the real name.
15335soname_spec=$lt_soname_spec
15336
15337# Permission mode override for installation of shared libraries.
15338install_override_mode=$lt_install_override_mode
15339
15340# Command to use after installation of a shared archive.
15341postinstall_cmds=$lt_postinstall_cmds
15342
15343# Command to use after uninstallation of a shared archive.
15344postuninstall_cmds=$lt_postuninstall_cmds
15345
15346# Commands used to finish a libtool library installation in a directory.
15347finish_cmds=$lt_finish_cmds
15348
15349# As "finish_cmds", except a single script fragment to be evaled but
15350# not shown.
15351finish_eval=$lt_finish_eval
15352
15353# Whether we should hardcode library paths into libraries.
15354hardcode_into_libs=$hardcode_into_libs
15355
15356# Compile-time system search path for libraries.
15357sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15358
15359# Detected run-time system search path for libraries.
15360sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
15361
15362# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
15363configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
15364
15365# Whether dlopen is supported.
15366dlopen_support=$enable_dlopen
15367
15368# Whether dlopen of programs is supported.
15369dlopen_self=$enable_dlopen_self
15370
15371# Whether dlopen of statically linked programs is supported.
15372dlopen_self_static=$enable_dlopen_self_static
15373
15374# Commands to strip libraries.
15375old_striplib=$lt_old_striplib
15376striplib=$lt_striplib
15377
15378
15379# The linker used to build libraries.
15380LD=$lt_LD
15381
15382# How to create reloadable object files.
15383reload_flag=$lt_reload_flag
15384reload_cmds=$lt_reload_cmds
15385
15386# Commands used to build an old-style archive.
15387old_archive_cmds=$lt_old_archive_cmds
15388
15389# A language specific compiler.
15390CC=$lt_compiler
15391
15392# Is the compiler the GNU compiler?
15393with_gcc=$GCC
15394
15395# Compiler flag to turn off builtin functions.
15396no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15397
15398# Additional compiler flags for building library objects.
15399pic_flag=$lt_lt_prog_compiler_pic
15400
15401# How to pass a linker flag through the compiler.
15402wl=$lt_lt_prog_compiler_wl
15403
15404# Compiler flag to prevent dynamic linking.
15405link_static_flag=$lt_lt_prog_compiler_static
15406
15407# Does compiler simultaneously support -c and -o options?
15408compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15409
15410# Whether or not to add -lc for building shared libraries.
15411build_libtool_need_lc=$archive_cmds_need_lc
15412
15413# Whether or not to disallow shared libs when runtime libs are static.
15414allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15415
15416# Compiler flag to allow reflexive dlopens.
15417export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15418
15419# Compiler flag to generate shared objects directly from archives.
15420whole_archive_flag_spec=$lt_whole_archive_flag_spec
15421
15422# Whether the compiler copes with passing no objects directly.
15423compiler_needs_object=$lt_compiler_needs_object
15424
15425# Create an old-style archive from a shared archive.
15426old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15427
15428# Create a temporary old-style archive to link instead of a shared archive.
15429old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15430
15431# Commands used to build a shared archive.
15432archive_cmds=$lt_archive_cmds
15433archive_expsym_cmds=$lt_archive_expsym_cmds
15434
15435# Commands used to build a loadable module if different from building
15436# a shared archive.
15437module_cmds=$lt_module_cmds
15438module_expsym_cmds=$lt_module_expsym_cmds
15439
15440# Whether we are building with GNU ld or not.
15441with_gnu_ld=$lt_with_gnu_ld
15442
15443# Flag that allows shared libraries with undefined symbols to be built.
15444allow_undefined_flag=$lt_allow_undefined_flag
15445
15446# Flag that enforces no undefined symbols.
15447no_undefined_flag=$lt_no_undefined_flag
15448
15449# Flag to hardcode \$libdir into a binary during linking.
15450# This must work even if \$libdir does not exist
15451hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15452
15453# Whether we need a single "-rpath" flag with a separated argument.
15454hardcode_libdir_separator=$lt_hardcode_libdir_separator
15455
15456# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15457# DIR into the resulting binary.
15458hardcode_direct=$hardcode_direct
15459
15460# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
15461# DIR into the resulting binary and the resulting library dependency is
15462# "absolute",i.e impossible to change by setting \$shlibpath_var if the
15463# library is relocated.
15464hardcode_direct_absolute=$hardcode_direct_absolute
15465
15466# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15467# into the resulting binary.
15468hardcode_minus_L=$hardcode_minus_L
15469
15470# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15471# into the resulting binary.
15472hardcode_shlibpath_var=$hardcode_shlibpath_var
15473
15474# Set to "yes" if building a shared library automatically hardcodes DIR
15475# into the library and all subsequent libraries and executables linked
15476# against it.
15477hardcode_automatic=$hardcode_automatic
15478
15479# Set to yes if linker adds runtime paths of dependent libraries
15480# to runtime path list.
15481inherit_rpath=$inherit_rpath
15482
15483# Whether libtool must link a program against all its dependency libraries.
15484link_all_deplibs=$link_all_deplibs
15485
15486# Set to "yes" if exported symbols are required.
15487always_export_symbols=$always_export_symbols
15488
15489# The commands to list exported symbols.
15490export_symbols_cmds=$lt_export_symbols_cmds
15491
15492# Symbols that should not be listed in the preloaded symbols.
15493exclude_expsyms=$lt_exclude_expsyms
15494
15495# Symbols that must always be exported.
15496include_expsyms=$lt_include_expsyms
15497
15498# Commands necessary for linking programs (against libraries) with templates.
15499prelink_cmds=$lt_prelink_cmds
15500
15501# Commands necessary for finishing linking programs.
15502postlink_cmds=$lt_postlink_cmds
15503
15504# Specify filename containing input files.
15505file_list_spec=$lt_file_list_spec
15506
15507# How to hardcode a shared library path into an executable.
15508hardcode_action=$hardcode_action
15509
15510# ### END LIBTOOL CONFIG
15511
15512_LT_EOF
15513
15514 cat <<'_LT_EOF' >> "$cfgfile"
15515
15516# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
15517
15518# func_munge_path_list VARIABLE PATH
15519# -----------------------------------
15520# VARIABLE is name of variable containing _space_ separated list of
15521# directories to be munged by the contents of PATH, which is string
15522# having a format:
15523# "DIR[:DIR]:"
15524# string "DIR[ DIR]" will be prepended to VARIABLE
15525# ":DIR[:DIR]"
15526# string "DIR[ DIR]" will be appended to VARIABLE
15527# "DIRP[:DIRP]::[DIRA:]DIRA"
15528# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
15529# "DIRA[ DIRA]" will be appended to VARIABLE
15530# "DIR[:DIR]"
15531# VARIABLE will be replaced by "DIR[ DIR]"
15532func_munge_path_list ()
15533{
15534 case x$2 in
15535 x)
15536 ;;
15537 *:)
15538 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
15539 ;;
15540 x:*)
15541 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
15542 ;;
15543 *::*)
15544 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
15545 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
15546 ;;
15547 *)
15548 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
15549 ;;
15550 esac
15551}
15552
15553
15554# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
15555func_cc_basename ()
15556{
15557 for cc_temp in $*""; do
15558 case $cc_temp in
15559 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15560 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15561 \-*) ;;
15562 *) break;;
15563 esac
15564 done
15565 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15566}
15567
15568
15569# ### END FUNCTIONS SHARED WITH CONFIGURE
15570
15571_LT_EOF
15572
15573 case $host_os in
15574 aix3*)
15575 cat <<\_LT_EOF >> "$cfgfile"
15576# AIX sometimes has problems with the GCC collect2 program. For some
15577# reason, if we set the COLLECT_NAMES environment variable, the problems
15578# vanish in a puff of smoke.
15579if test set != "${COLLECT_NAMES+set}"; then
15580 COLLECT_NAMES=
15581 export COLLECT_NAMES
15582fi
15583_LT_EOF
15584 ;;
15585 esac
15586
15587
15588ltmain=$ac_aux_dir/ltmain.sh
15589
15590
15591 # We use sed instead of cat because bash on DJGPP gets confused if
15592 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15593 # text mode, it properly converts lines to CR/LF. This bash problem
15594 # is reportedly fixed, but why not run on old versions too?
15595 sed '$q' "$ltmain" >> "$cfgfile" \
15596 || (rm -f "$cfgfile"; exit 1)
15597
15598 mv -f "$cfgfile" "$ofile" ||
15599 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15600 chmod +x "$ofile"
15601
15602 ;;
15603
15604 esac
15605done # for ac_tag
15606
15607
15608as_fn_exit 0
15609_ACEOF
15610ac_clean_files=$ac_clean_files_save
15611
15612test $ac_write_fail = 0 ||
15613 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15614
15615
15616# configure is writing to config.log, and then calls config.status.
15617# config.status does its own redirection, appending to config.log.
15618# Unfortunately, on DOS this fails, as config.log is still kept open
15619# by configure, so config.status won't be able to write to it; its
15620# output is simply discarded. So we exec the FD to /dev/null,
15621# effectively closing config.log, so it can be properly (re)opened and
15622# appended to by config.status. When coming back to configure, we
15623# need to make the FD available again.
15624if test "$no_create" != yes; then
15625 ac_cs_success=:
15626 ac_config_status_args=
15627 test "$silent" = yes &&
15628 ac_config_status_args="$ac_config_status_args --quiet"
15629 exec 5>/dev/null
15630 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15631 exec 5>>config.log
15632 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15633 # would make configure fail if this is the last instruction.
15634 $ac_cs_success || as_fn_exit 1
15635fi
15636if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15638$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15639fi
15640
15641{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
15642 $PACKAGE_NAME $VERSION
15643 debug: ${enable_debug}
15644
15645 prefix: ${prefix}
15646 exec_prefix: ${exec_prefix}
15647 includedir: ${includedir}
15648 libdir: ${libdir}
15649
15650 CFLAGS: ${OUR_CFLAGS} ${CFLAGS}
15651 CPPFLAGS: ${OUR_CPPFLAGS} ${CPPFLAGS}
15652 LDFLAGS: ${OUR_LDFLAGS} ${LDFLAGS}
15653" >&5
15654$as_echo "
15655 $PACKAGE_NAME $VERSION
15656 debug: ${enable_debug}
15657
15658 prefix: ${prefix}
15659 exec_prefix: ${exec_prefix}
15660 includedir: ${includedir}
15661 libdir: ${libdir}
15662
15663 CFLAGS: ${OUR_CFLAGS} ${CFLAGS}
15664 CPPFLAGS: ${OUR_CPPFLAGS} ${CPPFLAGS}
15665 LDFLAGS: ${OUR_LDFLAGS} ${LDFLAGS}
15666" >&6; }