blob: 9cba682b35121f1c9aed601743726831ae8782f2 [file] [log] [blame]
lingjie li2b473282019-06-03 12:56:47 +08001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for meson_display_framework 0.1.
4#
5# Report bugs to <lingjie.li@amlogic.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: lingjie.li@amlogic.com about your system, including any
279$0: error possibly output before this message. Then install
280$0: a modern shell, or manually run the script under such a
281$0: 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='meson_display_framework'
592PACKAGE_TARNAME='meson_display_framework'
593PACKAGE_VERSION='0.1'
594PACKAGE_STRING='meson_display_framework 0.1'
595PACKAGE_BUGREPORT='lingjie.li@amlogic.com'
596PACKAGE_URL=''
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
601#ifdef HAVE_SYS_TYPES_H
602# include <sys/types.h>
603#endif
604#ifdef HAVE_SYS_STAT_H
605# include <sys/stat.h>
606#endif
607#ifdef STDC_HEADERS
608# include <stdlib.h>
609# include <stddef.h>
610#else
611# ifdef HAVE_STDLIB_H
612# include <stdlib.h>
613# endif
614#endif
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617# include <memory.h>
618# endif
619# include <string.h>
620#endif
621#ifdef HAVE_STRINGS_H
622# include <strings.h>
623#endif
624#ifdef HAVE_INTTYPES_H
625# include <inttypes.h>
626#endif
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
631# include <unistd.h>
632#endif"
633
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBOBJS
638LIBDRM_LIBS
639LIBDRM_CFLAGS
640JSONC_LIBS
641JSONC_CFLAGS
642PKG_CONFIG_LIBDIR
643PKG_CONFIG_PATH
644PKG_CONFIG
645CPP
646LT_SYS_LIBRARY_PATH
647OTOOL64
648OTOOL
649LIPO
650NMEDIT
651DSYMUTIL
652MANIFEST_TOOL
653RANLIB
654DLLTOOL
655OBJDUMP
656LN_S
657NM
658ac_ct_DUMPBIN
659DUMPBIN
660LD
661FGREP
662EGREP
663GREP
664SED
665host_os
666host_vendor
667host_cpu
668host
669build_os
670build_vendor
671build_cpu
672build
673LIBTOOL
674ac_ct_AR
675AR
676am__fastdepCC_FALSE
677am__fastdepCC_TRUE
678CCDEPMODE
679am__nodep
680AMDEPBACKSLASH
681AMDEP_FALSE
682AMDEP_TRUE
683am__quote
684am__include
685DEPDIR
686OBJEXT
687EXEEXT
688ac_ct_CC
689CPPFLAGS
690LDFLAGS
691CFLAGS
692CC
693AM_BACKSLASH
694AM_DEFAULT_VERBOSITY
695AM_DEFAULT_V
696AM_V
697am__untar
698am__tar
699AMTAR
700am__leading_dot
701SET_MAKE
702AWK
703mkdir_p
704MKDIR_P
705INSTALL_STRIP_PROGRAM
706STRIP
707install_sh
708MAKEINFO
709AUTOHEADER
710AUTOMAKE
711AUTOCONF
712ACLOCAL
713VERSION
714PACKAGE
715CYGPATH_W
716am__isrc
717INSTALL_DATA
718INSTALL_SCRIPT
719INSTALL_PROGRAM
720target_alias
721host_alias
722build_alias
723LIBS
724ECHO_T
725ECHO_N
726ECHO_C
727DEFS
728mandir
729localedir
730libdir
731psdir
732pdfdir
733dvidir
734htmldir
735infodir
736docdir
737oldincludedir
738includedir
739runstatedir
740localstatedir
741sharedstatedir
742sysconfdir
743datadir
744datarootdir
745libexecdir
746sbindir
747bindir
748program_transform_name
749prefix
750exec_prefix
751PACKAGE_URL
752PACKAGE_BUGREPORT
753PACKAGE_STRING
754PACKAGE_VERSION
755PACKAGE_TARNAME
756PACKAGE_NAME
757PATH_SEPARATOR
758SHELL'
759ac_subst_files=''
760ac_user_opts='
761enable_option_checking
762enable_silent_rules
763enable_dependency_tracking
764enable_shared
765enable_static
766with_pic
767enable_fast_install
768with_aix_soname
769with_gnu_ld
770with_sysroot
771enable_libtool_lock
772'
773 ac_precious_vars='build_alias
774host_alias
775target_alias
776CC
777CFLAGS
778LDFLAGS
779LIBS
780CPPFLAGS
781LT_SYS_LIBRARY_PATH
782CPP
783PKG_CONFIG
784PKG_CONFIG_PATH
785PKG_CONFIG_LIBDIR
786JSONC_CFLAGS
787JSONC_LIBS
788LIBDRM_CFLAGS
789LIBDRM_LIBS'
790
791
792# Initialize some variables set by options.
793ac_init_help=
794ac_init_version=false
795ac_unrecognized_opts=
796ac_unrecognized_sep=
797# The variables have the same names as the options, with
798# dashes changed to underlines.
799cache_file=/dev/null
800exec_prefix=NONE
801no_create=
802no_recursion=
803prefix=NONE
804program_prefix=NONE
805program_suffix=NONE
806program_transform_name=s,x,x,
807silent=
808site=
809srcdir=
810verbose=
811x_includes=NONE
812x_libraries=NONE
813
814# Installation directory options.
815# These are left unexpanded so users can "make install exec_prefix=/foo"
816# and all the variables that are supposed to be based on exec_prefix
817# by default will actually change.
818# Use braces instead of parens because sh, perl, etc. also accept them.
819# (The list follows the same order as the GNU Coding Standards.)
820bindir='${exec_prefix}/bin'
821sbindir='${exec_prefix}/sbin'
822libexecdir='${exec_prefix}/libexec'
823datarootdir='${prefix}/share'
824datadir='${datarootdir}'
825sysconfdir='${prefix}/etc'
826sharedstatedir='${prefix}/com'
827localstatedir='${prefix}/var'
828runstatedir='${localstatedir}/run'
829includedir='${prefix}/include'
830oldincludedir='/usr/include'
831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
832infodir='${datarootdir}/info'
833htmldir='${docdir}'
834dvidir='${docdir}'
835pdfdir='${docdir}'
836psdir='${docdir}'
837libdir='${exec_prefix}/lib'
838localedir='${datarootdir}/locale'
839mandir='${datarootdir}/man'
840
841ac_prev=
842ac_dashdash=
843for ac_option
844do
845 # If the previous option needs an argument, assign it.
846 if test -n "$ac_prev"; then
847 eval $ac_prev=\$ac_option
848 ac_prev=
849 continue
850 fi
851
852 case $ac_option in
853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854 *=) ac_optarg= ;;
855 *) ac_optarg=yes ;;
856 esac
857
858 # Accept the important Cygnus configure options, so we can diagnose typos.
859
860 case $ac_dashdash$ac_option in
861 --)
862 ac_dashdash=yes ;;
863
864 -bindir | --bindir | --bindi | --bind | --bin | --bi)
865 ac_prev=bindir ;;
866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867 bindir=$ac_optarg ;;
868
869 -build | --build | --buil | --bui | --bu)
870 ac_prev=build_alias ;;
871 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
872 build_alias=$ac_optarg ;;
873
874 -cache-file | --cache-file | --cache-fil | --cache-fi \
875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
876 ac_prev=cache_file ;;
877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
879 cache_file=$ac_optarg ;;
880
881 --config-cache | -C)
882 cache_file=config.cache ;;
883
884 -datadir | --datadir | --datadi | --datad)
885 ac_prev=datadir ;;
886 -datadir=* | --datadir=* | --datadi=* | --datad=*)
887 datadir=$ac_optarg ;;
888
889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
890 | --dataroo | --dataro | --datar)
891 ac_prev=datarootdir ;;
892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
894 datarootdir=$ac_optarg ;;
895
896 -disable-* | --disable-*)
897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
898 # Reject names that are not valid shell variable names.
899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
900 as_fn_error $? "invalid feature name: $ac_useropt"
901 ac_useropt_orig=$ac_useropt
902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
903 case $ac_user_opts in
904 *"
905"enable_$ac_useropt"
906"*) ;;
907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
908 ac_unrecognized_sep=', ';;
909 esac
910 eval enable_$ac_useropt=no ;;
911
912 -docdir | --docdir | --docdi | --doc | --do)
913 ac_prev=docdir ;;
914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915 docdir=$ac_optarg ;;
916
917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
918 ac_prev=dvidir ;;
919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920 dvidir=$ac_optarg ;;
921
922 -enable-* | --enable-*)
923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
926 as_fn_error $? "invalid feature name: $ac_useropt"
927 ac_useropt_orig=$ac_useropt
928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
929 case $ac_user_opts in
930 *"
931"enable_$ac_useropt"
932"*) ;;
933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
934 ac_unrecognized_sep=', ';;
935 esac
936 eval enable_$ac_useropt=\$ac_optarg ;;
937
938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
940 | --exec | --exe | --ex)
941 ac_prev=exec_prefix ;;
942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
944 | --exec=* | --exe=* | --ex=*)
945 exec_prefix=$ac_optarg ;;
946
947 -gas | --gas | --ga | --g)
948 # Obsolete; use --with-gas.
949 with_gas=yes ;;
950
951 -help | --help | --hel | --he | -h)
952 ac_init_help=long ;;
953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
954 ac_init_help=recursive ;;
955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
956 ac_init_help=short ;;
957
958 -host | --host | --hos | --ho)
959 ac_prev=host_alias ;;
960 -host=* | --host=* | --hos=* | --ho=*)
961 host_alias=$ac_optarg ;;
962
963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
964 ac_prev=htmldir ;;
965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
966 | --ht=*)
967 htmldir=$ac_optarg ;;
968
969 -includedir | --includedir | --includedi | --included | --include \
970 | --includ | --inclu | --incl | --inc)
971 ac_prev=includedir ;;
972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
973 | --includ=* | --inclu=* | --incl=* | --inc=*)
974 includedir=$ac_optarg ;;
975
976 -infodir | --infodir | --infodi | --infod | --info | --inf)
977 ac_prev=infodir ;;
978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
979 infodir=$ac_optarg ;;
980
981 -libdir | --libdir | --libdi | --libd)
982 ac_prev=libdir ;;
983 -libdir=* | --libdir=* | --libdi=* | --libd=*)
984 libdir=$ac_optarg ;;
985
986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
987 | --libexe | --libex | --libe)
988 ac_prev=libexecdir ;;
989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
990 | --libexe=* | --libex=* | --libe=*)
991 libexecdir=$ac_optarg ;;
992
993 -localedir | --localedir | --localedi | --localed | --locale)
994 ac_prev=localedir ;;
995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
996 localedir=$ac_optarg ;;
997
998 -localstatedir | --localstatedir | --localstatedi | --localstated \
999 | --localstate | --localstat | --localsta | --localst | --locals)
1000 ac_prev=localstatedir ;;
1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1003 localstatedir=$ac_optarg ;;
1004
1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1006 ac_prev=mandir ;;
1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1008 mandir=$ac_optarg ;;
1009
1010 -nfp | --nfp | --nf)
1011 # Obsolete; use --without-fp.
1012 with_fp=no ;;
1013
1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1015 | --no-cr | --no-c | -n)
1016 no_create=yes ;;
1017
1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020 no_recursion=yes ;;
1021
1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1024 | --oldin | --oldi | --old | --ol | --o)
1025 ac_prev=oldincludedir ;;
1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1029 oldincludedir=$ac_optarg ;;
1030
1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1032 ac_prev=prefix ;;
1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1034 prefix=$ac_optarg ;;
1035
1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1037 | --program-pre | --program-pr | --program-p)
1038 ac_prev=program_prefix ;;
1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1041 program_prefix=$ac_optarg ;;
1042
1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1044 | --program-suf | --program-su | --program-s)
1045 ac_prev=program_suffix ;;
1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1048 program_suffix=$ac_optarg ;;
1049
1050 -program-transform-name | --program-transform-name \
1051 | --program-transform-nam | --program-transform-na \
1052 | --program-transform-n | --program-transform- \
1053 | --program-transform | --program-transfor \
1054 | --program-transfo | --program-transf \
1055 | --program-trans | --program-tran \
1056 | --progr-tra | --program-tr | --program-t)
1057 ac_prev=program_transform_name ;;
1058 -program-transform-name=* | --program-transform-name=* \
1059 | --program-transform-nam=* | --program-transform-na=* \
1060 | --program-transform-n=* | --program-transform-=* \
1061 | --program-transform=* | --program-transfor=* \
1062 | --program-transfo=* | --program-transf=* \
1063 | --program-trans=* | --program-tran=* \
1064 | --progr-tra=* | --program-tr=* | --program-t=*)
1065 program_transform_name=$ac_optarg ;;
1066
1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1068 ac_prev=pdfdir ;;
1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1070 pdfdir=$ac_optarg ;;
1071
1072 -psdir | --psdir | --psdi | --psd | --ps)
1073 ac_prev=psdir ;;
1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075 psdir=$ac_optarg ;;
1076
1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1078 | -silent | --silent | --silen | --sile | --sil)
1079 silent=yes ;;
1080
1081 -runstatedir | --runstatedir | --runstatedi | --runstated \
1082 | --runstate | --runstat | --runsta | --runst | --runs \
1083 | --run | --ru | --r)
1084 ac_prev=runstatedir ;;
1085 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1086 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1087 | --run=* | --ru=* | --r=*)
1088 runstatedir=$ac_optarg ;;
1089
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1091 ac_prev=sbindir ;;
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1093 | --sbi=* | --sb=*)
1094 sbindir=$ac_optarg ;;
1095
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1099 | --sha | --sh)
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1104 | --sha=* | --sh=*)
1105 sharedstatedir=$ac_optarg ;;
1106
1107 -site | --site | --sit)
1108 ac_prev=site ;;
1109 -site=* | --site=* | --sit=*)
1110 site=$ac_optarg ;;
1111
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1113 ac_prev=srcdir ;;
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1116
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1123
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1128
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1130 verbose=yes ;;
1131
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1134
1135 -with-* | --with-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid package name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1143 *"
1144"with_$ac_useropt"
1145"*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval with_$ac_useropt=\$ac_optarg ;;
1150
1151 -without-* | --without-*)
1152 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1155 as_fn_error $? "invalid package name: $ac_useropt"
1156 ac_useropt_orig=$ac_useropt
1157 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1158 case $ac_user_opts in
1159 *"
1160"with_$ac_useropt"
1161"*) ;;
1162 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1163 ac_unrecognized_sep=', ';;
1164 esac
1165 eval with_$ac_useropt=no ;;
1166
1167 --x)
1168 # Obsolete; use --with-x.
1169 with_x=yes ;;
1170
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176 x_includes=$ac_optarg ;;
1177
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183 x_libraries=$ac_optarg ;;
1184
1185 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1186Try \`$0 --help' for more information"
1187 ;;
1188
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 case $ac_envvar in #(
1193 '' | [0-9]* | *[!_$as_cr_alnum]* )
1194 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1195 esac
1196 eval $ac_envvar=\$ac_optarg
1197 export $ac_envvar ;;
1198
1199 *)
1200 # FIXME: should be removed in autoconf 3.0.
1201 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1205 ;;
1206
1207 esac
1208done
1209
1210if test -n "$ac_prev"; then
1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212 as_fn_error $? "missing argument to $ac_option"
1213fi
1214
1215if test -n "$ac_unrecognized_opts"; then
1216 case $enable_option_checking in
1217 no) ;;
1218 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1219 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220 esac
1221fi
1222
1223# Check all directory arguments for consistency.
1224for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1225 datadir sysconfdir sharedstatedir localstatedir includedir \
1226 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1227 libdir localedir mandir runstatedir
1228do
1229 eval ac_val=\$$ac_var
1230 # Remove trailing slashes.
1231 case $ac_val in
1232 */ )
1233 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1234 eval $ac_var=\$ac_val;;
1235 esac
1236 # Be sure to have absolute directory names.
1237 case $ac_val in
1238 [\\/$]* | ?:[\\/]* ) continue;;
1239 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1240 esac
1241 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1242done
1243
1244# There might be people who depend on the old broken behavior: `$host'
1245# used to hold the argument of --host etc.
1246# FIXME: To remove some day.
1247build=$build_alias
1248host=$host_alias
1249target=$target_alias
1250
1251# FIXME: To remove some day.
1252if test "x$host_alias" != x; then
1253 if test "x$build_alias" = x; then
1254 cross_compiling=maybe
1255 elif test "x$build_alias" != "x$host_alias"; then
1256 cross_compiling=yes
1257 fi
1258fi
1259
1260ac_tool_prefix=
1261test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262
1263test "$silent" = yes && exec 6>/dev/null
1264
1265
1266ac_pwd=`pwd` && test -n "$ac_pwd" &&
1267ac_ls_di=`ls -di .` &&
1268ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1269 as_fn_error $? "working directory cannot be determined"
1270test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1271 as_fn_error $? "pwd does not report name of working directory"
1272
1273
1274# Find the source files, if location was not specified.
1275if test -z "$srcdir"; then
1276 ac_srcdir_defaulted=yes
1277 # Try the directory containing this script, then the parent directory.
1278 ac_confdir=`$as_dirname -- "$as_myself" ||
1279$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1280 X"$as_myself" : 'X\(//\)[^/]' \| \
1281 X"$as_myself" : 'X\(//\)$' \| \
1282 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1283$as_echo X"$as_myself" |
1284 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\/\)[^/].*/{
1289 s//\1/
1290 q
1291 }
1292 /^X\(\/\/\)$/{
1293 s//\1/
1294 q
1295 }
1296 /^X\(\/\).*/{
1297 s//\1/
1298 q
1299 }
1300 s/.*/./; q'`
1301 srcdir=$ac_confdir
1302 if test ! -r "$srcdir/$ac_unique_file"; then
1303 srcdir=..
1304 fi
1305else
1306 ac_srcdir_defaulted=no
1307fi
1308if test ! -r "$srcdir/$ac_unique_file"; then
1309 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1310 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1311fi
1312ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313ac_abs_confdir=`(
1314 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1315 pwd)`
1316# When building in place, set srcdir=.
1317if test "$ac_abs_confdir" = "$ac_pwd"; then
1318 srcdir=.
1319fi
1320# Remove unnecessary trailing slashes from srcdir.
1321# Double slashes in file names in object file debugging info
1322# mess up M-x gdb in Emacs.
1323case $srcdir in
1324*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325esac
1326for ac_var in $ac_precious_vars; do
1327 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_env_${ac_var}_value=\$${ac_var}
1329 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1330 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1331done
1332
1333#
1334# Report the --help message.
1335#
1336if test "$ac_init_help" = "long"; then
1337 # Omit some internal or obsolete options to make the list less imposing.
1338 # This message is too long to be a string in the A/UX 3.1 sh.
1339 cat <<_ACEOF
1340\`configure' configures meson_display_framework 0.1 to adapt to many kinds of systems.
1341
1342Usage: $0 [OPTION]... [VAR=VALUE]...
1343
1344To assign environment variables (e.g., CC, CFLAGS...), specify them as
1345VAR=VALUE. See below for descriptions of some of the useful variables.
1346
1347Defaults for the options are specified in brackets.
1348
1349Configuration:
1350 -h, --help display this help and exit
1351 --help=short display options specific to this package
1352 --help=recursive display the short help of all the included packages
1353 -V, --version display version information and exit
1354 -q, --quiet, --silent do not print \`checking ...' messages
1355 --cache-file=FILE cache test results in FILE [disabled]
1356 -C, --config-cache alias for \`--cache-file=config.cache'
1357 -n, --no-create do not create output files
1358 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1359
1360Installation directories:
1361 --prefix=PREFIX install architecture-independent files in PREFIX
1362 [$ac_default_prefix]
1363 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1364 [PREFIX]
1365
1366By default, \`make install' will install all the files in
1367\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1368an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1369for instance \`--prefix=\$HOME'.
1370
1371For better control, use the options below.
1372
1373Fine tuning of the installation directories:
1374 --bindir=DIR user executables [EPREFIX/bin]
1375 --sbindir=DIR system admin executables [EPREFIX/sbin]
1376 --libexecdir=DIR program executables [EPREFIX/libexec]
1377 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1378 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1379 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1380 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1381 --libdir=DIR object code libraries [EPREFIX/lib]
1382 --includedir=DIR C header files [PREFIX/include]
1383 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1386 --infodir=DIR info documentation [DATAROOTDIR/info]
1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1388 --mandir=DIR man documentation [DATAROOTDIR/man]
1389 --docdir=DIR documentation root
1390 [DATAROOTDIR/doc/meson_display_framework]
1391 --htmldir=DIR html documentation [DOCDIR]
1392 --dvidir=DIR dvi documentation [DOCDIR]
1393 --pdfdir=DIR pdf documentation [DOCDIR]
1394 --psdir=DIR ps documentation [DOCDIR]
1395_ACEOF
1396
1397 cat <<\_ACEOF
1398
1399Program names:
1400 --program-prefix=PREFIX prepend PREFIX to installed program names
1401 --program-suffix=SUFFIX append SUFFIX to installed program names
1402 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1403
1404System types:
1405 --build=BUILD configure for building on BUILD [guessed]
1406 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1407_ACEOF
1408fi
1409
1410if test -n "$ac_init_help"; then
1411 case $ac_init_help in
1412 short | recursive ) echo "Configuration of meson_display_framework 0.1:";;
1413 esac
1414 cat <<\_ACEOF
1415
1416Optional Features:
1417 --disable-option-checking ignore unrecognized --enable/--with options
1418 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1419 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1420 --enable-silent-rules less verbose build output (undo: "make V=1")
1421 --disable-silent-rules verbose build output (undo: "make V=0")
1422 --enable-dependency-tracking
1423 do not reject slow dependency extractors
1424 --disable-dependency-tracking
1425 speeds up one-time build
1426 --enable-shared[=PKGS] build shared libraries [default=yes]
1427 --enable-static[=PKGS] build static libraries [default=yes]
1428 --enable-fast-install[=PKGS]
1429 optimize for fast installation [default=yes]
1430 --disable-libtool-lock avoid locking (might break parallel builds)
1431
1432Optional Packages:
1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1435 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1436 both]
1437 --with-aix-soname=aix|svr4|both
1438 shared library versioning (aka "SONAME") variant to
1439 provide on AIX, [default=aix].
1440 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1441 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1442 compiler's sysroot if not specified).
1443
1444Some influential environment variables:
1445 CC C compiler command
1446 CFLAGS C compiler flags
1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1448 nonstandard directory <lib dir>
1449 LIBS libraries to pass to the linker, e.g. -l<library>
1450 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1451 you have headers in a nonstandard directory <include dir>
1452 LT_SYS_LIBRARY_PATH
1453 User-defined run-time library search path.
1454 CPP C preprocessor
1455 PKG_CONFIG path to pkg-config utility
1456 PKG_CONFIG_PATH
1457 directories to add to pkg-config's search path
1458 PKG_CONFIG_LIBDIR
1459 path overriding pkg-config's built-in search path
1460 JSONC_CFLAGS
1461 C compiler flags for JSONC, overriding pkg-config
1462 JSONC_LIBS linker flags for JSONC, overriding pkg-config
1463 LIBDRM_CFLAGS
1464 C compiler flags for LIBDRM, overriding pkg-config
1465 LIBDRM_LIBS linker flags for LIBDRM, overriding pkg-config
1466
1467Use these variables to override the choices made by `configure' or to help
1468it to find libraries and programs with nonstandard names/locations.
1469
1470Report bugs to <lingjie.li@amlogic.com>.
1471_ACEOF
1472ac_status=$?
1473fi
1474
1475if test "$ac_init_help" = "recursive"; then
1476 # If there are subdirs, report their specific --help.
1477 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1478 test -d "$ac_dir" ||
1479 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1480 continue
1481 ac_builddir=.
1482
1483case "$ac_dir" in
1484.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1485*)
1486 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1487 # A ".." for each directory in $ac_dir_suffix.
1488 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1489 case $ac_top_builddir_sub in
1490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492 esac ;;
1493esac
1494ac_abs_top_builddir=$ac_pwd
1495ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496# for backward compatibility:
1497ac_top_builddir=$ac_top_build_prefix
1498
1499case $srcdir in
1500 .) # We are building in place.
1501 ac_srcdir=.
1502 ac_top_srcdir=$ac_top_builddir_sub
1503 ac_abs_top_srcdir=$ac_pwd ;;
1504 [\\/]* | ?:[\\/]* ) # Absolute name.
1505 ac_srcdir=$srcdir$ac_dir_suffix;
1506 ac_top_srcdir=$srcdir
1507 ac_abs_top_srcdir=$srcdir ;;
1508 *) # Relative name.
1509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510 ac_top_srcdir=$ac_top_build_prefix$srcdir
1511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1512esac
1513ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1514
1515 cd "$ac_dir" || { ac_status=$?; continue; }
1516 # Check for guested configure.
1517 if test -f "$ac_srcdir/configure.gnu"; then
1518 echo &&
1519 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520 elif test -f "$ac_srcdir/configure"; then
1521 echo &&
1522 $SHELL "$ac_srcdir/configure" --help=recursive
1523 else
1524 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1525 fi || ac_status=$?
1526 cd "$ac_pwd" || { ac_status=$?; break; }
1527 done
1528fi
1529
1530test -n "$ac_init_help" && exit $ac_status
1531if $ac_init_version; then
1532 cat <<\_ACEOF
1533meson_display_framework configure 0.1
1534generated by GNU Autoconf 2.69
1535
1536Copyright (C) 2012 Free Software Foundation, Inc.
1537This configure script is free software; the Free Software Foundation
1538gives unlimited permission to copy, distribute and modify it.
1539_ACEOF
1540 exit
1541fi
1542
1543## ------------------------ ##
1544## Autoconf initialization. ##
1545## ------------------------ ##
1546
1547# ac_fn_c_try_compile LINENO
1548# --------------------------
1549# Try to compile conftest.$ac_ext, and return whether this succeeded.
1550ac_fn_c_try_compile ()
1551{
1552 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1553 rm -f conftest.$ac_objext
1554 if { { ac_try="$ac_compile"
1555case "(($ac_try" in
1556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1557 *) ac_try_echo=$ac_try;;
1558esac
1559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1560$as_echo "$ac_try_echo"; } >&5
1561 (eval "$ac_compile") 2>conftest.err
1562 ac_status=$?
1563 if test -s conftest.err; then
1564 grep -v '^ *+' conftest.err >conftest.er1
1565 cat conftest.er1 >&5
1566 mv -f conftest.er1 conftest.err
1567 fi
1568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1569 test $ac_status = 0; } && {
1570 test -z "$ac_c_werror_flag" ||
1571 test ! -s conftest.err
1572 } && test -s conftest.$ac_objext; then :
1573 ac_retval=0
1574else
1575 $as_echo "$as_me: failed program was:" >&5
1576sed 's/^/| /' conftest.$ac_ext >&5
1577
1578 ac_retval=1
1579fi
1580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1581 as_fn_set_status $ac_retval
1582
1583} # ac_fn_c_try_compile
1584
1585# ac_fn_c_try_link LINENO
1586# -----------------------
1587# Try to link conftest.$ac_ext, and return whether this succeeded.
1588ac_fn_c_try_link ()
1589{
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 rm -f conftest.$ac_objext conftest$ac_exeext
1592 if { { ac_try="$ac_link"
1593case "(($ac_try" in
1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1596esac
1597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598$as_echo "$ac_try_echo"; } >&5
1599 (eval "$ac_link") 2>conftest.err
1600 ac_status=$?
1601 if test -s conftest.err; then
1602 grep -v '^ *+' conftest.err >conftest.er1
1603 cat conftest.er1 >&5
1604 mv -f conftest.er1 conftest.err
1605 fi
1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607 test $ac_status = 0; } && {
1608 test -z "$ac_c_werror_flag" ||
1609 test ! -s conftest.err
1610 } && test -s conftest$ac_exeext && {
1611 test "$cross_compiling" = yes ||
1612 test -x conftest$ac_exeext
1613 }; then :
1614 ac_retval=0
1615else
1616 $as_echo "$as_me: failed program was:" >&5
1617sed 's/^/| /' conftest.$ac_ext >&5
1618
1619 ac_retval=1
1620fi
1621 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1622 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1623 # interfere with the next link command; also delete a directory that is
1624 # left behind by Apple's compiler. We do this before executing the actions.
1625 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1626 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627 as_fn_set_status $ac_retval
1628
1629} # ac_fn_c_try_link
1630
1631# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1632# -------------------------------------------------------
1633# Tests whether HEADER exists and can be compiled using the include files in
1634# INCLUDES, setting the cache variable VAR accordingly.
1635ac_fn_c_check_header_compile ()
1636{
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1639$as_echo_n "checking for $2... " >&6; }
1640if eval \${$3+:} false; then :
1641 $as_echo_n "(cached) " >&6
1642else
1643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644/* end confdefs.h. */
1645$4
1646#include <$2>
1647_ACEOF
1648if ac_fn_c_try_compile "$LINENO"; then :
1649 eval "$3=yes"
1650else
1651 eval "$3=no"
1652fi
1653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1654fi
1655eval ac_res=\$$3
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1657$as_echo "$ac_res" >&6; }
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659
1660} # ac_fn_c_check_header_compile
1661
1662# ac_fn_c_try_cpp LINENO
1663# ----------------------
1664# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1665ac_fn_c_try_cpp ()
1666{
1667 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1668 if { { ac_try="$ac_cpp conftest.$ac_ext"
1669case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672esac
1673eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674$as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1676 ac_status=$?
1677 if test -s conftest.err; then
1678 grep -v '^ *+' conftest.err >conftest.er1
1679 cat conftest.er1 >&5
1680 mv -f conftest.er1 conftest.err
1681 fi
1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683 test $ac_status = 0; } > conftest.i && {
1684 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1685 test ! -s conftest.err
1686 }; then :
1687 ac_retval=0
1688else
1689 $as_echo "$as_me: failed program was:" >&5
1690sed 's/^/| /' conftest.$ac_ext >&5
1691
1692 ac_retval=1
1693fi
1694 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1695 as_fn_set_status $ac_retval
1696
1697} # ac_fn_c_try_cpp
1698
1699# ac_fn_c_try_run LINENO
1700# ----------------------
1701# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1702# that executables *can* be run.
1703ac_fn_c_try_run ()
1704{
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 if { { ac_try="$ac_link"
1707case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710esac
1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712$as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_link") 2>&5
1714 ac_status=$?
1715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1716 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1717 { { case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722$as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_try") 2>&5
1724 ac_status=$?
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; }; }; then :
1727 ac_retval=0
1728else
1729 $as_echo "$as_me: program exited with status $ac_status" >&5
1730 $as_echo "$as_me: failed program was:" >&5
1731sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 ac_retval=$ac_status
1734fi
1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1737 as_fn_set_status $ac_retval
1738
1739} # ac_fn_c_try_run
1740
1741# ac_fn_c_check_func LINENO FUNC VAR
1742# ----------------------------------
1743# Tests whether FUNC exists, setting the cache variable VAR accordingly
1744ac_fn_c_check_func ()
1745{
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748$as_echo_n "checking for $2... " >&6; }
1749if eval \${$3+:} false; then :
1750 $as_echo_n "(cached) " >&6
1751else
1752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753/* end confdefs.h. */
1754/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1756#define $2 innocuous_$2
1757
1758/* System header to define __stub macros and hopefully few prototypes,
1759 which can conflict with char $2 (); below.
1760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1761 <limits.h> exists even on freestanding compilers. */
1762
1763#ifdef __STDC__
1764# include <limits.h>
1765#else
1766# include <assert.h>
1767#endif
1768
1769#undef $2
1770
1771/* Override any GCC internal prototype to avoid an error.
1772 Use char because int might match the return type of a GCC
1773 builtin and then its argument prototype would still apply. */
1774#ifdef __cplusplus
1775extern "C"
1776#endif
1777char $2 ();
1778/* The GNU C library defines this for functions which it implements
1779 to always fail with ENOSYS. Some functions are actually named
1780 something starting with __ and the normal name is an alias. */
1781#if defined __stub_$2 || defined __stub___$2
1782choke me
1783#endif
1784
1785int
1786main ()
1787{
1788return $2 ();
1789 ;
1790 return 0;
1791}
1792_ACEOF
1793if ac_fn_c_try_link "$LINENO"; then :
1794 eval "$3=yes"
1795else
1796 eval "$3=no"
1797fi
1798rm -f core conftest.err conftest.$ac_objext \
1799 conftest$ac_exeext conftest.$ac_ext
1800fi
1801eval ac_res=\$$3
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803$as_echo "$ac_res" >&6; }
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805
1806} # ac_fn_c_check_func
1807cat >config.log <<_ACEOF
1808This file contains any messages produced by compilers while
1809running configure, to aid debugging if configure makes a mistake.
1810
1811It was created by meson_display_framework $as_me 0.1, which was
1812generated by GNU Autoconf 2.69. Invocation command line was
1813
1814 $ $0 $@
1815
1816_ACEOF
1817exec 5>>config.log
1818{
1819cat <<_ASUNAME
1820## --------- ##
1821## Platform. ##
1822## --------- ##
1823
1824hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1825uname -m = `(uname -m) 2>/dev/null || echo unknown`
1826uname -r = `(uname -r) 2>/dev/null || echo unknown`
1827uname -s = `(uname -s) 2>/dev/null || echo unknown`
1828uname -v = `(uname -v) 2>/dev/null || echo unknown`
1829
1830/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1831/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1832
1833/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1834/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1835/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1836/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1837/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1838/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1839/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1840
1841_ASUNAME
1842
1843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1844for as_dir in $PATH
1845do
1846 IFS=$as_save_IFS
1847 test -z "$as_dir" && as_dir=.
1848 $as_echo "PATH: $as_dir"
1849 done
1850IFS=$as_save_IFS
1851
1852} >&5
1853
1854cat >&5 <<_ACEOF
1855
1856
1857## ----------- ##
1858## Core tests. ##
1859## ----------- ##
1860
1861_ACEOF
1862
1863
1864# Keep a trace of the command line.
1865# Strip out --no-create and --no-recursion so they do not pile up.
1866# Strip out --silent because we don't want to record it for future runs.
1867# Also quote any args containing shell meta-characters.
1868# Make two passes to allow for proper duplicate-argument suppression.
1869ac_configure_args=
1870ac_configure_args0=
1871ac_configure_args1=
1872ac_must_keep_next=false
1873for ac_pass in 1 2
1874do
1875 for ac_arg
1876 do
1877 case $ac_arg in
1878 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1879 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1880 | -silent | --silent | --silen | --sile | --sil)
1881 continue ;;
1882 *\'*)
1883 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1884 esac
1885 case $ac_pass in
1886 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1887 2)
1888 as_fn_append ac_configure_args1 " '$ac_arg'"
1889 if test $ac_must_keep_next = true; then
1890 ac_must_keep_next=false # Got value, back to normal.
1891 else
1892 case $ac_arg in
1893 *=* | --config-cache | -C | -disable-* | --disable-* \
1894 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1895 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1896 | -with-* | --with-* | -without-* | --without-* | --x)
1897 case "$ac_configure_args0 " in
1898 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1899 esac
1900 ;;
1901 -* ) ac_must_keep_next=true ;;
1902 esac
1903 fi
1904 as_fn_append ac_configure_args " '$ac_arg'"
1905 ;;
1906 esac
1907 done
1908done
1909{ ac_configure_args0=; unset ac_configure_args0;}
1910{ ac_configure_args1=; unset ac_configure_args1;}
1911
1912# When interrupted or exit'd, cleanup temporary files, and complete
1913# config.log. We remove comments because anyway the quotes in there
1914# would cause problems or look ugly.
1915# WARNING: Use '\'' to represent an apostrophe within the trap.
1916# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1917trap 'exit_status=$?
1918 # Save into config.log some information that might help in debugging.
1919 {
1920 echo
1921
1922 $as_echo "## ---------------- ##
1923## Cache variables. ##
1924## ---------------- ##"
1925 echo
1926 # The following way of writing the cache mishandles newlines in values,
1927(
1928 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1929 eval ac_val=\$$ac_var
1930 case $ac_val in #(
1931 *${as_nl}*)
1932 case $ac_var in #(
1933 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1934$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1935 esac
1936 case $ac_var in #(
1937 _ | IFS | as_nl) ;; #(
1938 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1939 *) { eval $ac_var=; unset $ac_var;} ;;
1940 esac ;;
1941 esac
1942 done
1943 (set) 2>&1 |
1944 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1945 *${as_nl}ac_space=\ *)
1946 sed -n \
1947 "s/'\''/'\''\\\\'\'''\''/g;
1948 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1949 ;; #(
1950 *)
1951 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1952 ;;
1953 esac |
1954 sort
1955)
1956 echo
1957
1958 $as_echo "## ----------------- ##
1959## Output variables. ##
1960## ----------------- ##"
1961 echo
1962 for ac_var in $ac_subst_vars
1963 do
1964 eval ac_val=\$$ac_var
1965 case $ac_val in
1966 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1967 esac
1968 $as_echo "$ac_var='\''$ac_val'\''"
1969 done | sort
1970 echo
1971
1972 if test -n "$ac_subst_files"; then
1973 $as_echo "## ------------------- ##
1974## File substitutions. ##
1975## ------------------- ##"
1976 echo
1977 for ac_var in $ac_subst_files
1978 do
1979 eval ac_val=\$$ac_var
1980 case $ac_val in
1981 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1982 esac
1983 $as_echo "$ac_var='\''$ac_val'\''"
1984 done | sort
1985 echo
1986 fi
1987
1988 if test -s confdefs.h; then
1989 $as_echo "## ----------- ##
1990## confdefs.h. ##
1991## ----------- ##"
1992 echo
1993 cat confdefs.h
1994 echo
1995 fi
1996 test "$ac_signal" != 0 &&
1997 $as_echo "$as_me: caught signal $ac_signal"
1998 $as_echo "$as_me: exit $exit_status"
1999 } >&5
2000 rm -f core *.core core.conftest.* &&
2001 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2002 exit $exit_status
2003' 0
2004for ac_signal in 1 2 13 15; do
2005 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2006done
2007ac_signal=0
2008
2009# confdefs.h avoids OS command line length limits that DEFS can exceed.
2010rm -f -r conftest* confdefs.h
2011
2012$as_echo "/* confdefs.h */" > confdefs.h
2013
2014# Predefined preprocessor variables.
2015
2016cat >>confdefs.h <<_ACEOF
2017#define PACKAGE_NAME "$PACKAGE_NAME"
2018_ACEOF
2019
2020cat >>confdefs.h <<_ACEOF
2021#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2022_ACEOF
2023
2024cat >>confdefs.h <<_ACEOF
2025#define PACKAGE_VERSION "$PACKAGE_VERSION"
2026_ACEOF
2027
2028cat >>confdefs.h <<_ACEOF
2029#define PACKAGE_STRING "$PACKAGE_STRING"
2030_ACEOF
2031
2032cat >>confdefs.h <<_ACEOF
2033#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2034_ACEOF
2035
2036cat >>confdefs.h <<_ACEOF
2037#define PACKAGE_URL "$PACKAGE_URL"
2038_ACEOF
2039
2040
2041# Let the site file select an alternate cache file if it wants to.
2042# Prefer an explicitly selected file to automatically selected ones.
2043ac_site_file1=NONE
2044ac_site_file2=NONE
2045if test -n "$CONFIG_SITE"; then
2046 # We do not want a PATH search for config.site.
2047 case $CONFIG_SITE in #((
2048 -*) ac_site_file1=./$CONFIG_SITE;;
2049 */*) ac_site_file1=$CONFIG_SITE;;
2050 *) ac_site_file1=./$CONFIG_SITE;;
2051 esac
2052elif test "x$prefix" != xNONE; then
2053 ac_site_file1=$prefix/share/config.site
2054 ac_site_file2=$prefix/etc/config.site
2055else
2056 ac_site_file1=$ac_default_prefix/share/config.site
2057 ac_site_file2=$ac_default_prefix/etc/config.site
2058fi
2059for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2060do
2061 test "x$ac_site_file" = xNONE && continue
2062 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2064$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2065 sed 's/^/| /' "$ac_site_file" >&5
2066 . "$ac_site_file" \
2067 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2068$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2069as_fn_error $? "failed to load site script $ac_site_file
2070See \`config.log' for more details" "$LINENO" 5; }
2071 fi
2072done
2073
2074if test -r "$cache_file"; then
2075 # Some versions of bash will fail to source /dev/null (special files
2076 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2077 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2079$as_echo "$as_me: loading cache $cache_file" >&6;}
2080 case $cache_file in
2081 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2082 *) . "./$cache_file";;
2083 esac
2084 fi
2085else
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2087$as_echo "$as_me: creating cache $cache_file" >&6;}
2088 >$cache_file
2089fi
2090
2091# Check that the precious variables saved in the cache have kept the same
2092# value.
2093ac_cache_corrupted=false
2094for ac_var in $ac_precious_vars; do
2095 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2096 eval ac_new_set=\$ac_env_${ac_var}_set
2097 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2098 eval ac_new_val=\$ac_env_${ac_var}_value
2099 case $ac_old_set,$ac_new_set in
2100 set,)
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2102$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2103 ac_cache_corrupted=: ;;
2104 ,set)
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2106$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2107 ac_cache_corrupted=: ;;
2108 ,);;
2109 *)
2110 if test "x$ac_old_val" != "x$ac_new_val"; then
2111 # differences in whitespace do not lead to failure.
2112 ac_old_val_w=`echo x $ac_old_val`
2113 ac_new_val_w=`echo x $ac_new_val`
2114 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2116$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2117 ac_cache_corrupted=:
2118 else
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2120$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2121 eval $ac_var=\$ac_old_val
2122 fi
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2124$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2126$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2127 fi;;
2128 esac
2129 # Pass precious variables to config.status.
2130 if test "$ac_new_set" = set; then
2131 case $ac_new_val in
2132 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2133 *) ac_arg=$ac_var=$ac_new_val ;;
2134 esac
2135 case " $ac_configure_args " in
2136 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2137 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2138 esac
2139 fi
2140done
2141if $ac_cache_corrupted; then
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2143$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2144 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2145$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2146 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2147fi
2148## -------------------- ##
2149## Main body of script. ##
2150## -------------------- ##
2151
2152ac_ext=c
2153ac_cpp='$CPP $CPPFLAGS'
2154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2156ac_compiler_gnu=$ac_cv_c_compiler_gnu
2157
2158
2159am__api_version='1.15'
2160
2161ac_aux_dir=
2162for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2163 if test -f "$ac_dir/install-sh"; then
2164 ac_aux_dir=$ac_dir
2165 ac_install_sh="$ac_aux_dir/install-sh -c"
2166 break
2167 elif test -f "$ac_dir/install.sh"; then
2168 ac_aux_dir=$ac_dir
2169 ac_install_sh="$ac_aux_dir/install.sh -c"
2170 break
2171 elif test -f "$ac_dir/shtool"; then
2172 ac_aux_dir=$ac_dir
2173 ac_install_sh="$ac_aux_dir/shtool install -c"
2174 break
2175 fi
2176done
2177if test -z "$ac_aux_dir"; then
2178 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2179fi
2180
2181# These three variables are undocumented and unsupported,
2182# and are intended to be withdrawn in a future Autoconf release.
2183# They can cause serious problems if a builder's source tree is in a directory
2184# whose full name contains unusual characters.
2185ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2186ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2187ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2188
2189
2190# Find a good install program. We prefer a C program (faster),
2191# so one script is as good as another. But avoid the broken or
2192# incompatible versions:
2193# SysV /etc/install, /usr/sbin/install
2194# SunOS /usr/etc/install
2195# IRIX /sbin/install
2196# AIX /bin/install
2197# AmigaOS /C/install, which installs bootblocks on floppy discs
2198# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2199# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2200# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2201# OS/2's system install, which has a completely different semantic
2202# ./install, which can be erroneously created by make from ./install.sh.
2203# Reject install programs that cannot install multiple files.
2204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2205$as_echo_n "checking for a BSD-compatible install... " >&6; }
2206if test -z "$INSTALL"; then
2207if ${ac_cv_path_install+:} false; then :
2208 $as_echo_n "(cached) " >&6
2209else
2210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211for as_dir in $PATH
2212do
2213 IFS=$as_save_IFS
2214 test -z "$as_dir" && as_dir=.
2215 # Account for people who put trailing slashes in PATH elements.
2216case $as_dir/ in #((
2217 ./ | .// | /[cC]/* | \
2218 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2219 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2220 /usr/ucb/* ) ;;
2221 *)
2222 # OSF1 and SCO ODT 3.0 have their own names for install.
2223 # Don't use installbsd from OSF since it installs stuff as root
2224 # by default.
2225 for ac_prog in ginstall scoinst install; do
2226 for ac_exec_ext in '' $ac_executable_extensions; do
2227 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2228 if test $ac_prog = install &&
2229 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2230 # AIX install. It has an incompatible calling convention.
2231 :
2232 elif test $ac_prog = install &&
2233 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2234 # program-specific install script used by HP pwplus--don't use.
2235 :
2236 else
2237 rm -rf conftest.one conftest.two conftest.dir
2238 echo one > conftest.one
2239 echo two > conftest.two
2240 mkdir conftest.dir
2241 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2242 test -s conftest.one && test -s conftest.two &&
2243 test -s conftest.dir/conftest.one &&
2244 test -s conftest.dir/conftest.two
2245 then
2246 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2247 break 3
2248 fi
2249 fi
2250 fi
2251 done
2252 done
2253 ;;
2254esac
2255
2256 done
2257IFS=$as_save_IFS
2258
2259rm -rf conftest.one conftest.two conftest.dir
2260
2261fi
2262 if test "${ac_cv_path_install+set}" = set; then
2263 INSTALL=$ac_cv_path_install
2264 else
2265 # As a last resort, use the slow shell script. Don't cache a
2266 # value for INSTALL within a source directory, because that will
2267 # break other packages using the cache if that directory is
2268 # removed, or if the value is a relative name.
2269 INSTALL=$ac_install_sh
2270 fi
2271fi
2272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2273$as_echo "$INSTALL" >&6; }
2274
2275# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2276# It thinks the first close brace ends the variable substitution.
2277test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2278
2279test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2280
2281test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2282
2283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2284$as_echo_n "checking whether build environment is sane... " >&6; }
2285# Reject unsafe characters in $srcdir or the absolute working directory
2286# name. Accept space and tab only in the latter.
2287am_lf='
2288'
2289case `pwd` in
2290 *[\\\"\#\$\&\'\`$am_lf]*)
2291 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2292esac
2293case $srcdir in
2294 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2295 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2296esac
2297
2298# Do 'set' in a subshell so we don't clobber the current shell's
2299# arguments. Must try -L first in case configure is actually a
2300# symlink; some systems play weird games with the mod time of symlinks
2301# (eg FreeBSD returns the mod time of the symlink's containing
2302# directory).
2303if (
2304 am_has_slept=no
2305 for am_try in 1 2; do
2306 echo "timestamp, slept: $am_has_slept" > conftest.file
2307 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2308 if test "$*" = "X"; then
2309 # -L didn't work.
2310 set X `ls -t "$srcdir/configure" conftest.file`
2311 fi
2312 if test "$*" != "X $srcdir/configure conftest.file" \
2313 && test "$*" != "X conftest.file $srcdir/configure"; then
2314
2315 # If neither matched, then we have a broken ls. This can happen
2316 # if, for instance, CONFIG_SHELL is bash and it inherits a
2317 # broken ls alias from the environment. This has actually
2318 # happened. Such a system could not be considered "sane".
2319 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2320 alias in your environment" "$LINENO" 5
2321 fi
2322 if test "$2" = conftest.file || test $am_try -eq 2; then
2323 break
2324 fi
2325 # Just in case.
2326 sleep 1
2327 am_has_slept=yes
2328 done
2329 test "$2" = conftest.file
2330 )
2331then
2332 # Ok.
2333 :
2334else
2335 as_fn_error $? "newly created file is older than distributed files!
2336Check your system clock" "$LINENO" 5
2337fi
2338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2339$as_echo "yes" >&6; }
2340# If we didn't sleep, we still need to ensure time stamps of config.status and
2341# generated files are strictly newer.
2342am_sleep_pid=
2343if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2344 ( sleep 1 ) &
2345 am_sleep_pid=$!
2346fi
2347
2348rm -f conftest.file
2349
2350test "$program_prefix" != NONE &&
2351 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2352# Use a double $ so make ignores it.
2353test "$program_suffix" != NONE &&
2354 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2355# Double any \ or $.
2356# By default was `s,x,x', remove it if useless.
2357ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2358program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2359
2360# Expand $ac_aux_dir to an absolute path.
2361am_aux_dir=`cd "$ac_aux_dir" && pwd`
2362
2363if test x"${MISSING+set}" != xset; then
2364 case $am_aux_dir in
2365 *\ * | *\ *)
2366 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2367 *)
2368 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2369 esac
2370fi
2371# Use eval to expand $SHELL
2372if eval "$MISSING --is-lightweight"; then
2373 am_missing_run="$MISSING "
2374else
2375 am_missing_run=
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2377$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2378fi
2379
2380if test x"${install_sh+set}" != xset; then
2381 case $am_aux_dir in
2382 *\ * | *\ *)
2383 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2384 *)
2385 install_sh="\${SHELL} $am_aux_dir/install-sh"
2386 esac
2387fi
2388
2389# Installed binaries are usually stripped using 'strip' when the user
2390# run "make install-strip". However 'strip' might not be the right
2391# tool to use in cross-compilation environments, therefore Automake
2392# will honor the 'STRIP' environment variable to overrule this program.
2393if test "$cross_compiling" != no; then
2394 if test -n "$ac_tool_prefix"; then
2395 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2396set dummy ${ac_tool_prefix}strip; ac_word=$2
2397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2398$as_echo_n "checking for $ac_word... " >&6; }
2399if ${ac_cv_prog_STRIP+:} false; then :
2400 $as_echo_n "(cached) " >&6
2401else
2402 if test -n "$STRIP"; then
2403 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2404else
2405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406for as_dir in $PATH
2407do
2408 IFS=$as_save_IFS
2409 test -z "$as_dir" && as_dir=.
2410 for ac_exec_ext in '' $ac_executable_extensions; do
2411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2412 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2414 break 2
2415 fi
2416done
2417 done
2418IFS=$as_save_IFS
2419
2420fi
2421fi
2422STRIP=$ac_cv_prog_STRIP
2423if test -n "$STRIP"; then
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2425$as_echo "$STRIP" >&6; }
2426else
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2428$as_echo "no" >&6; }
2429fi
2430
2431
2432fi
2433if test -z "$ac_cv_prog_STRIP"; then
2434 ac_ct_STRIP=$STRIP
2435 # Extract the first word of "strip", so it can be a program name with args.
2436set dummy strip; ac_word=$2
2437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2438$as_echo_n "checking for $ac_word... " >&6; }
2439if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2440 $as_echo_n "(cached) " >&6
2441else
2442 if test -n "$ac_ct_STRIP"; then
2443 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2444else
2445as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446for as_dir in $PATH
2447do
2448 IFS=$as_save_IFS
2449 test -z "$as_dir" && as_dir=.
2450 for ac_exec_ext in '' $ac_executable_extensions; do
2451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2452 ac_cv_prog_ac_ct_STRIP="strip"
2453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2454 break 2
2455 fi
2456done
2457 done
2458IFS=$as_save_IFS
2459
2460fi
2461fi
2462ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2463if test -n "$ac_ct_STRIP"; then
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2465$as_echo "$ac_ct_STRIP" >&6; }
2466else
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2468$as_echo "no" >&6; }
2469fi
2470
2471 if test "x$ac_ct_STRIP" = x; then
2472 STRIP=":"
2473 else
2474 case $cross_compiling:$ac_tool_warned in
2475yes:)
2476{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2477$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2478ac_tool_warned=yes ;;
2479esac
2480 STRIP=$ac_ct_STRIP
2481 fi
2482else
2483 STRIP="$ac_cv_prog_STRIP"
2484fi
2485
2486fi
2487INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2488
2489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2490$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2491if test -z "$MKDIR_P"; then
2492 if ${ac_cv_path_mkdir+:} false; then :
2493 $as_echo_n "(cached) " >&6
2494else
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2497do
2498 IFS=$as_save_IFS
2499 test -z "$as_dir" && as_dir=.
2500 for ac_prog in mkdir gmkdir; do
2501 for ac_exec_ext in '' $ac_executable_extensions; do
2502 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2503 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2504 'mkdir (GNU coreutils) '* | \
2505 'mkdir (coreutils) '* | \
2506 'mkdir (fileutils) '4.1*)
2507 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2508 break 3;;
2509 esac
2510 done
2511 done
2512 done
2513IFS=$as_save_IFS
2514
2515fi
2516
2517 test -d ./--version && rmdir ./--version
2518 if test "${ac_cv_path_mkdir+set}" = set; then
2519 MKDIR_P="$ac_cv_path_mkdir -p"
2520 else
2521 # As a last resort, use the slow shell script. Don't cache a
2522 # value for MKDIR_P within a source directory, because that will
2523 # break other packages using the cache if that directory is
2524 # removed, or if the value is a relative name.
2525 MKDIR_P="$ac_install_sh -d"
2526 fi
2527fi
2528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2529$as_echo "$MKDIR_P" >&6; }
2530
2531for ac_prog in gawk mawk nawk awk
2532do
2533 # Extract the first word of "$ac_prog", so it can be a program name with args.
2534set dummy $ac_prog; ac_word=$2
2535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2536$as_echo_n "checking for $ac_word... " >&6; }
2537if ${ac_cv_prog_AWK+:} false; then :
2538 $as_echo_n "(cached) " >&6
2539else
2540 if test -n "$AWK"; then
2541 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2542else
2543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544for as_dir in $PATH
2545do
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2550 ac_cv_prog_AWK="$ac_prog"
2551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 break 2
2553 fi
2554done
2555 done
2556IFS=$as_save_IFS
2557
2558fi
2559fi
2560AWK=$ac_cv_prog_AWK
2561if test -n "$AWK"; then
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2563$as_echo "$AWK" >&6; }
2564else
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2566$as_echo "no" >&6; }
2567fi
2568
2569
2570 test -n "$AWK" && break
2571done
2572
2573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2574$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2575set x ${MAKE-make}
2576ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2577if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2578 $as_echo_n "(cached) " >&6
2579else
2580 cat >conftest.make <<\_ACEOF
2581SHELL = /bin/sh
2582all:
2583 @echo '@@@%%%=$(MAKE)=@@@%%%'
2584_ACEOF
2585# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2586case `${MAKE-make} -f conftest.make 2>/dev/null` in
2587 *@@@%%%=?*=@@@%%%*)
2588 eval ac_cv_prog_make_${ac_make}_set=yes;;
2589 *)
2590 eval ac_cv_prog_make_${ac_make}_set=no;;
2591esac
2592rm -f conftest.make
2593fi
2594if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2596$as_echo "yes" >&6; }
2597 SET_MAKE=
2598else
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2600$as_echo "no" >&6; }
2601 SET_MAKE="MAKE=${MAKE-make}"
2602fi
2603
2604rm -rf .tst 2>/dev/null
2605mkdir .tst 2>/dev/null
2606if test -d .tst; then
2607 am__leading_dot=.
2608else
2609 am__leading_dot=_
2610fi
2611rmdir .tst 2>/dev/null
2612
2613# Check whether --enable-silent-rules was given.
2614if test "${enable_silent_rules+set}" = set; then :
2615 enableval=$enable_silent_rules;
2616fi
2617
2618case $enable_silent_rules in # (((
2619 yes) AM_DEFAULT_VERBOSITY=0;;
2620 no) AM_DEFAULT_VERBOSITY=1;;
2621 *) AM_DEFAULT_VERBOSITY=1;;
2622esac
2623am_make=${MAKE-make}
2624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2625$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2626if ${am_cv_make_support_nested_variables+:} false; then :
2627 $as_echo_n "(cached) " >&6
2628else
2629 if $as_echo 'TRUE=$(BAR$(V))
2630BAR0=false
2631BAR1=true
2632V=1
2633am__doit:
2634 @$(TRUE)
2635.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2636 am_cv_make_support_nested_variables=yes
2637else
2638 am_cv_make_support_nested_variables=no
2639fi
2640fi
2641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2642$as_echo "$am_cv_make_support_nested_variables" >&6; }
2643if test $am_cv_make_support_nested_variables = yes; then
2644 AM_V='$(V)'
2645 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2646else
2647 AM_V=$AM_DEFAULT_VERBOSITY
2648 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2649fi
2650AM_BACKSLASH='\'
2651
2652if test "`cd $srcdir && pwd`" != "`pwd`"; then
2653 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2654 # is not polluted with repeated "-I."
2655 am__isrc=' -I$(srcdir)'
2656 # test to see if srcdir already configured
2657 if test -f $srcdir/config.status; then
2658 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2659 fi
2660fi
2661
2662# test whether we have cygpath
2663if test -z "$CYGPATH_W"; then
2664 if (cygpath --version) >/dev/null 2>/dev/null; then
2665 CYGPATH_W='cygpath -w'
2666 else
2667 CYGPATH_W=echo
2668 fi
2669fi
2670
2671
2672# Define the identity of the package.
2673 PACKAGE='meson_display_framework'
2674 VERSION='0.1'
2675
2676
2677cat >>confdefs.h <<_ACEOF
2678#define PACKAGE "$PACKAGE"
2679_ACEOF
2680
2681
2682cat >>confdefs.h <<_ACEOF
2683#define VERSION "$VERSION"
2684_ACEOF
2685
2686# Some tools Automake needs.
2687
2688ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2689
2690
2691AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2692
2693
2694AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2695
2696
2697AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2698
2699
2700MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2701
2702# For better backward compatibility. To be removed once Automake 1.9.x
2703# dies out for good. For more background, see:
2704# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2705# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2706mkdir_p='$(MKDIR_P)'
2707
2708# We need awk for the "check" target (and possibly the TAP driver). The
2709# system "awk" is bad on some platforms.
2710# Always define AMTAR for backward compatibility. Yes, it's still used
2711# in the wild :-( We should find a proper way to deprecate it ...
2712AMTAR='$${TAR-tar}'
2713
2714
2715# We'll loop over all known methods to create a tar archive until one works.
2716_am_tools='gnutar pax cpio none'
2717
2718am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2719
2720
2721
2722
2723
2724
2725# POSIX will say in a future version that running "rm -f" with no argument
2726# is OK; and we want to be able to make that assumption in our Makefile
2727# recipes. So use an aggressive probe to check that the usage we want is
2728# actually supported "in the wild" to an acceptable degree.
2729# See automake bug#10828.
2730# To make any issue more visible, cause the running configure to be aborted
2731# by default if the 'rm' program in use doesn't match our expectations; the
2732# user can still override this though.
2733if rm -f && rm -fr && rm -rf; then : OK; else
2734 cat >&2 <<'END'
2735Oops!
2736
2737Your 'rm' program seems unable to run without file operands specified
2738on the command line, even when the '-f' option is present. This is contrary
2739to the behaviour of most rm programs out there, and not conforming with
2740the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2741
2742Please tell bug-automake@gnu.org about your system, including the value
2743of your $PATH and any error possibly output before this message. This
2744can help us improve future automake versions.
2745
2746END
2747 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2748 echo 'Configuration will proceed anyway, since you have set the' >&2
2749 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2750 echo >&2
2751 else
2752 cat >&2 <<'END'
2753Aborting the configuration process, to ensure you take notice of the issue.
2754
2755You can download and install GNU coreutils to get an 'rm' implementation
2756that behaves properly: <http://www.gnu.org/software/coreutils/>.
2757
2758If you want to complete the configuration process using your problematic
2759'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2760to "yes", and re-run configure.
2761
2762END
2763 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2764 fi
2765fi
2766
2767ac_ext=c
2768ac_cpp='$CPP $CPPFLAGS'
2769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2771ac_compiler_gnu=$ac_cv_c_compiler_gnu
2772if test -n "$ac_tool_prefix"; then
2773 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2774set dummy ${ac_tool_prefix}gcc; ac_word=$2
2775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2776$as_echo_n "checking for $ac_word... " >&6; }
2777if ${ac_cv_prog_CC+:} false; then :
2778 $as_echo_n "(cached) " >&6
2779else
2780 if test -n "$CC"; then
2781 ac_cv_prog_CC="$CC" # Let the user override the test.
2782else
2783as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2784for as_dir in $PATH
2785do
2786 IFS=$as_save_IFS
2787 test -z "$as_dir" && as_dir=.
2788 for ac_exec_ext in '' $ac_executable_extensions; do
2789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2790 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 break 2
2793 fi
2794done
2795 done
2796IFS=$as_save_IFS
2797
2798fi
2799fi
2800CC=$ac_cv_prog_CC
2801if test -n "$CC"; then
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2803$as_echo "$CC" >&6; }
2804else
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2806$as_echo "no" >&6; }
2807fi
2808
2809
2810fi
2811if test -z "$ac_cv_prog_CC"; then
2812 ac_ct_CC=$CC
2813 # Extract the first word of "gcc", so it can be a program name with args.
2814set dummy gcc; ac_word=$2
2815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816$as_echo_n "checking for $ac_word... " >&6; }
2817if ${ac_cv_prog_ac_ct_CC+:} false; then :
2818 $as_echo_n "(cached) " >&6
2819else
2820 if test -n "$ac_ct_CC"; then
2821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2822else
2823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824for as_dir in $PATH
2825do
2826 IFS=$as_save_IFS
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2830 ac_cv_prog_ac_ct_CC="gcc"
2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 break 2
2833 fi
2834done
2835 done
2836IFS=$as_save_IFS
2837
2838fi
2839fi
2840ac_ct_CC=$ac_cv_prog_ac_ct_CC
2841if test -n "$ac_ct_CC"; then
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2843$as_echo "$ac_ct_CC" >&6; }
2844else
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846$as_echo "no" >&6; }
2847fi
2848
2849 if test "x$ac_ct_CC" = x; then
2850 CC=""
2851 else
2852 case $cross_compiling:$ac_tool_warned in
2853yes:)
2854{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2855$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2856ac_tool_warned=yes ;;
2857esac
2858 CC=$ac_ct_CC
2859 fi
2860else
2861 CC="$ac_cv_prog_CC"
2862fi
2863
2864if test -z "$CC"; then
2865 if test -n "$ac_tool_prefix"; then
2866 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2867set dummy ${ac_tool_prefix}cc; ac_word=$2
2868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2869$as_echo_n "checking for $ac_word... " >&6; }
2870if ${ac_cv_prog_CC+:} false; then :
2871 $as_echo_n "(cached) " >&6
2872else
2873 if test -n "$CC"; then
2874 ac_cv_prog_CC="$CC" # Let the user override the test.
2875else
2876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877for as_dir in $PATH
2878do
2879 IFS=$as_save_IFS
2880 test -z "$as_dir" && as_dir=.
2881 for ac_exec_ext in '' $ac_executable_extensions; do
2882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2883 ac_cv_prog_CC="${ac_tool_prefix}cc"
2884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 break 2
2886 fi
2887done
2888 done
2889IFS=$as_save_IFS
2890
2891fi
2892fi
2893CC=$ac_cv_prog_CC
2894if test -n "$CC"; then
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2896$as_echo "$CC" >&6; }
2897else
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2899$as_echo "no" >&6; }
2900fi
2901
2902
2903 fi
2904fi
2905if test -z "$CC"; then
2906 # Extract the first word of "cc", so it can be a program name with args.
2907set dummy cc; ac_word=$2
2908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909$as_echo_n "checking for $ac_word... " >&6; }
2910if ${ac_cv_prog_CC+:} false; then :
2911 $as_echo_n "(cached) " >&6
2912else
2913 if test -n "$CC"; then
2914 ac_cv_prog_CC="$CC" # Let the user override the test.
2915else
2916 ac_prog_rejected=no
2917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918for as_dir in $PATH
2919do
2920 IFS=$as_save_IFS
2921 test -z "$as_dir" && as_dir=.
2922 for ac_exec_ext in '' $ac_executable_extensions; do
2923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2924 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2925 ac_prog_rejected=yes
2926 continue
2927 fi
2928 ac_cv_prog_CC="cc"
2929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 break 2
2931 fi
2932done
2933 done
2934IFS=$as_save_IFS
2935
2936if test $ac_prog_rejected = yes; then
2937 # We found a bogon in the path, so make sure we never use it.
2938 set dummy $ac_cv_prog_CC
2939 shift
2940 if test $# != 0; then
2941 # We chose a different compiler from the bogus one.
2942 # However, it has the same basename, so the bogon will be chosen
2943 # first if we set CC to just the basename; use the full file name.
2944 shift
2945 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2946 fi
2947fi
2948fi
2949fi
2950CC=$ac_cv_prog_CC
2951if test -n "$CC"; then
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2953$as_echo "$CC" >&6; }
2954else
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2956$as_echo "no" >&6; }
2957fi
2958
2959
2960fi
2961if test -z "$CC"; then
2962 if test -n "$ac_tool_prefix"; then
2963 for ac_prog in cl.exe
2964 do
2965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2966set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2968$as_echo_n "checking for $ac_word... " >&6; }
2969if ${ac_cv_prog_CC+:} false; then :
2970 $as_echo_n "(cached) " >&6
2971else
2972 if test -n "$CC"; then
2973 ac_cv_prog_CC="$CC" # Let the user override the test.
2974else
2975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2976for as_dir in $PATH
2977do
2978 IFS=$as_save_IFS
2979 test -z "$as_dir" && as_dir=.
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2982 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 break 2
2985 fi
2986done
2987 done
2988IFS=$as_save_IFS
2989
2990fi
2991fi
2992CC=$ac_cv_prog_CC
2993if test -n "$CC"; then
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2995$as_echo "$CC" >&6; }
2996else
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2998$as_echo "no" >&6; }
2999fi
3000
3001
3002 test -n "$CC" && break
3003 done
3004fi
3005if test -z "$CC"; then
3006 ac_ct_CC=$CC
3007 for ac_prog in cl.exe
3008do
3009 # Extract the first word of "$ac_prog", so it can be a program name with args.
3010set dummy $ac_prog; ac_word=$2
3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3012$as_echo_n "checking for $ac_word... " >&6; }
3013if ${ac_cv_prog_ac_ct_CC+:} false; then :
3014 $as_echo_n "(cached) " >&6
3015else
3016 if test -n "$ac_ct_CC"; then
3017 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3018else
3019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020for as_dir in $PATH
3021do
3022 IFS=$as_save_IFS
3023 test -z "$as_dir" && as_dir=.
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3026 ac_cv_prog_ac_ct_CC="$ac_prog"
3027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 break 2
3029 fi
3030done
3031 done
3032IFS=$as_save_IFS
3033
3034fi
3035fi
3036ac_ct_CC=$ac_cv_prog_ac_ct_CC
3037if test -n "$ac_ct_CC"; then
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3039$as_echo "$ac_ct_CC" >&6; }
3040else
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042$as_echo "no" >&6; }
3043fi
3044
3045
3046 test -n "$ac_ct_CC" && break
3047done
3048
3049 if test "x$ac_ct_CC" = x; then
3050 CC=""
3051 else
3052 case $cross_compiling:$ac_tool_warned in
3053yes:)
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3056ac_tool_warned=yes ;;
3057esac
3058 CC=$ac_ct_CC
3059 fi
3060fi
3061
3062fi
3063
3064
3065test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3067as_fn_error $? "no acceptable C compiler found in \$PATH
3068See \`config.log' for more details" "$LINENO" 5; }
3069
3070# Provide some information about the compiler.
3071$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3072set X $ac_compile
3073ac_compiler=$2
3074for ac_option in --version -v -V -qversion; do
3075 { { ac_try="$ac_compiler $ac_option >&5"
3076case "(($ac_try" in
3077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3078 *) ac_try_echo=$ac_try;;
3079esac
3080eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3081$as_echo "$ac_try_echo"; } >&5
3082 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3083 ac_status=$?
3084 if test -s conftest.err; then
3085 sed '10a\
3086... rest of stderr output deleted ...
3087 10q' conftest.err >conftest.er1
3088 cat conftest.er1 >&5
3089 fi
3090 rm -f conftest.er1 conftest.err
3091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3092 test $ac_status = 0; }
3093done
3094
3095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3096/* end confdefs.h. */
3097
3098int
3099main ()
3100{
3101
3102 ;
3103 return 0;
3104}
3105_ACEOF
3106ac_clean_files_save=$ac_clean_files
3107ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3108# Try to create an executable without -o first, disregard a.out.
3109# It will help us diagnose broken compilers, and finding out an intuition
3110# of exeext.
3111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3112$as_echo_n "checking whether the C compiler works... " >&6; }
3113ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3114
3115# The possible output files:
3116ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3117
3118ac_rmfiles=
3119for ac_file in $ac_files
3120do
3121 case $ac_file in
3122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3123 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3124 esac
3125done
3126rm -f $ac_rmfiles
3127
3128if { { ac_try="$ac_link_default"
3129case "(($ac_try" in
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3132esac
3133eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3134$as_echo "$ac_try_echo"; } >&5
3135 (eval "$ac_link_default") 2>&5
3136 ac_status=$?
3137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3138 test $ac_status = 0; }; then :
3139 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3140# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3141# in a Makefile. We should not override ac_cv_exeext if it was cached,
3142# so that the user can short-circuit this test for compilers unknown to
3143# Autoconf.
3144for ac_file in $ac_files ''
3145do
3146 test -f "$ac_file" || continue
3147 case $ac_file in
3148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3149 ;;
3150 [ab].out )
3151 # We found the default executable, but exeext='' is most
3152 # certainly right.
3153 break;;
3154 *.* )
3155 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3156 then :; else
3157 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3158 fi
3159 # We set ac_cv_exeext here because the later test for it is not
3160 # safe: cross compilers may not add the suffix if given an `-o'
3161 # argument, so we may need to know it at that point already.
3162 # Even if this section looks crufty: it has the advantage of
3163 # actually working.
3164 break;;
3165 * )
3166 break;;
3167 esac
3168done
3169test "$ac_cv_exeext" = no && ac_cv_exeext=
3170
3171else
3172 ac_file=''
3173fi
3174if test -z "$ac_file"; then :
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176$as_echo "no" >&6; }
3177$as_echo "$as_me: failed program was:" >&5
3178sed 's/^/| /' conftest.$ac_ext >&5
3179
3180{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182as_fn_error 77 "C compiler cannot create executables
3183See \`config.log' for more details" "$LINENO" 5; }
3184else
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3186$as_echo "yes" >&6; }
3187fi
3188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3189$as_echo_n "checking for C compiler default output file name... " >&6; }
3190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3191$as_echo "$ac_file" >&6; }
3192ac_exeext=$ac_cv_exeext
3193
3194rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3195ac_clean_files=$ac_clean_files_save
3196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3197$as_echo_n "checking for suffix of executables... " >&6; }
3198if { { ac_try="$ac_link"
3199case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202esac
3203eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3204$as_echo "$ac_try_echo"; } >&5
3205 (eval "$ac_link") 2>&5
3206 ac_status=$?
3207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3208 test $ac_status = 0; }; then :
3209 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3210# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3211# work properly (i.e., refer to `conftest.exe'), while it won't with
3212# `rm'.
3213for ac_file in conftest.exe conftest conftest.*; do
3214 test -f "$ac_file" || continue
3215 case $ac_file in
3216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3217 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3218 break;;
3219 * ) break;;
3220 esac
3221done
3222else
3223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3224$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3225as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3226See \`config.log' for more details" "$LINENO" 5; }
3227fi
3228rm -f conftest conftest$ac_cv_exeext
3229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3230$as_echo "$ac_cv_exeext" >&6; }
3231
3232rm -f conftest.$ac_ext
3233EXEEXT=$ac_cv_exeext
3234ac_exeext=$EXEEXT
3235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3236/* end confdefs.h. */
3237#include <stdio.h>
3238int
3239main ()
3240{
3241FILE *f = fopen ("conftest.out", "w");
3242 return ferror (f) || fclose (f) != 0;
3243
3244 ;
3245 return 0;
3246}
3247_ACEOF
3248ac_clean_files="$ac_clean_files conftest.out"
3249# Check that the compiler produces executables we can run. If not, either
3250# the compiler is broken, or we cross compile.
3251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3252$as_echo_n "checking whether we are cross compiling... " >&6; }
3253if test "$cross_compiling" != yes; then
3254 { { ac_try="$ac_link"
3255case "(($ac_try" in
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3258esac
3259eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3260$as_echo "$ac_try_echo"; } >&5
3261 (eval "$ac_link") 2>&5
3262 ac_status=$?
3263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3264 test $ac_status = 0; }
3265 if { ac_try='./conftest$ac_cv_exeext'
3266 { { case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269esac
3270eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271$as_echo "$ac_try_echo"; } >&5
3272 (eval "$ac_try") 2>&5
3273 ac_status=$?
3274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275 test $ac_status = 0; }; }; then
3276 cross_compiling=no
3277 else
3278 if test "$cross_compiling" = maybe; then
3279 cross_compiling=yes
3280 else
3281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283as_fn_error $? "cannot run C compiled programs.
3284If you meant to cross compile, use \`--host'.
3285See \`config.log' for more details" "$LINENO" 5; }
3286 fi
3287 fi
3288fi
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3290$as_echo "$cross_compiling" >&6; }
3291
3292rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3293ac_clean_files=$ac_clean_files_save
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3295$as_echo_n "checking for suffix of object files... " >&6; }
3296if ${ac_cv_objext+:} false; then :
3297 $as_echo_n "(cached) " >&6
3298else
3299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3300/* end confdefs.h. */
3301
3302int
3303main ()
3304{
3305
3306 ;
3307 return 0;
3308}
3309_ACEOF
3310rm -f conftest.o conftest.obj
3311if { { ac_try="$ac_compile"
3312case "(($ac_try" in
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3315esac
3316eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3317$as_echo "$ac_try_echo"; } >&5
3318 (eval "$ac_compile") 2>&5
3319 ac_status=$?
3320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3321 test $ac_status = 0; }; then :
3322 for ac_file in conftest.o conftest.obj conftest.*; do
3323 test -f "$ac_file" || continue;
3324 case $ac_file in
3325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3326 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3327 break;;
3328 esac
3329done
3330else
3331 $as_echo "$as_me: failed program was:" >&5
3332sed 's/^/| /' conftest.$ac_ext >&5
3333
3334{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3335$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3336as_fn_error $? "cannot compute suffix of object files: cannot compile
3337See \`config.log' for more details" "$LINENO" 5; }
3338fi
3339rm -f conftest.$ac_cv_objext conftest.$ac_ext
3340fi
3341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3342$as_echo "$ac_cv_objext" >&6; }
3343OBJEXT=$ac_cv_objext
3344ac_objext=$OBJEXT
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3346$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3347if ${ac_cv_c_compiler_gnu+:} false; then :
3348 $as_echo_n "(cached) " >&6
3349else
3350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351/* end confdefs.h. */
3352
3353int
3354main ()
3355{
3356#ifndef __GNUC__
3357 choke me
3358#endif
3359
3360 ;
3361 return 0;
3362}
3363_ACEOF
3364if ac_fn_c_try_compile "$LINENO"; then :
3365 ac_compiler_gnu=yes
3366else
3367 ac_compiler_gnu=no
3368fi
3369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3370ac_cv_c_compiler_gnu=$ac_compiler_gnu
3371
3372fi
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3374$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3375if test $ac_compiler_gnu = yes; then
3376 GCC=yes
3377else
3378 GCC=
3379fi
3380ac_test_CFLAGS=${CFLAGS+set}
3381ac_save_CFLAGS=$CFLAGS
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3383$as_echo_n "checking whether $CC accepts -g... " >&6; }
3384if ${ac_cv_prog_cc_g+:} false; then :
3385 $as_echo_n "(cached) " >&6
3386else
3387 ac_save_c_werror_flag=$ac_c_werror_flag
3388 ac_c_werror_flag=yes
3389 ac_cv_prog_cc_g=no
3390 CFLAGS="-g"
3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392/* end confdefs.h. */
3393
3394int
3395main ()
3396{
3397
3398 ;
3399 return 0;
3400}
3401_ACEOF
3402if ac_fn_c_try_compile "$LINENO"; then :
3403 ac_cv_prog_cc_g=yes
3404else
3405 CFLAGS=""
3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407/* end confdefs.h. */
3408
3409int
3410main ()
3411{
3412
3413 ;
3414 return 0;
3415}
3416_ACEOF
3417if ac_fn_c_try_compile "$LINENO"; then :
3418
3419else
3420 ac_c_werror_flag=$ac_save_c_werror_flag
3421 CFLAGS="-g"
3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423/* end confdefs.h. */
3424
3425int
3426main ()
3427{
3428
3429 ;
3430 return 0;
3431}
3432_ACEOF
3433if ac_fn_c_try_compile "$LINENO"; then :
3434 ac_cv_prog_cc_g=yes
3435fi
3436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3437fi
3438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3439fi
3440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3441 ac_c_werror_flag=$ac_save_c_werror_flag
3442fi
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3444$as_echo "$ac_cv_prog_cc_g" >&6; }
3445if test "$ac_test_CFLAGS" = set; then
3446 CFLAGS=$ac_save_CFLAGS
3447elif test $ac_cv_prog_cc_g = yes; then
3448 if test "$GCC" = yes; then
3449 CFLAGS="-g -O2"
3450 else
3451 CFLAGS="-g"
3452 fi
3453else
3454 if test "$GCC" = yes; then
3455 CFLAGS="-O2"
3456 else
3457 CFLAGS=
3458 fi
3459fi
3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3461$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3462if ${ac_cv_prog_cc_c89+:} false; then :
3463 $as_echo_n "(cached) " >&6
3464else
3465 ac_cv_prog_cc_c89=no
3466ac_save_CC=$CC
3467cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468/* end confdefs.h. */
3469#include <stdarg.h>
3470#include <stdio.h>
3471struct stat;
3472/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3473struct buf { int x; };
3474FILE * (*rcsopen) (struct buf *, struct stat *, int);
3475static char *e (p, i)
3476 char **p;
3477 int i;
3478{
3479 return p[i];
3480}
3481static char *f (char * (*g) (char **, int), char **p, ...)
3482{
3483 char *s;
3484 va_list v;
3485 va_start (v,p);
3486 s = g (p, va_arg (v,int));
3487 va_end (v);
3488 return s;
3489}
3490
3491/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3492 function prototypes and stuff, but not '\xHH' hex character constants.
3493 These don't provoke an error unfortunately, instead are silently treated
3494 as 'x'. The following induces an error, until -std is added to get
3495 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3496 array size at least. It's necessary to write '\x00'==0 to get something
3497 that's true only with -std. */
3498int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3499
3500/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3501 inside strings and character constants. */
3502#define FOO(x) 'x'
3503int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3504
3505int test (int i, double x);
3506struct s1 {int (*f) (int a);};
3507struct s2 {int (*f) (double a);};
3508int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3509int argc;
3510char **argv;
3511int
3512main ()
3513{
3514return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3515 ;
3516 return 0;
3517}
3518_ACEOF
3519for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3520 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3521do
3522 CC="$ac_save_CC $ac_arg"
3523 if ac_fn_c_try_compile "$LINENO"; then :
3524 ac_cv_prog_cc_c89=$ac_arg
3525fi
3526rm -f core conftest.err conftest.$ac_objext
3527 test "x$ac_cv_prog_cc_c89" != "xno" && break
3528done
3529rm -f conftest.$ac_ext
3530CC=$ac_save_CC
3531
3532fi
3533# AC_CACHE_VAL
3534case "x$ac_cv_prog_cc_c89" in
3535 x)
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3537$as_echo "none needed" >&6; } ;;
3538 xno)
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3540$as_echo "unsupported" >&6; } ;;
3541 *)
3542 CC="$CC $ac_cv_prog_cc_c89"
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3544$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3545esac
3546if test "x$ac_cv_prog_cc_c89" != xno; then :
3547
3548fi
3549
3550ac_ext=c
3551ac_cpp='$CPP $CPPFLAGS'
3552ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554ac_compiler_gnu=$ac_cv_c_compiler_gnu
3555
3556ac_ext=c
3557ac_cpp='$CPP $CPPFLAGS'
3558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3560ac_compiler_gnu=$ac_cv_c_compiler_gnu
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3562$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3563if ${am_cv_prog_cc_c_o+:} false; then :
3564 $as_echo_n "(cached) " >&6
3565else
3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567/* end confdefs.h. */
3568
3569int
3570main ()
3571{
3572
3573 ;
3574 return 0;
3575}
3576_ACEOF
3577 # Make sure it works both with $CC and with simple cc.
3578 # Following AC_PROG_CC_C_O, we do the test twice because some
3579 # compilers refuse to overwrite an existing .o file with -o,
3580 # though they will create one.
3581 am_cv_prog_cc_c_o=yes
3582 for am_i in 1 2; do
3583 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3584 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3585 ac_status=$?
3586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587 (exit $ac_status); } \
3588 && test -f conftest2.$ac_objext; then
3589 : OK
3590 else
3591 am_cv_prog_cc_c_o=no
3592 break
3593 fi
3594 done
3595 rm -f core conftest*
3596 unset am_i
3597fi
3598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3599$as_echo "$am_cv_prog_cc_c_o" >&6; }
3600if test "$am_cv_prog_cc_c_o" != yes; then
3601 # Losing compiler, so override with the script.
3602 # FIXME: It is wrong to rewrite CC.
3603 # But if we don't then we get into trouble of one sort or another.
3604 # A longer-term fix would be to have automake use am__CC in this case,
3605 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3606 CC="$am_aux_dir/compile $CC"
3607fi
3608ac_ext=c
3609ac_cpp='$CPP $CPPFLAGS'
3610ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3611ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3612ac_compiler_gnu=$ac_cv_c_compiler_gnu
3613
3614DEPDIR="${am__leading_dot}deps"
3615
3616ac_config_commands="$ac_config_commands depfiles"
3617
3618
3619am_make=${MAKE-make}
3620cat > confinc << 'END'
3621am__doit:
3622 @echo this is the am__doit target
3623.PHONY: am__doit
3624END
3625# If we don't find an include directive, just comment out the code.
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3627$as_echo_n "checking for style of include used by $am_make... " >&6; }
3628am__include="#"
3629am__quote=
3630_am_result=none
3631# First try GNU make style include.
3632echo "include confinc" > confmf
3633# Ignore all kinds of additional output from 'make'.
3634case `$am_make -s -f confmf 2> /dev/null` in #(
3635*the\ am__doit\ target*)
3636 am__include=include
3637 am__quote=
3638 _am_result=GNU
3639 ;;
3640esac
3641# Now try BSD make style include.
3642if test "$am__include" = "#"; then
3643 echo '.include "confinc"' > confmf
3644 case `$am_make -s -f confmf 2> /dev/null` in #(
3645 *the\ am__doit\ target*)
3646 am__include=.include
3647 am__quote="\""
3648 _am_result=BSD
3649 ;;
3650 esac
3651fi
3652
3653
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3655$as_echo "$_am_result" >&6; }
3656rm -f confinc confmf
3657
3658# Check whether --enable-dependency-tracking was given.
3659if test "${enable_dependency_tracking+set}" = set; then :
3660 enableval=$enable_dependency_tracking;
3661fi
3662
3663if test "x$enable_dependency_tracking" != xno; then
3664 am_depcomp="$ac_aux_dir/depcomp"
3665 AMDEPBACKSLASH='\'
3666 am__nodep='_no'
3667fi
3668 if test "x$enable_dependency_tracking" != xno; then
3669 AMDEP_TRUE=
3670 AMDEP_FALSE='#'
3671else
3672 AMDEP_TRUE='#'
3673 AMDEP_FALSE=
3674fi
3675
3676
3677
3678depcc="$CC" am_compiler_list=
3679
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3681$as_echo_n "checking dependency style of $depcc... " >&6; }
3682if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3683 $as_echo_n "(cached) " >&6
3684else
3685 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3686 # We make a subdir and do the tests there. Otherwise we can end up
3687 # making bogus files that we don't know about and never remove. For
3688 # instance it was reported that on HP-UX the gcc test will end up
3689 # making a dummy file named 'D' -- because '-MD' means "put the output
3690 # in D".
3691 rm -rf conftest.dir
3692 mkdir conftest.dir
3693 # Copy depcomp to subdir because otherwise we won't find it if we're
3694 # using a relative directory.
3695 cp "$am_depcomp" conftest.dir
3696 cd conftest.dir
3697 # We will build objects and dependencies in a subdirectory because
3698 # it helps to detect inapplicable dependency modes. For instance
3699 # both Tru64's cc and ICC support -MD to output dependencies as a
3700 # side effect of compilation, but ICC will put the dependencies in
3701 # the current directory while Tru64 will put them in the object
3702 # directory.
3703 mkdir sub
3704
3705 am_cv_CC_dependencies_compiler_type=none
3706 if test "$am_compiler_list" = ""; then
3707 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3708 fi
3709 am__universal=false
3710 case " $depcc " in #(
3711 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3712 esac
3713
3714 for depmode in $am_compiler_list; do
3715 # Setup a source with many dependencies, because some compilers
3716 # like to wrap large dependency lists on column 80 (with \), and
3717 # we should not choose a depcomp mode which is confused by this.
3718 #
3719 # We need to recreate these files for each test, as the compiler may
3720 # overwrite some of them when testing with obscure command lines.
3721 # This happens at least with the AIX C compiler.
3722 : > sub/conftest.c
3723 for i in 1 2 3 4 5 6; do
3724 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3725 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3726 # Solaris 10 /bin/sh.
3727 echo '/* dummy */' > sub/conftst$i.h
3728 done
3729 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3730
3731 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3732 # mode. It turns out that the SunPro C++ compiler does not properly
3733 # handle '-M -o', and we need to detect this. Also, some Intel
3734 # versions had trouble with output in subdirs.
3735 am__obj=sub/conftest.${OBJEXT-o}
3736 am__minus_obj="-o $am__obj"
3737 case $depmode in
3738 gcc)
3739 # This depmode causes a compiler race in universal mode.
3740 test "$am__universal" = false || continue
3741 ;;
3742 nosideeffect)
3743 # After this tag, mechanisms are not by side-effect, so they'll
3744 # only be used when explicitly requested.
3745 if test "x$enable_dependency_tracking" = xyes; then
3746 continue
3747 else
3748 break
3749 fi
3750 ;;
3751 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3752 # This compiler won't grok '-c -o', but also, the minuso test has
3753 # not run yet. These depmodes are late enough in the game, and
3754 # so weak that their functioning should not be impacted.
3755 am__obj=conftest.${OBJEXT-o}
3756 am__minus_obj=
3757 ;;
3758 none) break ;;
3759 esac
3760 if depmode=$depmode \
3761 source=sub/conftest.c object=$am__obj \
3762 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3763 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3764 >/dev/null 2>conftest.err &&
3765 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3766 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3767 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3768 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3769 # icc doesn't choke on unknown options, it will just issue warnings
3770 # or remarks (even with -Werror). So we grep stderr for any message
3771 # that says an option was ignored or not supported.
3772 # When given -MP, icc 7.0 and 7.1 complain thusly:
3773 # icc: Command line warning: ignoring option '-M'; no argument required
3774 # The diagnosis changed in icc 8.0:
3775 # icc: Command line remark: option '-MP' not supported
3776 if (grep 'ignoring option' conftest.err ||
3777 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3778 am_cv_CC_dependencies_compiler_type=$depmode
3779 break
3780 fi
3781 fi
3782 done
3783
3784 cd ..
3785 rm -rf conftest.dir
3786else
3787 am_cv_CC_dependencies_compiler_type=none
3788fi
3789
3790fi
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3792$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3793CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3794
3795 if
3796 test "x$enable_dependency_tracking" != xno \
3797 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3798 am__fastdepCC_TRUE=
3799 am__fastdepCC_FALSE='#'
3800else
3801 am__fastdepCC_TRUE='#'
3802 am__fastdepCC_FALSE=
3803fi
3804
3805
3806ac_config_headers="$ac_config_headers config.h"
3807
3808ac_config_files="$ac_config_files Makefile"
3809
3810
3811if test -n "$ac_tool_prefix"; then
3812 for ac_prog in ar lib "link -lib"
3813 do
3814 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3815set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3817$as_echo_n "checking for $ac_word... " >&6; }
3818if ${ac_cv_prog_AR+:} false; then :
3819 $as_echo_n "(cached) " >&6
3820else
3821 if test -n "$AR"; then
3822 ac_cv_prog_AR="$AR" # Let the user override the test.
3823else
3824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3825for as_dir in $PATH
3826do
3827 IFS=$as_save_IFS
3828 test -z "$as_dir" && as_dir=.
3829 for ac_exec_ext in '' $ac_executable_extensions; do
3830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3831 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3833 break 2
3834 fi
3835done
3836 done
3837IFS=$as_save_IFS
3838
3839fi
3840fi
3841AR=$ac_cv_prog_AR
3842if test -n "$AR"; then
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3844$as_echo "$AR" >&6; }
3845else
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3847$as_echo "no" >&6; }
3848fi
3849
3850
3851 test -n "$AR" && break
3852 done
3853fi
3854if test -z "$AR"; then
3855 ac_ct_AR=$AR
3856 for ac_prog in ar lib "link -lib"
3857do
3858 # Extract the first word of "$ac_prog", so it can be a program name with args.
3859set dummy $ac_prog; ac_word=$2
3860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3861$as_echo_n "checking for $ac_word... " >&6; }
3862if ${ac_cv_prog_ac_ct_AR+:} false; then :
3863 $as_echo_n "(cached) " >&6
3864else
3865 if test -n "$ac_ct_AR"; then
3866 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3867else
3868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869for as_dir in $PATH
3870do
3871 IFS=$as_save_IFS
3872 test -z "$as_dir" && as_dir=.
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3875 ac_cv_prog_ac_ct_AR="$ac_prog"
3876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3877 break 2
3878 fi
3879done
3880 done
3881IFS=$as_save_IFS
3882
3883fi
3884fi
3885ac_ct_AR=$ac_cv_prog_ac_ct_AR
3886if test -n "$ac_ct_AR"; then
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3888$as_echo "$ac_ct_AR" >&6; }
3889else
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3891$as_echo "no" >&6; }
3892fi
3893
3894
3895 test -n "$ac_ct_AR" && break
3896done
3897
3898 if test "x$ac_ct_AR" = x; then
3899 AR="false"
3900 else
3901 case $cross_compiling:$ac_tool_warned in
3902yes:)
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3904$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3905ac_tool_warned=yes ;;
3906esac
3907 AR=$ac_ct_AR
3908 fi
3909fi
3910
3911: ${AR=ar}
3912
3913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
3914$as_echo_n "checking the archiver ($AR) interface... " >&6; }
3915if ${am_cv_ar_interface+:} false; then :
3916 $as_echo_n "(cached) " >&6
3917else
3918 ac_ext=c
3919ac_cpp='$CPP $CPPFLAGS'
3920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3922ac_compiler_gnu=$ac_cv_c_compiler_gnu
3923
3924 am_cv_ar_interface=ar
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926/* end confdefs.h. */
3927int some_variable = 0;
3928_ACEOF
3929if ac_fn_c_try_compile "$LINENO"; then :
3930 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
3931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3932 (eval $am_ar_try) 2>&5
3933 ac_status=$?
3934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935 test $ac_status = 0; }
3936 if test "$ac_status" -eq 0; then
3937 am_cv_ar_interface=ar
3938 else
3939 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
3940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
3941 (eval $am_ar_try) 2>&5
3942 ac_status=$?
3943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3944 test $ac_status = 0; }
3945 if test "$ac_status" -eq 0; then
3946 am_cv_ar_interface=lib
3947 else
3948 am_cv_ar_interface=unknown
3949 fi
3950 fi
3951 rm -f conftest.lib libconftest.a
3952
3953fi
3954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955 ac_ext=c
3956ac_cpp='$CPP $CPPFLAGS'
3957ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3958ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3959ac_compiler_gnu=$ac_cv_c_compiler_gnu
3960
3961fi
3962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
3963$as_echo "$am_cv_ar_interface" >&6; }
3964
3965case $am_cv_ar_interface in
3966ar)
3967 ;;
3968lib)
3969 # Microsoft lib, so override with the ar-lib wrapper script.
3970 # FIXME: It is wrong to rewrite AR.
3971 # But if we don't then we get into trouble of one sort or another.
3972 # A longer-term fix would be to have automake use am__AR in this case,
3973 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
3974 # similar.
3975 AR="$am_aux_dir/ar-lib $AR"
3976 ;;
3977unknown)
3978 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
3979 ;;
3980esac
3981
3982case `pwd` in
3983 *\ * | *\ *)
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3985$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3986esac
3987
3988
3989
3990macro_version='2.4.6'
3991macro_revision='2.4.6'
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005ltmain=$ac_aux_dir/ltmain.sh
4006
4007# Make sure we can run config.sub.
4008$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4009 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4010
4011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4012$as_echo_n "checking build system type... " >&6; }
4013if ${ac_cv_build+:} false; then :
4014 $as_echo_n "(cached) " >&6
4015else
4016 ac_build_alias=$build_alias
4017test "x$ac_build_alias" = x &&
4018 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4019test "x$ac_build_alias" = x &&
4020 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4021ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4022 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4023
4024fi
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4026$as_echo "$ac_cv_build" >&6; }
4027case $ac_cv_build in
4028*-*-*) ;;
4029*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4030esac
4031build=$ac_cv_build
4032ac_save_IFS=$IFS; IFS='-'
4033set x $ac_cv_build
4034shift
4035build_cpu=$1
4036build_vendor=$2
4037shift; shift
4038# Remember, the first character of IFS is used to create $*,
4039# except with old shells:
4040build_os=$*
4041IFS=$ac_save_IFS
4042case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4043
4044
4045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4046$as_echo_n "checking host system type... " >&6; }
4047if ${ac_cv_host+:} false; then :
4048 $as_echo_n "(cached) " >&6
4049else
4050 if test "x$host_alias" = x; then
4051 ac_cv_host=$ac_cv_build
4052else
4053 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4054 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4055fi
4056
4057fi
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4059$as_echo "$ac_cv_host" >&6; }
4060case $ac_cv_host in
4061*-*-*) ;;
4062*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4063esac
4064host=$ac_cv_host
4065ac_save_IFS=$IFS; IFS='-'
4066set x $ac_cv_host
4067shift
4068host_cpu=$1
4069host_vendor=$2
4070shift; shift
4071# Remember, the first character of IFS is used to create $*,
4072# except with old shells:
4073host_os=$*
4074IFS=$ac_save_IFS
4075case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4076
4077
4078# Backslashify metacharacters that are still active within
4079# double-quoted strings.
4080sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4081
4082# Same as above, but do not quote variable references.
4083double_quote_subst='s/\(["`\\]\)/\\\1/g'
4084
4085# Sed substitution to delay expansion of an escaped shell variable in a
4086# double_quote_subst'ed string.
4087delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4088
4089# Sed substitution to delay expansion of an escaped single quote.
4090delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4091
4092# Sed substitution to avoid accidental globbing in evaled expressions
4093no_glob_subst='s/\*/\\\*/g'
4094
4095ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4096ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4097ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4098
4099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4100$as_echo_n "checking how to print strings... " >&6; }
4101# Test print first, because it will be a builtin if present.
4102if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4103 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4104 ECHO='print -r --'
4105elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4106 ECHO='printf %s\n'
4107else
4108 # Use this function as a fallback that always works.
4109 func_fallback_echo ()
4110 {
4111 eval 'cat <<_LTECHO_EOF
4112$1
4113_LTECHO_EOF'
4114 }
4115 ECHO='func_fallback_echo'
4116fi
4117
4118# func_echo_all arg...
4119# Invoke $ECHO with all args, space-separated.
4120func_echo_all ()
4121{
4122 $ECHO ""
4123}
4124
4125case $ECHO in
4126 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4127$as_echo "printf" >&6; } ;;
4128 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4129$as_echo "print -r" >&6; } ;;
4130 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4131$as_echo "cat" >&6; } ;;
4132esac
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4148$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4149if ${ac_cv_path_SED+:} false; then :
4150 $as_echo_n "(cached) " >&6
4151else
4152 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4153 for ac_i in 1 2 3 4 5 6 7; do
4154 ac_script="$ac_script$as_nl$ac_script"
4155 done
4156 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4157 { ac_script=; unset ac_script;}
4158 if test -z "$SED"; then
4159 ac_path_SED_found=false
4160 # Loop through the user's path and test for each of PROGNAME-LIST
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162for as_dir in $PATH
4163do
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
4166 for ac_prog in sed gsed; do
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4169 as_fn_executable_p "$ac_path_SED" || continue
4170# Check for GNU ac_path_SED and select it if it is found.
4171 # Check for GNU $ac_path_SED
4172case `"$ac_path_SED" --version 2>&1` in
4173*GNU*)
4174 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4175*)
4176 ac_count=0
4177 $as_echo_n 0123456789 >"conftest.in"
4178 while :
4179 do
4180 cat "conftest.in" "conftest.in" >"conftest.tmp"
4181 mv "conftest.tmp" "conftest.in"
4182 cp "conftest.in" "conftest.nl"
4183 $as_echo '' >> "conftest.nl"
4184 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4185 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4186 as_fn_arith $ac_count + 1 && ac_count=$as_val
4187 if test $ac_count -gt ${ac_path_SED_max-0}; then
4188 # Best one so far, save it but keep looking for a better one
4189 ac_cv_path_SED="$ac_path_SED"
4190 ac_path_SED_max=$ac_count
4191 fi
4192 # 10*(2^10) chars as input seems more than enough
4193 test $ac_count -gt 10 && break
4194 done
4195 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4196esac
4197
4198 $ac_path_SED_found && break 3
4199 done
4200 done
4201 done
4202IFS=$as_save_IFS
4203 if test -z "$ac_cv_path_SED"; then
4204 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4205 fi
4206else
4207 ac_cv_path_SED=$SED
4208fi
4209
4210fi
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4212$as_echo "$ac_cv_path_SED" >&6; }
4213 SED="$ac_cv_path_SED"
4214 rm -f conftest.sed
4215
4216test -z "$SED" && SED=sed
4217Xsed="$SED -e 1s/^X//"
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4230$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4231if ${ac_cv_path_GREP+:} false; then :
4232 $as_echo_n "(cached) " >&6
4233else
4234 if test -z "$GREP"; then
4235 ac_path_GREP_found=false
4236 # Loop through the user's path and test for each of PROGNAME-LIST
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4238for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4239do
4240 IFS=$as_save_IFS
4241 test -z "$as_dir" && as_dir=.
4242 for ac_prog in grep ggrep; do
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4245 as_fn_executable_p "$ac_path_GREP" || continue
4246# Check for GNU ac_path_GREP and select it if it is found.
4247 # Check for GNU $ac_path_GREP
4248case `"$ac_path_GREP" --version 2>&1` in
4249*GNU*)
4250 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4251*)
4252 ac_count=0
4253 $as_echo_n 0123456789 >"conftest.in"
4254 while :
4255 do
4256 cat "conftest.in" "conftest.in" >"conftest.tmp"
4257 mv "conftest.tmp" "conftest.in"
4258 cp "conftest.in" "conftest.nl"
4259 $as_echo 'GREP' >> "conftest.nl"
4260 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4261 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4262 as_fn_arith $ac_count + 1 && ac_count=$as_val
4263 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4264 # Best one so far, save it but keep looking for a better one
4265 ac_cv_path_GREP="$ac_path_GREP"
4266 ac_path_GREP_max=$ac_count
4267 fi
4268 # 10*(2^10) chars as input seems more than enough
4269 test $ac_count -gt 10 && break
4270 done
4271 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4272esac
4273
4274 $ac_path_GREP_found && break 3
4275 done
4276 done
4277 done
4278IFS=$as_save_IFS
4279 if test -z "$ac_cv_path_GREP"; then
4280 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4281 fi
4282else
4283 ac_cv_path_GREP=$GREP
4284fi
4285
4286fi
4287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4288$as_echo "$ac_cv_path_GREP" >&6; }
4289 GREP="$ac_cv_path_GREP"
4290
4291
4292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4293$as_echo_n "checking for egrep... " >&6; }
4294if ${ac_cv_path_EGREP+:} false; then :
4295 $as_echo_n "(cached) " >&6
4296else
4297 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4298 then ac_cv_path_EGREP="$GREP -E"
4299 else
4300 if test -z "$EGREP"; then
4301 ac_path_EGREP_found=false
4302 # Loop through the user's path and test for each of PROGNAME-LIST
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4305do
4306 IFS=$as_save_IFS
4307 test -z "$as_dir" && as_dir=.
4308 for ac_prog in egrep; do
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4311 as_fn_executable_p "$ac_path_EGREP" || continue
4312# Check for GNU ac_path_EGREP and select it if it is found.
4313 # Check for GNU $ac_path_EGREP
4314case `"$ac_path_EGREP" --version 2>&1` in
4315*GNU*)
4316 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4317*)
4318 ac_count=0
4319 $as_echo_n 0123456789 >"conftest.in"
4320 while :
4321 do
4322 cat "conftest.in" "conftest.in" >"conftest.tmp"
4323 mv "conftest.tmp" "conftest.in"
4324 cp "conftest.in" "conftest.nl"
4325 $as_echo 'EGREP' >> "conftest.nl"
4326 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4328 as_fn_arith $ac_count + 1 && ac_count=$as_val
4329 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4330 # Best one so far, save it but keep looking for a better one
4331 ac_cv_path_EGREP="$ac_path_EGREP"
4332 ac_path_EGREP_max=$ac_count
4333 fi
4334 # 10*(2^10) chars as input seems more than enough
4335 test $ac_count -gt 10 && break
4336 done
4337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4338esac
4339
4340 $ac_path_EGREP_found && break 3
4341 done
4342 done
4343 done
4344IFS=$as_save_IFS
4345 if test -z "$ac_cv_path_EGREP"; then
4346 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4347 fi
4348else
4349 ac_cv_path_EGREP=$EGREP
4350fi
4351
4352 fi
4353fi
4354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4355$as_echo "$ac_cv_path_EGREP" >&6; }
4356 EGREP="$ac_cv_path_EGREP"
4357
4358
4359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4360$as_echo_n "checking for fgrep... " >&6; }
4361if ${ac_cv_path_FGREP+:} false; then :
4362 $as_echo_n "(cached) " >&6
4363else
4364 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4365 then ac_cv_path_FGREP="$GREP -F"
4366 else
4367 if test -z "$FGREP"; then
4368 ac_path_FGREP_found=false
4369 # Loop through the user's path and test for each of PROGNAME-LIST
4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4372do
4373 IFS=$as_save_IFS
4374 test -z "$as_dir" && as_dir=.
4375 for ac_prog in fgrep; do
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4378 as_fn_executable_p "$ac_path_FGREP" || continue
4379# Check for GNU ac_path_FGREP and select it if it is found.
4380 # Check for GNU $ac_path_FGREP
4381case `"$ac_path_FGREP" --version 2>&1` in
4382*GNU*)
4383 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4384*)
4385 ac_count=0
4386 $as_echo_n 0123456789 >"conftest.in"
4387 while :
4388 do
4389 cat "conftest.in" "conftest.in" >"conftest.tmp"
4390 mv "conftest.tmp" "conftest.in"
4391 cp "conftest.in" "conftest.nl"
4392 $as_echo 'FGREP' >> "conftest.nl"
4393 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4394 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4395 as_fn_arith $ac_count + 1 && ac_count=$as_val
4396 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4397 # Best one so far, save it but keep looking for a better one
4398 ac_cv_path_FGREP="$ac_path_FGREP"
4399 ac_path_FGREP_max=$ac_count
4400 fi
4401 # 10*(2^10) chars as input seems more than enough
4402 test $ac_count -gt 10 && break
4403 done
4404 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4405esac
4406
4407 $ac_path_FGREP_found && break 3
4408 done
4409 done
4410 done
4411IFS=$as_save_IFS
4412 if test -z "$ac_cv_path_FGREP"; then
4413 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4414 fi
4415else
4416 ac_cv_path_FGREP=$FGREP
4417fi
4418
4419 fi
4420fi
4421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4422$as_echo "$ac_cv_path_FGREP" >&6; }
4423 FGREP="$ac_cv_path_FGREP"
4424
4425
4426test -z "$GREP" && GREP=grep
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446# Check whether --with-gnu-ld was given.
4447if test "${with_gnu_ld+set}" = set; then :
4448 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4449else
4450 with_gnu_ld=no
4451fi
4452
4453ac_prog=ld
4454if test yes = "$GCC"; then
4455 # Check if gcc -print-prog-name=ld gives a path.
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4457$as_echo_n "checking for ld used by $CC... " >&6; }
4458 case $host in
4459 *-*-mingw*)
4460 # gcc leaves a trailing carriage return, which upsets mingw
4461 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4462 *)
4463 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4464 esac
4465 case $ac_prog in
4466 # Accept absolute paths.
4467 [\\/]* | ?:[\\/]*)
4468 re_direlt='/[^/][^/]*/\.\./'
4469 # Canonicalize the pathname of ld
4470 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4471 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4472 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4473 done
4474 test -z "$LD" && LD=$ac_prog
4475 ;;
4476 "")
4477 # If it fails, then pretend we aren't using GCC.
4478 ac_prog=ld
4479 ;;
4480 *)
4481 # If it is relative, then search for the first ld in PATH.
4482 with_gnu_ld=unknown
4483 ;;
4484 esac
4485elif test yes = "$with_gnu_ld"; then
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4487$as_echo_n "checking for GNU ld... " >&6; }
4488else
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4490$as_echo_n "checking for non-GNU ld... " >&6; }
4491fi
4492if ${lt_cv_path_LD+:} false; then :
4493 $as_echo_n "(cached) " >&6
4494else
4495 if test -z "$LD"; then
4496 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4497 for ac_dir in $PATH; do
4498 IFS=$lt_save_ifs
4499 test -z "$ac_dir" && ac_dir=.
4500 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4501 lt_cv_path_LD=$ac_dir/$ac_prog
4502 # Check to see if the program is GNU ld. I'd rather use --version,
4503 # but apparently some variants of GNU ld only accept -v.
4504 # Break only if it was the GNU/non-GNU ld that we prefer.
4505 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4506 *GNU* | *'with BFD'*)
4507 test no != "$with_gnu_ld" && break
4508 ;;
4509 *)
4510 test yes != "$with_gnu_ld" && break
4511 ;;
4512 esac
4513 fi
4514 done
4515 IFS=$lt_save_ifs
4516else
4517 lt_cv_path_LD=$LD # Let the user override the test with a path.
4518fi
4519fi
4520
4521LD=$lt_cv_path_LD
4522if test -n "$LD"; then
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4524$as_echo "$LD" >&6; }
4525else
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4527$as_echo "no" >&6; }
4528fi
4529test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4531$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4532if ${lt_cv_prog_gnu_ld+:} false; then :
4533 $as_echo_n "(cached) " >&6
4534else
4535 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4536case `$LD -v 2>&1 </dev/null` in
4537*GNU* | *'with BFD'*)
4538 lt_cv_prog_gnu_ld=yes
4539 ;;
4540*)
4541 lt_cv_prog_gnu_ld=no
4542 ;;
4543esac
4544fi
4545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4546$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4547with_gnu_ld=$lt_cv_prog_gnu_ld
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4558$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4559if ${lt_cv_path_NM+:} false; then :
4560 $as_echo_n "(cached) " >&6
4561else
4562 if test -n "$NM"; then
4563 # Let the user override the test.
4564 lt_cv_path_NM=$NM
4565else
4566 lt_nm_to_check=${ac_tool_prefix}nm
4567 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4568 lt_nm_to_check="$lt_nm_to_check nm"
4569 fi
4570 for lt_tmp_nm in $lt_nm_to_check; do
4571 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4572 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4573 IFS=$lt_save_ifs
4574 test -z "$ac_dir" && ac_dir=.
4575 tmp_nm=$ac_dir/$lt_tmp_nm
4576 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4577 # Check to see if the nm accepts a BSD-compat flag.
4578 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4579 # nm: unknown option "B" ignored
4580 # Tru64's nm complains that /dev/null is an invalid object file
4581 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4582 case $build_os in
4583 mingw*) lt_bad_file=conftest.nm/nofile ;;
4584 *) lt_bad_file=/dev/null ;;
4585 esac
4586 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4587 *$lt_bad_file* | *'Invalid file or object type'*)
4588 lt_cv_path_NM="$tmp_nm -B"
4589 break 2
4590 ;;
4591 *)
4592 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4593 */dev/null*)
4594 lt_cv_path_NM="$tmp_nm -p"
4595 break 2
4596 ;;
4597 *)
4598 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4599 continue # so that we can try to find one that supports BSD flags
4600 ;;
4601 esac
4602 ;;
4603 esac
4604 fi
4605 done
4606 IFS=$lt_save_ifs
4607 done
4608 : ${lt_cv_path_NM=no}
4609fi
4610fi
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4612$as_echo "$lt_cv_path_NM" >&6; }
4613if test no != "$lt_cv_path_NM"; then
4614 NM=$lt_cv_path_NM
4615else
4616 # Didn't find any BSD compatible name lister, look for dumpbin.
4617 if test -n "$DUMPBIN"; then :
4618 # Let the user override the test.
4619 else
4620 if test -n "$ac_tool_prefix"; then
4621 for ac_prog in dumpbin "link -dump"
4622 do
4623 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4624set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4626$as_echo_n "checking for $ac_word... " >&6; }
4627if ${ac_cv_prog_DUMPBIN+:} false; then :
4628 $as_echo_n "(cached) " >&6
4629else
4630 if test -n "$DUMPBIN"; then
4631 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4632else
4633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634for as_dir in $PATH
4635do
4636 IFS=$as_save_IFS
4637 test -z "$as_dir" && as_dir=.
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4640 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 break 2
4643 fi
4644done
4645 done
4646IFS=$as_save_IFS
4647
4648fi
4649fi
4650DUMPBIN=$ac_cv_prog_DUMPBIN
4651if test -n "$DUMPBIN"; then
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4653$as_echo "$DUMPBIN" >&6; }
4654else
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4656$as_echo "no" >&6; }
4657fi
4658
4659
4660 test -n "$DUMPBIN" && break
4661 done
4662fi
4663if test -z "$DUMPBIN"; then
4664 ac_ct_DUMPBIN=$DUMPBIN
4665 for ac_prog in dumpbin "link -dump"
4666do
4667 # Extract the first word of "$ac_prog", so it can be a program name with args.
4668set dummy $ac_prog; ac_word=$2
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4670$as_echo_n "checking for $ac_word... " >&6; }
4671if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4672 $as_echo_n "(cached) " >&6
4673else
4674 if test -n "$ac_ct_DUMPBIN"; then
4675 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4676else
4677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4678for as_dir in $PATH
4679do
4680 IFS=$as_save_IFS
4681 test -z "$as_dir" && as_dir=.
4682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4684 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4686 break 2
4687 fi
4688done
4689 done
4690IFS=$as_save_IFS
4691
4692fi
4693fi
4694ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4695if test -n "$ac_ct_DUMPBIN"; then
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4697$as_echo "$ac_ct_DUMPBIN" >&6; }
4698else
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4700$as_echo "no" >&6; }
4701fi
4702
4703
4704 test -n "$ac_ct_DUMPBIN" && break
4705done
4706
4707 if test "x$ac_ct_DUMPBIN" = x; then
4708 DUMPBIN=":"
4709 else
4710 case $cross_compiling:$ac_tool_warned in
4711yes:)
4712{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4713$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4714ac_tool_warned=yes ;;
4715esac
4716 DUMPBIN=$ac_ct_DUMPBIN
4717 fi
4718fi
4719
4720 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4721 *COFF*)
4722 DUMPBIN="$DUMPBIN -symbols -headers"
4723 ;;
4724 *)
4725 DUMPBIN=:
4726 ;;
4727 esac
4728 fi
4729
4730 if test : != "$DUMPBIN"; then
4731 NM=$DUMPBIN
4732 fi
4733fi
4734test -z "$NM" && NM=nm
4735
4736
4737
4738
4739
4740
4741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4742$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4743if ${lt_cv_nm_interface+:} false; then :
4744 $as_echo_n "(cached) " >&6
4745else
4746 lt_cv_nm_interface="BSD nm"
4747 echo "int some_variable = 0;" > conftest.$ac_ext
4748 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4749 (eval "$ac_compile" 2>conftest.err)
4750 cat conftest.err >&5
4751 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4752 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4753 cat conftest.err >&5
4754 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4755 cat conftest.out >&5
4756 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4757 lt_cv_nm_interface="MS dumpbin"
4758 fi
4759 rm -f conftest*
4760fi
4761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4762$as_echo "$lt_cv_nm_interface" >&6; }
4763
4764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4765$as_echo_n "checking whether ln -s works... " >&6; }
4766LN_S=$as_ln_s
4767if test "$LN_S" = "ln -s"; then
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4769$as_echo "yes" >&6; }
4770else
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4772$as_echo "no, using $LN_S" >&6; }
4773fi
4774
4775# find the maximum length of command line arguments
4776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4777$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4778if ${lt_cv_sys_max_cmd_len+:} false; then :
4779 $as_echo_n "(cached) " >&6
4780else
4781 i=0
4782 teststring=ABCD
4783
4784 case $build_os in
4785 msdosdjgpp*)
4786 # On DJGPP, this test can blow up pretty badly due to problems in libc
4787 # (any single argument exceeding 2000 bytes causes a buffer overrun
4788 # during glob expansion). Even if it were fixed, the result of this
4789 # check would be larger than it should be.
4790 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4791 ;;
4792
4793 gnu*)
4794 # Under GNU Hurd, this test is not required because there is
4795 # no limit to the length of command line arguments.
4796 # Libtool will interpret -1 as no limit whatsoever
4797 lt_cv_sys_max_cmd_len=-1;
4798 ;;
4799
4800 cygwin* | mingw* | cegcc*)
4801 # On Win9x/ME, this test blows up -- it succeeds, but takes
4802 # about 5 minutes as the teststring grows exponentially.
4803 # Worse, since 9x/ME are not pre-emptively multitasking,
4804 # you end up with a "frozen" computer, even though with patience
4805 # the test eventually succeeds (with a max line length of 256k).
4806 # Instead, let's just punt: use the minimum linelength reported by
4807 # all of the supported platforms: 8192 (on NT/2K/XP).
4808 lt_cv_sys_max_cmd_len=8192;
4809 ;;
4810
4811 mint*)
4812 # On MiNT this can take a long time and run out of memory.
4813 lt_cv_sys_max_cmd_len=8192;
4814 ;;
4815
4816 amigaos*)
4817 # On AmigaOS with pdksh, this test takes hours, literally.
4818 # So we just punt and use a minimum line length of 8192.
4819 lt_cv_sys_max_cmd_len=8192;
4820 ;;
4821
4822 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4823 # This has been around since 386BSD, at least. Likely further.
4824 if test -x /sbin/sysctl; then
4825 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4826 elif test -x /usr/sbin/sysctl; then
4827 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4828 else
4829 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4830 fi
4831 # And add a safety zone
4832 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4833 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4834 ;;
4835
4836 interix*)
4837 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4838 lt_cv_sys_max_cmd_len=196608
4839 ;;
4840
4841 os2*)
4842 # The test takes a long time on OS/2.
4843 lt_cv_sys_max_cmd_len=8192
4844 ;;
4845
4846 osf*)
4847 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4848 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4849 # nice to cause kernel panics so lets avoid the loop below.
4850 # First set a reasonable default.
4851 lt_cv_sys_max_cmd_len=16384
4852 #
4853 if test -x /sbin/sysconfig; then
4854 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4855 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4856 esac
4857 fi
4858 ;;
4859 sco3.2v5*)
4860 lt_cv_sys_max_cmd_len=102400
4861 ;;
4862 sysv5* | sco5v6* | sysv4.2uw2*)
4863 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4864 if test -n "$kargmax"; then
4865 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4866 else
4867 lt_cv_sys_max_cmd_len=32768
4868 fi
4869 ;;
4870 *)
4871 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4872 if test -n "$lt_cv_sys_max_cmd_len" && \
4873 test undefined != "$lt_cv_sys_max_cmd_len"; then
4874 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4875 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4876 else
4877 # Make teststring a little bigger before we do anything with it.
4878 # a 1K string should be a reasonable start.
4879 for i in 1 2 3 4 5 6 7 8; do
4880 teststring=$teststring$teststring
4881 done
4882 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4883 # If test is not a shell built-in, we'll probably end up computing a
4884 # maximum length that is only half of the actual maximum length, but
4885 # we can't tell.
4886 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4887 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4888 test 17 != "$i" # 1/2 MB should be enough
4889 do
4890 i=`expr $i + 1`
4891 teststring=$teststring$teststring
4892 done
4893 # Only check the string length outside the loop.
4894 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4895 teststring=
4896 # Add a significant safety factor because C++ compilers can tack on
4897 # massive amounts of additional arguments before passing them to the
4898 # linker. It appears as though 1/2 is a usable value.
4899 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4900 fi
4901 ;;
4902 esac
4903
4904fi
4905
4906if test -n "$lt_cv_sys_max_cmd_len"; then
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4908$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4909else
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4911$as_echo "none" >&6; }
4912fi
4913max_cmd_len=$lt_cv_sys_max_cmd_len
4914
4915
4916
4917
4918
4919
4920: ${CP="cp -f"}
4921: ${MV="mv -f"}
4922: ${RM="rm -f"}
4923
4924if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4925 lt_unset=unset
4926else
4927 lt_unset=false
4928fi
4929
4930
4931
4932
4933
4934# test EBCDIC or ASCII
4935case `echo X|tr X '\101'` in
4936 A) # ASCII based system
4937 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4938 lt_SP2NL='tr \040 \012'
4939 lt_NL2SP='tr \015\012 \040\040'
4940 ;;
4941 *) # EBCDIC based system
4942 lt_SP2NL='tr \100 \n'
4943 lt_NL2SP='tr \r\n \100\100'
4944 ;;
4945esac
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4956$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4957if ${lt_cv_to_host_file_cmd+:} false; then :
4958 $as_echo_n "(cached) " >&6
4959else
4960 case $host in
4961 *-*-mingw* )
4962 case $build in
4963 *-*-mingw* ) # actually msys
4964 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4965 ;;
4966 *-*-cygwin* )
4967 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4968 ;;
4969 * ) # otherwise, assume *nix
4970 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4971 ;;
4972 esac
4973 ;;
4974 *-*-cygwin* )
4975 case $build in
4976 *-*-mingw* ) # actually msys
4977 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4978 ;;
4979 *-*-cygwin* )
4980 lt_cv_to_host_file_cmd=func_convert_file_noop
4981 ;;
4982 * ) # otherwise, assume *nix
4983 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4984 ;;
4985 esac
4986 ;;
4987 * ) # unhandled hosts (and "normal" native builds)
4988 lt_cv_to_host_file_cmd=func_convert_file_noop
4989 ;;
4990esac
4991
4992fi
4993
4994to_host_file_cmd=$lt_cv_to_host_file_cmd
4995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4996$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4997
4998
4999
5000
5001
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5003$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5004if ${lt_cv_to_tool_file_cmd+:} false; then :
5005 $as_echo_n "(cached) " >&6
5006else
5007 #assume ordinary cross tools, or native build.
5008lt_cv_to_tool_file_cmd=func_convert_file_noop
5009case $host in
5010 *-*-mingw* )
5011 case $build in
5012 *-*-mingw* ) # actually msys
5013 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5014 ;;
5015 esac
5016 ;;
5017esac
5018
5019fi
5020
5021to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5023$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5024
5025
5026
5027
5028
5029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5030$as_echo_n "checking for $LD option to reload object files... " >&6; }
5031if ${lt_cv_ld_reload_flag+:} false; then :
5032 $as_echo_n "(cached) " >&6
5033else
5034 lt_cv_ld_reload_flag='-r'
5035fi
5036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5037$as_echo "$lt_cv_ld_reload_flag" >&6; }
5038reload_flag=$lt_cv_ld_reload_flag
5039case $reload_flag in
5040"" | " "*) ;;
5041*) reload_flag=" $reload_flag" ;;
5042esac
5043reload_cmds='$LD$reload_flag -o $output$reload_objs'
5044case $host_os in
5045 cygwin* | mingw* | pw32* | cegcc*)
5046 if test yes != "$GCC"; then
5047 reload_cmds=false
5048 fi
5049 ;;
5050 darwin*)
5051 if test yes = "$GCC"; then
5052 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5053 else
5054 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5055 fi
5056 ;;
5057esac
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067if test -n "$ac_tool_prefix"; then
5068 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5069set dummy ${ac_tool_prefix}objdump; ac_word=$2
5070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5071$as_echo_n "checking for $ac_word... " >&6; }
5072if ${ac_cv_prog_OBJDUMP+:} false; then :
5073 $as_echo_n "(cached) " >&6
5074else
5075 if test -n "$OBJDUMP"; then
5076 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5077else
5078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5079for as_dir in $PATH
5080do
5081 IFS=$as_save_IFS
5082 test -z "$as_dir" && as_dir=.
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5085 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5087 break 2
5088 fi
5089done
5090 done
5091IFS=$as_save_IFS
5092
5093fi
5094fi
5095OBJDUMP=$ac_cv_prog_OBJDUMP
5096if test -n "$OBJDUMP"; then
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5098$as_echo "$OBJDUMP" >&6; }
5099else
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101$as_echo "no" >&6; }
5102fi
5103
5104
5105fi
5106if test -z "$ac_cv_prog_OBJDUMP"; then
5107 ac_ct_OBJDUMP=$OBJDUMP
5108 # Extract the first word of "objdump", so it can be a program name with args.
5109set dummy objdump; ac_word=$2
5110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5111$as_echo_n "checking for $ac_word... " >&6; }
5112if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5113 $as_echo_n "(cached) " >&6
5114else
5115 if test -n "$ac_ct_OBJDUMP"; then
5116 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5117else
5118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119for as_dir in $PATH
5120do
5121 IFS=$as_save_IFS
5122 test -z "$as_dir" && as_dir=.
5123 for ac_exec_ext in '' $ac_executable_extensions; do
5124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5125 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 break 2
5128 fi
5129done
5130 done
5131IFS=$as_save_IFS
5132
5133fi
5134fi
5135ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5136if test -n "$ac_ct_OBJDUMP"; then
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5138$as_echo "$ac_ct_OBJDUMP" >&6; }
5139else
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5141$as_echo "no" >&6; }
5142fi
5143
5144 if test "x$ac_ct_OBJDUMP" = x; then
5145 OBJDUMP="false"
5146 else
5147 case $cross_compiling:$ac_tool_warned in
5148yes:)
5149{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5150$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5151ac_tool_warned=yes ;;
5152esac
5153 OBJDUMP=$ac_ct_OBJDUMP
5154 fi
5155else
5156 OBJDUMP="$ac_cv_prog_OBJDUMP"
5157fi
5158
5159test -z "$OBJDUMP" && OBJDUMP=objdump
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5170$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5171if ${lt_cv_deplibs_check_method+:} false; then :
5172 $as_echo_n "(cached) " >&6
5173else
5174 lt_cv_file_magic_cmd='$MAGIC_CMD'
5175lt_cv_file_magic_test_file=
5176lt_cv_deplibs_check_method='unknown'
5177# Need to set the preceding variable on all platforms that support
5178# interlibrary dependencies.
5179# 'none' -- dependencies not supported.
5180# 'unknown' -- same as none, but documents that we really don't know.
5181# 'pass_all' -- all dependencies passed with no checks.
5182# 'test_compile' -- check by making test program.
5183# 'file_magic [[regex]]' -- check by looking for files in library path
5184# that responds to the $file_magic_cmd with a given extended regex.
5185# If you have 'file' or equivalent on your system and you're not sure
5186# whether 'pass_all' will *always* work, you probably want this one.
5187
5188case $host_os in
5189aix[4-9]*)
5190 lt_cv_deplibs_check_method=pass_all
5191 ;;
5192
5193beos*)
5194 lt_cv_deplibs_check_method=pass_all
5195 ;;
5196
5197bsdi[45]*)
5198 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5199 lt_cv_file_magic_cmd='/usr/bin/file -L'
5200 lt_cv_file_magic_test_file=/shlib/libc.so
5201 ;;
5202
5203cygwin*)
5204 # func_win32_libid is a shell function defined in ltmain.sh
5205 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5206 lt_cv_file_magic_cmd='func_win32_libid'
5207 ;;
5208
5209mingw* | pw32*)
5210 # Base MSYS/MinGW do not provide the 'file' command needed by
5211 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5212 # unless we find 'file', for example because we are cross-compiling.
5213 if ( file / ) >/dev/null 2>&1; then
5214 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5215 lt_cv_file_magic_cmd='func_win32_libid'
5216 else
5217 # Keep this pattern in sync with the one in func_win32_libid.
5218 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5219 lt_cv_file_magic_cmd='$OBJDUMP -f'
5220 fi
5221 ;;
5222
5223cegcc*)
5224 # use the weaker test based on 'objdump'. See mingw*.
5225 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5226 lt_cv_file_magic_cmd='$OBJDUMP -f'
5227 ;;
5228
5229darwin* | rhapsody*)
5230 lt_cv_deplibs_check_method=pass_all
5231 ;;
5232
5233freebsd* | dragonfly*)
5234 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5235 case $host_cpu in
5236 i*86 )
5237 # Not sure whether the presence of OpenBSD here was a mistake.
5238 # Let's accept both of them until this is cleared up.
5239 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5240 lt_cv_file_magic_cmd=/usr/bin/file
5241 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5242 ;;
5243 esac
5244 else
5245 lt_cv_deplibs_check_method=pass_all
5246 fi
5247 ;;
5248
5249haiku*)
5250 lt_cv_deplibs_check_method=pass_all
5251 ;;
5252
5253hpux10.20* | hpux11*)
5254 lt_cv_file_magic_cmd=/usr/bin/file
5255 case $host_cpu in
5256 ia64*)
5257 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5258 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5259 ;;
5260 hppa*64*)
5261 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]'
5262 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5263 ;;
5264 *)
5265 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5266 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5267 ;;
5268 esac
5269 ;;
5270
5271interix[3-9]*)
5272 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5273 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5274 ;;
5275
5276irix5* | irix6* | nonstopux*)
5277 case $LD in
5278 *-32|*"-32 ") libmagic=32-bit;;
5279 *-n32|*"-n32 ") libmagic=N32;;
5280 *-64|*"-64 ") libmagic=64-bit;;
5281 *) libmagic=never-match;;
5282 esac
5283 lt_cv_deplibs_check_method=pass_all
5284 ;;
5285
5286# This must be glibc/ELF.
5287linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5288 lt_cv_deplibs_check_method=pass_all
5289 ;;
5290
5291netbsd* | netbsdelf*-gnu)
5292 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5293 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5294 else
5295 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5296 fi
5297 ;;
5298
5299newos6*)
5300 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5301 lt_cv_file_magic_cmd=/usr/bin/file
5302 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5303 ;;
5304
5305*nto* | *qnx*)
5306 lt_cv_deplibs_check_method=pass_all
5307 ;;
5308
5309openbsd* | bitrig*)
5310 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5311 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5312 else
5313 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5314 fi
5315 ;;
5316
5317osf3* | osf4* | osf5*)
5318 lt_cv_deplibs_check_method=pass_all
5319 ;;
5320
5321rdos*)
5322 lt_cv_deplibs_check_method=pass_all
5323 ;;
5324
5325solaris*)
5326 lt_cv_deplibs_check_method=pass_all
5327 ;;
5328
5329sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5330 lt_cv_deplibs_check_method=pass_all
5331 ;;
5332
5333sysv4 | sysv4.3*)
5334 case $host_vendor in
5335 motorola)
5336 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]'
5337 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5338 ;;
5339 ncr)
5340 lt_cv_deplibs_check_method=pass_all
5341 ;;
5342 sequent)
5343 lt_cv_file_magic_cmd='/bin/file'
5344 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5345 ;;
5346 sni)
5347 lt_cv_file_magic_cmd='/bin/file'
5348 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5349 lt_cv_file_magic_test_file=/lib/libc.so
5350 ;;
5351 siemens)
5352 lt_cv_deplibs_check_method=pass_all
5353 ;;
5354 pc)
5355 lt_cv_deplibs_check_method=pass_all
5356 ;;
5357 esac
5358 ;;
5359
5360tpf*)
5361 lt_cv_deplibs_check_method=pass_all
5362 ;;
5363os2*)
5364 lt_cv_deplibs_check_method=pass_all
5365 ;;
5366esac
5367
5368fi
5369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5370$as_echo "$lt_cv_deplibs_check_method" >&6; }
5371
5372file_magic_glob=
5373want_nocaseglob=no
5374if test "$build" = "$host"; then
5375 case $host_os in
5376 mingw* | pw32*)
5377 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5378 want_nocaseglob=yes
5379 else
5380 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5381 fi
5382 ;;
5383 esac
5384fi
5385
5386file_magic_cmd=$lt_cv_file_magic_cmd
5387deplibs_check_method=$lt_cv_deplibs_check_method
5388test -z "$deplibs_check_method" && deplibs_check_method=unknown
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411if test -n "$ac_tool_prefix"; then
5412 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5413set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5415$as_echo_n "checking for $ac_word... " >&6; }
5416if ${ac_cv_prog_DLLTOOL+:} false; then :
5417 $as_echo_n "(cached) " >&6
5418else
5419 if test -n "$DLLTOOL"; then
5420 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5421else
5422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5423for as_dir in $PATH
5424do
5425 IFS=$as_save_IFS
5426 test -z "$as_dir" && as_dir=.
5427 for ac_exec_ext in '' $ac_executable_extensions; do
5428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5429 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5431 break 2
5432 fi
5433done
5434 done
5435IFS=$as_save_IFS
5436
5437fi
5438fi
5439DLLTOOL=$ac_cv_prog_DLLTOOL
5440if test -n "$DLLTOOL"; then
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5442$as_echo "$DLLTOOL" >&6; }
5443else
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5445$as_echo "no" >&6; }
5446fi
5447
5448
5449fi
5450if test -z "$ac_cv_prog_DLLTOOL"; then
5451 ac_ct_DLLTOOL=$DLLTOOL
5452 # Extract the first word of "dlltool", so it can be a program name with args.
5453set dummy dlltool; ac_word=$2
5454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5455$as_echo_n "checking for $ac_word... " >&6; }
5456if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5457 $as_echo_n "(cached) " >&6
5458else
5459 if test -n "$ac_ct_DLLTOOL"; then
5460 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5461else
5462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5463for as_dir in $PATH
5464do
5465 IFS=$as_save_IFS
5466 test -z "$as_dir" && as_dir=.
5467 for ac_exec_ext in '' $ac_executable_extensions; do
5468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5469 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5471 break 2
5472 fi
5473done
5474 done
5475IFS=$as_save_IFS
5476
5477fi
5478fi
5479ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5480if test -n "$ac_ct_DLLTOOL"; then
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5482$as_echo "$ac_ct_DLLTOOL" >&6; }
5483else
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485$as_echo "no" >&6; }
5486fi
5487
5488 if test "x$ac_ct_DLLTOOL" = x; then
5489 DLLTOOL="false"
5490 else
5491 case $cross_compiling:$ac_tool_warned in
5492yes:)
5493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5495ac_tool_warned=yes ;;
5496esac
5497 DLLTOOL=$ac_ct_DLLTOOL
5498 fi
5499else
5500 DLLTOOL="$ac_cv_prog_DLLTOOL"
5501fi
5502
5503test -z "$DLLTOOL" && DLLTOOL=dlltool
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5515$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5516if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5517 $as_echo_n "(cached) " >&6
5518else
5519 lt_cv_sharedlib_from_linklib_cmd='unknown'
5520
5521case $host_os in
5522cygwin* | mingw* | pw32* | cegcc*)
5523 # two different shell functions defined in ltmain.sh;
5524 # decide which one to use based on capabilities of $DLLTOOL
5525 case `$DLLTOOL --help 2>&1` in
5526 *--identify-strict*)
5527 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5528 ;;
5529 *)
5530 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5531 ;;
5532 esac
5533 ;;
5534*)
5535 # fallback: assume linklib IS sharedlib
5536 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5537 ;;
5538esac
5539
5540fi
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5542$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5543sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5544test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5545
5546
5547
5548
5549
5550
5551
5552if test -n "$ac_tool_prefix"; then
5553 for ac_prog in ar
5554 do
5555 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5556set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5558$as_echo_n "checking for $ac_word... " >&6; }
5559if ${ac_cv_prog_AR+:} false; then :
5560 $as_echo_n "(cached) " >&6
5561else
5562 if test -n "$AR"; then
5563 ac_cv_prog_AR="$AR" # Let the user override the test.
5564else
5565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566for as_dir in $PATH
5567do
5568 IFS=$as_save_IFS
5569 test -z "$as_dir" && as_dir=.
5570 for ac_exec_ext in '' $ac_executable_extensions; do
5571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5572 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5574 break 2
5575 fi
5576done
5577 done
5578IFS=$as_save_IFS
5579
5580fi
5581fi
5582AR=$ac_cv_prog_AR
5583if test -n "$AR"; then
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5585$as_echo "$AR" >&6; }
5586else
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588$as_echo "no" >&6; }
5589fi
5590
5591
5592 test -n "$AR" && break
5593 done
5594fi
5595if test -z "$AR"; then
5596 ac_ct_AR=$AR
5597 for ac_prog in ar
5598do
5599 # Extract the first word of "$ac_prog", so it can be a program name with args.
5600set dummy $ac_prog; ac_word=$2
5601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602$as_echo_n "checking for $ac_word... " >&6; }
5603if ${ac_cv_prog_ac_ct_AR+:} false; then :
5604 $as_echo_n "(cached) " >&6
5605else
5606 if test -n "$ac_ct_AR"; then
5607 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5608else
5609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5610for as_dir in $PATH
5611do
5612 IFS=$as_save_IFS
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5616 ac_cv_prog_ac_ct_AR="$ac_prog"
5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5618 break 2
5619 fi
5620done
5621 done
5622IFS=$as_save_IFS
5623
5624fi
5625fi
5626ac_ct_AR=$ac_cv_prog_ac_ct_AR
5627if test -n "$ac_ct_AR"; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5629$as_echo "$ac_ct_AR" >&6; }
5630else
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632$as_echo "no" >&6; }
5633fi
5634
5635
5636 test -n "$ac_ct_AR" && break
5637done
5638
5639 if test "x$ac_ct_AR" = x; then
5640 AR="false"
5641 else
5642 case $cross_compiling:$ac_tool_warned in
5643yes:)
5644{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5645$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5646ac_tool_warned=yes ;;
5647esac
5648 AR=$ac_ct_AR
5649 fi
5650fi
5651
5652: ${AR=ar}
5653: ${AR_FLAGS=cru}
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5666$as_echo_n "checking for archiver @FILE support... " >&6; }
5667if ${lt_cv_ar_at_file+:} false; then :
5668 $as_echo_n "(cached) " >&6
5669else
5670 lt_cv_ar_at_file=no
5671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5672/* end confdefs.h. */
5673
5674int
5675main ()
5676{
5677
5678 ;
5679 return 0;
5680}
5681_ACEOF
5682if ac_fn_c_try_compile "$LINENO"; then :
5683 echo conftest.$ac_objext > conftest.lst
5684 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5686 (eval $lt_ar_try) 2>&5
5687 ac_status=$?
5688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5689 test $ac_status = 0; }
5690 if test 0 -eq "$ac_status"; then
5691 # Ensure the archiver fails upon bogus file names.
5692 rm -f conftest.$ac_objext libconftest.a
5693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5694 (eval $lt_ar_try) 2>&5
5695 ac_status=$?
5696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5697 test $ac_status = 0; }
5698 if test 0 -ne "$ac_status"; then
5699 lt_cv_ar_at_file=@
5700 fi
5701 fi
5702 rm -f conftest.* libconftest.a
5703
5704fi
5705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5706
5707fi
5708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5709$as_echo "$lt_cv_ar_at_file" >&6; }
5710
5711if test no = "$lt_cv_ar_at_file"; then
5712 archiver_list_spec=
5713else
5714 archiver_list_spec=$lt_cv_ar_at_file
5715fi
5716
5717
5718
5719
5720
5721
5722
5723if test -n "$ac_tool_prefix"; then
5724 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5725set dummy ${ac_tool_prefix}strip; ac_word=$2
5726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727$as_echo_n "checking for $ac_word... " >&6; }
5728if ${ac_cv_prog_STRIP+:} false; then :
5729 $as_echo_n "(cached) " >&6
5730else
5731 if test -n "$STRIP"; then
5732 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5733else
5734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735for as_dir in $PATH
5736do
5737 IFS=$as_save_IFS
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 break 2
5744 fi
5745done
5746 done
5747IFS=$as_save_IFS
5748
5749fi
5750fi
5751STRIP=$ac_cv_prog_STRIP
5752if test -n "$STRIP"; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5754$as_echo "$STRIP" >&6; }
5755else
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757$as_echo "no" >&6; }
5758fi
5759
5760
5761fi
5762if test -z "$ac_cv_prog_STRIP"; then
5763 ac_ct_STRIP=$STRIP
5764 # Extract the first word of "strip", so it can be a program name with args.
5765set dummy strip; ac_word=$2
5766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767$as_echo_n "checking for $ac_word... " >&6; }
5768if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5769 $as_echo_n "(cached) " >&6
5770else
5771 if test -n "$ac_ct_STRIP"; then
5772 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5773else
5774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775for as_dir in $PATH
5776do
5777 IFS=$as_save_IFS
5778 test -z "$as_dir" && as_dir=.
5779 for ac_exec_ext in '' $ac_executable_extensions; do
5780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5781 ac_cv_prog_ac_ct_STRIP="strip"
5782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 break 2
5784 fi
5785done
5786 done
5787IFS=$as_save_IFS
5788
5789fi
5790fi
5791ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5792if test -n "$ac_ct_STRIP"; then
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5794$as_echo "$ac_ct_STRIP" >&6; }
5795else
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5797$as_echo "no" >&6; }
5798fi
5799
5800 if test "x$ac_ct_STRIP" = x; then
5801 STRIP=":"
5802 else
5803 case $cross_compiling:$ac_tool_warned in
5804yes:)
5805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5807ac_tool_warned=yes ;;
5808esac
5809 STRIP=$ac_ct_STRIP
5810 fi
5811else
5812 STRIP="$ac_cv_prog_STRIP"
5813fi
5814
5815test -z "$STRIP" && STRIP=:
5816
5817
5818
5819
5820
5821
5822if test -n "$ac_tool_prefix"; then
5823 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5824set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5826$as_echo_n "checking for $ac_word... " >&6; }
5827if ${ac_cv_prog_RANLIB+:} false; then :
5828 $as_echo_n "(cached) " >&6
5829else
5830 if test -n "$RANLIB"; then
5831 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5832else
5833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834for as_dir in $PATH
5835do
5836 IFS=$as_save_IFS
5837 test -z "$as_dir" && as_dir=.
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5840 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5842 break 2
5843 fi
5844done
5845 done
5846IFS=$as_save_IFS
5847
5848fi
5849fi
5850RANLIB=$ac_cv_prog_RANLIB
5851if test -n "$RANLIB"; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5853$as_echo "$RANLIB" >&6; }
5854else
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5856$as_echo "no" >&6; }
5857fi
5858
5859
5860fi
5861if test -z "$ac_cv_prog_RANLIB"; then
5862 ac_ct_RANLIB=$RANLIB
5863 # Extract the first word of "ranlib", so it can be a program name with args.
5864set dummy ranlib; ac_word=$2
5865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5866$as_echo_n "checking for $ac_word... " >&6; }
5867if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5868 $as_echo_n "(cached) " >&6
5869else
5870 if test -n "$ac_ct_RANLIB"; then
5871 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5872else
5873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874for as_dir in $PATH
5875do
5876 IFS=$as_save_IFS
5877 test -z "$as_dir" && as_dir=.
5878 for ac_exec_ext in '' $ac_executable_extensions; do
5879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5880 ac_cv_prog_ac_ct_RANLIB="ranlib"
5881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5882 break 2
5883 fi
5884done
5885 done
5886IFS=$as_save_IFS
5887
5888fi
5889fi
5890ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5891if test -n "$ac_ct_RANLIB"; then
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5893$as_echo "$ac_ct_RANLIB" >&6; }
5894else
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896$as_echo "no" >&6; }
5897fi
5898
5899 if test "x$ac_ct_RANLIB" = x; then
5900 RANLIB=":"
5901 else
5902 case $cross_compiling:$ac_tool_warned in
5903yes:)
5904{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5906ac_tool_warned=yes ;;
5907esac
5908 RANLIB=$ac_ct_RANLIB
5909 fi
5910else
5911 RANLIB="$ac_cv_prog_RANLIB"
5912fi
5913
5914test -z "$RANLIB" && RANLIB=:
5915
5916
5917
5918
5919
5920
5921# Determine commands to create old-style static archives.
5922old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5923old_postinstall_cmds='chmod 644 $oldlib'
5924old_postuninstall_cmds=
5925
5926if test -n "$RANLIB"; then
5927 case $host_os in
5928 bitrig* | openbsd*)
5929 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5930 ;;
5931 *)
5932 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5933 ;;
5934 esac
5935 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5936fi
5937
5938case $host_os in
5939 darwin*)
5940 lock_old_archive_extraction=yes ;;
5941 *)
5942 lock_old_archive_extraction=no ;;
5943esac
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983# If no C compiler was specified, use CC.
5984LTCC=${LTCC-"$CC"}
5985
5986# If no C compiler flags were specified, use CFLAGS.
5987LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5988
5989# Allow CC to be a program name with arguments.
5990compiler=$CC
5991
5992
5993# Check for command to grab the raw symbol name followed by C symbol from nm.
5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5995$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5996if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5997 $as_echo_n "(cached) " >&6
5998else
5999
6000# These are sane defaults that work on at least a few old systems.
6001# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6002
6003# Character class describing NM global symbol codes.
6004symcode='[BCDEGRST]'
6005
6006# Regexp to match symbols that can be accessed directly from C.
6007sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6008
6009# Define system-specific variables.
6010case $host_os in
6011aix*)
6012 symcode='[BCDT]'
6013 ;;
6014cygwin* | mingw* | pw32* | cegcc*)
6015 symcode='[ABCDGISTW]'
6016 ;;
6017hpux*)
6018 if test ia64 = "$host_cpu"; then
6019 symcode='[ABCDEGRST]'
6020 fi
6021 ;;
6022irix* | nonstopux*)
6023 symcode='[BCDEGRST]'
6024 ;;
6025osf*)
6026 symcode='[BCDEGQRST]'
6027 ;;
6028solaris*)
6029 symcode='[BDRT]'
6030 ;;
6031sco3.2v5*)
6032 symcode='[DT]'
6033 ;;
6034sysv4.2uw2*)
6035 symcode='[DT]'
6036 ;;
6037sysv5* | sco5v6* | unixware* | OpenUNIX*)
6038 symcode='[ABDT]'
6039 ;;
6040sysv4)
6041 symcode='[DFNSTU]'
6042 ;;
6043esac
6044
6045# If we're using GNU nm, then use its standard symbol codes.
6046case `$NM -V 2>&1` in
6047*GNU* | *'with BFD'*)
6048 symcode='[ABCDGIRSTW]' ;;
6049esac
6050
6051if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6052 # Gets list of data symbols to import.
6053 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6054 # Adjust the below global symbol transforms to fixup imported variables.
6055 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6056 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6057 lt_c_name_lib_hook="\
6058 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6059 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6060else
6061 # Disable hooks by default.
6062 lt_cv_sys_global_symbol_to_import=
6063 lt_cdecl_hook=
6064 lt_c_name_hook=
6065 lt_c_name_lib_hook=
6066fi
6067
6068# Transform an extracted symbol line into a proper C declaration.
6069# Some systems (esp. on ia64) link data and code symbols differently,
6070# so use this general approach.
6071lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6072$lt_cdecl_hook\
6073" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6074" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6075
6076# Transform an extracted symbol line into symbol name and symbol address
6077lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6078$lt_c_name_hook\
6079" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6080" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6081
6082# Transform an extracted symbol line into symbol name with lib prefix and
6083# symbol address.
6084lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6085$lt_c_name_lib_hook\
6086" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6087" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6088" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6089
6090# Handle CRLF in mingw tool chain
6091opt_cr=
6092case $build_os in
6093mingw*)
6094 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6095 ;;
6096esac
6097
6098# Try without a prefix underscore, then with it.
6099for ac_symprfx in "" "_"; do
6100
6101 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6102 symxfrm="\\1 $ac_symprfx\\2 \\2"
6103
6104 # Write the raw and C identifiers.
6105 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6106 # Fake it for dumpbin and say T for any non-static function,
6107 # D for any global variable and I for any imported variable.
6108 # Also find C++ and __fastcall symbols from MSVC++,
6109 # which start with @ or ?.
6110 lt_cv_sys_global_symbol_pipe="$AWK '"\
6111" {last_section=section; section=\$ 3};"\
6112" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6113" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6114" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6115" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6116" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6117" \$ 0!~/External *\|/{next};"\
6118" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6119" {if(hide[section]) next};"\
6120" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6121" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6122" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6123" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6124" ' prfx=^$ac_symprfx"
6125 else
6126 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6127 fi
6128 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6129
6130 # Check to see that the pipe works correctly.
6131 pipe_works=no
6132
6133 rm -f conftest*
6134 cat > conftest.$ac_ext <<_LT_EOF
6135#ifdef __cplusplus
6136extern "C" {
6137#endif
6138char nm_test_var;
6139void nm_test_func(void);
6140void nm_test_func(void){}
6141#ifdef __cplusplus
6142}
6143#endif
6144int main(){nm_test_var='a';nm_test_func();return(0);}
6145_LT_EOF
6146
6147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6148 (eval $ac_compile) 2>&5
6149 ac_status=$?
6150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6151 test $ac_status = 0; }; then
6152 # Now try to grab the symbols.
6153 nlist=conftest.nm
6154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6155 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6156 ac_status=$?
6157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6158 test $ac_status = 0; } && test -s "$nlist"; then
6159 # Try sorting and uniquifying the output.
6160 if sort "$nlist" | uniq > "$nlist"T; then
6161 mv -f "$nlist"T "$nlist"
6162 else
6163 rm -f "$nlist"T
6164 fi
6165
6166 # Make sure that we snagged all the symbols we need.
6167 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6168 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6169 cat <<_LT_EOF > conftest.$ac_ext
6170/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6171#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6172/* DATA imports from DLLs on WIN32 can't be const, because runtime
6173 relocations are performed -- see ld's documentation on pseudo-relocs. */
6174# define LT_DLSYM_CONST
6175#elif defined __osf__
6176/* This system does not cope well with relocations in const data. */
6177# define LT_DLSYM_CONST
6178#else
6179# define LT_DLSYM_CONST const
6180#endif
6181
6182#ifdef __cplusplus
6183extern "C" {
6184#endif
6185
6186_LT_EOF
6187 # Now generate the symbol file.
6188 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6189
6190 cat <<_LT_EOF >> conftest.$ac_ext
6191
6192/* The mapping between symbol names and symbols. */
6193LT_DLSYM_CONST struct {
6194 const char *name;
6195 void *address;
6196}
6197lt__PROGRAM__LTX_preloaded_symbols[] =
6198{
6199 { "@PROGRAM@", (void *) 0 },
6200_LT_EOF
6201 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6202 cat <<\_LT_EOF >> conftest.$ac_ext
6203 {0, (void *) 0}
6204};
6205
6206/* This works around a problem in FreeBSD linker */
6207#ifdef FREEBSD_WORKAROUND
6208static const void *lt_preloaded_setup() {
6209 return lt__PROGRAM__LTX_preloaded_symbols;
6210}
6211#endif
6212
6213#ifdef __cplusplus
6214}
6215#endif
6216_LT_EOF
6217 # Now try linking the two files.
6218 mv conftest.$ac_objext conftstm.$ac_objext
6219 lt_globsym_save_LIBS=$LIBS
6220 lt_globsym_save_CFLAGS=$CFLAGS
6221 LIBS=conftstm.$ac_objext
6222 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6224 (eval $ac_link) 2>&5
6225 ac_status=$?
6226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6227 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6228 pipe_works=yes
6229 fi
6230 LIBS=$lt_globsym_save_LIBS
6231 CFLAGS=$lt_globsym_save_CFLAGS
6232 else
6233 echo "cannot find nm_test_func in $nlist" >&5
6234 fi
6235 else
6236 echo "cannot find nm_test_var in $nlist" >&5
6237 fi
6238 else
6239 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6240 fi
6241 else
6242 echo "$progname: failed program was:" >&5
6243 cat conftest.$ac_ext >&5
6244 fi
6245 rm -rf conftest* conftst*
6246
6247 # Do not use the global_symbol_pipe unless it works.
6248 if test yes = "$pipe_works"; then
6249 break
6250 else
6251 lt_cv_sys_global_symbol_pipe=
6252 fi
6253done
6254
6255fi
6256
6257if test -z "$lt_cv_sys_global_symbol_pipe"; then
6258 lt_cv_sys_global_symbol_to_cdecl=
6259fi
6260if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6262$as_echo "failed" >&6; }
6263else
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6265$as_echo "ok" >&6; }
6266fi
6267
6268# Response file support.
6269if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6270 nm_file_list_spec='@'
6271elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6272 nm_file_list_spec='@'
6273fi
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6312$as_echo_n "checking for sysroot... " >&6; }
6313
6314# Check whether --with-sysroot was given.
6315if test "${with_sysroot+set}" = set; then :
6316 withval=$with_sysroot;
6317else
6318 with_sysroot=no
6319fi
6320
6321
6322lt_sysroot=
6323case $with_sysroot in #(
6324 yes)
6325 if test yes = "$GCC"; then
6326 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6327 fi
6328 ;; #(
6329 /*)
6330 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6331 ;; #(
6332 no|'')
6333 ;; #(
6334 *)
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6336$as_echo "$with_sysroot" >&6; }
6337 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6338 ;;
6339esac
6340
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6342$as_echo "${lt_sysroot:-no}" >&6; }
6343
6344
6345
6346
6347
6348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6349$as_echo_n "checking for a working dd... " >&6; }
6350if ${ac_cv_path_lt_DD+:} false; then :
6351 $as_echo_n "(cached) " >&6
6352else
6353 printf 0123456789abcdef0123456789abcdef >conftest.i
6354cat conftest.i conftest.i >conftest2.i
6355: ${lt_DD:=$DD}
6356if test -z "$lt_DD"; then
6357 ac_path_lt_DD_found=false
6358 # Loop through the user's path and test for each of PROGNAME-LIST
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360for as_dir in $PATH
6361do
6362 IFS=$as_save_IFS
6363 test -z "$as_dir" && as_dir=.
6364 for ac_prog in dd; do
6365 for ac_exec_ext in '' $ac_executable_extensions; do
6366 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6367 as_fn_executable_p "$ac_path_lt_DD" || continue
6368if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6369 cmp -s conftest.i conftest.out \
6370 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6371fi
6372 $ac_path_lt_DD_found && break 3
6373 done
6374 done
6375 done
6376IFS=$as_save_IFS
6377 if test -z "$ac_cv_path_lt_DD"; then
6378 :
6379 fi
6380else
6381 ac_cv_path_lt_DD=$lt_DD
6382fi
6383
6384rm -f conftest.i conftest2.i conftest.out
6385fi
6386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6387$as_echo "$ac_cv_path_lt_DD" >&6; }
6388
6389
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6391$as_echo_n "checking how to truncate binary pipes... " >&6; }
6392if ${lt_cv_truncate_bin+:} false; then :
6393 $as_echo_n "(cached) " >&6
6394else
6395 printf 0123456789abcdef0123456789abcdef >conftest.i
6396cat conftest.i conftest.i >conftest2.i
6397lt_cv_truncate_bin=
6398if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6399 cmp -s conftest.i conftest.out \
6400 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6401fi
6402rm -f conftest.i conftest2.i conftest.out
6403test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6404fi
6405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6406$as_echo "$lt_cv_truncate_bin" >&6; }
6407
6408
6409
6410
6411
6412
6413
6414# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6415func_cc_basename ()
6416{
6417 for cc_temp in $*""; do
6418 case $cc_temp in
6419 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6420 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6421 \-*) ;;
6422 *) break;;
6423 esac
6424 done
6425 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6426}
6427
6428# Check whether --enable-libtool-lock was given.
6429if test "${enable_libtool_lock+set}" = set; then :
6430 enableval=$enable_libtool_lock;
6431fi
6432
6433test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6434
6435# Some flags need to be propagated to the compiler or linker for good
6436# libtool support.
6437case $host in
6438ia64-*-hpux*)
6439 # Find out what ABI is being produced by ac_compile, and set mode
6440 # options accordingly.
6441 echo 'int i;' > conftest.$ac_ext
6442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6443 (eval $ac_compile) 2>&5
6444 ac_status=$?
6445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6446 test $ac_status = 0; }; then
6447 case `/usr/bin/file conftest.$ac_objext` in
6448 *ELF-32*)
6449 HPUX_IA64_MODE=32
6450 ;;
6451 *ELF-64*)
6452 HPUX_IA64_MODE=64
6453 ;;
6454 esac
6455 fi
6456 rm -rf conftest*
6457 ;;
6458*-*-irix6*)
6459 # Find out what ABI is being produced by ac_compile, and set linker
6460 # options accordingly.
6461 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6463 (eval $ac_compile) 2>&5
6464 ac_status=$?
6465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6466 test $ac_status = 0; }; then
6467 if test yes = "$lt_cv_prog_gnu_ld"; then
6468 case `/usr/bin/file conftest.$ac_objext` in
6469 *32-bit*)
6470 LD="${LD-ld} -melf32bsmip"
6471 ;;
6472 *N32*)
6473 LD="${LD-ld} -melf32bmipn32"
6474 ;;
6475 *64-bit*)
6476 LD="${LD-ld} -melf64bmip"
6477 ;;
6478 esac
6479 else
6480 case `/usr/bin/file conftest.$ac_objext` in
6481 *32-bit*)
6482 LD="${LD-ld} -32"
6483 ;;
6484 *N32*)
6485 LD="${LD-ld} -n32"
6486 ;;
6487 *64-bit*)
6488 LD="${LD-ld} -64"
6489 ;;
6490 esac
6491 fi
6492 fi
6493 rm -rf conftest*
6494 ;;
6495
6496mips64*-*linux*)
6497 # Find out what ABI is being produced by ac_compile, and set linker
6498 # options accordingly.
6499 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6501 (eval $ac_compile) 2>&5
6502 ac_status=$?
6503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6504 test $ac_status = 0; }; then
6505 emul=elf
6506 case `/usr/bin/file conftest.$ac_objext` in
6507 *32-bit*)
6508 emul="${emul}32"
6509 ;;
6510 *64-bit*)
6511 emul="${emul}64"
6512 ;;
6513 esac
6514 case `/usr/bin/file conftest.$ac_objext` in
6515 *MSB*)
6516 emul="${emul}btsmip"
6517 ;;
6518 *LSB*)
6519 emul="${emul}ltsmip"
6520 ;;
6521 esac
6522 case `/usr/bin/file conftest.$ac_objext` in
6523 *N32*)
6524 emul="${emul}n32"
6525 ;;
6526 esac
6527 LD="${LD-ld} -m $emul"
6528 fi
6529 rm -rf conftest*
6530 ;;
6531
6532x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6533s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6534 # Find out what ABI is being produced by ac_compile, and set linker
6535 # options accordingly. Note that the listed cases only cover the
6536 # situations where additional linker options are needed (such as when
6537 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6538 # vice versa); the common cases where no linker options are needed do
6539 # not appear in the list.
6540 echo 'int i;' > conftest.$ac_ext
6541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6542 (eval $ac_compile) 2>&5
6543 ac_status=$?
6544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6545 test $ac_status = 0; }; then
6546 case `/usr/bin/file conftest.o` in
6547 *32-bit*)
6548 case $host in
6549 x86_64-*kfreebsd*-gnu)
6550 LD="${LD-ld} -m elf_i386_fbsd"
6551 ;;
6552 x86_64-*linux*)
6553 case `/usr/bin/file conftest.o` in
6554 *x86-64*)
6555 LD="${LD-ld} -m elf32_x86_64"
6556 ;;
6557 *)
6558 LD="${LD-ld} -m elf_i386"
6559 ;;
6560 esac
6561 ;;
6562 powerpc64le-*linux*)
6563 LD="${LD-ld} -m elf32lppclinux"
6564 ;;
6565 powerpc64-*linux*)
6566 LD="${LD-ld} -m elf32ppclinux"
6567 ;;
6568 s390x-*linux*)
6569 LD="${LD-ld} -m elf_s390"
6570 ;;
6571 sparc64-*linux*)
6572 LD="${LD-ld} -m elf32_sparc"
6573 ;;
6574 esac
6575 ;;
6576 *64-bit*)
6577 case $host in
6578 x86_64-*kfreebsd*-gnu)
6579 LD="${LD-ld} -m elf_x86_64_fbsd"
6580 ;;
6581 x86_64-*linux*)
6582 LD="${LD-ld} -m elf_x86_64"
6583 ;;
6584 powerpcle-*linux*)
6585 LD="${LD-ld} -m elf64lppc"
6586 ;;
6587 powerpc-*linux*)
6588 LD="${LD-ld} -m elf64ppc"
6589 ;;
6590 s390*-*linux*|s390*-*tpf*)
6591 LD="${LD-ld} -m elf64_s390"
6592 ;;
6593 sparc*-*linux*)
6594 LD="${LD-ld} -m elf64_sparc"
6595 ;;
6596 esac
6597 ;;
6598 esac
6599 fi
6600 rm -rf conftest*
6601 ;;
6602
6603*-*-sco3.2v5*)
6604 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6605 SAVE_CFLAGS=$CFLAGS
6606 CFLAGS="$CFLAGS -belf"
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6608$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6609if ${lt_cv_cc_needs_belf+:} false; then :
6610 $as_echo_n "(cached) " >&6
6611else
6612 ac_ext=c
6613ac_cpp='$CPP $CPPFLAGS'
6614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6616ac_compiler_gnu=$ac_cv_c_compiler_gnu
6617
6618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6619/* end confdefs.h. */
6620
6621int
6622main ()
6623{
6624
6625 ;
6626 return 0;
6627}
6628_ACEOF
6629if ac_fn_c_try_link "$LINENO"; then :
6630 lt_cv_cc_needs_belf=yes
6631else
6632 lt_cv_cc_needs_belf=no
6633fi
6634rm -f core conftest.err conftest.$ac_objext \
6635 conftest$ac_exeext conftest.$ac_ext
6636 ac_ext=c
6637ac_cpp='$CPP $CPPFLAGS'
6638ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6639ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6640ac_compiler_gnu=$ac_cv_c_compiler_gnu
6641
6642fi
6643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6644$as_echo "$lt_cv_cc_needs_belf" >&6; }
6645 if test yes != "$lt_cv_cc_needs_belf"; then
6646 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6647 CFLAGS=$SAVE_CFLAGS
6648 fi
6649 ;;
6650*-*solaris*)
6651 # Find out what ABI is being produced by ac_compile, and set linker
6652 # options accordingly.
6653 echo 'int i;' > conftest.$ac_ext
6654 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6655 (eval $ac_compile) 2>&5
6656 ac_status=$?
6657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6658 test $ac_status = 0; }; then
6659 case `/usr/bin/file conftest.o` in
6660 *64-bit*)
6661 case $lt_cv_prog_gnu_ld in
6662 yes*)
6663 case $host in
6664 i?86-*-solaris*|x86_64-*-solaris*)
6665 LD="${LD-ld} -m elf_x86_64"
6666 ;;
6667 sparc*-*-solaris*)
6668 LD="${LD-ld} -m elf64_sparc"
6669 ;;
6670 esac
6671 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6672 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6673 LD=${LD-ld}_sol2
6674 fi
6675 ;;
6676 *)
6677 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6678 LD="${LD-ld} -64"
6679 fi
6680 ;;
6681 esac
6682 ;;
6683 esac
6684 fi
6685 rm -rf conftest*
6686 ;;
6687esac
6688
6689need_locks=$enable_libtool_lock
6690
6691if test -n "$ac_tool_prefix"; then
6692 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6693set dummy ${ac_tool_prefix}mt; ac_word=$2
6694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6695$as_echo_n "checking for $ac_word... " >&6; }
6696if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6697 $as_echo_n "(cached) " >&6
6698else
6699 if test -n "$MANIFEST_TOOL"; then
6700 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6701else
6702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703for as_dir in $PATH
6704do
6705 IFS=$as_save_IFS
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6709 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711 break 2
6712 fi
6713done
6714 done
6715IFS=$as_save_IFS
6716
6717fi
6718fi
6719MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6720if test -n "$MANIFEST_TOOL"; then
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6722$as_echo "$MANIFEST_TOOL" >&6; }
6723else
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6725$as_echo "no" >&6; }
6726fi
6727
6728
6729fi
6730if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6731 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6732 # Extract the first word of "mt", so it can be a program name with args.
6733set dummy mt; ac_word=$2
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735$as_echo_n "checking for $ac_word... " >&6; }
6736if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6737 $as_echo_n "(cached) " >&6
6738else
6739 if test -n "$ac_ct_MANIFEST_TOOL"; then
6740 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6741else
6742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743for as_dir in $PATH
6744do
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6749 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6752 fi
6753done
6754 done
6755IFS=$as_save_IFS
6756
6757fi
6758fi
6759ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6760if test -n "$ac_ct_MANIFEST_TOOL"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6762$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6763else
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765$as_echo "no" >&6; }
6766fi
6767
6768 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6769 MANIFEST_TOOL=":"
6770 else
6771 case $cross_compiling:$ac_tool_warned in
6772yes:)
6773{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6774$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6775ac_tool_warned=yes ;;
6776esac
6777 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6778 fi
6779else
6780 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6781fi
6782
6783test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6785$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6786if ${lt_cv_path_mainfest_tool+:} false; then :
6787 $as_echo_n "(cached) " >&6
6788else
6789 lt_cv_path_mainfest_tool=no
6790 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6791 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6792 cat conftest.err >&5
6793 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6794 lt_cv_path_mainfest_tool=yes
6795 fi
6796 rm -f conftest*
6797fi
6798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6799$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6800if test yes != "$lt_cv_path_mainfest_tool"; then
6801 MANIFEST_TOOL=:
6802fi
6803
6804
6805
6806
6807
6808
6809 case $host_os in
6810 rhapsody* | darwin*)
6811 if test -n "$ac_tool_prefix"; then
6812 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6813set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815$as_echo_n "checking for $ac_word... " >&6; }
6816if ${ac_cv_prog_DSYMUTIL+:} false; then :
6817 $as_echo_n "(cached) " >&6
6818else
6819 if test -n "$DSYMUTIL"; then
6820 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6821else
6822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823for as_dir in $PATH
6824do
6825 IFS=$as_save_IFS
6826 test -z "$as_dir" && as_dir=.
6827 for ac_exec_ext in '' $ac_executable_extensions; do
6828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6829 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 break 2
6832 fi
6833done
6834 done
6835IFS=$as_save_IFS
6836
6837fi
6838fi
6839DSYMUTIL=$ac_cv_prog_DSYMUTIL
6840if test -n "$DSYMUTIL"; then
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6842$as_echo "$DSYMUTIL" >&6; }
6843else
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845$as_echo "no" >&6; }
6846fi
6847
6848
6849fi
6850if test -z "$ac_cv_prog_DSYMUTIL"; then
6851 ac_ct_DSYMUTIL=$DSYMUTIL
6852 # Extract the first word of "dsymutil", so it can be a program name with args.
6853set dummy dsymutil; ac_word=$2
6854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6855$as_echo_n "checking for $ac_word... " >&6; }
6856if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6857 $as_echo_n "(cached) " >&6
6858else
6859 if test -n "$ac_ct_DSYMUTIL"; then
6860 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6861else
6862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863for as_dir in $PATH
6864do
6865 IFS=$as_save_IFS
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6869 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 break 2
6872 fi
6873done
6874 done
6875IFS=$as_save_IFS
6876
6877fi
6878fi
6879ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6880if test -n "$ac_ct_DSYMUTIL"; then
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6882$as_echo "$ac_ct_DSYMUTIL" >&6; }
6883else
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885$as_echo "no" >&6; }
6886fi
6887
6888 if test "x$ac_ct_DSYMUTIL" = x; then
6889 DSYMUTIL=":"
6890 else
6891 case $cross_compiling:$ac_tool_warned in
6892yes:)
6893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6895ac_tool_warned=yes ;;
6896esac
6897 DSYMUTIL=$ac_ct_DSYMUTIL
6898 fi
6899else
6900 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6901fi
6902
6903 if test -n "$ac_tool_prefix"; then
6904 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6905set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907$as_echo_n "checking for $ac_word... " >&6; }
6908if ${ac_cv_prog_NMEDIT+:} false; then :
6909 $as_echo_n "(cached) " >&6
6910else
6911 if test -n "$NMEDIT"; then
6912 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6913else
6914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915for as_dir in $PATH
6916do
6917 IFS=$as_save_IFS
6918 test -z "$as_dir" && as_dir=.
6919 for ac_exec_ext in '' $ac_executable_extensions; do
6920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6921 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 break 2
6924 fi
6925done
6926 done
6927IFS=$as_save_IFS
6928
6929fi
6930fi
6931NMEDIT=$ac_cv_prog_NMEDIT
6932if test -n "$NMEDIT"; then
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6934$as_echo "$NMEDIT" >&6; }
6935else
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937$as_echo "no" >&6; }
6938fi
6939
6940
6941fi
6942if test -z "$ac_cv_prog_NMEDIT"; then
6943 ac_ct_NMEDIT=$NMEDIT
6944 # Extract the first word of "nmedit", so it can be a program name with args.
6945set dummy nmedit; ac_word=$2
6946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6947$as_echo_n "checking for $ac_word... " >&6; }
6948if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6949 $as_echo_n "(cached) " >&6
6950else
6951 if test -n "$ac_ct_NMEDIT"; then
6952 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6953else
6954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955for as_dir in $PATH
6956do
6957 IFS=$as_save_IFS
6958 test -z "$as_dir" && as_dir=.
6959 for ac_exec_ext in '' $ac_executable_extensions; do
6960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6961 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6963 break 2
6964 fi
6965done
6966 done
6967IFS=$as_save_IFS
6968
6969fi
6970fi
6971ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6972if test -n "$ac_ct_NMEDIT"; then
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6974$as_echo "$ac_ct_NMEDIT" >&6; }
6975else
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977$as_echo "no" >&6; }
6978fi
6979
6980 if test "x$ac_ct_NMEDIT" = x; then
6981 NMEDIT=":"
6982 else
6983 case $cross_compiling:$ac_tool_warned in
6984yes:)
6985{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6986$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6987ac_tool_warned=yes ;;
6988esac
6989 NMEDIT=$ac_ct_NMEDIT
6990 fi
6991else
6992 NMEDIT="$ac_cv_prog_NMEDIT"
6993fi
6994
6995 if test -n "$ac_tool_prefix"; then
6996 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6997set dummy ${ac_tool_prefix}lipo; ac_word=$2
6998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999$as_echo_n "checking for $ac_word... " >&6; }
7000if ${ac_cv_prog_LIPO+:} false; then :
7001 $as_echo_n "(cached) " >&6
7002else
7003 if test -n "$LIPO"; then
7004 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7005else
7006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007for as_dir in $PATH
7008do
7009 IFS=$as_save_IFS
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7013 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 break 2
7016 fi
7017done
7018 done
7019IFS=$as_save_IFS
7020
7021fi
7022fi
7023LIPO=$ac_cv_prog_LIPO
7024if test -n "$LIPO"; then
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7026$as_echo "$LIPO" >&6; }
7027else
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029$as_echo "no" >&6; }
7030fi
7031
7032
7033fi
7034if test -z "$ac_cv_prog_LIPO"; then
7035 ac_ct_LIPO=$LIPO
7036 # Extract the first word of "lipo", so it can be a program name with args.
7037set dummy lipo; ac_word=$2
7038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7039$as_echo_n "checking for $ac_word... " >&6; }
7040if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7041 $as_echo_n "(cached) " >&6
7042else
7043 if test -n "$ac_ct_LIPO"; then
7044 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7045else
7046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047for as_dir in $PATH
7048do
7049 IFS=$as_save_IFS
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7053 ac_cv_prog_ac_ct_LIPO="lipo"
7054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 break 2
7056 fi
7057done
7058 done
7059IFS=$as_save_IFS
7060
7061fi
7062fi
7063ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7064if test -n "$ac_ct_LIPO"; then
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7066$as_echo "$ac_ct_LIPO" >&6; }
7067else
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069$as_echo "no" >&6; }
7070fi
7071
7072 if test "x$ac_ct_LIPO" = x; then
7073 LIPO=":"
7074 else
7075 case $cross_compiling:$ac_tool_warned in
7076yes:)
7077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7079ac_tool_warned=yes ;;
7080esac
7081 LIPO=$ac_ct_LIPO
7082 fi
7083else
7084 LIPO="$ac_cv_prog_LIPO"
7085fi
7086
7087 if test -n "$ac_tool_prefix"; then
7088 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7089set dummy ${ac_tool_prefix}otool; ac_word=$2
7090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091$as_echo_n "checking for $ac_word... " >&6; }
7092if ${ac_cv_prog_OTOOL+:} false; then :
7093 $as_echo_n "(cached) " >&6
7094else
7095 if test -n "$OTOOL"; then
7096 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7097else
7098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099for as_dir in $PATH
7100do
7101 IFS=$as_save_IFS
7102 test -z "$as_dir" && as_dir=.
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7105 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 break 2
7108 fi
7109done
7110 done
7111IFS=$as_save_IFS
7112
7113fi
7114fi
7115OTOOL=$ac_cv_prog_OTOOL
7116if test -n "$OTOOL"; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7118$as_echo "$OTOOL" >&6; }
7119else
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121$as_echo "no" >&6; }
7122fi
7123
7124
7125fi
7126if test -z "$ac_cv_prog_OTOOL"; then
7127 ac_ct_OTOOL=$OTOOL
7128 # Extract the first word of "otool", so it can be a program name with args.
7129set dummy otool; ac_word=$2
7130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131$as_echo_n "checking for $ac_word... " >&6; }
7132if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7133 $as_echo_n "(cached) " >&6
7134else
7135 if test -n "$ac_ct_OTOOL"; then
7136 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7137else
7138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139for as_dir in $PATH
7140do
7141 IFS=$as_save_IFS
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7145 ac_cv_prog_ac_ct_OTOOL="otool"
7146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 break 2
7148 fi
7149done
7150 done
7151IFS=$as_save_IFS
7152
7153fi
7154fi
7155ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7156if test -n "$ac_ct_OTOOL"; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7158$as_echo "$ac_ct_OTOOL" >&6; }
7159else
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161$as_echo "no" >&6; }
7162fi
7163
7164 if test "x$ac_ct_OTOOL" = x; then
7165 OTOOL=":"
7166 else
7167 case $cross_compiling:$ac_tool_warned in
7168yes:)
7169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7171ac_tool_warned=yes ;;
7172esac
7173 OTOOL=$ac_ct_OTOOL
7174 fi
7175else
7176 OTOOL="$ac_cv_prog_OTOOL"
7177fi
7178
7179 if test -n "$ac_tool_prefix"; then
7180 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7181set dummy ${ac_tool_prefix}otool64; ac_word=$2
7182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183$as_echo_n "checking for $ac_word... " >&6; }
7184if ${ac_cv_prog_OTOOL64+:} false; then :
7185 $as_echo_n "(cached) " >&6
7186else
7187 if test -n "$OTOOL64"; then
7188 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7189else
7190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191for as_dir in $PATH
7192do
7193 IFS=$as_save_IFS
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7197 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7199 break 2
7200 fi
7201done
7202 done
7203IFS=$as_save_IFS
7204
7205fi
7206fi
7207OTOOL64=$ac_cv_prog_OTOOL64
7208if test -n "$OTOOL64"; then
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7210$as_echo "$OTOOL64" >&6; }
7211else
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213$as_echo "no" >&6; }
7214fi
7215
7216
7217fi
7218if test -z "$ac_cv_prog_OTOOL64"; then
7219 ac_ct_OTOOL64=$OTOOL64
7220 # Extract the first word of "otool64", so it can be a program name with args.
7221set dummy otool64; ac_word=$2
7222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223$as_echo_n "checking for $ac_word... " >&6; }
7224if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7225 $as_echo_n "(cached) " >&6
7226else
7227 if test -n "$ac_ct_OTOOL64"; then
7228 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7229else
7230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231for as_dir in $PATH
7232do
7233 IFS=$as_save_IFS
7234 test -z "$as_dir" && as_dir=.
7235 for ac_exec_ext in '' $ac_executable_extensions; do
7236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7237 ac_cv_prog_ac_ct_OTOOL64="otool64"
7238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 break 2
7240 fi
7241done
7242 done
7243IFS=$as_save_IFS
7244
7245fi
7246fi
7247ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7248if test -n "$ac_ct_OTOOL64"; then
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7250$as_echo "$ac_ct_OTOOL64" >&6; }
7251else
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253$as_echo "no" >&6; }
7254fi
7255
7256 if test "x$ac_ct_OTOOL64" = x; then
7257 OTOOL64=":"
7258 else
7259 case $cross_compiling:$ac_tool_warned in
7260yes:)
7261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7263ac_tool_warned=yes ;;
7264esac
7265 OTOOL64=$ac_ct_OTOOL64
7266 fi
7267else
7268 OTOOL64="$ac_cv_prog_OTOOL64"
7269fi
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7298$as_echo_n "checking for -single_module linker flag... " >&6; }
7299if ${lt_cv_apple_cc_single_mod+:} false; then :
7300 $as_echo_n "(cached) " >&6
7301else
7302 lt_cv_apple_cc_single_mod=no
7303 if test -z "$LT_MULTI_MODULE"; then
7304 # By default we will add the -single_module flag. You can override
7305 # by either setting the environment variable LT_MULTI_MODULE
7306 # non-empty at configure time, or by adding -multi_module to the
7307 # link flags.
7308 rm -rf libconftest.dylib*
7309 echo "int foo(void){return 1;}" > conftest.c
7310 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7311-dynamiclib -Wl,-single_module conftest.c" >&5
7312 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7313 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7314 _lt_result=$?
7315 # If there is a non-empty error log, and "single_module"
7316 # appears in it, assume the flag caused a linker warning
7317 if test -s conftest.err && $GREP single_module conftest.err; then
7318 cat conftest.err >&5
7319 # Otherwise, if the output was created with a 0 exit code from
7320 # the compiler, it worked.
7321 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7322 lt_cv_apple_cc_single_mod=yes
7323 else
7324 cat conftest.err >&5
7325 fi
7326 rm -rf libconftest.dylib*
7327 rm -f conftest.*
7328 fi
7329fi
7330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7331$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7332
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7334$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7335if ${lt_cv_ld_exported_symbols_list+:} false; then :
7336 $as_echo_n "(cached) " >&6
7337else
7338 lt_cv_ld_exported_symbols_list=no
7339 save_LDFLAGS=$LDFLAGS
7340 echo "_main" > conftest.sym
7341 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7343/* end confdefs.h. */
7344
7345int
7346main ()
7347{
7348
7349 ;
7350 return 0;
7351}
7352_ACEOF
7353if ac_fn_c_try_link "$LINENO"; then :
7354 lt_cv_ld_exported_symbols_list=yes
7355else
7356 lt_cv_ld_exported_symbols_list=no
7357fi
7358rm -f core conftest.err conftest.$ac_objext \
7359 conftest$ac_exeext conftest.$ac_ext
7360 LDFLAGS=$save_LDFLAGS
7361
7362fi
7363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7364$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7365
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7367$as_echo_n "checking for -force_load linker flag... " >&6; }
7368if ${lt_cv_ld_force_load+:} false; then :
7369 $as_echo_n "(cached) " >&6
7370else
7371 lt_cv_ld_force_load=no
7372 cat > conftest.c << _LT_EOF
7373int forced_loaded() { return 2;}
7374_LT_EOF
7375 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7376 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7377 echo "$AR cru libconftest.a conftest.o" >&5
7378 $AR cru libconftest.a conftest.o 2>&5
7379 echo "$RANLIB libconftest.a" >&5
7380 $RANLIB libconftest.a 2>&5
7381 cat > conftest.c << _LT_EOF
7382int main() { return 0;}
7383_LT_EOF
7384 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7385 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7386 _lt_result=$?
7387 if test -s conftest.err && $GREP force_load conftest.err; then
7388 cat conftest.err >&5
7389 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7390 lt_cv_ld_force_load=yes
7391 else
7392 cat conftest.err >&5
7393 fi
7394 rm -f conftest.err libconftest.a conftest conftest.c
7395 rm -rf conftest.dSYM
7396
7397fi
7398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7399$as_echo "$lt_cv_ld_force_load" >&6; }
7400 case $host_os in
7401 rhapsody* | darwin1.[012])
7402 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7403 darwin1.*)
7404 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7405 darwin*) # darwin 5.x on
7406 # if running on 10.5 or later, the deployment target defaults
7407 # to the OS version, if on x86, and 10.4, the deployment
7408 # target defaults to 10.4. Don't you love it?
7409 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7410 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7411 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7412 10.[012][,.]*)
7413 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7414 10.*)
7415 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7416 esac
7417 ;;
7418 esac
7419 if test yes = "$lt_cv_apple_cc_single_mod"; then
7420 _lt_dar_single_mod='$single_module'
7421 fi
7422 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7423 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7424 else
7425 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7426 fi
7427 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7428 _lt_dsymutil='~$DSYMUTIL $lib || :'
7429 else
7430 _lt_dsymutil=
7431 fi
7432 ;;
7433 esac
7434
7435# func_munge_path_list VARIABLE PATH
7436# -----------------------------------
7437# VARIABLE is name of variable containing _space_ separated list of
7438# directories to be munged by the contents of PATH, which is string
7439# having a format:
7440# "DIR[:DIR]:"
7441# string "DIR[ DIR]" will be prepended to VARIABLE
7442# ":DIR[:DIR]"
7443# string "DIR[ DIR]" will be appended to VARIABLE
7444# "DIRP[:DIRP]::[DIRA:]DIRA"
7445# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7446# "DIRA[ DIRA]" will be appended to VARIABLE
7447# "DIR[:DIR]"
7448# VARIABLE will be replaced by "DIR[ DIR]"
7449func_munge_path_list ()
7450{
7451 case x$2 in
7452 x)
7453 ;;
7454 *:)
7455 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7456 ;;
7457 x:*)
7458 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7459 ;;
7460 *::*)
7461 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7462 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7463 ;;
7464 *)
7465 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7466 ;;
7467 esac
7468}
7469
7470ac_ext=c
7471ac_cpp='$CPP $CPPFLAGS'
7472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7474ac_compiler_gnu=$ac_cv_c_compiler_gnu
7475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7476$as_echo_n "checking how to run the C preprocessor... " >&6; }
7477# On Suns, sometimes $CPP names a directory.
7478if test -n "$CPP" && test -d "$CPP"; then
7479 CPP=
7480fi
7481if test -z "$CPP"; then
7482 if ${ac_cv_prog_CPP+:} false; then :
7483 $as_echo_n "(cached) " >&6
7484else
7485 # Double quotes because CPP needs to be expanded
7486 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7487 do
7488 ac_preproc_ok=false
7489for ac_c_preproc_warn_flag in '' yes
7490do
7491 # Use a header file that comes with gcc, so configuring glibc
7492 # with a fresh cross-compiler works.
7493 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7494 # <limits.h> exists even on freestanding compilers.
7495 # On the NeXT, cc -E runs the code through the compiler's parser,
7496 # not just through cpp. "Syntax error" is here to catch this case.
7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7498/* end confdefs.h. */
7499#ifdef __STDC__
7500# include <limits.h>
7501#else
7502# include <assert.h>
7503#endif
7504 Syntax error
7505_ACEOF
7506if ac_fn_c_try_cpp "$LINENO"; then :
7507
7508else
7509 # Broken: fails on valid input.
7510continue
7511fi
7512rm -f conftest.err conftest.i conftest.$ac_ext
7513
7514 # OK, works on sane cases. Now check whether nonexistent headers
7515 # can be detected and how.
7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517/* end confdefs.h. */
7518#include <ac_nonexistent.h>
7519_ACEOF
7520if ac_fn_c_try_cpp "$LINENO"; then :
7521 # Broken: success on invalid input.
7522continue
7523else
7524 # Passes both tests.
7525ac_preproc_ok=:
7526break
7527fi
7528rm -f conftest.err conftest.i conftest.$ac_ext
7529
7530done
7531# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7532rm -f conftest.i conftest.err conftest.$ac_ext
7533if $ac_preproc_ok; then :
7534 break
7535fi
7536
7537 done
7538 ac_cv_prog_CPP=$CPP
7539
7540fi
7541 CPP=$ac_cv_prog_CPP
7542else
7543 ac_cv_prog_CPP=$CPP
7544fi
7545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7546$as_echo "$CPP" >&6; }
7547ac_preproc_ok=false
7548for ac_c_preproc_warn_flag in '' yes
7549do
7550 # Use a header file that comes with gcc, so configuring glibc
7551 # with a fresh cross-compiler works.
7552 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7553 # <limits.h> exists even on freestanding compilers.
7554 # On the NeXT, cc -E runs the code through the compiler's parser,
7555 # not just through cpp. "Syntax error" is here to catch this case.
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557/* end confdefs.h. */
7558#ifdef __STDC__
7559# include <limits.h>
7560#else
7561# include <assert.h>
7562#endif
7563 Syntax error
7564_ACEOF
7565if ac_fn_c_try_cpp "$LINENO"; then :
7566
7567else
7568 # Broken: fails on valid input.
7569continue
7570fi
7571rm -f conftest.err conftest.i conftest.$ac_ext
7572
7573 # OK, works on sane cases. Now check whether nonexistent headers
7574 # can be detected and how.
7575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7576/* end confdefs.h. */
7577#include <ac_nonexistent.h>
7578_ACEOF
7579if ac_fn_c_try_cpp "$LINENO"; then :
7580 # Broken: success on invalid input.
7581continue
7582else
7583 # Passes both tests.
7584ac_preproc_ok=:
7585break
7586fi
7587rm -f conftest.err conftest.i conftest.$ac_ext
7588
7589done
7590# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7591rm -f conftest.i conftest.err conftest.$ac_ext
7592if $ac_preproc_ok; then :
7593
7594else
7595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7597as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7598See \`config.log' for more details" "$LINENO" 5; }
7599fi
7600
7601ac_ext=c
7602ac_cpp='$CPP $CPPFLAGS'
7603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7605ac_compiler_gnu=$ac_cv_c_compiler_gnu
7606
7607
7608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7609$as_echo_n "checking for ANSI C header files... " >&6; }
7610if ${ac_cv_header_stdc+:} false; then :
7611 $as_echo_n "(cached) " >&6
7612else
7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614/* end confdefs.h. */
7615#include <stdlib.h>
7616#include <stdarg.h>
7617#include <string.h>
7618#include <float.h>
7619
7620int
7621main ()
7622{
7623
7624 ;
7625 return 0;
7626}
7627_ACEOF
7628if ac_fn_c_try_compile "$LINENO"; then :
7629 ac_cv_header_stdc=yes
7630else
7631 ac_cv_header_stdc=no
7632fi
7633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7634
7635if test $ac_cv_header_stdc = yes; then
7636 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7638/* end confdefs.h. */
7639#include <string.h>
7640
7641_ACEOF
7642if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7643 $EGREP "memchr" >/dev/null 2>&1; then :
7644
7645else
7646 ac_cv_header_stdc=no
7647fi
7648rm -f conftest*
7649
7650fi
7651
7652if test $ac_cv_header_stdc = yes; then
7653 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7655/* end confdefs.h. */
7656#include <stdlib.h>
7657
7658_ACEOF
7659if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7660 $EGREP "free" >/dev/null 2>&1; then :
7661
7662else
7663 ac_cv_header_stdc=no
7664fi
7665rm -f conftest*
7666
7667fi
7668
7669if test $ac_cv_header_stdc = yes; then
7670 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7671 if test "$cross_compiling" = yes; then :
7672 :
7673else
7674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7675/* end confdefs.h. */
7676#include <ctype.h>
7677#include <stdlib.h>
7678#if ((' ' & 0x0FF) == 0x020)
7679# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7680# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7681#else
7682# define ISLOWER(c) \
7683 (('a' <= (c) && (c) <= 'i') \
7684 || ('j' <= (c) && (c) <= 'r') \
7685 || ('s' <= (c) && (c) <= 'z'))
7686# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7687#endif
7688
7689#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7690int
7691main ()
7692{
7693 int i;
7694 for (i = 0; i < 256; i++)
7695 if (XOR (islower (i), ISLOWER (i))
7696 || toupper (i) != TOUPPER (i))
7697 return 2;
7698 return 0;
7699}
7700_ACEOF
7701if ac_fn_c_try_run "$LINENO"; then :
7702
7703else
7704 ac_cv_header_stdc=no
7705fi
7706rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7707 conftest.$ac_objext conftest.beam conftest.$ac_ext
7708fi
7709
7710fi
7711fi
7712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7713$as_echo "$ac_cv_header_stdc" >&6; }
7714if test $ac_cv_header_stdc = yes; then
7715
7716$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7717
7718fi
7719
7720# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7721for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7722 inttypes.h stdint.h unistd.h
7723do :
7724 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7725ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7726"
7727if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7728 cat >>confdefs.h <<_ACEOF
7729#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7730_ACEOF
7731
7732fi
7733
7734done
7735
7736
7737for ac_header in dlfcn.h
7738do :
7739 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7740"
7741if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7742 cat >>confdefs.h <<_ACEOF
7743#define HAVE_DLFCN_H 1
7744_ACEOF
7745
7746fi
7747
7748done
7749
7750
7751
7752
7753
7754# Set options
7755
7756
7757
7758 enable_dlopen=no
7759
7760
7761 enable_win32_dll=no
7762
7763
7764 # Check whether --enable-shared was given.
7765if test "${enable_shared+set}" = set; then :
7766 enableval=$enable_shared; p=${PACKAGE-default}
7767 case $enableval in
7768 yes) enable_shared=yes ;;
7769 no) enable_shared=no ;;
7770 *)
7771 enable_shared=no
7772 # Look at the argument we got. We use all the common list separators.
7773 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7774 for pkg in $enableval; do
7775 IFS=$lt_save_ifs
7776 if test "X$pkg" = "X$p"; then
7777 enable_shared=yes
7778 fi
7779 done
7780 IFS=$lt_save_ifs
7781 ;;
7782 esac
7783else
7784 enable_shared=yes
7785fi
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795 # Check whether --enable-static was given.
7796if test "${enable_static+set}" = set; then :
7797 enableval=$enable_static; p=${PACKAGE-default}
7798 case $enableval in
7799 yes) enable_static=yes ;;
7800 no) enable_static=no ;;
7801 *)
7802 enable_static=no
7803 # Look at the argument we got. We use all the common list separators.
7804 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7805 for pkg in $enableval; do
7806 IFS=$lt_save_ifs
7807 if test "X$pkg" = "X$p"; then
7808 enable_static=yes
7809 fi
7810 done
7811 IFS=$lt_save_ifs
7812 ;;
7813 esac
7814else
7815 enable_static=yes
7816fi
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827# Check whether --with-pic was given.
7828if test "${with_pic+set}" = set; then :
7829 withval=$with_pic; lt_p=${PACKAGE-default}
7830 case $withval in
7831 yes|no) pic_mode=$withval ;;
7832 *)
7833 pic_mode=default
7834 # Look at the argument we got. We use all the common list separators.
7835 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7836 for lt_pkg in $withval; do
7837 IFS=$lt_save_ifs
7838 if test "X$lt_pkg" = "X$lt_p"; then
7839 pic_mode=yes
7840 fi
7841 done
7842 IFS=$lt_save_ifs
7843 ;;
7844 esac
7845else
7846 pic_mode=default
7847fi
7848
7849
7850
7851
7852
7853
7854
7855
7856 # Check whether --enable-fast-install was given.
7857if test "${enable_fast_install+set}" = set; then :
7858 enableval=$enable_fast_install; p=${PACKAGE-default}
7859 case $enableval in
7860 yes) enable_fast_install=yes ;;
7861 no) enable_fast_install=no ;;
7862 *)
7863 enable_fast_install=no
7864 # Look at the argument we got. We use all the common list separators.
7865 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7866 for pkg in $enableval; do
7867 IFS=$lt_save_ifs
7868 if test "X$pkg" = "X$p"; then
7869 enable_fast_install=yes
7870 fi
7871 done
7872 IFS=$lt_save_ifs
7873 ;;
7874 esac
7875else
7876 enable_fast_install=yes
7877fi
7878
7879
7880
7881
7882
7883
7884
7885
7886 shared_archive_member_spec=
7887case $host,$enable_shared in
7888power*-*-aix[5-9]*,yes)
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7890$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7891
7892# Check whether --with-aix-soname was given.
7893if test "${with_aix_soname+set}" = set; then :
7894 withval=$with_aix_soname; case $withval in
7895 aix|svr4|both)
7896 ;;
7897 *)
7898 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7899 ;;
7900 esac
7901 lt_cv_with_aix_soname=$with_aix_soname
7902else
7903 if ${lt_cv_with_aix_soname+:} false; then :
7904 $as_echo_n "(cached) " >&6
7905else
7906 lt_cv_with_aix_soname=aix
7907fi
7908
7909 with_aix_soname=$lt_cv_with_aix_soname
7910fi
7911
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7913$as_echo "$with_aix_soname" >&6; }
7914 if test aix != "$with_aix_soname"; then
7915 # For the AIX way of multilib, we name the shared archive member
7916 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7917 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7918 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7919 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7920 if test 64 = "${OBJECT_MODE-32}"; then
7921 shared_archive_member_spec=shr_64
7922 else
7923 shared_archive_member_spec=shr
7924 fi
7925 fi
7926 ;;
7927*)
7928 with_aix_soname=aix
7929 ;;
7930esac
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941# This can be used to rebuild libtool when needed
7942LIBTOOL_DEPS=$ltmain
7943
7944# Always use our own libtool.
7945LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976test -z "$LN_S" && LN_S="ln -s"
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991if test -n "${ZSH_VERSION+set}"; then
7992 setopt NO_GLOB_SUBST
7993fi
7994
7995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7996$as_echo_n "checking for objdir... " >&6; }
7997if ${lt_cv_objdir+:} false; then :
7998 $as_echo_n "(cached) " >&6
7999else
8000 rm -f .libs 2>/dev/null
8001mkdir .libs 2>/dev/null
8002if test -d .libs; then
8003 lt_cv_objdir=.libs
8004else
8005 # MS-DOS does not allow filenames that begin with a dot.
8006 lt_cv_objdir=_libs
8007fi
8008rmdir .libs 2>/dev/null
8009fi
8010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8011$as_echo "$lt_cv_objdir" >&6; }
8012objdir=$lt_cv_objdir
8013
8014
8015
8016
8017
8018cat >>confdefs.h <<_ACEOF
8019#define LT_OBJDIR "$lt_cv_objdir/"
8020_ACEOF
8021
8022
8023
8024
8025case $host_os in
8026aix3*)
8027 # AIX sometimes has problems with the GCC collect2 program. For some
8028 # reason, if we set the COLLECT_NAMES environment variable, the problems
8029 # vanish in a puff of smoke.
8030 if test set != "${COLLECT_NAMES+set}"; then
8031 COLLECT_NAMES=
8032 export COLLECT_NAMES
8033 fi
8034 ;;
8035esac
8036
8037# Global variables:
8038ofile=libtool
8039can_build_shared=yes
8040
8041# All known linkers require a '.a' archive for static linking (except MSVC,
8042# which needs '.lib').
8043libext=a
8044
8045with_gnu_ld=$lt_cv_prog_gnu_ld
8046
8047old_CC=$CC
8048old_CFLAGS=$CFLAGS
8049
8050# Set sane defaults for various variables
8051test -z "$CC" && CC=cc
8052test -z "$LTCC" && LTCC=$CC
8053test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8054test -z "$LD" && LD=ld
8055test -z "$ac_objext" && ac_objext=o
8056
8057func_cc_basename $compiler
8058cc_basename=$func_cc_basename_result
8059
8060
8061# Only perform the check for file, if the check method requires it
8062test -z "$MAGIC_CMD" && MAGIC_CMD=file
8063case $deplibs_check_method in
8064file_magic*)
8065 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8067$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8068if ${lt_cv_path_MAGIC_CMD+:} false; then :
8069 $as_echo_n "(cached) " >&6
8070else
8071 case $MAGIC_CMD in
8072[\\/*] | ?:[\\/]*)
8073 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8074 ;;
8075*)
8076 lt_save_MAGIC_CMD=$MAGIC_CMD
8077 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8078 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8079 for ac_dir in $ac_dummy; do
8080 IFS=$lt_save_ifs
8081 test -z "$ac_dir" && ac_dir=.
8082 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8083 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8084 if test -n "$file_magic_test_file"; then
8085 case $deplibs_check_method in
8086 "file_magic "*)
8087 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8088 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8089 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8090 $EGREP "$file_magic_regex" > /dev/null; then
8091 :
8092 else
8093 cat <<_LT_EOF 1>&2
8094
8095*** Warning: the command libtool uses to detect shared libraries,
8096*** $file_magic_cmd, produces output that libtool cannot recognize.
8097*** The result is that libtool may fail to recognize shared libraries
8098*** as such. This will affect the creation of libtool libraries that
8099*** depend on shared libraries, but programs linked with such libtool
8100*** libraries will work regardless of this problem. Nevertheless, you
8101*** may want to report the problem to your system manager and/or to
8102*** bug-libtool@gnu.org
8103
8104_LT_EOF
8105 fi ;;
8106 esac
8107 fi
8108 break
8109 fi
8110 done
8111 IFS=$lt_save_ifs
8112 MAGIC_CMD=$lt_save_MAGIC_CMD
8113 ;;
8114esac
8115fi
8116
8117MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8118if test -n "$MAGIC_CMD"; then
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8120$as_echo "$MAGIC_CMD" >&6; }
8121else
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123$as_echo "no" >&6; }
8124fi
8125
8126
8127
8128
8129
8130if test -z "$lt_cv_path_MAGIC_CMD"; then
8131 if test -n "$ac_tool_prefix"; then
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8133$as_echo_n "checking for file... " >&6; }
8134if ${lt_cv_path_MAGIC_CMD+:} false; then :
8135 $as_echo_n "(cached) " >&6
8136else
8137 case $MAGIC_CMD in
8138[\\/*] | ?:[\\/]*)
8139 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8140 ;;
8141*)
8142 lt_save_MAGIC_CMD=$MAGIC_CMD
8143 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8144 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8145 for ac_dir in $ac_dummy; do
8146 IFS=$lt_save_ifs
8147 test -z "$ac_dir" && ac_dir=.
8148 if test -f "$ac_dir/file"; then
8149 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8150 if test -n "$file_magic_test_file"; then
8151 case $deplibs_check_method in
8152 "file_magic "*)
8153 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8154 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8155 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8156 $EGREP "$file_magic_regex" > /dev/null; then
8157 :
8158 else
8159 cat <<_LT_EOF 1>&2
8160
8161*** Warning: the command libtool uses to detect shared libraries,
8162*** $file_magic_cmd, produces output that libtool cannot recognize.
8163*** The result is that libtool may fail to recognize shared libraries
8164*** as such. This will affect the creation of libtool libraries that
8165*** depend on shared libraries, but programs linked with such libtool
8166*** libraries will work regardless of this problem. Nevertheless, you
8167*** may want to report the problem to your system manager and/or to
8168*** bug-libtool@gnu.org
8169
8170_LT_EOF
8171 fi ;;
8172 esac
8173 fi
8174 break
8175 fi
8176 done
8177 IFS=$lt_save_ifs
8178 MAGIC_CMD=$lt_save_MAGIC_CMD
8179 ;;
8180esac
8181fi
8182
8183MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8184if test -n "$MAGIC_CMD"; then
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8186$as_echo "$MAGIC_CMD" >&6; }
8187else
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189$as_echo "no" >&6; }
8190fi
8191
8192
8193 else
8194 MAGIC_CMD=:
8195 fi
8196fi
8197
8198 fi
8199 ;;
8200esac
8201
8202# Use C for the default configuration in the libtool script
8203
8204lt_save_CC=$CC
8205ac_ext=c
8206ac_cpp='$CPP $CPPFLAGS'
8207ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8208ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8209ac_compiler_gnu=$ac_cv_c_compiler_gnu
8210
8211
8212# Source file extension for C test sources.
8213ac_ext=c
8214
8215# Object file extension for compiled C test sources.
8216objext=o
8217objext=$objext
8218
8219# Code to be used in simple compile tests
8220lt_simple_compile_test_code="int some_variable = 0;"
8221
8222# Code to be used in simple link tests
8223lt_simple_link_test_code='int main(){return(0);}'
8224
8225
8226
8227
8228
8229
8230
8231# If no C compiler was specified, use CC.
8232LTCC=${LTCC-"$CC"}
8233
8234# If no C compiler flags were specified, use CFLAGS.
8235LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8236
8237# Allow CC to be a program name with arguments.
8238compiler=$CC
8239
8240# Save the default compiler, since it gets overwritten when the other
8241# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8242compiler_DEFAULT=$CC
8243
8244# save warnings/boilerplate of simple test code
8245ac_outfile=conftest.$ac_objext
8246echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8247eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8248_lt_compiler_boilerplate=`cat conftest.err`
8249$RM conftest*
8250
8251ac_outfile=conftest.$ac_objext
8252echo "$lt_simple_link_test_code" >conftest.$ac_ext
8253eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8254_lt_linker_boilerplate=`cat conftest.err`
8255$RM -r conftest*
8256
8257
8258## CAVEAT EMPTOR:
8259## There is no encapsulation within the following macros, do not change
8260## the running order or otherwise move them around unless you know exactly
8261## what you are doing...
8262if test -n "$compiler"; then
8263
8264lt_prog_compiler_no_builtin_flag=
8265
8266if test yes = "$GCC"; then
8267 case $cc_basename in
8268 nvcc*)
8269 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8270 *)
8271 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8272 esac
8273
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8275$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8276if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8277 $as_echo_n "(cached) " >&6
8278else
8279 lt_cv_prog_compiler_rtti_exceptions=no
8280 ac_outfile=conftest.$ac_objext
8281 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8282 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8283 # Insert the option either (1) after the last *FLAGS variable, or
8284 # (2) before a word containing "conftest.", or (3) at the end.
8285 # Note that $ac_compile itself does not contain backslashes and begins
8286 # with a dollar sign (not a hyphen), so the echo should work correctly.
8287 # The option is referenced via a variable to avoid confusing sed.
8288 lt_compile=`echo "$ac_compile" | $SED \
8289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8291 -e 's:$: $lt_compiler_flag:'`
8292 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8293 (eval "$lt_compile" 2>conftest.err)
8294 ac_status=$?
8295 cat conftest.err >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 if (exit $ac_status) && test -s "$ac_outfile"; then
8298 # The compiler can only warn and ignore the option if not recognized
8299 # So say no if there are warnings other than the usual output.
8300 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8302 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8303 lt_cv_prog_compiler_rtti_exceptions=yes
8304 fi
8305 fi
8306 $RM conftest*
8307
8308fi
8309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8310$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8311
8312if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8313 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8314else
8315 :
8316fi
8317
8318fi
8319
8320
8321
8322
8323
8324
8325 lt_prog_compiler_wl=
8326lt_prog_compiler_pic=
8327lt_prog_compiler_static=
8328
8329
8330 if test yes = "$GCC"; then
8331 lt_prog_compiler_wl='-Wl,'
8332 lt_prog_compiler_static='-static'
8333
8334 case $host_os in
8335 aix*)
8336 # All AIX code is PIC.
8337 if test ia64 = "$host_cpu"; then
8338 # AIX 5 now supports IA64 processor
8339 lt_prog_compiler_static='-Bstatic'
8340 fi
8341 lt_prog_compiler_pic='-fPIC'
8342 ;;
8343
8344 amigaos*)
8345 case $host_cpu in
8346 powerpc)
8347 # see comment about AmigaOS4 .so support
8348 lt_prog_compiler_pic='-fPIC'
8349 ;;
8350 m68k)
8351 # FIXME: we need at least 68020 code to build shared libraries, but
8352 # adding the '-m68020' flag to GCC prevents building anything better,
8353 # like '-m68040'.
8354 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8355 ;;
8356 esac
8357 ;;
8358
8359 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8360 # PIC is the default for these OSes.
8361 ;;
8362
8363 mingw* | cygwin* | pw32* | os2* | cegcc*)
8364 # This hack is so that the source file can tell whether it is being
8365 # built for inclusion in a dll (and should export symbols for example).
8366 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8367 # (--disable-auto-import) libraries
8368 lt_prog_compiler_pic='-DDLL_EXPORT'
8369 case $host_os in
8370 os2*)
8371 lt_prog_compiler_static='$wl-static'
8372 ;;
8373 esac
8374 ;;
8375
8376 darwin* | rhapsody*)
8377 # PIC is the default on this platform
8378 # Common symbols not allowed in MH_DYLIB files
8379 lt_prog_compiler_pic='-fno-common'
8380 ;;
8381
8382 haiku*)
8383 # PIC is the default for Haiku.
8384 # The "-static" flag exists, but is broken.
8385 lt_prog_compiler_static=
8386 ;;
8387
8388 hpux*)
8389 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8390 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8391 # sets the default TLS model and affects inlining.
8392 case $host_cpu in
8393 hppa*64*)
8394 # +Z the default
8395 ;;
8396 *)
8397 lt_prog_compiler_pic='-fPIC'
8398 ;;
8399 esac
8400 ;;
8401
8402 interix[3-9]*)
8403 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8404 # Instead, we relocate shared libraries at runtime.
8405 ;;
8406
8407 msdosdjgpp*)
8408 # Just because we use GCC doesn't mean we suddenly get shared libraries
8409 # on systems that don't support them.
8410 lt_prog_compiler_can_build_shared=no
8411 enable_shared=no
8412 ;;
8413
8414 *nto* | *qnx*)
8415 # QNX uses GNU C++, but need to define -shared option too, otherwise
8416 # it will coredump.
8417 lt_prog_compiler_pic='-fPIC -shared'
8418 ;;
8419
8420 sysv4*MP*)
8421 if test -d /usr/nec; then
8422 lt_prog_compiler_pic=-Kconform_pic
8423 fi
8424 ;;
8425
8426 *)
8427 lt_prog_compiler_pic='-fPIC'
8428 ;;
8429 esac
8430
8431 case $cc_basename in
8432 nvcc*) # Cuda Compiler Driver 2.2
8433 lt_prog_compiler_wl='-Xlinker '
8434 if test -n "$lt_prog_compiler_pic"; then
8435 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8436 fi
8437 ;;
8438 esac
8439 else
8440 # PORTME Check for flag to pass linker flags through the system compiler.
8441 case $host_os in
8442 aix*)
8443 lt_prog_compiler_wl='-Wl,'
8444 if test ia64 = "$host_cpu"; then
8445 # AIX 5 now supports IA64 processor
8446 lt_prog_compiler_static='-Bstatic'
8447 else
8448 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8449 fi
8450 ;;
8451
8452 darwin* | rhapsody*)
8453 # PIC is the default on this platform
8454 # Common symbols not allowed in MH_DYLIB files
8455 lt_prog_compiler_pic='-fno-common'
8456 case $cc_basename in
8457 nagfor*)
8458 # NAG Fortran compiler
8459 lt_prog_compiler_wl='-Wl,-Wl,,'
8460 lt_prog_compiler_pic='-PIC'
8461 lt_prog_compiler_static='-Bstatic'
8462 ;;
8463 esac
8464 ;;
8465
8466 mingw* | cygwin* | pw32* | os2* | cegcc*)
8467 # This hack is so that the source file can tell whether it is being
8468 # built for inclusion in a dll (and should export symbols for example).
8469 lt_prog_compiler_pic='-DDLL_EXPORT'
8470 case $host_os in
8471 os2*)
8472 lt_prog_compiler_static='$wl-static'
8473 ;;
8474 esac
8475 ;;
8476
8477 hpux9* | hpux10* | hpux11*)
8478 lt_prog_compiler_wl='-Wl,'
8479 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8480 # not for PA HP-UX.
8481 case $host_cpu in
8482 hppa*64*|ia64*)
8483 # +Z the default
8484 ;;
8485 *)
8486 lt_prog_compiler_pic='+Z'
8487 ;;
8488 esac
8489 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8490 lt_prog_compiler_static='$wl-a ${wl}archive'
8491 ;;
8492
8493 irix5* | irix6* | nonstopux*)
8494 lt_prog_compiler_wl='-Wl,'
8495 # PIC (with -KPIC) is the default.
8496 lt_prog_compiler_static='-non_shared'
8497 ;;
8498
8499 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8500 case $cc_basename in
8501 # old Intel for x86_64, which still supported -KPIC.
8502 ecc*)
8503 lt_prog_compiler_wl='-Wl,'
8504 lt_prog_compiler_pic='-KPIC'
8505 lt_prog_compiler_static='-static'
8506 ;;
8507 # icc used to be incompatible with GCC.
8508 # ICC 10 doesn't accept -KPIC any more.
8509 icc* | ifort*)
8510 lt_prog_compiler_wl='-Wl,'
8511 lt_prog_compiler_pic='-fPIC'
8512 lt_prog_compiler_static='-static'
8513 ;;
8514 # Lahey Fortran 8.1.
8515 lf95*)
8516 lt_prog_compiler_wl='-Wl,'
8517 lt_prog_compiler_pic='--shared'
8518 lt_prog_compiler_static='--static'
8519 ;;
8520 nagfor*)
8521 # NAG Fortran compiler
8522 lt_prog_compiler_wl='-Wl,-Wl,,'
8523 lt_prog_compiler_pic='-PIC'
8524 lt_prog_compiler_static='-Bstatic'
8525 ;;
8526 tcc*)
8527 # Fabrice Bellard et al's Tiny C Compiler
8528 lt_prog_compiler_wl='-Wl,'
8529 lt_prog_compiler_pic='-fPIC'
8530 lt_prog_compiler_static='-static'
8531 ;;
8532 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8533 # Portland Group compilers (*not* the Pentium gcc compiler,
8534 # which looks to be a dead project)
8535 lt_prog_compiler_wl='-Wl,'
8536 lt_prog_compiler_pic='-fpic'
8537 lt_prog_compiler_static='-Bstatic'
8538 ;;
8539 ccc*)
8540 lt_prog_compiler_wl='-Wl,'
8541 # All Alpha code is PIC.
8542 lt_prog_compiler_static='-non_shared'
8543 ;;
8544 xl* | bgxl* | bgf* | mpixl*)
8545 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8546 lt_prog_compiler_wl='-Wl,'
8547 lt_prog_compiler_pic='-qpic'
8548 lt_prog_compiler_static='-qstaticlink'
8549 ;;
8550 *)
8551 case `$CC -V 2>&1 | sed 5q` in
8552 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8553 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8554 lt_prog_compiler_pic='-KPIC'
8555 lt_prog_compiler_static='-Bstatic'
8556 lt_prog_compiler_wl=''
8557 ;;
8558 *Sun\ F* | *Sun*Fortran*)
8559 lt_prog_compiler_pic='-KPIC'
8560 lt_prog_compiler_static='-Bstatic'
8561 lt_prog_compiler_wl='-Qoption ld '
8562 ;;
8563 *Sun\ C*)
8564 # Sun C 5.9
8565 lt_prog_compiler_pic='-KPIC'
8566 lt_prog_compiler_static='-Bstatic'
8567 lt_prog_compiler_wl='-Wl,'
8568 ;;
8569 *Intel*\ [CF]*Compiler*)
8570 lt_prog_compiler_wl='-Wl,'
8571 lt_prog_compiler_pic='-fPIC'
8572 lt_prog_compiler_static='-static'
8573 ;;
8574 *Portland\ Group*)
8575 lt_prog_compiler_wl='-Wl,'
8576 lt_prog_compiler_pic='-fpic'
8577 lt_prog_compiler_static='-Bstatic'
8578 ;;
8579 esac
8580 ;;
8581 esac
8582 ;;
8583
8584 newsos6)
8585 lt_prog_compiler_pic='-KPIC'
8586 lt_prog_compiler_static='-Bstatic'
8587 ;;
8588
8589 *nto* | *qnx*)
8590 # QNX uses GNU C++, but need to define -shared option too, otherwise
8591 # it will coredump.
8592 lt_prog_compiler_pic='-fPIC -shared'
8593 ;;
8594
8595 osf3* | osf4* | osf5*)
8596 lt_prog_compiler_wl='-Wl,'
8597 # All OSF/1 code is PIC.
8598 lt_prog_compiler_static='-non_shared'
8599 ;;
8600
8601 rdos*)
8602 lt_prog_compiler_static='-non_shared'
8603 ;;
8604
8605 solaris*)
8606 lt_prog_compiler_pic='-KPIC'
8607 lt_prog_compiler_static='-Bstatic'
8608 case $cc_basename in
8609 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8610 lt_prog_compiler_wl='-Qoption ld ';;
8611 *)
8612 lt_prog_compiler_wl='-Wl,';;
8613 esac
8614 ;;
8615
8616 sunos4*)
8617 lt_prog_compiler_wl='-Qoption ld '
8618 lt_prog_compiler_pic='-PIC'
8619 lt_prog_compiler_static='-Bstatic'
8620 ;;
8621
8622 sysv4 | sysv4.2uw2* | sysv4.3*)
8623 lt_prog_compiler_wl='-Wl,'
8624 lt_prog_compiler_pic='-KPIC'
8625 lt_prog_compiler_static='-Bstatic'
8626 ;;
8627
8628 sysv4*MP*)
8629 if test -d /usr/nec; then
8630 lt_prog_compiler_pic='-Kconform_pic'
8631 lt_prog_compiler_static='-Bstatic'
8632 fi
8633 ;;
8634
8635 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8636 lt_prog_compiler_wl='-Wl,'
8637 lt_prog_compiler_pic='-KPIC'
8638 lt_prog_compiler_static='-Bstatic'
8639 ;;
8640
8641 unicos*)
8642 lt_prog_compiler_wl='-Wl,'
8643 lt_prog_compiler_can_build_shared=no
8644 ;;
8645
8646 uts4*)
8647 lt_prog_compiler_pic='-pic'
8648 lt_prog_compiler_static='-Bstatic'
8649 ;;
8650
8651 *)
8652 lt_prog_compiler_can_build_shared=no
8653 ;;
8654 esac
8655 fi
8656
8657case $host_os in
8658 # For platforms that do not support PIC, -DPIC is meaningless:
8659 *djgpp*)
8660 lt_prog_compiler_pic=
8661 ;;
8662 *)
8663 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8664 ;;
8665esac
8666
8667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8668$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8669if ${lt_cv_prog_compiler_pic+:} false; then :
8670 $as_echo_n "(cached) " >&6
8671else
8672 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8673fi
8674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8675$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8676lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8677
8678#
8679# Check to make sure the PIC flag actually works.
8680#
8681if test -n "$lt_prog_compiler_pic"; then
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8683$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8684if ${lt_cv_prog_compiler_pic_works+:} false; then :
8685 $as_echo_n "(cached) " >&6
8686else
8687 lt_cv_prog_compiler_pic_works=no
8688 ac_outfile=conftest.$ac_objext
8689 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8690 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8691 # Insert the option either (1) after the last *FLAGS variable, or
8692 # (2) before a word containing "conftest.", or (3) at the end.
8693 # Note that $ac_compile itself does not contain backslashes and begins
8694 # with a dollar sign (not a hyphen), so the echo should work correctly.
8695 # The option is referenced via a variable to avoid confusing sed.
8696 lt_compile=`echo "$ac_compile" | $SED \
8697 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8698 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8699 -e 's:$: $lt_compiler_flag:'`
8700 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8701 (eval "$lt_compile" 2>conftest.err)
8702 ac_status=$?
8703 cat conftest.err >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 if (exit $ac_status) && test -s "$ac_outfile"; then
8706 # The compiler can only warn and ignore the option if not recognized
8707 # So say no if there are warnings other than the usual output.
8708 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8709 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8710 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8711 lt_cv_prog_compiler_pic_works=yes
8712 fi
8713 fi
8714 $RM conftest*
8715
8716fi
8717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8718$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8719
8720if test yes = "$lt_cv_prog_compiler_pic_works"; then
8721 case $lt_prog_compiler_pic in
8722 "" | " "*) ;;
8723 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8724 esac
8725else
8726 lt_prog_compiler_pic=
8727 lt_prog_compiler_can_build_shared=no
8728fi
8729
8730fi
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742#
8743# Check to make sure the static flag actually works.
8744#
8745wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8747$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8748if ${lt_cv_prog_compiler_static_works+:} false; then :
8749 $as_echo_n "(cached) " >&6
8750else
8751 lt_cv_prog_compiler_static_works=no
8752 save_LDFLAGS=$LDFLAGS
8753 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8754 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8755 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8756 # The linker can only warn and ignore the option if not recognized
8757 # So say no if there are warnings
8758 if test -s conftest.err; then
8759 # Append any errors to the config.log.
8760 cat conftest.err 1>&5
8761 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8762 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8763 if diff conftest.exp conftest.er2 >/dev/null; then
8764 lt_cv_prog_compiler_static_works=yes
8765 fi
8766 else
8767 lt_cv_prog_compiler_static_works=yes
8768 fi
8769 fi
8770 $RM -r conftest*
8771 LDFLAGS=$save_LDFLAGS
8772
8773fi
8774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8775$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8776
8777if test yes = "$lt_cv_prog_compiler_static_works"; then
8778 :
8779else
8780 lt_prog_compiler_static=
8781fi
8782
8783
8784
8785
8786
8787
8788
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8790$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8791if ${lt_cv_prog_compiler_c_o+:} false; then :
8792 $as_echo_n "(cached) " >&6
8793else
8794 lt_cv_prog_compiler_c_o=no
8795 $RM -r conftest 2>/dev/null
8796 mkdir conftest
8797 cd conftest
8798 mkdir out
8799 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8800
8801 lt_compiler_flag="-o out/conftest2.$ac_objext"
8802 # Insert the option either (1) after the last *FLAGS variable, or
8803 # (2) before a word containing "conftest.", or (3) at the end.
8804 # Note that $ac_compile itself does not contain backslashes and begins
8805 # with a dollar sign (not a hyphen), so the echo should work correctly.
8806 lt_compile=`echo "$ac_compile" | $SED \
8807 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8808 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8809 -e 's:$: $lt_compiler_flag:'`
8810 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8811 (eval "$lt_compile" 2>out/conftest.err)
8812 ac_status=$?
8813 cat out/conftest.err >&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8816 then
8817 # The compiler can only warn and ignore the option if not recognized
8818 # So say no if there are warnings
8819 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8820 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8821 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8822 lt_cv_prog_compiler_c_o=yes
8823 fi
8824 fi
8825 chmod u+w . 2>&5
8826 $RM conftest*
8827 # SGI C++ compiler will create directory out/ii_files/ for
8828 # template instantiation
8829 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8830 $RM out/* && rmdir out
8831 cd ..
8832 $RM -r conftest
8833 $RM conftest*
8834
8835fi
8836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8837$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8838
8839
8840
8841
8842
8843
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8845$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8846if ${lt_cv_prog_compiler_c_o+:} false; then :
8847 $as_echo_n "(cached) " >&6
8848else
8849 lt_cv_prog_compiler_c_o=no
8850 $RM -r conftest 2>/dev/null
8851 mkdir conftest
8852 cd conftest
8853 mkdir out
8854 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8855
8856 lt_compiler_flag="-o out/conftest2.$ac_objext"
8857 # Insert the option either (1) after the last *FLAGS variable, or
8858 # (2) before a word containing "conftest.", or (3) at the end.
8859 # Note that $ac_compile itself does not contain backslashes and begins
8860 # with a dollar sign (not a hyphen), so the echo should work correctly.
8861 lt_compile=`echo "$ac_compile" | $SED \
8862 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8863 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8864 -e 's:$: $lt_compiler_flag:'`
8865 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8866 (eval "$lt_compile" 2>out/conftest.err)
8867 ac_status=$?
8868 cat out/conftest.err >&5
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8871 then
8872 # The compiler can only warn and ignore the option if not recognized
8873 # So say no if there are warnings
8874 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8875 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8876 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8877 lt_cv_prog_compiler_c_o=yes
8878 fi
8879 fi
8880 chmod u+w . 2>&5
8881 $RM conftest*
8882 # SGI C++ compiler will create directory out/ii_files/ for
8883 # template instantiation
8884 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8885 $RM out/* && rmdir out
8886 cd ..
8887 $RM -r conftest
8888 $RM conftest*
8889
8890fi
8891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8892$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8893
8894
8895
8896
8897hard_links=nottested
8898if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8899 # do not overwrite the value of need_locks provided by the user
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8901$as_echo_n "checking if we can lock with hard links... " >&6; }
8902 hard_links=yes
8903 $RM conftest*
8904 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8905 touch conftest.a
8906 ln conftest.a conftest.b 2>&5 || hard_links=no
8907 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8909$as_echo "$hard_links" >&6; }
8910 if test no = "$hard_links"; then
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8912$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8913 need_locks=warn
8914 fi
8915else
8916 need_locks=no
8917fi
8918
8919
8920
8921
8922
8923
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8925$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8926
8927 runpath_var=
8928 allow_undefined_flag=
8929 always_export_symbols=no
8930 archive_cmds=
8931 archive_expsym_cmds=
8932 compiler_needs_object=no
8933 enable_shared_with_static_runtimes=no
8934 export_dynamic_flag_spec=
8935 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8936 hardcode_automatic=no
8937 hardcode_direct=no
8938 hardcode_direct_absolute=no
8939 hardcode_libdir_flag_spec=
8940 hardcode_libdir_separator=
8941 hardcode_minus_L=no
8942 hardcode_shlibpath_var=unsupported
8943 inherit_rpath=no
8944 link_all_deplibs=unknown
8945 module_cmds=
8946 module_expsym_cmds=
8947 old_archive_from_new_cmds=
8948 old_archive_from_expsyms_cmds=
8949 thread_safe_flag_spec=
8950 whole_archive_flag_spec=
8951 # include_expsyms should be a list of space-separated symbols to be *always*
8952 # included in the symbol list
8953 include_expsyms=
8954 # exclude_expsyms can be an extended regexp of symbols to exclude
8955 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8956 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8957 # as well as any symbol that contains 'd'.
8958 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8959 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8960 # platforms (ab)use it in PIC code, but their linkers get confused if
8961 # the symbol is explicitly referenced. Since portable code cannot
8962 # rely on this symbol name, it's probably fine to never include it in
8963 # preloaded symbol tables.
8964 # Exclude shared library initialization/finalization symbols.
8965 extract_expsyms_cmds=
8966
8967 case $host_os in
8968 cygwin* | mingw* | pw32* | cegcc*)
8969 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8970 # When not using gcc, we currently assume that we are using
8971 # Microsoft Visual C++.
8972 if test yes != "$GCC"; then
8973 with_gnu_ld=no
8974 fi
8975 ;;
8976 interix*)
8977 # we just hope/assume this is gcc and not c89 (= MSVC++)
8978 with_gnu_ld=yes
8979 ;;
8980 openbsd* | bitrig*)
8981 with_gnu_ld=no
8982 ;;
8983 linux* | k*bsd*-gnu | gnu*)
8984 link_all_deplibs=no
8985 ;;
8986 esac
8987
8988 ld_shlibs=yes
8989
8990 # On some targets, GNU ld is compatible enough with the native linker
8991 # that we're better off using the native interface for both.
8992 lt_use_gnu_ld_interface=no
8993 if test yes = "$with_gnu_ld"; then
8994 case $host_os in
8995 aix*)
8996 # The AIX port of GNU ld has always aspired to compatibility
8997 # with the native linker. However, as the warning in the GNU ld
8998 # block says, versions before 2.19.5* couldn't really create working
8999 # shared libraries, regardless of the interface used.
9000 case `$LD -v 2>&1` in
9001 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9002 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9003 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9004 *)
9005 lt_use_gnu_ld_interface=yes
9006 ;;
9007 esac
9008 ;;
9009 *)
9010 lt_use_gnu_ld_interface=yes
9011 ;;
9012 esac
9013 fi
9014
9015 if test yes = "$lt_use_gnu_ld_interface"; then
9016 # If archive_cmds runs LD, not CC, wlarc should be empty
9017 wlarc='$wl'
9018
9019 # Set some defaults for GNU ld with shared library support. These
9020 # are reset later if shared libraries are not supported. Putting them
9021 # here allows them to be overridden if necessary.
9022 runpath_var=LD_RUN_PATH
9023 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9024 export_dynamic_flag_spec='$wl--export-dynamic'
9025 # ancient GNU ld didn't support --whole-archive et. al.
9026 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9027 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9028 else
9029 whole_archive_flag_spec=
9030 fi
9031 supports_anon_versioning=no
9032 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9033 *GNU\ gold*) supports_anon_versioning=yes ;;
9034 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9035 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9036 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9037 *\ 2.11.*) ;; # other 2.11 versions
9038 *) supports_anon_versioning=yes ;;
9039 esac
9040
9041 # See if GNU ld supports shared libraries.
9042 case $host_os in
9043 aix[3-9]*)
9044 # On AIX/PPC, the GNU linker is very broken
9045 if test ia64 != "$host_cpu"; then
9046 ld_shlibs=no
9047 cat <<_LT_EOF 1>&2
9048
9049*** Warning: the GNU linker, at least up to release 2.19, is reported
9050*** to be unable to reliably create shared libraries on AIX.
9051*** Therefore, libtool is disabling shared libraries support. If you
9052*** really care for shared libraries, you may want to install binutils
9053*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9054*** You will then need to restart the configuration process.
9055
9056_LT_EOF
9057 fi
9058 ;;
9059
9060 amigaos*)
9061 case $host_cpu in
9062 powerpc)
9063 # see comment about AmigaOS4 .so support
9064 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9065 archive_expsym_cmds=''
9066 ;;
9067 m68k)
9068 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)'
9069 hardcode_libdir_flag_spec='-L$libdir'
9070 hardcode_minus_L=yes
9071 ;;
9072 esac
9073 ;;
9074
9075 beos*)
9076 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9077 allow_undefined_flag=unsupported
9078 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9079 # support --undefined. This deserves some investigation. FIXME
9080 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9081 else
9082 ld_shlibs=no
9083 fi
9084 ;;
9085
9086 cygwin* | mingw* | pw32* | cegcc*)
9087 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9088 # as there is no search path for DLLs.
9089 hardcode_libdir_flag_spec='-L$libdir'
9090 export_dynamic_flag_spec='$wl--export-all-symbols'
9091 allow_undefined_flag=unsupported
9092 always_export_symbols=no
9093 enable_shared_with_static_runtimes=yes
9094 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'
9095 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9096
9097 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9098 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9099 # If the export-symbols file already is a .def file, use it as
9100 # is; otherwise, prepend EXPORTS...
9101 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9102 cp $export_symbols $output_objdir/$soname.def;
9103 else
9104 echo EXPORTS > $output_objdir/$soname.def;
9105 cat $export_symbols >> $output_objdir/$soname.def;
9106 fi~
9107 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9108 else
9109 ld_shlibs=no
9110 fi
9111 ;;
9112
9113 haiku*)
9114 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9115 link_all_deplibs=yes
9116 ;;
9117
9118 os2*)
9119 hardcode_libdir_flag_spec='-L$libdir'
9120 hardcode_minus_L=yes
9121 allow_undefined_flag=unsupported
9122 shrext_cmds=.dll
9123 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9124 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9125 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9126 $ECHO EXPORTS >> $output_objdir/$libname.def~
9127 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9128 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9129 emximp -o $lib $output_objdir/$libname.def'
9130 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9131 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9132 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9133 $ECHO EXPORTS >> $output_objdir/$libname.def~
9134 prefix_cmds="$SED"~
9135 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9136 prefix_cmds="$prefix_cmds -e 1d";
9137 fi~
9138 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9139 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9140 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9141 emximp -o $lib $output_objdir/$libname.def'
9142 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9143 enable_shared_with_static_runtimes=yes
9144 ;;
9145
9146 interix[3-9]*)
9147 hardcode_direct=no
9148 hardcode_shlibpath_var=no
9149 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9150 export_dynamic_flag_spec='$wl-E'
9151 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9152 # Instead, shared libraries are loaded at an image base (0x10000000 by
9153 # default) and relocated if they conflict, which is a slow very memory
9154 # consuming and fragmenting process. To avoid this, we pick a random,
9155 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9156 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9157 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9158 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'
9159 ;;
9160
9161 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9162 tmp_diet=no
9163 if test linux-dietlibc = "$host_os"; then
9164 case $cc_basename in
9165 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9166 esac
9167 fi
9168 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9169 && test no = "$tmp_diet"
9170 then
9171 tmp_addflag=' $pic_flag'
9172 tmp_sharedflag='-shared'
9173 case $cc_basename,$host_cpu in
9174 pgcc*) # Portland Group C compiler
9175 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'
9176 tmp_addflag=' $pic_flag'
9177 ;;
9178 pgf77* | pgf90* | pgf95* | pgfortran*)
9179 # Portland Group f77 and f90 compilers
9180 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'
9181 tmp_addflag=' $pic_flag -Mnomain' ;;
9182 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9183 tmp_addflag=' -i_dynamic' ;;
9184 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9185 tmp_addflag=' -i_dynamic -nofor_main' ;;
9186 ifc* | ifort*) # Intel Fortran compiler
9187 tmp_addflag=' -nofor_main' ;;
9188 lf95*) # Lahey Fortran 8.1
9189 whole_archive_flag_spec=
9190 tmp_sharedflag='--shared' ;;
9191 nagfor*) # NAGFOR 5.3
9192 tmp_sharedflag='-Wl,-shared' ;;
9193 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9194 tmp_sharedflag='-qmkshrobj'
9195 tmp_addflag= ;;
9196 nvcc*) # Cuda Compiler Driver 2.2
9197 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'
9198 compiler_needs_object=yes
9199 ;;
9200 esac
9201 case `$CC -V 2>&1 | sed 5q` in
9202 *Sun\ C*) # Sun C 5.9
9203 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'
9204 compiler_needs_object=yes
9205 tmp_sharedflag='-G' ;;
9206 *Sun\ F*) # Sun Fortran 8.3
9207 tmp_sharedflag='-G' ;;
9208 esac
9209 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9210
9211 if test yes = "$supports_anon_versioning"; then
9212 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9213 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9214 echo "local: *; };" >> $output_objdir/$libname.ver~
9215 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9216 fi
9217
9218 case $cc_basename in
9219 tcc*)
9220 export_dynamic_flag_spec='-rdynamic'
9221 ;;
9222 xlf* | bgf* | bgxlf* | mpixlf*)
9223 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9224 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9225 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9226 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9227 if test yes = "$supports_anon_versioning"; then
9228 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9229 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9230 echo "local: *; };" >> $output_objdir/$libname.ver~
9231 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9232 fi
9233 ;;
9234 esac
9235 else
9236 ld_shlibs=no
9237 fi
9238 ;;
9239
9240 netbsd* | netbsdelf*-gnu)
9241 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9242 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9243 wlarc=
9244 else
9245 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9246 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9247 fi
9248 ;;
9249
9250 solaris*)
9251 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9252 ld_shlibs=no
9253 cat <<_LT_EOF 1>&2
9254
9255*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9256*** create shared libraries on Solaris systems. Therefore, libtool
9257*** is disabling shared libraries support. We urge you to upgrade GNU
9258*** binutils to release 2.9.1 or newer. Another option is to modify
9259*** your PATH or compiler configuration so that the native linker is
9260*** used, and then restart.
9261
9262_LT_EOF
9263 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9264 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9265 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9266 else
9267 ld_shlibs=no
9268 fi
9269 ;;
9270
9271 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9272 case `$LD -v 2>&1` in
9273 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9274 ld_shlibs=no
9275 cat <<_LT_EOF 1>&2
9276
9277*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9278*** reliably create shared libraries on SCO systems. Therefore, libtool
9279*** is disabling shared libraries support. We urge you to upgrade GNU
9280*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9281*** your PATH or compiler configuration so that the native linker is
9282*** used, and then restart.
9283
9284_LT_EOF
9285 ;;
9286 *)
9287 # For security reasons, it is highly recommended that you always
9288 # use absolute paths for naming shared libraries, and exclude the
9289 # DT_RUNPATH tag from executables and libraries. But doing so
9290 # requires that you compile everything twice, which is a pain.
9291 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9292 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9294 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9295 else
9296 ld_shlibs=no
9297 fi
9298 ;;
9299 esac
9300 ;;
9301
9302 sunos4*)
9303 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9304 wlarc=
9305 hardcode_direct=yes
9306 hardcode_shlibpath_var=no
9307 ;;
9308
9309 *)
9310 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9311 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9312 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9313 else
9314 ld_shlibs=no
9315 fi
9316 ;;
9317 esac
9318
9319 if test no = "$ld_shlibs"; then
9320 runpath_var=
9321 hardcode_libdir_flag_spec=
9322 export_dynamic_flag_spec=
9323 whole_archive_flag_spec=
9324 fi
9325 else
9326 # PORTME fill in a description of your system's linker (not GNU ld)
9327 case $host_os in
9328 aix3*)
9329 allow_undefined_flag=unsupported
9330 always_export_symbols=yes
9331 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'
9332 # Note: this linker hardcodes the directories in LIBPATH if there
9333 # are no directories specified by -L.
9334 hardcode_minus_L=yes
9335 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9336 # Neither direct hardcoding nor static linking is supported with a
9337 # broken collect2.
9338 hardcode_direct=unsupported
9339 fi
9340 ;;
9341
9342 aix[4-9]*)
9343 if test ia64 = "$host_cpu"; then
9344 # On IA64, the linker does run time linking by default, so we don't
9345 # have to do anything special.
9346 aix_use_runtimelinking=no
9347 exp_sym_flag='-Bexport'
9348 no_entry_flag=
9349 else
9350 # If we're using GNU nm, then we don't want the "-C" option.
9351 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9352 # Without the "-l" option, or with the "-B" option, AIX nm treats
9353 # weak defined symbols like other global defined symbols, whereas
9354 # GNU nm marks them as "W".
9355 # While the 'weak' keyword is ignored in the Export File, we need
9356 # it in the Import File for the 'aix-soname' feature, so we have
9357 # to replace the "-B" option with "-P" for AIX nm.
9358 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9359 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'
9360 else
9361 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'
9362 fi
9363 aix_use_runtimelinking=no
9364
9365 # Test if we are trying to use run time linking or normal
9366 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9367 # have runtime linking enabled, and use it for executables.
9368 # For shared libraries, we enable/disable runtime linking
9369 # depending on the kind of the shared library created -
9370 # when "with_aix_soname,aix_use_runtimelinking" is:
9371 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9372 # "aix,yes" lib.so shared, rtl:yes, for executables
9373 # lib.a static archive
9374 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9375 # lib.a(lib.so.V) shared, rtl:no, for executables
9376 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9377 # lib.a(lib.so.V) shared, rtl:no
9378 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9379 # lib.a static archive
9380 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9381 for ld_flag in $LDFLAGS; do
9382 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9383 aix_use_runtimelinking=yes
9384 break
9385 fi
9386 done
9387 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9388 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9389 # so we don't have lib.a shared libs to link our executables.
9390 # We have to force runtime linking in this case.
9391 aix_use_runtimelinking=yes
9392 LDFLAGS="$LDFLAGS -Wl,-brtl"
9393 fi
9394 ;;
9395 esac
9396
9397 exp_sym_flag='-bexport'
9398 no_entry_flag='-bnoentry'
9399 fi
9400
9401 # When large executables or shared objects are built, AIX ld can
9402 # have problems creating the table of contents. If linking a library
9403 # or program results in "error TOC overflow" add -mminimal-toc to
9404 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9405 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9406
9407 archive_cmds=''
9408 hardcode_direct=yes
9409 hardcode_direct_absolute=yes
9410 hardcode_libdir_separator=':'
9411 link_all_deplibs=yes
9412 file_list_spec='$wl-f,'
9413 case $with_aix_soname,$aix_use_runtimelinking in
9414 aix,*) ;; # traditional, no import file
9415 svr4,* | *,yes) # use import file
9416 # The Import File defines what to hardcode.
9417 hardcode_direct=no
9418 hardcode_direct_absolute=no
9419 ;;
9420 esac
9421
9422 if test yes = "$GCC"; then
9423 case $host_os in aix4.[012]|aix4.[012].*)
9424 # We only want to do this on AIX 4.2 and lower, the check
9425 # below for broken collect2 doesn't work under 4.3+
9426 collect2name=`$CC -print-prog-name=collect2`
9427 if test -f "$collect2name" &&
9428 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9429 then
9430 # We have reworked collect2
9431 :
9432 else
9433 # We have old collect2
9434 hardcode_direct=unsupported
9435 # It fails to find uninstalled libraries when the uninstalled
9436 # path is not listed in the libpath. Setting hardcode_minus_L
9437 # to unsupported forces relinking
9438 hardcode_minus_L=yes
9439 hardcode_libdir_flag_spec='-L$libdir'
9440 hardcode_libdir_separator=
9441 fi
9442 ;;
9443 esac
9444 shared_flag='-shared'
9445 if test yes = "$aix_use_runtimelinking"; then
9446 shared_flag="$shared_flag "'$wl-G'
9447 fi
9448 # Need to ensure runtime linking is disabled for the traditional
9449 # shared library, or the linker may eventually find shared libraries
9450 # /with/ Import File - we do not want to mix them.
9451 shared_flag_aix='-shared'
9452 shared_flag_svr4='-shared $wl-G'
9453 else
9454 # not using gcc
9455 if test ia64 = "$host_cpu"; then
9456 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9457 # chokes on -Wl,-G. The following line is correct:
9458 shared_flag='-G'
9459 else
9460 if test yes = "$aix_use_runtimelinking"; then
9461 shared_flag='$wl-G'
9462 else
9463 shared_flag='$wl-bM:SRE'
9464 fi
9465 shared_flag_aix='$wl-bM:SRE'
9466 shared_flag_svr4='$wl-G'
9467 fi
9468 fi
9469
9470 export_dynamic_flag_spec='$wl-bexpall'
9471 # It seems that -bexpall does not export symbols beginning with
9472 # underscore (_), so it is better to generate a list of symbols to export.
9473 always_export_symbols=yes
9474 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9475 # Warning - without using the other runtime loading flags (-brtl),
9476 # -berok will link without error, but may produce a broken library.
9477 allow_undefined_flag='-berok'
9478 # Determine the default libpath from the value encoded in an
9479 # empty executable.
9480 if test set = "${lt_cv_aix_libpath+set}"; then
9481 aix_libpath=$lt_cv_aix_libpath
9482else
9483 if ${lt_cv_aix_libpath_+:} false; then :
9484 $as_echo_n "(cached) " >&6
9485else
9486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9487/* end confdefs.h. */
9488
9489int
9490main ()
9491{
9492
9493 ;
9494 return 0;
9495}
9496_ACEOF
9497if ac_fn_c_try_link "$LINENO"; then :
9498
9499 lt_aix_libpath_sed='
9500 /Import File Strings/,/^$/ {
9501 /^0/ {
9502 s/^0 *\([^ ]*\) *$/\1/
9503 p
9504 }
9505 }'
9506 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9507 # Check for a 64-bit object if we didn't find anything.
9508 if test -z "$lt_cv_aix_libpath_"; then
9509 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9510 fi
9511fi
9512rm -f core conftest.err conftest.$ac_objext \
9513 conftest$ac_exeext conftest.$ac_ext
9514 if test -z "$lt_cv_aix_libpath_"; then
9515 lt_cv_aix_libpath_=/usr/lib:/lib
9516 fi
9517
9518fi
9519
9520 aix_libpath=$lt_cv_aix_libpath_
9521fi
9522
9523 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9524 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
9525 else
9526 if test ia64 = "$host_cpu"; then
9527 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9528 allow_undefined_flag="-z nodefs"
9529 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"
9530 else
9531 # Determine the default libpath from the value encoded in an
9532 # empty executable.
9533 if test set = "${lt_cv_aix_libpath+set}"; then
9534 aix_libpath=$lt_cv_aix_libpath
9535else
9536 if ${lt_cv_aix_libpath_+:} false; then :
9537 $as_echo_n "(cached) " >&6
9538else
9539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9540/* end confdefs.h. */
9541
9542int
9543main ()
9544{
9545
9546 ;
9547 return 0;
9548}
9549_ACEOF
9550if ac_fn_c_try_link "$LINENO"; then :
9551
9552 lt_aix_libpath_sed='
9553 /Import File Strings/,/^$/ {
9554 /^0/ {
9555 s/^0 *\([^ ]*\) *$/\1/
9556 p
9557 }
9558 }'
9559 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9560 # Check for a 64-bit object if we didn't find anything.
9561 if test -z "$lt_cv_aix_libpath_"; then
9562 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9563 fi
9564fi
9565rm -f core conftest.err conftest.$ac_objext \
9566 conftest$ac_exeext conftest.$ac_ext
9567 if test -z "$lt_cv_aix_libpath_"; then
9568 lt_cv_aix_libpath_=/usr/lib:/lib
9569 fi
9570
9571fi
9572
9573 aix_libpath=$lt_cv_aix_libpath_
9574fi
9575
9576 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9577 # Warning - without using the other run time loading flags,
9578 # -berok will link without error, but may produce a broken library.
9579 no_undefined_flag=' $wl-bernotok'
9580 allow_undefined_flag=' $wl-berok'
9581 if test yes = "$with_gnu_ld"; then
9582 # We only use this code for GNU lds that support --whole-archive.
9583 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9584 else
9585 # Exported symbols can be pulled into shared objects from archives
9586 whole_archive_flag_spec='$convenience'
9587 fi
9588 archive_cmds_need_lc=yes
9589 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9590 # -brtl affects multiple linker settings, -berok does not and is overridden later
9591 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9592 if test svr4 != "$with_aix_soname"; then
9593 # This is similar to how AIX traditionally builds its shared libraries.
9594 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'
9595 fi
9596 if test aix != "$with_aix_soname"; then
9597 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'
9598 else
9599 # used by -dlpreopen to get the symbols
9600 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9601 fi
9602 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9603 fi
9604 fi
9605 ;;
9606
9607 amigaos*)
9608 case $host_cpu in
9609 powerpc)
9610 # see comment about AmigaOS4 .so support
9611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9612 archive_expsym_cmds=''
9613 ;;
9614 m68k)
9615 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)'
9616 hardcode_libdir_flag_spec='-L$libdir'
9617 hardcode_minus_L=yes
9618 ;;
9619 esac
9620 ;;
9621
9622 bsdi[45]*)
9623 export_dynamic_flag_spec=-rdynamic
9624 ;;
9625
9626 cygwin* | mingw* | pw32* | cegcc*)
9627 # When not using gcc, we currently assume that we are using
9628 # Microsoft Visual C++.
9629 # hardcode_libdir_flag_spec is actually meaningless, as there is
9630 # no search path for DLLs.
9631 case $cc_basename in
9632 cl*)
9633 # Native MSVC
9634 hardcode_libdir_flag_spec=' '
9635 allow_undefined_flag=unsupported
9636 always_export_symbols=yes
9637 file_list_spec='@'
9638 # Tell ltmain to make .lib files, not .a files.
9639 libext=lib
9640 # Tell ltmain to make .dll files, not .so files.
9641 shrext_cmds=.dll
9642 # FIXME: Setting linknames here is a bad hack.
9643 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9644 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9645 cp "$export_symbols" "$output_objdir/$soname.def";
9646 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9647 else
9648 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9649 fi~
9650 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9651 linknames='
9652 # The linker will not automatically build a static lib if we build a DLL.
9653 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9654 enable_shared_with_static_runtimes=yes
9655 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9656 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9657 # Don't use ranlib
9658 old_postinstall_cmds='chmod 644 $oldlib'
9659 postlink_cmds='lt_outputfile="@OUTPUT@"~
9660 lt_tool_outputfile="@TOOL_OUTPUT@"~
9661 case $lt_outputfile in
9662 *.exe|*.EXE) ;;
9663 *)
9664 lt_outputfile=$lt_outputfile.exe
9665 lt_tool_outputfile=$lt_tool_outputfile.exe
9666 ;;
9667 esac~
9668 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9669 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9670 $RM "$lt_outputfile.manifest";
9671 fi'
9672 ;;
9673 *)
9674 # Assume MSVC wrapper
9675 hardcode_libdir_flag_spec=' '
9676 allow_undefined_flag=unsupported
9677 # Tell ltmain to make .lib files, not .a files.
9678 libext=lib
9679 # Tell ltmain to make .dll files, not .so files.
9680 shrext_cmds=.dll
9681 # FIXME: Setting linknames here is a bad hack.
9682 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9683 # The linker will automatically build a .lib file if we build a DLL.
9684 old_archive_from_new_cmds='true'
9685 # FIXME: Should let the user specify the lib program.
9686 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9687 enable_shared_with_static_runtimes=yes
9688 ;;
9689 esac
9690 ;;
9691
9692 darwin* | rhapsody*)
9693
9694
9695 archive_cmds_need_lc=no
9696 hardcode_direct=no
9697 hardcode_automatic=yes
9698 hardcode_shlibpath_var=unsupported
9699 if test yes = "$lt_cv_ld_force_load"; then
9700 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\"`'
9701
9702 else
9703 whole_archive_flag_spec=''
9704 fi
9705 link_all_deplibs=yes
9706 allow_undefined_flag=$_lt_dar_allow_undefined
9707 case $cc_basename in
9708 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9709 *) _lt_dar_can_shared=$GCC ;;
9710 esac
9711 if test yes = "$_lt_dar_can_shared"; then
9712 output_verbose_link_cmd=func_echo_all
9713 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9714 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9715 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"
9716 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"
9717
9718 else
9719 ld_shlibs=no
9720 fi
9721
9722 ;;
9723
9724 dgux*)
9725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9726 hardcode_libdir_flag_spec='-L$libdir'
9727 hardcode_shlibpath_var=no
9728 ;;
9729
9730 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9731 # support. Future versions do this automatically, but an explicit c++rt0.o
9732 # does not break anything, and helps significantly (at the cost of a little
9733 # extra space).
9734 freebsd2.2*)
9735 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9736 hardcode_libdir_flag_spec='-R$libdir'
9737 hardcode_direct=yes
9738 hardcode_shlibpath_var=no
9739 ;;
9740
9741 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9742 freebsd2.*)
9743 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9744 hardcode_direct=yes
9745 hardcode_minus_L=yes
9746 hardcode_shlibpath_var=no
9747 ;;
9748
9749 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9750 freebsd* | dragonfly*)
9751 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9752 hardcode_libdir_flag_spec='-R$libdir'
9753 hardcode_direct=yes
9754 hardcode_shlibpath_var=no
9755 ;;
9756
9757 hpux9*)
9758 if test yes = "$GCC"; then
9759 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'
9760 else
9761 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'
9762 fi
9763 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9764 hardcode_libdir_separator=:
9765 hardcode_direct=yes
9766
9767 # hardcode_minus_L: Not really in the search PATH,
9768 # but as the default location of the library.
9769 hardcode_minus_L=yes
9770 export_dynamic_flag_spec='$wl-E'
9771 ;;
9772
9773 hpux10*)
9774 if test yes,no = "$GCC,$with_gnu_ld"; then
9775 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9776 else
9777 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9778 fi
9779 if test no = "$with_gnu_ld"; then
9780 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9781 hardcode_libdir_separator=:
9782 hardcode_direct=yes
9783 hardcode_direct_absolute=yes
9784 export_dynamic_flag_spec='$wl-E'
9785 # hardcode_minus_L: Not really in the search PATH,
9786 # but as the default location of the library.
9787 hardcode_minus_L=yes
9788 fi
9789 ;;
9790
9791 hpux11*)
9792 if test yes,no = "$GCC,$with_gnu_ld"; then
9793 case $host_cpu in
9794 hppa*64*)
9795 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9796 ;;
9797 ia64*)
9798 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9799 ;;
9800 *)
9801 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9802 ;;
9803 esac
9804 else
9805 case $host_cpu in
9806 hppa*64*)
9807 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9808 ;;
9809 ia64*)
9810 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9811 ;;
9812 *)
9813
9814 # Older versions of the 11.00 compiler do not understand -b yet
9815 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9817$as_echo_n "checking if $CC understands -b... " >&6; }
9818if ${lt_cv_prog_compiler__b+:} false; then :
9819 $as_echo_n "(cached) " >&6
9820else
9821 lt_cv_prog_compiler__b=no
9822 save_LDFLAGS=$LDFLAGS
9823 LDFLAGS="$LDFLAGS -b"
9824 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9825 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9826 # The linker can only warn and ignore the option if not recognized
9827 # So say no if there are warnings
9828 if test -s conftest.err; then
9829 # Append any errors to the config.log.
9830 cat conftest.err 1>&5
9831 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9832 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9833 if diff conftest.exp conftest.er2 >/dev/null; then
9834 lt_cv_prog_compiler__b=yes
9835 fi
9836 else
9837 lt_cv_prog_compiler__b=yes
9838 fi
9839 fi
9840 $RM -r conftest*
9841 LDFLAGS=$save_LDFLAGS
9842
9843fi
9844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9845$as_echo "$lt_cv_prog_compiler__b" >&6; }
9846
9847if test yes = "$lt_cv_prog_compiler__b"; then
9848 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9849else
9850 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9851fi
9852
9853 ;;
9854 esac
9855 fi
9856 if test no = "$with_gnu_ld"; then
9857 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9858 hardcode_libdir_separator=:
9859
9860 case $host_cpu in
9861 hppa*64*|ia64*)
9862 hardcode_direct=no
9863 hardcode_shlibpath_var=no
9864 ;;
9865 *)
9866 hardcode_direct=yes
9867 hardcode_direct_absolute=yes
9868 export_dynamic_flag_spec='$wl-E'
9869
9870 # hardcode_minus_L: Not really in the search PATH,
9871 # but as the default location of the library.
9872 hardcode_minus_L=yes
9873 ;;
9874 esac
9875 fi
9876 ;;
9877
9878 irix5* | irix6* | nonstopux*)
9879 if test yes = "$GCC"; then
9880 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'
9881 # Try to use the -exported_symbol ld option, if it does not
9882 # work, assume that -exports_file does not work either and
9883 # implicitly export all symbols.
9884 # This should be the same for all languages, so no per-tag cache variable.
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9886$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9887if ${lt_cv_irix_exported_symbol+:} false; then :
9888 $as_echo_n "(cached) " >&6
9889else
9890 save_LDFLAGS=$LDFLAGS
9891 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893/* end confdefs.h. */
9894int foo (void) { return 0; }
9895_ACEOF
9896if ac_fn_c_try_link "$LINENO"; then :
9897 lt_cv_irix_exported_symbol=yes
9898else
9899 lt_cv_irix_exported_symbol=no
9900fi
9901rm -f core conftest.err conftest.$ac_objext \
9902 conftest$ac_exeext conftest.$ac_ext
9903 LDFLAGS=$save_LDFLAGS
9904fi
9905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9906$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9907 if test yes = "$lt_cv_irix_exported_symbol"; then
9908 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'
9909 fi
9910 link_all_deplibs=no
9911 else
9912 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'
9913 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'
9914 fi
9915 archive_cmds_need_lc='no'
9916 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9917 hardcode_libdir_separator=:
9918 inherit_rpath=yes
9919 link_all_deplibs=yes
9920 ;;
9921
9922 linux*)
9923 case $cc_basename in
9924 tcc*)
9925 # Fabrice Bellard et al's Tiny C Compiler
9926 ld_shlibs=yes
9927 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9928 ;;
9929 esac
9930 ;;
9931
9932 netbsd* | netbsdelf*-gnu)
9933 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9934 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9935 else
9936 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9937 fi
9938 hardcode_libdir_flag_spec='-R$libdir'
9939 hardcode_direct=yes
9940 hardcode_shlibpath_var=no
9941 ;;
9942
9943 newsos6)
9944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9945 hardcode_direct=yes
9946 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9947 hardcode_libdir_separator=:
9948 hardcode_shlibpath_var=no
9949 ;;
9950
9951 *nto* | *qnx*)
9952 ;;
9953
9954 openbsd* | bitrig*)
9955 if test -f /usr/libexec/ld.so; then
9956 hardcode_direct=yes
9957 hardcode_shlibpath_var=no
9958 hardcode_direct_absolute=yes
9959 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9960 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9961 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9962 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9963 export_dynamic_flag_spec='$wl-E'
9964 else
9965 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9966 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9967 fi
9968 else
9969 ld_shlibs=no
9970 fi
9971 ;;
9972
9973 os2*)
9974 hardcode_libdir_flag_spec='-L$libdir'
9975 hardcode_minus_L=yes
9976 allow_undefined_flag=unsupported
9977 shrext_cmds=.dll
9978 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9979 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9980 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9981 $ECHO EXPORTS >> $output_objdir/$libname.def~
9982 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9983 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9984 emximp -o $lib $output_objdir/$libname.def'
9985 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9986 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9987 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9988 $ECHO EXPORTS >> $output_objdir/$libname.def~
9989 prefix_cmds="$SED"~
9990 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9991 prefix_cmds="$prefix_cmds -e 1d";
9992 fi~
9993 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9994 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9995 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9996 emximp -o $lib $output_objdir/$libname.def'
9997 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9998 enable_shared_with_static_runtimes=yes
9999 ;;
10000
10001 osf3*)
10002 if test yes = "$GCC"; then
10003 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10004 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'
10005 else
10006 allow_undefined_flag=' -expect_unresolved \*'
10007 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'
10008 fi
10009 archive_cmds_need_lc='no'
10010 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10011 hardcode_libdir_separator=:
10012 ;;
10013
10014 osf4* | osf5*) # as osf3* with the addition of -msym flag
10015 if test yes = "$GCC"; then
10016 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10017 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'
10018 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10019 else
10020 allow_undefined_flag=' -expect_unresolved \*'
10021 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'
10022 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~
10023 $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'
10024
10025 # Both c and cxx compiler support -rpath directly
10026 hardcode_libdir_flag_spec='-rpath $libdir'
10027 fi
10028 archive_cmds_need_lc='no'
10029 hardcode_libdir_separator=:
10030 ;;
10031
10032 solaris*)
10033 no_undefined_flag=' -z defs'
10034 if test yes = "$GCC"; then
10035 wlarc='$wl'
10036 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10037 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10038 $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'
10039 else
10040 case `$CC -V 2>&1` in
10041 *"Compilers 5.0"*)
10042 wlarc=''
10043 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10044 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10045 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10046 ;;
10047 *)
10048 wlarc='$wl'
10049 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10050 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10051 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10052 ;;
10053 esac
10054 fi
10055 hardcode_libdir_flag_spec='-R$libdir'
10056 hardcode_shlibpath_var=no
10057 case $host_os in
10058 solaris2.[0-5] | solaris2.[0-5].*) ;;
10059 *)
10060 # The compiler driver will combine and reorder linker options,
10061 # but understands '-z linker_flag'. GCC discards it without '$wl',
10062 # but is careful enough not to reorder.
10063 # Supported since Solaris 2.6 (maybe 2.5.1?)
10064 if test yes = "$GCC"; then
10065 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10066 else
10067 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10068 fi
10069 ;;
10070 esac
10071 link_all_deplibs=yes
10072 ;;
10073
10074 sunos4*)
10075 if test sequent = "$host_vendor"; then
10076 # Use $CC to link under sequent, because it throws in some extra .o
10077 # files that make .init and .fini sections work.
10078 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10079 else
10080 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10081 fi
10082 hardcode_libdir_flag_spec='-L$libdir'
10083 hardcode_direct=yes
10084 hardcode_minus_L=yes
10085 hardcode_shlibpath_var=no
10086 ;;
10087
10088 sysv4)
10089 case $host_vendor in
10090 sni)
10091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10092 hardcode_direct=yes # is this really true???
10093 ;;
10094 siemens)
10095 ## LD is ld it makes a PLAMLIB
10096 ## CC just makes a GrossModule.
10097 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10098 reload_cmds='$CC -r -o $output$reload_objs'
10099 hardcode_direct=no
10100 ;;
10101 motorola)
10102 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10103 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10104 ;;
10105 esac
10106 runpath_var='LD_RUN_PATH'
10107 hardcode_shlibpath_var=no
10108 ;;
10109
10110 sysv4.3*)
10111 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10112 hardcode_shlibpath_var=no
10113 export_dynamic_flag_spec='-Bexport'
10114 ;;
10115
10116 sysv4*MP*)
10117 if test -d /usr/nec; then
10118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10119 hardcode_shlibpath_var=no
10120 runpath_var=LD_RUN_PATH
10121 hardcode_runpath_var=yes
10122 ld_shlibs=yes
10123 fi
10124 ;;
10125
10126 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10127 no_undefined_flag='$wl-z,text'
10128 archive_cmds_need_lc=no
10129 hardcode_shlibpath_var=no
10130 runpath_var='LD_RUN_PATH'
10131
10132 if test yes = "$GCC"; then
10133 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10134 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10135 else
10136 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10137 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10138 fi
10139 ;;
10140
10141 sysv5* | sco3.2v5* | sco5v6*)
10142 # Note: We CANNOT use -z defs as we might desire, because we do not
10143 # link with -lc, and that would cause any symbols used from libc to
10144 # always be unresolved, which means just about no library would
10145 # ever link correctly. If we're not using GNU ld we use -z text
10146 # though, which does catch some bad symbols but isn't as heavy-handed
10147 # as -z defs.
10148 no_undefined_flag='$wl-z,text'
10149 allow_undefined_flag='$wl-z,nodefs'
10150 archive_cmds_need_lc=no
10151 hardcode_shlibpath_var=no
10152 hardcode_libdir_flag_spec='$wl-R,$libdir'
10153 hardcode_libdir_separator=':'
10154 link_all_deplibs=yes
10155 export_dynamic_flag_spec='$wl-Bexport'
10156 runpath_var='LD_RUN_PATH'
10157
10158 if test yes = "$GCC"; then
10159 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10160 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10161 else
10162 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10163 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10164 fi
10165 ;;
10166
10167 uts4*)
10168 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10169 hardcode_libdir_flag_spec='-L$libdir'
10170 hardcode_shlibpath_var=no
10171 ;;
10172
10173 *)
10174 ld_shlibs=no
10175 ;;
10176 esac
10177
10178 if test sni = "$host_vendor"; then
10179 case $host in
10180 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10181 export_dynamic_flag_spec='$wl-Blargedynsym'
10182 ;;
10183 esac
10184 fi
10185 fi
10186
10187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10188$as_echo "$ld_shlibs" >&6; }
10189test no = "$ld_shlibs" && can_build_shared=no
10190
10191with_gnu_ld=$with_gnu_ld
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207#
10208# Do we need to explicitly link libc?
10209#
10210case "x$archive_cmds_need_lc" in
10211x|xyes)
10212 # Assume -lc should be added
10213 archive_cmds_need_lc=yes
10214
10215 if test yes,yes = "$GCC,$enable_shared"; then
10216 case $archive_cmds in
10217 *'~'*)
10218 # FIXME: we may have to deal with multi-command sequences.
10219 ;;
10220 '$CC '*)
10221 # Test whether the compiler implicitly links with -lc since on some
10222 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10223 # to ld, don't add -lc before -lgcc.
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10225$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10226if ${lt_cv_archive_cmds_need_lc+:} false; then :
10227 $as_echo_n "(cached) " >&6
10228else
10229 $RM conftest*
10230 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10231
10232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10233 (eval $ac_compile) 2>&5
10234 ac_status=$?
10235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10236 test $ac_status = 0; } 2>conftest.err; then
10237 soname=conftest
10238 lib=conftest
10239 libobjs=conftest.$ac_objext
10240 deplibs=
10241 wl=$lt_prog_compiler_wl
10242 pic_flag=$lt_prog_compiler_pic
10243 compiler_flags=-v
10244 linker_flags=-v
10245 verstring=
10246 output_objdir=.
10247 libname=conftest
10248 lt_save_allow_undefined_flag=$allow_undefined_flag
10249 allow_undefined_flag=
10250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10251 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10252 ac_status=$?
10253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10254 test $ac_status = 0; }
10255 then
10256 lt_cv_archive_cmds_need_lc=no
10257 else
10258 lt_cv_archive_cmds_need_lc=yes
10259 fi
10260 allow_undefined_flag=$lt_save_allow_undefined_flag
10261 else
10262 cat conftest.err 1>&5
10263 fi
10264 $RM conftest*
10265
10266fi
10267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10268$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10269 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10270 ;;
10271 esac
10272 fi
10273 ;;
10274esac
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10428$as_echo_n "checking dynamic linker characteristics... " >&6; }
10429
10430if test yes = "$GCC"; then
10431 case $host_os in
10432 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10433 *) lt_awk_arg='/^libraries:/' ;;
10434 esac
10435 case $host_os in
10436 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10437 *) lt_sed_strip_eq='s|=/|/|g' ;;
10438 esac
10439 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10440 case $lt_search_path_spec in
10441 *\;*)
10442 # if the path contains ";" then we assume it to be the separator
10443 # otherwise default to the standard path separator (i.e. ":") - it is
10444 # assumed that no part of a normal pathname contains ";" but that should
10445 # okay in the real world where ";" in dirpaths is itself problematic.
10446 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10447 ;;
10448 *)
10449 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10450 ;;
10451 esac
10452 # Ok, now we have the path, separated by spaces, we can step through it
10453 # and add multilib dir if necessary...
10454 lt_tmp_lt_search_path_spec=
10455 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10456 # ...but if some path component already ends with the multilib dir we assume
10457 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10458 case "$lt_multi_os_dir; $lt_search_path_spec " in
10459 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10460 lt_multi_os_dir=
10461 ;;
10462 esac
10463 for lt_sys_path in $lt_search_path_spec; do
10464 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10465 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10466 elif test -n "$lt_multi_os_dir"; then
10467 test -d "$lt_sys_path" && \
10468 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10469 fi
10470 done
10471 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10472BEGIN {RS = " "; FS = "/|\n";} {
10473 lt_foo = "";
10474 lt_count = 0;
10475 for (lt_i = NF; lt_i > 0; lt_i--) {
10476 if ($lt_i != "" && $lt_i != ".") {
10477 if ($lt_i == "..") {
10478 lt_count++;
10479 } else {
10480 if (lt_count == 0) {
10481 lt_foo = "/" $lt_i lt_foo;
10482 } else {
10483 lt_count--;
10484 }
10485 }
10486 }
10487 }
10488 if (lt_foo != "") { lt_freq[lt_foo]++; }
10489 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10490}'`
10491 # AWK program above erroneously prepends '/' to C:/dos/paths
10492 # for these hosts.
10493 case $host_os in
10494 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10495 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10496 esac
10497 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10498else
10499 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10500fi
10501library_names_spec=
10502libname_spec='lib$name'
10503soname_spec=
10504shrext_cmds=.so
10505postinstall_cmds=
10506postuninstall_cmds=
10507finish_cmds=
10508finish_eval=
10509shlibpath_var=
10510shlibpath_overrides_runpath=unknown
10511version_type=none
10512dynamic_linker="$host_os ld.so"
10513sys_lib_dlsearch_path_spec="/lib /usr/lib"
10514need_lib_prefix=unknown
10515hardcode_into_libs=no
10516
10517# when you set need_version to no, make sure it does not cause -set_version
10518# flags to be left without arguments
10519need_version=unknown
10520
10521
10522
10523case $host_os in
10524aix3*)
10525 version_type=linux # correct to gnu/linux during the next big refactor
10526 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10527 shlibpath_var=LIBPATH
10528
10529 # AIX 3 has no versioning support, so we append a major version to the name.
10530 soname_spec='$libname$release$shared_ext$major'
10531 ;;
10532
10533aix[4-9]*)
10534 version_type=linux # correct to gnu/linux during the next big refactor
10535 need_lib_prefix=no
10536 need_version=no
10537 hardcode_into_libs=yes
10538 if test ia64 = "$host_cpu"; then
10539 # AIX 5 supports IA64
10540 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10541 shlibpath_var=LD_LIBRARY_PATH
10542 else
10543 # With GCC up to 2.95.x, collect2 would create an import file
10544 # for dependence libraries. The import file would start with
10545 # the line '#! .'. This would cause the generated library to
10546 # depend on '.', always an invalid library. This was fixed in
10547 # development snapshots of GCC prior to 3.0.
10548 case $host_os in
10549 aix4 | aix4.[01] | aix4.[01].*)
10550 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10551 echo ' yes '
10552 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10553 :
10554 else
10555 can_build_shared=no
10556 fi
10557 ;;
10558 esac
10559 # Using Import Files as archive members, it is possible to support
10560 # filename-based versioning of shared library archives on AIX. While
10561 # this would work for both with and without runtime linking, it will
10562 # prevent static linking of such archives. So we do filename-based
10563 # shared library versioning with .so extension only, which is used
10564 # when both runtime linking and shared linking is enabled.
10565 # Unfortunately, runtime linking may impact performance, so we do
10566 # not want this to be the default eventually. Also, we use the
10567 # versioned .so libs for executables only if there is the -brtl
10568 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10569 # To allow for filename-based versioning support, we need to create
10570 # libNAME.so.V as an archive file, containing:
10571 # *) an Import File, referring to the versioned filename of the
10572 # archive as well as the shared archive member, telling the
10573 # bitwidth (32 or 64) of that shared object, and providing the
10574 # list of exported symbols of that shared object, eventually
10575 # decorated with the 'weak' keyword
10576 # *) the shared object with the F_LOADONLY flag set, to really avoid
10577 # it being seen by the linker.
10578 # At run time we better use the real file rather than another symlink,
10579 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10580
10581 case $with_aix_soname,$aix_use_runtimelinking in
10582 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10583 # soname into executable. Probably we can add versioning support to
10584 # collect2, so additional links can be useful in future.
10585 aix,yes) # traditional libtool
10586 dynamic_linker='AIX unversionable lib.so'
10587 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10588 # instead of lib<name>.a to let people know that these are not
10589 # typical AIX shared libraries.
10590 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10591 ;;
10592 aix,no) # traditional AIX only
10593 dynamic_linker='AIX lib.a(lib.so.V)'
10594 # We preserve .a as extension for shared libraries through AIX4.2
10595 # and later when we are not doing run time linking.
10596 library_names_spec='$libname$release.a $libname.a'
10597 soname_spec='$libname$release$shared_ext$major'
10598 ;;
10599 svr4,*) # full svr4 only
10600 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10601 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10602 # We do not specify a path in Import Files, so LIBPATH fires.
10603 shlibpath_overrides_runpath=yes
10604 ;;
10605 *,yes) # both, prefer svr4
10606 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10607 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10608 # unpreferred sharedlib libNAME.a needs extra handling
10609 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"'
10610 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"'
10611 # We do not specify a path in Import Files, so LIBPATH fires.
10612 shlibpath_overrides_runpath=yes
10613 ;;
10614 *,no) # both, prefer aix
10615 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10616 library_names_spec='$libname$release.a $libname.a'
10617 soname_spec='$libname$release$shared_ext$major'
10618 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10619 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)'
10620 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"'
10621 ;;
10622 esac
10623 shlibpath_var=LIBPATH
10624 fi
10625 ;;
10626
10627amigaos*)
10628 case $host_cpu in
10629 powerpc)
10630 # Since July 2007 AmigaOS4 officially supports .so libraries.
10631 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10632 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10633 ;;
10634 m68k)
10635 library_names_spec='$libname.ixlibrary $libname.a'
10636 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10637 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'
10638 ;;
10639 esac
10640 ;;
10641
10642beos*)
10643 library_names_spec='$libname$shared_ext'
10644 dynamic_linker="$host_os ld.so"
10645 shlibpath_var=LIBRARY_PATH
10646 ;;
10647
10648bsdi[45]*)
10649 version_type=linux # correct to gnu/linux during the next big refactor
10650 need_version=no
10651 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10652 soname_spec='$libname$release$shared_ext$major'
10653 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10654 shlibpath_var=LD_LIBRARY_PATH
10655 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10656 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10657 # the default ld.so.conf also contains /usr/contrib/lib and
10658 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10659 # libtool to hard-code these into programs
10660 ;;
10661
10662cygwin* | mingw* | pw32* | cegcc*)
10663 version_type=windows
10664 shrext_cmds=.dll
10665 need_version=no
10666 need_lib_prefix=no
10667
10668 case $GCC,$cc_basename in
10669 yes,*)
10670 # gcc
10671 library_names_spec='$libname.dll.a'
10672 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10673 postinstall_cmds='base_file=`basename \$file`~
10674 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10675 dldir=$destdir/`dirname \$dlpath`~
10676 test -d \$dldir || mkdir -p \$dldir~
10677 $install_prog $dir/$dlname \$dldir/$dlname~
10678 chmod a+x \$dldir/$dlname~
10679 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10680 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10681 fi'
10682 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10683 dlpath=$dir/\$dldll~
10684 $RM \$dlpath'
10685 shlibpath_overrides_runpath=yes
10686
10687 case $host_os in
10688 cygwin*)
10689 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10690 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10691
10692 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10693 ;;
10694 mingw* | cegcc*)
10695 # MinGW DLLs use traditional 'lib' prefix
10696 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10697 ;;
10698 pw32*)
10699 # pw32 DLLs use 'pw' prefix rather than 'lib'
10700 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10701 ;;
10702 esac
10703 dynamic_linker='Win32 ld.exe'
10704 ;;
10705
10706 *,cl*)
10707 # Native MSVC
10708 libname_spec='$name'
10709 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10710 library_names_spec='$libname.dll.lib'
10711
10712 case $build_os in
10713 mingw*)
10714 sys_lib_search_path_spec=
10715 lt_save_ifs=$IFS
10716 IFS=';'
10717 for lt_path in $LIB
10718 do
10719 IFS=$lt_save_ifs
10720 # Let DOS variable expansion print the short 8.3 style file name.
10721 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10722 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10723 done
10724 IFS=$lt_save_ifs
10725 # Convert to MSYS style.
10726 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10727 ;;
10728 cygwin*)
10729 # Convert to unix form, then to dos form, then back to unix form
10730 # but this time dos style (no spaces!) so that the unix form looks
10731 # like /cygdrive/c/PROGRA~1:/cygdr...
10732 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10733 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10734 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10735 ;;
10736 *)
10737 sys_lib_search_path_spec=$LIB
10738 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10739 # It is most probably a Windows format PATH.
10740 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10741 else
10742 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10743 fi
10744 # FIXME: find the short name or the path components, as spaces are
10745 # common. (e.g. "Program Files" -> "PROGRA~1")
10746 ;;
10747 esac
10748
10749 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10750 postinstall_cmds='base_file=`basename \$file`~
10751 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10752 dldir=$destdir/`dirname \$dlpath`~
10753 test -d \$dldir || mkdir -p \$dldir~
10754 $install_prog $dir/$dlname \$dldir/$dlname'
10755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10756 dlpath=$dir/\$dldll~
10757 $RM \$dlpath'
10758 shlibpath_overrides_runpath=yes
10759 dynamic_linker='Win32 link.exe'
10760 ;;
10761
10762 *)
10763 # Assume MSVC wrapper
10764 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10765 dynamic_linker='Win32 ld.exe'
10766 ;;
10767 esac
10768 # FIXME: first we should search . and the directory the executable is in
10769 shlibpath_var=PATH
10770 ;;
10771
10772darwin* | rhapsody*)
10773 dynamic_linker="$host_os dyld"
10774 version_type=darwin
10775 need_lib_prefix=no
10776 need_version=no
10777 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10778 soname_spec='$libname$release$major$shared_ext'
10779 shlibpath_overrides_runpath=yes
10780 shlibpath_var=DYLD_LIBRARY_PATH
10781 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10782
10783 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10784 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10785 ;;
10786
10787dgux*)
10788 version_type=linux # correct to gnu/linux during the next big refactor
10789 need_lib_prefix=no
10790 need_version=no
10791 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10792 soname_spec='$libname$release$shared_ext$major'
10793 shlibpath_var=LD_LIBRARY_PATH
10794 ;;
10795
10796freebsd* | dragonfly*)
10797 # DragonFly does not have aout. When/if they implement a new
10798 # versioning mechanism, adjust this.
10799 if test -x /usr/bin/objformat; then
10800 objformat=`/usr/bin/objformat`
10801 else
10802 case $host_os in
10803 freebsd[23].*) objformat=aout ;;
10804 *) objformat=elf ;;
10805 esac
10806 fi
10807 version_type=freebsd-$objformat
10808 case $version_type in
10809 freebsd-elf*)
10810 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10811 soname_spec='$libname$release$shared_ext$major'
10812 need_version=no
10813 need_lib_prefix=no
10814 ;;
10815 freebsd-*)
10816 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10817 need_version=yes
10818 ;;
10819 esac
10820 shlibpath_var=LD_LIBRARY_PATH
10821 case $host_os in
10822 freebsd2.*)
10823 shlibpath_overrides_runpath=yes
10824 ;;
10825 freebsd3.[01]* | freebsdelf3.[01]*)
10826 shlibpath_overrides_runpath=yes
10827 hardcode_into_libs=yes
10828 ;;
10829 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10830 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10831 shlibpath_overrides_runpath=no
10832 hardcode_into_libs=yes
10833 ;;
10834 *) # from 4.6 on, and DragonFly
10835 shlibpath_overrides_runpath=yes
10836 hardcode_into_libs=yes
10837 ;;
10838 esac
10839 ;;
10840
10841haiku*)
10842 version_type=linux # correct to gnu/linux during the next big refactor
10843 need_lib_prefix=no
10844 need_version=no
10845 dynamic_linker="$host_os runtime_loader"
10846 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10847 soname_spec='$libname$release$shared_ext$major'
10848 shlibpath_var=LIBRARY_PATH
10849 shlibpath_overrides_runpath=no
10850 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10851 hardcode_into_libs=yes
10852 ;;
10853
10854hpux9* | hpux10* | hpux11*)
10855 # Give a soname corresponding to the major version so that dld.sl refuses to
10856 # link against other versions.
10857 version_type=sunos
10858 need_lib_prefix=no
10859 need_version=no
10860 case $host_cpu in
10861 ia64*)
10862 shrext_cmds='.so'
10863 hardcode_into_libs=yes
10864 dynamic_linker="$host_os dld.so"
10865 shlibpath_var=LD_LIBRARY_PATH
10866 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10867 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10868 soname_spec='$libname$release$shared_ext$major'
10869 if test 32 = "$HPUX_IA64_MODE"; then
10870 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10871 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10872 else
10873 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10874 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10875 fi
10876 ;;
10877 hppa*64*)
10878 shrext_cmds='.sl'
10879 hardcode_into_libs=yes
10880 dynamic_linker="$host_os dld.sl"
10881 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10882 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10883 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10884 soname_spec='$libname$release$shared_ext$major'
10885 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10886 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10887 ;;
10888 *)
10889 shrext_cmds='.sl'
10890 dynamic_linker="$host_os dld.sl"
10891 shlibpath_var=SHLIB_PATH
10892 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10893 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10894 soname_spec='$libname$release$shared_ext$major'
10895 ;;
10896 esac
10897 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10898 postinstall_cmds='chmod 555 $lib'
10899 # or fails outright, so override atomically:
10900 install_override_mode=555
10901 ;;
10902
10903interix[3-9]*)
10904 version_type=linux # correct to gnu/linux during the next big refactor
10905 need_lib_prefix=no
10906 need_version=no
10907 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10908 soname_spec='$libname$release$shared_ext$major'
10909 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10910 shlibpath_var=LD_LIBRARY_PATH
10911 shlibpath_overrides_runpath=no
10912 hardcode_into_libs=yes
10913 ;;
10914
10915irix5* | irix6* | nonstopux*)
10916 case $host_os in
10917 nonstopux*) version_type=nonstopux ;;
10918 *)
10919 if test yes = "$lt_cv_prog_gnu_ld"; then
10920 version_type=linux # correct to gnu/linux during the next big refactor
10921 else
10922 version_type=irix
10923 fi ;;
10924 esac
10925 need_lib_prefix=no
10926 need_version=no
10927 soname_spec='$libname$release$shared_ext$major'
10928 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10929 case $host_os in
10930 irix5* | nonstopux*)
10931 libsuff= shlibsuff=
10932 ;;
10933 *)
10934 case $LD in # libtool.m4 will add one of these switches to LD
10935 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10936 libsuff= shlibsuff= libmagic=32-bit;;
10937 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10938 libsuff=32 shlibsuff=N32 libmagic=N32;;
10939 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10940 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10941 *) libsuff= shlibsuff= libmagic=never-match;;
10942 esac
10943 ;;
10944 esac
10945 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10946 shlibpath_overrides_runpath=no
10947 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10948 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10949 hardcode_into_libs=yes
10950 ;;
10951
10952# No shared lib support for Linux oldld, aout, or coff.
10953linux*oldld* | linux*aout* | linux*coff*)
10954 dynamic_linker=no
10955 ;;
10956
10957linux*android*)
10958 version_type=none # Android doesn't support versioned libraries.
10959 need_lib_prefix=no
10960 need_version=no
10961 library_names_spec='$libname$release$shared_ext'
10962 soname_spec='$libname$release$shared_ext'
10963 finish_cmds=
10964 shlibpath_var=LD_LIBRARY_PATH
10965 shlibpath_overrides_runpath=yes
10966
10967 # This implies no fast_install, which is unacceptable.
10968 # Some rework will be needed to allow for fast_install
10969 # before this can be enabled.
10970 hardcode_into_libs=yes
10971
10972 dynamic_linker='Android linker'
10973 # Don't embed -rpath directories since the linker doesn't support them.
10974 hardcode_libdir_flag_spec='-L$libdir'
10975 ;;
10976
10977# This must be glibc/ELF.
10978linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10979 version_type=linux # correct to gnu/linux during the next big refactor
10980 need_lib_prefix=no
10981 need_version=no
10982 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10983 soname_spec='$libname$release$shared_ext$major'
10984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10985 shlibpath_var=LD_LIBRARY_PATH
10986 shlibpath_overrides_runpath=no
10987
10988 # Some binutils ld are patched to set DT_RUNPATH
10989 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10990 $as_echo_n "(cached) " >&6
10991else
10992 lt_cv_shlibpath_overrides_runpath=no
10993 save_LDFLAGS=$LDFLAGS
10994 save_libdir=$libdir
10995 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10996 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10998/* end confdefs.h. */
10999
11000int
11001main ()
11002{
11003
11004 ;
11005 return 0;
11006}
11007_ACEOF
11008if ac_fn_c_try_link "$LINENO"; then :
11009 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11010 lt_cv_shlibpath_overrides_runpath=yes
11011fi
11012fi
11013rm -f core conftest.err conftest.$ac_objext \
11014 conftest$ac_exeext conftest.$ac_ext
11015 LDFLAGS=$save_LDFLAGS
11016 libdir=$save_libdir
11017
11018fi
11019
11020 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11021
11022 # This implies no fast_install, which is unacceptable.
11023 # Some rework will be needed to allow for fast_install
11024 # before this can be enabled.
11025 hardcode_into_libs=yes
11026
11027 # Ideally, we could use ldconfig to report *all* directores which are
11028 # searched for libraries, however this is still not possible. Aside from not
11029 # being certain /sbin/ldconfig is available, command
11030 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11031 # even though it is searched at run-time. Try to do the best guess by
11032 # appending ld.so.conf contents (and includes) to the search path.
11033 if test -f /etc/ld.so.conf; then
11034 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' ' '`
11035 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11036 fi
11037
11038 # We used to test for /lib/ld.so.1 and disable shared libraries on
11039 # powerpc, because MkLinux only supported shared libraries with the
11040 # GNU dynamic linker. Since this was broken with cross compilers,
11041 # most powerpc-linux boxes support dynamic linking these days and
11042 # people can always --disable-shared, the test was removed, and we
11043 # assume the GNU/Linux dynamic linker is in use.
11044 dynamic_linker='GNU/Linux ld.so'
11045 ;;
11046
11047netbsdelf*-gnu)
11048 version_type=linux
11049 need_lib_prefix=no
11050 need_version=no
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11052 soname_spec='${libname}${release}${shared_ext}$major'
11053 shlibpath_var=LD_LIBRARY_PATH
11054 shlibpath_overrides_runpath=no
11055 hardcode_into_libs=yes
11056 dynamic_linker='NetBSD ld.elf_so'
11057 ;;
11058
11059netbsd*)
11060 version_type=sunos
11061 need_lib_prefix=no
11062 need_version=no
11063 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11064 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11065 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11066 dynamic_linker='NetBSD (a.out) ld.so'
11067 else
11068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11069 soname_spec='$libname$release$shared_ext$major'
11070 dynamic_linker='NetBSD ld.elf_so'
11071 fi
11072 shlibpath_var=LD_LIBRARY_PATH
11073 shlibpath_overrides_runpath=yes
11074 hardcode_into_libs=yes
11075 ;;
11076
11077newsos6)
11078 version_type=linux # correct to gnu/linux during the next big refactor
11079 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11080 shlibpath_var=LD_LIBRARY_PATH
11081 shlibpath_overrides_runpath=yes
11082 ;;
11083
11084*nto* | *qnx*)
11085 version_type=qnx
11086 need_lib_prefix=no
11087 need_version=no
11088 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11089 soname_spec='$libname$release$shared_ext$major'
11090 shlibpath_var=LD_LIBRARY_PATH
11091 shlibpath_overrides_runpath=no
11092 hardcode_into_libs=yes
11093 dynamic_linker='ldqnx.so'
11094 ;;
11095
11096openbsd* | bitrig*)
11097 version_type=sunos
11098 sys_lib_dlsearch_path_spec=/usr/lib
11099 need_lib_prefix=no
11100 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11101 need_version=no
11102 else
11103 need_version=yes
11104 fi
11105 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11107 shlibpath_var=LD_LIBRARY_PATH
11108 shlibpath_overrides_runpath=yes
11109 ;;
11110
11111os2*)
11112 libname_spec='$name'
11113 version_type=windows
11114 shrext_cmds=.dll
11115 need_version=no
11116 need_lib_prefix=no
11117 # OS/2 can only load a DLL with a base name of 8 characters or less.
11118 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11119 v=$($ECHO $release$versuffix | tr -d .-);
11120 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11121 $ECHO $n$v`$shared_ext'
11122 library_names_spec='${libname}_dll.$libext'
11123 dynamic_linker='OS/2 ld.exe'
11124 shlibpath_var=BEGINLIBPATH
11125 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11126 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11127 postinstall_cmds='base_file=`basename \$file`~
11128 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11129 dldir=$destdir/`dirname \$dlpath`~
11130 test -d \$dldir || mkdir -p \$dldir~
11131 $install_prog $dir/$dlname \$dldir/$dlname~
11132 chmod a+x \$dldir/$dlname~
11133 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11134 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11135 fi'
11136 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11137 dlpath=$dir/\$dldll~
11138 $RM \$dlpath'
11139 ;;
11140
11141osf3* | osf4* | osf5*)
11142 version_type=osf
11143 need_lib_prefix=no
11144 need_version=no
11145 soname_spec='$libname$release$shared_ext$major'
11146 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11147 shlibpath_var=LD_LIBRARY_PATH
11148 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11149 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11150 ;;
11151
11152rdos*)
11153 dynamic_linker=no
11154 ;;
11155
11156solaris*)
11157 version_type=linux # correct to gnu/linux during the next big refactor
11158 need_lib_prefix=no
11159 need_version=no
11160 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11161 soname_spec='$libname$release$shared_ext$major'
11162 shlibpath_var=LD_LIBRARY_PATH
11163 shlibpath_overrides_runpath=yes
11164 hardcode_into_libs=yes
11165 # ldd complains unless libraries are executable
11166 postinstall_cmds='chmod +x $lib'
11167 ;;
11168
11169sunos4*)
11170 version_type=sunos
11171 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11172 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11173 shlibpath_var=LD_LIBRARY_PATH
11174 shlibpath_overrides_runpath=yes
11175 if test yes = "$with_gnu_ld"; then
11176 need_lib_prefix=no
11177 fi
11178 need_version=yes
11179 ;;
11180
11181sysv4 | sysv4.3*)
11182 version_type=linux # correct to gnu/linux during the next big refactor
11183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11184 soname_spec='$libname$release$shared_ext$major'
11185 shlibpath_var=LD_LIBRARY_PATH
11186 case $host_vendor in
11187 sni)
11188 shlibpath_overrides_runpath=no
11189 need_lib_prefix=no
11190 runpath_var=LD_RUN_PATH
11191 ;;
11192 siemens)
11193 need_lib_prefix=no
11194 ;;
11195 motorola)
11196 need_lib_prefix=no
11197 need_version=no
11198 shlibpath_overrides_runpath=no
11199 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11200 ;;
11201 esac
11202 ;;
11203
11204sysv4*MP*)
11205 if test -d /usr/nec; then
11206 version_type=linux # correct to gnu/linux during the next big refactor
11207 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11208 soname_spec='$libname$shared_ext.$major'
11209 shlibpath_var=LD_LIBRARY_PATH
11210 fi
11211 ;;
11212
11213sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11214 version_type=sco
11215 need_lib_prefix=no
11216 need_version=no
11217 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11218 soname_spec='$libname$release$shared_ext$major'
11219 shlibpath_var=LD_LIBRARY_PATH
11220 shlibpath_overrides_runpath=yes
11221 hardcode_into_libs=yes
11222 if test yes = "$with_gnu_ld"; then
11223 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11224 else
11225 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11226 case $host_os in
11227 sco3.2v5*)
11228 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11229 ;;
11230 esac
11231 fi
11232 sys_lib_dlsearch_path_spec='/usr/lib'
11233 ;;
11234
11235tpf*)
11236 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11237 version_type=linux # correct to gnu/linux during the next big refactor
11238 need_lib_prefix=no
11239 need_version=no
11240 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11241 shlibpath_var=LD_LIBRARY_PATH
11242 shlibpath_overrides_runpath=no
11243 hardcode_into_libs=yes
11244 ;;
11245
11246uts4*)
11247 version_type=linux # correct to gnu/linux during the next big refactor
11248 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11249 soname_spec='$libname$release$shared_ext$major'
11250 shlibpath_var=LD_LIBRARY_PATH
11251 ;;
11252
11253*)
11254 dynamic_linker=no
11255 ;;
11256esac
11257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11258$as_echo "$dynamic_linker" >&6; }
11259test no = "$dynamic_linker" && can_build_shared=no
11260
11261variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11262if test yes = "$GCC"; then
11263 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11264fi
11265
11266if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11267 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11268fi
11269
11270if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11271 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11272fi
11273
11274# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11275configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11276
11277# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11278func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11279
11280# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11281configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11380$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11381hardcode_action=
11382if test -n "$hardcode_libdir_flag_spec" ||
11383 test -n "$runpath_var" ||
11384 test yes = "$hardcode_automatic"; then
11385
11386 # We can hardcode non-existent directories.
11387 if test no != "$hardcode_direct" &&
11388 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11389 # have to relink, otherwise we might link with an installed library
11390 # when we should be linking with a yet-to-be-installed one
11391 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11392 test no != "$hardcode_minus_L"; then
11393 # Linking always hardcodes the temporary library directory.
11394 hardcode_action=relink
11395 else
11396 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11397 hardcode_action=immediate
11398 fi
11399else
11400 # We cannot hardcode anything, or else we can only hardcode existing
11401 # directories.
11402 hardcode_action=unsupported
11403fi
11404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11405$as_echo "$hardcode_action" >&6; }
11406
11407if test relink = "$hardcode_action" ||
11408 test yes = "$inherit_rpath"; then
11409 # Fast installation is not supported
11410 enable_fast_install=no
11411elif test yes = "$shlibpath_overrides_runpath" ||
11412 test no = "$enable_shared"; then
11413 # Fast installation is not necessary
11414 enable_fast_install=needless
11415fi
11416
11417
11418
11419
11420
11421
11422 if test yes != "$enable_dlopen"; then
11423 enable_dlopen=unknown
11424 enable_dlopen_self=unknown
11425 enable_dlopen_self_static=unknown
11426else
11427 lt_cv_dlopen=no
11428 lt_cv_dlopen_libs=
11429
11430 case $host_os in
11431 beos*)
11432 lt_cv_dlopen=load_add_on
11433 lt_cv_dlopen_libs=
11434 lt_cv_dlopen_self=yes
11435 ;;
11436
11437 mingw* | pw32* | cegcc*)
11438 lt_cv_dlopen=LoadLibrary
11439 lt_cv_dlopen_libs=
11440 ;;
11441
11442 cygwin*)
11443 lt_cv_dlopen=dlopen
11444 lt_cv_dlopen_libs=
11445 ;;
11446
11447 darwin*)
11448 # if libdl is installed we need to link against it
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11450$as_echo_n "checking for dlopen in -ldl... " >&6; }
11451if ${ac_cv_lib_dl_dlopen+:} false; then :
11452 $as_echo_n "(cached) " >&6
11453else
11454 ac_check_lib_save_LIBS=$LIBS
11455LIBS="-ldl $LIBS"
11456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11457/* end confdefs.h. */
11458
11459/* Override any GCC internal prototype to avoid an error.
11460 Use char because int might match the return type of a GCC
11461 builtin and then its argument prototype would still apply. */
11462#ifdef __cplusplus
11463extern "C"
11464#endif
11465char dlopen ();
11466int
11467main ()
11468{
11469return dlopen ();
11470 ;
11471 return 0;
11472}
11473_ACEOF
11474if ac_fn_c_try_link "$LINENO"; then :
11475 ac_cv_lib_dl_dlopen=yes
11476else
11477 ac_cv_lib_dl_dlopen=no
11478fi
11479rm -f core conftest.err conftest.$ac_objext \
11480 conftest$ac_exeext conftest.$ac_ext
11481LIBS=$ac_check_lib_save_LIBS
11482fi
11483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11484$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11485if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11486 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11487else
11488
11489 lt_cv_dlopen=dyld
11490 lt_cv_dlopen_libs=
11491 lt_cv_dlopen_self=yes
11492
11493fi
11494
11495 ;;
11496
11497 tpf*)
11498 # Don't try to run any link tests for TPF. We know it's impossible
11499 # because TPF is a cross-compiler, and we know how we open DSOs.
11500 lt_cv_dlopen=dlopen
11501 lt_cv_dlopen_libs=
11502 lt_cv_dlopen_self=no
11503 ;;
11504
11505 *)
11506 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11507if test "x$ac_cv_func_shl_load" = xyes; then :
11508 lt_cv_dlopen=shl_load
11509else
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11511$as_echo_n "checking for shl_load in -ldld... " >&6; }
11512if ${ac_cv_lib_dld_shl_load+:} false; then :
11513 $as_echo_n "(cached) " >&6
11514else
11515 ac_check_lib_save_LIBS=$LIBS
11516LIBS="-ldld $LIBS"
11517cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11518/* end confdefs.h. */
11519
11520/* Override any GCC internal prototype to avoid an error.
11521 Use char because int might match the return type of a GCC
11522 builtin and then its argument prototype would still apply. */
11523#ifdef __cplusplus
11524extern "C"
11525#endif
11526char shl_load ();
11527int
11528main ()
11529{
11530return shl_load ();
11531 ;
11532 return 0;
11533}
11534_ACEOF
11535if ac_fn_c_try_link "$LINENO"; then :
11536 ac_cv_lib_dld_shl_load=yes
11537else
11538 ac_cv_lib_dld_shl_load=no
11539fi
11540rm -f core conftest.err conftest.$ac_objext \
11541 conftest$ac_exeext conftest.$ac_ext
11542LIBS=$ac_check_lib_save_LIBS
11543fi
11544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11545$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11546if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11547 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11548else
11549 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11550if test "x$ac_cv_func_dlopen" = xyes; then :
11551 lt_cv_dlopen=dlopen
11552else
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11554$as_echo_n "checking for dlopen in -ldl... " >&6; }
11555if ${ac_cv_lib_dl_dlopen+:} false; then :
11556 $as_echo_n "(cached) " >&6
11557else
11558 ac_check_lib_save_LIBS=$LIBS
11559LIBS="-ldl $LIBS"
11560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11561/* end confdefs.h. */
11562
11563/* Override any GCC internal prototype to avoid an error.
11564 Use char because int might match the return type of a GCC
11565 builtin and then its argument prototype would still apply. */
11566#ifdef __cplusplus
11567extern "C"
11568#endif
11569char dlopen ();
11570int
11571main ()
11572{
11573return dlopen ();
11574 ;
11575 return 0;
11576}
11577_ACEOF
11578if ac_fn_c_try_link "$LINENO"; then :
11579 ac_cv_lib_dl_dlopen=yes
11580else
11581 ac_cv_lib_dl_dlopen=no
11582fi
11583rm -f core conftest.err conftest.$ac_objext \
11584 conftest$ac_exeext conftest.$ac_ext
11585LIBS=$ac_check_lib_save_LIBS
11586fi
11587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11588$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11589if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11590 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11591else
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11593$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11594if ${ac_cv_lib_svld_dlopen+:} false; then :
11595 $as_echo_n "(cached) " >&6
11596else
11597 ac_check_lib_save_LIBS=$LIBS
11598LIBS="-lsvld $LIBS"
11599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11600/* end confdefs.h. */
11601
11602/* Override any GCC internal prototype to avoid an error.
11603 Use char because int might match the return type of a GCC
11604 builtin and then its argument prototype would still apply. */
11605#ifdef __cplusplus
11606extern "C"
11607#endif
11608char dlopen ();
11609int
11610main ()
11611{
11612return dlopen ();
11613 ;
11614 return 0;
11615}
11616_ACEOF
11617if ac_fn_c_try_link "$LINENO"; then :
11618 ac_cv_lib_svld_dlopen=yes
11619else
11620 ac_cv_lib_svld_dlopen=no
11621fi
11622rm -f core conftest.err conftest.$ac_objext \
11623 conftest$ac_exeext conftest.$ac_ext
11624LIBS=$ac_check_lib_save_LIBS
11625fi
11626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11627$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11628if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11629 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11630else
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11632$as_echo_n "checking for dld_link in -ldld... " >&6; }
11633if ${ac_cv_lib_dld_dld_link+:} false; then :
11634 $as_echo_n "(cached) " >&6
11635else
11636 ac_check_lib_save_LIBS=$LIBS
11637LIBS="-ldld $LIBS"
11638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11639/* end confdefs.h. */
11640
11641/* Override any GCC internal prototype to avoid an error.
11642 Use char because int might match the return type of a GCC
11643 builtin and then its argument prototype would still apply. */
11644#ifdef __cplusplus
11645extern "C"
11646#endif
11647char dld_link ();
11648int
11649main ()
11650{
11651return dld_link ();
11652 ;
11653 return 0;
11654}
11655_ACEOF
11656if ac_fn_c_try_link "$LINENO"; then :
11657 ac_cv_lib_dld_dld_link=yes
11658else
11659 ac_cv_lib_dld_dld_link=no
11660fi
11661rm -f core conftest.err conftest.$ac_objext \
11662 conftest$ac_exeext conftest.$ac_ext
11663LIBS=$ac_check_lib_save_LIBS
11664fi
11665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11666$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11667if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11668 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11669fi
11670
11671
11672fi
11673
11674
11675fi
11676
11677
11678fi
11679
11680
11681fi
11682
11683
11684fi
11685
11686 ;;
11687 esac
11688
11689 if test no = "$lt_cv_dlopen"; then
11690 enable_dlopen=no
11691 else
11692 enable_dlopen=yes
11693 fi
11694
11695 case $lt_cv_dlopen in
11696 dlopen)
11697 save_CPPFLAGS=$CPPFLAGS
11698 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11699
11700 save_LDFLAGS=$LDFLAGS
11701 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11702
11703 save_LIBS=$LIBS
11704 LIBS="$lt_cv_dlopen_libs $LIBS"
11705
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11707$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11708if ${lt_cv_dlopen_self+:} false; then :
11709 $as_echo_n "(cached) " >&6
11710else
11711 if test yes = "$cross_compiling"; then :
11712 lt_cv_dlopen_self=cross
11713else
11714 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11715 lt_status=$lt_dlunknown
11716 cat > conftest.$ac_ext <<_LT_EOF
11717#line $LINENO "configure"
11718#include "confdefs.h"
11719
11720#if HAVE_DLFCN_H
11721#include <dlfcn.h>
11722#endif
11723
11724#include <stdio.h>
11725
11726#ifdef RTLD_GLOBAL
11727# define LT_DLGLOBAL RTLD_GLOBAL
11728#else
11729# ifdef DL_GLOBAL
11730# define LT_DLGLOBAL DL_GLOBAL
11731# else
11732# define LT_DLGLOBAL 0
11733# endif
11734#endif
11735
11736/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11737 find out it does not work in some platform. */
11738#ifndef LT_DLLAZY_OR_NOW
11739# ifdef RTLD_LAZY
11740# define LT_DLLAZY_OR_NOW RTLD_LAZY
11741# else
11742# ifdef DL_LAZY
11743# define LT_DLLAZY_OR_NOW DL_LAZY
11744# else
11745# ifdef RTLD_NOW
11746# define LT_DLLAZY_OR_NOW RTLD_NOW
11747# else
11748# ifdef DL_NOW
11749# define LT_DLLAZY_OR_NOW DL_NOW
11750# else
11751# define LT_DLLAZY_OR_NOW 0
11752# endif
11753# endif
11754# endif
11755# endif
11756#endif
11757
11758/* When -fvisibility=hidden is used, assume the code has been annotated
11759 correspondingly for the symbols needed. */
11760#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11761int fnord () __attribute__((visibility("default")));
11762#endif
11763
11764int fnord () { return 42; }
11765int main ()
11766{
11767 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11768 int status = $lt_dlunknown;
11769
11770 if (self)
11771 {
11772 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11773 else
11774 {
11775 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11776 else puts (dlerror ());
11777 }
11778 /* dlclose (self); */
11779 }
11780 else
11781 puts (dlerror ());
11782
11783 return status;
11784}
11785_LT_EOF
11786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11787 (eval $ac_link) 2>&5
11788 ac_status=$?
11789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11790 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11791 (./conftest; exit; ) >&5 2>/dev/null
11792 lt_status=$?
11793 case x$lt_status in
11794 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11795 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11796 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11797 esac
11798 else :
11799 # compilation failed
11800 lt_cv_dlopen_self=no
11801 fi
11802fi
11803rm -fr conftest*
11804
11805
11806fi
11807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11808$as_echo "$lt_cv_dlopen_self" >&6; }
11809
11810 if test yes = "$lt_cv_dlopen_self"; then
11811 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11813$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11814if ${lt_cv_dlopen_self_static+:} false; then :
11815 $as_echo_n "(cached) " >&6
11816else
11817 if test yes = "$cross_compiling"; then :
11818 lt_cv_dlopen_self_static=cross
11819else
11820 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11821 lt_status=$lt_dlunknown
11822 cat > conftest.$ac_ext <<_LT_EOF
11823#line $LINENO "configure"
11824#include "confdefs.h"
11825
11826#if HAVE_DLFCN_H
11827#include <dlfcn.h>
11828#endif
11829
11830#include <stdio.h>
11831
11832#ifdef RTLD_GLOBAL
11833# define LT_DLGLOBAL RTLD_GLOBAL
11834#else
11835# ifdef DL_GLOBAL
11836# define LT_DLGLOBAL DL_GLOBAL
11837# else
11838# define LT_DLGLOBAL 0
11839# endif
11840#endif
11841
11842/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11843 find out it does not work in some platform. */
11844#ifndef LT_DLLAZY_OR_NOW
11845# ifdef RTLD_LAZY
11846# define LT_DLLAZY_OR_NOW RTLD_LAZY
11847# else
11848# ifdef DL_LAZY
11849# define LT_DLLAZY_OR_NOW DL_LAZY
11850# else
11851# ifdef RTLD_NOW
11852# define LT_DLLAZY_OR_NOW RTLD_NOW
11853# else
11854# ifdef DL_NOW
11855# define LT_DLLAZY_OR_NOW DL_NOW
11856# else
11857# define LT_DLLAZY_OR_NOW 0
11858# endif
11859# endif
11860# endif
11861# endif
11862#endif
11863
11864/* When -fvisibility=hidden is used, assume the code has been annotated
11865 correspondingly for the symbols needed. */
11866#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11867int fnord () __attribute__((visibility("default")));
11868#endif
11869
11870int fnord () { return 42; }
11871int main ()
11872{
11873 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11874 int status = $lt_dlunknown;
11875
11876 if (self)
11877 {
11878 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11879 else
11880 {
11881 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11882 else puts (dlerror ());
11883 }
11884 /* dlclose (self); */
11885 }
11886 else
11887 puts (dlerror ());
11888
11889 return status;
11890}
11891_LT_EOF
11892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11893 (eval $ac_link) 2>&5
11894 ac_status=$?
11895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11896 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11897 (./conftest; exit; ) >&5 2>/dev/null
11898 lt_status=$?
11899 case x$lt_status in
11900 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11901 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11902 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11903 esac
11904 else :
11905 # compilation failed
11906 lt_cv_dlopen_self_static=no
11907 fi
11908fi
11909rm -fr conftest*
11910
11911
11912fi
11913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11914$as_echo "$lt_cv_dlopen_self_static" >&6; }
11915 fi
11916
11917 CPPFLAGS=$save_CPPFLAGS
11918 LDFLAGS=$save_LDFLAGS
11919 LIBS=$save_LIBS
11920 ;;
11921 esac
11922
11923 case $lt_cv_dlopen_self in
11924 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11925 *) enable_dlopen_self=unknown ;;
11926 esac
11927
11928 case $lt_cv_dlopen_self_static in
11929 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11930 *) enable_dlopen_self_static=unknown ;;
11931 esac
11932fi
11933
11934
11935
11936
11937
11938
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948
11949
11950striplib=
11951old_striplib=
11952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11953$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11954if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11955 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11956 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11958$as_echo "yes" >&6; }
11959else
11960# FIXME - insert some real tests, host_os isn't really good enough
11961 case $host_os in
11962 darwin*)
11963 if test -n "$STRIP"; then
11964 striplib="$STRIP -x"
11965 old_striplib="$STRIP -S"
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11967$as_echo "yes" >&6; }
11968 else
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11970$as_echo "no" >&6; }
11971 fi
11972 ;;
11973 *)
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11975$as_echo "no" >&6; }
11976 ;;
11977 esac
11978fi
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991 # Report what library types will actually be built
11992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11993$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11995$as_echo "$can_build_shared" >&6; }
11996
11997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11998$as_echo_n "checking whether to build shared libraries... " >&6; }
11999 test no = "$can_build_shared" && enable_shared=no
12000
12001 # On AIX, shared libraries and static libraries use the same namespace, and
12002 # are all built from PIC.
12003 case $host_os in
12004 aix3*)
12005 test yes = "$enable_shared" && enable_static=no
12006 if test -n "$RANLIB"; then
12007 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12008 postinstall_cmds='$RANLIB $lib'
12009 fi
12010 ;;
12011
12012 aix[4-9]*)
12013 if test ia64 != "$host_cpu"; then
12014 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12015 yes,aix,yes) ;; # shared object as lib.so file only
12016 yes,svr4,*) ;; # shared object as lib.so archive member only
12017 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12018 esac
12019 fi
12020 ;;
12021 esac
12022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12023$as_echo "$enable_shared" >&6; }
12024
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12026$as_echo_n "checking whether to build static libraries... " >&6; }
12027 # Make sure either enable_shared or enable_static is yes.
12028 test yes = "$enable_shared" || enable_static=yes
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12030$as_echo "$enable_static" >&6; }
12031
12032
12033
12034
12035fi
12036ac_ext=c
12037ac_cpp='$CPP $CPPFLAGS'
12038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12040ac_compiler_gnu=$ac_cv_c_compiler_gnu
12041
12042CC=$lt_save_CC
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058 ac_config_commands="$ac_config_commands libtool"
12059
12060
12061
12062
12063# Only expand once:
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12076 if test -n "$ac_tool_prefix"; then
12077 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12078set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12080$as_echo_n "checking for $ac_word... " >&6; }
12081if ${ac_cv_path_PKG_CONFIG+:} false; then :
12082 $as_echo_n "(cached) " >&6
12083else
12084 case $PKG_CONFIG in
12085 [\\/]* | ?:[\\/]*)
12086 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12087 ;;
12088 *)
12089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12090for as_dir in $PATH
12091do
12092 IFS=$as_save_IFS
12093 test -z "$as_dir" && as_dir=.
12094 for ac_exec_ext in '' $ac_executable_extensions; do
12095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12096 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12098 break 2
12099 fi
12100done
12101 done
12102IFS=$as_save_IFS
12103
12104 ;;
12105esac
12106fi
12107PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12108if test -n "$PKG_CONFIG"; then
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12110$as_echo "$PKG_CONFIG" >&6; }
12111else
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12113$as_echo "no" >&6; }
12114fi
12115
12116
12117fi
12118if test -z "$ac_cv_path_PKG_CONFIG"; then
12119 ac_pt_PKG_CONFIG=$PKG_CONFIG
12120 # Extract the first word of "pkg-config", so it can be a program name with args.
12121set dummy pkg-config; ac_word=$2
12122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12123$as_echo_n "checking for $ac_word... " >&6; }
12124if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12125 $as_echo_n "(cached) " >&6
12126else
12127 case $ac_pt_PKG_CONFIG in
12128 [\\/]* | ?:[\\/]*)
12129 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12130 ;;
12131 *)
12132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12133for as_dir in $PATH
12134do
12135 IFS=$as_save_IFS
12136 test -z "$as_dir" && as_dir=.
12137 for ac_exec_ext in '' $ac_executable_extensions; do
12138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12139 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12141 break 2
12142 fi
12143done
12144 done
12145IFS=$as_save_IFS
12146
12147 ;;
12148esac
12149fi
12150ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12151if test -n "$ac_pt_PKG_CONFIG"; then
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12153$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12154else
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12156$as_echo "no" >&6; }
12157fi
12158
12159 if test "x$ac_pt_PKG_CONFIG" = x; then
12160 PKG_CONFIG=""
12161 else
12162 case $cross_compiling:$ac_tool_warned in
12163yes:)
12164{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12165$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12166ac_tool_warned=yes ;;
12167esac
12168 PKG_CONFIG=$ac_pt_PKG_CONFIG
12169 fi
12170else
12171 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12172fi
12173
12174fi
12175if test -n "$PKG_CONFIG"; then
12176 _pkg_min_version=0.9.0
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12178$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12179 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12181$as_echo "yes" >&6; }
12182 else
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12184$as_echo "no" >&6; }
12185 PKG_CONFIG=""
12186 fi
12187fi
12188
12189pkg_failed=no
12190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JSONC" >&5
12191$as_echo_n "checking for JSONC... " >&6; }
12192
12193if test -n "$JSONC_CFLAGS"; then
12194 pkg_cv_JSONC_CFLAGS="$JSONC_CFLAGS"
12195 elif test -n "$PKG_CONFIG"; then
12196 if test -n "$PKG_CONFIG" && \
12197 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
12198 ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
12199 ac_status=$?
12200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12201 test $ac_status = 0; }; then
12202 pkg_cv_JSONC_CFLAGS=`$PKG_CONFIG --cflags "json-c" 2>/dev/null`
12203 test "x$?" != "x0" && pkg_failed=yes
12204else
12205 pkg_failed=yes
12206fi
12207 else
12208 pkg_failed=untried
12209fi
12210if test -n "$JSONC_LIBS"; then
12211 pkg_cv_JSONC_LIBS="$JSONC_LIBS"
12212 elif test -n "$PKG_CONFIG"; then
12213 if test -n "$PKG_CONFIG" && \
12214 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"json-c\""; } >&5
12215 ($PKG_CONFIG --exists --print-errors "json-c") 2>&5
12216 ac_status=$?
12217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12218 test $ac_status = 0; }; then
12219 pkg_cv_JSONC_LIBS=`$PKG_CONFIG --libs "json-c" 2>/dev/null`
12220 test "x$?" != "x0" && pkg_failed=yes
12221else
12222 pkg_failed=yes
12223fi
12224 else
12225 pkg_failed=untried
12226fi
12227
12228
12229
12230if test $pkg_failed = yes; then
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12232$as_echo "no" >&6; }
12233
12234if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12235 _pkg_short_errors_supported=yes
12236else
12237 _pkg_short_errors_supported=no
12238fi
12239 if test $_pkg_short_errors_supported = yes; then
12240 JSONC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "json-c" 2>&1`
12241 else
12242 JSONC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "json-c" 2>&1`
12243 fi
12244 # Put the nasty error message in config.log where it belongs
12245 echo "$JSONC_PKG_ERRORS" >&5
12246
12247 as_fn_error $? "Package requirements (json-c) were not met:
12248
12249$JSONC_PKG_ERRORS
12250
12251Consider adjusting the PKG_CONFIG_PATH environment variable if you
12252installed software in a non-standard prefix.
12253
12254Alternatively, you may set the environment variables JSONC_CFLAGS
12255and JSONC_LIBS to avoid the need to call pkg-config.
12256See the pkg-config man page for more details." "$LINENO" 5
12257elif test $pkg_failed = untried; then
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12259$as_echo "no" >&6; }
12260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12262as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12263is in your PATH or set the PKG_CONFIG environment variable to the full
12264path to pkg-config.
12265
12266Alternatively, you may set the environment variables JSONC_CFLAGS
12267and JSONC_LIBS to avoid the need to call pkg-config.
12268See the pkg-config man page for more details.
12269
12270To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12271See \`config.log' for more details" "$LINENO" 5; }
12272else
12273 JSONC_CFLAGS=$pkg_cv_JSONC_CFLAGS
12274 JSONC_LIBS=$pkg_cv_JSONC_LIBS
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12276$as_echo "yes" >&6; }
12277
12278fi
12279
12280pkg_failed=no
12281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBDRM" >&5
12282$as_echo_n "checking for LIBDRM... " >&6; }
12283
12284if test -n "$LIBDRM_CFLAGS"; then
12285 pkg_cv_LIBDRM_CFLAGS="$LIBDRM_CFLAGS"
12286 elif test -n "$PKG_CONFIG"; then
12287 if test -n "$PKG_CONFIG" && \
12288 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm\""; } >&5
12289 ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5
12290 ac_status=$?
12291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12292 test $ac_status = 0; }; then
12293 pkg_cv_LIBDRM_CFLAGS=`$PKG_CONFIG --cflags "libdrm" 2>/dev/null`
12294 test "x$?" != "x0" && pkg_failed=yes
12295else
12296 pkg_failed=yes
12297fi
12298 else
12299 pkg_failed=untried
12300fi
12301if test -n "$LIBDRM_LIBS"; then
12302 pkg_cv_LIBDRM_LIBS="$LIBDRM_LIBS"
12303 elif test -n "$PKG_CONFIG"; then
12304 if test -n "$PKG_CONFIG" && \
12305 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdrm\""; } >&5
12306 ($PKG_CONFIG --exists --print-errors "libdrm") 2>&5
12307 ac_status=$?
12308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12309 test $ac_status = 0; }; then
12310 pkg_cv_LIBDRM_LIBS=`$PKG_CONFIG --libs "libdrm" 2>/dev/null`
12311 test "x$?" != "x0" && pkg_failed=yes
12312else
12313 pkg_failed=yes
12314fi
12315 else
12316 pkg_failed=untried
12317fi
12318
12319
12320
12321if test $pkg_failed = yes; then
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12323$as_echo "no" >&6; }
12324
12325if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12326 _pkg_short_errors_supported=yes
12327else
12328 _pkg_short_errors_supported=no
12329fi
12330 if test $_pkg_short_errors_supported = yes; then
12331 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdrm" 2>&1`
12332 else
12333 LIBDRM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdrm" 2>&1`
12334 fi
12335 # Put the nasty error message in config.log where it belongs
12336 echo "$LIBDRM_PKG_ERRORS" >&5
12337
12338 as_fn_error $? "Package requirements (libdrm) were not met:
12339
12340$LIBDRM_PKG_ERRORS
12341
12342Consider adjusting the PKG_CONFIG_PATH environment variable if you
12343installed software in a non-standard prefix.
12344
12345Alternatively, you may set the environment variables LIBDRM_CFLAGS
12346and LIBDRM_LIBS to avoid the need to call pkg-config.
12347See the pkg-config man page for more details." "$LINENO" 5
12348elif test $pkg_failed = untried; then
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12350$as_echo "no" >&6; }
12351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12352$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12353as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12354is in your PATH or set the PKG_CONFIG environment variable to the full
12355path to pkg-config.
12356
12357Alternatively, you may set the environment variables LIBDRM_CFLAGS
12358and LIBDRM_LIBS to avoid the need to call pkg-config.
12359See the pkg-config man page for more details.
12360
12361To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12362See \`config.log' for more details" "$LINENO" 5; }
12363else
12364 LIBDRM_CFLAGS=$pkg_cv_LIBDRM_CFLAGS
12365 LIBDRM_LIBS=$pkg_cv_LIBDRM_LIBS
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12367$as_echo "yes" >&6; }
12368
12369fi
12370cat >confcache <<\_ACEOF
12371# This file is a shell script that caches the results of configure
12372# tests run on this system so they can be shared between configure
12373# scripts and configure runs, see configure's option --config-cache.
12374# It is not useful on other systems. If it contains results you don't
12375# want to keep, you may remove or edit it.
12376#
12377# config.status only pays attention to the cache file if you give it
12378# the --recheck option to rerun configure.
12379#
12380# `ac_cv_env_foo' variables (set or unset) will be overridden when
12381# loading this file, other *unset* `ac_cv_foo' will be assigned the
12382# following values.
12383
12384_ACEOF
12385
12386# The following way of writing the cache mishandles newlines in values,
12387# but we know of no workaround that is simple, portable, and efficient.
12388# So, we kill variables containing newlines.
12389# Ultrix sh set writes to stderr and can't be redirected directly,
12390# and sets the high bit in the cache file unless we assign to the vars.
12391(
12392 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12393 eval ac_val=\$$ac_var
12394 case $ac_val in #(
12395 *${as_nl}*)
12396 case $ac_var in #(
12397 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12398$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12399 esac
12400 case $ac_var in #(
12401 _ | IFS | as_nl) ;; #(
12402 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12403 *) { eval $ac_var=; unset $ac_var;} ;;
12404 esac ;;
12405 esac
12406 done
12407
12408 (set) 2>&1 |
12409 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12410 *${as_nl}ac_space=\ *)
12411 # `set' does not quote correctly, so add quotes: double-quote
12412 # substitution turns \\\\ into \\, and sed turns \\ into \.
12413 sed -n \
12414 "s/'/'\\\\''/g;
12415 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12416 ;; #(
12417 *)
12418 # `set' quotes correctly as required by POSIX, so do not add quotes.
12419 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12420 ;;
12421 esac |
12422 sort
12423) |
12424 sed '
12425 /^ac_cv_env_/b end
12426 t clear
12427 :clear
12428 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12429 t end
12430 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12431 :end' >>confcache
12432if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12433 if test -w "$cache_file"; then
12434 if test "x$cache_file" != "x/dev/null"; then
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12436$as_echo "$as_me: updating cache $cache_file" >&6;}
12437 if test ! -f "$cache_file" || test -h "$cache_file"; then
12438 cat confcache >"$cache_file"
12439 else
12440 case $cache_file in #(
12441 */* | ?:*)
12442 mv -f confcache "$cache_file"$$ &&
12443 mv -f "$cache_file"$$ "$cache_file" ;; #(
12444 *)
12445 mv -f confcache "$cache_file" ;;
12446 esac
12447 fi
12448 fi
12449 else
12450 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12451$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12452 fi
12453fi
12454rm -f confcache
12455
12456test "x$prefix" = xNONE && prefix=$ac_default_prefix
12457# Let make expand exec_prefix.
12458test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12459
12460DEFS=-DHAVE_CONFIG_H
12461
12462ac_libobjs=
12463ac_ltlibobjs=
12464U=
12465for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12466 # 1. Remove the extension, and $U if already installed.
12467 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12468 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12469 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12470 # will be set to the directory where LIBOBJS objects are built.
12471 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12472 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12473done
12474LIBOBJS=$ac_libobjs
12475
12476LTLIBOBJS=$ac_ltlibobjs
12477
12478
12479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
12480$as_echo_n "checking that generated files are newer than configure... " >&6; }
12481 if test -n "$am_sleep_pid"; then
12482 # Hide warnings about reused PIDs.
12483 wait $am_sleep_pid 2>/dev/null
12484 fi
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
12486$as_echo "done" >&6; }
12487 if test -n "$EXEEXT"; then
12488 am__EXEEXT_TRUE=
12489 am__EXEEXT_FALSE='#'
12490else
12491 am__EXEEXT_TRUE='#'
12492 am__EXEEXT_FALSE=
12493fi
12494
12495if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12496 as_fn_error $? "conditional \"AMDEP\" was never defined.
12497Usually this means the macro was only invoked conditionally." "$LINENO" 5
12498fi
12499if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12500 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12501Usually this means the macro was only invoked conditionally." "$LINENO" 5
12502fi
12503
12504: "${CONFIG_STATUS=./config.status}"
12505ac_write_fail=0
12506ac_clean_files_save=$ac_clean_files
12507ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12508{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12509$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12510as_write_fail=0
12511cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12512#! $SHELL
12513# Generated by $as_me.
12514# Run this file to recreate the current configuration.
12515# Compiler output produced by configure, useful for debugging
12516# configure, is in config.log if it exists.
12517
12518debug=false
12519ac_cs_recheck=false
12520ac_cs_silent=false
12521
12522SHELL=\${CONFIG_SHELL-$SHELL}
12523export SHELL
12524_ASEOF
12525cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12526## -------------------- ##
12527## M4sh Initialization. ##
12528## -------------------- ##
12529
12530# Be more Bourne compatible
12531DUALCASE=1; export DUALCASE # for MKS sh
12532if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12533 emulate sh
12534 NULLCMD=:
12535 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12536 # is contrary to our usage. Disable this feature.
12537 alias -g '${1+"$@"}'='"$@"'
12538 setopt NO_GLOB_SUBST
12539else
12540 case `(set -o) 2>/dev/null` in #(
12541 *posix*) :
12542 set -o posix ;; #(
12543 *) :
12544 ;;
12545esac
12546fi
12547
12548
12549as_nl='
12550'
12551export as_nl
12552# Printing a long string crashes Solaris 7 /usr/bin/printf.
12553as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12554as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12555as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12556# Prefer a ksh shell builtin over an external printf program on Solaris,
12557# but without wasting forks for bash or zsh.
12558if test -z "$BASH_VERSION$ZSH_VERSION" \
12559 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12560 as_echo='print -r --'
12561 as_echo_n='print -rn --'
12562elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12563 as_echo='printf %s\n'
12564 as_echo_n='printf %s'
12565else
12566 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12567 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12568 as_echo_n='/usr/ucb/echo -n'
12569 else
12570 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12571 as_echo_n_body='eval
12572 arg=$1;
12573 case $arg in #(
12574 *"$as_nl"*)
12575 expr "X$arg" : "X\\(.*\\)$as_nl";
12576 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12577 esac;
12578 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12579 '
12580 export as_echo_n_body
12581 as_echo_n='sh -c $as_echo_n_body as_echo'
12582 fi
12583 export as_echo_body
12584 as_echo='sh -c $as_echo_body as_echo'
12585fi
12586
12587# The user is always right.
12588if test "${PATH_SEPARATOR+set}" != set; then
12589 PATH_SEPARATOR=:
12590 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12591 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12592 PATH_SEPARATOR=';'
12593 }
12594fi
12595
12596
12597# IFS
12598# We need space, tab and new line, in precisely that order. Quoting is
12599# there to prevent editors from complaining about space-tab.
12600# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12601# splitting by setting IFS to empty value.)
12602IFS=" "" $as_nl"
12603
12604# Find who we are. Look in the path if we contain no directory separator.
12605as_myself=
12606case $0 in #((
12607 *[\\/]* ) as_myself=$0 ;;
12608 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12609for as_dir in $PATH
12610do
12611 IFS=$as_save_IFS
12612 test -z "$as_dir" && as_dir=.
12613 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12614 done
12615IFS=$as_save_IFS
12616
12617 ;;
12618esac
12619# We did not find ourselves, most probably we were run as `sh COMMAND'
12620# in which case we are not to be found in the path.
12621if test "x$as_myself" = x; then
12622 as_myself=$0
12623fi
12624if test ! -f "$as_myself"; then
12625 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12626 exit 1
12627fi
12628
12629# Unset variables that we do not need and which cause bugs (e.g. in
12630# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12631# suppresses any "Segmentation fault" message there. '((' could
12632# trigger a bug in pdksh 5.2.14.
12633for as_var in BASH_ENV ENV MAIL MAILPATH
12634do eval test x\${$as_var+set} = xset \
12635 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12636done
12637PS1='$ '
12638PS2='> '
12639PS4='+ '
12640
12641# NLS nuisances.
12642LC_ALL=C
12643export LC_ALL
12644LANGUAGE=C
12645export LANGUAGE
12646
12647# CDPATH.
12648(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12649
12650
12651# as_fn_error STATUS ERROR [LINENO LOG_FD]
12652# ----------------------------------------
12653# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12654# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12655# script with STATUS, using 1 if that was 0.
12656as_fn_error ()
12657{
12658 as_status=$1; test $as_status -eq 0 && as_status=1
12659 if test "$4"; then
12660 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12661 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12662 fi
12663 $as_echo "$as_me: error: $2" >&2
12664 as_fn_exit $as_status
12665} # as_fn_error
12666
12667
12668# as_fn_set_status STATUS
12669# -----------------------
12670# Set $? to STATUS, without forking.
12671as_fn_set_status ()
12672{
12673 return $1
12674} # as_fn_set_status
12675
12676# as_fn_exit STATUS
12677# -----------------
12678# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12679as_fn_exit ()
12680{
12681 set +e
12682 as_fn_set_status $1
12683 exit $1
12684} # as_fn_exit
12685
12686# as_fn_unset VAR
12687# ---------------
12688# Portably unset VAR.
12689as_fn_unset ()
12690{
12691 { eval $1=; unset $1;}
12692}
12693as_unset=as_fn_unset
12694# as_fn_append VAR VALUE
12695# ----------------------
12696# Append the text in VALUE to the end of the definition contained in VAR. Take
12697# advantage of any shell optimizations that allow amortized linear growth over
12698# repeated appends, instead of the typical quadratic growth present in naive
12699# implementations.
12700if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12701 eval 'as_fn_append ()
12702 {
12703 eval $1+=\$2
12704 }'
12705else
12706 as_fn_append ()
12707 {
12708 eval $1=\$$1\$2
12709 }
12710fi # as_fn_append
12711
12712# as_fn_arith ARG...
12713# ------------------
12714# Perform arithmetic evaluation on the ARGs, and store the result in the
12715# global $as_val. Take advantage of shells that can avoid forks. The arguments
12716# must be portable across $(()) and expr.
12717if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12718 eval 'as_fn_arith ()
12719 {
12720 as_val=$(( $* ))
12721 }'
12722else
12723 as_fn_arith ()
12724 {
12725 as_val=`expr "$@" || test $? -eq 1`
12726 }
12727fi # as_fn_arith
12728
12729
12730if expr a : '\(a\)' >/dev/null 2>&1 &&
12731 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12732 as_expr=expr
12733else
12734 as_expr=false
12735fi
12736
12737if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12738 as_basename=basename
12739else
12740 as_basename=false
12741fi
12742
12743if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12744 as_dirname=dirname
12745else
12746 as_dirname=false
12747fi
12748
12749as_me=`$as_basename -- "$0" ||
12750$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12751 X"$0" : 'X\(//\)$' \| \
12752 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12753$as_echo X/"$0" |
12754 sed '/^.*\/\([^/][^/]*\)\/*$/{
12755 s//\1/
12756 q
12757 }
12758 /^X\/\(\/\/\)$/{
12759 s//\1/
12760 q
12761 }
12762 /^X\/\(\/\).*/{
12763 s//\1/
12764 q
12765 }
12766 s/.*/./; q'`
12767
12768# Avoid depending upon Character Ranges.
12769as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12770as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12771as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12772as_cr_digits='0123456789'
12773as_cr_alnum=$as_cr_Letters$as_cr_digits
12774
12775ECHO_C= ECHO_N= ECHO_T=
12776case `echo -n x` in #(((((
12777-n*)
12778 case `echo 'xy\c'` in
12779 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12780 xy) ECHO_C='\c';;
12781 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12782 ECHO_T=' ';;
12783 esac;;
12784*)
12785 ECHO_N='-n';;
12786esac
12787
12788rm -f conf$$ conf$$.exe conf$$.file
12789if test -d conf$$.dir; then
12790 rm -f conf$$.dir/conf$$.file
12791else
12792 rm -f conf$$.dir
12793 mkdir conf$$.dir 2>/dev/null
12794fi
12795if (echo >conf$$.file) 2>/dev/null; then
12796 if ln -s conf$$.file conf$$ 2>/dev/null; then
12797 as_ln_s='ln -s'
12798 # ... but there are two gotchas:
12799 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12800 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12801 # In both cases, we have to default to `cp -pR'.
12802 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12803 as_ln_s='cp -pR'
12804 elif ln conf$$.file conf$$ 2>/dev/null; then
12805 as_ln_s=ln
12806 else
12807 as_ln_s='cp -pR'
12808 fi
12809else
12810 as_ln_s='cp -pR'
12811fi
12812rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12813rmdir conf$$.dir 2>/dev/null
12814
12815
12816# as_fn_mkdir_p
12817# -------------
12818# Create "$as_dir" as a directory, including parents if necessary.
12819as_fn_mkdir_p ()
12820{
12821
12822 case $as_dir in #(
12823 -*) as_dir=./$as_dir;;
12824 esac
12825 test -d "$as_dir" || eval $as_mkdir_p || {
12826 as_dirs=
12827 while :; do
12828 case $as_dir in #(
12829 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12830 *) as_qdir=$as_dir;;
12831 esac
12832 as_dirs="'$as_qdir' $as_dirs"
12833 as_dir=`$as_dirname -- "$as_dir" ||
12834$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12835 X"$as_dir" : 'X\(//\)[^/]' \| \
12836 X"$as_dir" : 'X\(//\)$' \| \
12837 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12838$as_echo X"$as_dir" |
12839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12840 s//\1/
12841 q
12842 }
12843 /^X\(\/\/\)[^/].*/{
12844 s//\1/
12845 q
12846 }
12847 /^X\(\/\/\)$/{
12848 s//\1/
12849 q
12850 }
12851 /^X\(\/\).*/{
12852 s//\1/
12853 q
12854 }
12855 s/.*/./; q'`
12856 test -d "$as_dir" && break
12857 done
12858 test -z "$as_dirs" || eval "mkdir $as_dirs"
12859 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12860
12861
12862} # as_fn_mkdir_p
12863if mkdir -p . 2>/dev/null; then
12864 as_mkdir_p='mkdir -p "$as_dir"'
12865else
12866 test -d ./-p && rmdir ./-p
12867 as_mkdir_p=false
12868fi
12869
12870
12871# as_fn_executable_p FILE
12872# -----------------------
12873# Test if FILE is an executable regular file.
12874as_fn_executable_p ()
12875{
12876 test -f "$1" && test -x "$1"
12877} # as_fn_executable_p
12878as_test_x='test -x'
12879as_executable_p=as_fn_executable_p
12880
12881# Sed expression to map a string onto a valid CPP name.
12882as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12883
12884# Sed expression to map a string onto a valid variable name.
12885as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12886
12887
12888exec 6>&1
12889## ----------------------------------- ##
12890## Main body of $CONFIG_STATUS script. ##
12891## ----------------------------------- ##
12892_ASEOF
12893test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12894
12895cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12896# Save the log message, to keep $0 and so on meaningful, and to
12897# report actual input values of CONFIG_FILES etc. instead of their
12898# values after options handling.
12899ac_log="
12900This file was extended by meson_display_framework $as_me 0.1, which was
12901generated by GNU Autoconf 2.69. Invocation command line was
12902
12903 CONFIG_FILES = $CONFIG_FILES
12904 CONFIG_HEADERS = $CONFIG_HEADERS
12905 CONFIG_LINKS = $CONFIG_LINKS
12906 CONFIG_COMMANDS = $CONFIG_COMMANDS
12907 $ $0 $@
12908
12909on `(hostname || uname -n) 2>/dev/null | sed 1q`
12910"
12911
12912_ACEOF
12913
12914case $ac_config_files in *"
12915"*) set x $ac_config_files; shift; ac_config_files=$*;;
12916esac
12917
12918case $ac_config_headers in *"
12919"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12920esac
12921
12922
12923cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12924# Files that config.status was made for.
12925config_files="$ac_config_files"
12926config_headers="$ac_config_headers"
12927config_commands="$ac_config_commands"
12928
12929_ACEOF
12930
12931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12932ac_cs_usage="\
12933\`$as_me' instantiates files and other configuration actions
12934from templates according to the current configuration. Unless the files
12935and actions are specified as TAGs, all are instantiated by default.
12936
12937Usage: $0 [OPTION]... [TAG]...
12938
12939 -h, --help print this help, then exit
12940 -V, --version print version number and configuration settings, then exit
12941 --config print configuration, then exit
12942 -q, --quiet, --silent
12943 do not print progress messages
12944 -d, --debug don't remove temporary files
12945 --recheck update $as_me by reconfiguring in the same conditions
12946 --file=FILE[:TEMPLATE]
12947 instantiate the configuration file FILE
12948 --header=FILE[:TEMPLATE]
12949 instantiate the configuration header FILE
12950
12951Configuration files:
12952$config_files
12953
12954Configuration headers:
12955$config_headers
12956
12957Configuration commands:
12958$config_commands
12959
12960Report bugs to <lingjie.li@amlogic.com>."
12961
12962_ACEOF
12963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12964ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12965ac_cs_version="\\
12966meson_display_framework config.status 0.1
12967configured by $0, generated by GNU Autoconf 2.69,
12968 with options \\"\$ac_cs_config\\"
12969
12970Copyright (C) 2012 Free Software Foundation, Inc.
12971This config.status script is free software; the Free Software Foundation
12972gives unlimited permission to copy, distribute and modify it."
12973
12974ac_pwd='$ac_pwd'
12975srcdir='$srcdir'
12976INSTALL='$INSTALL'
12977MKDIR_P='$MKDIR_P'
12978AWK='$AWK'
12979test -n "\$AWK" || AWK=awk
12980_ACEOF
12981
12982cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12983# The default lists apply if the user does not specify any file.
12984ac_need_defaults=:
12985while test $# != 0
12986do
12987 case $1 in
12988 --*=?*)
12989 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12990 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12991 ac_shift=:
12992 ;;
12993 --*=)
12994 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12995 ac_optarg=
12996 ac_shift=:
12997 ;;
12998 *)
12999 ac_option=$1
13000 ac_optarg=$2
13001 ac_shift=shift
13002 ;;
13003 esac
13004
13005 case $ac_option in
13006 # Handling of the options.
13007 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13008 ac_cs_recheck=: ;;
13009 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13010 $as_echo "$ac_cs_version"; exit ;;
13011 --config | --confi | --conf | --con | --co | --c )
13012 $as_echo "$ac_cs_config"; exit ;;
13013 --debug | --debu | --deb | --de | --d | -d )
13014 debug=: ;;
13015 --file | --fil | --fi | --f )
13016 $ac_shift
13017 case $ac_optarg in
13018 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13019 '') as_fn_error $? "missing file argument" ;;
13020 esac
13021 as_fn_append CONFIG_FILES " '$ac_optarg'"
13022 ac_need_defaults=false;;
13023 --header | --heade | --head | --hea )
13024 $ac_shift
13025 case $ac_optarg in
13026 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13027 esac
13028 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13029 ac_need_defaults=false;;
13030 --he | --h)
13031 # Conflict between --help and --header
13032 as_fn_error $? "ambiguous option: \`$1'
13033Try \`$0 --help' for more information.";;
13034 --help | --hel | -h )
13035 $as_echo "$ac_cs_usage"; exit ;;
13036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13037 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13038 ac_cs_silent=: ;;
13039
13040 # This is an error.
13041 -*) as_fn_error $? "unrecognized option: \`$1'
13042Try \`$0 --help' for more information." ;;
13043
13044 *) as_fn_append ac_config_targets " $1"
13045 ac_need_defaults=false ;;
13046
13047 esac
13048 shift
13049done
13050
13051ac_configure_extra_args=
13052
13053if $ac_cs_silent; then
13054 exec 6>/dev/null
13055 ac_configure_extra_args="$ac_configure_extra_args --silent"
13056fi
13057
13058_ACEOF
13059cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13060if \$ac_cs_recheck; then
13061 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13062 shift
13063 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13064 CONFIG_SHELL='$SHELL'
13065 export CONFIG_SHELL
13066 exec "\$@"
13067fi
13068
13069_ACEOF
13070cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13071exec 5>>config.log
13072{
13073 echo
13074 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13075## Running $as_me. ##
13076_ASBOX
13077 $as_echo "$ac_log"
13078} >&5
13079
13080_ACEOF
13081cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13082#
13083# INIT-COMMANDS
13084#
13085AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13086
13087
13088# The HP-UX ksh and POSIX shell print the target directory to stdout
13089# if CDPATH is set.
13090(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13091
13092sed_quote_subst='$sed_quote_subst'
13093double_quote_subst='$double_quote_subst'
13094delay_variable_subst='$delay_variable_subst'
13095macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13096macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13097enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13098enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13099pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13100enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13101shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
13102SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13103ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13104PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13105host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13106host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13107host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13108build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13109build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13110build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13111SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13112Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13113GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13114EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13115FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13116LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13117NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13118LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13119max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13120ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13121exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13122lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13123lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13124lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13125lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13126lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13127reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13128reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13129OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13130deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13131file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13132file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13133want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13134DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13135sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13136AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13137AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13138archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13139STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13140RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13141old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13142old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13143old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13144lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13145CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13146CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13147compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13148GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13149lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13150lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13151lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
13152lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13153lt_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"`'
13154lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
13155nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13156lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13157lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
13158objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13159MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13160lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13161lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13162lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13163lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13164lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13165need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13166MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13167DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13168NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13169LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13170OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13171OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13172libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13173shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13174extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13175archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13176enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13177export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13178whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13179compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13180old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13181old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13182archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13183archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13184module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13185module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13186with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13187allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13188no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13189hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13190hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13191hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13192hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13193hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13194hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13195hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13196inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13197link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13198always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13199export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13200exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13201include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13202prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13203postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13204file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13205variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13206need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13207need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13208version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13209runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13210shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13211shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13212libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13213library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13214soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13215install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13216postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13217postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13218finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13219finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13220hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13221sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13222configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
13223configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
13224hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13225enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13226enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13227enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13228old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13229striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13230
13231LTCC='$LTCC'
13232LTCFLAGS='$LTCFLAGS'
13233compiler='$compiler_DEFAULT'
13234
13235# A function that is used when there is no print builtin or printf.
13236func_fallback_echo ()
13237{
13238 eval 'cat <<_LTECHO_EOF
13239\$1
13240_LTECHO_EOF'
13241}
13242
13243# Quote evaled strings.
13244for var in SHELL \
13245ECHO \
13246PATH_SEPARATOR \
13247SED \
13248GREP \
13249EGREP \
13250FGREP \
13251LD \
13252NM \
13253LN_S \
13254lt_SP2NL \
13255lt_NL2SP \
13256reload_flag \
13257OBJDUMP \
13258deplibs_check_method \
13259file_magic_cmd \
13260file_magic_glob \
13261want_nocaseglob \
13262DLLTOOL \
13263sharedlib_from_linklib_cmd \
13264AR \
13265AR_FLAGS \
13266archiver_list_spec \
13267STRIP \
13268RANLIB \
13269CC \
13270CFLAGS \
13271compiler \
13272lt_cv_sys_global_symbol_pipe \
13273lt_cv_sys_global_symbol_to_cdecl \
13274lt_cv_sys_global_symbol_to_import \
13275lt_cv_sys_global_symbol_to_c_name_address \
13276lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13277lt_cv_nm_interface \
13278nm_file_list_spec \
13279lt_cv_truncate_bin \
13280lt_prog_compiler_no_builtin_flag \
13281lt_prog_compiler_pic \
13282lt_prog_compiler_wl \
13283lt_prog_compiler_static \
13284lt_cv_prog_compiler_c_o \
13285need_locks \
13286MANIFEST_TOOL \
13287DSYMUTIL \
13288NMEDIT \
13289LIPO \
13290OTOOL \
13291OTOOL64 \
13292shrext_cmds \
13293export_dynamic_flag_spec \
13294whole_archive_flag_spec \
13295compiler_needs_object \
13296with_gnu_ld \
13297allow_undefined_flag \
13298no_undefined_flag \
13299hardcode_libdir_flag_spec \
13300hardcode_libdir_separator \
13301exclude_expsyms \
13302include_expsyms \
13303file_list_spec \
13304variables_saved_for_relink \
13305libname_spec \
13306library_names_spec \
13307soname_spec \
13308install_override_mode \
13309finish_eval \
13310old_striplib \
13311striplib; do
13312 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13313 *[\\\\\\\`\\"\\\$]*)
13314 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13315 ;;
13316 *)
13317 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13318 ;;
13319 esac
13320done
13321
13322# Double-quote double-evaled strings.
13323for var in reload_cmds \
13324old_postinstall_cmds \
13325old_postuninstall_cmds \
13326old_archive_cmds \
13327extract_expsyms_cmds \
13328old_archive_from_new_cmds \
13329old_archive_from_expsyms_cmds \
13330archive_cmds \
13331archive_expsym_cmds \
13332module_cmds \
13333module_expsym_cmds \
13334export_symbols_cmds \
13335prelink_cmds \
13336postlink_cmds \
13337postinstall_cmds \
13338postuninstall_cmds \
13339finish_cmds \
13340sys_lib_search_path_spec \
13341configure_time_dlsearch_path \
13342configure_time_lt_sys_library_path; do
13343 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13344 *[\\\\\\\`\\"\\\$]*)
13345 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
13346 ;;
13347 *)
13348 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13349 ;;
13350 esac
13351done
13352
13353ac_aux_dir='$ac_aux_dir'
13354
13355# See if we are running on zsh, and set the options that allow our
13356# commands through without removal of \ escapes INIT.
13357if test -n "\${ZSH_VERSION+set}"; then
13358 setopt NO_GLOB_SUBST
13359fi
13360
13361
13362 PACKAGE='$PACKAGE'
13363 VERSION='$VERSION'
13364 RM='$RM'
13365 ofile='$ofile'
13366
13367
13368
13369
13370_ACEOF
13371
13372cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13373
13374# Handling of arguments.
13375for ac_config_target in $ac_config_targets
13376do
13377 case $ac_config_target in
13378 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13379 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13380 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13381 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13382
13383 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13384 esac
13385done
13386
13387
13388# If the user did not use the arguments to specify the items to instantiate,
13389# then the envvar interface is used. Set only those that are not.
13390# We use the long form for the default assignment because of an extremely
13391# bizarre bug on SunOS 4.1.3.
13392if $ac_need_defaults; then
13393 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13394 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13395 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13396fi
13397
13398# Have a temporary directory for convenience. Make it in the build tree
13399# simply because there is no reason against having it here, and in addition,
13400# creating and moving files from /tmp can sometimes cause problems.
13401# Hook for its removal unless debugging.
13402# Note that there is a small window in which the directory will not be cleaned:
13403# after its creation but before its name has been assigned to `$tmp'.
13404$debug ||
13405{
13406 tmp= ac_tmp=
13407 trap 'exit_status=$?
13408 : "${ac_tmp:=$tmp}"
13409 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13410' 0
13411 trap 'as_fn_exit 1' 1 2 13 15
13412}
13413# Create a (secure) tmp directory for tmp files.
13414
13415{
13416 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13417 test -d "$tmp"
13418} ||
13419{
13420 tmp=./conf$$-$RANDOM
13421 (umask 077 && mkdir "$tmp")
13422} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13423ac_tmp=$tmp
13424
13425# Set up the scripts for CONFIG_FILES section.
13426# No need to generate them if there are no CONFIG_FILES.
13427# This happens for instance with `./config.status config.h'.
13428if test -n "$CONFIG_FILES"; then
13429
13430
13431ac_cr=`echo X | tr X '\015'`
13432# On cygwin, bash can eat \r inside `` if the user requested igncr.
13433# But we know of no other shell where ac_cr would be empty at this
13434# point, so we can use a bashism as a fallback.
13435if test "x$ac_cr" = x; then
13436 eval ac_cr=\$\'\\r\'
13437fi
13438ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13439if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13440 ac_cs_awk_cr='\\r'
13441else
13442 ac_cs_awk_cr=$ac_cr
13443fi
13444
13445echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13446_ACEOF
13447
13448
13449{
13450 echo "cat >conf$$subs.awk <<_ACEOF" &&
13451 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13452 echo "_ACEOF"
13453} >conf$$subs.sh ||
13454 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13455ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13456ac_delim='%!_!# '
13457for ac_last_try in false false false false false :; do
13458 . ./conf$$subs.sh ||
13459 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13460
13461 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13462 if test $ac_delim_n = $ac_delim_num; then
13463 break
13464 elif $ac_last_try; then
13465 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13466 else
13467 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13468 fi
13469done
13470rm -f conf$$subs.sh
13471
13472cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13473cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13474_ACEOF
13475sed -n '
13476h
13477s/^/S["/; s/!.*/"]=/
13478p
13479g
13480s/^[^!]*!//
13481:repl
13482t repl
13483s/'"$ac_delim"'$//
13484t delim
13485:nl
13486h
13487s/\(.\{148\}\)..*/\1/
13488t more1
13489s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13490p
13491n
13492b repl
13493:more1
13494s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13495p
13496g
13497s/.\{148\}//
13498t nl
13499:delim
13500h
13501s/\(.\{148\}\)..*/\1/
13502t more2
13503s/["\\]/\\&/g; s/^/"/; s/$/"/
13504p
13505b
13506:more2
13507s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13508p
13509g
13510s/.\{148\}//
13511t delim
13512' <conf$$subs.awk | sed '
13513/^[^""]/{
13514 N
13515 s/\n//
13516}
13517' >>$CONFIG_STATUS || ac_write_fail=1
13518rm -f conf$$subs.awk
13519cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13520_ACAWK
13521cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13522 for (key in S) S_is_set[key] = 1
13523 FS = ""
13524
13525}
13526{
13527 line = $ 0
13528 nfields = split(line, field, "@")
13529 substed = 0
13530 len = length(field[1])
13531 for (i = 2; i < nfields; i++) {
13532 key = field[i]
13533 keylen = length(key)
13534 if (S_is_set[key]) {
13535 value = S[key]
13536 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13537 len += length(value) + length(field[++i])
13538 substed = 1
13539 } else
13540 len += 1 + keylen
13541 }
13542
13543 print line
13544}
13545
13546_ACAWK
13547_ACEOF
13548cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13549if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13550 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13551else
13552 cat
13553fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13554 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13555_ACEOF
13556
13557# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13558# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13559# trailing colons and then remove the whole line if VPATH becomes empty
13560# (actually we leave an empty line to preserve line numbers).
13561if test "x$srcdir" = x.; then
13562 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13563h
13564s///
13565s/^/:/
13566s/[ ]*$/:/
13567s/:\$(srcdir):/:/g
13568s/:\${srcdir}:/:/g
13569s/:@srcdir@:/:/g
13570s/^:*//
13571s/:*$//
13572x
13573s/\(=[ ]*\).*/\1/
13574G
13575s/\n//
13576s/^[^=]*=[ ]*$//
13577}'
13578fi
13579
13580cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13581fi # test -n "$CONFIG_FILES"
13582
13583# Set up the scripts for CONFIG_HEADERS section.
13584# No need to generate them if there are no CONFIG_HEADERS.
13585# This happens for instance with `./config.status Makefile'.
13586if test -n "$CONFIG_HEADERS"; then
13587cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13588BEGIN {
13589_ACEOF
13590
13591# Transform confdefs.h into an awk script `defines.awk', embedded as
13592# here-document in config.status, that substitutes the proper values into
13593# config.h.in to produce config.h.
13594
13595# Create a delimiter string that does not exist in confdefs.h, to ease
13596# handling of long lines.
13597ac_delim='%!_!# '
13598for ac_last_try in false false :; do
13599 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13600 if test -z "$ac_tt"; then
13601 break
13602 elif $ac_last_try; then
13603 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13604 else
13605 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13606 fi
13607done
13608
13609# For the awk script, D is an array of macro values keyed by name,
13610# likewise P contains macro parameters if any. Preserve backslash
13611# newline sequences.
13612
13613ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13614sed -n '
13615s/.\{148\}/&'"$ac_delim"'/g
13616t rset
13617:rset
13618s/^[ ]*#[ ]*define[ ][ ]*/ /
13619t def
13620d
13621:def
13622s/\\$//
13623t bsnl
13624s/["\\]/\\&/g
13625s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13626D["\1"]=" \3"/p
13627s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13628d
13629:bsnl
13630s/["\\]/\\&/g
13631s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13632D["\1"]=" \3\\\\\\n"\\/p
13633t cont
13634s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13635t cont
13636d
13637:cont
13638n
13639s/.\{148\}/&'"$ac_delim"'/g
13640t clear
13641:clear
13642s/\\$//
13643t bsnlc
13644s/["\\]/\\&/g; s/^/"/; s/$/"/p
13645d
13646:bsnlc
13647s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13648b cont
13649' <confdefs.h | sed '
13650s/'"$ac_delim"'/"\\\
13651"/g' >>$CONFIG_STATUS || ac_write_fail=1
13652
13653cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13654 for (key in D) D_is_set[key] = 1
13655 FS = ""
13656}
13657/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13658 line = \$ 0
13659 split(line, arg, " ")
13660 if (arg[1] == "#") {
13661 defundef = arg[2]
13662 mac1 = arg[3]
13663 } else {
13664 defundef = substr(arg[1], 2)
13665 mac1 = arg[2]
13666 }
13667 split(mac1, mac2, "(") #)
13668 macro = mac2[1]
13669 prefix = substr(line, 1, index(line, defundef) - 1)
13670 if (D_is_set[macro]) {
13671 # Preserve the white space surrounding the "#".
13672 print prefix "define", macro P[macro] D[macro]
13673 next
13674 } else {
13675 # Replace #undef with comments. This is necessary, for example,
13676 # in the case of _POSIX_SOURCE, which is predefined and required
13677 # on some systems where configure will not decide to define it.
13678 if (defundef == "undef") {
13679 print "/*", prefix defundef, macro, "*/"
13680 next
13681 }
13682 }
13683}
13684{ print }
13685_ACAWK
13686_ACEOF
13687cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13688 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13689fi # test -n "$CONFIG_HEADERS"
13690
13691
13692eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13693shift
13694for ac_tag
13695do
13696 case $ac_tag in
13697 :[FHLC]) ac_mode=$ac_tag; continue;;
13698 esac
13699 case $ac_mode$ac_tag in
13700 :[FHL]*:*);;
13701 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13702 :[FH]-) ac_tag=-:-;;
13703 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13704 esac
13705 ac_save_IFS=$IFS
13706 IFS=:
13707 set x $ac_tag
13708 IFS=$ac_save_IFS
13709 shift
13710 ac_file=$1
13711 shift
13712
13713 case $ac_mode in
13714 :L) ac_source=$1;;
13715 :[FH])
13716 ac_file_inputs=
13717 for ac_f
13718 do
13719 case $ac_f in
13720 -) ac_f="$ac_tmp/stdin";;
13721 *) # Look for the file first in the build tree, then in the source tree
13722 # (if the path is not absolute). The absolute path cannot be DOS-style,
13723 # because $ac_f cannot contain `:'.
13724 test -f "$ac_f" ||
13725 case $ac_f in
13726 [\\/$]*) false;;
13727 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13728 esac ||
13729 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13730 esac
13731 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13732 as_fn_append ac_file_inputs " '$ac_f'"
13733 done
13734
13735 # Let's still pretend it is `configure' which instantiates (i.e., don't
13736 # use $as_me), people would be surprised to read:
13737 # /* config.h. Generated by config.status. */
13738 configure_input='Generated from '`
13739 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13740 `' by configure.'
13741 if test x"$ac_file" != x-; then
13742 configure_input="$ac_file. $configure_input"
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13744$as_echo "$as_me: creating $ac_file" >&6;}
13745 fi
13746 # Neutralize special characters interpreted by sed in replacement strings.
13747 case $configure_input in #(
13748 *\&* | *\|* | *\\* )
13749 ac_sed_conf_input=`$as_echo "$configure_input" |
13750 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13751 *) ac_sed_conf_input=$configure_input;;
13752 esac
13753
13754 case $ac_tag in
13755 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13756 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13757 esac
13758 ;;
13759 esac
13760
13761 ac_dir=`$as_dirname -- "$ac_file" ||
13762$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13763 X"$ac_file" : 'X\(//\)[^/]' \| \
13764 X"$ac_file" : 'X\(//\)$' \| \
13765 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13766$as_echo X"$ac_file" |
13767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13768 s//\1/
13769 q
13770 }
13771 /^X\(\/\/\)[^/].*/{
13772 s//\1/
13773 q
13774 }
13775 /^X\(\/\/\)$/{
13776 s//\1/
13777 q
13778 }
13779 /^X\(\/\).*/{
13780 s//\1/
13781 q
13782 }
13783 s/.*/./; q'`
13784 as_dir="$ac_dir"; as_fn_mkdir_p
13785 ac_builddir=.
13786
13787case "$ac_dir" in
13788.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13789*)
13790 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13791 # A ".." for each directory in $ac_dir_suffix.
13792 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13793 case $ac_top_builddir_sub in
13794 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13795 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13796 esac ;;
13797esac
13798ac_abs_top_builddir=$ac_pwd
13799ac_abs_builddir=$ac_pwd$ac_dir_suffix
13800# for backward compatibility:
13801ac_top_builddir=$ac_top_build_prefix
13802
13803case $srcdir in
13804 .) # We are building in place.
13805 ac_srcdir=.
13806 ac_top_srcdir=$ac_top_builddir_sub
13807 ac_abs_top_srcdir=$ac_pwd ;;
13808 [\\/]* | ?:[\\/]* ) # Absolute name.
13809 ac_srcdir=$srcdir$ac_dir_suffix;
13810 ac_top_srcdir=$srcdir
13811 ac_abs_top_srcdir=$srcdir ;;
13812 *) # Relative name.
13813 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13814 ac_top_srcdir=$ac_top_build_prefix$srcdir
13815 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13816esac
13817ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13818
13819
13820 case $ac_mode in
13821 :F)
13822 #
13823 # CONFIG_FILE
13824 #
13825
13826 case $INSTALL in
13827 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13828 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13829 esac
13830 ac_MKDIR_P=$MKDIR_P
13831 case $MKDIR_P in
13832 [\\/$]* | ?:[\\/]* ) ;;
13833 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13834 esac
13835_ACEOF
13836
13837cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13838# If the template does not know about datarootdir, expand it.
13839# FIXME: This hack should be removed a few years after 2.60.
13840ac_datarootdir_hack=; ac_datarootdir_seen=
13841ac_sed_dataroot='
13842/datarootdir/ {
13843 p
13844 q
13845}
13846/@datadir@/p
13847/@docdir@/p
13848/@infodir@/p
13849/@localedir@/p
13850/@mandir@/p'
13851case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13852*datarootdir*) ac_datarootdir_seen=yes;;
13853*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13855$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13856_ACEOF
13857cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13858 ac_datarootdir_hack='
13859 s&@datadir@&$datadir&g
13860 s&@docdir@&$docdir&g
13861 s&@infodir@&$infodir&g
13862 s&@localedir@&$localedir&g
13863 s&@mandir@&$mandir&g
13864 s&\\\${datarootdir}&$datarootdir&g' ;;
13865esac
13866_ACEOF
13867
13868# Neutralize VPATH when `$srcdir' = `.'.
13869# Shell code in configure.ac might set extrasub.
13870# FIXME: do we really want to maintain this feature?
13871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13872ac_sed_extra="$ac_vpsub
13873$extrasub
13874_ACEOF
13875cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13876:t
13877/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13878s|@configure_input@|$ac_sed_conf_input|;t t
13879s&@top_builddir@&$ac_top_builddir_sub&;t t
13880s&@top_build_prefix@&$ac_top_build_prefix&;t t
13881s&@srcdir@&$ac_srcdir&;t t
13882s&@abs_srcdir@&$ac_abs_srcdir&;t t
13883s&@top_srcdir@&$ac_top_srcdir&;t t
13884s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13885s&@builddir@&$ac_builddir&;t t
13886s&@abs_builddir@&$ac_abs_builddir&;t t
13887s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13888s&@INSTALL@&$ac_INSTALL&;t t
13889s&@MKDIR_P@&$ac_MKDIR_P&;t t
13890$ac_datarootdir_hack
13891"
13892eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13893 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13894
13895test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13896 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13897 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13898 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13900which seems to be undefined. Please make sure it is defined" >&5
13901$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13902which seems to be undefined. Please make sure it is defined" >&2;}
13903
13904 rm -f "$ac_tmp/stdin"
13905 case $ac_file in
13906 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13907 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13908 esac \
13909 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13910 ;;
13911 :H)
13912 #
13913 # CONFIG_HEADER
13914 #
13915 if test x"$ac_file" != x-; then
13916 {
13917 $as_echo "/* $configure_input */" \
13918 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13919 } >"$ac_tmp/config.h" \
13920 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13921 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13923$as_echo "$as_me: $ac_file is unchanged" >&6;}
13924 else
13925 rm -f "$ac_file"
13926 mv "$ac_tmp/config.h" "$ac_file" \
13927 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13928 fi
13929 else
13930 $as_echo "/* $configure_input */" \
13931 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13932 || as_fn_error $? "could not create -" "$LINENO" 5
13933 fi
13934# Compute "$ac_file"'s index in $config_headers.
13935_am_arg="$ac_file"
13936_am_stamp_count=1
13937for _am_header in $config_headers :; do
13938 case $_am_header in
13939 $_am_arg | $_am_arg:* )
13940 break ;;
13941 * )
13942 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13943 esac
13944done
13945echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13946$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13947 X"$_am_arg" : 'X\(//\)[^/]' \| \
13948 X"$_am_arg" : 'X\(//\)$' \| \
13949 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13950$as_echo X"$_am_arg" |
13951 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13952 s//\1/
13953 q
13954 }
13955 /^X\(\/\/\)[^/].*/{
13956 s//\1/
13957 q
13958 }
13959 /^X\(\/\/\)$/{
13960 s//\1/
13961 q
13962 }
13963 /^X\(\/\).*/{
13964 s//\1/
13965 q
13966 }
13967 s/.*/./; q'`/stamp-h$_am_stamp_count
13968 ;;
13969
13970 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13971$as_echo "$as_me: executing $ac_file commands" >&6;}
13972 ;;
13973 esac
13974
13975
13976 case $ac_file$ac_mode in
13977 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13978 # Older Autoconf quotes --file arguments for eval, but not when files
13979 # are listed without --file. Let's play safe and only enable the eval
13980 # if we detect the quoting.
13981 case $CONFIG_FILES in
13982 *\'*) eval set x "$CONFIG_FILES" ;;
13983 *) set x $CONFIG_FILES ;;
13984 esac
13985 shift
13986 for mf
13987 do
13988 # Strip MF so we end up with the name of the file.
13989 mf=`echo "$mf" | sed -e 's/:.*$//'`
13990 # Check whether this is an Automake generated Makefile or not.
13991 # We used to match only the files named 'Makefile.in', but
13992 # some people rename them; so instead we look at the file content.
13993 # Grep'ing the first line is not enough: some people post-process
13994 # each Makefile.in and add a new line on top of each file to say so.
13995 # Grep'ing the whole file is not good either: AIX grep has a line
13996 # limit of 2048, but all sed's we know have understand at least 4000.
13997 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13998 dirpart=`$as_dirname -- "$mf" ||
13999$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14000 X"$mf" : 'X\(//\)[^/]' \| \
14001 X"$mf" : 'X\(//\)$' \| \
14002 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14003$as_echo X"$mf" |
14004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14005 s//\1/
14006 q
14007 }
14008 /^X\(\/\/\)[^/].*/{
14009 s//\1/
14010 q
14011 }
14012 /^X\(\/\/\)$/{
14013 s//\1/
14014 q
14015 }
14016 /^X\(\/\).*/{
14017 s//\1/
14018 q
14019 }
14020 s/.*/./; q'`
14021 else
14022 continue
14023 fi
14024 # Extract the definition of DEPDIR, am__include, and am__quote
14025 # from the Makefile without running 'make'.
14026 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14027 test -z "$DEPDIR" && continue
14028 am__include=`sed -n 's/^am__include = //p' < "$mf"`
14029 test -z "$am__include" && continue
14030 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14031 # Find all dependency output files, they are included files with
14032 # $(DEPDIR) in their names. We invoke sed twice because it is the
14033 # simplest approach to changing $(DEPDIR) to its actual value in the
14034 # expansion.
14035 for file in `sed -n "
14036 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14037 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
14038 # Make sure the directory exists.
14039 test -f "$dirpart/$file" && continue
14040 fdir=`$as_dirname -- "$file" ||
14041$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14042 X"$file" : 'X\(//\)[^/]' \| \
14043 X"$file" : 'X\(//\)$' \| \
14044 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14045$as_echo X"$file" |
14046 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14047 s//\1/
14048 q
14049 }
14050 /^X\(\/\/\)[^/].*/{
14051 s//\1/
14052 q
14053 }
14054 /^X\(\/\/\)$/{
14055 s//\1/
14056 q
14057 }
14058 /^X\(\/\).*/{
14059 s//\1/
14060 q
14061 }
14062 s/.*/./; q'`
14063 as_dir=$dirpart/$fdir; as_fn_mkdir_p
14064 # echo "creating $dirpart/$file"
14065 echo '# dummy' > "$dirpart/$file"
14066 done
14067 done
14068}
14069 ;;
14070 "libtool":C)
14071
14072 # See if we are running on zsh, and set the options that allow our
14073 # commands through without removal of \ escapes.
14074 if test -n "${ZSH_VERSION+set}"; then
14075 setopt NO_GLOB_SUBST
14076 fi
14077
14078 cfgfile=${ofile}T
14079 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14080 $RM "$cfgfile"
14081
14082 cat <<_LT_EOF >> "$cfgfile"
14083#! $SHELL
14084# Generated automatically by $as_me ($PACKAGE) $VERSION
14085# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14086# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14087
14088# Provide generalized library-building support services.
14089# Written by Gordon Matzigkeit, 1996
14090
14091# Copyright (C) 2014 Free Software Foundation, Inc.
14092# This is free software; see the source for copying conditions. There is NO
14093# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14094
14095# GNU Libtool is free software; you can redistribute it and/or modify
14096# it under the terms of the GNU General Public License as published by
14097# the Free Software Foundation; either version 2 of of the License, or
14098# (at your option) any later version.
14099#
14100# As a special exception to the GNU General Public License, if you
14101# distribute this file as part of a program or library that is built
14102# using GNU Libtool, you may include this file under the same
14103# distribution terms that you use for the rest of that program.
14104#
14105# GNU Libtool is distributed in the hope that it will be useful, but
14106# WITHOUT ANY WARRANTY; without even the implied warranty of
14107# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14108# GNU General Public License for more details.
14109#
14110# You should have received a copy of the GNU General Public License
14111# along with this program. If not, see <http://www.gnu.org/licenses/>.
14112
14113
14114# The names of the tagged configurations supported by this script.
14115available_tags=''
14116
14117# Configured defaults for sys_lib_dlsearch_path munging.
14118: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
14119
14120# ### BEGIN LIBTOOL CONFIG
14121
14122# Which release of libtool.m4 was used?
14123macro_version=$macro_version
14124macro_revision=$macro_revision
14125
14126# Whether or not to build shared libraries.
14127build_libtool_libs=$enable_shared
14128
14129# Whether or not to build static libraries.
14130build_old_libs=$enable_static
14131
14132# What type of objects to build.
14133pic_mode=$pic_mode
14134
14135# Whether or not to optimize for fast installation.
14136fast_install=$enable_fast_install
14137
14138# Shared archive member basename,for filename based shared library versioning on AIX.
14139shared_archive_member_spec=$shared_archive_member_spec
14140
14141# Shell to use when invoking shell scripts.
14142SHELL=$lt_SHELL
14143
14144# An echo program that protects backslashes.
14145ECHO=$lt_ECHO
14146
14147# The PATH separator for the build system.
14148PATH_SEPARATOR=$lt_PATH_SEPARATOR
14149
14150# The host system.
14151host_alias=$host_alias
14152host=$host
14153host_os=$host_os
14154
14155# The build system.
14156build_alias=$build_alias
14157build=$build
14158build_os=$build_os
14159
14160# A sed program that does not truncate output.
14161SED=$lt_SED
14162
14163# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14164Xsed="\$SED -e 1s/^X//"
14165
14166# A grep program that handles long lines.
14167GREP=$lt_GREP
14168
14169# An ERE matcher.
14170EGREP=$lt_EGREP
14171
14172# A literal string matcher.
14173FGREP=$lt_FGREP
14174
14175# A BSD- or MS-compatible name lister.
14176NM=$lt_NM
14177
14178# Whether we need soft or hard links.
14179LN_S=$lt_LN_S
14180
14181# What is the maximum length of a command?
14182max_cmd_len=$max_cmd_len
14183
14184# Object file suffix (normally "o").
14185objext=$ac_objext
14186
14187# Executable file suffix (normally "").
14188exeext=$exeext
14189
14190# whether the shell understands "unset".
14191lt_unset=$lt_unset
14192
14193# turn spaces into newlines.
14194SP2NL=$lt_lt_SP2NL
14195
14196# turn newlines into spaces.
14197NL2SP=$lt_lt_NL2SP
14198
14199# convert \$build file names to \$host format.
14200to_host_file_cmd=$lt_cv_to_host_file_cmd
14201
14202# convert \$build files to toolchain format.
14203to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14204
14205# An object symbol dumper.
14206OBJDUMP=$lt_OBJDUMP
14207
14208# Method to check whether dependent libraries are shared objects.
14209deplibs_check_method=$lt_deplibs_check_method
14210
14211# Command to use when deplibs_check_method = "file_magic".
14212file_magic_cmd=$lt_file_magic_cmd
14213
14214# How to find potential files when deplibs_check_method = "file_magic".
14215file_magic_glob=$lt_file_magic_glob
14216
14217# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14218want_nocaseglob=$lt_want_nocaseglob
14219
14220# DLL creation program.
14221DLLTOOL=$lt_DLLTOOL
14222
14223# Command to associate shared and link libraries.
14224sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14225
14226# The archiver.
14227AR=$lt_AR
14228
14229# Flags to create an archive.
14230AR_FLAGS=$lt_AR_FLAGS
14231
14232# How to feed a file listing to the archiver.
14233archiver_list_spec=$lt_archiver_list_spec
14234
14235# A symbol stripping program.
14236STRIP=$lt_STRIP
14237
14238# Commands used to install an old-style archive.
14239RANLIB=$lt_RANLIB
14240old_postinstall_cmds=$lt_old_postinstall_cmds
14241old_postuninstall_cmds=$lt_old_postuninstall_cmds
14242
14243# Whether to use a lock for old archive extraction.
14244lock_old_archive_extraction=$lock_old_archive_extraction
14245
14246# A C compiler.
14247LTCC=$lt_CC
14248
14249# LTCC compiler flags.
14250LTCFLAGS=$lt_CFLAGS
14251
14252# Take the output of nm and produce a listing of raw symbols and C names.
14253global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14254
14255# Transform the output of nm in a proper C declaration.
14256global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14257
14258# Transform the output of nm into a list of symbols to manually relocate.
14259global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
14260
14261# Transform the output of nm in a C name address pair.
14262global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14263
14264# Transform the output of nm in a C name address pair when lib prefix is needed.
14265global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14266
14267# The name lister interface.
14268nm_interface=$lt_lt_cv_nm_interface
14269
14270# Specify filename containing input files for \$NM.
14271nm_file_list_spec=$lt_nm_file_list_spec
14272
14273# The root where to search for dependent libraries,and where our libraries should be installed.
14274lt_sysroot=$lt_sysroot
14275
14276# Command to truncate a binary pipe.
14277lt_truncate_bin=$lt_lt_cv_truncate_bin
14278
14279# The name of the directory that contains temporary libtool files.
14280objdir=$objdir
14281
14282# Used to examine libraries when file_magic_cmd begins with "file".
14283MAGIC_CMD=$MAGIC_CMD
14284
14285# Must we lock files when doing compilation?
14286need_locks=$lt_need_locks
14287
14288# Manifest tool.
14289MANIFEST_TOOL=$lt_MANIFEST_TOOL
14290
14291# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14292DSYMUTIL=$lt_DSYMUTIL
14293
14294# Tool to change global to local symbols on Mac OS X.
14295NMEDIT=$lt_NMEDIT
14296
14297# Tool to manipulate fat objects and archives on Mac OS X.
14298LIPO=$lt_LIPO
14299
14300# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14301OTOOL=$lt_OTOOL
14302
14303# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14304OTOOL64=$lt_OTOOL64
14305
14306# Old archive suffix (normally "a").
14307libext=$libext
14308
14309# Shared library suffix (normally ".so").
14310shrext_cmds=$lt_shrext_cmds
14311
14312# The commands to extract the exported symbol list from a shared archive.
14313extract_expsyms_cmds=$lt_extract_expsyms_cmds
14314
14315# Variables whose values should be saved in libtool wrapper scripts and
14316# restored at link time.
14317variables_saved_for_relink=$lt_variables_saved_for_relink
14318
14319# Do we need the "lib" prefix for modules?
14320need_lib_prefix=$need_lib_prefix
14321
14322# Do we need a version for libraries?
14323need_version=$need_version
14324
14325# Library versioning type.
14326version_type=$version_type
14327
14328# Shared library runtime path variable.
14329runpath_var=$runpath_var
14330
14331# Shared library path variable.
14332shlibpath_var=$shlibpath_var
14333
14334# Is shlibpath searched before the hard-coded library search path?
14335shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14336
14337# Format of library name prefix.
14338libname_spec=$lt_libname_spec
14339
14340# List of archive names. First name is the real one, the rest are links.
14341# The last name is the one that the linker finds with -lNAME
14342library_names_spec=$lt_library_names_spec
14343
14344# The coded name of the library, if different from the real name.
14345soname_spec=$lt_soname_spec
14346
14347# Permission mode override for installation of shared libraries.
14348install_override_mode=$lt_install_override_mode
14349
14350# Command to use after installation of a shared archive.
14351postinstall_cmds=$lt_postinstall_cmds
14352
14353# Command to use after uninstallation of a shared archive.
14354postuninstall_cmds=$lt_postuninstall_cmds
14355
14356# Commands used to finish a libtool library installation in a directory.
14357finish_cmds=$lt_finish_cmds
14358
14359# As "finish_cmds", except a single script fragment to be evaled but
14360# not shown.
14361finish_eval=$lt_finish_eval
14362
14363# Whether we should hardcode library paths into libraries.
14364hardcode_into_libs=$hardcode_into_libs
14365
14366# Compile-time system search path for libraries.
14367sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14368
14369# Detected run-time system search path for libraries.
14370sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
14371
14372# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
14373configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
14374
14375# Whether dlopen is supported.
14376dlopen_support=$enable_dlopen
14377
14378# Whether dlopen of programs is supported.
14379dlopen_self=$enable_dlopen_self
14380
14381# Whether dlopen of statically linked programs is supported.
14382dlopen_self_static=$enable_dlopen_self_static
14383
14384# Commands to strip libraries.
14385old_striplib=$lt_old_striplib
14386striplib=$lt_striplib
14387
14388
14389# The linker used to build libraries.
14390LD=$lt_LD
14391
14392# How to create reloadable object files.
14393reload_flag=$lt_reload_flag
14394reload_cmds=$lt_reload_cmds
14395
14396# Commands used to build an old-style archive.
14397old_archive_cmds=$lt_old_archive_cmds
14398
14399# A language specific compiler.
14400CC=$lt_compiler
14401
14402# Is the compiler the GNU compiler?
14403with_gcc=$GCC
14404
14405# Compiler flag to turn off builtin functions.
14406no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14407
14408# Additional compiler flags for building library objects.
14409pic_flag=$lt_lt_prog_compiler_pic
14410
14411# How to pass a linker flag through the compiler.
14412wl=$lt_lt_prog_compiler_wl
14413
14414# Compiler flag to prevent dynamic linking.
14415link_static_flag=$lt_lt_prog_compiler_static
14416
14417# Does compiler simultaneously support -c and -o options?
14418compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14419
14420# Whether or not to add -lc for building shared libraries.
14421build_libtool_need_lc=$archive_cmds_need_lc
14422
14423# Whether or not to disallow shared libs when runtime libs are static.
14424allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14425
14426# Compiler flag to allow reflexive dlopens.
14427export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14428
14429# Compiler flag to generate shared objects directly from archives.
14430whole_archive_flag_spec=$lt_whole_archive_flag_spec
14431
14432# Whether the compiler copes with passing no objects directly.
14433compiler_needs_object=$lt_compiler_needs_object
14434
14435# Create an old-style archive from a shared archive.
14436old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14437
14438# Create a temporary old-style archive to link instead of a shared archive.
14439old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14440
14441# Commands used to build a shared archive.
14442archive_cmds=$lt_archive_cmds
14443archive_expsym_cmds=$lt_archive_expsym_cmds
14444
14445# Commands used to build a loadable module if different from building
14446# a shared archive.
14447module_cmds=$lt_module_cmds
14448module_expsym_cmds=$lt_module_expsym_cmds
14449
14450# Whether we are building with GNU ld or not.
14451with_gnu_ld=$lt_with_gnu_ld
14452
14453# Flag that allows shared libraries with undefined symbols to be built.
14454allow_undefined_flag=$lt_allow_undefined_flag
14455
14456# Flag that enforces no undefined symbols.
14457no_undefined_flag=$lt_no_undefined_flag
14458
14459# Flag to hardcode \$libdir into a binary during linking.
14460# This must work even if \$libdir does not exist
14461hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14462
14463# Whether we need a single "-rpath" flag with a separated argument.
14464hardcode_libdir_separator=$lt_hardcode_libdir_separator
14465
14466# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14467# DIR into the resulting binary.
14468hardcode_direct=$hardcode_direct
14469
14470# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
14471# DIR into the resulting binary and the resulting library dependency is
14472# "absolute",i.e impossible to change by setting \$shlibpath_var if the
14473# library is relocated.
14474hardcode_direct_absolute=$hardcode_direct_absolute
14475
14476# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14477# into the resulting binary.
14478hardcode_minus_L=$hardcode_minus_L
14479
14480# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14481# into the resulting binary.
14482hardcode_shlibpath_var=$hardcode_shlibpath_var
14483
14484# Set to "yes" if building a shared library automatically hardcodes DIR
14485# into the library and all subsequent libraries and executables linked
14486# against it.
14487hardcode_automatic=$hardcode_automatic
14488
14489# Set to yes if linker adds runtime paths of dependent libraries
14490# to runtime path list.
14491inherit_rpath=$inherit_rpath
14492
14493# Whether libtool must link a program against all its dependency libraries.
14494link_all_deplibs=$link_all_deplibs
14495
14496# Set to "yes" if exported symbols are required.
14497always_export_symbols=$always_export_symbols
14498
14499# The commands to list exported symbols.
14500export_symbols_cmds=$lt_export_symbols_cmds
14501
14502# Symbols that should not be listed in the preloaded symbols.
14503exclude_expsyms=$lt_exclude_expsyms
14504
14505# Symbols that must always be exported.
14506include_expsyms=$lt_include_expsyms
14507
14508# Commands necessary for linking programs (against libraries) with templates.
14509prelink_cmds=$lt_prelink_cmds
14510
14511# Commands necessary for finishing linking programs.
14512postlink_cmds=$lt_postlink_cmds
14513
14514# Specify filename containing input files.
14515file_list_spec=$lt_file_list_spec
14516
14517# How to hardcode a shared library path into an executable.
14518hardcode_action=$hardcode_action
14519
14520# ### END LIBTOOL CONFIG
14521
14522_LT_EOF
14523
14524 cat <<'_LT_EOF' >> "$cfgfile"
14525
14526# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
14527
14528# func_munge_path_list VARIABLE PATH
14529# -----------------------------------
14530# VARIABLE is name of variable containing _space_ separated list of
14531# directories to be munged by the contents of PATH, which is string
14532# having a format:
14533# "DIR[:DIR]:"
14534# string "DIR[ DIR]" will be prepended to VARIABLE
14535# ":DIR[:DIR]"
14536# string "DIR[ DIR]" will be appended to VARIABLE
14537# "DIRP[:DIRP]::[DIRA:]DIRA"
14538# string "DIRP[ DIRP]" will be prepended to VARIABLE and string
14539# "DIRA[ DIRA]" will be appended to VARIABLE
14540# "DIR[:DIR]"
14541# VARIABLE will be replaced by "DIR[ DIR]"
14542func_munge_path_list ()
14543{
14544 case x$2 in
14545 x)
14546 ;;
14547 *:)
14548 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
14549 ;;
14550 x:*)
14551 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
14552 ;;
14553 *::*)
14554 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
14555 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
14556 ;;
14557 *)
14558 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
14559 ;;
14560 esac
14561}
14562
14563
14564# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
14565func_cc_basename ()
14566{
14567 for cc_temp in $*""; do
14568 case $cc_temp in
14569 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14570 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14571 \-*) ;;
14572 *) break;;
14573 esac
14574 done
14575 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
14576}
14577
14578
14579# ### END FUNCTIONS SHARED WITH CONFIGURE
14580
14581_LT_EOF
14582
14583 case $host_os in
14584 aix3*)
14585 cat <<\_LT_EOF >> "$cfgfile"
14586# AIX sometimes has problems with the GCC collect2 program. For some
14587# reason, if we set the COLLECT_NAMES environment variable, the problems
14588# vanish in a puff of smoke.
14589if test set != "${COLLECT_NAMES+set}"; then
14590 COLLECT_NAMES=
14591 export COLLECT_NAMES
14592fi
14593_LT_EOF
14594 ;;
14595 esac
14596
14597
14598ltmain=$ac_aux_dir/ltmain.sh
14599
14600
14601 # We use sed instead of cat because bash on DJGPP gets confused if
14602 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14603 # text mode, it properly converts lines to CR/LF. This bash problem
14604 # is reportedly fixed, but why not run on old versions too?
14605 sed '$q' "$ltmain" >> "$cfgfile" \
14606 || (rm -f "$cfgfile"; exit 1)
14607
14608 mv -f "$cfgfile" "$ofile" ||
14609 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14610 chmod +x "$ofile"
14611
14612 ;;
14613
14614 esac
14615done # for ac_tag
14616
14617
14618as_fn_exit 0
14619_ACEOF
14620ac_clean_files=$ac_clean_files_save
14621
14622test $ac_write_fail = 0 ||
14623 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14624
14625
14626# configure is writing to config.log, and then calls config.status.
14627# config.status does its own redirection, appending to config.log.
14628# Unfortunately, on DOS this fails, as config.log is still kept open
14629# by configure, so config.status won't be able to write to it; its
14630# output is simply discarded. So we exec the FD to /dev/null,
14631# effectively closing config.log, so it can be properly (re)opened and
14632# appended to by config.status. When coming back to configure, we
14633# need to make the FD available again.
14634if test "$no_create" != yes; then
14635 ac_cs_success=:
14636 ac_config_status_args=
14637 test "$silent" = yes &&
14638 ac_config_status_args="$ac_config_status_args --quiet"
14639 exec 5>/dev/null
14640 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14641 exec 5>>config.log
14642 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14643 # would make configure fail if this is the last instruction.
14644 $ac_cs_success || as_fn_exit 1
14645fi
14646if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14648$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14649fi
14650
14651