blob: e9c87c2529acc7af0c54aba403915b99a535a8ae [file] [log] [blame]
Alexandre Lisionddd731e2014-01-31 11:50:08 -05001@%:@! /bin/sh
2@%:@ Guess values for system-dependent variables and create Makefiles.
3@%:@ Generated by GNU Autoconf 2.69 for ucommon 6.0.7.
4@%:@
5@%:@
6@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7@%:@
8@%:@
9@%:@ This configure script is free software; the Free Software Foundation
10@%:@ gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in @%:@(
26 *posix*) :
27 set -o posix ;; @%:@(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in @%:@(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in @%:@((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in @%:@ ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in @%:@(
170 *posix*) :
171 set -o posix ;; @%:@(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210else
211 as_have_required=no
212fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in @%:@(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233fi
234fi
235 done;;
236 esac
237 as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in @%:@ ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279 fi
280 exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293@%:@ as_fn_unset VAR
294@%:@ ---------------
295@%:@ Portably unset VAR.
296as_fn_unset ()
297{
298 { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302@%:@ as_fn_set_status STATUS
303@%:@ -----------------------
304@%:@ Set @S|@? to STATUS, without forking.
305as_fn_set_status ()
306{
307 return $1
308} @%:@ as_fn_set_status
309
310@%:@ as_fn_exit STATUS
311@%:@ -----------------
312@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315 set +e
316 as_fn_set_status $1
317 exit $1
318} @%:@ as_fn_exit
319
320@%:@ as_fn_mkdir_p
321@%:@ -------------
322@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} @%:@ as_fn_mkdir_p
367
368@%:@ as_fn_executable_p FILE
369@%:@ -----------------------
370@%:@ Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373 test -f "$1" && test -x "$1"
374} @%:@ as_fn_executable_p
375@%:@ as_fn_append VAR VALUE
376@%:@ ----------------------
377@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
378@%:@ advantage of any shell optimizations that allow amortized linear growth over
379@%:@ repeated appends, instead of the typical quadratic growth present in naive
380@%:@ implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391fi # as_fn_append
392
393@%:@ as_fn_arith ARG...
394@%:@ ------------------
395@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
396@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
397@%:@ must be portable across @S|@(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408fi # as_fn_arith
409
410
411@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
412@%:@ ----------------------------------------
413@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415@%:@ script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425} @%:@ as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430else
431 as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436else
437 as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442else
443 as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in @%:@(((((
510-n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517*)
518 ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542else
543 as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIB@&t@OBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='ucommon'
589PACKAGE_TARNAME='ucommon'
590PACKAGE_VERSION='6.0.7'
591PACKAGE_STRING='ucommon 6.0.7'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="inc/ucommon/ucommon.h"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610# include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615# include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIB@&t@OBJS
636LT_GENERIC
637LT_VERSION
638COMPAT
639SECURE
640SECURE_LIBS
641SECURE_LOCAL
642UCOMMON_LIBS
643UCOMMON_LIBC
644UCOMMON_CLINK
645UCOMMON_FLAGS
646UCOMMON_MODEL
647UCOMMON_LINKED
648UCOMMON_VISIBILITY
649CHECKFLAGS
650DOXYGEN
651UCOMMON_PREFIX
652UCOMMON_VARPATH
653UCOMMON_CFGPATH
654UCOMMON_LOCALE
655UCOMMON_INCLUDES
656GNUTLS_LIBS
657GNUTLS_CFLAGS
658OPENSSL_LIBS
659OPENSSL_CFLAGS
660PKG_CONFIG_LIBDIR
661PKG_CONFIG_PATH
662PKG_CONFIG
663libs
664includes
665AM_BACKSLASH
666AM_DEFAULT_VERBOSITY
667AM_DEFAULT_V
668AM_V
669am__fastdepCXX_FALSE
670am__fastdepCXX_TRUE
671CXXDEPMODE
672am__fastdepCC_FALSE
673am__fastdepCC_TRUE
674CCDEPMODE
675am__nodep
676AMDEPBACKSLASH
677AMDEP_FALSE
678AMDEP_TRUE
679am__quote
680am__include
681DEPDIR
682am__untar
683am__tar
684AMTAR
685am__leading_dot
686SET_MAKE
687mkdir_p
688MKDIR_P
689INSTALL_STRIP_PROGRAM
690install_sh
691MAKEINFO
692AUTOHEADER
693AUTOMAKE
694AUTOCONF
695ACLOCAL
696VERSION
697PACKAGE
698CYGPATH_W
699am__isrc
700INSTALL_DATA
701INSTALL_SCRIPT
702INSTALL_PROGRAM
703OTOOL64
704OTOOL
705LIPO
706NMEDIT
707DSYMUTIL
708MANIFEST_TOOL
709AWK
710RANLIB
711STRIP
712ac_ct_AR
713AR
714LN_S
715NM
716ac_ct_DUMPBIN
717DUMPBIN
718LD
719FGREP
720EGREP
721GREP
722SED
723LIBTOOL
724OBJDUMP
725DLLTOOL
726AS
727CXXCPP
728ac_ct_CXX
729CXXFLAGS
730CXX
731CPP
732OBJEXT
733EXEEXT
734ac_ct_CC
735CPPFLAGS
736LDFLAGS
737CFLAGS
738CC
739target_os
740target_vendor
741target_cpu
742target
743host_os
744host_vendor
745host_cpu
746host
747build_os
748build_vendor
749build_cpu
750build
751target_alias
752host_alias
753build_alias
754LIBS
755ECHO_T
756ECHO_N
757ECHO_C
758DEFS
759mandir
760localedir
761libdir
762psdir
763pdfdir
764dvidir
765htmldir
766infodir
767docdir
768oldincludedir
769includedir
770localstatedir
771sharedstatedir
772sysconfdir
773datadir
774datarootdir
775libexecdir
776sbindir
777bindir
778program_transform_name
779prefix
780exec_prefix
781PACKAGE_URL
782PACKAGE_BUGREPORT
783PACKAGE_STRING
784PACKAGE_VERSION
785PACKAGE_TARNAME
786PACKAGE_NAME
787PATH_SEPARATOR
788SHELL'
789ac_subst_files=''
790ac_user_opts='
791enable_option_checking
792enable_shared
793enable_static
794with_pic
795enable_fast_install
796with_gnu_ld
797with_sysroot
798enable_libtool_lock
799enable_dependency_tracking
800enable_silent_rules
801enable_posix_timers
802enable_stdcpp
803with_sslstack
804with_libc
805enable_debug
806enable_socks
807enable_atomics
808enable_pth
809with_pkg_config
810'
811 ac_precious_vars='build_alias
812host_alias
813target_alias
814CC
815CFLAGS
816LDFLAGS
817LIBS
818CPPFLAGS
819CPP
820CXX
821CXXFLAGS
822CCC
823CXXCPP
824PKG_CONFIG
825PKG_CONFIG_PATH
826PKG_CONFIG_LIBDIR
827OPENSSL_CFLAGS
828OPENSSL_LIBS
829GNUTLS_CFLAGS
830GNUTLS_LIBS'
831
832
833# Initialize some variables set by options.
834ac_init_help=
835ac_init_version=false
836ac_unrecognized_opts=
837ac_unrecognized_sep=
838# The variables have the same names as the options, with
839# dashes changed to underlines.
840cache_file=/dev/null
841exec_prefix=NONE
842no_create=
843no_recursion=
844prefix=NONE
845program_prefix=NONE
846program_suffix=NONE
847program_transform_name=s,x,x,
848silent=
849site=
850srcdir=
851verbose=
852x_includes=NONE
853x_libraries=NONE
854
855# Installation directory options.
856# These are left unexpanded so users can "make install exec_prefix=/foo"
857# and all the variables that are supposed to be based on exec_prefix
858# by default will actually change.
859# Use braces instead of parens because sh, perl, etc. also accept them.
860# (The list follows the same order as the GNU Coding Standards.)
861bindir='${exec_prefix}/bin'
862sbindir='${exec_prefix}/sbin'
863libexecdir='${exec_prefix}/libexec'
864datarootdir='${prefix}/share'
865datadir='${datarootdir}'
866sysconfdir='${prefix}/etc'
867sharedstatedir='${prefix}/com'
868localstatedir='${prefix}/var'
869includedir='${prefix}/include'
870oldincludedir='/usr/include'
871docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872infodir='${datarootdir}/info'
873htmldir='${docdir}'
874dvidir='${docdir}'
875pdfdir='${docdir}'
876psdir='${docdir}'
877libdir='${exec_prefix}/lib'
878localedir='${datarootdir}/locale'
879mandir='${datarootdir}/man'
880
881ac_prev=
882ac_dashdash=
883for ac_option
884do
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
887 eval $ac_prev=\$ac_option
888 ac_prev=
889 continue
890 fi
891
892 case $ac_option in
893 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 *=) ac_optarg= ;;
895 *) ac_optarg=yes ;;
896 esac
897
898 # Accept the important Cygnus configure options, so we can diagnose typos.
899
900 case $ac_dashdash$ac_option in
901 --)
902 ac_dashdash=yes ;;
903
904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
905 ac_prev=bindir ;;
906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907 bindir=$ac_optarg ;;
908
909 -build | --build | --buil | --bui | --bu)
910 ac_prev=build_alias ;;
911 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912 build_alias=$ac_optarg ;;
913
914 -cache-file | --cache-file | --cache-fil | --cache-fi \
915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916 ac_prev=cache_file ;;
917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919 cache_file=$ac_optarg ;;
920
921 --config-cache | -C)
922 cache_file=config.cache ;;
923
924 -datadir | --datadir | --datadi | --datad)
925 ac_prev=datadir ;;
926 -datadir=* | --datadir=* | --datadi=* | --datad=*)
927 datadir=$ac_optarg ;;
928
929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930 | --dataroo | --dataro | --datar)
931 ac_prev=datarootdir ;;
932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934 datarootdir=$ac_optarg ;;
935
936 -disable-* | --disable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: $ac_useropt"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
944 *"
945"enable_$ac_useropt"
946"*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=no ;;
951
952 -docdir | --docdir | --docdi | --doc | --do)
953 ac_prev=docdir ;;
954 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955 docdir=$ac_optarg ;;
956
957 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
958 ac_prev=dvidir ;;
959 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960 dvidir=$ac_optarg ;;
961
962 -enable-* | --enable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error $? "invalid feature name: $ac_useropt"
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
970 *"
971"enable_$ac_useropt"
972"*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=\$ac_optarg ;;
977
978 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
979 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
980 | --exec | --exe | --ex)
981 ac_prev=exec_prefix ;;
982 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
983 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
984 | --exec=* | --exe=* | --ex=*)
985 exec_prefix=$ac_optarg ;;
986
987 -gas | --gas | --ga | --g)
988 # Obsolete; use --with-gas.
989 with_gas=yes ;;
990
991 -help | --help | --hel | --he | -h)
992 ac_init_help=long ;;
993 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
994 ac_init_help=recursive ;;
995 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
996 ac_init_help=short ;;
997
998 -host | --host | --hos | --ho)
999 ac_prev=host_alias ;;
1000 -host=* | --host=* | --hos=* | --ho=*)
1001 host_alias=$ac_optarg ;;
1002
1003 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004 ac_prev=htmldir ;;
1005 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006 | --ht=*)
1007 htmldir=$ac_optarg ;;
1008
1009 -includedir | --includedir | --includedi | --included | --include \
1010 | --includ | --inclu | --incl | --inc)
1011 ac_prev=includedir ;;
1012 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1013 | --includ=* | --inclu=* | --incl=* | --inc=*)
1014 includedir=$ac_optarg ;;
1015
1016 -infodir | --infodir | --infodi | --infod | --info | --inf)
1017 ac_prev=infodir ;;
1018 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1019 infodir=$ac_optarg ;;
1020
1021 -libdir | --libdir | --libdi | --libd)
1022 ac_prev=libdir ;;
1023 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1024 libdir=$ac_optarg ;;
1025
1026 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1027 | --libexe | --libex | --libe)
1028 ac_prev=libexecdir ;;
1029 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1030 | --libexe=* | --libex=* | --libe=*)
1031 libexecdir=$ac_optarg ;;
1032
1033 -localedir | --localedir | --localedi | --localed | --locale)
1034 ac_prev=localedir ;;
1035 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1036 localedir=$ac_optarg ;;
1037
1038 -localstatedir | --localstatedir | --localstatedi | --localstated \
1039 | --localstate | --localstat | --localsta | --localst | --locals)
1040 ac_prev=localstatedir ;;
1041 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1042 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1043 localstatedir=$ac_optarg ;;
1044
1045 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046 ac_prev=mandir ;;
1047 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1048 mandir=$ac_optarg ;;
1049
1050 -nfp | --nfp | --nf)
1051 # Obsolete; use --without-fp.
1052 with_fp=no ;;
1053
1054 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1055 | --no-cr | --no-c | -n)
1056 no_create=yes ;;
1057
1058 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1059 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060 no_recursion=yes ;;
1061
1062 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1063 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1064 | --oldin | --oldi | --old | --ol | --o)
1065 ac_prev=oldincludedir ;;
1066 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1067 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1068 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1069 oldincludedir=$ac_optarg ;;
1070
1071 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072 ac_prev=prefix ;;
1073 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1074 prefix=$ac_optarg ;;
1075
1076 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1077 | --program-pre | --program-pr | --program-p)
1078 ac_prev=program_prefix ;;
1079 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1080 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1081 program_prefix=$ac_optarg ;;
1082
1083 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1084 | --program-suf | --program-su | --program-s)
1085 ac_prev=program_suffix ;;
1086 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1087 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1088 program_suffix=$ac_optarg ;;
1089
1090 -program-transform-name | --program-transform-name \
1091 | --program-transform-nam | --program-transform-na \
1092 | --program-transform-n | --program-transform- \
1093 | --program-transform | --program-transfor \
1094 | --program-transfo | --program-transf \
1095 | --program-trans | --program-tran \
1096 | --progr-tra | --program-tr | --program-t)
1097 ac_prev=program_transform_name ;;
1098 -program-transform-name=* | --program-transform-name=* \
1099 | --program-transform-nam=* | --program-transform-na=* \
1100 | --program-transform-n=* | --program-transform-=* \
1101 | --program-transform=* | --program-transfor=* \
1102 | --program-transfo=* | --program-transf=* \
1103 | --program-trans=* | --program-tran=* \
1104 | --progr-tra=* | --program-tr=* | --program-t=*)
1105 program_transform_name=$ac_optarg ;;
1106
1107 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108 ac_prev=pdfdir ;;
1109 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1110 pdfdir=$ac_optarg ;;
1111
1112 -psdir | --psdir | --psdi | --psd | --ps)
1113 ac_prev=psdir ;;
1114 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115 psdir=$ac_optarg ;;
1116
1117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118 | -silent | --silent | --silen | --sile | --sil)
1119 silent=yes ;;
1120
1121 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122 ac_prev=sbindir ;;
1123 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124 | --sbi=* | --sb=*)
1125 sbindir=$ac_optarg ;;
1126
1127 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129 | --sharedst | --shareds | --shared | --share | --shar \
1130 | --sha | --sh)
1131 ac_prev=sharedstatedir ;;
1132 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135 | --sha=* | --sh=*)
1136 sharedstatedir=$ac_optarg ;;
1137
1138 -site | --site | --sit)
1139 ac_prev=site ;;
1140 -site=* | --site=* | --sit=*)
1141 site=$ac_optarg ;;
1142
1143 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144 ac_prev=srcdir ;;
1145 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1146 srcdir=$ac_optarg ;;
1147
1148 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149 | --syscon | --sysco | --sysc | --sys | --sy)
1150 ac_prev=sysconfdir ;;
1151 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1153 sysconfdir=$ac_optarg ;;
1154
1155 -target | --target | --targe | --targ | --tar | --ta | --t)
1156 ac_prev=target_alias ;;
1157 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1158 target_alias=$ac_optarg ;;
1159
1160 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161 verbose=yes ;;
1162
1163 -version | --version | --versio | --versi | --vers | -V)
1164 ac_init_version=: ;;
1165
1166 -with-* | --with-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid package name: $ac_useropt"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175"with_$ac_useropt"
1176"*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=\$ac_optarg ;;
1181
1182 -without-* | --without-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: $ac_useropt"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191"with_$ac_useropt"
1192"*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=no ;;
1197
1198 --x)
1199 # Obsolete; use --with-x.
1200 with_x=yes ;;
1201
1202 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1203 | --x-incl | --x-inc | --x-in | --x-i)
1204 ac_prev=x_includes ;;
1205 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1206 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1207 x_includes=$ac_optarg ;;
1208
1209 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1210 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1211 ac_prev=x_libraries ;;
1212 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1213 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1214 x_libraries=$ac_optarg ;;
1215
1216 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1217Try \`$0 --help' for more information"
1218 ;;
1219
1220 *=*)
1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222 # Reject names that are not valid shell variable names.
1223 case $ac_envvar in #(
1224 '' | [0-9]* | *[!_$as_cr_alnum]* )
1225 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1226 esac
1227 eval $ac_envvar=\$ac_optarg
1228 export $ac_envvar ;;
1229
1230 *)
1231 # FIXME: should be removed in autoconf 3.0.
1232 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1233 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1235 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1236 ;;
1237
1238 esac
1239done
1240
1241if test -n "$ac_prev"; then
1242 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1243 as_fn_error $? "missing argument to $ac_option"
1244fi
1245
1246if test -n "$ac_unrecognized_opts"; then
1247 case $enable_option_checking in
1248 no) ;;
1249 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1250 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251 esac
1252fi
1253
1254# Check all directory arguments for consistency.
1255for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir
1259do
1260 eval ac_val=\$$ac_var
1261 # Remove trailing slashes.
1262 case $ac_val in
1263 */ )
1264 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265 eval $ac_var=\$ac_val;;
1266 esac
1267 # Be sure to have absolute directory names.
1268 case $ac_val in
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271 esac
1272 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273done
1274
1275# There might be people who depend on the old broken behavior: `$host'
1276# used to hold the argument of --host etc.
1277# FIXME: To remove some day.
1278build=$build_alias
1279host=$host_alias
1280target=$target_alias
1281
1282# FIXME: To remove some day.
1283if test "x$host_alias" != x; then
1284 if test "x$build_alias" = x; then
1285 cross_compiling=maybe
1286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1288 fi
1289fi
1290
1291ac_tool_prefix=
1292test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294test "$silent" = yes && exec 6>/dev/null
1295
1296
1297ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298ac_ls_di=`ls -di .` &&
1299ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 as_fn_error $? "working directory cannot be determined"
1301test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 as_fn_error $? "pwd does not report name of working directory"
1303
1304
1305# Find the source files, if location was not specified.
1306if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314$as_echo X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\).*/{
1328 s//\1/
1329 q
1330 }
1331 s/.*/./; q'`
1332 srcdir=$ac_confdir
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 srcdir=..
1335 fi
1336else
1337 ac_srcdir_defaulted=no
1338fi
1339if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1342fi
1343ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1346 pwd)`
1347# When building in place, set srcdir=.
1348if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1350fi
1351# Remove unnecessary trailing slashes from srcdir.
1352# Double slashes in file names in object file debugging info
1353# mess up M-x gdb in Emacs.
1354case $srcdir in
1355*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356esac
1357for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362done
1363
1364#
1365# Report the --help message.
1366#
1367if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1370 cat <<_ACEOF
1371\`configure' configures ucommon 6.0.7 to adapt to many kinds of systems.
1372
1373Usage: $0 [OPTION]... [VAR=VALUE]...
1374
1375To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376VAR=VALUE. See below for descriptions of some of the useful variables.
1377
1378Defaults for the options are specified in brackets.
1379
1380Configuration:
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print \`checking ...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for \`--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1390
1391Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 @<:@@S|@ac_default_prefix@:>@
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 @<:@PREFIX@:>@
1396
1397By default, \`make install' will install all the files in
1398\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1399an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400for instance \`--prefix=\$HOME'.
1401
1402For better control, use the options below.
1403
1404Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/ucommon@:>@
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1424_ACEOF
1425
1426 cat <<\_ACEOF
1427
1428Program names:
1429 --program-prefix=PREFIX prepend PREFIX to installed program names
1430 --program-suffix=SUFFIX append SUFFIX to installed program names
1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1432
1433System types:
1434 --build=BUILD configure for building on BUILD [guessed]
1435 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1436 --target=TARGET configure for building compilers for TARGET [HOST]
1437_ACEOF
1438fi
1439
1440if test -n "$ac_init_help"; then
1441 case $ac_init_help in
1442 short | recursive ) echo "Configuration of ucommon 6.0.7:";;
1443 esac
1444 cat <<\_ACEOF
1445
1446Optional Features:
1447 --disable-option-checking ignore unrecognized --enable/--with options
1448 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1449 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1450 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1451 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1452 --enable-fast-install@<:@=PKGS@:>@
1453 optimize for fast installation @<:@default=yes@:>@
1454 --disable-libtool-lock avoid locking (might break parallel builds)
1455 --enable-dependency-tracking
1456 do not reject slow dependency extractors
1457 --disable-dependency-tracking
1458 speeds up one-time build
1459 --enable-silent-rules less verbose build output (undo: "make V=1")
1460 --disable-silent-rules verbose build output (undo: "make V=0")
1461 --enable-posix-timers enable posix timers
1462 --disable-stdcpp compile without stdc++ runtime overhead
1463 --enable-debug compile for debugging
1464 --enable-socks compile with socks proxy support
1465
1466 --enable-atomics enable gcc atomic support
1467
1468 --enable-pth always use GNU pth for threading
1469
1470
1471Optional Packages:
1472 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1473 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1474 --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use
1475 both@:>@
1476 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1477 --with-sysroot=DIR Search for dependent libraries within DIR
1478 (or the compiler's sysroot if not specified).
1479 --with-sslstack=lib specify which ssl stack to build
1480 --with-libc=path specify path to alternate libc
1481 --with-pkg-config enable support for pkg-config
1482
1483Some influential environment variables:
1484 CC C compiler command
1485 CFLAGS C compiler flags
1486 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1487 nonstandard directory <lib dir>
1488 LIBS libraries to pass to the linker, e.g. -l<library>
1489 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1490 you have headers in a nonstandard directory <include dir>
1491 CPP C preprocessor
1492 CXX C++ compiler command
1493 CXXFLAGS C++ compiler flags
1494 CXXCPP C++ preprocessor
1495 PKG_CONFIG path to pkg-config utility
1496 PKG_CONFIG_PATH
1497 directories to add to pkg-config's search path
1498 PKG_CONFIG_LIBDIR
1499 path overriding pkg-config's built-in search path
1500 OPENSSL_CFLAGS
1501 C compiler flags for OPENSSL, overriding pkg-config
1502 OPENSSL_LIBS
1503 linker flags for OPENSSL, overriding pkg-config
1504 GNUTLS_CFLAGS
1505 C compiler flags for GNUTLS, overriding pkg-config
1506 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
1507
1508Use these variables to override the choices made by `configure' or to help
1509it to find libraries and programs with nonstandard names/locations.
1510
1511Report bugs to the package provider.
1512_ACEOF
1513ac_status=$?
1514fi
1515
1516if test "$ac_init_help" = "recursive"; then
1517 # If there are subdirs, report their specific --help.
1518 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1519 test -d "$ac_dir" ||
1520 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1521 continue
1522 ac_builddir=.
1523
1524case "$ac_dir" in
1525.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1526*)
1527 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1528 # A ".." for each directory in $ac_dir_suffix.
1529 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1530 case $ac_top_builddir_sub in
1531 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1533 esac ;;
1534esac
1535ac_abs_top_builddir=$ac_pwd
1536ac_abs_builddir=$ac_pwd$ac_dir_suffix
1537# for backward compatibility:
1538ac_top_builddir=$ac_top_build_prefix
1539
1540case $srcdir in
1541 .) # We are building in place.
1542 ac_srcdir=.
1543 ac_top_srcdir=$ac_top_builddir_sub
1544 ac_abs_top_srcdir=$ac_pwd ;;
1545 [\\/]* | ?:[\\/]* ) # Absolute name.
1546 ac_srcdir=$srcdir$ac_dir_suffix;
1547 ac_top_srcdir=$srcdir
1548 ac_abs_top_srcdir=$srcdir ;;
1549 *) # Relative name.
1550 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1551 ac_top_srcdir=$ac_top_build_prefix$srcdir
1552 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1553esac
1554ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1555
1556 cd "$ac_dir" || { ac_status=$?; continue; }
1557 # Check for guested configure.
1558 if test -f "$ac_srcdir/configure.gnu"; then
1559 echo &&
1560 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1561 elif test -f "$ac_srcdir/configure"; then
1562 echo &&
1563 $SHELL "$ac_srcdir/configure" --help=recursive
1564 else
1565 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1566 fi || ac_status=$?
1567 cd "$ac_pwd" || { ac_status=$?; break; }
1568 done
1569fi
1570
1571test -n "$ac_init_help" && exit $ac_status
1572if $ac_init_version; then
1573 cat <<\_ACEOF
1574ucommon configure 6.0.7
1575generated by GNU Autoconf 2.69
1576
1577Copyright (C) 2012 Free Software Foundation, Inc.
1578This configure script is free software; the Free Software Foundation
1579gives unlimited permission to copy, distribute and modify it.
1580_ACEOF
1581 exit
1582fi
1583
1584## ------------------------ ##
1585## Autoconf initialization. ##
1586## ------------------------ ##
1587
1588@%:@ ac_fn_c_try_compile LINENO
1589@%:@ --------------------------
1590@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1591ac_fn_c_try_compile ()
1592{
1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1594 rm -f conftest.$ac_objext
1595 if { { ac_try="$ac_compile"
1596case "(($ac_try" in
1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1598 *) ac_try_echo=$ac_try;;
1599esac
1600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1601$as_echo "$ac_try_echo"; } >&5
1602 (eval "$ac_compile") 2>conftest.err
1603 ac_status=$?
1604 if test -s conftest.err; then
1605 grep -v '^ *+' conftest.err >conftest.er1
1606 cat conftest.er1 >&5
1607 mv -f conftest.er1 conftest.err
1608 fi
1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1610 test $ac_status = 0; } && {
1611 test -z "$ac_c_werror_flag" ||
1612 test ! -s conftest.err
1613 } && test -s conftest.$ac_objext; 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 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1622 as_fn_set_status $ac_retval
1623
1624} @%:@ ac_fn_c_try_compile
1625
1626@%:@ ac_fn_c_try_cpp LINENO
1627@%:@ ----------------------
1628@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1629ac_fn_c_try_cpp ()
1630{
1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1632 if { { ac_try="$ac_cpp conftest.$ac_ext"
1633case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636esac
1637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638$as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1640 ac_status=$?
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1645 fi
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } > conftest.i && {
1648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1650 }; then :
1651 ac_retval=0
1652else
1653 $as_echo "$as_me: failed program was:" >&5
1654sed 's/^/| /' conftest.$ac_ext >&5
1655
1656 ac_retval=1
1657fi
1658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1659 as_fn_set_status $ac_retval
1660
1661} @%:@ ac_fn_c_try_cpp
1662
1663@%:@ ac_fn_cxx_try_compile LINENO
1664@%:@ ----------------------------
1665@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1666ac_fn_cxx_try_compile ()
1667{
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 rm -f conftest.$ac_objext
1670 if { { ac_try="$ac_compile"
1671case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1674esac
1675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676$as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_compile") 2>conftest.err
1678 ac_status=$?
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1683 fi
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } && {
1686 test -z "$ac_cxx_werror_flag" ||
1687 test ! -s conftest.err
1688 } && test -s conftest.$ac_objext; then :
1689 ac_retval=0
1690else
1691 $as_echo "$as_me: failed program was:" >&5
1692sed 's/^/| /' conftest.$ac_ext >&5
1693
1694 ac_retval=1
1695fi
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1698
1699} @%:@ ac_fn_cxx_try_compile
1700
1701@%:@ ac_fn_cxx_try_cpp LINENO
1702@%:@ ------------------------
1703@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1704ac_fn_cxx_try_cpp ()
1705{
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 if { { ac_try="$ac_cpp conftest.$ac_ext"
1708case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711esac
1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713$as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1715 ac_status=$?
1716 if test -s conftest.err; then
1717 grep -v '^ *+' conftest.err >conftest.er1
1718 cat conftest.er1 >&5
1719 mv -f conftest.er1 conftest.err
1720 fi
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } > conftest.i && {
1723 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1724 test ! -s conftest.err
1725 }; then :
1726 ac_retval=0
1727else
1728 $as_echo "$as_me: failed program was:" >&5
1729sed 's/^/| /' conftest.$ac_ext >&5
1730
1731 ac_retval=1
1732fi
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 as_fn_set_status $ac_retval
1735
1736} @%:@ ac_fn_cxx_try_cpp
1737
1738@%:@ ac_fn_c_try_link LINENO
1739@%:@ -----------------------
1740@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1741ac_fn_c_try_link ()
1742{
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 rm -f conftest.$ac_objext conftest$ac_exeext
1745 if { { ac_try="$ac_link"
1746case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749esac
1750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751$as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_link") 2>conftest.err
1753 ac_status=$?
1754 if test -s conftest.err; then
1755 grep -v '^ *+' conftest.err >conftest.er1
1756 cat conftest.er1 >&5
1757 mv -f conftest.er1 conftest.err
1758 fi
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && {
1761 test -z "$ac_c_werror_flag" ||
1762 test ! -s conftest.err
1763 } && test -s conftest$ac_exeext && {
1764 test "$cross_compiling" = yes ||
1765 test -x conftest$ac_exeext
1766 }; then :
1767 ac_retval=0
1768else
1769 $as_echo "$as_me: failed program was:" >&5
1770sed 's/^/| /' conftest.$ac_ext >&5
1771
1772 ac_retval=1
1773fi
1774 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1775 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1776 # interfere with the next link command; also delete a directory that is
1777 # left behind by Apple's compiler. We do this before executing the actions.
1778 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 as_fn_set_status $ac_retval
1781
1782} @%:@ ac_fn_c_try_link
1783
1784@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1785@%:@ -------------------------------------------------------
1786@%:@ Tests whether HEADER exists and can be compiled using the include files in
1787@%:@ INCLUDES, setting the cache variable VAR accordingly.
1788ac_fn_c_check_header_compile ()
1789{
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792$as_echo_n "checking for $2... " >&6; }
1793if eval \${$3+:} false; then :
1794 $as_echo_n "(cached) " >&6
1795else
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797/* end confdefs.h. */
1798$4
1799@%:@include <$2>
1800_ACEOF
1801if ac_fn_c_try_compile "$LINENO"; then :
1802 eval "$3=yes"
1803else
1804 eval "$3=no"
1805fi
1806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807fi
1808eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810$as_echo "$ac_res" >&6; }
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812
1813} @%:@ ac_fn_c_check_header_compile
1814
1815@%:@ ac_fn_c_try_run LINENO
1816@%:@ ----------------------
1817@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1818@%:@ that executables *can* be run.
1819ac_fn_c_try_run ()
1820{
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 if { { ac_try="$ac_link"
1823case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1826esac
1827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828$as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_link") 2>&5
1830 ac_status=$?
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1833 { { case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836esac
1837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838$as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_try") 2>&5
1840 ac_status=$?
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; }; }; then :
1843 ac_retval=0
1844else
1845 $as_echo "$as_me: program exited with status $ac_status" >&5
1846 $as_echo "$as_me: failed program was:" >&5
1847sed 's/^/| /' conftest.$ac_ext >&5
1848
1849 ac_retval=$ac_status
1850fi
1851 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853 as_fn_set_status $ac_retval
1854
1855} @%:@ ac_fn_c_try_run
1856
1857@%:@ ac_fn_c_check_func LINENO FUNC VAR
1858@%:@ ----------------------------------
1859@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1860ac_fn_c_check_func ()
1861{
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864$as_echo_n "checking for $2... " >&6; }
1865if eval \${$3+:} false; then :
1866 $as_echo_n "(cached) " >&6
1867else
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869/* end confdefs.h. */
1870/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1871 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1872#define $2 innocuous_$2
1873
1874/* System header to define __stub macros and hopefully few prototypes,
1875 which can conflict with char $2 (); below.
1876 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1877 <limits.h> exists even on freestanding compilers. */
1878
1879#ifdef __STDC__
1880# include <limits.h>
1881#else
1882# include <assert.h>
1883#endif
1884
1885#undef $2
1886
1887/* Override any GCC internal prototype to avoid an error.
1888 Use char because int might match the return type of a GCC
1889 builtin and then its argument prototype would still apply. */
1890#ifdef __cplusplus
1891extern "C"
1892#endif
1893char $2 ();
1894/* The GNU C library defines this for functions which it implements
1895 to always fail with ENOSYS. Some functions are actually named
1896 something starting with __ and the normal name is an alias. */
1897#if defined __stub_$2 || defined __stub___$2
1898choke me
1899#endif
1900
1901int
1902main ()
1903{
1904return $2 ();
1905 ;
1906 return 0;
1907}
1908_ACEOF
1909if ac_fn_c_try_link "$LINENO"; then :
1910 eval "$3=yes"
1911else
1912 eval "$3=no"
1913fi
1914rm -f core conftest.err conftest.$ac_objext \
1915 conftest$ac_exeext conftest.$ac_ext
1916fi
1917eval ac_res=\$$3
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1919$as_echo "$ac_res" >&6; }
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921
1922} @%:@ ac_fn_c_check_func
1923
1924@%:@ ac_fn_cxx_try_link LINENO
1925@%:@ -------------------------
1926@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1927ac_fn_cxx_try_link ()
1928{
1929 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930 rm -f conftest.$ac_objext conftest$ac_exeext
1931 if { { ac_try="$ac_link"
1932case "(($ac_try" in
1933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934 *) ac_try_echo=$ac_try;;
1935esac
1936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937$as_echo "$ac_try_echo"; } >&5
1938 (eval "$ac_link") 2>conftest.err
1939 ac_status=$?
1940 if test -s conftest.err; then
1941 grep -v '^ *+' conftest.err >conftest.er1
1942 cat conftest.er1 >&5
1943 mv -f conftest.er1 conftest.err
1944 fi
1945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1946 test $ac_status = 0; } && {
1947 test -z "$ac_cxx_werror_flag" ||
1948 test ! -s conftest.err
1949 } && test -s conftest$ac_exeext && {
1950 test "$cross_compiling" = yes ||
1951 test -x conftest$ac_exeext
1952 }; then :
1953 ac_retval=0
1954else
1955 $as_echo "$as_me: failed program was:" >&5
1956sed 's/^/| /' conftest.$ac_ext >&5
1957
1958 ac_retval=1
1959fi
1960 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1961 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1962 # interfere with the next link command; also delete a directory that is
1963 # left behind by Apple's compiler. We do this before executing the actions.
1964 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1966 as_fn_set_status $ac_retval
1967
1968} @%:@ ac_fn_cxx_try_link
1969
1970@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1971@%:@ -------------------------------------------------------
1972@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1973@%:@ the include files in INCLUDES and setting the cache variable VAR
1974@%:@ accordingly.
1975ac_fn_c_check_header_mongrel ()
1976{
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 if eval \${$3+:} false; then :
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1980$as_echo_n "checking for $2... " >&6; }
1981if eval \${$3+:} false; then :
1982 $as_echo_n "(cached) " >&6
1983fi
1984eval ac_res=\$$3
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986$as_echo "$ac_res" >&6; }
1987else
1988 # Is the header compilable?
1989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1990$as_echo_n "checking $2 usability... " >&6; }
1991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992/* end confdefs.h. */
1993$4
1994@%:@include <$2>
1995_ACEOF
1996if ac_fn_c_try_compile "$LINENO"; then :
1997 ac_header_compiler=yes
1998else
1999 ac_header_compiler=no
2000fi
2001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2003$as_echo "$ac_header_compiler" >&6; }
2004
2005# Is the header present?
2006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2007$as_echo_n "checking $2 presence... " >&6; }
2008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009/* end confdefs.h. */
2010@%:@include <$2>
2011_ACEOF
2012if ac_fn_c_try_cpp "$LINENO"; then :
2013 ac_header_preproc=yes
2014else
2015 ac_header_preproc=no
2016fi
2017rm -f conftest.err conftest.i conftest.$ac_ext
2018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2019$as_echo "$ac_header_preproc" >&6; }
2020
2021# So? What about this header?
2022case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2023 yes:no: )
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2025$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2027$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2028 ;;
2029 no:yes:* )
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2031$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2033$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2035$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2037$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2039$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2040 ;;
2041esac
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043$as_echo_n "checking for $2... " >&6; }
2044if eval \${$3+:} false; then :
2045 $as_echo_n "(cached) " >&6
2046else
2047 eval "$3=\$ac_header_compiler"
2048fi
2049eval ac_res=\$$3
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051$as_echo "$ac_res" >&6; }
2052fi
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2054
2055} @%:@ ac_fn_c_check_header_mongrel
2056
2057@%:@ ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2058@%:@ ---------------------------------------------------------
2059@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
2060@%:@ the include files in INCLUDES and setting the cache variable VAR
2061@%:@ accordingly.
2062ac_fn_cxx_check_header_mongrel ()
2063{
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 if eval \${$3+:} false; then :
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067$as_echo_n "checking for $2... " >&6; }
2068if eval \${$3+:} false; then :
2069 $as_echo_n "(cached) " >&6
2070fi
2071eval ac_res=\$$3
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073$as_echo "$ac_res" >&6; }
2074else
2075 # Is the header compilable?
2076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2077$as_echo_n "checking $2 usability... " >&6; }
2078cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079/* end confdefs.h. */
2080$4
2081@%:@include <$2>
2082_ACEOF
2083if ac_fn_cxx_try_compile "$LINENO"; then :
2084 ac_header_compiler=yes
2085else
2086 ac_header_compiler=no
2087fi
2088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2090$as_echo "$ac_header_compiler" >&6; }
2091
2092# Is the header present?
2093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2094$as_echo_n "checking $2 presence... " >&6; }
2095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096/* end confdefs.h. */
2097@%:@include <$2>
2098_ACEOF
2099if ac_fn_cxx_try_cpp "$LINENO"; then :
2100 ac_header_preproc=yes
2101else
2102 ac_header_preproc=no
2103fi
2104rm -f conftest.err conftest.i conftest.$ac_ext
2105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2106$as_echo "$ac_header_preproc" >&6; }
2107
2108# So? What about this header?
2109case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2110 yes:no: )
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2112$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2114$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2115 ;;
2116 no:yes:* )
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2118$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2120$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2122$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2124$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2126$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2127 ;;
2128esac
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2130$as_echo_n "checking for $2... " >&6; }
2131if eval \${$3+:} false; then :
2132 $as_echo_n "(cached) " >&6
2133else
2134 eval "$3=\$ac_header_compiler"
2135fi
2136eval ac_res=\$$3
2137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2138$as_echo "$ac_res" >&6; }
2139fi
2140 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2141
2142} @%:@ ac_fn_cxx_check_header_mongrel
2143cat >config.log <<_ACEOF
2144This file contains any messages produced by compilers while
2145running configure, to aid debugging if configure makes a mistake.
2146
2147It was created by ucommon $as_me 6.0.7, which was
2148generated by GNU Autoconf 2.69. Invocation command line was
2149
2150 $ $0 $@
2151
2152_ACEOF
2153exec 5>>config.log
2154{
2155cat <<_ASUNAME
2156## --------- ##
2157## Platform. ##
2158## --------- ##
2159
2160hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2161uname -m = `(uname -m) 2>/dev/null || echo unknown`
2162uname -r = `(uname -r) 2>/dev/null || echo unknown`
2163uname -s = `(uname -s) 2>/dev/null || echo unknown`
2164uname -v = `(uname -v) 2>/dev/null || echo unknown`
2165
2166/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2167/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2168
2169/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2170/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2171/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2172/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2173/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2174/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2175/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2176
2177_ASUNAME
2178
2179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2180for as_dir in $PATH
2181do
2182 IFS=$as_save_IFS
2183 test -z "$as_dir" && as_dir=.
2184 $as_echo "PATH: $as_dir"
2185 done
2186IFS=$as_save_IFS
2187
2188} >&5
2189
2190cat >&5 <<_ACEOF
2191
2192
2193## ----------- ##
2194## Core tests. ##
2195## ----------- ##
2196
2197_ACEOF
2198
2199
2200# Keep a trace of the command line.
2201# Strip out --no-create and --no-recursion so they do not pile up.
2202# Strip out --silent because we don't want to record it for future runs.
2203# Also quote any args containing shell meta-characters.
2204# Make two passes to allow for proper duplicate-argument suppression.
2205ac_configure_args=
2206ac_configure_args0=
2207ac_configure_args1=
2208ac_must_keep_next=false
2209for ac_pass in 1 2
2210do
2211 for ac_arg
2212 do
2213 case $ac_arg in
2214 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2215 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2216 | -silent | --silent | --silen | --sile | --sil)
2217 continue ;;
2218 *\'*)
2219 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2220 esac
2221 case $ac_pass in
2222 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2223 2)
2224 as_fn_append ac_configure_args1 " '$ac_arg'"
2225 if test $ac_must_keep_next = true; then
2226 ac_must_keep_next=false # Got value, back to normal.
2227 else
2228 case $ac_arg in
2229 *=* | --config-cache | -C | -disable-* | --disable-* \
2230 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2231 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2232 | -with-* | --with-* | -without-* | --without-* | --x)
2233 case "$ac_configure_args0 " in
2234 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2235 esac
2236 ;;
2237 -* ) ac_must_keep_next=true ;;
2238 esac
2239 fi
2240 as_fn_append ac_configure_args " '$ac_arg'"
2241 ;;
2242 esac
2243 done
2244done
2245{ ac_configure_args0=; unset ac_configure_args0;}
2246{ ac_configure_args1=; unset ac_configure_args1;}
2247
2248# When interrupted or exit'd, cleanup temporary files, and complete
2249# config.log. We remove comments because anyway the quotes in there
2250# would cause problems or look ugly.
2251# WARNING: Use '\'' to represent an apostrophe within the trap.
2252# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2253trap 'exit_status=$?
2254 # Save into config.log some information that might help in debugging.
2255 {
2256 echo
2257
2258 $as_echo "## ---------------- ##
2259## Cache variables. ##
2260## ---------------- ##"
2261 echo
2262 # The following way of writing the cache mishandles newlines in values,
2263(
2264 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2265 eval ac_val=\$$ac_var
2266 case $ac_val in #(
2267 *${as_nl}*)
2268 case $ac_var in #(
2269 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2270$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2271 esac
2272 case $ac_var in #(
2273 _ | IFS | as_nl) ;; #(
2274 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2275 *) { eval $ac_var=; unset $ac_var;} ;;
2276 esac ;;
2277 esac
2278 done
2279 (set) 2>&1 |
2280 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2281 *${as_nl}ac_space=\ *)
2282 sed -n \
2283 "s/'\''/'\''\\\\'\'''\''/g;
2284 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2285 ;; #(
2286 *)
2287 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2288 ;;
2289 esac |
2290 sort
2291)
2292 echo
2293
2294 $as_echo "## ----------------- ##
2295## Output variables. ##
2296## ----------------- ##"
2297 echo
2298 for ac_var in $ac_subst_vars
2299 do
2300 eval ac_val=\$$ac_var
2301 case $ac_val in
2302 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2303 esac
2304 $as_echo "$ac_var='\''$ac_val'\''"
2305 done | sort
2306 echo
2307
2308 if test -n "$ac_subst_files"; then
2309 $as_echo "## ------------------- ##
2310## File substitutions. ##
2311## ------------------- ##"
2312 echo
2313 for ac_var in $ac_subst_files
2314 do
2315 eval ac_val=\$$ac_var
2316 case $ac_val in
2317 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2318 esac
2319 $as_echo "$ac_var='\''$ac_val'\''"
2320 done | sort
2321 echo
2322 fi
2323
2324 if test -s confdefs.h; then
2325 $as_echo "## ----------- ##
2326## confdefs.h. ##
2327## ----------- ##"
2328 echo
2329 cat confdefs.h
2330 echo
2331 fi
2332 test "$ac_signal" != 0 &&
2333 $as_echo "$as_me: caught signal $ac_signal"
2334 $as_echo "$as_me: exit $exit_status"
2335 } >&5
2336 rm -f core *.core core.conftest.* &&
2337 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2338 exit $exit_status
2339' 0
2340for ac_signal in 1 2 13 15; do
2341 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2342done
2343ac_signal=0
2344
2345# confdefs.h avoids OS command line length limits that DEFS can exceed.
2346rm -f -r conftest* confdefs.h
2347
2348$as_echo "/* confdefs.h */" > confdefs.h
2349
2350# Predefined preprocessor variables.
2351
2352cat >>confdefs.h <<_ACEOF
2353@%:@define PACKAGE_NAME "$PACKAGE_NAME"
2354_ACEOF
2355
2356cat >>confdefs.h <<_ACEOF
2357@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2358_ACEOF
2359
2360cat >>confdefs.h <<_ACEOF
2361@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2362_ACEOF
2363
2364cat >>confdefs.h <<_ACEOF
2365@%:@define PACKAGE_STRING "$PACKAGE_STRING"
2366_ACEOF
2367
2368cat >>confdefs.h <<_ACEOF
2369@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2370_ACEOF
2371
2372cat >>confdefs.h <<_ACEOF
2373@%:@define PACKAGE_URL "$PACKAGE_URL"
2374_ACEOF
2375
2376
2377# Let the site file select an alternate cache file if it wants to.
2378# Prefer an explicitly selected file to automatically selected ones.
2379ac_site_file1=NONE
2380ac_site_file2=NONE
2381if test -n "$CONFIG_SITE"; then
2382 # We do not want a PATH search for config.site.
2383 case $CONFIG_SITE in @%:@((
2384 -*) ac_site_file1=./$CONFIG_SITE;;
2385 */*) ac_site_file1=$CONFIG_SITE;;
2386 *) ac_site_file1=./$CONFIG_SITE;;
2387 esac
2388elif test "x$prefix" != xNONE; then
2389 ac_site_file1=$prefix/share/config.site
2390 ac_site_file2=$prefix/etc/config.site
2391else
2392 ac_site_file1=$ac_default_prefix/share/config.site
2393 ac_site_file2=$ac_default_prefix/etc/config.site
2394fi
2395for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2396do
2397 test "x$ac_site_file" = xNONE && continue
2398 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2400$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2401 sed 's/^/| /' "$ac_site_file" >&5
2402 . "$ac_site_file" \
2403 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2404$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2405as_fn_error $? "failed to load site script $ac_site_file
2406See \`config.log' for more details" "$LINENO" 5; }
2407 fi
2408done
2409
2410if test -r "$cache_file"; then
2411 # Some versions of bash will fail to source /dev/null (special files
2412 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2413 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2415$as_echo "$as_me: loading cache $cache_file" >&6;}
2416 case $cache_file in
2417 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2418 *) . "./$cache_file";;
2419 esac
2420 fi
2421else
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2423$as_echo "$as_me: creating cache $cache_file" >&6;}
2424 >$cache_file
2425fi
2426
2427# Check that the precious variables saved in the cache have kept the same
2428# value.
2429ac_cache_corrupted=false
2430for ac_var in $ac_precious_vars; do
2431 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2432 eval ac_new_set=\$ac_env_${ac_var}_set
2433 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2434 eval ac_new_val=\$ac_env_${ac_var}_value
2435 case $ac_old_set,$ac_new_set in
2436 set,)
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2438$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2439 ac_cache_corrupted=: ;;
2440 ,set)
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2442$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2443 ac_cache_corrupted=: ;;
2444 ,);;
2445 *)
2446 if test "x$ac_old_val" != "x$ac_new_val"; then
2447 # differences in whitespace do not lead to failure.
2448 ac_old_val_w=`echo x $ac_old_val`
2449 ac_new_val_w=`echo x $ac_new_val`
2450 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2452$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2453 ac_cache_corrupted=:
2454 else
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2456$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2457 eval $ac_var=\$ac_old_val
2458 fi
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2460$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2462$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2463 fi;;
2464 esac
2465 # Pass precious variables to config.status.
2466 if test "$ac_new_set" = set; then
2467 case $ac_new_val in
2468 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2469 *) ac_arg=$ac_var=$ac_new_val ;;
2470 esac
2471 case " $ac_configure_args " in
2472 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2473 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2474 esac
2475 fi
2476done
2477if $ac_cache_corrupted; then
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2479$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2481$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2482 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2483fi
2484## -------------------- ##
2485## Main body of script. ##
2486## -------------------- ##
2487
2488ac_ext=c
2489ac_cpp='$CPP $CPPFLAGS'
2490ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2491ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2492ac_compiler_gnu=$ac_cv_c_compiler_gnu
2493
2494
2495
2496
2497LT_VERSION="6:3:0"
2498OPENSSL_REQUIRES="0.9.7"
2499
2500ac_aux_dir=
2501for ac_dir in autoconf "$srcdir"/autoconf; do
2502 if test -f "$ac_dir/install-sh"; then
2503 ac_aux_dir=$ac_dir
2504 ac_install_sh="$ac_aux_dir/install-sh -c"
2505 break
2506 elif test -f "$ac_dir/install.sh"; then
2507 ac_aux_dir=$ac_dir
2508 ac_install_sh="$ac_aux_dir/install.sh -c"
2509 break
2510 elif test -f "$ac_dir/shtool"; then
2511 ac_aux_dir=$ac_dir
2512 ac_install_sh="$ac_aux_dir/shtool install -c"
2513 break
2514 fi
2515done
2516if test -z "$ac_aux_dir"; then
2517 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2518fi
2519
2520# These three variables are undocumented and unsupported,
2521# and are intended to be withdrawn in a future Autoconf release.
2522# They can cause serious problems if a builder's source tree is in a directory
2523# whose full name contains unusual characters.
2524ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2525ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2526ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2527
2528
2529# Make sure we can run config.sub.
2530$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2531 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2532
2533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2534$as_echo_n "checking build system type... " >&6; }
2535if ${ac_cv_build+:} false; then :
2536 $as_echo_n "(cached) " >&6
2537else
2538 ac_build_alias=$build_alias
2539test "x$ac_build_alias" = x &&
2540 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2541test "x$ac_build_alias" = x &&
2542 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2543ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2544 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2545
2546fi
2547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2548$as_echo "$ac_cv_build" >&6; }
2549case $ac_cv_build in
2550*-*-*) ;;
2551*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2552esac
2553build=$ac_cv_build
2554ac_save_IFS=$IFS; IFS='-'
2555set x $ac_cv_build
2556shift
2557build_cpu=$1
2558build_vendor=$2
2559shift; shift
2560# Remember, the first character of IFS is used to create $*,
2561# except with old shells:
2562build_os=$*
2563IFS=$ac_save_IFS
2564case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2565
2566
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2568$as_echo_n "checking host system type... " >&6; }
2569if ${ac_cv_host+:} false; then :
2570 $as_echo_n "(cached) " >&6
2571else
2572 if test "x$host_alias" = x; then
2573 ac_cv_host=$ac_cv_build
2574else
2575 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2576 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2577fi
2578
2579fi
2580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2581$as_echo "$ac_cv_host" >&6; }
2582case $ac_cv_host in
2583*-*-*) ;;
2584*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2585esac
2586host=$ac_cv_host
2587ac_save_IFS=$IFS; IFS='-'
2588set x $ac_cv_host
2589shift
2590host_cpu=$1
2591host_vendor=$2
2592shift; shift
2593# Remember, the first character of IFS is used to create $*,
2594# except with old shells:
2595host_os=$*
2596IFS=$ac_save_IFS
2597case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2598
2599
2600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2601$as_echo_n "checking target system type... " >&6; }
2602if ${ac_cv_target+:} false; then :
2603 $as_echo_n "(cached) " >&6
2604else
2605 if test "x$target_alias" = x; then
2606 ac_cv_target=$ac_cv_host
2607else
2608 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2609 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2610fi
2611
2612fi
2613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2614$as_echo "$ac_cv_target" >&6; }
2615case $ac_cv_target in
2616*-*-*) ;;
2617*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2618esac
2619target=$ac_cv_target
2620ac_save_IFS=$IFS; IFS='-'
2621set x $ac_cv_target
2622shift
2623target_cpu=$1
2624target_vendor=$2
2625shift; shift
2626# Remember, the first character of IFS is used to create $*,
2627# except with old shells:
2628target_os=$*
2629IFS=$ac_save_IFS
2630case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2631
2632
2633# The aliases save the names the user supplied, while $host etc.
2634# will get canonicalized.
2635test -n "$target_alias" &&
2636 test "$program_prefix$program_suffix$program_transform_name" = \
2637 NONENONEs,x,x, &&
2638 program_prefix=${target_alias}-
2639
2640ac_ext=c
2641ac_cpp='$CPP $CPPFLAGS'
2642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2644ac_compiler_gnu=$ac_cv_c_compiler_gnu
2645if test -n "$ac_tool_prefix"; then
2646 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2647set dummy ${ac_tool_prefix}gcc; ac_word=$2
2648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2649$as_echo_n "checking for $ac_word... " >&6; }
2650if ${ac_cv_prog_CC+:} false; then :
2651 $as_echo_n "(cached) " >&6
2652else
2653 if test -n "$CC"; then
2654 ac_cv_prog_CC="$CC" # Let the user override the test.
2655else
2656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657for as_dir in $PATH
2658do
2659 IFS=$as_save_IFS
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2663 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 break 2
2666 fi
2667done
2668 done
2669IFS=$as_save_IFS
2670
2671fi
2672fi
2673CC=$ac_cv_prog_CC
2674if test -n "$CC"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2676$as_echo "$CC" >&6; }
2677else
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679$as_echo "no" >&6; }
2680fi
2681
2682
2683fi
2684if test -z "$ac_cv_prog_CC"; then
2685 ac_ct_CC=$CC
2686 # Extract the first word of "gcc", so it can be a program name with args.
2687set dummy gcc; ac_word=$2
2688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689$as_echo_n "checking for $ac_word... " >&6; }
2690if ${ac_cv_prog_ac_ct_CC+:} false; then :
2691 $as_echo_n "(cached) " >&6
2692else
2693 if test -n "$ac_ct_CC"; then
2694 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2695else
2696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697for as_dir in $PATH
2698do
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2703 ac_cv_prog_ac_ct_CC="gcc"
2704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 break 2
2706 fi
2707done
2708 done
2709IFS=$as_save_IFS
2710
2711fi
2712fi
2713ac_ct_CC=$ac_cv_prog_ac_ct_CC
2714if test -n "$ac_ct_CC"; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2716$as_echo "$ac_ct_CC" >&6; }
2717else
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719$as_echo "no" >&6; }
2720fi
2721
2722 if test "x$ac_ct_CC" = x; then
2723 CC=""
2724 else
2725 case $cross_compiling:$ac_tool_warned in
2726yes:)
2727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2729ac_tool_warned=yes ;;
2730esac
2731 CC=$ac_ct_CC
2732 fi
2733else
2734 CC="$ac_cv_prog_CC"
2735fi
2736
2737if test -z "$CC"; then
2738 if test -n "$ac_tool_prefix"; then
2739 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2740set dummy ${ac_tool_prefix}cc; ac_word=$2
2741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742$as_echo_n "checking for $ac_word... " >&6; }
2743if ${ac_cv_prog_CC+:} false; then :
2744 $as_echo_n "(cached) " >&6
2745else
2746 if test -n "$CC"; then
2747 ac_cv_prog_CC="$CC" # Let the user override the test.
2748else
2749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750for as_dir in $PATH
2751do
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2756 ac_cv_prog_CC="${ac_tool_prefix}cc"
2757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2759 fi
2760done
2761 done
2762IFS=$as_save_IFS
2763
2764fi
2765fi
2766CC=$ac_cv_prog_CC
2767if test -n "$CC"; then
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2769$as_echo "$CC" >&6; }
2770else
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772$as_echo "no" >&6; }
2773fi
2774
2775
2776 fi
2777fi
2778if test -z "$CC"; then
2779 # Extract the first word of "cc", so it can be a program name with args.
2780set dummy cc; ac_word=$2
2781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2782$as_echo_n "checking for $ac_word... " >&6; }
2783if ${ac_cv_prog_CC+:} false; then :
2784 $as_echo_n "(cached) " >&6
2785else
2786 if test -n "$CC"; then
2787 ac_cv_prog_CC="$CC" # Let the user override the test.
2788else
2789 ac_prog_rejected=no
2790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791for as_dir in $PATH
2792do
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2797 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2798 ac_prog_rejected=yes
2799 continue
2800 fi
2801 ac_cv_prog_CC="cc"
2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 break 2
2804 fi
2805done
2806 done
2807IFS=$as_save_IFS
2808
2809if test $ac_prog_rejected = yes; then
2810 # We found a bogon in the path, so make sure we never use it.
2811 set dummy $ac_cv_prog_CC
2812 shift
2813 if test $@%:@ != 0; then
2814 # We chose a different compiler from the bogus one.
2815 # However, it has the same basename, so the bogon will be chosen
2816 # first if we set CC to just the basename; use the full file name.
2817 shift
2818 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2819 fi
2820fi
2821fi
2822fi
2823CC=$ac_cv_prog_CC
2824if test -n "$CC"; then
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2826$as_echo "$CC" >&6; }
2827else
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2829$as_echo "no" >&6; }
2830fi
2831
2832
2833fi
2834if test -z "$CC"; then
2835 if test -n "$ac_tool_prefix"; then
2836 for ac_prog in cl.exe
2837 do
2838 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2839set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841$as_echo_n "checking for $ac_word... " >&6; }
2842if ${ac_cv_prog_CC+:} false; then :
2843 $as_echo_n "(cached) " >&6
2844else
2845 if test -n "$CC"; then
2846 ac_cv_prog_CC="$CC" # Let the user override the test.
2847else
2848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849for as_dir in $PATH
2850do
2851 IFS=$as_save_IFS
2852 test -z "$as_dir" && as_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2855 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 break 2
2858 fi
2859done
2860 done
2861IFS=$as_save_IFS
2862
2863fi
2864fi
2865CC=$ac_cv_prog_CC
2866if test -n "$CC"; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2868$as_echo "$CC" >&6; }
2869else
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871$as_echo "no" >&6; }
2872fi
2873
2874
2875 test -n "$CC" && break
2876 done
2877fi
2878if test -z "$CC"; then
2879 ac_ct_CC=$CC
2880 for ac_prog in cl.exe
2881do
2882 # Extract the first word of "$ac_prog", so it can be a program name with args.
2883set dummy $ac_prog; ac_word=$2
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885$as_echo_n "checking for $ac_word... " >&6; }
2886if ${ac_cv_prog_ac_ct_CC+:} false; then :
2887 $as_echo_n "(cached) " >&6
2888else
2889 if test -n "$ac_ct_CC"; then
2890 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2891else
2892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893for as_dir in $PATH
2894do
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2899 ac_cv_prog_ac_ct_CC="$ac_prog"
2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2902 fi
2903done
2904 done
2905IFS=$as_save_IFS
2906
2907fi
2908fi
2909ac_ct_CC=$ac_cv_prog_ac_ct_CC
2910if test -n "$ac_ct_CC"; then
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2912$as_echo "$ac_ct_CC" >&6; }
2913else
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915$as_echo "no" >&6; }
2916fi
2917
2918
2919 test -n "$ac_ct_CC" && break
2920done
2921
2922 if test "x$ac_ct_CC" = x; then
2923 CC=""
2924 else
2925 case $cross_compiling:$ac_tool_warned in
2926yes:)
2927{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2928$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2929ac_tool_warned=yes ;;
2930esac
2931 CC=$ac_ct_CC
2932 fi
2933fi
2934
2935fi
2936
2937
2938test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2939$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2940as_fn_error $? "no acceptable C compiler found in \$PATH
2941See \`config.log' for more details" "$LINENO" 5; }
2942
2943# Provide some information about the compiler.
2944$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2945set X $ac_compile
2946ac_compiler=$2
2947for ac_option in --version -v -V -qversion; do
2948 { { ac_try="$ac_compiler $ac_option >&5"
2949case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2952esac
2953eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2954$as_echo "$ac_try_echo"; } >&5
2955 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2956 ac_status=$?
2957 if test -s conftest.err; then
2958 sed '10a\
2959... rest of stderr output deleted ...
2960 10q' conftest.err >conftest.er1
2961 cat conftest.er1 >&5
2962 fi
2963 rm -f conftest.er1 conftest.err
2964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2965 test $ac_status = 0; }
2966done
2967
2968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2969/* end confdefs.h. */
2970
2971int
2972main ()
2973{
2974
2975 ;
2976 return 0;
2977}
2978_ACEOF
2979ac_clean_files_save=$ac_clean_files
2980ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2981# Try to create an executable without -o first, disregard a.out.
2982# It will help us diagnose broken compilers, and finding out an intuition
2983# of exeext.
2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2985$as_echo_n "checking whether the C compiler works... " >&6; }
2986ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2987
2988# The possible output files:
2989ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2990
2991ac_rmfiles=
2992for ac_file in $ac_files
2993do
2994 case $ac_file in
2995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2996 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2997 esac
2998done
2999rm -f $ac_rmfiles
3000
3001if { { ac_try="$ac_link_default"
3002case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005esac
3006eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3007$as_echo "$ac_try_echo"; } >&5
3008 (eval "$ac_link_default") 2>&5
3009 ac_status=$?
3010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3011 test $ac_status = 0; }; then :
3012 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3013# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3014# in a Makefile. We should not override ac_cv_exeext if it was cached,
3015# so that the user can short-circuit this test for compilers unknown to
3016# Autoconf.
3017for ac_file in $ac_files ''
3018do
3019 test -f "$ac_file" || continue
3020 case $ac_file in
3021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3022 ;;
3023 [ab].out )
3024 # We found the default executable, but exeext='' is most
3025 # certainly right.
3026 break;;
3027 *.* )
3028 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3029 then :; else
3030 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3031 fi
3032 # We set ac_cv_exeext here because the later test for it is not
3033 # safe: cross compilers may not add the suffix if given an `-o'
3034 # argument, so we may need to know it at that point already.
3035 # Even if this section looks crufty: it has the advantage of
3036 # actually working.
3037 break;;
3038 * )
3039 break;;
3040 esac
3041done
3042test "$ac_cv_exeext" = no && ac_cv_exeext=
3043
3044else
3045 ac_file=''
3046fi
3047if test -z "$ac_file"; then :
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3049$as_echo "no" >&6; }
3050$as_echo "$as_me: failed program was:" >&5
3051sed 's/^/| /' conftest.$ac_ext >&5
3052
3053{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3054$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3055as_fn_error 77 "C compiler cannot create executables
3056See \`config.log' for more details" "$LINENO" 5; }
3057else
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3059$as_echo "yes" >&6; }
3060fi
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3062$as_echo_n "checking for C compiler default output file name... " >&6; }
3063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3064$as_echo "$ac_file" >&6; }
3065ac_exeext=$ac_cv_exeext
3066
3067rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3068ac_clean_files=$ac_clean_files_save
3069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3070$as_echo_n "checking for suffix of executables... " >&6; }
3071if { { ac_try="$ac_link"
3072case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3075esac
3076eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3077$as_echo "$ac_try_echo"; } >&5
3078 (eval "$ac_link") 2>&5
3079 ac_status=$?
3080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3081 test $ac_status = 0; }; then :
3082 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3083# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3084# work properly (i.e., refer to `conftest.exe'), while it won't with
3085# `rm'.
3086for ac_file in conftest.exe conftest conftest.*; do
3087 test -f "$ac_file" || continue
3088 case $ac_file in
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3090 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3091 break;;
3092 * ) break;;
3093 esac
3094done
3095else
3096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3098as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3099See \`config.log' for more details" "$LINENO" 5; }
3100fi
3101rm -f conftest conftest$ac_cv_exeext
3102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3103$as_echo "$ac_cv_exeext" >&6; }
3104
3105rm -f conftest.$ac_ext
3106EXEEXT=$ac_cv_exeext
3107ac_exeext=$EXEEXT
3108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109/* end confdefs.h. */
3110@%:@include <stdio.h>
3111int
3112main ()
3113{
3114FILE *f = fopen ("conftest.out", "w");
3115 return ferror (f) || fclose (f) != 0;
3116
3117 ;
3118 return 0;
3119}
3120_ACEOF
3121ac_clean_files="$ac_clean_files conftest.out"
3122# Check that the compiler produces executables we can run. If not, either
3123# the compiler is broken, or we cross compile.
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3125$as_echo_n "checking whether we are cross compiling... " >&6; }
3126if test "$cross_compiling" != yes; then
3127 { { ac_try="$ac_link"
3128case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131esac
3132eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3133$as_echo "$ac_try_echo"; } >&5
3134 (eval "$ac_link") 2>&5
3135 ac_status=$?
3136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3137 test $ac_status = 0; }
3138 if { ac_try='./conftest$ac_cv_exeext'
3139 { { case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3142esac
3143eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3144$as_echo "$ac_try_echo"; } >&5
3145 (eval "$ac_try") 2>&5
3146 ac_status=$?
3147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3148 test $ac_status = 0; }; }; then
3149 cross_compiling=no
3150 else
3151 if test "$cross_compiling" = maybe; then
3152 cross_compiling=yes
3153 else
3154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3155$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156as_fn_error $? "cannot run C compiled programs.
3157If you meant to cross compile, use \`--host'.
3158See \`config.log' for more details" "$LINENO" 5; }
3159 fi
3160 fi
3161fi
3162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3163$as_echo "$cross_compiling" >&6; }
3164
3165rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3166ac_clean_files=$ac_clean_files_save
3167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3168$as_echo_n "checking for suffix of object files... " >&6; }
3169if ${ac_cv_objext+:} false; then :
3170 $as_echo_n "(cached) " >&6
3171else
3172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173/* end confdefs.h. */
3174
3175int
3176main ()
3177{
3178
3179 ;
3180 return 0;
3181}
3182_ACEOF
3183rm -f conftest.o conftest.obj
3184if { { ac_try="$ac_compile"
3185case "(($ac_try" in
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3188esac
3189eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3190$as_echo "$ac_try_echo"; } >&5
3191 (eval "$ac_compile") 2>&5
3192 ac_status=$?
3193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3194 test $ac_status = 0; }; then :
3195 for ac_file in conftest.o conftest.obj conftest.*; do
3196 test -f "$ac_file" || continue;
3197 case $ac_file in
3198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3199 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3200 break;;
3201 esac
3202done
3203else
3204 $as_echo "$as_me: failed program was:" >&5
3205sed 's/^/| /' conftest.$ac_ext >&5
3206
3207{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3208$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3209as_fn_error $? "cannot compute suffix of object files: cannot compile
3210See \`config.log' for more details" "$LINENO" 5; }
3211fi
3212rm -f conftest.$ac_cv_objext conftest.$ac_ext
3213fi
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3215$as_echo "$ac_cv_objext" >&6; }
3216OBJEXT=$ac_cv_objext
3217ac_objext=$OBJEXT
3218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3219$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3220if ${ac_cv_c_compiler_gnu+:} false; then :
3221 $as_echo_n "(cached) " >&6
3222else
3223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224/* end confdefs.h. */
3225
3226int
3227main ()
3228{
3229#ifndef __GNUC__
3230 choke me
3231#endif
3232
3233 ;
3234 return 0;
3235}
3236_ACEOF
3237if ac_fn_c_try_compile "$LINENO"; then :
3238 ac_compiler_gnu=yes
3239else
3240 ac_compiler_gnu=no
3241fi
3242rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243ac_cv_c_compiler_gnu=$ac_compiler_gnu
3244
3245fi
3246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3247$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3248if test $ac_compiler_gnu = yes; then
3249 GCC=yes
3250else
3251 GCC=
3252fi
3253ac_test_CFLAGS=${CFLAGS+set}
3254ac_save_CFLAGS=$CFLAGS
3255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3256$as_echo_n "checking whether $CC accepts -g... " >&6; }
3257if ${ac_cv_prog_cc_g+:} false; then :
3258 $as_echo_n "(cached) " >&6
3259else
3260 ac_save_c_werror_flag=$ac_c_werror_flag
3261 ac_c_werror_flag=yes
3262 ac_cv_prog_cc_g=no
3263 CFLAGS="-g"
3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265/* end confdefs.h. */
3266
3267int
3268main ()
3269{
3270
3271 ;
3272 return 0;
3273}
3274_ACEOF
3275if ac_fn_c_try_compile "$LINENO"; then :
3276 ac_cv_prog_cc_g=yes
3277else
3278 CFLAGS=""
3279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3280/* end confdefs.h. */
3281
3282int
3283main ()
3284{
3285
3286 ;
3287 return 0;
3288}
3289_ACEOF
3290if ac_fn_c_try_compile "$LINENO"; then :
3291
3292else
3293 ac_c_werror_flag=$ac_save_c_werror_flag
3294 CFLAGS="-g"
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296/* end confdefs.h. */
3297
3298int
3299main ()
3300{
3301
3302 ;
3303 return 0;
3304}
3305_ACEOF
3306if ac_fn_c_try_compile "$LINENO"; then :
3307 ac_cv_prog_cc_g=yes
3308fi
3309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3310fi
3311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3312fi
3313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3314 ac_c_werror_flag=$ac_save_c_werror_flag
3315fi
3316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3317$as_echo "$ac_cv_prog_cc_g" >&6; }
3318if test "$ac_test_CFLAGS" = set; then
3319 CFLAGS=$ac_save_CFLAGS
3320elif test $ac_cv_prog_cc_g = yes; then
3321 if test "$GCC" = yes; then
3322 CFLAGS="-g -O2"
3323 else
3324 CFLAGS="-g"
3325 fi
3326else
3327 if test "$GCC" = yes; then
3328 CFLAGS="-O2"
3329 else
3330 CFLAGS=
3331 fi
3332fi
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3334$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3335if ${ac_cv_prog_cc_c89+:} false; then :
3336 $as_echo_n "(cached) " >&6
3337else
3338 ac_cv_prog_cc_c89=no
3339ac_save_CC=$CC
3340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3341/* end confdefs.h. */
3342#include <stdarg.h>
3343#include <stdio.h>
3344struct stat;
3345/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3346struct buf { int x; };
3347FILE * (*rcsopen) (struct buf *, struct stat *, int);
3348static char *e (p, i)
3349 char **p;
3350 int i;
3351{
3352 return p[i];
3353}
3354static char *f (char * (*g) (char **, int), char **p, ...)
3355{
3356 char *s;
3357 va_list v;
3358 va_start (v,p);
3359 s = g (p, va_arg (v,int));
3360 va_end (v);
3361 return s;
3362}
3363
3364/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3365 function prototypes and stuff, but not '\xHH' hex character constants.
3366 These don't provoke an error unfortunately, instead are silently treated
3367 as 'x'. The following induces an error, until -std is added to get
3368 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3369 array size at least. It's necessary to write '\x00'==0 to get something
3370 that's true only with -std. */
3371int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3372
3373/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3374 inside strings and character constants. */
3375#define FOO(x) 'x'
3376int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3377
3378int test (int i, double x);
3379struct s1 {int (*f) (int a);};
3380struct s2 {int (*f) (double a);};
3381int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3382int argc;
3383char **argv;
3384int
3385main ()
3386{
3387return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3388 ;
3389 return 0;
3390}
3391_ACEOF
3392for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3393 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3394do
3395 CC="$ac_save_CC $ac_arg"
3396 if ac_fn_c_try_compile "$LINENO"; then :
3397 ac_cv_prog_cc_c89=$ac_arg
3398fi
3399rm -f core conftest.err conftest.$ac_objext
3400 test "x$ac_cv_prog_cc_c89" != "xno" && break
3401done
3402rm -f conftest.$ac_ext
3403CC=$ac_save_CC
3404
3405fi
3406# AC_CACHE_VAL
3407case "x$ac_cv_prog_cc_c89" in
3408 x)
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3410$as_echo "none needed" >&6; } ;;
3411 xno)
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3413$as_echo "unsupported" >&6; } ;;
3414 *)
3415 CC="$CC $ac_cv_prog_cc_c89"
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3417$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3418esac
3419if test "x$ac_cv_prog_cc_c89" != xno; then :
3420
3421fi
3422
3423ac_ext=c
3424ac_cpp='$CPP $CPPFLAGS'
3425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427ac_compiler_gnu=$ac_cv_c_compiler_gnu
3428
3429ac_ext=c
3430ac_cpp='$CPP $CPPFLAGS'
3431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3435$as_echo_n "checking how to run the C preprocessor... " >&6; }
3436# On Suns, sometimes $CPP names a directory.
3437if test -n "$CPP" && test -d "$CPP"; then
3438 CPP=
3439fi
3440if test -z "$CPP"; then
3441 if ${ac_cv_prog_CPP+:} false; then :
3442 $as_echo_n "(cached) " >&6
3443else
3444 # Double quotes because CPP needs to be expanded
3445 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3446 do
3447 ac_preproc_ok=false
3448for ac_c_preproc_warn_flag in '' yes
3449do
3450 # Use a header file that comes with gcc, so configuring glibc
3451 # with a fresh cross-compiler works.
3452 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3453 # <limits.h> exists even on freestanding compilers.
3454 # On the NeXT, cc -E runs the code through the compiler's parser,
3455 # not just through cpp. "Syntax error" is here to catch this case.
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457/* end confdefs.h. */
3458@%:@ifdef __STDC__
3459@%:@ include <limits.h>
3460@%:@else
3461@%:@ include <assert.h>
3462@%:@endif
3463 Syntax error
3464_ACEOF
3465if ac_fn_c_try_cpp "$LINENO"; then :
3466
3467else
3468 # Broken: fails on valid input.
3469continue
3470fi
3471rm -f conftest.err conftest.i conftest.$ac_ext
3472
3473 # OK, works on sane cases. Now check whether nonexistent headers
3474 # can be detected and how.
3475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3476/* end confdefs.h. */
3477@%:@include <ac_nonexistent.h>
3478_ACEOF
3479if ac_fn_c_try_cpp "$LINENO"; then :
3480 # Broken: success on invalid input.
3481continue
3482else
3483 # Passes both tests.
3484ac_preproc_ok=:
3485break
3486fi
3487rm -f conftest.err conftest.i conftest.$ac_ext
3488
3489done
3490# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3491rm -f conftest.i conftest.err conftest.$ac_ext
3492if $ac_preproc_ok; then :
3493 break
3494fi
3495
3496 done
3497 ac_cv_prog_CPP=$CPP
3498
3499fi
3500 CPP=$ac_cv_prog_CPP
3501else
3502 ac_cv_prog_CPP=$CPP
3503fi
3504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3505$as_echo "$CPP" >&6; }
3506ac_preproc_ok=false
3507for ac_c_preproc_warn_flag in '' yes
3508do
3509 # Use a header file that comes with gcc, so configuring glibc
3510 # with a fresh cross-compiler works.
3511 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3512 # <limits.h> exists even on freestanding compilers.
3513 # On the NeXT, cc -E runs the code through the compiler's parser,
3514 # not just through cpp. "Syntax error" is here to catch this case.
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516/* end confdefs.h. */
3517@%:@ifdef __STDC__
3518@%:@ include <limits.h>
3519@%:@else
3520@%:@ include <assert.h>
3521@%:@endif
3522 Syntax error
3523_ACEOF
3524if ac_fn_c_try_cpp "$LINENO"; then :
3525
3526else
3527 # Broken: fails on valid input.
3528continue
3529fi
3530rm -f conftest.err conftest.i conftest.$ac_ext
3531
3532 # OK, works on sane cases. Now check whether nonexistent headers
3533 # can be detected and how.
3534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535/* end confdefs.h. */
3536@%:@include <ac_nonexistent.h>
3537_ACEOF
3538if ac_fn_c_try_cpp "$LINENO"; then :
3539 # Broken: success on invalid input.
3540continue
3541else
3542 # Passes both tests.
3543ac_preproc_ok=:
3544break
3545fi
3546rm -f conftest.err conftest.i conftest.$ac_ext
3547
3548done
3549# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3550rm -f conftest.i conftest.err conftest.$ac_ext
3551if $ac_preproc_ok; then :
3552
3553else
3554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3556as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3557See \`config.log' for more details" "$LINENO" 5; }
3558fi
3559
3560ac_ext=c
3561ac_cpp='$CPP $CPPFLAGS'
3562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3564ac_compiler_gnu=$ac_cv_c_compiler_gnu
3565
3566ac_ext=c
3567ac_cpp='$CPP $CPPFLAGS'
3568ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3569ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3570ac_compiler_gnu=$ac_cv_c_compiler_gnu
3571if test -n "$ac_tool_prefix"; then
3572 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3573set dummy ${ac_tool_prefix}gcc; ac_word=$2
3574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575$as_echo_n "checking for $ac_word... " >&6; }
3576if ${ac_cv_prog_CC+:} false; then :
3577 $as_echo_n "(cached) " >&6
3578else
3579 if test -n "$CC"; then
3580 ac_cv_prog_CC="$CC" # Let the user override the test.
3581else
3582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583for as_dir in $PATH
3584do
3585 IFS=$as_save_IFS
3586 test -z "$as_dir" && as_dir=.
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3589 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3591 break 2
3592 fi
3593done
3594 done
3595IFS=$as_save_IFS
3596
3597fi
3598fi
3599CC=$ac_cv_prog_CC
3600if test -n "$CC"; then
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3602$as_echo "$CC" >&6; }
3603else
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3605$as_echo "no" >&6; }
3606fi
3607
3608
3609fi
3610if test -z "$ac_cv_prog_CC"; then
3611 ac_ct_CC=$CC
3612 # Extract the first word of "gcc", so it can be a program name with args.
3613set dummy gcc; ac_word=$2
3614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3615$as_echo_n "checking for $ac_word... " >&6; }
3616if ${ac_cv_prog_ac_ct_CC+:} false; then :
3617 $as_echo_n "(cached) " >&6
3618else
3619 if test -n "$ac_ct_CC"; then
3620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3621else
3622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623for as_dir in $PATH
3624do
3625 IFS=$as_save_IFS
3626 test -z "$as_dir" && as_dir=.
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3629 ac_cv_prog_ac_ct_CC="gcc"
3630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3631 break 2
3632 fi
3633done
3634 done
3635IFS=$as_save_IFS
3636
3637fi
3638fi
3639ac_ct_CC=$ac_cv_prog_ac_ct_CC
3640if test -n "$ac_ct_CC"; then
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3642$as_echo "$ac_ct_CC" >&6; }
3643else
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645$as_echo "no" >&6; }
3646fi
3647
3648 if test "x$ac_ct_CC" = x; then
3649 CC=""
3650 else
3651 case $cross_compiling:$ac_tool_warned in
3652yes:)
3653{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3654$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3655ac_tool_warned=yes ;;
3656esac
3657 CC=$ac_ct_CC
3658 fi
3659else
3660 CC="$ac_cv_prog_CC"
3661fi
3662
3663if test -z "$CC"; then
3664 if test -n "$ac_tool_prefix"; then
3665 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3666set dummy ${ac_tool_prefix}cc; ac_word=$2
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3668$as_echo_n "checking for $ac_word... " >&6; }
3669if ${ac_cv_prog_CC+:} false; then :
3670 $as_echo_n "(cached) " >&6
3671else
3672 if test -n "$CC"; then
3673 ac_cv_prog_CC="$CC" # Let the user override the test.
3674else
3675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676for as_dir in $PATH
3677do
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3682 ac_cv_prog_CC="${ac_tool_prefix}cc"
3683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 break 2
3685 fi
3686done
3687 done
3688IFS=$as_save_IFS
3689
3690fi
3691fi
3692CC=$ac_cv_prog_CC
3693if test -n "$CC"; then
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3695$as_echo "$CC" >&6; }
3696else
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698$as_echo "no" >&6; }
3699fi
3700
3701
3702 fi
3703fi
3704if test -z "$CC"; then
3705 # Extract the first word of "cc", so it can be a program name with args.
3706set dummy cc; ac_word=$2
3707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3708$as_echo_n "checking for $ac_word... " >&6; }
3709if ${ac_cv_prog_CC+:} false; then :
3710 $as_echo_n "(cached) " >&6
3711else
3712 if test -n "$CC"; then
3713 ac_cv_prog_CC="$CC" # Let the user override the test.
3714else
3715 ac_prog_rejected=no
3716as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3717for as_dir in $PATH
3718do
3719 IFS=$as_save_IFS
3720 test -z "$as_dir" && as_dir=.
3721 for ac_exec_ext in '' $ac_executable_extensions; do
3722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3723 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3724 ac_prog_rejected=yes
3725 continue
3726 fi
3727 ac_cv_prog_CC="cc"
3728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3729 break 2
3730 fi
3731done
3732 done
3733IFS=$as_save_IFS
3734
3735if test $ac_prog_rejected = yes; then
3736 # We found a bogon in the path, so make sure we never use it.
3737 set dummy $ac_cv_prog_CC
3738 shift
3739 if test $@%:@ != 0; then
3740 # We chose a different compiler from the bogus one.
3741 # However, it has the same basename, so the bogon will be chosen
3742 # first if we set CC to just the basename; use the full file name.
3743 shift
3744 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3745 fi
3746fi
3747fi
3748fi
3749CC=$ac_cv_prog_CC
3750if test -n "$CC"; then
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3752$as_echo "$CC" >&6; }
3753else
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3755$as_echo "no" >&6; }
3756fi
3757
3758
3759fi
3760if test -z "$CC"; then
3761 if test -n "$ac_tool_prefix"; then
3762 for ac_prog in cl.exe
3763 do
3764 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3765set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3767$as_echo_n "checking for $ac_word... " >&6; }
3768if ${ac_cv_prog_CC+:} false; then :
3769 $as_echo_n "(cached) " >&6
3770else
3771 if test -n "$CC"; then
3772 ac_cv_prog_CC="$CC" # Let the user override the test.
3773else
3774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775for as_dir in $PATH
3776do
3777 IFS=$as_save_IFS
3778 test -z "$as_dir" && as_dir=.
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3781 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 break 2
3784 fi
3785done
3786 done
3787IFS=$as_save_IFS
3788
3789fi
3790fi
3791CC=$ac_cv_prog_CC
3792if test -n "$CC"; then
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3794$as_echo "$CC" >&6; }
3795else
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3797$as_echo "no" >&6; }
3798fi
3799
3800
3801 test -n "$CC" && break
3802 done
3803fi
3804if test -z "$CC"; then
3805 ac_ct_CC=$CC
3806 for ac_prog in cl.exe
3807do
3808 # Extract the first word of "$ac_prog", so it can be a program name with args.
3809set dummy $ac_prog; ac_word=$2
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811$as_echo_n "checking for $ac_word... " >&6; }
3812if ${ac_cv_prog_ac_ct_CC+:} false; then :
3813 $as_echo_n "(cached) " >&6
3814else
3815 if test -n "$ac_ct_CC"; then
3816 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3817else
3818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819for as_dir in $PATH
3820do
3821 IFS=$as_save_IFS
3822 test -z "$as_dir" && as_dir=.
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3825 ac_cv_prog_ac_ct_CC="$ac_prog"
3826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3827 break 2
3828 fi
3829done
3830 done
3831IFS=$as_save_IFS
3832
3833fi
3834fi
3835ac_ct_CC=$ac_cv_prog_ac_ct_CC
3836if test -n "$ac_ct_CC"; then
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3838$as_echo "$ac_ct_CC" >&6; }
3839else
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841$as_echo "no" >&6; }
3842fi
3843
3844
3845 test -n "$ac_ct_CC" && break
3846done
3847
3848 if test "x$ac_ct_CC" = x; then
3849 CC=""
3850 else
3851 case $cross_compiling:$ac_tool_warned in
3852yes:)
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3854$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3855ac_tool_warned=yes ;;
3856esac
3857 CC=$ac_ct_CC
3858 fi
3859fi
3860
3861fi
3862
3863
3864test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3865$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3866as_fn_error $? "no acceptable C compiler found in \$PATH
3867See \`config.log' for more details" "$LINENO" 5; }
3868
3869# Provide some information about the compiler.
3870$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3871set X $ac_compile
3872ac_compiler=$2
3873for ac_option in --version -v -V -qversion; do
3874 { { ac_try="$ac_compiler $ac_option >&5"
3875case "(($ac_try" in
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3878esac
3879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880$as_echo "$ac_try_echo"; } >&5
3881 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3882 ac_status=$?
3883 if test -s conftest.err; then
3884 sed '10a\
3885... rest of stderr output deleted ...
3886 10q' conftest.err >conftest.er1
3887 cat conftest.er1 >&5
3888 fi
3889 rm -f conftest.er1 conftest.err
3890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3891 test $ac_status = 0; }
3892done
3893
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3895$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3896if ${ac_cv_c_compiler_gnu+:} false; then :
3897 $as_echo_n "(cached) " >&6
3898else
3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900/* end confdefs.h. */
3901
3902int
3903main ()
3904{
3905#ifndef __GNUC__
3906 choke me
3907#endif
3908
3909 ;
3910 return 0;
3911}
3912_ACEOF
3913if ac_fn_c_try_compile "$LINENO"; then :
3914 ac_compiler_gnu=yes
3915else
3916 ac_compiler_gnu=no
3917fi
3918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919ac_cv_c_compiler_gnu=$ac_compiler_gnu
3920
3921fi
3922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3923$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3924if test $ac_compiler_gnu = yes; then
3925 GCC=yes
3926else
3927 GCC=
3928fi
3929ac_test_CFLAGS=${CFLAGS+set}
3930ac_save_CFLAGS=$CFLAGS
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3932$as_echo_n "checking whether $CC accepts -g... " >&6; }
3933if ${ac_cv_prog_cc_g+:} false; then :
3934 $as_echo_n "(cached) " >&6
3935else
3936 ac_save_c_werror_flag=$ac_c_werror_flag
3937 ac_c_werror_flag=yes
3938 ac_cv_prog_cc_g=no
3939 CFLAGS="-g"
3940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941/* end confdefs.h. */
3942
3943int
3944main ()
3945{
3946
3947 ;
3948 return 0;
3949}
3950_ACEOF
3951if ac_fn_c_try_compile "$LINENO"; then :
3952 ac_cv_prog_cc_g=yes
3953else
3954 CFLAGS=""
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956/* end confdefs.h. */
3957
3958int
3959main ()
3960{
3961
3962 ;
3963 return 0;
3964}
3965_ACEOF
3966if ac_fn_c_try_compile "$LINENO"; then :
3967
3968else
3969 ac_c_werror_flag=$ac_save_c_werror_flag
3970 CFLAGS="-g"
3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972/* end confdefs.h. */
3973
3974int
3975main ()
3976{
3977
3978 ;
3979 return 0;
3980}
3981_ACEOF
3982if ac_fn_c_try_compile "$LINENO"; then :
3983 ac_cv_prog_cc_g=yes
3984fi
3985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986fi
3987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988fi
3989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3990 ac_c_werror_flag=$ac_save_c_werror_flag
3991fi
3992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3993$as_echo "$ac_cv_prog_cc_g" >&6; }
3994if test "$ac_test_CFLAGS" = set; then
3995 CFLAGS=$ac_save_CFLAGS
3996elif test $ac_cv_prog_cc_g = yes; then
3997 if test "$GCC" = yes; then
3998 CFLAGS="-g -O2"
3999 else
4000 CFLAGS="-g"
4001 fi
4002else
4003 if test "$GCC" = yes; then
4004 CFLAGS="-O2"
4005 else
4006 CFLAGS=
4007 fi
4008fi
4009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4010$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4011if ${ac_cv_prog_cc_c89+:} false; then :
4012 $as_echo_n "(cached) " >&6
4013else
4014 ac_cv_prog_cc_c89=no
4015ac_save_CC=$CC
4016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017/* end confdefs.h. */
4018#include <stdarg.h>
4019#include <stdio.h>
4020struct stat;
4021/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4022struct buf { int x; };
4023FILE * (*rcsopen) (struct buf *, struct stat *, int);
4024static char *e (p, i)
4025 char **p;
4026 int i;
4027{
4028 return p[i];
4029}
4030static char *f (char * (*g) (char **, int), char **p, ...)
4031{
4032 char *s;
4033 va_list v;
4034 va_start (v,p);
4035 s = g (p, va_arg (v,int));
4036 va_end (v);
4037 return s;
4038}
4039
4040/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4041 function prototypes and stuff, but not '\xHH' hex character constants.
4042 These don't provoke an error unfortunately, instead are silently treated
4043 as 'x'. The following induces an error, until -std is added to get
4044 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4045 array size at least. It's necessary to write '\x00'==0 to get something
4046 that's true only with -std. */
4047int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4048
4049/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4050 inside strings and character constants. */
4051#define FOO(x) 'x'
4052int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4053
4054int test (int i, double x);
4055struct s1 {int (*f) (int a);};
4056struct s2 {int (*f) (double a);};
4057int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4058int argc;
4059char **argv;
4060int
4061main ()
4062{
4063return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4064 ;
4065 return 0;
4066}
4067_ACEOF
4068for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4069 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4070do
4071 CC="$ac_save_CC $ac_arg"
4072 if ac_fn_c_try_compile "$LINENO"; then :
4073 ac_cv_prog_cc_c89=$ac_arg
4074fi
4075rm -f core conftest.err conftest.$ac_objext
4076 test "x$ac_cv_prog_cc_c89" != "xno" && break
4077done
4078rm -f conftest.$ac_ext
4079CC=$ac_save_CC
4080
4081fi
4082# AC_CACHE_VAL
4083case "x$ac_cv_prog_cc_c89" in
4084 x)
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4086$as_echo "none needed" >&6; } ;;
4087 xno)
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4089$as_echo "unsupported" >&6; } ;;
4090 *)
4091 CC="$CC $ac_cv_prog_cc_c89"
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4093$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4094esac
4095if test "x$ac_cv_prog_cc_c89" != xno; then :
4096
4097fi
4098
4099ac_ext=c
4100ac_cpp='$CPP $CPPFLAGS'
4101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4103ac_compiler_gnu=$ac_cv_c_compiler_gnu
4104
4105ac_ext=cpp
4106ac_cpp='$CXXCPP $CPPFLAGS'
4107ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4108ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4109ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4110if test -z "$CXX"; then
4111 if test -n "$CCC"; then
4112 CXX=$CCC
4113 else
4114 if test -n "$ac_tool_prefix"; then
4115 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4116 do
4117 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4118set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4120$as_echo_n "checking for $ac_word... " >&6; }
4121if ${ac_cv_prog_CXX+:} false; then :
4122 $as_echo_n "(cached) " >&6
4123else
4124 if test -n "$CXX"; then
4125 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4126else
4127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128for as_dir in $PATH
4129do
4130 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4134 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 break 2
4137 fi
4138done
4139 done
4140IFS=$as_save_IFS
4141
4142fi
4143fi
4144CXX=$ac_cv_prog_CXX
4145if test -n "$CXX"; then
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4147$as_echo "$CXX" >&6; }
4148else
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150$as_echo "no" >&6; }
4151fi
4152
4153
4154 test -n "$CXX" && break
4155 done
4156fi
4157if test -z "$CXX"; then
4158 ac_ct_CXX=$CXX
4159 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4160do
4161 # Extract the first word of "$ac_prog", so it can be a program name with args.
4162set dummy $ac_prog; ac_word=$2
4163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164$as_echo_n "checking for $ac_word... " >&6; }
4165if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4166 $as_echo_n "(cached) " >&6
4167else
4168 if test -n "$ac_ct_CXX"; then
4169 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4170else
4171as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4172for as_dir in $PATH
4173do
4174 IFS=$as_save_IFS
4175 test -z "$as_dir" && as_dir=.
4176 for ac_exec_ext in '' $ac_executable_extensions; do
4177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4178 ac_cv_prog_ac_ct_CXX="$ac_prog"
4179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4180 break 2
4181 fi
4182done
4183 done
4184IFS=$as_save_IFS
4185
4186fi
4187fi
4188ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4189if test -n "$ac_ct_CXX"; then
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4191$as_echo "$ac_ct_CXX" >&6; }
4192else
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4194$as_echo "no" >&6; }
4195fi
4196
4197
4198 test -n "$ac_ct_CXX" && break
4199done
4200
4201 if test "x$ac_ct_CXX" = x; then
4202 CXX="g++"
4203 else
4204 case $cross_compiling:$ac_tool_warned in
4205yes:)
4206{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4207$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4208ac_tool_warned=yes ;;
4209esac
4210 CXX=$ac_ct_CXX
4211 fi
4212fi
4213
4214 fi
4215fi
4216# Provide some information about the compiler.
4217$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4218set X $ac_compile
4219ac_compiler=$2
4220for ac_option in --version -v -V -qversion; do
4221 { { ac_try="$ac_compiler $ac_option >&5"
4222case "(($ac_try" in
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4225esac
4226eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4227$as_echo "$ac_try_echo"; } >&5
4228 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4229 ac_status=$?
4230 if test -s conftest.err; then
4231 sed '10a\
4232... rest of stderr output deleted ...
4233 10q' conftest.err >conftest.er1
4234 cat conftest.er1 >&5
4235 fi
4236 rm -f conftest.er1 conftest.err
4237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4238 test $ac_status = 0; }
4239done
4240
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4242$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4243if ${ac_cv_cxx_compiler_gnu+:} false; then :
4244 $as_echo_n "(cached) " >&6
4245else
4246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4247/* end confdefs.h. */
4248
4249int
4250main ()
4251{
4252#ifndef __GNUC__
4253 choke me
4254#endif
4255
4256 ;
4257 return 0;
4258}
4259_ACEOF
4260if ac_fn_cxx_try_compile "$LINENO"; then :
4261 ac_compiler_gnu=yes
4262else
4263 ac_compiler_gnu=no
4264fi
4265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4266ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4267
4268fi
4269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4270$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4271if test $ac_compiler_gnu = yes; then
4272 GXX=yes
4273else
4274 GXX=
4275fi
4276ac_test_CXXFLAGS=${CXXFLAGS+set}
4277ac_save_CXXFLAGS=$CXXFLAGS
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4279$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4280if ${ac_cv_prog_cxx_g+:} false; then :
4281 $as_echo_n "(cached) " >&6
4282else
4283 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4284 ac_cxx_werror_flag=yes
4285 ac_cv_prog_cxx_g=no
4286 CXXFLAGS="-g"
4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4288/* end confdefs.h. */
4289
4290int
4291main ()
4292{
4293
4294 ;
4295 return 0;
4296}
4297_ACEOF
4298if ac_fn_cxx_try_compile "$LINENO"; then :
4299 ac_cv_prog_cxx_g=yes
4300else
4301 CXXFLAGS=""
4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4303/* end confdefs.h. */
4304
4305int
4306main ()
4307{
4308
4309 ;
4310 return 0;
4311}
4312_ACEOF
4313if ac_fn_cxx_try_compile "$LINENO"; then :
4314
4315else
4316 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4317 CXXFLAGS="-g"
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319/* end confdefs.h. */
4320
4321int
4322main ()
4323{
4324
4325 ;
4326 return 0;
4327}
4328_ACEOF
4329if ac_fn_cxx_try_compile "$LINENO"; then :
4330 ac_cv_prog_cxx_g=yes
4331fi
4332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333fi
4334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335fi
4336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4338fi
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4340$as_echo "$ac_cv_prog_cxx_g" >&6; }
4341if test "$ac_test_CXXFLAGS" = set; then
4342 CXXFLAGS=$ac_save_CXXFLAGS
4343elif test $ac_cv_prog_cxx_g = yes; then
4344 if test "$GXX" = yes; then
4345 CXXFLAGS="-g -O2"
4346 else
4347 CXXFLAGS="-g"
4348 fi
4349else
4350 if test "$GXX" = yes; then
4351 CXXFLAGS="-O2"
4352 else
4353 CXXFLAGS=
4354 fi
4355fi
4356ac_ext=c
4357ac_cpp='$CPP $CPPFLAGS'
4358ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4359ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4360ac_compiler_gnu=$ac_cv_c_compiler_gnu
4361
4362ac_ext=cpp
4363ac_cpp='$CXXCPP $CPPFLAGS'
4364ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4365ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4366ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4368$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4369if test -z "$CXXCPP"; then
4370 if ${ac_cv_prog_CXXCPP+:} false; then :
4371 $as_echo_n "(cached) " >&6
4372else
4373 # Double quotes because CXXCPP needs to be expanded
4374 for CXXCPP in "$CXX -E" "/lib/cpp"
4375 do
4376 ac_preproc_ok=false
4377for ac_cxx_preproc_warn_flag in '' yes
4378do
4379 # Use a header file that comes with gcc, so configuring glibc
4380 # with a fresh cross-compiler works.
4381 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4382 # <limits.h> exists even on freestanding compilers.
4383 # On the NeXT, cc -E runs the code through the compiler's parser,
4384 # not just through cpp. "Syntax error" is here to catch this case.
4385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4386/* end confdefs.h. */
4387@%:@ifdef __STDC__
4388@%:@ include <limits.h>
4389@%:@else
4390@%:@ include <assert.h>
4391@%:@endif
4392 Syntax error
4393_ACEOF
4394if ac_fn_cxx_try_cpp "$LINENO"; then :
4395
4396else
4397 # Broken: fails on valid input.
4398continue
4399fi
4400rm -f conftest.err conftest.i conftest.$ac_ext
4401
4402 # OK, works on sane cases. Now check whether nonexistent headers
4403 # can be detected and how.
4404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4405/* end confdefs.h. */
4406@%:@include <ac_nonexistent.h>
4407_ACEOF
4408if ac_fn_cxx_try_cpp "$LINENO"; then :
4409 # Broken: success on invalid input.
4410continue
4411else
4412 # Passes both tests.
4413ac_preproc_ok=:
4414break
4415fi
4416rm -f conftest.err conftest.i conftest.$ac_ext
4417
4418done
4419# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4420rm -f conftest.i conftest.err conftest.$ac_ext
4421if $ac_preproc_ok; then :
4422 break
4423fi
4424
4425 done
4426 ac_cv_prog_CXXCPP=$CXXCPP
4427
4428fi
4429 CXXCPP=$ac_cv_prog_CXXCPP
4430else
4431 ac_cv_prog_CXXCPP=$CXXCPP
4432fi
4433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4434$as_echo "$CXXCPP" >&6; }
4435ac_preproc_ok=false
4436for ac_cxx_preproc_warn_flag in '' yes
4437do
4438 # Use a header file that comes with gcc, so configuring glibc
4439 # with a fresh cross-compiler works.
4440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4441 # <limits.h> exists even on freestanding compilers.
4442 # On the NeXT, cc -E runs the code through the compiler's parser,
4443 # not just through cpp. "Syntax error" is here to catch this case.
4444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4445/* end confdefs.h. */
4446@%:@ifdef __STDC__
4447@%:@ include <limits.h>
4448@%:@else
4449@%:@ include <assert.h>
4450@%:@endif
4451 Syntax error
4452_ACEOF
4453if ac_fn_cxx_try_cpp "$LINENO"; then :
4454
4455else
4456 # Broken: fails on valid input.
4457continue
4458fi
4459rm -f conftest.err conftest.i conftest.$ac_ext
4460
4461 # OK, works on sane cases. Now check whether nonexistent headers
4462 # can be detected and how.
4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464/* end confdefs.h. */
4465@%:@include <ac_nonexistent.h>
4466_ACEOF
4467if ac_fn_cxx_try_cpp "$LINENO"; then :
4468 # Broken: success on invalid input.
4469continue
4470else
4471 # Passes both tests.
4472ac_preproc_ok=:
4473break
4474fi
4475rm -f conftest.err conftest.i conftest.$ac_ext
4476
4477done
4478# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4479rm -f conftest.i conftest.err conftest.$ac_ext
4480if $ac_preproc_ok; then :
4481
4482else
4483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4485as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4486See \`config.log' for more details" "$LINENO" 5; }
4487fi
4488
4489ac_ext=c
4490ac_cpp='$CPP $CPPFLAGS'
4491ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493ac_compiler_gnu=$ac_cv_c_compiler_gnu
4494
4495ac_ext=cpp
4496ac_cpp='$CXXCPP $CPPFLAGS'
4497ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4498ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4499ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4500if test -z "$CXX"; then
4501 if test -n "$CCC"; then
4502 CXX=$CCC
4503 else
4504 if test -n "$ac_tool_prefix"; then
4505 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4506 do
4507 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4508set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4510$as_echo_n "checking for $ac_word... " >&6; }
4511if ${ac_cv_prog_CXX+:} false; then :
4512 $as_echo_n "(cached) " >&6
4513else
4514 if test -n "$CXX"; then
4515 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4516else
4517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4518for as_dir in $PATH
4519do
4520 IFS=$as_save_IFS
4521 test -z "$as_dir" && as_dir=.
4522 for ac_exec_ext in '' $ac_executable_extensions; do
4523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4524 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4526 break 2
4527 fi
4528done
4529 done
4530IFS=$as_save_IFS
4531
4532fi
4533fi
4534CXX=$ac_cv_prog_CXX
4535if test -n "$CXX"; then
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4537$as_echo "$CXX" >&6; }
4538else
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540$as_echo "no" >&6; }
4541fi
4542
4543
4544 test -n "$CXX" && break
4545 done
4546fi
4547if test -z "$CXX"; then
4548 ac_ct_CXX=$CXX
4549 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4550do
4551 # Extract the first word of "$ac_prog", so it can be a program name with args.
4552set dummy $ac_prog; ac_word=$2
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554$as_echo_n "checking for $ac_word... " >&6; }
4555if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4556 $as_echo_n "(cached) " >&6
4557else
4558 if test -n "$ac_ct_CXX"; then
4559 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4560else
4561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562for as_dir in $PATH
4563do
4564 IFS=$as_save_IFS
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568 ac_cv_prog_ac_ct_CXX="$ac_prog"
4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4570 break 2
4571 fi
4572done
4573 done
4574IFS=$as_save_IFS
4575
4576fi
4577fi
4578ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4579if test -n "$ac_ct_CXX"; then
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4581$as_echo "$ac_ct_CXX" >&6; }
4582else
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584$as_echo "no" >&6; }
4585fi
4586
4587
4588 test -n "$ac_ct_CXX" && break
4589done
4590
4591 if test "x$ac_ct_CXX" = x; then
4592 CXX="g++"
4593 else
4594 case $cross_compiling:$ac_tool_warned in
4595yes:)
4596{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4597$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4598ac_tool_warned=yes ;;
4599esac
4600 CXX=$ac_ct_CXX
4601 fi
4602fi
4603
4604 fi
4605fi
4606# Provide some information about the compiler.
4607$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4608set X $ac_compile
4609ac_compiler=$2
4610for ac_option in --version -v -V -qversion; do
4611 { { ac_try="$ac_compiler $ac_option >&5"
4612case "(($ac_try" in
4613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614 *) ac_try_echo=$ac_try;;
4615esac
4616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4617$as_echo "$ac_try_echo"; } >&5
4618 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4619 ac_status=$?
4620 if test -s conftest.err; then
4621 sed '10a\
4622... rest of stderr output deleted ...
4623 10q' conftest.err >conftest.er1
4624 cat conftest.er1 >&5
4625 fi
4626 rm -f conftest.er1 conftest.err
4627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4628 test $ac_status = 0; }
4629done
4630
4631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4632$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4633if ${ac_cv_cxx_compiler_gnu+:} false; then :
4634 $as_echo_n "(cached) " >&6
4635else
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637/* end confdefs.h. */
4638
4639int
4640main ()
4641{
4642#ifndef __GNUC__
4643 choke me
4644#endif
4645
4646 ;
4647 return 0;
4648}
4649_ACEOF
4650if ac_fn_cxx_try_compile "$LINENO"; then :
4651 ac_compiler_gnu=yes
4652else
4653 ac_compiler_gnu=no
4654fi
4655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4656ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4657
4658fi
4659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4660$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4661if test $ac_compiler_gnu = yes; then
4662 GXX=yes
4663else
4664 GXX=
4665fi
4666ac_test_CXXFLAGS=${CXXFLAGS+set}
4667ac_save_CXXFLAGS=$CXXFLAGS
4668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4669$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4670if ${ac_cv_prog_cxx_g+:} false; then :
4671 $as_echo_n "(cached) " >&6
4672else
4673 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4674 ac_cxx_werror_flag=yes
4675 ac_cv_prog_cxx_g=no
4676 CXXFLAGS="-g"
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678/* end confdefs.h. */
4679
4680int
4681main ()
4682{
4683
4684 ;
4685 return 0;
4686}
4687_ACEOF
4688if ac_fn_cxx_try_compile "$LINENO"; then :
4689 ac_cv_prog_cxx_g=yes
4690else
4691 CXXFLAGS=""
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693/* end confdefs.h. */
4694
4695int
4696main ()
4697{
4698
4699 ;
4700 return 0;
4701}
4702_ACEOF
4703if ac_fn_cxx_try_compile "$LINENO"; then :
4704
4705else
4706 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4707 CXXFLAGS="-g"
4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709/* end confdefs.h. */
4710
4711int
4712main ()
4713{
4714
4715 ;
4716 return 0;
4717}
4718_ACEOF
4719if ac_fn_cxx_try_compile "$LINENO"; then :
4720 ac_cv_prog_cxx_g=yes
4721fi
4722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4723fi
4724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4725fi
4726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4727 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4728fi
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4730$as_echo "$ac_cv_prog_cxx_g" >&6; }
4731if test "$ac_test_CXXFLAGS" = set; then
4732 CXXFLAGS=$ac_save_CXXFLAGS
4733elif test $ac_cv_prog_cxx_g = yes; then
4734 if test "$GXX" = yes; then
4735 CXXFLAGS="-g -O2"
4736 else
4737 CXXFLAGS="-g"
4738 fi
4739else
4740 if test "$GXX" = yes; then
4741 CXXFLAGS="-O2"
4742 else
4743 CXXFLAGS=
4744 fi
4745fi
4746ac_ext=c
4747ac_cpp='$CPP $CPPFLAGS'
4748ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4749ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4750ac_compiler_gnu=$ac_cv_c_compiler_gnu
4751
4752enable_win32_dll=yes
4753
4754case $host in
4755*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4756 if test -n "$ac_tool_prefix"; then
4757 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4758set dummy ${ac_tool_prefix}as; ac_word=$2
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4760$as_echo_n "checking for $ac_word... " >&6; }
4761if ${ac_cv_prog_AS+:} false; then :
4762 $as_echo_n "(cached) " >&6
4763else
4764 if test -n "$AS"; then
4765 ac_cv_prog_AS="$AS" # Let the user override the test.
4766else
4767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768for as_dir in $PATH
4769do
4770 IFS=$as_save_IFS
4771 test -z "$as_dir" && as_dir=.
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4774 ac_cv_prog_AS="${ac_tool_prefix}as"
4775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4776 break 2
4777 fi
4778done
4779 done
4780IFS=$as_save_IFS
4781
4782fi
4783fi
4784AS=$ac_cv_prog_AS
4785if test -n "$AS"; then
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4787$as_echo "$AS" >&6; }
4788else
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790$as_echo "no" >&6; }
4791fi
4792
4793
4794fi
4795if test -z "$ac_cv_prog_AS"; then
4796 ac_ct_AS=$AS
4797 # Extract the first word of "as", so it can be a program name with args.
4798set dummy as; ac_word=$2
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4800$as_echo_n "checking for $ac_word... " >&6; }
4801if ${ac_cv_prog_ac_ct_AS+:} false; then :
4802 $as_echo_n "(cached) " >&6
4803else
4804 if test -n "$ac_ct_AS"; then
4805 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4806else
4807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808for as_dir in $PATH
4809do
4810 IFS=$as_save_IFS
4811 test -z "$as_dir" && as_dir=.
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4814 ac_cv_prog_ac_ct_AS="as"
4815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 break 2
4817 fi
4818done
4819 done
4820IFS=$as_save_IFS
4821
4822fi
4823fi
4824ac_ct_AS=$ac_cv_prog_ac_ct_AS
4825if test -n "$ac_ct_AS"; then
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4827$as_echo "$ac_ct_AS" >&6; }
4828else
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830$as_echo "no" >&6; }
4831fi
4832
4833 if test "x$ac_ct_AS" = x; then
4834 AS="false"
4835 else
4836 case $cross_compiling:$ac_tool_warned in
4837yes:)
4838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4840ac_tool_warned=yes ;;
4841esac
4842 AS=$ac_ct_AS
4843 fi
4844else
4845 AS="$ac_cv_prog_AS"
4846fi
4847
4848 if test -n "$ac_tool_prefix"; then
4849 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4850set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852$as_echo_n "checking for $ac_word... " >&6; }
4853if ${ac_cv_prog_DLLTOOL+:} false; then :
4854 $as_echo_n "(cached) " >&6
4855else
4856 if test -n "$DLLTOOL"; then
4857 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4858else
4859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860for as_dir in $PATH
4861do
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4866 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4869 fi
4870done
4871 done
4872IFS=$as_save_IFS
4873
4874fi
4875fi
4876DLLTOOL=$ac_cv_prog_DLLTOOL
4877if test -n "$DLLTOOL"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
4879$as_echo "$DLLTOOL" >&6; }
4880else
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882$as_echo "no" >&6; }
4883fi
4884
4885
4886fi
4887if test -z "$ac_cv_prog_DLLTOOL"; then
4888 ac_ct_DLLTOOL=$DLLTOOL
4889 # Extract the first word of "dlltool", so it can be a program name with args.
4890set dummy dlltool; ac_word=$2
4891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892$as_echo_n "checking for $ac_word... " >&6; }
4893if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
4894 $as_echo_n "(cached) " >&6
4895else
4896 if test -n "$ac_ct_DLLTOOL"; then
4897 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4898else
4899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900for as_dir in $PATH
4901do
4902 IFS=$as_save_IFS
4903 test -z "$as_dir" && as_dir=.
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4906 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 break 2
4909 fi
4910done
4911 done
4912IFS=$as_save_IFS
4913
4914fi
4915fi
4916ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4917if test -n "$ac_ct_DLLTOOL"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
4919$as_echo "$ac_ct_DLLTOOL" >&6; }
4920else
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922$as_echo "no" >&6; }
4923fi
4924
4925 if test "x$ac_ct_DLLTOOL" = x; then
4926 DLLTOOL="false"
4927 else
4928 case $cross_compiling:$ac_tool_warned in
4929yes:)
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4932ac_tool_warned=yes ;;
4933esac
4934 DLLTOOL=$ac_ct_DLLTOOL
4935 fi
4936else
4937 DLLTOOL="$ac_cv_prog_DLLTOOL"
4938fi
4939
4940 if test -n "$ac_tool_prefix"; then
4941 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4942set dummy ${ac_tool_prefix}objdump; ac_word=$2
4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4944$as_echo_n "checking for $ac_word... " >&6; }
4945if ${ac_cv_prog_OBJDUMP+:} false; then :
4946 $as_echo_n "(cached) " >&6
4947else
4948 if test -n "$OBJDUMP"; then
4949 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4950else
4951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952for as_dir in $PATH
4953do
4954 IFS=$as_save_IFS
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4958 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 break 2
4961 fi
4962done
4963 done
4964IFS=$as_save_IFS
4965
4966fi
4967fi
4968OBJDUMP=$ac_cv_prog_OBJDUMP
4969if test -n "$OBJDUMP"; then
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4971$as_echo "$OBJDUMP" >&6; }
4972else
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4974$as_echo "no" >&6; }
4975fi
4976
4977
4978fi
4979if test -z "$ac_cv_prog_OBJDUMP"; then
4980 ac_ct_OBJDUMP=$OBJDUMP
4981 # Extract the first word of "objdump", so it can be a program name with args.
4982set dummy objdump; ac_word=$2
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984$as_echo_n "checking for $ac_word... " >&6; }
4985if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4986 $as_echo_n "(cached) " >&6
4987else
4988 if test -n "$ac_ct_OBJDUMP"; then
4989 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4990else
4991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992for as_dir in $PATH
4993do
4994 IFS=$as_save_IFS
4995 test -z "$as_dir" && as_dir=.
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4998 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 break 2
5001 fi
5002done
5003 done
5004IFS=$as_save_IFS
5005
5006fi
5007fi
5008ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5009if test -n "$ac_ct_OBJDUMP"; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5011$as_echo "$ac_ct_OBJDUMP" >&6; }
5012else
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014$as_echo "no" >&6; }
5015fi
5016
5017 if test "x$ac_ct_OBJDUMP" = x; then
5018 OBJDUMP="false"
5019 else
5020 case $cross_compiling:$ac_tool_warned in
5021yes:)
5022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5024ac_tool_warned=yes ;;
5025esac
5026 OBJDUMP=$ac_ct_OBJDUMP
5027 fi
5028else
5029 OBJDUMP="$ac_cv_prog_OBJDUMP"
5030fi
5031
5032 ;;
5033esac
5034
5035test -z "$AS" && AS=as
5036
5037
5038
5039
5040
5041test -z "$DLLTOOL" && DLLTOOL=dlltool
5042
5043
5044
5045
5046
5047test -z "$OBJDUMP" && OBJDUMP=objdump
5048
5049
5050
5051
5052
5053
5054
5055case `pwd` in
5056 *\ * | *\ *)
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5058$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5059esac
5060
5061
5062
5063macro_version='2.4.2'
5064macro_revision='1.3337'
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078ltmain="$ac_aux_dir/ltmain.sh"
5079
5080# Backslashify metacharacters that are still active within
5081# double-quoted strings.
5082sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5083
5084# Same as above, but do not quote variable references.
5085double_quote_subst='s/\(["`\\]\)/\\\1/g'
5086
5087# Sed substitution to delay expansion of an escaped shell variable in a
5088# double_quote_subst'ed string.
5089delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5090
5091# Sed substitution to delay expansion of an escaped single quote.
5092delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5093
5094# Sed substitution to avoid accidental globbing in evaled expressions
5095no_glob_subst='s/\*/\\\*/g'
5096
5097ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5098ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5099ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5100
5101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5102$as_echo_n "checking how to print strings... " >&6; }
5103# Test print first, because it will be a builtin if present.
5104if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5105 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5106 ECHO='print -r --'
5107elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5108 ECHO='printf %s\n'
5109else
5110 # Use this function as a fallback that always works.
5111 func_fallback_echo ()
5112 {
5113 eval 'cat <<_LTECHO_EOF
5114$1
5115_LTECHO_EOF'
5116 }
5117 ECHO='func_fallback_echo'
5118fi
5119
5120# func_echo_all arg...
5121# Invoke $ECHO with all args, space-separated.
5122func_echo_all ()
5123{
5124 $ECHO ""
5125}
5126
5127case "$ECHO" in
5128 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5129$as_echo "printf" >&6; } ;;
5130 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5131$as_echo "print -r" >&6; } ;;
5132 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5133$as_echo "cat" >&6; } ;;
5134esac
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5150$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5151if ${ac_cv_path_SED+:} false; then :
5152 $as_echo_n "(cached) " >&6
5153else
5154 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5155 for ac_i in 1 2 3 4 5 6 7; do
5156 ac_script="$ac_script$as_nl$ac_script"
5157 done
5158 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5159 { ac_script=; unset ac_script;}
5160 if test -z "$SED"; then
5161 ac_path_SED_found=false
5162 # Loop through the user's path and test for each of PROGNAME-LIST
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164for as_dir in $PATH
5165do
5166 IFS=$as_save_IFS
5167 test -z "$as_dir" && as_dir=.
5168 for ac_prog in sed gsed; do
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5171 as_fn_executable_p "$ac_path_SED" || continue
5172# Check for GNU ac_path_SED and select it if it is found.
5173 # Check for GNU $ac_path_SED
5174case `"$ac_path_SED" --version 2>&1` in
5175*GNU*)
5176 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5177*)
5178 ac_count=0
5179 $as_echo_n 0123456789 >"conftest.in"
5180 while :
5181 do
5182 cat "conftest.in" "conftest.in" >"conftest.tmp"
5183 mv "conftest.tmp" "conftest.in"
5184 cp "conftest.in" "conftest.nl"
5185 $as_echo '' >> "conftest.nl"
5186 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5187 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5188 as_fn_arith $ac_count + 1 && ac_count=$as_val
5189 if test $ac_count -gt ${ac_path_SED_max-0}; then
5190 # Best one so far, save it but keep looking for a better one
5191 ac_cv_path_SED="$ac_path_SED"
5192 ac_path_SED_max=$ac_count
5193 fi
5194 # 10*(2^10) chars as input seems more than enough
5195 test $ac_count -gt 10 && break
5196 done
5197 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5198esac
5199
5200 $ac_path_SED_found && break 3
5201 done
5202 done
5203 done
5204IFS=$as_save_IFS
5205 if test -z "$ac_cv_path_SED"; then
5206 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5207 fi
5208else
5209 ac_cv_path_SED=$SED
5210fi
5211
5212fi
5213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5214$as_echo "$ac_cv_path_SED" >&6; }
5215 SED="$ac_cv_path_SED"
5216 rm -f conftest.sed
5217
5218test -z "$SED" && SED=sed
5219Xsed="$SED -e 1s/^X//"
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5232$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5233if ${ac_cv_path_GREP+:} false; then :
5234 $as_echo_n "(cached) " >&6
5235else
5236 if test -z "$GREP"; then
5237 ac_path_GREP_found=false
5238 # Loop through the user's path and test for each of PROGNAME-LIST
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5241do
5242 IFS=$as_save_IFS
5243 test -z "$as_dir" && as_dir=.
5244 for ac_prog in grep ggrep; do
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5247 as_fn_executable_p "$ac_path_GREP" || continue
5248# Check for GNU ac_path_GREP and select it if it is found.
5249 # Check for GNU $ac_path_GREP
5250case `"$ac_path_GREP" --version 2>&1` in
5251*GNU*)
5252 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5253*)
5254 ac_count=0
5255 $as_echo_n 0123456789 >"conftest.in"
5256 while :
5257 do
5258 cat "conftest.in" "conftest.in" >"conftest.tmp"
5259 mv "conftest.tmp" "conftest.in"
5260 cp "conftest.in" "conftest.nl"
5261 $as_echo 'GREP' >> "conftest.nl"
5262 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5264 as_fn_arith $ac_count + 1 && ac_count=$as_val
5265 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5266 # Best one so far, save it but keep looking for a better one
5267 ac_cv_path_GREP="$ac_path_GREP"
5268 ac_path_GREP_max=$ac_count
5269 fi
5270 # 10*(2^10) chars as input seems more than enough
5271 test $ac_count -gt 10 && break
5272 done
5273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5274esac
5275
5276 $ac_path_GREP_found && break 3
5277 done
5278 done
5279 done
5280IFS=$as_save_IFS
5281 if test -z "$ac_cv_path_GREP"; then
5282 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5283 fi
5284else
5285 ac_cv_path_GREP=$GREP
5286fi
5287
5288fi
5289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5290$as_echo "$ac_cv_path_GREP" >&6; }
5291 GREP="$ac_cv_path_GREP"
5292
5293
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5295$as_echo_n "checking for egrep... " >&6; }
5296if ${ac_cv_path_EGREP+:} false; then :
5297 $as_echo_n "(cached) " >&6
5298else
5299 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5300 then ac_cv_path_EGREP="$GREP -E"
5301 else
5302 if test -z "$EGREP"; then
5303 ac_path_EGREP_found=false
5304 # Loop through the user's path and test for each of PROGNAME-LIST
5305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5307do
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
5310 for ac_prog in egrep; do
5311 for ac_exec_ext in '' $ac_executable_extensions; do
5312 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5313 as_fn_executable_p "$ac_path_EGREP" || continue
5314# Check for GNU ac_path_EGREP and select it if it is found.
5315 # Check for GNU $ac_path_EGREP
5316case `"$ac_path_EGREP" --version 2>&1` in
5317*GNU*)
5318 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5319*)
5320 ac_count=0
5321 $as_echo_n 0123456789 >"conftest.in"
5322 while :
5323 do
5324 cat "conftest.in" "conftest.in" >"conftest.tmp"
5325 mv "conftest.tmp" "conftest.in"
5326 cp "conftest.in" "conftest.nl"
5327 $as_echo 'EGREP' >> "conftest.nl"
5328 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5330 as_fn_arith $ac_count + 1 && ac_count=$as_val
5331 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5332 # Best one so far, save it but keep looking for a better one
5333 ac_cv_path_EGREP="$ac_path_EGREP"
5334 ac_path_EGREP_max=$ac_count
5335 fi
5336 # 10*(2^10) chars as input seems more than enough
5337 test $ac_count -gt 10 && break
5338 done
5339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5340esac
5341
5342 $ac_path_EGREP_found && break 3
5343 done
5344 done
5345 done
5346IFS=$as_save_IFS
5347 if test -z "$ac_cv_path_EGREP"; then
5348 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5349 fi
5350else
5351 ac_cv_path_EGREP=$EGREP
5352fi
5353
5354 fi
5355fi
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5357$as_echo "$ac_cv_path_EGREP" >&6; }
5358 EGREP="$ac_cv_path_EGREP"
5359
5360
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5362$as_echo_n "checking for fgrep... " >&6; }
5363if ${ac_cv_path_FGREP+:} false; then :
5364 $as_echo_n "(cached) " >&6
5365else
5366 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5367 then ac_cv_path_FGREP="$GREP -F"
5368 else
5369 if test -z "$FGREP"; then
5370 ac_path_FGREP_found=false
5371 # Loop through the user's path and test for each of PROGNAME-LIST
5372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5373for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5374do
5375 IFS=$as_save_IFS
5376 test -z "$as_dir" && as_dir=.
5377 for ac_prog in fgrep; do
5378 for ac_exec_ext in '' $ac_executable_extensions; do
5379 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5380 as_fn_executable_p "$ac_path_FGREP" || continue
5381# Check for GNU ac_path_FGREP and select it if it is found.
5382 # Check for GNU $ac_path_FGREP
5383case `"$ac_path_FGREP" --version 2>&1` in
5384*GNU*)
5385 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5386*)
5387 ac_count=0
5388 $as_echo_n 0123456789 >"conftest.in"
5389 while :
5390 do
5391 cat "conftest.in" "conftest.in" >"conftest.tmp"
5392 mv "conftest.tmp" "conftest.in"
5393 cp "conftest.in" "conftest.nl"
5394 $as_echo 'FGREP' >> "conftest.nl"
5395 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5396 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5397 as_fn_arith $ac_count + 1 && ac_count=$as_val
5398 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5399 # Best one so far, save it but keep looking for a better one
5400 ac_cv_path_FGREP="$ac_path_FGREP"
5401 ac_path_FGREP_max=$ac_count
5402 fi
5403 # 10*(2^10) chars as input seems more than enough
5404 test $ac_count -gt 10 && break
5405 done
5406 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5407esac
5408
5409 $ac_path_FGREP_found && break 3
5410 done
5411 done
5412 done
5413IFS=$as_save_IFS
5414 if test -z "$ac_cv_path_FGREP"; then
5415 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5416 fi
5417else
5418 ac_cv_path_FGREP=$FGREP
5419fi
5420
5421 fi
5422fi
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5424$as_echo "$ac_cv_path_FGREP" >&6; }
5425 FGREP="$ac_cv_path_FGREP"
5426
5427
5428test -z "$GREP" && GREP=grep
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448@%:@ Check whether --with-gnu-ld was given.
5449if test "${with_gnu_ld+set}" = set; then :
5450 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5451else
5452 with_gnu_ld=no
5453fi
5454
5455ac_prog=ld
5456if test "$GCC" = yes; then
5457 # Check if gcc -print-prog-name=ld gives a path.
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5459$as_echo_n "checking for ld used by $CC... " >&6; }
5460 case $host in
5461 *-*-mingw*)
5462 # gcc leaves a trailing carriage return which upsets mingw
5463 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5464 *)
5465 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5466 esac
5467 case $ac_prog in
5468 # Accept absolute paths.
5469 [\\/]* | ?:[\\/]*)
5470 re_direlt='/[^/][^/]*/\.\./'
5471 # Canonicalize the pathname of ld
5472 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5473 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5474 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5475 done
5476 test -z "$LD" && LD="$ac_prog"
5477 ;;
5478 "")
5479 # If it fails, then pretend we aren't using GCC.
5480 ac_prog=ld
5481 ;;
5482 *)
5483 # If it is relative, then search for the first ld in PATH.
5484 with_gnu_ld=unknown
5485 ;;
5486 esac
5487elif test "$with_gnu_ld" = yes; then
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5489$as_echo_n "checking for GNU ld... " >&6; }
5490else
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5492$as_echo_n "checking for non-GNU ld... " >&6; }
5493fi
5494if ${lt_cv_path_LD+:} false; then :
5495 $as_echo_n "(cached) " >&6
5496else
5497 if test -z "$LD"; then
5498 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5499 for ac_dir in $PATH; do
5500 IFS="$lt_save_ifs"
5501 test -z "$ac_dir" && ac_dir=.
5502 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5503 lt_cv_path_LD="$ac_dir/$ac_prog"
5504 # Check to see if the program is GNU ld. I'd rather use --version,
5505 # but apparently some variants of GNU ld only accept -v.
5506 # Break only if it was the GNU/non-GNU ld that we prefer.
5507 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5508 *GNU* | *'with BFD'*)
5509 test "$with_gnu_ld" != no && break
5510 ;;
5511 *)
5512 test "$with_gnu_ld" != yes && break
5513 ;;
5514 esac
5515 fi
5516 done
5517 IFS="$lt_save_ifs"
5518else
5519 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5520fi
5521fi
5522
5523LD="$lt_cv_path_LD"
5524if test -n "$LD"; then
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5526$as_echo "$LD" >&6; }
5527else
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529$as_echo "no" >&6; }
5530fi
5531test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5533$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5534if ${lt_cv_prog_gnu_ld+:} false; then :
5535 $as_echo_n "(cached) " >&6
5536else
5537 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5538case `$LD -v 2>&1 </dev/null` in
5539*GNU* | *'with BFD'*)
5540 lt_cv_prog_gnu_ld=yes
5541 ;;
5542*)
5543 lt_cv_prog_gnu_ld=no
5544 ;;
5545esac
5546fi
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5548$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5549with_gnu_ld=$lt_cv_prog_gnu_ld
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5560$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5561if ${lt_cv_path_NM+:} false; then :
5562 $as_echo_n "(cached) " >&6
5563else
5564 if test -n "$NM"; then
5565 # Let the user override the test.
5566 lt_cv_path_NM="$NM"
5567else
5568 lt_nm_to_check="${ac_tool_prefix}nm"
5569 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5570 lt_nm_to_check="$lt_nm_to_check nm"
5571 fi
5572 for lt_tmp_nm in $lt_nm_to_check; do
5573 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5574 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5575 IFS="$lt_save_ifs"
5576 test -z "$ac_dir" && ac_dir=.
5577 tmp_nm="$ac_dir/$lt_tmp_nm"
5578 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5579 # Check to see if the nm accepts a BSD-compat flag.
5580 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5581 # nm: unknown option "B" ignored
5582 # Tru64's nm complains that /dev/null is an invalid object file
5583 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5584 */dev/null* | *'Invalid file or object type'*)
5585 lt_cv_path_NM="$tmp_nm -B"
5586 break
5587 ;;
5588 *)
5589 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5590 */dev/null*)
5591 lt_cv_path_NM="$tmp_nm -p"
5592 break
5593 ;;
5594 *)
5595 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5596 continue # so that we can try to find one that supports BSD flags
5597 ;;
5598 esac
5599 ;;
5600 esac
5601 fi
5602 done
5603 IFS="$lt_save_ifs"
5604 done
5605 : ${lt_cv_path_NM=no}
5606fi
5607fi
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5609$as_echo "$lt_cv_path_NM" >&6; }
5610if test "$lt_cv_path_NM" != "no"; then
5611 NM="$lt_cv_path_NM"
5612else
5613 # Didn't find any BSD compatible name lister, look for dumpbin.
5614 if test -n "$DUMPBIN"; then :
5615 # Let the user override the test.
5616 else
5617 if test -n "$ac_tool_prefix"; then
5618 for ac_prog in dumpbin "link -dump"
5619 do
5620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5621set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5623$as_echo_n "checking for $ac_word... " >&6; }
5624if ${ac_cv_prog_DUMPBIN+:} false; then :
5625 $as_echo_n "(cached) " >&6
5626else
5627 if test -n "$DUMPBIN"; then
5628 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5629else
5630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631for as_dir in $PATH
5632do
5633 IFS=$as_save_IFS
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5637 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5639 break 2
5640 fi
5641done
5642 done
5643IFS=$as_save_IFS
5644
5645fi
5646fi
5647DUMPBIN=$ac_cv_prog_DUMPBIN
5648if test -n "$DUMPBIN"; then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5650$as_echo "$DUMPBIN" >&6; }
5651else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5653$as_echo "no" >&6; }
5654fi
5655
5656
5657 test -n "$DUMPBIN" && break
5658 done
5659fi
5660if test -z "$DUMPBIN"; then
5661 ac_ct_DUMPBIN=$DUMPBIN
5662 for ac_prog in dumpbin "link -dump"
5663do
5664 # Extract the first word of "$ac_prog", so it can be a program name with args.
5665set dummy $ac_prog; ac_word=$2
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5667$as_echo_n "checking for $ac_word... " >&6; }
5668if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5669 $as_echo_n "(cached) " >&6
5670else
5671 if test -n "$ac_ct_DUMPBIN"; then
5672 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5673else
5674as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5675for as_dir in $PATH
5676do
5677 IFS=$as_save_IFS
5678 test -z "$as_dir" && as_dir=.
5679 for ac_exec_ext in '' $ac_executable_extensions; do
5680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5681 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5683 break 2
5684 fi
5685done
5686 done
5687IFS=$as_save_IFS
5688
5689fi
5690fi
5691ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5692if test -n "$ac_ct_DUMPBIN"; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5694$as_echo "$ac_ct_DUMPBIN" >&6; }
5695else
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5697$as_echo "no" >&6; }
5698fi
5699
5700
5701 test -n "$ac_ct_DUMPBIN" && break
5702done
5703
5704 if test "x$ac_ct_DUMPBIN" = x; then
5705 DUMPBIN=":"
5706 else
5707 case $cross_compiling:$ac_tool_warned in
5708yes:)
5709{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5710$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5711ac_tool_warned=yes ;;
5712esac
5713 DUMPBIN=$ac_ct_DUMPBIN
5714 fi
5715fi
5716
5717 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5718 *COFF*)
5719 DUMPBIN="$DUMPBIN -symbols"
5720 ;;
5721 *)
5722 DUMPBIN=:
5723 ;;
5724 esac
5725 fi
5726
5727 if test "$DUMPBIN" != ":"; then
5728 NM="$DUMPBIN"
5729 fi
5730fi
5731test -z "$NM" && NM=nm
5732
5733
5734
5735
5736
5737
5738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5739$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5740if ${lt_cv_nm_interface+:} false; then :
5741 $as_echo_n "(cached) " >&6
5742else
5743 lt_cv_nm_interface="BSD nm"
5744 echo "int some_variable = 0;" > conftest.$ac_ext
5745 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5746 (eval "$ac_compile" 2>conftest.err)
5747 cat conftest.err >&5
5748 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5749 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5750 cat conftest.err >&5
5751 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5752 cat conftest.out >&5
5753 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5754 lt_cv_nm_interface="MS dumpbin"
5755 fi
5756 rm -f conftest*
5757fi
5758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5759$as_echo "$lt_cv_nm_interface" >&6; }
5760
5761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5762$as_echo_n "checking whether ln -s works... " >&6; }
5763LN_S=$as_ln_s
5764if test "$LN_S" = "ln -s"; then
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5766$as_echo "yes" >&6; }
5767else
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5769$as_echo "no, using $LN_S" >&6; }
5770fi
5771
5772# find the maximum length of command line arguments
5773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5774$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5775if ${lt_cv_sys_max_cmd_len+:} false; then :
5776 $as_echo_n "(cached) " >&6
5777else
5778 i=0
5779 teststring="ABCD"
5780
5781 case $build_os in
5782 msdosdjgpp*)
5783 # On DJGPP, this test can blow up pretty badly due to problems in libc
5784 # (any single argument exceeding 2000 bytes causes a buffer overrun
5785 # during glob expansion). Even if it were fixed, the result of this
5786 # check would be larger than it should be.
5787 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5788 ;;
5789
5790 gnu*)
5791 # Under GNU Hurd, this test is not required because there is
5792 # no limit to the length of command line arguments.
5793 # Libtool will interpret -1 as no limit whatsoever
5794 lt_cv_sys_max_cmd_len=-1;
5795 ;;
5796
5797 cygwin* | mingw* | cegcc*)
5798 # On Win9x/ME, this test blows up -- it succeeds, but takes
5799 # about 5 minutes as the teststring grows exponentially.
5800 # Worse, since 9x/ME are not pre-emptively multitasking,
5801 # you end up with a "frozen" computer, even though with patience
5802 # the test eventually succeeds (with a max line length of 256k).
5803 # Instead, let's just punt: use the minimum linelength reported by
5804 # all of the supported platforms: 8192 (on NT/2K/XP).
5805 lt_cv_sys_max_cmd_len=8192;
5806 ;;
5807
5808 mint*)
5809 # On MiNT this can take a long time and run out of memory.
5810 lt_cv_sys_max_cmd_len=8192;
5811 ;;
5812
5813 amigaos*)
5814 # On AmigaOS with pdksh, this test takes hours, literally.
5815 # So we just punt and use a minimum line length of 8192.
5816 lt_cv_sys_max_cmd_len=8192;
5817 ;;
5818
5819 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5820 # This has been around since 386BSD, at least. Likely further.
5821 if test -x /sbin/sysctl; then
5822 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5823 elif test -x /usr/sbin/sysctl; then
5824 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5825 else
5826 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5827 fi
5828 # And add a safety zone
5829 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5830 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5831 ;;
5832
5833 interix*)
5834 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5835 lt_cv_sys_max_cmd_len=196608
5836 ;;
5837
5838 os2*)
5839 # The test takes a long time on OS/2.
5840 lt_cv_sys_max_cmd_len=8192
5841 ;;
5842
5843 osf*)
5844 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5845 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5846 # nice to cause kernel panics so lets avoid the loop below.
5847 # First set a reasonable default.
5848 lt_cv_sys_max_cmd_len=16384
5849 #
5850 if test -x /sbin/sysconfig; then
5851 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5852 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5853 esac
5854 fi
5855 ;;
5856 sco3.2v5*)
5857 lt_cv_sys_max_cmd_len=102400
5858 ;;
5859 sysv5* | sco5v6* | sysv4.2uw2*)
5860 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5861 if test -n "$kargmax"; then
5862 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5863 else
5864 lt_cv_sys_max_cmd_len=32768
5865 fi
5866 ;;
5867 *)
5868 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5869 if test -n "$lt_cv_sys_max_cmd_len"; then
5870 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5871 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5872 else
5873 # Make teststring a little bigger before we do anything with it.
5874 # a 1K string should be a reasonable start.
5875 for i in 1 2 3 4 5 6 7 8 ; do
5876 teststring=$teststring$teststring
5877 done
5878 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5879 # If test is not a shell built-in, we'll probably end up computing a
5880 # maximum length that is only half of the actual maximum length, but
5881 # we can't tell.
5882 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5883 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5884 test $i != 17 # 1/2 MB should be enough
5885 do
5886 i=`expr $i + 1`
5887 teststring=$teststring$teststring
5888 done
5889 # Only check the string length outside the loop.
5890 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5891 teststring=
5892 # Add a significant safety factor because C++ compilers can tack on
5893 # massive amounts of additional arguments before passing them to the
5894 # linker. It appears as though 1/2 is a usable value.
5895 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5896 fi
5897 ;;
5898 esac
5899
5900fi
5901
5902if test -n $lt_cv_sys_max_cmd_len ; then
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5904$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5905else
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5907$as_echo "none" >&6; }
5908fi
5909max_cmd_len=$lt_cv_sys_max_cmd_len
5910
5911
5912
5913
5914
5915
5916: ${CP="cp -f"}
5917: ${MV="mv -f"}
5918: ${RM="rm -f"}
5919
5920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5921$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5922# Try some XSI features
5923xsi_shell=no
5924( _lt_dummy="a/b/c"
5925 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5926 = c,a/b,b/c, \
5927 && eval 'test $(( 1 + 1 )) -eq 2 \
5928 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5929 && xsi_shell=yes
5930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5931$as_echo "$xsi_shell" >&6; }
5932
5933
5934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5935$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5936lt_shell_append=no
5937( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5938 >/dev/null 2>&1 \
5939 && lt_shell_append=yes
5940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5941$as_echo "$lt_shell_append" >&6; }
5942
5943
5944if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5945 lt_unset=unset
5946else
5947 lt_unset=false
5948fi
5949
5950
5951
5952
5953
5954# test EBCDIC or ASCII
5955case `echo X|tr X '\101'` in
5956 A) # ASCII based system
5957 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5958 lt_SP2NL='tr \040 \012'
5959 lt_NL2SP='tr \015\012 \040\040'
5960 ;;
5961 *) # EBCDIC based system
5962 lt_SP2NL='tr \100 \n'
5963 lt_NL2SP='tr \r\n \100\100'
5964 ;;
5965esac
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5976$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5977if ${lt_cv_to_host_file_cmd+:} false; then :
5978 $as_echo_n "(cached) " >&6
5979else
5980 case $host in
5981 *-*-mingw* )
5982 case $build in
5983 *-*-mingw* ) # actually msys
5984 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5985 ;;
5986 *-*-cygwin* )
5987 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5988 ;;
5989 * ) # otherwise, assume *nix
5990 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5991 ;;
5992 esac
5993 ;;
5994 *-*-cygwin* )
5995 case $build in
5996 *-*-mingw* ) # actually msys
5997 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5998 ;;
5999 *-*-cygwin* )
6000 lt_cv_to_host_file_cmd=func_convert_file_noop
6001 ;;
6002 * ) # otherwise, assume *nix
6003 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6004 ;;
6005 esac
6006 ;;
6007 * ) # unhandled hosts (and "normal" native builds)
6008 lt_cv_to_host_file_cmd=func_convert_file_noop
6009 ;;
6010esac
6011
6012fi
6013
6014to_host_file_cmd=$lt_cv_to_host_file_cmd
6015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6016$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6017
6018
6019
6020
6021
6022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6023$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6024if ${lt_cv_to_tool_file_cmd+:} false; then :
6025 $as_echo_n "(cached) " >&6
6026else
6027 #assume ordinary cross tools, or native build.
6028lt_cv_to_tool_file_cmd=func_convert_file_noop
6029case $host in
6030 *-*-mingw* )
6031 case $build in
6032 *-*-mingw* ) # actually msys
6033 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6034 ;;
6035 esac
6036 ;;
6037esac
6038
6039fi
6040
6041to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6043$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6044
6045
6046
6047
6048
6049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6050$as_echo_n "checking for $LD option to reload object files... " >&6; }
6051if ${lt_cv_ld_reload_flag+:} false; then :
6052 $as_echo_n "(cached) " >&6
6053else
6054 lt_cv_ld_reload_flag='-r'
6055fi
6056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6057$as_echo "$lt_cv_ld_reload_flag" >&6; }
6058reload_flag=$lt_cv_ld_reload_flag
6059case $reload_flag in
6060"" | " "*) ;;
6061*) reload_flag=" $reload_flag" ;;
6062esac
6063reload_cmds='$LD$reload_flag -o $output$reload_objs'
6064case $host_os in
6065 cygwin* | mingw* | pw32* | cegcc*)
6066 if test "$GCC" != yes; then
6067 reload_cmds=false
6068 fi
6069 ;;
6070 darwin*)
6071 if test "$GCC" = yes; then
6072 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6073 else
6074 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6075 fi
6076 ;;
6077esac
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087if test -n "$ac_tool_prefix"; then
6088 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6089set dummy ${ac_tool_prefix}objdump; ac_word=$2
6090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6091$as_echo_n "checking for $ac_word... " >&6; }
6092if ${ac_cv_prog_OBJDUMP+:} false; then :
6093 $as_echo_n "(cached) " >&6
6094else
6095 if test -n "$OBJDUMP"; then
6096 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6097else
6098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6099for as_dir in $PATH
6100do
6101 IFS=$as_save_IFS
6102 test -z "$as_dir" && as_dir=.
6103 for ac_exec_ext in '' $ac_executable_extensions; do
6104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6105 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6107 break 2
6108 fi
6109done
6110 done
6111IFS=$as_save_IFS
6112
6113fi
6114fi
6115OBJDUMP=$ac_cv_prog_OBJDUMP
6116if test -n "$OBJDUMP"; then
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6118$as_echo "$OBJDUMP" >&6; }
6119else
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6121$as_echo "no" >&6; }
6122fi
6123
6124
6125fi
6126if test -z "$ac_cv_prog_OBJDUMP"; then
6127 ac_ct_OBJDUMP=$OBJDUMP
6128 # Extract the first word of "objdump", so it can be a program name with args.
6129set dummy objdump; ac_word=$2
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6131$as_echo_n "checking for $ac_word... " >&6; }
6132if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6133 $as_echo_n "(cached) " >&6
6134else
6135 if test -n "$ac_ct_OBJDUMP"; then
6136 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6137else
6138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139for as_dir in $PATH
6140do
6141 IFS=$as_save_IFS
6142 test -z "$as_dir" && as_dir=.
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6145 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6147 break 2
6148 fi
6149done
6150 done
6151IFS=$as_save_IFS
6152
6153fi
6154fi
6155ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6156if test -n "$ac_ct_OBJDUMP"; then
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6158$as_echo "$ac_ct_OBJDUMP" >&6; }
6159else
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161$as_echo "no" >&6; }
6162fi
6163
6164 if test "x$ac_ct_OBJDUMP" = x; then
6165 OBJDUMP="false"
6166 else
6167 case $cross_compiling:$ac_tool_warned in
6168yes:)
6169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6171ac_tool_warned=yes ;;
6172esac
6173 OBJDUMP=$ac_ct_OBJDUMP
6174 fi
6175else
6176 OBJDUMP="$ac_cv_prog_OBJDUMP"
6177fi
6178
6179test -z "$OBJDUMP" && OBJDUMP=objdump
6180
6181
6182
6183
6184
6185
6186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6187$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6188if ${lt_cv_deplibs_check_method+:} false; then :
6189 $as_echo_n "(cached) " >&6
6190else
6191 lt_cv_file_magic_cmd='$MAGIC_CMD'
6192lt_cv_file_magic_test_file=
6193lt_cv_deplibs_check_method='unknown'
6194# Need to set the preceding variable on all platforms that support
6195# interlibrary dependencies.
6196# 'none' -- dependencies not supported.
6197# `unknown' -- same as none, but documents that we really don't know.
6198# 'pass_all' -- all dependencies passed with no checks.
6199# 'test_compile' -- check by making test program.
6200# 'file_magic [[regex]]' -- check by looking for files in library path
6201# which responds to the $file_magic_cmd with a given extended regex.
6202# If you have `file' or equivalent on your system and you're not sure
6203# whether `pass_all' will *always* work, you probably want this one.
6204
6205case $host_os in
6206aix[4-9]*)
6207 lt_cv_deplibs_check_method=pass_all
6208 ;;
6209
6210beos*)
6211 lt_cv_deplibs_check_method=pass_all
6212 ;;
6213
6214bsdi[45]*)
6215 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6216 lt_cv_file_magic_cmd='/usr/bin/file -L'
6217 lt_cv_file_magic_test_file=/shlib/libc.so
6218 ;;
6219
6220cygwin*)
6221 # func_win32_libid is a shell function defined in ltmain.sh
6222 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6223 lt_cv_file_magic_cmd='func_win32_libid'
6224 ;;
6225
6226mingw* | pw32*)
6227 # Base MSYS/MinGW do not provide the 'file' command needed by
6228 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6229 # unless we find 'file', for example because we are cross-compiling.
6230 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6231 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6232 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6233 lt_cv_file_magic_cmd='func_win32_libid'
6234 else
6235 # Keep this pattern in sync with the one in func_win32_libid.
6236 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6237 lt_cv_file_magic_cmd='$OBJDUMP -f'
6238 fi
6239 ;;
6240
6241cegcc*)
6242 # use the weaker test based on 'objdump'. See mingw*.
6243 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6244 lt_cv_file_magic_cmd='$OBJDUMP -f'
6245 ;;
6246
6247darwin* | rhapsody*)
6248 lt_cv_deplibs_check_method=pass_all
6249 ;;
6250
6251freebsd* | dragonfly*)
6252 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6253 case $host_cpu in
6254 i*86 )
6255 # Not sure whether the presence of OpenBSD here was a mistake.
6256 # Let's accept both of them until this is cleared up.
6257 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6258 lt_cv_file_magic_cmd=/usr/bin/file
6259 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6260 ;;
6261 esac
6262 else
6263 lt_cv_deplibs_check_method=pass_all
6264 fi
6265 ;;
6266
6267gnu*)
6268 lt_cv_deplibs_check_method=pass_all
6269 ;;
6270
6271haiku*)
6272 lt_cv_deplibs_check_method=pass_all
6273 ;;
6274
6275hpux10.20* | hpux11*)
6276 lt_cv_file_magic_cmd=/usr/bin/file
6277 case $host_cpu in
6278 ia64*)
6279 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6280 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6281 ;;
6282 hppa*64*)
6283 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]'
6284 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6285 ;;
6286 *)
6287 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6288 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6289 ;;
6290 esac
6291 ;;
6292
6293interix[3-9]*)
6294 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6295 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6296 ;;
6297
6298irix5* | irix6* | nonstopux*)
6299 case $LD in
6300 *-32|*"-32 ") libmagic=32-bit;;
6301 *-n32|*"-n32 ") libmagic=N32;;
6302 *-64|*"-64 ") libmagic=64-bit;;
6303 *) libmagic=never-match;;
6304 esac
6305 lt_cv_deplibs_check_method=pass_all
6306 ;;
6307
6308# This must be glibc/ELF.
6309linux* | k*bsd*-gnu | kopensolaris*-gnu)
6310 lt_cv_deplibs_check_method=pass_all
6311 ;;
6312
6313netbsd*)
6314 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6316 else
6317 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6318 fi
6319 ;;
6320
6321newos6*)
6322 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6323 lt_cv_file_magic_cmd=/usr/bin/file
6324 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6325 ;;
6326
6327*nto* | *qnx*)
6328 lt_cv_deplibs_check_method=pass_all
6329 ;;
6330
6331openbsd*)
6332 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6333 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6334 else
6335 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6336 fi
6337 ;;
6338
6339osf3* | osf4* | osf5*)
6340 lt_cv_deplibs_check_method=pass_all
6341 ;;
6342
6343rdos*)
6344 lt_cv_deplibs_check_method=pass_all
6345 ;;
6346
6347solaris*)
6348 lt_cv_deplibs_check_method=pass_all
6349 ;;
6350
6351sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6352 lt_cv_deplibs_check_method=pass_all
6353 ;;
6354
6355sysv4 | sysv4.3*)
6356 case $host_vendor in
6357 motorola)
6358 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]'
6359 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6360 ;;
6361 ncr)
6362 lt_cv_deplibs_check_method=pass_all
6363 ;;
6364 sequent)
6365 lt_cv_file_magic_cmd='/bin/file'
6366 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6367 ;;
6368 sni)
6369 lt_cv_file_magic_cmd='/bin/file'
6370 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6371 lt_cv_file_magic_test_file=/lib/libc.so
6372 ;;
6373 siemens)
6374 lt_cv_deplibs_check_method=pass_all
6375 ;;
6376 pc)
6377 lt_cv_deplibs_check_method=pass_all
6378 ;;
6379 esac
6380 ;;
6381
6382tpf*)
6383 lt_cv_deplibs_check_method=pass_all
6384 ;;
6385esac
6386
6387fi
6388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6389$as_echo "$lt_cv_deplibs_check_method" >&6; }
6390
6391file_magic_glob=
6392want_nocaseglob=no
6393if test "$build" = "$host"; then
6394 case $host_os in
6395 mingw* | pw32*)
6396 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6397 want_nocaseglob=yes
6398 else
6399 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6400 fi
6401 ;;
6402 esac
6403fi
6404
6405file_magic_cmd=$lt_cv_file_magic_cmd
6406deplibs_check_method=$lt_cv_deplibs_check_method
6407test -z "$deplibs_check_method" && deplibs_check_method=unknown
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430if test -n "$ac_tool_prefix"; then
6431 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6432set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434$as_echo_n "checking for $ac_word... " >&6; }
6435if ${ac_cv_prog_DLLTOOL+:} false; then :
6436 $as_echo_n "(cached) " >&6
6437else
6438 if test -n "$DLLTOOL"; then
6439 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6440else
6441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442for as_dir in $PATH
6443do
6444 IFS=$as_save_IFS
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 break 2
6451 fi
6452done
6453 done
6454IFS=$as_save_IFS
6455
6456fi
6457fi
6458DLLTOOL=$ac_cv_prog_DLLTOOL
6459if test -n "$DLLTOOL"; then
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6461$as_echo "$DLLTOOL" >&6; }
6462else
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464$as_echo "no" >&6; }
6465fi
6466
6467
6468fi
6469if test -z "$ac_cv_prog_DLLTOOL"; then
6470 ac_ct_DLLTOOL=$DLLTOOL
6471 # Extract the first word of "dlltool", so it can be a program name with args.
6472set dummy dlltool; ac_word=$2
6473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474$as_echo_n "checking for $ac_word... " >&6; }
6475if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6476 $as_echo_n "(cached) " >&6
6477else
6478 if test -n "$ac_ct_DLLTOOL"; then
6479 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6480else
6481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482for as_dir in $PATH
6483do
6484 IFS=$as_save_IFS
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6488 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 break 2
6491 fi
6492done
6493 done
6494IFS=$as_save_IFS
6495
6496fi
6497fi
6498ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6499if test -n "$ac_ct_DLLTOOL"; then
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6501$as_echo "$ac_ct_DLLTOOL" >&6; }
6502else
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504$as_echo "no" >&6; }
6505fi
6506
6507 if test "x$ac_ct_DLLTOOL" = x; then
6508 DLLTOOL="false"
6509 else
6510 case $cross_compiling:$ac_tool_warned in
6511yes:)
6512{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6513$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6514ac_tool_warned=yes ;;
6515esac
6516 DLLTOOL=$ac_ct_DLLTOOL
6517 fi
6518else
6519 DLLTOOL="$ac_cv_prog_DLLTOOL"
6520fi
6521
6522test -z "$DLLTOOL" && DLLTOOL=dlltool
6523
6524
6525
6526
6527
6528
6529
6530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6531$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6532if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6533 $as_echo_n "(cached) " >&6
6534else
6535 lt_cv_sharedlib_from_linklib_cmd='unknown'
6536
6537case $host_os in
6538cygwin* | mingw* | pw32* | cegcc*)
6539 # two different shell functions defined in ltmain.sh
6540 # decide which to use based on capabilities of $DLLTOOL
6541 case `$DLLTOOL --help 2>&1` in
6542 *--identify-strict*)
6543 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6544 ;;
6545 *)
6546 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6547 ;;
6548 esac
6549 ;;
6550*)
6551 # fallback: assume linklib IS sharedlib
6552 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6553 ;;
6554esac
6555
6556fi
6557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6558$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6559sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6560test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6561
6562
6563
6564
6565
6566
6567
6568
6569if test -n "$ac_tool_prefix"; then
6570 for ac_prog in ar
6571 do
6572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6573set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575$as_echo_n "checking for $ac_word... " >&6; }
6576if ${ac_cv_prog_AR+:} false; then :
6577 $as_echo_n "(cached) " >&6
6578else
6579 if test -n "$AR"; then
6580 ac_cv_prog_AR="$AR" # Let the user override the test.
6581else
6582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583for as_dir in $PATH
6584do
6585 IFS=$as_save_IFS
6586 test -z "$as_dir" && as_dir=.
6587 for ac_exec_ext in '' $ac_executable_extensions; do
6588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6589 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 break 2
6592 fi
6593done
6594 done
6595IFS=$as_save_IFS
6596
6597fi
6598fi
6599AR=$ac_cv_prog_AR
6600if test -n "$AR"; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6602$as_echo "$AR" >&6; }
6603else
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605$as_echo "no" >&6; }
6606fi
6607
6608
6609 test -n "$AR" && break
6610 done
6611fi
6612if test -z "$AR"; then
6613 ac_ct_AR=$AR
6614 for ac_prog in ar
6615do
6616 # Extract the first word of "$ac_prog", so it can be a program name with args.
6617set dummy $ac_prog; ac_word=$2
6618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619$as_echo_n "checking for $ac_word... " >&6; }
6620if ${ac_cv_prog_ac_ct_AR+:} false; then :
6621 $as_echo_n "(cached) " >&6
6622else
6623 if test -n "$ac_ct_AR"; then
6624 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6625else
6626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627for as_dir in $PATH
6628do
6629 IFS=$as_save_IFS
6630 test -z "$as_dir" && as_dir=.
6631 for ac_exec_ext in '' $ac_executable_extensions; do
6632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6633 ac_cv_prog_ac_ct_AR="$ac_prog"
6634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6635 break 2
6636 fi
6637done
6638 done
6639IFS=$as_save_IFS
6640
6641fi
6642fi
6643ac_ct_AR=$ac_cv_prog_ac_ct_AR
6644if test -n "$ac_ct_AR"; then
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6646$as_echo "$ac_ct_AR" >&6; }
6647else
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649$as_echo "no" >&6; }
6650fi
6651
6652
6653 test -n "$ac_ct_AR" && break
6654done
6655
6656 if test "x$ac_ct_AR" = x; then
6657 AR="false"
6658 else
6659 case $cross_compiling:$ac_tool_warned in
6660yes:)
6661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6663ac_tool_warned=yes ;;
6664esac
6665 AR=$ac_ct_AR
6666 fi
6667fi
6668
6669: ${AR=ar}
6670: ${AR_FLAGS=cru}
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6683$as_echo_n "checking for archiver @FILE support... " >&6; }
6684if ${lt_cv_ar_at_file+:} false; then :
6685 $as_echo_n "(cached) " >&6
6686else
6687 lt_cv_ar_at_file=no
6688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6689/* end confdefs.h. */
6690
6691int
6692main ()
6693{
6694
6695 ;
6696 return 0;
6697}
6698_ACEOF
6699if ac_fn_c_try_compile "$LINENO"; then :
6700 echo conftest.$ac_objext > conftest.lst
6701 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6703 (eval $lt_ar_try) 2>&5
6704 ac_status=$?
6705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6706 test $ac_status = 0; }
6707 if test "$ac_status" -eq 0; then
6708 # Ensure the archiver fails upon bogus file names.
6709 rm -f conftest.$ac_objext libconftest.a
6710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6711 (eval $lt_ar_try) 2>&5
6712 ac_status=$?
6713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6714 test $ac_status = 0; }
6715 if test "$ac_status" -ne 0; then
6716 lt_cv_ar_at_file=@
6717 fi
6718 fi
6719 rm -f conftest.* libconftest.a
6720
6721fi
6722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6723
6724fi
6725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6726$as_echo "$lt_cv_ar_at_file" >&6; }
6727
6728if test "x$lt_cv_ar_at_file" = xno; then
6729 archiver_list_spec=
6730else
6731 archiver_list_spec=$lt_cv_ar_at_file
6732fi
6733
6734
6735
6736
6737
6738
6739
6740if test -n "$ac_tool_prefix"; then
6741 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6742set dummy ${ac_tool_prefix}strip; ac_word=$2
6743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6744$as_echo_n "checking for $ac_word... " >&6; }
6745if ${ac_cv_prog_STRIP+:} false; then :
6746 $as_echo_n "(cached) " >&6
6747else
6748 if test -n "$STRIP"; then
6749 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6750else
6751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752for as_dir in $PATH
6753do
6754 IFS=$as_save_IFS
6755 test -z "$as_dir" && as_dir=.
6756 for ac_exec_ext in '' $ac_executable_extensions; do
6757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6758 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 break 2
6761 fi
6762done
6763 done
6764IFS=$as_save_IFS
6765
6766fi
6767fi
6768STRIP=$ac_cv_prog_STRIP
6769if test -n "$STRIP"; then
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6771$as_echo "$STRIP" >&6; }
6772else
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6774$as_echo "no" >&6; }
6775fi
6776
6777
6778fi
6779if test -z "$ac_cv_prog_STRIP"; then
6780 ac_ct_STRIP=$STRIP
6781 # Extract the first word of "strip", so it can be a program name with args.
6782set dummy strip; ac_word=$2
6783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6784$as_echo_n "checking for $ac_word... " >&6; }
6785if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6786 $as_echo_n "(cached) " >&6
6787else
6788 if test -n "$ac_ct_STRIP"; then
6789 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6790else
6791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792for as_dir in $PATH
6793do
6794 IFS=$as_save_IFS
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6798 ac_cv_prog_ac_ct_STRIP="strip"
6799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 break 2
6801 fi
6802done
6803 done
6804IFS=$as_save_IFS
6805
6806fi
6807fi
6808ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6809if test -n "$ac_ct_STRIP"; then
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6811$as_echo "$ac_ct_STRIP" >&6; }
6812else
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6814$as_echo "no" >&6; }
6815fi
6816
6817 if test "x$ac_ct_STRIP" = x; then
6818 STRIP=":"
6819 else
6820 case $cross_compiling:$ac_tool_warned in
6821yes:)
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6823$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6824ac_tool_warned=yes ;;
6825esac
6826 STRIP=$ac_ct_STRIP
6827 fi
6828else
6829 STRIP="$ac_cv_prog_STRIP"
6830fi
6831
6832test -z "$STRIP" && STRIP=:
6833
6834
6835
6836
6837
6838
6839if test -n "$ac_tool_prefix"; then
6840 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6841set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843$as_echo_n "checking for $ac_word... " >&6; }
6844if ${ac_cv_prog_RANLIB+:} false; then :
6845 $as_echo_n "(cached) " >&6
6846else
6847 if test -n "$RANLIB"; then
6848 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6849else
6850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851for as_dir in $PATH
6852do
6853 IFS=$as_save_IFS
6854 test -z "$as_dir" && as_dir=.
6855 for ac_exec_ext in '' $ac_executable_extensions; do
6856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6857 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859 break 2
6860 fi
6861done
6862 done
6863IFS=$as_save_IFS
6864
6865fi
6866fi
6867RANLIB=$ac_cv_prog_RANLIB
6868if test -n "$RANLIB"; then
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6870$as_echo "$RANLIB" >&6; }
6871else
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873$as_echo "no" >&6; }
6874fi
6875
6876
6877fi
6878if test -z "$ac_cv_prog_RANLIB"; then
6879 ac_ct_RANLIB=$RANLIB
6880 # Extract the first word of "ranlib", so it can be a program name with args.
6881set dummy ranlib; ac_word=$2
6882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6883$as_echo_n "checking for $ac_word... " >&6; }
6884if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6885 $as_echo_n "(cached) " >&6
6886else
6887 if test -n "$ac_ct_RANLIB"; then
6888 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6889else
6890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891for as_dir in $PATH
6892do
6893 IFS=$as_save_IFS
6894 test -z "$as_dir" && as_dir=.
6895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6897 ac_cv_prog_ac_ct_RANLIB="ranlib"
6898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6899 break 2
6900 fi
6901done
6902 done
6903IFS=$as_save_IFS
6904
6905fi
6906fi
6907ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6908if test -n "$ac_ct_RANLIB"; then
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6910$as_echo "$ac_ct_RANLIB" >&6; }
6911else
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6913$as_echo "no" >&6; }
6914fi
6915
6916 if test "x$ac_ct_RANLIB" = x; then
6917 RANLIB=":"
6918 else
6919 case $cross_compiling:$ac_tool_warned in
6920yes:)
6921{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6922$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6923ac_tool_warned=yes ;;
6924esac
6925 RANLIB=$ac_ct_RANLIB
6926 fi
6927else
6928 RANLIB="$ac_cv_prog_RANLIB"
6929fi
6930
6931test -z "$RANLIB" && RANLIB=:
6932
6933
6934
6935
6936
6937
6938# Determine commands to create old-style static archives.
6939old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6940old_postinstall_cmds='chmod 644 $oldlib'
6941old_postuninstall_cmds=
6942
6943if test -n "$RANLIB"; then
6944 case $host_os in
6945 openbsd*)
6946 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6947 ;;
6948 *)
6949 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6950 ;;
6951 esac
6952 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6953fi
6954
6955case $host_os in
6956 darwin*)
6957 lock_old_archive_extraction=yes ;;
6958 *)
6959 lock_old_archive_extraction=no ;;
6960esac
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982for ac_prog in gawk mawk nawk awk
6983do
6984 # Extract the first word of "$ac_prog", so it can be a program name with args.
6985set dummy $ac_prog; ac_word=$2
6986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987$as_echo_n "checking for $ac_word... " >&6; }
6988if ${ac_cv_prog_AWK+:} false; then :
6989 $as_echo_n "(cached) " >&6
6990else
6991 if test -n "$AWK"; then
6992 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6993else
6994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995for as_dir in $PATH
6996do
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7001 ac_cv_prog_AWK="$ac_prog"
7002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 break 2
7004 fi
7005done
7006 done
7007IFS=$as_save_IFS
7008
7009fi
7010fi
7011AWK=$ac_cv_prog_AWK
7012if test -n "$AWK"; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
7014$as_echo "$AWK" >&6; }
7015else
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017$as_echo "no" >&6; }
7018fi
7019
7020
7021 test -n "$AWK" && break
7022done
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042# If no C compiler was specified, use CC.
7043LTCC=${LTCC-"$CC"}
7044
7045# If no C compiler flags were specified, use CFLAGS.
7046LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7047
7048# Allow CC to be a program name with arguments.
7049compiler=$CC
7050
7051
7052# Check for command to grab the raw symbol name followed by C symbol from nm.
7053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7054$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7055if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7056 $as_echo_n "(cached) " >&6
7057else
7058
7059# These are sane defaults that work on at least a few old systems.
7060# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7061
7062# Character class describing NM global symbol codes.
7063symcode='[BCDEGRST]'
7064
7065# Regexp to match symbols that can be accessed directly from C.
7066sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7067
7068# Define system-specific variables.
7069case $host_os in
7070aix*)
7071 symcode='[BCDT]'
7072 ;;
7073cygwin* | mingw* | pw32* | cegcc*)
7074 symcode='[ABCDGISTW]'
7075 ;;
7076hpux*)
7077 if test "$host_cpu" = ia64; then
7078 symcode='[ABCDEGRST]'
7079 fi
7080 ;;
7081irix* | nonstopux*)
7082 symcode='[BCDEGRST]'
7083 ;;
7084osf*)
7085 symcode='[BCDEGQRST]'
7086 ;;
7087solaris*)
7088 symcode='[BDRT]'
7089 ;;
7090sco3.2v5*)
7091 symcode='[DT]'
7092 ;;
7093sysv4.2uw2*)
7094 symcode='[DT]'
7095 ;;
7096sysv5* | sco5v6* | unixware* | OpenUNIX*)
7097 symcode='[ABDT]'
7098 ;;
7099sysv4)
7100 symcode='[DFNSTU]'
7101 ;;
7102esac
7103
7104# If we're using GNU nm, then use its standard symbol codes.
7105case `$NM -V 2>&1` in
7106*GNU* | *'with BFD'*)
7107 symcode='[ABCDGIRSTW]' ;;
7108esac
7109
7110# Transform an extracted symbol line into a proper C declaration.
7111# Some systems (esp. on ia64) link data and code symbols differently,
7112# so use this general approach.
7113lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7114
7115# Transform an extracted symbol line into symbol name and symbol address
7116lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7117lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7118
7119# Handle CRLF in mingw tool chain
7120opt_cr=
7121case $build_os in
7122mingw*)
7123 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7124 ;;
7125esac
7126
7127# Try without a prefix underscore, then with it.
7128for ac_symprfx in "" "_"; do
7129
7130 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7131 symxfrm="\\1 $ac_symprfx\\2 \\2"
7132
7133 # Write the raw and C identifiers.
7134 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7135 # Fake it for dumpbin and say T for any non-static function
7136 # and D for any global variable.
7137 # Also find C++ and __fastcall symbols from MSVC++,
7138 # which start with @ or ?.
7139 lt_cv_sys_global_symbol_pipe="$AWK '"\
7140" {last_section=section; section=\$ 3};"\
7141" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7142" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7143" \$ 0!~/External *\|/{next};"\
7144" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7145" {if(hide[section]) next};"\
7146" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7147" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7148" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7149" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7150" ' prfx=^$ac_symprfx"
7151 else
7152 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7153 fi
7154 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7155
7156 # Check to see that the pipe works correctly.
7157 pipe_works=no
7158
7159 rm -f conftest*
7160 cat > conftest.$ac_ext <<_LT_EOF
7161#ifdef __cplusplus
7162extern "C" {
7163#endif
7164char nm_test_var;
7165void nm_test_func(void);
7166void nm_test_func(void){}
7167#ifdef __cplusplus
7168}
7169#endif
7170int main(){nm_test_var='a';nm_test_func();return(0);}
7171_LT_EOF
7172
7173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7174 (eval $ac_compile) 2>&5
7175 ac_status=$?
7176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7177 test $ac_status = 0; }; then
7178 # Now try to grab the symbols.
7179 nlist=conftest.nm
7180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7181 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7182 ac_status=$?
7183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7184 test $ac_status = 0; } && test -s "$nlist"; then
7185 # Try sorting and uniquifying the output.
7186 if sort "$nlist" | uniq > "$nlist"T; then
7187 mv -f "$nlist"T "$nlist"
7188 else
7189 rm -f "$nlist"T
7190 fi
7191
7192 # Make sure that we snagged all the symbols we need.
7193 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7194 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7195 cat <<_LT_EOF > conftest.$ac_ext
7196/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7197#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7198/* DATA imports from DLLs on WIN32 con't be const, because runtime
7199 relocations are performed -- see ld's documentation on pseudo-relocs. */
7200# define LT@&t@_DLSYM_CONST
7201#elif defined(__osf__)
7202/* This system does not cope well with relocations in const data. */
7203# define LT@&t@_DLSYM_CONST
7204#else
7205# define LT@&t@_DLSYM_CONST const
7206#endif
7207
7208#ifdef __cplusplus
7209extern "C" {
7210#endif
7211
7212_LT_EOF
7213 # Now generate the symbol file.
7214 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7215
7216 cat <<_LT_EOF >> conftest.$ac_ext
7217
7218/* The mapping between symbol names and symbols. */
7219LT@&t@_DLSYM_CONST struct {
7220 const char *name;
7221 void *address;
7222}
7223lt__PROGRAM__LTX_preloaded_symbols[] =
7224{
7225 { "@PROGRAM@", (void *) 0 },
7226_LT_EOF
7227 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7228 cat <<\_LT_EOF >> conftest.$ac_ext
7229 {0, (void *) 0}
7230};
7231
7232/* This works around a problem in FreeBSD linker */
7233#ifdef FREEBSD_WORKAROUND
7234static const void *lt_preloaded_setup() {
7235 return lt__PROGRAM__LTX_preloaded_symbols;
7236}
7237#endif
7238
7239#ifdef __cplusplus
7240}
7241#endif
7242_LT_EOF
7243 # Now try linking the two files.
7244 mv conftest.$ac_objext conftstm.$ac_objext
7245 lt_globsym_save_LIBS=$LIBS
7246 lt_globsym_save_CFLAGS=$CFLAGS
7247 LIBS="conftstm.$ac_objext"
7248 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7250 (eval $ac_link) 2>&5
7251 ac_status=$?
7252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7253 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7254 pipe_works=yes
7255 fi
7256 LIBS=$lt_globsym_save_LIBS
7257 CFLAGS=$lt_globsym_save_CFLAGS
7258 else
7259 echo "cannot find nm_test_func in $nlist" >&5
7260 fi
7261 else
7262 echo "cannot find nm_test_var in $nlist" >&5
7263 fi
7264 else
7265 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7266 fi
7267 else
7268 echo "$progname: failed program was:" >&5
7269 cat conftest.$ac_ext >&5
7270 fi
7271 rm -rf conftest* conftst*
7272
7273 # Do not use the global_symbol_pipe unless it works.
7274 if test "$pipe_works" = yes; then
7275 break
7276 else
7277 lt_cv_sys_global_symbol_pipe=
7278 fi
7279done
7280
7281fi
7282
7283if test -z "$lt_cv_sys_global_symbol_pipe"; then
7284 lt_cv_sys_global_symbol_to_cdecl=
7285fi
7286if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7288$as_echo "failed" >&6; }
7289else
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7291$as_echo "ok" >&6; }
7292fi
7293
7294# Response file support.
7295if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7296 nm_file_list_spec='@'
7297elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7298 nm_file_list_spec='@'
7299fi
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7328$as_echo_n "checking for sysroot... " >&6; }
7329
7330@%:@ Check whether --with-sysroot was given.
7331if test "${with_sysroot+set}" = set; then :
7332 withval=$with_sysroot;
7333else
7334 with_sysroot=no
7335fi
7336
7337
7338lt_sysroot=
7339case ${with_sysroot} in #(
7340 yes)
7341 if test "$GCC" = yes; then
7342 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7343 fi
7344 ;; #(
7345 /*)
7346 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7347 ;; #(
7348 no|'')
7349 ;; #(
7350 *)
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7352$as_echo "${with_sysroot}" >&6; }
7353 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7354 ;;
7355esac
7356
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7358$as_echo "${lt_sysroot:-no}" >&6; }
7359
7360
7361
7362
7363
7364@%:@ Check whether --enable-libtool-lock was given.
7365if test "${enable_libtool_lock+set}" = set; then :
7366 enableval=$enable_libtool_lock;
7367fi
7368
7369test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7370
7371# Some flags need to be propagated to the compiler or linker for good
7372# libtool support.
7373case $host in
7374ia64-*-hpux*)
7375 # Find out which ABI we are using.
7376 echo 'int i;' > conftest.$ac_ext
7377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7378 (eval $ac_compile) 2>&5
7379 ac_status=$?
7380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7381 test $ac_status = 0; }; then
7382 case `/usr/bin/file conftest.$ac_objext` in
7383 *ELF-32*)
7384 HPUX_IA64_MODE="32"
7385 ;;
7386 *ELF-64*)
7387 HPUX_IA64_MODE="64"
7388 ;;
7389 esac
7390 fi
7391 rm -rf conftest*
7392 ;;
7393*-*-irix6*)
7394 # Find out which ABI we are using.
7395 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7397 (eval $ac_compile) 2>&5
7398 ac_status=$?
7399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7400 test $ac_status = 0; }; then
7401 if test "$lt_cv_prog_gnu_ld" = yes; then
7402 case `/usr/bin/file conftest.$ac_objext` in
7403 *32-bit*)
7404 LD="${LD-ld} -melf32bsmip"
7405 ;;
7406 *N32*)
7407 LD="${LD-ld} -melf32bmipn32"
7408 ;;
7409 *64-bit*)
7410 LD="${LD-ld} -melf64bmip"
7411 ;;
7412 esac
7413 else
7414 case `/usr/bin/file conftest.$ac_objext` in
7415 *32-bit*)
7416 LD="${LD-ld} -32"
7417 ;;
7418 *N32*)
7419 LD="${LD-ld} -n32"
7420 ;;
7421 *64-bit*)
7422 LD="${LD-ld} -64"
7423 ;;
7424 esac
7425 fi
7426 fi
7427 rm -rf conftest*
7428 ;;
7429
7430x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7431s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7432 # Find out which ABI we are using.
7433 echo 'int i;' > conftest.$ac_ext
7434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7435 (eval $ac_compile) 2>&5
7436 ac_status=$?
7437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7438 test $ac_status = 0; }; then
7439 case `/usr/bin/file conftest.o` in
7440 *32-bit*)
7441 case $host in
7442 x86_64-*kfreebsd*-gnu)
7443 LD="${LD-ld} -m elf_i386_fbsd"
7444 ;;
7445 x86_64-*linux*)
7446 LD="${LD-ld} -m elf_i386"
7447 ;;
7448 powerpc64le-*linux*)
7449 LD="${LD-ld} -m elf32lppclinux"
7450 ;;
7451 powerpc64-*linux*)
7452 LD="${LD-ld} -m elf32ppclinux"
7453 ;;
7454 s390x-*linux*)
7455 LD="${LD-ld} -m elf_s390"
7456 ;;
7457 sparc64-*linux*)
7458 LD="${LD-ld} -m elf32_sparc"
7459 ;;
7460 esac
7461 ;;
7462 *64-bit*)
7463 case $host in
7464 x86_64-*kfreebsd*-gnu)
7465 LD="${LD-ld} -m elf_x86_64_fbsd"
7466 ;;
7467 x86_64-*linux*)
7468 LD="${LD-ld} -m elf_x86_64"
7469 ;;
7470 powerpcle-*linux*)
7471 LD="${LD-ld} -m elf64lppc"
7472 ;;
7473 powerpc-*linux*)
7474 LD="${LD-ld} -m elf64ppc"
7475 ;;
7476 s390*-*linux*|s390*-*tpf*)
7477 LD="${LD-ld} -m elf64_s390"
7478 ;;
7479 sparc*-*linux*)
7480 LD="${LD-ld} -m elf64_sparc"
7481 ;;
7482 esac
7483 ;;
7484 esac
7485 fi
7486 rm -rf conftest*
7487 ;;
7488
7489*-*-sco3.2v5*)
7490 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7491 SAVE_CFLAGS="$CFLAGS"
7492 CFLAGS="$CFLAGS -belf"
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7494$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7495if ${lt_cv_cc_needs_belf+:} false; then :
7496 $as_echo_n "(cached) " >&6
7497else
7498 ac_ext=c
7499ac_cpp='$CPP $CPPFLAGS'
7500ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7501ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7502ac_compiler_gnu=$ac_cv_c_compiler_gnu
7503
7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505/* end confdefs.h. */
7506
7507int
7508main ()
7509{
7510
7511 ;
7512 return 0;
7513}
7514_ACEOF
7515if ac_fn_c_try_link "$LINENO"; then :
7516 lt_cv_cc_needs_belf=yes
7517else
7518 lt_cv_cc_needs_belf=no
7519fi
7520rm -f core conftest.err conftest.$ac_objext \
7521 conftest$ac_exeext conftest.$ac_ext
7522 ac_ext=c
7523ac_cpp='$CPP $CPPFLAGS'
7524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7526ac_compiler_gnu=$ac_cv_c_compiler_gnu
7527
7528fi
7529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7530$as_echo "$lt_cv_cc_needs_belf" >&6; }
7531 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7532 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7533 CFLAGS="$SAVE_CFLAGS"
7534 fi
7535 ;;
7536*-*solaris*)
7537 # Find out which ABI we are using.
7538 echo 'int i;' > conftest.$ac_ext
7539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7540 (eval $ac_compile) 2>&5
7541 ac_status=$?
7542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7543 test $ac_status = 0; }; then
7544 case `/usr/bin/file conftest.o` in
7545 *64-bit*)
7546 case $lt_cv_prog_gnu_ld in
7547 yes*)
7548 case $host in
7549 i?86-*-solaris*)
7550 LD="${LD-ld} -m elf_x86_64"
7551 ;;
7552 sparc*-*-solaris*)
7553 LD="${LD-ld} -m elf64_sparc"
7554 ;;
7555 esac
7556 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7557 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7558 LD="${LD-ld}_sol2"
7559 fi
7560 ;;
7561 *)
7562 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7563 LD="${LD-ld} -64"
7564 fi
7565 ;;
7566 esac
7567 ;;
7568 esac
7569 fi
7570 rm -rf conftest*
7571 ;;
7572esac
7573
7574need_locks="$enable_libtool_lock"
7575
7576if test -n "$ac_tool_prefix"; then
7577 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7578set dummy ${ac_tool_prefix}mt; ac_word=$2
7579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7580$as_echo_n "checking for $ac_word... " >&6; }
7581if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7582 $as_echo_n "(cached) " >&6
7583else
7584 if test -n "$MANIFEST_TOOL"; then
7585 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7586else
7587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7588for as_dir in $PATH
7589do
7590 IFS=$as_save_IFS
7591 test -z "$as_dir" && as_dir=.
7592 for ac_exec_ext in '' $ac_executable_extensions; do
7593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7594 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 break 2
7597 fi
7598done
7599 done
7600IFS=$as_save_IFS
7601
7602fi
7603fi
7604MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7605if test -n "$MANIFEST_TOOL"; then
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7607$as_echo "$MANIFEST_TOOL" >&6; }
7608else
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7610$as_echo "no" >&6; }
7611fi
7612
7613
7614fi
7615if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7616 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7617 # Extract the first word of "mt", so it can be a program name with args.
7618set dummy mt; ac_word=$2
7619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7620$as_echo_n "checking for $ac_word... " >&6; }
7621if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7622 $as_echo_n "(cached) " >&6
7623else
7624 if test -n "$ac_ct_MANIFEST_TOOL"; then
7625 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7626else
7627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7628for as_dir in $PATH
7629do
7630 IFS=$as_save_IFS
7631 test -z "$as_dir" && as_dir=.
7632 for ac_exec_ext in '' $ac_executable_extensions; do
7633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7634 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 break 2
7637 fi
7638done
7639 done
7640IFS=$as_save_IFS
7641
7642fi
7643fi
7644ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7645if test -n "$ac_ct_MANIFEST_TOOL"; then
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7647$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7648else
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7650$as_echo "no" >&6; }
7651fi
7652
7653 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7654 MANIFEST_TOOL=":"
7655 else
7656 case $cross_compiling:$ac_tool_warned in
7657yes:)
7658{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7659$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7660ac_tool_warned=yes ;;
7661esac
7662 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7663 fi
7664else
7665 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7666fi
7667
7668test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7670$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7671if ${lt_cv_path_mainfest_tool+:} false; then :
7672 $as_echo_n "(cached) " >&6
7673else
7674 lt_cv_path_mainfest_tool=no
7675 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7676 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7677 cat conftest.err >&5
7678 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7679 lt_cv_path_mainfest_tool=yes
7680 fi
7681 rm -f conftest*
7682fi
7683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7684$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7685if test "x$lt_cv_path_mainfest_tool" != xyes; then
7686 MANIFEST_TOOL=:
7687fi
7688
7689
7690
7691
7692
7693
7694 case $host_os in
7695 rhapsody* | darwin*)
7696 if test -n "$ac_tool_prefix"; then
7697 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7698set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7700$as_echo_n "checking for $ac_word... " >&6; }
7701if ${ac_cv_prog_DSYMUTIL+:} false; then :
7702 $as_echo_n "(cached) " >&6
7703else
7704 if test -n "$DSYMUTIL"; then
7705 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7706else
7707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7708for as_dir in $PATH
7709do
7710 IFS=$as_save_IFS
7711 test -z "$as_dir" && as_dir=.
7712 for ac_exec_ext in '' $ac_executable_extensions; do
7713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7714 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7716 break 2
7717 fi
7718done
7719 done
7720IFS=$as_save_IFS
7721
7722fi
7723fi
7724DSYMUTIL=$ac_cv_prog_DSYMUTIL
7725if test -n "$DSYMUTIL"; then
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7727$as_echo "$DSYMUTIL" >&6; }
7728else
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7730$as_echo "no" >&6; }
7731fi
7732
7733
7734fi
7735if test -z "$ac_cv_prog_DSYMUTIL"; then
7736 ac_ct_DSYMUTIL=$DSYMUTIL
7737 # Extract the first word of "dsymutil", so it can be a program name with args.
7738set dummy dsymutil; ac_word=$2
7739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7740$as_echo_n "checking for $ac_word... " >&6; }
7741if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7742 $as_echo_n "(cached) " >&6
7743else
7744 if test -n "$ac_ct_DSYMUTIL"; then
7745 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7746else
7747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748for as_dir in $PATH
7749do
7750 IFS=$as_save_IFS
7751 test -z "$as_dir" && as_dir=.
7752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7754 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7756 break 2
7757 fi
7758done
7759 done
7760IFS=$as_save_IFS
7761
7762fi
7763fi
7764ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7765if test -n "$ac_ct_DSYMUTIL"; then
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7767$as_echo "$ac_ct_DSYMUTIL" >&6; }
7768else
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7770$as_echo "no" >&6; }
7771fi
7772
7773 if test "x$ac_ct_DSYMUTIL" = x; then
7774 DSYMUTIL=":"
7775 else
7776 case $cross_compiling:$ac_tool_warned in
7777yes:)
7778{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7779$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7780ac_tool_warned=yes ;;
7781esac
7782 DSYMUTIL=$ac_ct_DSYMUTIL
7783 fi
7784else
7785 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7786fi
7787
7788 if test -n "$ac_tool_prefix"; then
7789 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7790set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792$as_echo_n "checking for $ac_word... " >&6; }
7793if ${ac_cv_prog_NMEDIT+:} false; then :
7794 $as_echo_n "(cached) " >&6
7795else
7796 if test -n "$NMEDIT"; then
7797 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7798else
7799as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800for as_dir in $PATH
7801do
7802 IFS=$as_save_IFS
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7806 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 break 2
7809 fi
7810done
7811 done
7812IFS=$as_save_IFS
7813
7814fi
7815fi
7816NMEDIT=$ac_cv_prog_NMEDIT
7817if test -n "$NMEDIT"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7819$as_echo "$NMEDIT" >&6; }
7820else
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822$as_echo "no" >&6; }
7823fi
7824
7825
7826fi
7827if test -z "$ac_cv_prog_NMEDIT"; then
7828 ac_ct_NMEDIT=$NMEDIT
7829 # Extract the first word of "nmedit", so it can be a program name with args.
7830set dummy nmedit; ac_word=$2
7831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832$as_echo_n "checking for $ac_word... " >&6; }
7833if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7834 $as_echo_n "(cached) " >&6
7835else
7836 if test -n "$ac_ct_NMEDIT"; then
7837 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7838else
7839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840for as_dir in $PATH
7841do
7842 IFS=$as_save_IFS
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7846 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 break 2
7849 fi
7850done
7851 done
7852IFS=$as_save_IFS
7853
7854fi
7855fi
7856ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7857if test -n "$ac_ct_NMEDIT"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7859$as_echo "$ac_ct_NMEDIT" >&6; }
7860else
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862$as_echo "no" >&6; }
7863fi
7864
7865 if test "x$ac_ct_NMEDIT" = x; then
7866 NMEDIT=":"
7867 else
7868 case $cross_compiling:$ac_tool_warned in
7869yes:)
7870{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7871$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7872ac_tool_warned=yes ;;
7873esac
7874 NMEDIT=$ac_ct_NMEDIT
7875 fi
7876else
7877 NMEDIT="$ac_cv_prog_NMEDIT"
7878fi
7879
7880 if test -n "$ac_tool_prefix"; then
7881 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7882set dummy ${ac_tool_prefix}lipo; ac_word=$2
7883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7884$as_echo_n "checking for $ac_word... " >&6; }
7885if ${ac_cv_prog_LIPO+:} false; then :
7886 $as_echo_n "(cached) " >&6
7887else
7888 if test -n "$LIPO"; then
7889 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7890else
7891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7892for as_dir in $PATH
7893do
7894 IFS=$as_save_IFS
7895 test -z "$as_dir" && as_dir=.
7896 for ac_exec_ext in '' $ac_executable_extensions; do
7897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7898 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7900 break 2
7901 fi
7902done
7903 done
7904IFS=$as_save_IFS
7905
7906fi
7907fi
7908LIPO=$ac_cv_prog_LIPO
7909if test -n "$LIPO"; then
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7911$as_echo "$LIPO" >&6; }
7912else
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7914$as_echo "no" >&6; }
7915fi
7916
7917
7918fi
7919if test -z "$ac_cv_prog_LIPO"; then
7920 ac_ct_LIPO=$LIPO
7921 # Extract the first word of "lipo", so it can be a program name with args.
7922set dummy lipo; ac_word=$2
7923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924$as_echo_n "checking for $ac_word... " >&6; }
7925if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7926 $as_echo_n "(cached) " >&6
7927else
7928 if test -n "$ac_ct_LIPO"; then
7929 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7930else
7931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932for as_dir in $PATH
7933do
7934 IFS=$as_save_IFS
7935 test -z "$as_dir" && as_dir=.
7936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7938 ac_cv_prog_ac_ct_LIPO="lipo"
7939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7940 break 2
7941 fi
7942done
7943 done
7944IFS=$as_save_IFS
7945
7946fi
7947fi
7948ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7949if test -n "$ac_ct_LIPO"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7951$as_echo "$ac_ct_LIPO" >&6; }
7952else
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954$as_echo "no" >&6; }
7955fi
7956
7957 if test "x$ac_ct_LIPO" = x; then
7958 LIPO=":"
7959 else
7960 case $cross_compiling:$ac_tool_warned in
7961yes:)
7962{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7963$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7964ac_tool_warned=yes ;;
7965esac
7966 LIPO=$ac_ct_LIPO
7967 fi
7968else
7969 LIPO="$ac_cv_prog_LIPO"
7970fi
7971
7972 if test -n "$ac_tool_prefix"; then
7973 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7974set dummy ${ac_tool_prefix}otool; ac_word=$2
7975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7976$as_echo_n "checking for $ac_word... " >&6; }
7977if ${ac_cv_prog_OTOOL+:} false; then :
7978 $as_echo_n "(cached) " >&6
7979else
7980 if test -n "$OTOOL"; then
7981 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7982else
7983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7984for as_dir in $PATH
7985do
7986 IFS=$as_save_IFS
7987 test -z "$as_dir" && as_dir=.
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7992 break 2
7993 fi
7994done
7995 done
7996IFS=$as_save_IFS
7997
7998fi
7999fi
8000OTOOL=$ac_cv_prog_OTOOL
8001if test -n "$OTOOL"; then
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8003$as_echo "$OTOOL" >&6; }
8004else
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8006$as_echo "no" >&6; }
8007fi
8008
8009
8010fi
8011if test -z "$ac_cv_prog_OTOOL"; then
8012 ac_ct_OTOOL=$OTOOL
8013 # Extract the first word of "otool", so it can be a program name with args.
8014set dummy otool; ac_word=$2
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8016$as_echo_n "checking for $ac_word... " >&6; }
8017if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8018 $as_echo_n "(cached) " >&6
8019else
8020 if test -n "$ac_ct_OTOOL"; then
8021 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8022else
8023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8024for as_dir in $PATH
8025do
8026 IFS=$as_save_IFS
8027 test -z "$as_dir" && as_dir=.
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8030 ac_cv_prog_ac_ct_OTOOL="otool"
8031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8032 break 2
8033 fi
8034done
8035 done
8036IFS=$as_save_IFS
8037
8038fi
8039fi
8040ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8041if test -n "$ac_ct_OTOOL"; then
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8043$as_echo "$ac_ct_OTOOL" >&6; }
8044else
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046$as_echo "no" >&6; }
8047fi
8048
8049 if test "x$ac_ct_OTOOL" = x; then
8050 OTOOL=":"
8051 else
8052 case $cross_compiling:$ac_tool_warned in
8053yes:)
8054{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8055$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8056ac_tool_warned=yes ;;
8057esac
8058 OTOOL=$ac_ct_OTOOL
8059 fi
8060else
8061 OTOOL="$ac_cv_prog_OTOOL"
8062fi
8063
8064 if test -n "$ac_tool_prefix"; then
8065 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8066set dummy ${ac_tool_prefix}otool64; ac_word=$2
8067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068$as_echo_n "checking for $ac_word... " >&6; }
8069if ${ac_cv_prog_OTOOL64+:} false; then :
8070 $as_echo_n "(cached) " >&6
8071else
8072 if test -n "$OTOOL64"; then
8073 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8074else
8075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076for as_dir in $PATH
8077do
8078 IFS=$as_save_IFS
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8082 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 break 2
8085 fi
8086done
8087 done
8088IFS=$as_save_IFS
8089
8090fi
8091fi
8092OTOOL64=$ac_cv_prog_OTOOL64
8093if test -n "$OTOOL64"; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8095$as_echo "$OTOOL64" >&6; }
8096else
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098$as_echo "no" >&6; }
8099fi
8100
8101
8102fi
8103if test -z "$ac_cv_prog_OTOOL64"; then
8104 ac_ct_OTOOL64=$OTOOL64
8105 # Extract the first word of "otool64", so it can be a program name with args.
8106set dummy otool64; ac_word=$2
8107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8108$as_echo_n "checking for $ac_word... " >&6; }
8109if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8110 $as_echo_n "(cached) " >&6
8111else
8112 if test -n "$ac_ct_OTOOL64"; then
8113 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8114else
8115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116for as_dir in $PATH
8117do
8118 IFS=$as_save_IFS
8119 test -z "$as_dir" && as_dir=.
8120 for ac_exec_ext in '' $ac_executable_extensions; do
8121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8122 ac_cv_prog_ac_ct_OTOOL64="otool64"
8123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8124 break 2
8125 fi
8126done
8127 done
8128IFS=$as_save_IFS
8129
8130fi
8131fi
8132ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8133if test -n "$ac_ct_OTOOL64"; then
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8135$as_echo "$ac_ct_OTOOL64" >&6; }
8136else
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138$as_echo "no" >&6; }
8139fi
8140
8141 if test "x$ac_ct_OTOOL64" = x; then
8142 OTOOL64=":"
8143 else
8144 case $cross_compiling:$ac_tool_warned in
8145yes:)
8146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8148ac_tool_warned=yes ;;
8149esac
8150 OTOOL64=$ac_ct_OTOOL64
8151 fi
8152else
8153 OTOOL64="$ac_cv_prog_OTOOL64"
8154fi
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8183$as_echo_n "checking for -single_module linker flag... " >&6; }
8184if ${lt_cv_apple_cc_single_mod+:} false; then :
8185 $as_echo_n "(cached) " >&6
8186else
8187 lt_cv_apple_cc_single_mod=no
8188 if test -z "${LT_MULTI_MODULE}"; then
8189 # By default we will add the -single_module flag. You can override
8190 # by either setting the environment variable LT_MULTI_MODULE
8191 # non-empty at configure time, or by adding -multi_module to the
8192 # link flags.
8193 rm -rf libconftest.dylib*
8194 echo "int foo(void){return 1;}" > conftest.c
8195 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8196-dynamiclib -Wl,-single_module conftest.c" >&5
8197 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8198 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8199 _lt_result=$?
8200 # If there is a non-empty error log, and "single_module"
8201 # appears in it, assume the flag caused a linker warning
8202 if test -s conftest.err && $GREP single_module conftest.err; then
8203 cat conftest.err >&5
8204 # Otherwise, if the output was created with a 0 exit code from
8205 # the compiler, it worked.
8206 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8207 lt_cv_apple_cc_single_mod=yes
8208 else
8209 cat conftest.err >&5
8210 fi
8211 rm -rf libconftest.dylib*
8212 rm -f conftest.*
8213 fi
8214fi
8215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8216$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8217
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8219$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8220if ${lt_cv_ld_exported_symbols_list+:} false; then :
8221 $as_echo_n "(cached) " >&6
8222else
8223 lt_cv_ld_exported_symbols_list=no
8224 save_LDFLAGS=$LDFLAGS
8225 echo "_main" > conftest.sym
8226 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228/* end confdefs.h. */
8229
8230int
8231main ()
8232{
8233
8234 ;
8235 return 0;
8236}
8237_ACEOF
8238if ac_fn_c_try_link "$LINENO"; then :
8239 lt_cv_ld_exported_symbols_list=yes
8240else
8241 lt_cv_ld_exported_symbols_list=no
8242fi
8243rm -f core conftest.err conftest.$ac_objext \
8244 conftest$ac_exeext conftest.$ac_ext
8245 LDFLAGS="$save_LDFLAGS"
8246
8247fi
8248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8249$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8250
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8252$as_echo_n "checking for -force_load linker flag... " >&6; }
8253if ${lt_cv_ld_force_load+:} false; then :
8254 $as_echo_n "(cached) " >&6
8255else
8256 lt_cv_ld_force_load=no
8257 cat > conftest.c << _LT_EOF
8258int forced_loaded() { return 2;}
8259_LT_EOF
8260 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8261 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8262 echo "$AR cru libconftest.a conftest.o" >&5
8263 $AR cru libconftest.a conftest.o 2>&5
8264 echo "$RANLIB libconftest.a" >&5
8265 $RANLIB libconftest.a 2>&5
8266 cat > conftest.c << _LT_EOF
8267int main() { return 0;}
8268_LT_EOF
8269 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8270 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8271 _lt_result=$?
8272 if test -s conftest.err && $GREP force_load conftest.err; then
8273 cat conftest.err >&5
8274 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8275 lt_cv_ld_force_load=yes
8276 else
8277 cat conftest.err >&5
8278 fi
8279 rm -f conftest.err libconftest.a conftest conftest.c
8280 rm -rf conftest.dSYM
8281
8282fi
8283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8284$as_echo "$lt_cv_ld_force_load" >&6; }
8285 case $host_os in
8286 rhapsody* | darwin1.[012])
8287 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8288 darwin1.*)
8289 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8290 darwin*) # darwin 5.x on
8291 # if running on 10.5 or later, the deployment target defaults
8292 # to the OS version, if on x86, and 10.4, the deployment
8293 # target defaults to 10.4. Don't you love it?
8294 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8295 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8296 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8297 10.[012]*)
8298 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8299 10.*)
8300 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8301 esac
8302 ;;
8303 esac
8304 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8305 _lt_dar_single_mod='$single_module'
8306 fi
8307 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8308 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8309 else
8310 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8311 fi
8312 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8313 _lt_dsymutil='~$DSYMUTIL $lib || :'
8314 else
8315 _lt_dsymutil=
8316 fi
8317 ;;
8318 esac
8319
8320
8321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8322$as_echo_n "checking for ANSI C header files... " >&6; }
8323if ${ac_cv_header_stdc+:} false; then :
8324 $as_echo_n "(cached) " >&6
8325else
8326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8327/* end confdefs.h. */
8328#include <stdlib.h>
8329#include <stdarg.h>
8330#include <string.h>
8331#include <float.h>
8332
8333int
8334main ()
8335{
8336
8337 ;
8338 return 0;
8339}
8340_ACEOF
8341if ac_fn_c_try_compile "$LINENO"; then :
8342 ac_cv_header_stdc=yes
8343else
8344 ac_cv_header_stdc=no
8345fi
8346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8347
8348if test $ac_cv_header_stdc = yes; then
8349 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351/* end confdefs.h. */
8352#include <string.h>
8353
8354_ACEOF
8355if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8356 $EGREP "memchr" >/dev/null 2>&1; then :
8357
8358else
8359 ac_cv_header_stdc=no
8360fi
8361rm -f conftest*
8362
8363fi
8364
8365if test $ac_cv_header_stdc = yes; then
8366 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368/* end confdefs.h. */
8369#include <stdlib.h>
8370
8371_ACEOF
8372if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8373 $EGREP "free" >/dev/null 2>&1; then :
8374
8375else
8376 ac_cv_header_stdc=no
8377fi
8378rm -f conftest*
8379
8380fi
8381
8382if test $ac_cv_header_stdc = yes; then
8383 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8384 if test "$cross_compiling" = yes; then :
8385 :
8386else
8387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8388/* end confdefs.h. */
8389#include <ctype.h>
8390#include <stdlib.h>
8391#if ((' ' & 0x0FF) == 0x020)
8392# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8393# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8394#else
8395# define ISLOWER(c) \
8396 (('a' <= (c) && (c) <= 'i') \
8397 || ('j' <= (c) && (c) <= 'r') \
8398 || ('s' <= (c) && (c) <= 'z'))
8399# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8400#endif
8401
8402#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8403int
8404main ()
8405{
8406 int i;
8407 for (i = 0; i < 256; i++)
8408 if (XOR (islower (i), ISLOWER (i))
8409 || toupper (i) != TOUPPER (i))
8410 return 2;
8411 return 0;
8412}
8413_ACEOF
8414if ac_fn_c_try_run "$LINENO"; then :
8415
8416else
8417 ac_cv_header_stdc=no
8418fi
8419rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8420 conftest.$ac_objext conftest.beam conftest.$ac_ext
8421fi
8422
8423fi
8424fi
8425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8426$as_echo "$ac_cv_header_stdc" >&6; }
8427if test $ac_cv_header_stdc = yes; then
8428
8429$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
8430
8431fi
8432
8433# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8434for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8435 inttypes.h stdint.h unistd.h
8436do :
8437 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8438ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8439"
8440if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8441 cat >>confdefs.h <<_ACEOF
8442@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8443_ACEOF
8444
8445fi
8446
8447done
8448
8449
8450for ac_header in dlfcn.h
8451do :
8452 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8453"
8454if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8455 cat >>confdefs.h <<_ACEOF
8456@%:@define HAVE_DLFCN_H 1
8457_ACEOF
8458
8459fi
8460
8461done
8462
8463
8464
8465
8466func_stripname_cnf ()
8467{
8468 case ${2} in
8469 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8470 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8471 esac
8472} # func_stripname_cnf
8473
8474
8475
8476
8477
8478# Set options
8479
8480
8481
8482 enable_dlopen=no
8483
8484
8485
8486 @%:@ Check whether --enable-shared was given.
8487if test "${enable_shared+set}" = set; then :
8488 enableval=$enable_shared; p=${PACKAGE-default}
8489 case $enableval in
8490 yes) enable_shared=yes ;;
8491 no) enable_shared=no ;;
8492 *)
8493 enable_shared=no
8494 # Look at the argument we got. We use all the common list separators.
8495 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8496 for pkg in $enableval; do
8497 IFS="$lt_save_ifs"
8498 if test "X$pkg" = "X$p"; then
8499 enable_shared=yes
8500 fi
8501 done
8502 IFS="$lt_save_ifs"
8503 ;;
8504 esac
8505else
8506 enable_shared=yes
8507fi
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517 @%:@ Check whether --enable-static was given.
8518if test "${enable_static+set}" = set; then :
8519 enableval=$enable_static; p=${PACKAGE-default}
8520 case $enableval in
8521 yes) enable_static=yes ;;
8522 no) enable_static=no ;;
8523 *)
8524 enable_static=no
8525 # Look at the argument we got. We use all the common list separators.
8526 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8527 for pkg in $enableval; do
8528 IFS="$lt_save_ifs"
8529 if test "X$pkg" = "X$p"; then
8530 enable_static=yes
8531 fi
8532 done
8533 IFS="$lt_save_ifs"
8534 ;;
8535 esac
8536else
8537 enable_static=yes
8538fi
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549@%:@ Check whether --with-pic was given.
8550if test "${with_pic+set}" = set; then :
8551 withval=$with_pic; lt_p=${PACKAGE-default}
8552 case $withval in
8553 yes|no) pic_mode=$withval ;;
8554 *)
8555 pic_mode=default
8556 # Look at the argument we got. We use all the common list separators.
8557 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8558 for lt_pkg in $withval; do
8559 IFS="$lt_save_ifs"
8560 if test "X$lt_pkg" = "X$lt_p"; then
8561 pic_mode=yes
8562 fi
8563 done
8564 IFS="$lt_save_ifs"
8565 ;;
8566 esac
8567else
8568 pic_mode=default
8569fi
8570
8571
8572test -z "$pic_mode" && pic_mode=default
8573
8574
8575
8576
8577
8578
8579
8580 @%:@ Check whether --enable-fast-install was given.
8581if test "${enable_fast_install+set}" = set; then :
8582 enableval=$enable_fast_install; p=${PACKAGE-default}
8583 case $enableval in
8584 yes) enable_fast_install=yes ;;
8585 no) enable_fast_install=no ;;
8586 *)
8587 enable_fast_install=no
8588 # Look at the argument we got. We use all the common list separators.
8589 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8590 for pkg in $enableval; do
8591 IFS="$lt_save_ifs"
8592 if test "X$pkg" = "X$p"; then
8593 enable_fast_install=yes
8594 fi
8595 done
8596 IFS="$lt_save_ifs"
8597 ;;
8598 esac
8599else
8600 enable_fast_install=yes
8601fi
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613# This can be used to rebuild libtool when needed
8614LIBTOOL_DEPS="$ltmain"
8615
8616# Always use our own libtool.
8617LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648test -z "$LN_S" && LN_S="ln -s"
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663if test -n "${ZSH_VERSION+set}" ; then
8664 setopt NO_GLOB_SUBST
8665fi
8666
8667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8668$as_echo_n "checking for objdir... " >&6; }
8669if ${lt_cv_objdir+:} false; then :
8670 $as_echo_n "(cached) " >&6
8671else
8672 rm -f .libs 2>/dev/null
8673mkdir .libs 2>/dev/null
8674if test -d .libs; then
8675 lt_cv_objdir=.libs
8676else
8677 # MS-DOS does not allow filenames that begin with a dot.
8678 lt_cv_objdir=_libs
8679fi
8680rmdir .libs 2>/dev/null
8681fi
8682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8683$as_echo "$lt_cv_objdir" >&6; }
8684objdir=$lt_cv_objdir
8685
8686
8687
8688
8689
8690cat >>confdefs.h <<_ACEOF
8691@%:@define LT_OBJDIR "$lt_cv_objdir/"
8692_ACEOF
8693
8694
8695
8696
8697case $host_os in
8698aix3*)
8699 # AIX sometimes has problems with the GCC collect2 program. For some
8700 # reason, if we set the COLLECT_NAMES environment variable, the problems
8701 # vanish in a puff of smoke.
8702 if test "X${COLLECT_NAMES+set}" != Xset; then
8703 COLLECT_NAMES=
8704 export COLLECT_NAMES
8705 fi
8706 ;;
8707esac
8708
8709# Global variables:
8710ofile=libtool
8711can_build_shared=yes
8712
8713# All known linkers require a `.a' archive for static linking (except MSVC,
8714# which needs '.lib').
8715libext=a
8716
8717with_gnu_ld="$lt_cv_prog_gnu_ld"
8718
8719old_CC="$CC"
8720old_CFLAGS="$CFLAGS"
8721
8722# Set sane defaults for various variables
8723test -z "$CC" && CC=cc
8724test -z "$LTCC" && LTCC=$CC
8725test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8726test -z "$LD" && LD=ld
8727test -z "$ac_objext" && ac_objext=o
8728
8729for cc_temp in $compiler""; do
8730 case $cc_temp in
8731 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8732 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8733 \-*) ;;
8734 *) break;;
8735 esac
8736done
8737cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8738
8739
8740# Only perform the check for file, if the check method requires it
8741test -z "$MAGIC_CMD" && MAGIC_CMD=file
8742case $deplibs_check_method in
8743file_magic*)
8744 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8746$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8747if ${lt_cv_path_MAGIC_CMD+:} false; then :
8748 $as_echo_n "(cached) " >&6
8749else
8750 case $MAGIC_CMD in
8751[\\/*] | ?:[\\/]*)
8752 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8753 ;;
8754*)
8755 lt_save_MAGIC_CMD="$MAGIC_CMD"
8756 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8757 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8758 for ac_dir in $ac_dummy; do
8759 IFS="$lt_save_ifs"
8760 test -z "$ac_dir" && ac_dir=.
8761 if test -f $ac_dir/${ac_tool_prefix}file; then
8762 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8763 if test -n "$file_magic_test_file"; then
8764 case $deplibs_check_method in
8765 "file_magic "*)
8766 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8767 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8768 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8769 $EGREP "$file_magic_regex" > /dev/null; then
8770 :
8771 else
8772 cat <<_LT_EOF 1>&2
8773
8774*** Warning: the command libtool uses to detect shared libraries,
8775*** $file_magic_cmd, produces output that libtool cannot recognize.
8776*** The result is that libtool may fail to recognize shared libraries
8777*** as such. This will affect the creation of libtool libraries that
8778*** depend on shared libraries, but programs linked with such libtool
8779*** libraries will work regardless of this problem. Nevertheless, you
8780*** may want to report the problem to your system manager and/or to
8781*** bug-libtool@gnu.org
8782
8783_LT_EOF
8784 fi ;;
8785 esac
8786 fi
8787 break
8788 fi
8789 done
8790 IFS="$lt_save_ifs"
8791 MAGIC_CMD="$lt_save_MAGIC_CMD"
8792 ;;
8793esac
8794fi
8795
8796MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8797if test -n "$MAGIC_CMD"; then
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8799$as_echo "$MAGIC_CMD" >&6; }
8800else
8801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802$as_echo "no" >&6; }
8803fi
8804
8805
8806
8807
8808
8809if test -z "$lt_cv_path_MAGIC_CMD"; then
8810 if test -n "$ac_tool_prefix"; then
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8812$as_echo_n "checking for file... " >&6; }
8813if ${lt_cv_path_MAGIC_CMD+:} false; then :
8814 $as_echo_n "(cached) " >&6
8815else
8816 case $MAGIC_CMD in
8817[\\/*] | ?:[\\/]*)
8818 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8819 ;;
8820*)
8821 lt_save_MAGIC_CMD="$MAGIC_CMD"
8822 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8823 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8824 for ac_dir in $ac_dummy; do
8825 IFS="$lt_save_ifs"
8826 test -z "$ac_dir" && ac_dir=.
8827 if test -f $ac_dir/file; then
8828 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8829 if test -n "$file_magic_test_file"; then
8830 case $deplibs_check_method in
8831 "file_magic "*)
8832 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8833 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8834 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8835 $EGREP "$file_magic_regex" > /dev/null; then
8836 :
8837 else
8838 cat <<_LT_EOF 1>&2
8839
8840*** Warning: the command libtool uses to detect shared libraries,
8841*** $file_magic_cmd, produces output that libtool cannot recognize.
8842*** The result is that libtool may fail to recognize shared libraries
8843*** as such. This will affect the creation of libtool libraries that
8844*** depend on shared libraries, but programs linked with such libtool
8845*** libraries will work regardless of this problem. Nevertheless, you
8846*** may want to report the problem to your system manager and/or to
8847*** bug-libtool@gnu.org
8848
8849_LT_EOF
8850 fi ;;
8851 esac
8852 fi
8853 break
8854 fi
8855 done
8856 IFS="$lt_save_ifs"
8857 MAGIC_CMD="$lt_save_MAGIC_CMD"
8858 ;;
8859esac
8860fi
8861
8862MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8863if test -n "$MAGIC_CMD"; then
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8865$as_echo "$MAGIC_CMD" >&6; }
8866else
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8868$as_echo "no" >&6; }
8869fi
8870
8871
8872 else
8873 MAGIC_CMD=:
8874 fi
8875fi
8876
8877 fi
8878 ;;
8879esac
8880
8881# Use C for the default configuration in the libtool script
8882
8883lt_save_CC="$CC"
8884ac_ext=c
8885ac_cpp='$CPP $CPPFLAGS'
8886ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8887ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8888ac_compiler_gnu=$ac_cv_c_compiler_gnu
8889
8890
8891# Source file extension for C test sources.
8892ac_ext=c
8893
8894# Object file extension for compiled C test sources.
8895objext=o
8896objext=$objext
8897
8898# Code to be used in simple compile tests
8899lt_simple_compile_test_code="int some_variable = 0;"
8900
8901# Code to be used in simple link tests
8902lt_simple_link_test_code='int main(){return(0);}'
8903
8904
8905
8906
8907
8908
8909
8910# If no C compiler was specified, use CC.
8911LTCC=${LTCC-"$CC"}
8912
8913# If no C compiler flags were specified, use CFLAGS.
8914LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8915
8916# Allow CC to be a program name with arguments.
8917compiler=$CC
8918
8919# Save the default compiler, since it gets overwritten when the other
8920# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8921compiler_DEFAULT=$CC
8922
8923# save warnings/boilerplate of simple test code
8924ac_outfile=conftest.$ac_objext
8925echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8926eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8927_lt_compiler_boilerplate=`cat conftest.err`
8928$RM conftest*
8929
8930ac_outfile=conftest.$ac_objext
8931echo "$lt_simple_link_test_code" >conftest.$ac_ext
8932eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8933_lt_linker_boilerplate=`cat conftest.err`
8934$RM -r conftest*
8935
8936
8937## CAVEAT EMPTOR:
8938## There is no encapsulation within the following macros, do not change
8939## the running order or otherwise move them around unless you know exactly
8940## what you are doing...
8941if test -n "$compiler"; then
8942
8943lt_prog_compiler_no_builtin_flag=
8944
8945if test "$GCC" = yes; then
8946 case $cc_basename in
8947 nvcc*)
8948 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8949 *)
8950 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8951 esac
8952
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8954$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8955if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8956 $as_echo_n "(cached) " >&6
8957else
8958 lt_cv_prog_compiler_rtti_exceptions=no
8959 ac_outfile=conftest.$ac_objext
8960 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8961 lt_compiler_flag="-fno-rtti -fno-exceptions"
8962 # Insert the option either (1) after the last *FLAGS variable, or
8963 # (2) before a word containing "conftest.", or (3) at the end.
8964 # Note that $ac_compile itself does not contain backslashes and begins
8965 # with a dollar sign (not a hyphen), so the echo should work correctly.
8966 # The option is referenced via a variable to avoid confusing sed.
8967 lt_compile=`echo "$ac_compile" | $SED \
8968 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8969 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8970 -e 's:$: $lt_compiler_flag:'`
8971 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8972 (eval "$lt_compile" 2>conftest.err)
8973 ac_status=$?
8974 cat conftest.err >&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 if (exit $ac_status) && test -s "$ac_outfile"; then
8977 # The compiler can only warn and ignore the option if not recognized
8978 # So say no if there are warnings other than the usual output.
8979 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8980 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8981 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8982 lt_cv_prog_compiler_rtti_exceptions=yes
8983 fi
8984 fi
8985 $RM conftest*
8986
8987fi
8988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8989$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8990
8991if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8992 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8993else
8994 :
8995fi
8996
8997fi
8998
8999
9000
9001
9002
9003
9004 lt_prog_compiler_wl=
9005lt_prog_compiler_pic=
9006lt_prog_compiler_static=
9007
9008
9009 if test "$GCC" = yes; then
9010 lt_prog_compiler_wl='-Wl,'
9011 lt_prog_compiler_static='-static'
9012
9013 case $host_os in
9014 aix*)
9015 # All AIX code is PIC.
9016 if test "$host_cpu" = ia64; then
9017 # AIX 5 now supports IA64 processor
9018 lt_prog_compiler_static='-Bstatic'
9019 fi
9020 ;;
9021
9022 amigaos*)
9023 case $host_cpu in
9024 powerpc)
9025 # see comment about AmigaOS4 .so support
9026 lt_prog_compiler_pic='-fPIC'
9027 ;;
9028 m68k)
9029 # FIXME: we need at least 68020 code to build shared libraries, but
9030 # adding the `-m68020' flag to GCC prevents building anything better,
9031 # like `-m68040'.
9032 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9033 ;;
9034 esac
9035 ;;
9036
9037 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9038 # PIC is the default for these OSes.
9039 ;;
9040
9041 mingw* | cygwin* | pw32* | os2* | cegcc*)
9042 # This hack is so that the source file can tell whether it is being
9043 # built for inclusion in a dll (and should export symbols for example).
9044 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9045 # (--disable-auto-import) libraries
9046 lt_prog_compiler_pic='-DDLL_EXPORT'
9047 ;;
9048
9049 darwin* | rhapsody*)
9050 # PIC is the default on this platform
9051 # Common symbols not allowed in MH_DYLIB files
9052 lt_prog_compiler_pic='-fno-common'
9053 ;;
9054
9055 haiku*)
9056 # PIC is the default for Haiku.
9057 # The "-static" flag exists, but is broken.
9058 lt_prog_compiler_static=
9059 ;;
9060
9061 hpux*)
9062 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9063 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9064 # sets the default TLS model and affects inlining.
9065 case $host_cpu in
9066 hppa*64*)
9067 # +Z the default
9068 ;;
9069 *)
9070 lt_prog_compiler_pic='-fPIC'
9071 ;;
9072 esac
9073 ;;
9074
9075 interix[3-9]*)
9076 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9077 # Instead, we relocate shared libraries at runtime.
9078 ;;
9079
9080 msdosdjgpp*)
9081 # Just because we use GCC doesn't mean we suddenly get shared libraries
9082 # on systems that don't support them.
9083 lt_prog_compiler_can_build_shared=no
9084 enable_shared=no
9085 ;;
9086
9087 *nto* | *qnx*)
9088 # QNX uses GNU C++, but need to define -shared option too, otherwise
9089 # it will coredump.
9090 lt_prog_compiler_pic='-fPIC -shared'
9091 ;;
9092
9093 sysv4*MP*)
9094 if test -d /usr/nec; then
9095 lt_prog_compiler_pic=-Kconform_pic
9096 fi
9097 ;;
9098
9099 *)
9100 lt_prog_compiler_pic='-fPIC'
9101 ;;
9102 esac
9103
9104 case $cc_basename in
9105 nvcc*) # Cuda Compiler Driver 2.2
9106 lt_prog_compiler_wl='-Xlinker '
9107 if test -n "$lt_prog_compiler_pic"; then
9108 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9109 fi
9110 ;;
9111 esac
9112 else
9113 # PORTME Check for flag to pass linker flags through the system compiler.
9114 case $host_os in
9115 aix*)
9116 lt_prog_compiler_wl='-Wl,'
9117 if test "$host_cpu" = ia64; then
9118 # AIX 5 now supports IA64 processor
9119 lt_prog_compiler_static='-Bstatic'
9120 else
9121 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9122 fi
9123 ;;
9124
9125 mingw* | cygwin* | pw32* | os2* | cegcc*)
9126 # This hack is so that the source file can tell whether it is being
9127 # built for inclusion in a dll (and should export symbols for example).
9128 lt_prog_compiler_pic='-DDLL_EXPORT'
9129 ;;
9130
9131 hpux9* | hpux10* | hpux11*)
9132 lt_prog_compiler_wl='-Wl,'
9133 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9134 # not for PA HP-UX.
9135 case $host_cpu in
9136 hppa*64*|ia64*)
9137 # +Z the default
9138 ;;
9139 *)
9140 lt_prog_compiler_pic='+Z'
9141 ;;
9142 esac
9143 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9144 lt_prog_compiler_static='${wl}-a ${wl}archive'
9145 ;;
9146
9147 irix5* | irix6* | nonstopux*)
9148 lt_prog_compiler_wl='-Wl,'
9149 # PIC (with -KPIC) is the default.
9150 lt_prog_compiler_static='-non_shared'
9151 ;;
9152
9153 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9154 case $cc_basename in
9155 # old Intel for x86_64 which still supported -KPIC.
9156 ecc*)
9157 lt_prog_compiler_wl='-Wl,'
9158 lt_prog_compiler_pic='-KPIC'
9159 lt_prog_compiler_static='-static'
9160 ;;
9161 # icc used to be incompatible with GCC.
9162 # ICC 10 doesn't accept -KPIC any more.
9163 icc* | ifort*)
9164 lt_prog_compiler_wl='-Wl,'
9165 lt_prog_compiler_pic='-fPIC'
9166 lt_prog_compiler_static='-static'
9167 ;;
9168 # Lahey Fortran 8.1.
9169 lf95*)
9170 lt_prog_compiler_wl='-Wl,'
9171 lt_prog_compiler_pic='--shared'
9172 lt_prog_compiler_static='--static'
9173 ;;
9174 nagfor*)
9175 # NAG Fortran compiler
9176 lt_prog_compiler_wl='-Wl,-Wl,,'
9177 lt_prog_compiler_pic='-PIC'
9178 lt_prog_compiler_static='-Bstatic'
9179 ;;
9180 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9181 # Portland Group compilers (*not* the Pentium gcc compiler,
9182 # which looks to be a dead project)
9183 lt_prog_compiler_wl='-Wl,'
9184 lt_prog_compiler_pic='-fpic'
9185 lt_prog_compiler_static='-Bstatic'
9186 ;;
9187 ccc*)
9188 lt_prog_compiler_wl='-Wl,'
9189 # All Alpha code is PIC.
9190 lt_prog_compiler_static='-non_shared'
9191 ;;
9192 xl* | bgxl* | bgf* | mpixl*)
9193 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9194 lt_prog_compiler_wl='-Wl,'
9195 lt_prog_compiler_pic='-qpic'
9196 lt_prog_compiler_static='-qstaticlink'
9197 ;;
9198 *)
9199 case `$CC -V 2>&1 | sed 5q` in
9200 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9201 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9202 lt_prog_compiler_pic='-KPIC'
9203 lt_prog_compiler_static='-Bstatic'
9204 lt_prog_compiler_wl=''
9205 ;;
9206 *Sun\ F* | *Sun*Fortran*)
9207 lt_prog_compiler_pic='-KPIC'
9208 lt_prog_compiler_static='-Bstatic'
9209 lt_prog_compiler_wl='-Qoption ld '
9210 ;;
9211 *Sun\ C*)
9212 # Sun C 5.9
9213 lt_prog_compiler_pic='-KPIC'
9214 lt_prog_compiler_static='-Bstatic'
9215 lt_prog_compiler_wl='-Wl,'
9216 ;;
9217 *Intel*\ [CF]*Compiler*)
9218 lt_prog_compiler_wl='-Wl,'
9219 lt_prog_compiler_pic='-fPIC'
9220 lt_prog_compiler_static='-static'
9221 ;;
9222 *Portland\ Group*)
9223 lt_prog_compiler_wl='-Wl,'
9224 lt_prog_compiler_pic='-fpic'
9225 lt_prog_compiler_static='-Bstatic'
9226 ;;
9227 esac
9228 ;;
9229 esac
9230 ;;
9231
9232 newsos6)
9233 lt_prog_compiler_pic='-KPIC'
9234 lt_prog_compiler_static='-Bstatic'
9235 ;;
9236
9237 *nto* | *qnx*)
9238 # QNX uses GNU C++, but need to define -shared option too, otherwise
9239 # it will coredump.
9240 lt_prog_compiler_pic='-fPIC -shared'
9241 ;;
9242
9243 osf3* | osf4* | osf5*)
9244 lt_prog_compiler_wl='-Wl,'
9245 # All OSF/1 code is PIC.
9246 lt_prog_compiler_static='-non_shared'
9247 ;;
9248
9249 rdos*)
9250 lt_prog_compiler_static='-non_shared'
9251 ;;
9252
9253 solaris*)
9254 lt_prog_compiler_pic='-KPIC'
9255 lt_prog_compiler_static='-Bstatic'
9256 case $cc_basename in
9257 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9258 lt_prog_compiler_wl='-Qoption ld ';;
9259 *)
9260 lt_prog_compiler_wl='-Wl,';;
9261 esac
9262 ;;
9263
9264 sunos4*)
9265 lt_prog_compiler_wl='-Qoption ld '
9266 lt_prog_compiler_pic='-PIC'
9267 lt_prog_compiler_static='-Bstatic'
9268 ;;
9269
9270 sysv4 | sysv4.2uw2* | sysv4.3*)
9271 lt_prog_compiler_wl='-Wl,'
9272 lt_prog_compiler_pic='-KPIC'
9273 lt_prog_compiler_static='-Bstatic'
9274 ;;
9275
9276 sysv4*MP*)
9277 if test -d /usr/nec ;then
9278 lt_prog_compiler_pic='-Kconform_pic'
9279 lt_prog_compiler_static='-Bstatic'
9280 fi
9281 ;;
9282
9283 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9284 lt_prog_compiler_wl='-Wl,'
9285 lt_prog_compiler_pic='-KPIC'
9286 lt_prog_compiler_static='-Bstatic'
9287 ;;
9288
9289 unicos*)
9290 lt_prog_compiler_wl='-Wl,'
9291 lt_prog_compiler_can_build_shared=no
9292 ;;
9293
9294 uts4*)
9295 lt_prog_compiler_pic='-pic'
9296 lt_prog_compiler_static='-Bstatic'
9297 ;;
9298
9299 *)
9300 lt_prog_compiler_can_build_shared=no
9301 ;;
9302 esac
9303 fi
9304
9305case $host_os in
9306 # For platforms which do not support PIC, -DPIC is meaningless:
9307 *djgpp*)
9308 lt_prog_compiler_pic=
9309 ;;
9310 *)
9311 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
9312 ;;
9313esac
9314
9315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9316$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9317if ${lt_cv_prog_compiler_pic+:} false; then :
9318 $as_echo_n "(cached) " >&6
9319else
9320 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9321fi
9322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9323$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9324lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9325
9326#
9327# Check to make sure the PIC flag actually works.
9328#
9329if test -n "$lt_prog_compiler_pic"; then
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9331$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9332if ${lt_cv_prog_compiler_pic_works+:} false; then :
9333 $as_echo_n "(cached) " >&6
9334else
9335 lt_cv_prog_compiler_pic_works=no
9336 ac_outfile=conftest.$ac_objext
9337 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9338 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
9339 # Insert the option either (1) after the last *FLAGS variable, or
9340 # (2) before a word containing "conftest.", or (3) at the end.
9341 # Note that $ac_compile itself does not contain backslashes and begins
9342 # with a dollar sign (not a hyphen), so the echo should work correctly.
9343 # The option is referenced via a variable to avoid confusing sed.
9344 lt_compile=`echo "$ac_compile" | $SED \
9345 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9346 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9347 -e 's:$: $lt_compiler_flag:'`
9348 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9349 (eval "$lt_compile" 2>conftest.err)
9350 ac_status=$?
9351 cat conftest.err >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 if (exit $ac_status) && test -s "$ac_outfile"; then
9354 # The compiler can only warn and ignore the option if not recognized
9355 # So say no if there are warnings other than the usual output.
9356 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9357 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9358 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9359 lt_cv_prog_compiler_pic_works=yes
9360 fi
9361 fi
9362 $RM conftest*
9363
9364fi
9365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9366$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9367
9368if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9369 case $lt_prog_compiler_pic in
9370 "" | " "*) ;;
9371 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9372 esac
9373else
9374 lt_prog_compiler_pic=
9375 lt_prog_compiler_can_build_shared=no
9376fi
9377
9378fi
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390#
9391# Check to make sure the static flag actually works.
9392#
9393wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9395$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9396if ${lt_cv_prog_compiler_static_works+:} false; then :
9397 $as_echo_n "(cached) " >&6
9398else
9399 lt_cv_prog_compiler_static_works=no
9400 save_LDFLAGS="$LDFLAGS"
9401 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9402 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9403 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9404 # The linker can only warn and ignore the option if not recognized
9405 # So say no if there are warnings
9406 if test -s conftest.err; then
9407 # Append any errors to the config.log.
9408 cat conftest.err 1>&5
9409 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9410 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9411 if diff conftest.exp conftest.er2 >/dev/null; then
9412 lt_cv_prog_compiler_static_works=yes
9413 fi
9414 else
9415 lt_cv_prog_compiler_static_works=yes
9416 fi
9417 fi
9418 $RM -r conftest*
9419 LDFLAGS="$save_LDFLAGS"
9420
9421fi
9422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9423$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9424
9425if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9426 :
9427else
9428 lt_prog_compiler_static=
9429fi
9430
9431
9432
9433
9434
9435
9436
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9438$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9439if ${lt_cv_prog_compiler_c_o+:} false; then :
9440 $as_echo_n "(cached) " >&6
9441else
9442 lt_cv_prog_compiler_c_o=no
9443 $RM -r conftest 2>/dev/null
9444 mkdir conftest
9445 cd conftest
9446 mkdir out
9447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9448
9449 lt_compiler_flag="-o out/conftest2.$ac_objext"
9450 # Insert the option either (1) after the last *FLAGS variable, or
9451 # (2) before a word containing "conftest.", or (3) at the end.
9452 # Note that $ac_compile itself does not contain backslashes and begins
9453 # with a dollar sign (not a hyphen), so the echo should work correctly.
9454 lt_compile=`echo "$ac_compile" | $SED \
9455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9457 -e 's:$: $lt_compiler_flag:'`
9458 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9459 (eval "$lt_compile" 2>out/conftest.err)
9460 ac_status=$?
9461 cat out/conftest.err >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9464 then
9465 # The compiler can only warn and ignore the option if not recognized
9466 # So say no if there are warnings
9467 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9468 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9469 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9470 lt_cv_prog_compiler_c_o=yes
9471 fi
9472 fi
9473 chmod u+w . 2>&5
9474 $RM conftest*
9475 # SGI C++ compiler will create directory out/ii_files/ for
9476 # template instantiation
9477 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9478 $RM out/* && rmdir out
9479 cd ..
9480 $RM -r conftest
9481 $RM conftest*
9482
9483fi
9484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9485$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9486
9487
9488
9489
9490
9491
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9493$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9494if ${lt_cv_prog_compiler_c_o+:} false; then :
9495 $as_echo_n "(cached) " >&6
9496else
9497 lt_cv_prog_compiler_c_o=no
9498 $RM -r conftest 2>/dev/null
9499 mkdir conftest
9500 cd conftest
9501 mkdir out
9502 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9503
9504 lt_compiler_flag="-o out/conftest2.$ac_objext"
9505 # Insert the option either (1) after the last *FLAGS variable, or
9506 # (2) before a word containing "conftest.", or (3) at the end.
9507 # Note that $ac_compile itself does not contain backslashes and begins
9508 # with a dollar sign (not a hyphen), so the echo should work correctly.
9509 lt_compile=`echo "$ac_compile" | $SED \
9510 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9511 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9512 -e 's:$: $lt_compiler_flag:'`
9513 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9514 (eval "$lt_compile" 2>out/conftest.err)
9515 ac_status=$?
9516 cat out/conftest.err >&5
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9519 then
9520 # The compiler can only warn and ignore the option if not recognized
9521 # So say no if there are warnings
9522 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9523 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9524 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9525 lt_cv_prog_compiler_c_o=yes
9526 fi
9527 fi
9528 chmod u+w . 2>&5
9529 $RM conftest*
9530 # SGI C++ compiler will create directory out/ii_files/ for
9531 # template instantiation
9532 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9533 $RM out/* && rmdir out
9534 cd ..
9535 $RM -r conftest
9536 $RM conftest*
9537
9538fi
9539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9540$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9541
9542
9543
9544
9545hard_links="nottested"
9546if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9547 # do not overwrite the value of need_locks provided by the user
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9549$as_echo_n "checking if we can lock with hard links... " >&6; }
9550 hard_links=yes
9551 $RM conftest*
9552 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9553 touch conftest.a
9554 ln conftest.a conftest.b 2>&5 || hard_links=no
9555 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9557$as_echo "$hard_links" >&6; }
9558 if test "$hard_links" = no; then
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9560$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9561 need_locks=warn
9562 fi
9563else
9564 need_locks=no
9565fi
9566
9567
9568
9569
9570
9571
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9573$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9574
9575 runpath_var=
9576 allow_undefined_flag=
9577 always_export_symbols=no
9578 archive_cmds=
9579 archive_expsym_cmds=
9580 compiler_needs_object=no
9581 enable_shared_with_static_runtimes=no
9582 export_dynamic_flag_spec=
9583 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9584 hardcode_automatic=no
9585 hardcode_direct=no
9586 hardcode_direct_absolute=no
9587 hardcode_libdir_flag_spec=
9588 hardcode_libdir_separator=
9589 hardcode_minus_L=no
9590 hardcode_shlibpath_var=unsupported
9591 inherit_rpath=no
9592 link_all_deplibs=unknown
9593 module_cmds=
9594 module_expsym_cmds=
9595 old_archive_from_new_cmds=
9596 old_archive_from_expsyms_cmds=
9597 thread_safe_flag_spec=
9598 whole_archive_flag_spec=
9599 # include_expsyms should be a list of space-separated symbols to be *always*
9600 # included in the symbol list
9601 include_expsyms=
9602 # exclude_expsyms can be an extended regexp of symbols to exclude
9603 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9604 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9605 # as well as any symbol that contains `d'.
9606 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9607 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9608 # platforms (ab)use it in PIC code, but their linkers get confused if
9609 # the symbol is explicitly referenced. Since portable code cannot
9610 # rely on this symbol name, it's probably fine to never include it in
9611 # preloaded symbol tables.
9612 # Exclude shared library initialization/finalization symbols.
9613 extract_expsyms_cmds=
9614
9615 case $host_os in
9616 cygwin* | mingw* | pw32* | cegcc*)
9617 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9618 # When not using gcc, we currently assume that we are using
9619 # Microsoft Visual C++.
9620 if test "$GCC" != yes; then
9621 with_gnu_ld=no
9622 fi
9623 ;;
9624 interix*)
9625 # we just hope/assume this is gcc and not c89 (= MSVC++)
9626 with_gnu_ld=yes
9627 ;;
9628 openbsd*)
9629 with_gnu_ld=no
9630 ;;
9631 esac
9632
9633 ld_shlibs=yes
9634
9635 # On some targets, GNU ld is compatible enough with the native linker
9636 # that we're better off using the native interface for both.
9637 lt_use_gnu_ld_interface=no
9638 if test "$with_gnu_ld" = yes; then
9639 case $host_os in
9640 aix*)
9641 # The AIX port of GNU ld has always aspired to compatibility
9642 # with the native linker. However, as the warning in the GNU ld
9643 # block says, versions before 2.19.5* couldn't really create working
9644 # shared libraries, regardless of the interface used.
9645 case `$LD -v 2>&1` in
9646 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9647 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9648 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9649 *)
9650 lt_use_gnu_ld_interface=yes
9651 ;;
9652 esac
9653 ;;
9654 *)
9655 lt_use_gnu_ld_interface=yes
9656 ;;
9657 esac
9658 fi
9659
9660 if test "$lt_use_gnu_ld_interface" = yes; then
9661 # If archive_cmds runs LD, not CC, wlarc should be empty
9662 wlarc='${wl}'
9663
9664 # Set some defaults for GNU ld with shared library support. These
9665 # are reset later if shared libraries are not supported. Putting them
9666 # here allows them to be overridden if necessary.
9667 runpath_var=LD_RUN_PATH
9668 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9669 export_dynamic_flag_spec='${wl}--export-dynamic'
9670 # ancient GNU ld didn't support --whole-archive et. al.
9671 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9672 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9673 else
9674 whole_archive_flag_spec=
9675 fi
9676 supports_anon_versioning=no
9677 case `$LD -v 2>&1` in
9678 *GNU\ gold*) supports_anon_versioning=yes ;;
9679 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9680 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9681 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9682 *\ 2.11.*) ;; # other 2.11 versions
9683 *) supports_anon_versioning=yes ;;
9684 esac
9685
9686 # See if GNU ld supports shared libraries.
9687 case $host_os in
9688 aix[3-9]*)
9689 # On AIX/PPC, the GNU linker is very broken
9690 if test "$host_cpu" != ia64; then
9691 ld_shlibs=no
9692 cat <<_LT_EOF 1>&2
9693
9694*** Warning: the GNU linker, at least up to release 2.19, is reported
9695*** to be unable to reliably create shared libraries on AIX.
9696*** Therefore, libtool is disabling shared libraries support. If you
9697*** really care for shared libraries, you may want to install binutils
9698*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9699*** You will then need to restart the configuration process.
9700
9701_LT_EOF
9702 fi
9703 ;;
9704
9705 amigaos*)
9706 case $host_cpu in
9707 powerpc)
9708 # see comment about AmigaOS4 .so support
9709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9710 archive_expsym_cmds=''
9711 ;;
9712 m68k)
9713 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)'
9714 hardcode_libdir_flag_spec='-L$libdir'
9715 hardcode_minus_L=yes
9716 ;;
9717 esac
9718 ;;
9719
9720 beos*)
9721 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9722 allow_undefined_flag=unsupported
9723 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9724 # support --undefined. This deserves some investigation. FIXME
9725 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9726 else
9727 ld_shlibs=no
9728 fi
9729 ;;
9730
9731 cygwin* | mingw* | pw32* | cegcc*)
9732 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9733 # as there is no search path for DLLs.
9734 hardcode_libdir_flag_spec='-L$libdir'
9735 export_dynamic_flag_spec='${wl}--export-all-symbols'
9736 allow_undefined_flag=unsupported
9737 always_export_symbols=no
9738 enable_shared_with_static_runtimes=yes
9739 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'
9740 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9741
9742 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9743 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9744 # If the export-symbols file already is a .def file (1st line
9745 # is EXPORTS), use it as is; otherwise, prepend...
9746 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9747 cp $export_symbols $output_objdir/$soname.def;
9748 else
9749 echo EXPORTS > $output_objdir/$soname.def;
9750 cat $export_symbols >> $output_objdir/$soname.def;
9751 fi~
9752 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9753 else
9754 ld_shlibs=no
9755 fi
9756 ;;
9757
9758 haiku*)
9759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9760 link_all_deplibs=yes
9761 ;;
9762
9763 interix[3-9]*)
9764 hardcode_direct=no
9765 hardcode_shlibpath_var=no
9766 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9767 export_dynamic_flag_spec='${wl}-E'
9768 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9769 # Instead, shared libraries are loaded at an image base (0x10000000 by
9770 # default) and relocated if they conflict, which is a slow very memory
9771 # consuming and fragmenting process. To avoid this, we pick a random,
9772 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9773 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9774 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9775 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'
9776 ;;
9777
9778 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9779 tmp_diet=no
9780 if test "$host_os" = linux-dietlibc; then
9781 case $cc_basename in
9782 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9783 esac
9784 fi
9785 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9786 && test "$tmp_diet" = no
9787 then
9788 tmp_addflag=' $pic_flag'
9789 tmp_sharedflag='-shared'
9790 case $cc_basename,$host_cpu in
9791 pgcc*) # Portland Group C compiler
9792 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'
9793 tmp_addflag=' $pic_flag'
9794 ;;
9795 pgf77* | pgf90* | pgf95* | pgfortran*)
9796 # Portland Group f77 and f90 compilers
9797 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'
9798 tmp_addflag=' $pic_flag -Mnomain' ;;
9799 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9800 tmp_addflag=' -i_dynamic' ;;
9801 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9802 tmp_addflag=' -i_dynamic -nofor_main' ;;
9803 ifc* | ifort*) # Intel Fortran compiler
9804 tmp_addflag=' -nofor_main' ;;
9805 lf95*) # Lahey Fortran 8.1
9806 whole_archive_flag_spec=
9807 tmp_sharedflag='--shared' ;;
9808 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9809 tmp_sharedflag='-qmkshrobj'
9810 tmp_addflag= ;;
9811 nvcc*) # Cuda Compiler Driver 2.2
9812 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'
9813 compiler_needs_object=yes
9814 ;;
9815 esac
9816 case `$CC -V 2>&1 | sed 5q` in
9817 *Sun\ C*) # Sun C 5.9
9818 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'
9819 compiler_needs_object=yes
9820 tmp_sharedflag='-G' ;;
9821 *Sun\ F*) # Sun Fortran 8.3
9822 tmp_sharedflag='-G' ;;
9823 esac
9824 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9825
9826 if test "x$supports_anon_versioning" = xyes; then
9827 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9828 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9829 echo "local: *; };" >> $output_objdir/$libname.ver~
9830 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9831 fi
9832
9833 case $cc_basename in
9834 xlf* | bgf* | bgxlf* | mpixlf*)
9835 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9836 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9837 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9838 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9839 if test "x$supports_anon_versioning" = xyes; then
9840 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9841 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9842 echo "local: *; };" >> $output_objdir/$libname.ver~
9843 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9844 fi
9845 ;;
9846 esac
9847 else
9848 ld_shlibs=no
9849 fi
9850 ;;
9851
9852 netbsd*)
9853 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9854 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9855 wlarc=
9856 else
9857 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9858 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9859 fi
9860 ;;
9861
9862 solaris*)
9863 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9864 ld_shlibs=no
9865 cat <<_LT_EOF 1>&2
9866
9867*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9868*** create shared libraries on Solaris systems. Therefore, libtool
9869*** is disabling shared libraries support. We urge you to upgrade GNU
9870*** binutils to release 2.9.1 or newer. Another option is to modify
9871*** your PATH or compiler configuration so that the native linker is
9872*** used, and then restart.
9873
9874_LT_EOF
9875 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9876 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9877 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9878 else
9879 ld_shlibs=no
9880 fi
9881 ;;
9882
9883 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9884 case `$LD -v 2>&1` in
9885 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9886 ld_shlibs=no
9887 cat <<_LT_EOF 1>&2
9888
9889*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9890*** reliably create shared libraries on SCO systems. Therefore, libtool
9891*** is disabling shared libraries support. We urge you to upgrade GNU
9892*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9893*** your PATH or compiler configuration so that the native linker is
9894*** used, and then restart.
9895
9896_LT_EOF
9897 ;;
9898 *)
9899 # For security reasons, it is highly recommended that you always
9900 # use absolute paths for naming shared libraries, and exclude the
9901 # DT_RUNPATH tag from executables and libraries. But doing so
9902 # requires that you compile everything twice, which is a pain.
9903 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9904 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9905 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9906 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9907 else
9908 ld_shlibs=no
9909 fi
9910 ;;
9911 esac
9912 ;;
9913
9914 sunos4*)
9915 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9916 wlarc=
9917 hardcode_direct=yes
9918 hardcode_shlibpath_var=no
9919 ;;
9920
9921 *)
9922 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9923 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9924 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9925 else
9926 ld_shlibs=no
9927 fi
9928 ;;
9929 esac
9930
9931 if test "$ld_shlibs" = no; then
9932 runpath_var=
9933 hardcode_libdir_flag_spec=
9934 export_dynamic_flag_spec=
9935 whole_archive_flag_spec=
9936 fi
9937 else
9938 # PORTME fill in a description of your system's linker (not GNU ld)
9939 case $host_os in
9940 aix3*)
9941 allow_undefined_flag=unsupported
9942 always_export_symbols=yes
9943 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'
9944 # Note: this linker hardcodes the directories in LIBPATH if there
9945 # are no directories specified by -L.
9946 hardcode_minus_L=yes
9947 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9948 # Neither direct hardcoding nor static linking is supported with a
9949 # broken collect2.
9950 hardcode_direct=unsupported
9951 fi
9952 ;;
9953
9954 aix[4-9]*)
9955 if test "$host_cpu" = ia64; then
9956 # On IA64, the linker does run time linking by default, so we don't
9957 # have to do anything special.
9958 aix_use_runtimelinking=no
9959 exp_sym_flag='-Bexport'
9960 no_entry_flag=""
9961 else
9962 # If we're using GNU nm, then we don't want the "-C" option.
9963 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9964 # Also, AIX nm treats weak defined symbols like other global
9965 # defined symbols, whereas GNU nm marks them as "W".
9966 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9967 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9968 else
9969 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9970 fi
9971 aix_use_runtimelinking=no
9972
9973 # Test if we are trying to use run time linking or normal
9974 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9975 # need to do runtime linking.
9976 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9977 for ld_flag in $LDFLAGS; do
9978 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9979 aix_use_runtimelinking=yes
9980 break
9981 fi
9982 done
9983 ;;
9984 esac
9985
9986 exp_sym_flag='-bexport'
9987 no_entry_flag='-bnoentry'
9988 fi
9989
9990 # When large executables or shared objects are built, AIX ld can
9991 # have problems creating the table of contents. If linking a library
9992 # or program results in "error TOC overflow" add -mminimal-toc to
9993 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9994 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9995
9996 archive_cmds=''
9997 hardcode_direct=yes
9998 hardcode_direct_absolute=yes
9999 hardcode_libdir_separator=':'
10000 link_all_deplibs=yes
10001 file_list_spec='${wl}-f,'
10002
10003 if test "$GCC" = yes; then
10004 case $host_os in aix4.[012]|aix4.[012].*)
10005 # We only want to do this on AIX 4.2 and lower, the check
10006 # below for broken collect2 doesn't work under 4.3+
10007 collect2name=`${CC} -print-prog-name=collect2`
10008 if test -f "$collect2name" &&
10009 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10010 then
10011 # We have reworked collect2
10012 :
10013 else
10014 # We have old collect2
10015 hardcode_direct=unsupported
10016 # It fails to find uninstalled libraries when the uninstalled
10017 # path is not listed in the libpath. Setting hardcode_minus_L
10018 # to unsupported forces relinking
10019 hardcode_minus_L=yes
10020 hardcode_libdir_flag_spec='-L$libdir'
10021 hardcode_libdir_separator=
10022 fi
10023 ;;
10024 esac
10025 shared_flag='-shared'
10026 if test "$aix_use_runtimelinking" = yes; then
10027 shared_flag="$shared_flag "'${wl}-G'
10028 fi
10029 else
10030 # not using gcc
10031 if test "$host_cpu" = ia64; then
10032 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10033 # chokes on -Wl,-G. The following line is correct:
10034 shared_flag='-G'
10035 else
10036 if test "$aix_use_runtimelinking" = yes; then
10037 shared_flag='${wl}-G'
10038 else
10039 shared_flag='${wl}-bM:SRE'
10040 fi
10041 fi
10042 fi
10043
10044 export_dynamic_flag_spec='${wl}-bexpall'
10045 # It seems that -bexpall does not export symbols beginning with
10046 # underscore (_), so it is better to generate a list of symbols to export.
10047 always_export_symbols=yes
10048 if test "$aix_use_runtimelinking" = yes; then
10049 # Warning - without using the other runtime loading flags (-brtl),
10050 # -berok will link without error, but may produce a broken library.
10051 allow_undefined_flag='-berok'
10052 # Determine the default libpath from the value encoded in an
10053 # empty executable.
10054 if test "${lt_cv_aix_libpath+set}" = set; then
10055 aix_libpath=$lt_cv_aix_libpath
10056else
10057 if ${lt_cv_aix_libpath_+:} false; then :
10058 $as_echo_n "(cached) " >&6
10059else
10060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10061/* end confdefs.h. */
10062
10063int
10064main ()
10065{
10066
10067 ;
10068 return 0;
10069}
10070_ACEOF
10071if ac_fn_c_try_link "$LINENO"; then :
10072
10073 lt_aix_libpath_sed='
10074 /Import File Strings/,/^$/ {
10075 /^0/ {
10076 s/^0 *\([^ ]*\) *$/\1/
10077 p
10078 }
10079 }'
10080 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10081 # Check for a 64-bit object if we didn't find anything.
10082 if test -z "$lt_cv_aix_libpath_"; then
10083 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10084 fi
10085fi
10086rm -f core conftest.err conftest.$ac_objext \
10087 conftest$ac_exeext conftest.$ac_ext
10088 if test -z "$lt_cv_aix_libpath_"; then
10089 lt_cv_aix_libpath_="/usr/lib:/lib"
10090 fi
10091
10092fi
10093
10094 aix_libpath=$lt_cv_aix_libpath_
10095fi
10096
10097 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10098 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10099 else
10100 if test "$host_cpu" = ia64; then
10101 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10102 allow_undefined_flag="-z nodefs"
10103 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"
10104 else
10105 # Determine the default libpath from the value encoded in an
10106 # empty executable.
10107 if test "${lt_cv_aix_libpath+set}" = set; then
10108 aix_libpath=$lt_cv_aix_libpath
10109else
10110 if ${lt_cv_aix_libpath_+:} false; then :
10111 $as_echo_n "(cached) " >&6
10112else
10113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10114/* end confdefs.h. */
10115
10116int
10117main ()
10118{
10119
10120 ;
10121 return 0;
10122}
10123_ACEOF
10124if ac_fn_c_try_link "$LINENO"; then :
10125
10126 lt_aix_libpath_sed='
10127 /Import File Strings/,/^$/ {
10128 /^0/ {
10129 s/^0 *\([^ ]*\) *$/\1/
10130 p
10131 }
10132 }'
10133 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10134 # Check for a 64-bit object if we didn't find anything.
10135 if test -z "$lt_cv_aix_libpath_"; then
10136 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10137 fi
10138fi
10139rm -f core conftest.err conftest.$ac_objext \
10140 conftest$ac_exeext conftest.$ac_ext
10141 if test -z "$lt_cv_aix_libpath_"; then
10142 lt_cv_aix_libpath_="/usr/lib:/lib"
10143 fi
10144
10145fi
10146
10147 aix_libpath=$lt_cv_aix_libpath_
10148fi
10149
10150 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10151 # Warning - without using the other run time loading flags,
10152 # -berok will link without error, but may produce a broken library.
10153 no_undefined_flag=' ${wl}-bernotok'
10154 allow_undefined_flag=' ${wl}-berok'
10155 if test "$with_gnu_ld" = yes; then
10156 # We only use this code for GNU lds that support --whole-archive.
10157 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10158 else
10159 # Exported symbols can be pulled into shared objects from archives
10160 whole_archive_flag_spec='$convenience'
10161 fi
10162 archive_cmds_need_lc=yes
10163 # This is similar to how AIX traditionally builds its shared libraries.
10164 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10165 fi
10166 fi
10167 ;;
10168
10169 amigaos*)
10170 case $host_cpu in
10171 powerpc)
10172 # see comment about AmigaOS4 .so support
10173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10174 archive_expsym_cmds=''
10175 ;;
10176 m68k)
10177 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)'
10178 hardcode_libdir_flag_spec='-L$libdir'
10179 hardcode_minus_L=yes
10180 ;;
10181 esac
10182 ;;
10183
10184 bsdi[45]*)
10185 export_dynamic_flag_spec=-rdynamic
10186 ;;
10187
10188 cygwin* | mingw* | pw32* | cegcc*)
10189 # When not using gcc, we currently assume that we are using
10190 # Microsoft Visual C++.
10191 # hardcode_libdir_flag_spec is actually meaningless, as there is
10192 # no search path for DLLs.
10193 case $cc_basename in
10194 cl*)
10195 # Native MSVC
10196 hardcode_libdir_flag_spec=' '
10197 allow_undefined_flag=unsupported
10198 always_export_symbols=yes
10199 file_list_spec='@'
10200 # Tell ltmain to make .lib files, not .a files.
10201 libext=lib
10202 # Tell ltmain to make .dll files, not .so files.
10203 shrext_cmds=".dll"
10204 # FIXME: Setting linknames here is a bad hack.
10205 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10206 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10207 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10208 else
10209 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10210 fi~
10211 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10212 linknames='
10213 # The linker will not automatically build a static lib if we build a DLL.
10214 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10215 enable_shared_with_static_runtimes=yes
10216 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10217 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10218 # Don't use ranlib
10219 old_postinstall_cmds='chmod 644 $oldlib'
10220 postlink_cmds='lt_outputfile="@OUTPUT@"~
10221 lt_tool_outputfile="@TOOL_OUTPUT@"~
10222 case $lt_outputfile in
10223 *.exe|*.EXE) ;;
10224 *)
10225 lt_outputfile="$lt_outputfile.exe"
10226 lt_tool_outputfile="$lt_tool_outputfile.exe"
10227 ;;
10228 esac~
10229 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10230 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10231 $RM "$lt_outputfile.manifest";
10232 fi'
10233 ;;
10234 *)
10235 # Assume MSVC wrapper
10236 hardcode_libdir_flag_spec=' '
10237 allow_undefined_flag=unsupported
10238 # Tell ltmain to make .lib files, not .a files.
10239 libext=lib
10240 # Tell ltmain to make .dll files, not .so files.
10241 shrext_cmds=".dll"
10242 # FIXME: Setting linknames here is a bad hack.
10243 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10244 # The linker will automatically build a .lib file if we build a DLL.
10245 old_archive_from_new_cmds='true'
10246 # FIXME: Should let the user specify the lib program.
10247 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10248 enable_shared_with_static_runtimes=yes
10249 ;;
10250 esac
10251 ;;
10252
10253 darwin* | rhapsody*)
10254
10255
10256 archive_cmds_need_lc=no
10257 hardcode_direct=no
10258 hardcode_automatic=yes
10259 hardcode_shlibpath_var=unsupported
10260 if test "$lt_cv_ld_force_load" = "yes"; then
10261 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\"`'
10262
10263 else
10264 whole_archive_flag_spec=''
10265 fi
10266 link_all_deplibs=yes
10267 allow_undefined_flag="$_lt_dar_allow_undefined"
10268 case $cc_basename in
10269 ifort*) _lt_dar_can_shared=yes ;;
10270 *) _lt_dar_can_shared=$GCC ;;
10271 esac
10272 if test "$_lt_dar_can_shared" = "yes"; then
10273 output_verbose_link_cmd=func_echo_all
10274 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10275 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10276 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}"
10277 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}"
10278
10279 else
10280 ld_shlibs=no
10281 fi
10282
10283 ;;
10284
10285 dgux*)
10286 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10287 hardcode_libdir_flag_spec='-L$libdir'
10288 hardcode_shlibpath_var=no
10289 ;;
10290
10291 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10292 # support. Future versions do this automatically, but an explicit c++rt0.o
10293 # does not break anything, and helps significantly (at the cost of a little
10294 # extra space).
10295 freebsd2.2*)
10296 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10297 hardcode_libdir_flag_spec='-R$libdir'
10298 hardcode_direct=yes
10299 hardcode_shlibpath_var=no
10300 ;;
10301
10302 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10303 freebsd2.*)
10304 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10305 hardcode_direct=yes
10306 hardcode_minus_L=yes
10307 hardcode_shlibpath_var=no
10308 ;;
10309
10310 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10311 freebsd* | dragonfly*)
10312 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10313 hardcode_libdir_flag_spec='-R$libdir'
10314 hardcode_direct=yes
10315 hardcode_shlibpath_var=no
10316 ;;
10317
10318 hpux9*)
10319 if test "$GCC" = yes; then
10320 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10321 else
10322 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10323 fi
10324 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10325 hardcode_libdir_separator=:
10326 hardcode_direct=yes
10327
10328 # hardcode_minus_L: Not really in the search PATH,
10329 # but as the default location of the library.
10330 hardcode_minus_L=yes
10331 export_dynamic_flag_spec='${wl}-E'
10332 ;;
10333
10334 hpux10*)
10335 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10336 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10337 else
10338 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10339 fi
10340 if test "$with_gnu_ld" = no; then
10341 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10342 hardcode_libdir_separator=:
10343 hardcode_direct=yes
10344 hardcode_direct_absolute=yes
10345 export_dynamic_flag_spec='${wl}-E'
10346 # hardcode_minus_L: Not really in the search PATH,
10347 # but as the default location of the library.
10348 hardcode_minus_L=yes
10349 fi
10350 ;;
10351
10352 hpux11*)
10353 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10354 case $host_cpu in
10355 hppa*64*)
10356 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10357 ;;
10358 ia64*)
10359 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10360 ;;
10361 *)
10362 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10363 ;;
10364 esac
10365 else
10366 case $host_cpu in
10367 hppa*64*)
10368 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10369 ;;
10370 ia64*)
10371 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10372 ;;
10373 *)
10374
10375 # Older versions of the 11.00 compiler do not understand -b yet
10376 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10378$as_echo_n "checking if $CC understands -b... " >&6; }
10379if ${lt_cv_prog_compiler__b+:} false; then :
10380 $as_echo_n "(cached) " >&6
10381else
10382 lt_cv_prog_compiler__b=no
10383 save_LDFLAGS="$LDFLAGS"
10384 LDFLAGS="$LDFLAGS -b"
10385 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10386 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10387 # The linker can only warn and ignore the option if not recognized
10388 # So say no if there are warnings
10389 if test -s conftest.err; then
10390 # Append any errors to the config.log.
10391 cat conftest.err 1>&5
10392 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10393 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10394 if diff conftest.exp conftest.er2 >/dev/null; then
10395 lt_cv_prog_compiler__b=yes
10396 fi
10397 else
10398 lt_cv_prog_compiler__b=yes
10399 fi
10400 fi
10401 $RM -r conftest*
10402 LDFLAGS="$save_LDFLAGS"
10403
10404fi
10405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10406$as_echo "$lt_cv_prog_compiler__b" >&6; }
10407
10408if test x"$lt_cv_prog_compiler__b" = xyes; then
10409 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10410else
10411 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10412fi
10413
10414 ;;
10415 esac
10416 fi
10417 if test "$with_gnu_ld" = no; then
10418 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10419 hardcode_libdir_separator=:
10420
10421 case $host_cpu in
10422 hppa*64*|ia64*)
10423 hardcode_direct=no
10424 hardcode_shlibpath_var=no
10425 ;;
10426 *)
10427 hardcode_direct=yes
10428 hardcode_direct_absolute=yes
10429 export_dynamic_flag_spec='${wl}-E'
10430
10431 # hardcode_minus_L: Not really in the search PATH,
10432 # but as the default location of the library.
10433 hardcode_minus_L=yes
10434 ;;
10435 esac
10436 fi
10437 ;;
10438
10439 irix5* | irix6* | nonstopux*)
10440 if test "$GCC" = yes; then
10441 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'
10442 # Try to use the -exported_symbol ld option, if it does not
10443 # work, assume that -exports_file does not work either and
10444 # implicitly export all symbols.
10445 # This should be the same for all languages, so no per-tag cache variable.
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10447$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10448if ${lt_cv_irix_exported_symbol+:} false; then :
10449 $as_echo_n "(cached) " >&6
10450else
10451 save_LDFLAGS="$LDFLAGS"
10452 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10454/* end confdefs.h. */
10455int foo (void) { return 0; }
10456_ACEOF
10457if ac_fn_c_try_link "$LINENO"; then :
10458 lt_cv_irix_exported_symbol=yes
10459else
10460 lt_cv_irix_exported_symbol=no
10461fi
10462rm -f core conftest.err conftest.$ac_objext \
10463 conftest$ac_exeext conftest.$ac_ext
10464 LDFLAGS="$save_LDFLAGS"
10465fi
10466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10467$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10468 if test "$lt_cv_irix_exported_symbol" = yes; then
10469 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'
10470 fi
10471 else
10472 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'
10473 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'
10474 fi
10475 archive_cmds_need_lc='no'
10476 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10477 hardcode_libdir_separator=:
10478 inherit_rpath=yes
10479 link_all_deplibs=yes
10480 ;;
10481
10482 netbsd*)
10483 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10484 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10485 else
10486 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10487 fi
10488 hardcode_libdir_flag_spec='-R$libdir'
10489 hardcode_direct=yes
10490 hardcode_shlibpath_var=no
10491 ;;
10492
10493 newsos6)
10494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10495 hardcode_direct=yes
10496 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10497 hardcode_libdir_separator=:
10498 hardcode_shlibpath_var=no
10499 ;;
10500
10501 *nto* | *qnx*)
10502 ;;
10503
10504 openbsd*)
10505 if test -f /usr/libexec/ld.so; then
10506 hardcode_direct=yes
10507 hardcode_shlibpath_var=no
10508 hardcode_direct_absolute=yes
10509 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10510 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10511 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10512 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10513 export_dynamic_flag_spec='${wl}-E'
10514 else
10515 case $host_os in
10516 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10517 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10518 hardcode_libdir_flag_spec='-R$libdir'
10519 ;;
10520 *)
10521 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10522 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10523 ;;
10524 esac
10525 fi
10526 else
10527 ld_shlibs=no
10528 fi
10529 ;;
10530
10531 os2*)
10532 hardcode_libdir_flag_spec='-L$libdir'
10533 hardcode_minus_L=yes
10534 allow_undefined_flag=unsupported
10535 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10536 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10537 ;;
10538
10539 osf3*)
10540 if test "$GCC" = yes; then
10541 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10542 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'
10543 else
10544 allow_undefined_flag=' -expect_unresolved \*'
10545 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'
10546 fi
10547 archive_cmds_need_lc='no'
10548 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10549 hardcode_libdir_separator=:
10550 ;;
10551
10552 osf4* | osf5*) # as osf3* with the addition of -msym flag
10553 if test "$GCC" = yes; then
10554 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10555 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'
10556 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10557 else
10558 allow_undefined_flag=' -expect_unresolved \*'
10559 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'
10560 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~
10561 $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'
10562
10563 # Both c and cxx compiler support -rpath directly
10564 hardcode_libdir_flag_spec='-rpath $libdir'
10565 fi
10566 archive_cmds_need_lc='no'
10567 hardcode_libdir_separator=:
10568 ;;
10569
10570 solaris*)
10571 no_undefined_flag=' -z defs'
10572 if test "$GCC" = yes; then
10573 wlarc='${wl}'
10574 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10575 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10576 $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'
10577 else
10578 case `$CC -V 2>&1` in
10579 *"Compilers 5.0"*)
10580 wlarc=''
10581 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10582 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10583 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10584 ;;
10585 *)
10586 wlarc='${wl}'
10587 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10588 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10589 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10590 ;;
10591 esac
10592 fi
10593 hardcode_libdir_flag_spec='-R$libdir'
10594 hardcode_shlibpath_var=no
10595 case $host_os in
10596 solaris2.[0-5] | solaris2.[0-5].*) ;;
10597 *)
10598 # The compiler driver will combine and reorder linker options,
10599 # but understands `-z linker_flag'. GCC discards it without `$wl',
10600 # but is careful enough not to reorder.
10601 # Supported since Solaris 2.6 (maybe 2.5.1?)
10602 if test "$GCC" = yes; then
10603 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10604 else
10605 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10606 fi
10607 ;;
10608 esac
10609 link_all_deplibs=yes
10610 ;;
10611
10612 sunos4*)
10613 if test "x$host_vendor" = xsequent; then
10614 # Use $CC to link under sequent, because it throws in some extra .o
10615 # files that make .init and .fini sections work.
10616 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10617 else
10618 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10619 fi
10620 hardcode_libdir_flag_spec='-L$libdir'
10621 hardcode_direct=yes
10622 hardcode_minus_L=yes
10623 hardcode_shlibpath_var=no
10624 ;;
10625
10626 sysv4)
10627 case $host_vendor in
10628 sni)
10629 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10630 hardcode_direct=yes # is this really true???
10631 ;;
10632 siemens)
10633 ## LD is ld it makes a PLAMLIB
10634 ## CC just makes a GrossModule.
10635 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10636 reload_cmds='$CC -r -o $output$reload_objs'
10637 hardcode_direct=no
10638 ;;
10639 motorola)
10640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10641 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10642 ;;
10643 esac
10644 runpath_var='LD_RUN_PATH'
10645 hardcode_shlibpath_var=no
10646 ;;
10647
10648 sysv4.3*)
10649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10650 hardcode_shlibpath_var=no
10651 export_dynamic_flag_spec='-Bexport'
10652 ;;
10653
10654 sysv4*MP*)
10655 if test -d /usr/nec; then
10656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10657 hardcode_shlibpath_var=no
10658 runpath_var=LD_RUN_PATH
10659 hardcode_runpath_var=yes
10660 ld_shlibs=yes
10661 fi
10662 ;;
10663
10664 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10665 no_undefined_flag='${wl}-z,text'
10666 archive_cmds_need_lc=no
10667 hardcode_shlibpath_var=no
10668 runpath_var='LD_RUN_PATH'
10669
10670 if test "$GCC" = yes; then
10671 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10672 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10673 else
10674 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10675 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10676 fi
10677 ;;
10678
10679 sysv5* | sco3.2v5* | sco5v6*)
10680 # Note: We can NOT use -z defs as we might desire, because we do not
10681 # link with -lc, and that would cause any symbols used from libc to
10682 # always be unresolved, which means just about no library would
10683 # ever link correctly. If we're not using GNU ld we use -z text
10684 # though, which does catch some bad symbols but isn't as heavy-handed
10685 # as -z defs.
10686 no_undefined_flag='${wl}-z,text'
10687 allow_undefined_flag='${wl}-z,nodefs'
10688 archive_cmds_need_lc=no
10689 hardcode_shlibpath_var=no
10690 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10691 hardcode_libdir_separator=':'
10692 link_all_deplibs=yes
10693 export_dynamic_flag_spec='${wl}-Bexport'
10694 runpath_var='LD_RUN_PATH'
10695
10696 if test "$GCC" = yes; then
10697 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10698 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10699 else
10700 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10701 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10702 fi
10703 ;;
10704
10705 uts4*)
10706 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10707 hardcode_libdir_flag_spec='-L$libdir'
10708 hardcode_shlibpath_var=no
10709 ;;
10710
10711 *)
10712 ld_shlibs=no
10713 ;;
10714 esac
10715
10716 if test x$host_vendor = xsni; then
10717 case $host in
10718 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10719 export_dynamic_flag_spec='${wl}-Blargedynsym'
10720 ;;
10721 esac
10722 fi
10723 fi
10724
10725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10726$as_echo "$ld_shlibs" >&6; }
10727test "$ld_shlibs" = no && can_build_shared=no
10728
10729with_gnu_ld=$with_gnu_ld
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745#
10746# Do we need to explicitly link libc?
10747#
10748case "x$archive_cmds_need_lc" in
10749x|xyes)
10750 # Assume -lc should be added
10751 archive_cmds_need_lc=yes
10752
10753 if test "$enable_shared" = yes && test "$GCC" = yes; then
10754 case $archive_cmds in
10755 *'~'*)
10756 # FIXME: we may have to deal with multi-command sequences.
10757 ;;
10758 '$CC '*)
10759 # Test whether the compiler implicitly links with -lc since on some
10760 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10761 # to ld, don't add -lc before -lgcc.
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10763$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10764if ${lt_cv_archive_cmds_need_lc+:} false; then :
10765 $as_echo_n "(cached) " >&6
10766else
10767 $RM conftest*
10768 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10769
10770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10771 (eval $ac_compile) 2>&5
10772 ac_status=$?
10773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10774 test $ac_status = 0; } 2>conftest.err; then
10775 soname=conftest
10776 lib=conftest
10777 libobjs=conftest.$ac_objext
10778 deplibs=
10779 wl=$lt_prog_compiler_wl
10780 pic_flag=$lt_prog_compiler_pic
10781 compiler_flags=-v
10782 linker_flags=-v
10783 verstring=
10784 output_objdir=.
10785 libname=conftest
10786 lt_save_allow_undefined_flag=$allow_undefined_flag
10787 allow_undefined_flag=
10788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10789 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10790 ac_status=$?
10791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10792 test $ac_status = 0; }
10793 then
10794 lt_cv_archive_cmds_need_lc=no
10795 else
10796 lt_cv_archive_cmds_need_lc=yes
10797 fi
10798 allow_undefined_flag=$lt_save_allow_undefined_flag
10799 else
10800 cat conftest.err 1>&5
10801 fi
10802 $RM conftest*
10803
10804fi
10805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10806$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10807 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10808 ;;
10809 esac
10810 fi
10811 ;;
10812esac
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10966$as_echo_n "checking dynamic linker characteristics... " >&6; }
10967
10968if test "$GCC" = yes; then
10969 case $host_os in
10970 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10971 *) lt_awk_arg="/^libraries:/" ;;
10972 esac
10973 case $host_os in
10974 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10975 *) lt_sed_strip_eq="s,=/,/,g" ;;
10976 esac
10977 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10978 case $lt_search_path_spec in
10979 *\;*)
10980 # if the path contains ";" then we assume it to be the separator
10981 # otherwise default to the standard path separator (i.e. ":") - it is
10982 # assumed that no part of a normal pathname contains ";" but that should
10983 # okay in the real world where ";" in dirpaths is itself problematic.
10984 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10985 ;;
10986 *)
10987 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10988 ;;
10989 esac
10990 # Ok, now we have the path, separated by spaces, we can step through it
10991 # and add multilib dir if necessary.
10992 lt_tmp_lt_search_path_spec=
10993 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10994 for lt_sys_path in $lt_search_path_spec; do
10995 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10996 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10997 else
10998 test -d "$lt_sys_path" && \
10999 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11000 fi
11001 done
11002 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11003BEGIN {RS=" "; FS="/|\n";} {
11004 lt_foo="";
11005 lt_count=0;
11006 for (lt_i = NF; lt_i > 0; lt_i--) {
11007 if ($lt_i != "" && $lt_i != ".") {
11008 if ($lt_i == "..") {
11009 lt_count++;
11010 } else {
11011 if (lt_count == 0) {
11012 lt_foo="/" $lt_i lt_foo;
11013 } else {
11014 lt_count--;
11015 }
11016 }
11017 }
11018 }
11019 if (lt_foo != "") { lt_freq[lt_foo]++; }
11020 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11021}'`
11022 # AWK program above erroneously prepends '/' to C:/dos/paths
11023 # for these hosts.
11024 case $host_os in
11025 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11026 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11027 esac
11028 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11029else
11030 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11031fi
11032library_names_spec=
11033libname_spec='lib$name'
11034soname_spec=
11035shrext_cmds=".so"
11036postinstall_cmds=
11037postuninstall_cmds=
11038finish_cmds=
11039finish_eval=
11040shlibpath_var=
11041shlibpath_overrides_runpath=unknown
11042version_type=none
11043dynamic_linker="$host_os ld.so"
11044sys_lib_dlsearch_path_spec="/lib /usr/lib"
11045need_lib_prefix=unknown
11046hardcode_into_libs=no
11047
11048# when you set need_version to no, make sure it does not cause -set_version
11049# flags to be left without arguments
11050need_version=unknown
11051
11052case $host_os in
11053aix3*)
11054 version_type=linux # correct to gnu/linux during the next big refactor
11055 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11056 shlibpath_var=LIBPATH
11057
11058 # AIX 3 has no versioning support, so we append a major version to the name.
11059 soname_spec='${libname}${release}${shared_ext}$major'
11060 ;;
11061
11062aix[4-9]*)
11063 version_type=linux # correct to gnu/linux during the next big refactor
11064 need_lib_prefix=no
11065 need_version=no
11066 hardcode_into_libs=yes
11067 if test "$host_cpu" = ia64; then
11068 # AIX 5 supports IA64
11069 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11070 shlibpath_var=LD_LIBRARY_PATH
11071 else
11072 # With GCC up to 2.95.x, collect2 would create an import file
11073 # for dependence libraries. The import file would start with
11074 # the line `#! .'. This would cause the generated library to
11075 # depend on `.', always an invalid library. This was fixed in
11076 # development snapshots of GCC prior to 3.0.
11077 case $host_os in
11078 aix4 | aix4.[01] | aix4.[01].*)
11079 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11080 echo ' yes '
11081 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11082 :
11083 else
11084 can_build_shared=no
11085 fi
11086 ;;
11087 esac
11088 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11089 # soname into executable. Probably we can add versioning support to
11090 # collect2, so additional links can be useful in future.
11091 if test "$aix_use_runtimelinking" = yes; then
11092 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11093 # instead of lib<name>.a to let people know that these are not
11094 # typical AIX shared libraries.
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096 else
11097 # We preserve .a as extension for shared libraries through AIX4.2
11098 # and later when we are not doing run time linking.
11099 library_names_spec='${libname}${release}.a $libname.a'
11100 soname_spec='${libname}${release}${shared_ext}$major'
11101 fi
11102 shlibpath_var=LIBPATH
11103 fi
11104 ;;
11105
11106amigaos*)
11107 case $host_cpu in
11108 powerpc)
11109 # Since July 2007 AmigaOS4 officially supports .so libraries.
11110 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11112 ;;
11113 m68k)
11114 library_names_spec='$libname.ixlibrary $libname.a'
11115 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11116 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11117 ;;
11118 esac
11119 ;;
11120
11121beos*)
11122 library_names_spec='${libname}${shared_ext}'
11123 dynamic_linker="$host_os ld.so"
11124 shlibpath_var=LIBRARY_PATH
11125 ;;
11126
11127bsdi[45]*)
11128 version_type=linux # correct to gnu/linux during the next big refactor
11129 need_version=no
11130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11131 soname_spec='${libname}${release}${shared_ext}$major'
11132 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11133 shlibpath_var=LD_LIBRARY_PATH
11134 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11135 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11136 # the default ld.so.conf also contains /usr/contrib/lib and
11137 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11138 # libtool to hard-code these into programs
11139 ;;
11140
11141cygwin* | mingw* | pw32* | cegcc*)
11142 version_type=windows
11143 shrext_cmds=".dll"
11144 need_version=no
11145 need_lib_prefix=no
11146
11147 case $GCC,$cc_basename in
11148 yes,*)
11149 # gcc
11150 library_names_spec='$libname.dll.a'
11151 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11152 postinstall_cmds='base_file=`basename \${file}`~
11153 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11154 dldir=$destdir/`dirname \$dlpath`~
11155 test -d \$dldir || mkdir -p \$dldir~
11156 $install_prog $dir/$dlname \$dldir/$dlname~
11157 chmod a+x \$dldir/$dlname~
11158 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11159 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11160 fi'
11161 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11162 dlpath=$dir/\$dldll~
11163 $RM \$dlpath'
11164 shlibpath_overrides_runpath=yes
11165
11166 case $host_os in
11167 cygwin*)
11168 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11169 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11170
11171 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11172 ;;
11173 mingw* | cegcc*)
11174 # MinGW DLLs use traditional 'lib' prefix
11175 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11176 ;;
11177 pw32*)
11178 # pw32 DLLs use 'pw' prefix rather than 'lib'
11179 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11180 ;;
11181 esac
11182 dynamic_linker='Win32 ld.exe'
11183 ;;
11184
11185 *,cl*)
11186 # Native MSVC
11187 libname_spec='$name'
11188 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11189 library_names_spec='${libname}.dll.lib'
11190
11191 case $build_os in
11192 mingw*)
11193 sys_lib_search_path_spec=
11194 lt_save_ifs=$IFS
11195 IFS=';'
11196 for lt_path in $LIB
11197 do
11198 IFS=$lt_save_ifs
11199 # Let DOS variable expansion print the short 8.3 style file name.
11200 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11201 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11202 done
11203 IFS=$lt_save_ifs
11204 # Convert to MSYS style.
11205 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11206 ;;
11207 cygwin*)
11208 # Convert to unix form, then to dos form, then back to unix form
11209 # but this time dos style (no spaces!) so that the unix form looks
11210 # like /cygdrive/c/PROGRA~1:/cygdr...
11211 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11212 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11213 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11214 ;;
11215 *)
11216 sys_lib_search_path_spec="$LIB"
11217 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11218 # It is most probably a Windows format PATH.
11219 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11220 else
11221 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11222 fi
11223 # FIXME: find the short name or the path components, as spaces are
11224 # common. (e.g. "Program Files" -> "PROGRA~1")
11225 ;;
11226 esac
11227
11228 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11229 postinstall_cmds='base_file=`basename \${file}`~
11230 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11231 dldir=$destdir/`dirname \$dlpath`~
11232 test -d \$dldir || mkdir -p \$dldir~
11233 $install_prog $dir/$dlname \$dldir/$dlname'
11234 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11235 dlpath=$dir/\$dldll~
11236 $RM \$dlpath'
11237 shlibpath_overrides_runpath=yes
11238 dynamic_linker='Win32 link.exe'
11239 ;;
11240
11241 *)
11242 # Assume MSVC wrapper
11243 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11244 dynamic_linker='Win32 ld.exe'
11245 ;;
11246 esac
11247 # FIXME: first we should search . and the directory the executable is in
11248 shlibpath_var=PATH
11249 ;;
11250
11251darwin* | rhapsody*)
11252 dynamic_linker="$host_os dyld"
11253 version_type=darwin
11254 need_lib_prefix=no
11255 need_version=no
11256 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11257 soname_spec='${libname}${release}${major}$shared_ext'
11258 shlibpath_overrides_runpath=yes
11259 shlibpath_var=DYLD_LIBRARY_PATH
11260 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11261
11262 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11263 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11264 ;;
11265
11266dgux*)
11267 version_type=linux # correct to gnu/linux during the next big refactor
11268 need_lib_prefix=no
11269 need_version=no
11270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11271 soname_spec='${libname}${release}${shared_ext}$major'
11272 shlibpath_var=LD_LIBRARY_PATH
11273 ;;
11274
11275freebsd* | dragonfly*)
11276 # DragonFly does not have aout. When/if they implement a new
11277 # versioning mechanism, adjust this.
11278 if test -x /usr/bin/objformat; then
11279 objformat=`/usr/bin/objformat`
11280 else
11281 case $host_os in
11282 freebsd[23].*) objformat=aout ;;
11283 *) objformat=elf ;;
11284 esac
11285 fi
11286 version_type=freebsd-$objformat
11287 case $version_type in
11288 freebsd-elf*)
11289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11290 need_version=no
11291 need_lib_prefix=no
11292 ;;
11293 freebsd-*)
11294 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11295 need_version=yes
11296 ;;
11297 esac
11298 shlibpath_var=LD_LIBRARY_PATH
11299 case $host_os in
11300 freebsd2.*)
11301 shlibpath_overrides_runpath=yes
11302 ;;
11303 freebsd3.[01]* | freebsdelf3.[01]*)
11304 shlibpath_overrides_runpath=yes
11305 hardcode_into_libs=yes
11306 ;;
11307 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11308 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11309 shlibpath_overrides_runpath=no
11310 hardcode_into_libs=yes
11311 ;;
11312 *) # from 4.6 on, and DragonFly
11313 shlibpath_overrides_runpath=yes
11314 hardcode_into_libs=yes
11315 ;;
11316 esac
11317 ;;
11318
11319gnu*)
11320 version_type=linux # correct to gnu/linux during the next big refactor
11321 need_lib_prefix=no
11322 need_version=no
11323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11324 soname_spec='${libname}${release}${shared_ext}$major'
11325 shlibpath_var=LD_LIBRARY_PATH
11326 shlibpath_overrides_runpath=no
11327 hardcode_into_libs=yes
11328 ;;
11329
11330haiku*)
11331 version_type=linux # correct to gnu/linux during the next big refactor
11332 need_lib_prefix=no
11333 need_version=no
11334 dynamic_linker="$host_os runtime_loader"
11335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11336 soname_spec='${libname}${release}${shared_ext}$major'
11337 shlibpath_var=LIBRARY_PATH
11338 shlibpath_overrides_runpath=yes
11339 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11340 hardcode_into_libs=yes
11341 ;;
11342
11343hpux9* | hpux10* | hpux11*)
11344 # Give a soname corresponding to the major version so that dld.sl refuses to
11345 # link against other versions.
11346 version_type=sunos
11347 need_lib_prefix=no
11348 need_version=no
11349 case $host_cpu in
11350 ia64*)
11351 shrext_cmds='.so'
11352 hardcode_into_libs=yes
11353 dynamic_linker="$host_os dld.so"
11354 shlibpath_var=LD_LIBRARY_PATH
11355 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11357 soname_spec='${libname}${release}${shared_ext}$major'
11358 if test "X$HPUX_IA64_MODE" = X32; then
11359 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11360 else
11361 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11362 fi
11363 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11364 ;;
11365 hppa*64*)
11366 shrext_cmds='.sl'
11367 hardcode_into_libs=yes
11368 dynamic_linker="$host_os dld.sl"
11369 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11370 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11372 soname_spec='${libname}${release}${shared_ext}$major'
11373 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11374 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11375 ;;
11376 *)
11377 shrext_cmds='.sl'
11378 dynamic_linker="$host_os dld.sl"
11379 shlibpath_var=SHLIB_PATH
11380 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382 soname_spec='${libname}${release}${shared_ext}$major'
11383 ;;
11384 esac
11385 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11386 postinstall_cmds='chmod 555 $lib'
11387 # or fails outright, so override atomically:
11388 install_override_mode=555
11389 ;;
11390
11391interix[3-9]*)
11392 version_type=linux # correct to gnu/linux during the next big refactor
11393 need_lib_prefix=no
11394 need_version=no
11395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11396 soname_spec='${libname}${release}${shared_ext}$major'
11397 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11398 shlibpath_var=LD_LIBRARY_PATH
11399 shlibpath_overrides_runpath=no
11400 hardcode_into_libs=yes
11401 ;;
11402
11403irix5* | irix6* | nonstopux*)
11404 case $host_os in
11405 nonstopux*) version_type=nonstopux ;;
11406 *)
11407 if test "$lt_cv_prog_gnu_ld" = yes; then
11408 version_type=linux # correct to gnu/linux during the next big refactor
11409 else
11410 version_type=irix
11411 fi ;;
11412 esac
11413 need_lib_prefix=no
11414 need_version=no
11415 soname_spec='${libname}${release}${shared_ext}$major'
11416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11417 case $host_os in
11418 irix5* | nonstopux*)
11419 libsuff= shlibsuff=
11420 ;;
11421 *)
11422 case $LD in # libtool.m4 will add one of these switches to LD
11423 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11424 libsuff= shlibsuff= libmagic=32-bit;;
11425 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11426 libsuff=32 shlibsuff=N32 libmagic=N32;;
11427 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11428 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11429 *) libsuff= shlibsuff= libmagic=never-match;;
11430 esac
11431 ;;
11432 esac
11433 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11434 shlibpath_overrides_runpath=no
11435 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11436 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11437 hardcode_into_libs=yes
11438 ;;
11439
11440# No shared lib support for Linux oldld, aout, or coff.
11441linux*oldld* | linux*aout* | linux*coff*)
11442 dynamic_linker=no
11443 ;;
11444
11445# This must be glibc/ELF.
11446linux* | k*bsd*-gnu | kopensolaris*-gnu)
11447 version_type=linux # correct to gnu/linux during the next big refactor
11448 need_lib_prefix=no
11449 need_version=no
11450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11451 soname_spec='${libname}${release}${shared_ext}$major'
11452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11453 shlibpath_var=LD_LIBRARY_PATH
11454 shlibpath_overrides_runpath=no
11455
11456 # Some binutils ld are patched to set DT_RUNPATH
11457 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11458 $as_echo_n "(cached) " >&6
11459else
11460 lt_cv_shlibpath_overrides_runpath=no
11461 save_LDFLAGS=$LDFLAGS
11462 save_libdir=$libdir
11463 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11464 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11466/* end confdefs.h. */
11467
11468int
11469main ()
11470{
11471
11472 ;
11473 return 0;
11474}
11475_ACEOF
11476if ac_fn_c_try_link "$LINENO"; then :
11477 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11478 lt_cv_shlibpath_overrides_runpath=yes
11479fi
11480fi
11481rm -f core conftest.err conftest.$ac_objext \
11482 conftest$ac_exeext conftest.$ac_ext
11483 LDFLAGS=$save_LDFLAGS
11484 libdir=$save_libdir
11485
11486fi
11487
11488 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11489
11490 # This implies no fast_install, which is unacceptable.
11491 # Some rework will be needed to allow for fast_install
11492 # before this can be enabled.
11493 hardcode_into_libs=yes
11494
11495 # Add ABI-specific directories to the system library path.
11496 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11497
11498 # Append ld.so.conf contents to the search path
11499 if test -f /etc/ld.so.conf; then
11500 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' ' '`
11501 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11502
11503 fi
11504
11505 # We used to test for /lib/ld.so.1 and disable shared libraries on
11506 # powerpc, because MkLinux only supported shared libraries with the
11507 # GNU dynamic linker. Since this was broken with cross compilers,
11508 # most powerpc-linux boxes support dynamic linking these days and
11509 # people can always --disable-shared, the test was removed, and we
11510 # assume the GNU/Linux dynamic linker is in use.
11511 dynamic_linker='GNU/Linux ld.so'
11512 ;;
11513
11514netbsd*)
11515 version_type=sunos
11516 need_lib_prefix=no
11517 need_version=no
11518 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11520 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11521 dynamic_linker='NetBSD (a.out) ld.so'
11522 else
11523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11524 soname_spec='${libname}${release}${shared_ext}$major'
11525 dynamic_linker='NetBSD ld.elf_so'
11526 fi
11527 shlibpath_var=LD_LIBRARY_PATH
11528 shlibpath_overrides_runpath=yes
11529 hardcode_into_libs=yes
11530 ;;
11531
11532newsos6)
11533 version_type=linux # correct to gnu/linux during the next big refactor
11534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11535 shlibpath_var=LD_LIBRARY_PATH
11536 shlibpath_overrides_runpath=yes
11537 ;;
11538
11539*nto* | *qnx*)
11540 version_type=qnx
11541 need_lib_prefix=no
11542 need_version=no
11543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11544 soname_spec='${libname}${release}${shared_ext}$major'
11545 shlibpath_var=LD_LIBRARY_PATH
11546 shlibpath_overrides_runpath=no
11547 hardcode_into_libs=yes
11548 dynamic_linker='ldqnx.so'
11549 ;;
11550
11551openbsd*)
11552 version_type=sunos
11553 sys_lib_dlsearch_path_spec="/usr/lib"
11554 need_lib_prefix=no
11555 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11556 case $host_os in
11557 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11558 *) need_version=no ;;
11559 esac
11560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11562 shlibpath_var=LD_LIBRARY_PATH
11563 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11564 case $host_os in
11565 openbsd2.[89] | openbsd2.[89].*)
11566 shlibpath_overrides_runpath=no
11567 ;;
11568 *)
11569 shlibpath_overrides_runpath=yes
11570 ;;
11571 esac
11572 else
11573 shlibpath_overrides_runpath=yes
11574 fi
11575 ;;
11576
11577os2*)
11578 libname_spec='$name'
11579 shrext_cmds=".dll"
11580 need_lib_prefix=no
11581 library_names_spec='$libname${shared_ext} $libname.a'
11582 dynamic_linker='OS/2 ld.exe'
11583 shlibpath_var=LIBPATH
11584 ;;
11585
11586osf3* | osf4* | osf5*)
11587 version_type=osf
11588 need_lib_prefix=no
11589 need_version=no
11590 soname_spec='${libname}${release}${shared_ext}$major'
11591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11592 shlibpath_var=LD_LIBRARY_PATH
11593 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11594 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11595 ;;
11596
11597rdos*)
11598 dynamic_linker=no
11599 ;;
11600
11601solaris*)
11602 version_type=linux # correct to gnu/linux during the next big refactor
11603 need_lib_prefix=no
11604 need_version=no
11605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11606 soname_spec='${libname}${release}${shared_ext}$major'
11607 shlibpath_var=LD_LIBRARY_PATH
11608 shlibpath_overrides_runpath=yes
11609 hardcode_into_libs=yes
11610 # ldd complains unless libraries are executable
11611 postinstall_cmds='chmod +x $lib'
11612 ;;
11613
11614sunos4*)
11615 version_type=sunos
11616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11617 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11618 shlibpath_var=LD_LIBRARY_PATH
11619 shlibpath_overrides_runpath=yes
11620 if test "$with_gnu_ld" = yes; then
11621 need_lib_prefix=no
11622 fi
11623 need_version=yes
11624 ;;
11625
11626sysv4 | sysv4.3*)
11627 version_type=linux # correct to gnu/linux during the next big refactor
11628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11629 soname_spec='${libname}${release}${shared_ext}$major'
11630 shlibpath_var=LD_LIBRARY_PATH
11631 case $host_vendor in
11632 sni)
11633 shlibpath_overrides_runpath=no
11634 need_lib_prefix=no
11635 runpath_var=LD_RUN_PATH
11636 ;;
11637 siemens)
11638 need_lib_prefix=no
11639 ;;
11640 motorola)
11641 need_lib_prefix=no
11642 need_version=no
11643 shlibpath_overrides_runpath=no
11644 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11645 ;;
11646 esac
11647 ;;
11648
11649sysv4*MP*)
11650 if test -d /usr/nec ;then
11651 version_type=linux # correct to gnu/linux during the next big refactor
11652 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11653 soname_spec='$libname${shared_ext}.$major'
11654 shlibpath_var=LD_LIBRARY_PATH
11655 fi
11656 ;;
11657
11658sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11659 version_type=freebsd-elf
11660 need_lib_prefix=no
11661 need_version=no
11662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11663 soname_spec='${libname}${release}${shared_ext}$major'
11664 shlibpath_var=LD_LIBRARY_PATH
11665 shlibpath_overrides_runpath=yes
11666 hardcode_into_libs=yes
11667 if test "$with_gnu_ld" = yes; then
11668 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11669 else
11670 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11671 case $host_os in
11672 sco3.2v5*)
11673 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11674 ;;
11675 esac
11676 fi
11677 sys_lib_dlsearch_path_spec='/usr/lib'
11678 ;;
11679
11680tpf*)
11681 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11682 version_type=linux # correct to gnu/linux during the next big refactor
11683 need_lib_prefix=no
11684 need_version=no
11685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11686 shlibpath_var=LD_LIBRARY_PATH
11687 shlibpath_overrides_runpath=no
11688 hardcode_into_libs=yes
11689 ;;
11690
11691uts4*)
11692 version_type=linux # correct to gnu/linux during the next big refactor
11693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11694 soname_spec='${libname}${release}${shared_ext}$major'
11695 shlibpath_var=LD_LIBRARY_PATH
11696 ;;
11697
11698*)
11699 dynamic_linker=no
11700 ;;
11701esac
11702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11703$as_echo "$dynamic_linker" >&6; }
11704test "$dynamic_linker" = no && can_build_shared=no
11705
11706variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11707if test "$GCC" = yes; then
11708 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11709fi
11710
11711if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11712 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11713fi
11714if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11715 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11716fi
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11810$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11811hardcode_action=
11812if test -n "$hardcode_libdir_flag_spec" ||
11813 test -n "$runpath_var" ||
11814 test "X$hardcode_automatic" = "Xyes" ; then
11815
11816 # We can hardcode non-existent directories.
11817 if test "$hardcode_direct" != no &&
11818 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11819 # have to relink, otherwise we might link with an installed library
11820 # when we should be linking with a yet-to-be-installed one
11821 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11822 test "$hardcode_minus_L" != no; then
11823 # Linking always hardcodes the temporary library directory.
11824 hardcode_action=relink
11825 else
11826 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11827 hardcode_action=immediate
11828 fi
11829else
11830 # We cannot hardcode anything, or else we can only hardcode existing
11831 # directories.
11832 hardcode_action=unsupported
11833fi
11834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11835$as_echo "$hardcode_action" >&6; }
11836
11837if test "$hardcode_action" = relink ||
11838 test "$inherit_rpath" = yes; then
11839 # Fast installation is not supported
11840 enable_fast_install=no
11841elif test "$shlibpath_overrides_runpath" = yes ||
11842 test "$enable_shared" = no; then
11843 # Fast installation is not necessary
11844 enable_fast_install=needless
11845fi
11846
11847
11848
11849
11850
11851
11852 if test "x$enable_dlopen" != xyes; then
11853 enable_dlopen=unknown
11854 enable_dlopen_self=unknown
11855 enable_dlopen_self_static=unknown
11856else
11857 lt_cv_dlopen=no
11858 lt_cv_dlopen_libs=
11859
11860 case $host_os in
11861 beos*)
11862 lt_cv_dlopen="load_add_on"
11863 lt_cv_dlopen_libs=
11864 lt_cv_dlopen_self=yes
11865 ;;
11866
11867 mingw* | pw32* | cegcc*)
11868 lt_cv_dlopen="LoadLibrary"
11869 lt_cv_dlopen_libs=
11870 ;;
11871
11872 cygwin*)
11873 lt_cv_dlopen="dlopen"
11874 lt_cv_dlopen_libs=
11875 ;;
11876
11877 darwin*)
11878 # if libdl is installed we need to link against it
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11880$as_echo_n "checking for dlopen in -ldl... " >&6; }
11881if ${ac_cv_lib_dl_dlopen+:} false; then :
11882 $as_echo_n "(cached) " >&6
11883else
11884 ac_check_lib_save_LIBS=$LIBS
11885LIBS="-ldl $LIBS"
11886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11887/* end confdefs.h. */
11888
11889/* Override any GCC internal prototype to avoid an error.
11890 Use char because int might match the return type of a GCC
11891 builtin and then its argument prototype would still apply. */
11892#ifdef __cplusplus
11893extern "C"
11894#endif
11895char dlopen ();
11896int
11897main ()
11898{
11899return dlopen ();
11900 ;
11901 return 0;
11902}
11903_ACEOF
11904if ac_fn_c_try_link "$LINENO"; then :
11905 ac_cv_lib_dl_dlopen=yes
11906else
11907 ac_cv_lib_dl_dlopen=no
11908fi
11909rm -f core conftest.err conftest.$ac_objext \
11910 conftest$ac_exeext conftest.$ac_ext
11911LIBS=$ac_check_lib_save_LIBS
11912fi
11913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11914$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11915if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11916 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11917else
11918
11919 lt_cv_dlopen="dyld"
11920 lt_cv_dlopen_libs=
11921 lt_cv_dlopen_self=yes
11922
11923fi
11924
11925 ;;
11926
11927 *)
11928 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11929if test "x$ac_cv_func_shl_load" = xyes; then :
11930 lt_cv_dlopen="shl_load"
11931else
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11933$as_echo_n "checking for shl_load in -ldld... " >&6; }
11934if ${ac_cv_lib_dld_shl_load+:} false; then :
11935 $as_echo_n "(cached) " >&6
11936else
11937 ac_check_lib_save_LIBS=$LIBS
11938LIBS="-ldld $LIBS"
11939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11940/* end confdefs.h. */
11941
11942/* Override any GCC internal prototype to avoid an error.
11943 Use char because int might match the return type of a GCC
11944 builtin and then its argument prototype would still apply. */
11945#ifdef __cplusplus
11946extern "C"
11947#endif
11948char shl_load ();
11949int
11950main ()
11951{
11952return shl_load ();
11953 ;
11954 return 0;
11955}
11956_ACEOF
11957if ac_fn_c_try_link "$LINENO"; then :
11958 ac_cv_lib_dld_shl_load=yes
11959else
11960 ac_cv_lib_dld_shl_load=no
11961fi
11962rm -f core conftest.err conftest.$ac_objext \
11963 conftest$ac_exeext conftest.$ac_ext
11964LIBS=$ac_check_lib_save_LIBS
11965fi
11966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11967$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11968if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11969 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11970else
11971 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11972if test "x$ac_cv_func_dlopen" = xyes; then :
11973 lt_cv_dlopen="dlopen"
11974else
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11976$as_echo_n "checking for dlopen in -ldl... " >&6; }
11977if ${ac_cv_lib_dl_dlopen+:} false; then :
11978 $as_echo_n "(cached) " >&6
11979else
11980 ac_check_lib_save_LIBS=$LIBS
11981LIBS="-ldl $LIBS"
11982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11983/* end confdefs.h. */
11984
11985/* Override any GCC internal prototype to avoid an error.
11986 Use char because int might match the return type of a GCC
11987 builtin and then its argument prototype would still apply. */
11988#ifdef __cplusplus
11989extern "C"
11990#endif
11991char dlopen ();
11992int
11993main ()
11994{
11995return dlopen ();
11996 ;
11997 return 0;
11998}
11999_ACEOF
12000if ac_fn_c_try_link "$LINENO"; then :
12001 ac_cv_lib_dl_dlopen=yes
12002else
12003 ac_cv_lib_dl_dlopen=no
12004fi
12005rm -f core conftest.err conftest.$ac_objext \
12006 conftest$ac_exeext conftest.$ac_ext
12007LIBS=$ac_check_lib_save_LIBS
12008fi
12009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12010$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12011if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12013else
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12015$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12016if ${ac_cv_lib_svld_dlopen+:} false; then :
12017 $as_echo_n "(cached) " >&6
12018else
12019 ac_check_lib_save_LIBS=$LIBS
12020LIBS="-lsvld $LIBS"
12021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12022/* end confdefs.h. */
12023
12024/* Override any GCC internal prototype to avoid an error.
12025 Use char because int might match the return type of a GCC
12026 builtin and then its argument prototype would still apply. */
12027#ifdef __cplusplus
12028extern "C"
12029#endif
12030char dlopen ();
12031int
12032main ()
12033{
12034return dlopen ();
12035 ;
12036 return 0;
12037}
12038_ACEOF
12039if ac_fn_c_try_link "$LINENO"; then :
12040 ac_cv_lib_svld_dlopen=yes
12041else
12042 ac_cv_lib_svld_dlopen=no
12043fi
12044rm -f core conftest.err conftest.$ac_objext \
12045 conftest$ac_exeext conftest.$ac_ext
12046LIBS=$ac_check_lib_save_LIBS
12047fi
12048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12049$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12050if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12051 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12052else
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12054$as_echo_n "checking for dld_link in -ldld... " >&6; }
12055if ${ac_cv_lib_dld_dld_link+:} false; then :
12056 $as_echo_n "(cached) " >&6
12057else
12058 ac_check_lib_save_LIBS=$LIBS
12059LIBS="-ldld $LIBS"
12060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12061/* end confdefs.h. */
12062
12063/* Override any GCC internal prototype to avoid an error.
12064 Use char because int might match the return type of a GCC
12065 builtin and then its argument prototype would still apply. */
12066#ifdef __cplusplus
12067extern "C"
12068#endif
12069char dld_link ();
12070int
12071main ()
12072{
12073return dld_link ();
12074 ;
12075 return 0;
12076}
12077_ACEOF
12078if ac_fn_c_try_link "$LINENO"; then :
12079 ac_cv_lib_dld_dld_link=yes
12080else
12081 ac_cv_lib_dld_dld_link=no
12082fi
12083rm -f core conftest.err conftest.$ac_objext \
12084 conftest$ac_exeext conftest.$ac_ext
12085LIBS=$ac_check_lib_save_LIBS
12086fi
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12088$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12089if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12090 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12091fi
12092
12093
12094fi
12095
12096
12097fi
12098
12099
12100fi
12101
12102
12103fi
12104
12105
12106fi
12107
12108 ;;
12109 esac
12110
12111 if test "x$lt_cv_dlopen" != xno; then
12112 enable_dlopen=yes
12113 else
12114 enable_dlopen=no
12115 fi
12116
12117 case $lt_cv_dlopen in
12118 dlopen)
12119 save_CPPFLAGS="$CPPFLAGS"
12120 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12121
12122 save_LDFLAGS="$LDFLAGS"
12123 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12124
12125 save_LIBS="$LIBS"
12126 LIBS="$lt_cv_dlopen_libs $LIBS"
12127
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12129$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12130if ${lt_cv_dlopen_self+:} false; then :
12131 $as_echo_n "(cached) " >&6
12132else
12133 if test "$cross_compiling" = yes; then :
12134 lt_cv_dlopen_self=cross
12135else
12136 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12137 lt_status=$lt_dlunknown
12138 cat > conftest.$ac_ext <<_LT_EOF
12139#line $LINENO "configure"
12140#include "confdefs.h"
12141
12142#if HAVE_DLFCN_H
12143#include <dlfcn.h>
12144#endif
12145
12146#include <stdio.h>
12147
12148#ifdef RTLD_GLOBAL
12149# define LT_DLGLOBAL RTLD_GLOBAL
12150#else
12151# ifdef DL_GLOBAL
12152# define LT_DLGLOBAL DL_GLOBAL
12153# else
12154# define LT_DLGLOBAL 0
12155# endif
12156#endif
12157
12158/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12159 find out it does not work in some platform. */
12160#ifndef LT_DLLAZY_OR_NOW
12161# ifdef RTLD_LAZY
12162# define LT_DLLAZY_OR_NOW RTLD_LAZY
12163# else
12164# ifdef DL_LAZY
12165# define LT_DLLAZY_OR_NOW DL_LAZY
12166# else
12167# ifdef RTLD_NOW
12168# define LT_DLLAZY_OR_NOW RTLD_NOW
12169# else
12170# ifdef DL_NOW
12171# define LT_DLLAZY_OR_NOW DL_NOW
12172# else
12173# define LT_DLLAZY_OR_NOW 0
12174# endif
12175# endif
12176# endif
12177# endif
12178#endif
12179
12180/* When -fvisbility=hidden is used, assume the code has been annotated
12181 correspondingly for the symbols needed. */
12182#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12183int fnord () __attribute__((visibility("default")));
12184#endif
12185
12186int fnord () { return 42; }
12187int main ()
12188{
12189 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12190 int status = $lt_dlunknown;
12191
12192 if (self)
12193 {
12194 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12195 else
12196 {
12197 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12198 else puts (dlerror ());
12199 }
12200 /* dlclose (self); */
12201 }
12202 else
12203 puts (dlerror ());
12204
12205 return status;
12206}
12207_LT_EOF
12208 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12209 (eval $ac_link) 2>&5
12210 ac_status=$?
12211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12212 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12213 (./conftest; exit; ) >&5 2>/dev/null
12214 lt_status=$?
12215 case x$lt_status in
12216 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12217 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12218 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12219 esac
12220 else :
12221 # compilation failed
12222 lt_cv_dlopen_self=no
12223 fi
12224fi
12225rm -fr conftest*
12226
12227
12228fi
12229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12230$as_echo "$lt_cv_dlopen_self" >&6; }
12231
12232 if test "x$lt_cv_dlopen_self" = xyes; then
12233 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12235$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12236if ${lt_cv_dlopen_self_static+:} false; then :
12237 $as_echo_n "(cached) " >&6
12238else
12239 if test "$cross_compiling" = yes; then :
12240 lt_cv_dlopen_self_static=cross
12241else
12242 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12243 lt_status=$lt_dlunknown
12244 cat > conftest.$ac_ext <<_LT_EOF
12245#line $LINENO "configure"
12246#include "confdefs.h"
12247
12248#if HAVE_DLFCN_H
12249#include <dlfcn.h>
12250#endif
12251
12252#include <stdio.h>
12253
12254#ifdef RTLD_GLOBAL
12255# define LT_DLGLOBAL RTLD_GLOBAL
12256#else
12257# ifdef DL_GLOBAL
12258# define LT_DLGLOBAL DL_GLOBAL
12259# else
12260# define LT_DLGLOBAL 0
12261# endif
12262#endif
12263
12264/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12265 find out it does not work in some platform. */
12266#ifndef LT_DLLAZY_OR_NOW
12267# ifdef RTLD_LAZY
12268# define LT_DLLAZY_OR_NOW RTLD_LAZY
12269# else
12270# ifdef DL_LAZY
12271# define LT_DLLAZY_OR_NOW DL_LAZY
12272# else
12273# ifdef RTLD_NOW
12274# define LT_DLLAZY_OR_NOW RTLD_NOW
12275# else
12276# ifdef DL_NOW
12277# define LT_DLLAZY_OR_NOW DL_NOW
12278# else
12279# define LT_DLLAZY_OR_NOW 0
12280# endif
12281# endif
12282# endif
12283# endif
12284#endif
12285
12286/* When -fvisbility=hidden is used, assume the code has been annotated
12287 correspondingly for the symbols needed. */
12288#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12289int fnord () __attribute__((visibility("default")));
12290#endif
12291
12292int fnord () { return 42; }
12293int main ()
12294{
12295 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12296 int status = $lt_dlunknown;
12297
12298 if (self)
12299 {
12300 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12301 else
12302 {
12303 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12304 else puts (dlerror ());
12305 }
12306 /* dlclose (self); */
12307 }
12308 else
12309 puts (dlerror ());
12310
12311 return status;
12312}
12313_LT_EOF
12314 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12315 (eval $ac_link) 2>&5
12316 ac_status=$?
12317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12318 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12319 (./conftest; exit; ) >&5 2>/dev/null
12320 lt_status=$?
12321 case x$lt_status in
12322 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12323 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12324 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12325 esac
12326 else :
12327 # compilation failed
12328 lt_cv_dlopen_self_static=no
12329 fi
12330fi
12331rm -fr conftest*
12332
12333
12334fi
12335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12336$as_echo "$lt_cv_dlopen_self_static" >&6; }
12337 fi
12338
12339 CPPFLAGS="$save_CPPFLAGS"
12340 LDFLAGS="$save_LDFLAGS"
12341 LIBS="$save_LIBS"
12342 ;;
12343 esac
12344
12345 case $lt_cv_dlopen_self in
12346 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12347 *) enable_dlopen_self=unknown ;;
12348 esac
12349
12350 case $lt_cv_dlopen_self_static in
12351 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12352 *) enable_dlopen_self_static=unknown ;;
12353 esac
12354fi
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372striplib=
12373old_striplib=
12374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12375$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12376if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12377 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12378 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12380$as_echo "yes" >&6; }
12381else
12382# FIXME - insert some real tests, host_os isn't really good enough
12383 case $host_os in
12384 darwin*)
12385 if test -n "$STRIP" ; then
12386 striplib="$STRIP -x"
12387 old_striplib="$STRIP -S"
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12389$as_echo "yes" >&6; }
12390 else
12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12392$as_echo "no" >&6; }
12393 fi
12394 ;;
12395 *)
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397$as_echo "no" >&6; }
12398 ;;
12399 esac
12400fi
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413 # Report which library types will actually be built
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12415$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12417$as_echo "$can_build_shared" >&6; }
12418
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12420$as_echo_n "checking whether to build shared libraries... " >&6; }
12421 test "$can_build_shared" = "no" && enable_shared=no
12422
12423 # On AIX, shared libraries and static libraries use the same namespace, and
12424 # are all built from PIC.
12425 case $host_os in
12426 aix3*)
12427 test "$enable_shared" = yes && enable_static=no
12428 if test -n "$RANLIB"; then
12429 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12430 postinstall_cmds='$RANLIB $lib'
12431 fi
12432 ;;
12433
12434 aix[4-9]*)
12435 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12436 test "$enable_shared" = yes && enable_static=no
12437 fi
12438 ;;
12439 esac
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12441$as_echo "$enable_shared" >&6; }
12442
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12444$as_echo_n "checking whether to build static libraries... " >&6; }
12445 # Make sure either enable_shared or enable_static is yes.
12446 test "$enable_shared" = yes || enable_static=yes
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12448$as_echo "$enable_static" >&6; }
12449
12450
12451
12452
12453fi
12454ac_ext=c
12455ac_cpp='$CPP $CPPFLAGS'
12456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12458ac_compiler_gnu=$ac_cv_c_compiler_gnu
12459
12460CC="$lt_save_CC"
12461
12462 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12463 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12464 (test "X$CXX" != "Xg++"))) ; then
12465 ac_ext=cpp
12466ac_cpp='$CXXCPP $CPPFLAGS'
12467ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12468ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12469ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12471$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12472if test -z "$CXXCPP"; then
12473 if ${ac_cv_prog_CXXCPP+:} false; then :
12474 $as_echo_n "(cached) " >&6
12475else
12476 # Double quotes because CXXCPP needs to be expanded
12477 for CXXCPP in "$CXX -E" "/lib/cpp"
12478 do
12479 ac_preproc_ok=false
12480for ac_cxx_preproc_warn_flag in '' yes
12481do
12482 # Use a header file that comes with gcc, so configuring glibc
12483 # with a fresh cross-compiler works.
12484 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12485 # <limits.h> exists even on freestanding compilers.
12486 # On the NeXT, cc -E runs the code through the compiler's parser,
12487 # not just through cpp. "Syntax error" is here to catch this case.
12488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12489/* end confdefs.h. */
12490@%:@ifdef __STDC__
12491@%:@ include <limits.h>
12492@%:@else
12493@%:@ include <assert.h>
12494@%:@endif
12495 Syntax error
12496_ACEOF
12497if ac_fn_cxx_try_cpp "$LINENO"; then :
12498
12499else
12500 # Broken: fails on valid input.
12501continue
12502fi
12503rm -f conftest.err conftest.i conftest.$ac_ext
12504
12505 # OK, works on sane cases. Now check whether nonexistent headers
12506 # can be detected and how.
12507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12508/* end confdefs.h. */
12509@%:@include <ac_nonexistent.h>
12510_ACEOF
12511if ac_fn_cxx_try_cpp "$LINENO"; then :
12512 # Broken: success on invalid input.
12513continue
12514else
12515 # Passes both tests.
12516ac_preproc_ok=:
12517break
12518fi
12519rm -f conftest.err conftest.i conftest.$ac_ext
12520
12521done
12522# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12523rm -f conftest.i conftest.err conftest.$ac_ext
12524if $ac_preproc_ok; then :
12525 break
12526fi
12527
12528 done
12529 ac_cv_prog_CXXCPP=$CXXCPP
12530
12531fi
12532 CXXCPP=$ac_cv_prog_CXXCPP
12533else
12534 ac_cv_prog_CXXCPP=$CXXCPP
12535fi
12536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12537$as_echo "$CXXCPP" >&6; }
12538ac_preproc_ok=false
12539for ac_cxx_preproc_warn_flag in '' yes
12540do
12541 # Use a header file that comes with gcc, so configuring glibc
12542 # with a fresh cross-compiler works.
12543 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12544 # <limits.h> exists even on freestanding compilers.
12545 # On the NeXT, cc -E runs the code through the compiler's parser,
12546 # not just through cpp. "Syntax error" is here to catch this case.
12547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12548/* end confdefs.h. */
12549@%:@ifdef __STDC__
12550@%:@ include <limits.h>
12551@%:@else
12552@%:@ include <assert.h>
12553@%:@endif
12554 Syntax error
12555_ACEOF
12556if ac_fn_cxx_try_cpp "$LINENO"; then :
12557
12558else
12559 # Broken: fails on valid input.
12560continue
12561fi
12562rm -f conftest.err conftest.i conftest.$ac_ext
12563
12564 # OK, works on sane cases. Now check whether nonexistent headers
12565 # can be detected and how.
12566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12567/* end confdefs.h. */
12568@%:@include <ac_nonexistent.h>
12569_ACEOF
12570if ac_fn_cxx_try_cpp "$LINENO"; then :
12571 # Broken: success on invalid input.
12572continue
12573else
12574 # Passes both tests.
12575ac_preproc_ok=:
12576break
12577fi
12578rm -f conftest.err conftest.i conftest.$ac_ext
12579
12580done
12581# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12582rm -f conftest.i conftest.err conftest.$ac_ext
12583if $ac_preproc_ok; then :
12584
12585else
12586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12588as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12589See \`config.log' for more details" "$LINENO" 5; }
12590fi
12591
12592ac_ext=c
12593ac_cpp='$CPP $CPPFLAGS'
12594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12596ac_compiler_gnu=$ac_cv_c_compiler_gnu
12597
12598else
12599 _lt_caught_CXX_error=yes
12600fi
12601
12602ac_ext=cpp
12603ac_cpp='$CXXCPP $CPPFLAGS'
12604ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12605ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12606ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12607
12608archive_cmds_need_lc_CXX=no
12609allow_undefined_flag_CXX=
12610always_export_symbols_CXX=no
12611archive_expsym_cmds_CXX=
12612compiler_needs_object_CXX=no
12613export_dynamic_flag_spec_CXX=
12614hardcode_direct_CXX=no
12615hardcode_direct_absolute_CXX=no
12616hardcode_libdir_flag_spec_CXX=
12617hardcode_libdir_separator_CXX=
12618hardcode_minus_L_CXX=no
12619hardcode_shlibpath_var_CXX=unsupported
12620hardcode_automatic_CXX=no
12621inherit_rpath_CXX=no
12622module_cmds_CXX=
12623module_expsym_cmds_CXX=
12624link_all_deplibs_CXX=unknown
12625old_archive_cmds_CXX=$old_archive_cmds
12626reload_flag_CXX=$reload_flag
12627reload_cmds_CXX=$reload_cmds
12628no_undefined_flag_CXX=
12629whole_archive_flag_spec_CXX=
12630enable_shared_with_static_runtimes_CXX=no
12631
12632# Source file extension for C++ test sources.
12633ac_ext=cpp
12634
12635# Object file extension for compiled C++ test sources.
12636objext=o
12637objext_CXX=$objext
12638
12639# No sense in running all these tests if we already determined that
12640# the CXX compiler isn't working. Some variables (like enable_shared)
12641# are currently assumed to apply to all compilers on this platform,
12642# and will be corrupted by setting them based on a non-working compiler.
12643if test "$_lt_caught_CXX_error" != yes; then
12644 # Code to be used in simple compile tests
12645 lt_simple_compile_test_code="int some_variable = 0;"
12646
12647 # Code to be used in simple link tests
12648 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12649
12650 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12651
12652
12653
12654
12655
12656
12657# If no C compiler was specified, use CC.
12658LTCC=${LTCC-"$CC"}
12659
12660# If no C compiler flags were specified, use CFLAGS.
12661LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12662
12663# Allow CC to be a program name with arguments.
12664compiler=$CC
12665
12666
12667 # save warnings/boilerplate of simple test code
12668 ac_outfile=conftest.$ac_objext
12669echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12670eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12671_lt_compiler_boilerplate=`cat conftest.err`
12672$RM conftest*
12673
12674 ac_outfile=conftest.$ac_objext
12675echo "$lt_simple_link_test_code" >conftest.$ac_ext
12676eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12677_lt_linker_boilerplate=`cat conftest.err`
12678$RM -r conftest*
12679
12680
12681 # Allow CC to be a program name with arguments.
12682 lt_save_CC=$CC
12683 lt_save_CFLAGS=$CFLAGS
12684 lt_save_LD=$LD
12685 lt_save_GCC=$GCC
12686 GCC=$GXX
12687 lt_save_with_gnu_ld=$with_gnu_ld
12688 lt_save_path_LD=$lt_cv_path_LD
12689 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12690 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12691 else
12692 $as_unset lt_cv_prog_gnu_ld
12693 fi
12694 if test -n "${lt_cv_path_LDCXX+set}"; then
12695 lt_cv_path_LD=$lt_cv_path_LDCXX
12696 else
12697 $as_unset lt_cv_path_LD
12698 fi
12699 test -z "${LDCXX+set}" || LD=$LDCXX
12700 CC=${CXX-"c++"}
12701 CFLAGS=$CXXFLAGS
12702 compiler=$CC
12703 compiler_CXX=$CC
12704 for cc_temp in $compiler""; do
12705 case $cc_temp in
12706 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12707 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12708 \-*) ;;
12709 *) break;;
12710 esac
12711done
12712cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12713
12714
12715 if test -n "$compiler"; then
12716 # We don't want -fno-exception when compiling C++ code, so set the
12717 # no_builtin_flag separately
12718 if test "$GXX" = yes; then
12719 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12720 else
12721 lt_prog_compiler_no_builtin_flag_CXX=
12722 fi
12723
12724 if test "$GXX" = yes; then
12725 # Set up default GNU C++ configuration
12726
12727
12728
12729@%:@ Check whether --with-gnu-ld was given.
12730if test "${with_gnu_ld+set}" = set; then :
12731 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12732else
12733 with_gnu_ld=no
12734fi
12735
12736ac_prog=ld
12737if test "$GCC" = yes; then
12738 # Check if gcc -print-prog-name=ld gives a path.
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12740$as_echo_n "checking for ld used by $CC... " >&6; }
12741 case $host in
12742 *-*-mingw*)
12743 # gcc leaves a trailing carriage return which upsets mingw
12744 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12745 *)
12746 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12747 esac
12748 case $ac_prog in
12749 # Accept absolute paths.
12750 [\\/]* | ?:[\\/]*)
12751 re_direlt='/[^/][^/]*/\.\./'
12752 # Canonicalize the pathname of ld
12753 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12754 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12755 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12756 done
12757 test -z "$LD" && LD="$ac_prog"
12758 ;;
12759 "")
12760 # If it fails, then pretend we aren't using GCC.
12761 ac_prog=ld
12762 ;;
12763 *)
12764 # If it is relative, then search for the first ld in PATH.
12765 with_gnu_ld=unknown
12766 ;;
12767 esac
12768elif test "$with_gnu_ld" = yes; then
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12770$as_echo_n "checking for GNU ld... " >&6; }
12771else
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12773$as_echo_n "checking for non-GNU ld... " >&6; }
12774fi
12775if ${lt_cv_path_LD+:} false; then :
12776 $as_echo_n "(cached) " >&6
12777else
12778 if test -z "$LD"; then
12779 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12780 for ac_dir in $PATH; do
12781 IFS="$lt_save_ifs"
12782 test -z "$ac_dir" && ac_dir=.
12783 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12784 lt_cv_path_LD="$ac_dir/$ac_prog"
12785 # Check to see if the program is GNU ld. I'd rather use --version,
12786 # but apparently some variants of GNU ld only accept -v.
12787 # Break only if it was the GNU/non-GNU ld that we prefer.
12788 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12789 *GNU* | *'with BFD'*)
12790 test "$with_gnu_ld" != no && break
12791 ;;
12792 *)
12793 test "$with_gnu_ld" != yes && break
12794 ;;
12795 esac
12796 fi
12797 done
12798 IFS="$lt_save_ifs"
12799else
12800 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12801fi
12802fi
12803
12804LD="$lt_cv_path_LD"
12805if test -n "$LD"; then
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12807$as_echo "$LD" >&6; }
12808else
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12810$as_echo "no" >&6; }
12811fi
12812test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12814$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12815if ${lt_cv_prog_gnu_ld+:} false; then :
12816 $as_echo_n "(cached) " >&6
12817else
12818 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12819case `$LD -v 2>&1 </dev/null` in
12820*GNU* | *'with BFD'*)
12821 lt_cv_prog_gnu_ld=yes
12822 ;;
12823*)
12824 lt_cv_prog_gnu_ld=no
12825 ;;
12826esac
12827fi
12828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12829$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12830with_gnu_ld=$lt_cv_prog_gnu_ld
12831
12832
12833
12834
12835
12836
12837
12838 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12839 # archiving commands below assume that GNU ld is being used.
12840 if test "$with_gnu_ld" = yes; then
12841 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12842 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12843
12844 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12845 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12846
12847 # If archive_cmds runs LD, not CC, wlarc should be empty
12848 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12849 # investigate it a little bit more. (MM)
12850 wlarc='${wl}'
12851
12852 # ancient GNU ld didn't support --whole-archive et. al.
12853 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12854 $GREP 'no-whole-archive' > /dev/null; then
12855 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12856 else
12857 whole_archive_flag_spec_CXX=
12858 fi
12859 else
12860 with_gnu_ld=no
12861 wlarc=
12862
12863 # A generic and very simple default shared library creation
12864 # command for GNU C++ for the case where it uses the native
12865 # linker, instead of GNU ld. If possible, this setting should
12866 # overridden to take advantage of the native linker features on
12867 # the platform it is being used on.
12868 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12869 fi
12870
12871 # Commands to make compiler produce verbose output that lists
12872 # what "hidden" libraries, object files and flags are used when
12873 # linking a shared library.
12874 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12875
12876 else
12877 GXX=no
12878 with_gnu_ld=no
12879 wlarc=
12880 fi
12881
12882 # PORTME: fill in a description of your system's C++ link characteristics
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12884$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12885 ld_shlibs_CXX=yes
12886 case $host_os in
12887 aix3*)
12888 # FIXME: insert proper C++ library support
12889 ld_shlibs_CXX=no
12890 ;;
12891 aix[4-9]*)
12892 if test "$host_cpu" = ia64; then
12893 # On IA64, the linker does run time linking by default, so we don't
12894 # have to do anything special.
12895 aix_use_runtimelinking=no
12896 exp_sym_flag='-Bexport'
12897 no_entry_flag=""
12898 else
12899 aix_use_runtimelinking=no
12900
12901 # Test if we are trying to use run time linking or normal
12902 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12903 # need to do runtime linking.
12904 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12905 for ld_flag in $LDFLAGS; do
12906 case $ld_flag in
12907 *-brtl*)
12908 aix_use_runtimelinking=yes
12909 break
12910 ;;
12911 esac
12912 done
12913 ;;
12914 esac
12915
12916 exp_sym_flag='-bexport'
12917 no_entry_flag='-bnoentry'
12918 fi
12919
12920 # When large executables or shared objects are built, AIX ld can
12921 # have problems creating the table of contents. If linking a library
12922 # or program results in "error TOC overflow" add -mminimal-toc to
12923 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12924 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12925
12926 archive_cmds_CXX=''
12927 hardcode_direct_CXX=yes
12928 hardcode_direct_absolute_CXX=yes
12929 hardcode_libdir_separator_CXX=':'
12930 link_all_deplibs_CXX=yes
12931 file_list_spec_CXX='${wl}-f,'
12932
12933 if test "$GXX" = yes; then
12934 case $host_os in aix4.[012]|aix4.[012].*)
12935 # We only want to do this on AIX 4.2 and lower, the check
12936 # below for broken collect2 doesn't work under 4.3+
12937 collect2name=`${CC} -print-prog-name=collect2`
12938 if test -f "$collect2name" &&
12939 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12940 then
12941 # We have reworked collect2
12942 :
12943 else
12944 # We have old collect2
12945 hardcode_direct_CXX=unsupported
12946 # It fails to find uninstalled libraries when the uninstalled
12947 # path is not listed in the libpath. Setting hardcode_minus_L
12948 # to unsupported forces relinking
12949 hardcode_minus_L_CXX=yes
12950 hardcode_libdir_flag_spec_CXX='-L$libdir'
12951 hardcode_libdir_separator_CXX=
12952 fi
12953 esac
12954 shared_flag='-shared'
12955 if test "$aix_use_runtimelinking" = yes; then
12956 shared_flag="$shared_flag "'${wl}-G'
12957 fi
12958 else
12959 # not using gcc
12960 if test "$host_cpu" = ia64; then
12961 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12962 # chokes on -Wl,-G. The following line is correct:
12963 shared_flag='-G'
12964 else
12965 if test "$aix_use_runtimelinking" = yes; then
12966 shared_flag='${wl}-G'
12967 else
12968 shared_flag='${wl}-bM:SRE'
12969 fi
12970 fi
12971 fi
12972
12973 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12974 # It seems that -bexpall does not export symbols beginning with
12975 # underscore (_), so it is better to generate a list of symbols to
12976 # export.
12977 always_export_symbols_CXX=yes
12978 if test "$aix_use_runtimelinking" = yes; then
12979 # Warning - without using the other runtime loading flags (-brtl),
12980 # -berok will link without error, but may produce a broken library.
12981 allow_undefined_flag_CXX='-berok'
12982 # Determine the default libpath from the value encoded in an empty
12983 # executable.
12984 if test "${lt_cv_aix_libpath+set}" = set; then
12985 aix_libpath=$lt_cv_aix_libpath
12986else
12987 if ${lt_cv_aix_libpath__CXX+:} false; then :
12988 $as_echo_n "(cached) " >&6
12989else
12990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12991/* end confdefs.h. */
12992
12993int
12994main ()
12995{
12996
12997 ;
12998 return 0;
12999}
13000_ACEOF
13001if ac_fn_cxx_try_link "$LINENO"; then :
13002
13003 lt_aix_libpath_sed='
13004 /Import File Strings/,/^$/ {
13005 /^0/ {
13006 s/^0 *\([^ ]*\) *$/\1/
13007 p
13008 }
13009 }'
13010 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13011 # Check for a 64-bit object if we didn't find anything.
13012 if test -z "$lt_cv_aix_libpath__CXX"; then
13013 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13014 fi
13015fi
13016rm -f core conftest.err conftest.$ac_objext \
13017 conftest$ac_exeext conftest.$ac_ext
13018 if test -z "$lt_cv_aix_libpath__CXX"; then
13019 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13020 fi
13021
13022fi
13023
13024 aix_libpath=$lt_cv_aix_libpath__CXX
13025fi
13026
13027 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13028
13029 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13030 else
13031 if test "$host_cpu" = ia64; then
13032 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13033 allow_undefined_flag_CXX="-z nodefs"
13034 archive_expsym_cmds_CXX="\$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"
13035 else
13036 # Determine the default libpath from the value encoded in an
13037 # empty executable.
13038 if test "${lt_cv_aix_libpath+set}" = set; then
13039 aix_libpath=$lt_cv_aix_libpath
13040else
13041 if ${lt_cv_aix_libpath__CXX+:} false; then :
13042 $as_echo_n "(cached) " >&6
13043else
13044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13045/* end confdefs.h. */
13046
13047int
13048main ()
13049{
13050
13051 ;
13052 return 0;
13053}
13054_ACEOF
13055if ac_fn_cxx_try_link "$LINENO"; then :
13056
13057 lt_aix_libpath_sed='
13058 /Import File Strings/,/^$/ {
13059 /^0/ {
13060 s/^0 *\([^ ]*\) *$/\1/
13061 p
13062 }
13063 }'
13064 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13065 # Check for a 64-bit object if we didn't find anything.
13066 if test -z "$lt_cv_aix_libpath__CXX"; then
13067 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13068 fi
13069fi
13070rm -f core conftest.err conftest.$ac_objext \
13071 conftest$ac_exeext conftest.$ac_ext
13072 if test -z "$lt_cv_aix_libpath__CXX"; then
13073 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13074 fi
13075
13076fi
13077
13078 aix_libpath=$lt_cv_aix_libpath__CXX
13079fi
13080
13081 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13082 # Warning - without using the other run time loading flags,
13083 # -berok will link without error, but may produce a broken library.
13084 no_undefined_flag_CXX=' ${wl}-bernotok'
13085 allow_undefined_flag_CXX=' ${wl}-berok'
13086 if test "$with_gnu_ld" = yes; then
13087 # We only use this code for GNU lds that support --whole-archive.
13088 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13089 else
13090 # Exported symbols can be pulled into shared objects from archives
13091 whole_archive_flag_spec_CXX='$convenience'
13092 fi
13093 archive_cmds_need_lc_CXX=yes
13094 # This is similar to how AIX traditionally builds its shared
13095 # libraries.
13096 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13097 fi
13098 fi
13099 ;;
13100
13101 beos*)
13102 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13103 allow_undefined_flag_CXX=unsupported
13104 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13105 # support --undefined. This deserves some investigation. FIXME
13106 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13107 else
13108 ld_shlibs_CXX=no
13109 fi
13110 ;;
13111
13112 chorus*)
13113 case $cc_basename in
13114 *)
13115 # FIXME: insert proper C++ library support
13116 ld_shlibs_CXX=no
13117 ;;
13118 esac
13119 ;;
13120
13121 cygwin* | mingw* | pw32* | cegcc*)
13122 case $GXX,$cc_basename in
13123 ,cl* | no,cl*)
13124 # Native MSVC
13125 # hardcode_libdir_flag_spec is actually meaningless, as there is
13126 # no search path for DLLs.
13127 hardcode_libdir_flag_spec_CXX=' '
13128 allow_undefined_flag_CXX=unsupported
13129 always_export_symbols_CXX=yes
13130 file_list_spec_CXX='@'
13131 # Tell ltmain to make .lib files, not .a files.
13132 libext=lib
13133 # Tell ltmain to make .dll files, not .so files.
13134 shrext_cmds=".dll"
13135 # FIXME: Setting linknames here is a bad hack.
13136 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13137 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13138 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13139 else
13140 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13141 fi~
13142 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13143 linknames='
13144 # The linker will not automatically build a static lib if we build a DLL.
13145 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13146 enable_shared_with_static_runtimes_CXX=yes
13147 # Don't use ranlib
13148 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13149 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13150 lt_tool_outputfile="@TOOL_OUTPUT@"~
13151 case $lt_outputfile in
13152 *.exe|*.EXE) ;;
13153 *)
13154 lt_outputfile="$lt_outputfile.exe"
13155 lt_tool_outputfile="$lt_tool_outputfile.exe"
13156 ;;
13157 esac~
13158 func_to_tool_file "$lt_outputfile"~
13159 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13160 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13161 $RM "$lt_outputfile.manifest";
13162 fi'
13163 ;;
13164 *)
13165 # g++
13166 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13167 # as there is no search path for DLLs.
13168 hardcode_libdir_flag_spec_CXX='-L$libdir'
13169 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13170 allow_undefined_flag_CXX=unsupported
13171 always_export_symbols_CXX=no
13172 enable_shared_with_static_runtimes_CXX=yes
13173
13174 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13175 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13176 # If the export-symbols file already is a .def file (1st line
13177 # is EXPORTS), use it as is; otherwise, prepend...
13178 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13179 cp $export_symbols $output_objdir/$soname.def;
13180 else
13181 echo EXPORTS > $output_objdir/$soname.def;
13182 cat $export_symbols >> $output_objdir/$soname.def;
13183 fi~
13184 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13185 else
13186 ld_shlibs_CXX=no
13187 fi
13188 ;;
13189 esac
13190 ;;
13191 darwin* | rhapsody*)
13192
13193
13194 archive_cmds_need_lc_CXX=no
13195 hardcode_direct_CXX=no
13196 hardcode_automatic_CXX=yes
13197 hardcode_shlibpath_var_CXX=unsupported
13198 if test "$lt_cv_ld_force_load" = "yes"; then
13199 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13200
13201 else
13202 whole_archive_flag_spec_CXX=''
13203 fi
13204 link_all_deplibs_CXX=yes
13205 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13206 case $cc_basename in
13207 ifort*) _lt_dar_can_shared=yes ;;
13208 *) _lt_dar_can_shared=$GCC ;;
13209 esac
13210 if test "$_lt_dar_can_shared" = "yes"; then
13211 output_verbose_link_cmd=func_echo_all
13212 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13213 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13214 archive_expsym_cmds_CXX="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}"
13215 module_expsym_cmds_CXX="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}"
13216 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13217 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13218 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13219 fi
13220
13221 else
13222 ld_shlibs_CXX=no
13223 fi
13224
13225 ;;
13226
13227 dgux*)
13228 case $cc_basename in
13229 ec++*)
13230 # FIXME: insert proper C++ library support
13231 ld_shlibs_CXX=no
13232 ;;
13233 ghcx*)
13234 # Green Hills C++ Compiler
13235 # FIXME: insert proper C++ library support
13236 ld_shlibs_CXX=no
13237 ;;
13238 *)
13239 # FIXME: insert proper C++ library support
13240 ld_shlibs_CXX=no
13241 ;;
13242 esac
13243 ;;
13244
13245 freebsd2.*)
13246 # C++ shared libraries reported to be fairly broken before
13247 # switch to ELF
13248 ld_shlibs_CXX=no
13249 ;;
13250
13251 freebsd-elf*)
13252 archive_cmds_need_lc_CXX=no
13253 ;;
13254
13255 freebsd* | dragonfly*)
13256 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13257 # conventions
13258 ld_shlibs_CXX=yes
13259 ;;
13260
13261 gnu*)
13262 ;;
13263
13264 haiku*)
13265 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13266 link_all_deplibs_CXX=yes
13267 ;;
13268
13269 hpux9*)
13270 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13271 hardcode_libdir_separator_CXX=:
13272 export_dynamic_flag_spec_CXX='${wl}-E'
13273 hardcode_direct_CXX=yes
13274 hardcode_minus_L_CXX=yes # Not in the search PATH,
13275 # but as the default
13276 # location of the library.
13277
13278 case $cc_basename in
13279 CC*)
13280 # FIXME: insert proper C++ library support
13281 ld_shlibs_CXX=no
13282 ;;
13283 aCC*)
13284 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13285 # Commands to make compiler produce verbose output that lists
13286 # what "hidden" libraries, object files and flags are used when
13287 # linking a shared library.
13288 #
13289 # There doesn't appear to be a way to prevent this compiler from
13290 # explicitly linking system object files so we need to strip them
13291 # from the output so that they don't get included in the library
13292 # dependencies.
13293 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13294 ;;
13295 *)
13296 if test "$GXX" = yes; then
13297 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13298 else
13299 # FIXME: insert proper C++ library support
13300 ld_shlibs_CXX=no
13301 fi
13302 ;;
13303 esac
13304 ;;
13305
13306 hpux10*|hpux11*)
13307 if test $with_gnu_ld = no; then
13308 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13309 hardcode_libdir_separator_CXX=:
13310
13311 case $host_cpu in
13312 hppa*64*|ia64*)
13313 ;;
13314 *)
13315 export_dynamic_flag_spec_CXX='${wl}-E'
13316 ;;
13317 esac
13318 fi
13319 case $host_cpu in
13320 hppa*64*|ia64*)
13321 hardcode_direct_CXX=no
13322 hardcode_shlibpath_var_CXX=no
13323 ;;
13324 *)
13325 hardcode_direct_CXX=yes
13326 hardcode_direct_absolute_CXX=yes
13327 hardcode_minus_L_CXX=yes # Not in the search PATH,
13328 # but as the default
13329 # location of the library.
13330 ;;
13331 esac
13332
13333 case $cc_basename in
13334 CC*)
13335 # FIXME: insert proper C++ library support
13336 ld_shlibs_CXX=no
13337 ;;
13338 aCC*)
13339 case $host_cpu in
13340 hppa*64*)
13341 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13342 ;;
13343 ia64*)
13344 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13345 ;;
13346 *)
13347 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13348 ;;
13349 esac
13350 # Commands to make compiler produce verbose output that lists
13351 # what "hidden" libraries, object files and flags are used when
13352 # linking a shared library.
13353 #
13354 # There doesn't appear to be a way to prevent this compiler from
13355 # explicitly linking system object files so we need to strip them
13356 # from the output so that they don't get included in the library
13357 # dependencies.
13358 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13359 ;;
13360 *)
13361 if test "$GXX" = yes; then
13362 if test $with_gnu_ld = no; then
13363 case $host_cpu in
13364 hppa*64*)
13365 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13366 ;;
13367 ia64*)
13368 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13369 ;;
13370 *)
13371 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13372 ;;
13373 esac
13374 fi
13375 else
13376 # FIXME: insert proper C++ library support
13377 ld_shlibs_CXX=no
13378 fi
13379 ;;
13380 esac
13381 ;;
13382
13383 interix[3-9]*)
13384 hardcode_direct_CXX=no
13385 hardcode_shlibpath_var_CXX=no
13386 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13387 export_dynamic_flag_spec_CXX='${wl}-E'
13388 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13389 # Instead, shared libraries are loaded at an image base (0x10000000 by
13390 # default) and relocated if they conflict, which is a slow very memory
13391 # consuming and fragmenting process. To avoid this, we pick a random,
13392 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13393 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13394 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13395 archive_expsym_cmds_CXX='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'
13396 ;;
13397 irix5* | irix6*)
13398 case $cc_basename in
13399 CC*)
13400 # SGI C++
13401 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13402
13403 # Archives containing C++ object files must be created using
13404 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13405 # necessary to make sure instantiated templates are included
13406 # in the archive.
13407 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13408 ;;
13409 *)
13410 if test "$GXX" = yes; then
13411 if test "$with_gnu_ld" = no; then
13412 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13413 else
13414 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13415 fi
13416 fi
13417 link_all_deplibs_CXX=yes
13418 ;;
13419 esac
13420 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13421 hardcode_libdir_separator_CXX=:
13422 inherit_rpath_CXX=yes
13423 ;;
13424
13425 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13426 case $cc_basename in
13427 KCC*)
13428 # Kuck and Associates, Inc. (KAI) C++ Compiler
13429
13430 # KCC will only create a shared library if the output file
13431 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13432 # to its proper name (with version) after linking.
13433 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13434 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13435 # Commands to make compiler produce verbose output that lists
13436 # what "hidden" libraries, object files and flags are used when
13437 # linking a shared library.
13438 #
13439 # There doesn't appear to be a way to prevent this compiler from
13440 # explicitly linking system object files so we need to strip them
13441 # from the output so that they don't get included in the library
13442 # dependencies.
13443 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13444
13445 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13446 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13447
13448 # Archives containing C++ object files must be created using
13449 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13450 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13451 ;;
13452 icpc* | ecpc* )
13453 # Intel C++
13454 with_gnu_ld=yes
13455 # version 8.0 and above of icpc choke on multiply defined symbols
13456 # if we add $predep_objects and $postdep_objects, however 7.1 and
13457 # earlier do not add the objects themselves.
13458 case `$CC -V 2>&1` in
13459 *"Version 7."*)
13460 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13461 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13462 ;;
13463 *) # Version 8.0 or newer
13464 tmp_idyn=
13465 case $host_cpu in
13466 ia64*) tmp_idyn=' -i_dynamic';;
13467 esac
13468 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13469 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13470 ;;
13471 esac
13472 archive_cmds_need_lc_CXX=no
13473 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13474 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13475 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13476 ;;
13477 pgCC* | pgcpp*)
13478 # Portland Group C++ compiler
13479 case `$CC -V` in
13480 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13481 prelink_cmds_CXX='tpldir=Template.dir~
13482 rm -rf $tpldir~
13483 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13484 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13485 old_archive_cmds_CXX='tpldir=Template.dir~
13486 rm -rf $tpldir~
13487 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13488 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13489 $RANLIB $oldlib'
13490 archive_cmds_CXX='tpldir=Template.dir~
13491 rm -rf $tpldir~
13492 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13493 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13494 archive_expsym_cmds_CXX='tpldir=Template.dir~
13495 rm -rf $tpldir~
13496 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13497 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13498 ;;
13499 *) # Version 6 and above use weak symbols
13500 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13501 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13502 ;;
13503 esac
13504
13505 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13506 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13507 whole_archive_flag_spec_CXX='${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'
13508 ;;
13509 cxx*)
13510 # Compaq C++
13511 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13512 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13513
13514 runpath_var=LD_RUN_PATH
13515 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13516 hardcode_libdir_separator_CXX=:
13517
13518 # Commands to make compiler produce verbose output that lists
13519 # what "hidden" libraries, object files and flags are used when
13520 # linking a shared library.
13521 #
13522 # There doesn't appear to be a way to prevent this compiler from
13523 # explicitly linking system object files so we need to strip them
13524 # from the output so that they don't get included in the library
13525 # dependencies.
13526 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13527 ;;
13528 xl* | mpixl* | bgxl*)
13529 # IBM XL 8.0 on PPC, with GNU ld
13530 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13531 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13532 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13533 if test "x$supports_anon_versioning" = xyes; then
13534 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13535 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13536 echo "local: *; };" >> $output_objdir/$libname.ver~
13537 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13538 fi
13539 ;;
13540 *)
13541 case `$CC -V 2>&1 | sed 5q` in
13542 *Sun\ C*)
13543 # Sun C++ 5.9
13544 no_undefined_flag_CXX=' -zdefs'
13545 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13546 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13547 hardcode_libdir_flag_spec_CXX='-R$libdir'
13548 whole_archive_flag_spec_CXX='${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'
13549 compiler_needs_object_CXX=yes
13550
13551 # Not sure whether something based on
13552 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13553 # would be better.
13554 output_verbose_link_cmd='func_echo_all'
13555
13556 # Archives containing C++ object files must be created using
13557 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13558 # necessary to make sure instantiated templates are included
13559 # in the archive.
13560 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13561 ;;
13562 esac
13563 ;;
13564 esac
13565 ;;
13566
13567 lynxos*)
13568 # FIXME: insert proper C++ library support
13569 ld_shlibs_CXX=no
13570 ;;
13571
13572 m88k*)
13573 # FIXME: insert proper C++ library support
13574 ld_shlibs_CXX=no
13575 ;;
13576
13577 mvs*)
13578 case $cc_basename in
13579 cxx*)
13580 # FIXME: insert proper C++ library support
13581 ld_shlibs_CXX=no
13582 ;;
13583 *)
13584 # FIXME: insert proper C++ library support
13585 ld_shlibs_CXX=no
13586 ;;
13587 esac
13588 ;;
13589
13590 netbsd*)
13591 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13592 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13593 wlarc=
13594 hardcode_libdir_flag_spec_CXX='-R$libdir'
13595 hardcode_direct_CXX=yes
13596 hardcode_shlibpath_var_CXX=no
13597 fi
13598 # Workaround some broken pre-1.5 toolchains
13599 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13600 ;;
13601
13602 *nto* | *qnx*)
13603 ld_shlibs_CXX=yes
13604 ;;
13605
13606 openbsd2*)
13607 # C++ shared libraries are fairly broken
13608 ld_shlibs_CXX=no
13609 ;;
13610
13611 openbsd*)
13612 if test -f /usr/libexec/ld.so; then
13613 hardcode_direct_CXX=yes
13614 hardcode_shlibpath_var_CXX=no
13615 hardcode_direct_absolute_CXX=yes
13616 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13617 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13618 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13619 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13620 export_dynamic_flag_spec_CXX='${wl}-E'
13621 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13622 fi
13623 output_verbose_link_cmd=func_echo_all
13624 else
13625 ld_shlibs_CXX=no
13626 fi
13627 ;;
13628
13629 osf3* | osf4* | osf5*)
13630 case $cc_basename in
13631 KCC*)
13632 # Kuck and Associates, Inc. (KAI) C++ Compiler
13633
13634 # KCC will only create a shared library if the output file
13635 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13636 # to its proper name (with version) after linking.
13637 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13638
13639 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13640 hardcode_libdir_separator_CXX=:
13641
13642 # Archives containing C++ object files must be created using
13643 # the KAI C++ compiler.
13644 case $host in
13645 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13646 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13647 esac
13648 ;;
13649 RCC*)
13650 # Rational C++ 2.4.1
13651 # FIXME: insert proper C++ library support
13652 ld_shlibs_CXX=no
13653 ;;
13654 cxx*)
13655 case $host in
13656 osf3*)
13657 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13658 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13659 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13660 ;;
13661 *)
13662 allow_undefined_flag_CXX=' -expect_unresolved \*'
13663 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13664 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13665 echo "-hidden">> $lib.exp~
13666 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
13667 $RM $lib.exp'
13668 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13669 ;;
13670 esac
13671
13672 hardcode_libdir_separator_CXX=:
13673
13674 # Commands to make compiler produce verbose output that lists
13675 # what "hidden" libraries, object files and flags are used when
13676 # linking a shared library.
13677 #
13678 # There doesn't appear to be a way to prevent this compiler from
13679 # explicitly linking system object files so we need to strip them
13680 # from the output so that they don't get included in the library
13681 # dependencies.
13682 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13683 ;;
13684 *)
13685 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13686 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13687 case $host in
13688 osf3*)
13689 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13690 ;;
13691 *)
13692 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
13693 ;;
13694 esac
13695
13696 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13697 hardcode_libdir_separator_CXX=:
13698
13699 # Commands to make compiler produce verbose output that lists
13700 # what "hidden" libraries, object files and flags are used when
13701 # linking a shared library.
13702 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13703
13704 else
13705 # FIXME: insert proper C++ library support
13706 ld_shlibs_CXX=no
13707 fi
13708 ;;
13709 esac
13710 ;;
13711
13712 psos*)
13713 # FIXME: insert proper C++ library support
13714 ld_shlibs_CXX=no
13715 ;;
13716
13717 sunos4*)
13718 case $cc_basename in
13719 CC*)
13720 # Sun C++ 4.x
13721 # FIXME: insert proper C++ library support
13722 ld_shlibs_CXX=no
13723 ;;
13724 lcc*)
13725 # Lucid
13726 # FIXME: insert proper C++ library support
13727 ld_shlibs_CXX=no
13728 ;;
13729 *)
13730 # FIXME: insert proper C++ library support
13731 ld_shlibs_CXX=no
13732 ;;
13733 esac
13734 ;;
13735
13736 solaris*)
13737 case $cc_basename in
13738 CC* | sunCC*)
13739 # Sun C++ 4.2, 5.x and Centerline C++
13740 archive_cmds_need_lc_CXX=yes
13741 no_undefined_flag_CXX=' -zdefs'
13742 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13743 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13744 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13745
13746 hardcode_libdir_flag_spec_CXX='-R$libdir'
13747 hardcode_shlibpath_var_CXX=no
13748 case $host_os in
13749 solaris2.[0-5] | solaris2.[0-5].*) ;;
13750 *)
13751 # The compiler driver will combine and reorder linker options,
13752 # but understands `-z linker_flag'.
13753 # Supported since Solaris 2.6 (maybe 2.5.1?)
13754 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13755 ;;
13756 esac
13757 link_all_deplibs_CXX=yes
13758
13759 output_verbose_link_cmd='func_echo_all'
13760
13761 # Archives containing C++ object files must be created using
13762 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13763 # necessary to make sure instantiated templates are included
13764 # in the archive.
13765 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13766 ;;
13767 gcx*)
13768 # Green Hills C++ Compiler
13769 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13770
13771 # The C++ compiler must be used to create the archive.
13772 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13773 ;;
13774 *)
13775 # GNU C++ compiler with Solaris linker
13776 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13777 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13778 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13779 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13780 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13781 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13782
13783 # Commands to make compiler produce verbose output that lists
13784 # what "hidden" libraries, object files and flags are used when
13785 # linking a shared library.
13786 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13787 else
13788 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13789 # platform.
13790 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13791 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13792 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13793
13794 # Commands to make compiler produce verbose output that lists
13795 # what "hidden" libraries, object files and flags are used when
13796 # linking a shared library.
13797 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13798 fi
13799
13800 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13801 case $host_os in
13802 solaris2.[0-5] | solaris2.[0-5].*) ;;
13803 *)
13804 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13805 ;;
13806 esac
13807 fi
13808 ;;
13809 esac
13810 ;;
13811
13812 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13813 no_undefined_flag_CXX='${wl}-z,text'
13814 archive_cmds_need_lc_CXX=no
13815 hardcode_shlibpath_var_CXX=no
13816 runpath_var='LD_RUN_PATH'
13817
13818 case $cc_basename in
13819 CC*)
13820 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13821 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13822 ;;
13823 *)
13824 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13825 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13826 ;;
13827 esac
13828 ;;
13829
13830 sysv5* | sco3.2v5* | sco5v6*)
13831 # Note: We can NOT use -z defs as we might desire, because we do not
13832 # link with -lc, and that would cause any symbols used from libc to
13833 # always be unresolved, which means just about no library would
13834 # ever link correctly. If we're not using GNU ld we use -z text
13835 # though, which does catch some bad symbols but isn't as heavy-handed
13836 # as -z defs.
13837 no_undefined_flag_CXX='${wl}-z,text'
13838 allow_undefined_flag_CXX='${wl}-z,nodefs'
13839 archive_cmds_need_lc_CXX=no
13840 hardcode_shlibpath_var_CXX=no
13841 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13842 hardcode_libdir_separator_CXX=':'
13843 link_all_deplibs_CXX=yes
13844 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13845 runpath_var='LD_RUN_PATH'
13846
13847 case $cc_basename in
13848 CC*)
13849 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13850 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13851 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13852 '"$old_archive_cmds_CXX"
13853 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13854 '"$reload_cmds_CXX"
13855 ;;
13856 *)
13857 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13858 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13859 ;;
13860 esac
13861 ;;
13862
13863 tandem*)
13864 case $cc_basename in
13865 NCC*)
13866 # NonStop-UX NCC 3.20
13867 # FIXME: insert proper C++ library support
13868 ld_shlibs_CXX=no
13869 ;;
13870 *)
13871 # FIXME: insert proper C++ library support
13872 ld_shlibs_CXX=no
13873 ;;
13874 esac
13875 ;;
13876
13877 vxworks*)
13878 # FIXME: insert proper C++ library support
13879 ld_shlibs_CXX=no
13880 ;;
13881
13882 *)
13883 # FIXME: insert proper C++ library support
13884 ld_shlibs_CXX=no
13885 ;;
13886 esac
13887
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13889$as_echo "$ld_shlibs_CXX" >&6; }
13890 test "$ld_shlibs_CXX" = no && can_build_shared=no
13891
13892 GCC_CXX="$GXX"
13893 LD_CXX="$LD"
13894
13895 ## CAVEAT EMPTOR:
13896 ## There is no encapsulation within the following macros, do not change
13897 ## the running order or otherwise move them around unless you know exactly
13898 ## what you are doing...
13899 # Dependencies to place before and after the object being linked:
13900predep_objects_CXX=
13901postdep_objects_CXX=
13902predeps_CXX=
13903postdeps_CXX=
13904compiler_lib_search_path_CXX=
13905
13906cat > conftest.$ac_ext <<_LT_EOF
13907class Foo
13908{
13909public:
13910 Foo (void) { a = 0; }
13911private:
13912 int a;
13913};
13914_LT_EOF
13915
13916
13917_lt_libdeps_save_CFLAGS=$CFLAGS
13918case "$CC $CFLAGS " in #(
13919*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13920*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13921*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13922esac
13923
13924if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13925 (eval $ac_compile) 2>&5
13926 ac_status=$?
13927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13928 test $ac_status = 0; }; then
13929 # Parse the compiler output and extract the necessary
13930 # objects, libraries and library flags.
13931
13932 # Sentinel used to keep track of whether or not we are before
13933 # the conftest object file.
13934 pre_test_object_deps_done=no
13935
13936 for p in `eval "$output_verbose_link_cmd"`; do
13937 case ${prev}${p} in
13938
13939 -L* | -R* | -l*)
13940 # Some compilers place space between "-{L,R}" and the path.
13941 # Remove the space.
13942 if test $p = "-L" ||
13943 test $p = "-R"; then
13944 prev=$p
13945 continue
13946 fi
13947
13948 # Expand the sysroot to ease extracting the directories later.
13949 if test -z "$prev"; then
13950 case $p in
13951 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13952 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13953 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13954 esac
13955 fi
13956 case $p in
13957 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13958 esac
13959 if test "$pre_test_object_deps_done" = no; then
13960 case ${prev} in
13961 -L | -R)
13962 # Internal compiler library paths should come after those
13963 # provided the user. The postdeps already come after the
13964 # user supplied libs so there is no need to process them.
13965 if test -z "$compiler_lib_search_path_CXX"; then
13966 compiler_lib_search_path_CXX="${prev}${p}"
13967 else
13968 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13969 fi
13970 ;;
13971 # The "-l" case would never come before the object being
13972 # linked, so don't bother handling this case.
13973 esac
13974 else
13975 if test -z "$postdeps_CXX"; then
13976 postdeps_CXX="${prev}${p}"
13977 else
13978 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13979 fi
13980 fi
13981 prev=
13982 ;;
13983
13984 *.lto.$objext) ;; # Ignore GCC LTO objects
13985 *.$objext)
13986 # This assumes that the test object file only shows up
13987 # once in the compiler output.
13988 if test "$p" = "conftest.$objext"; then
13989 pre_test_object_deps_done=yes
13990 continue
13991 fi
13992
13993 if test "$pre_test_object_deps_done" = no; then
13994 if test -z "$predep_objects_CXX"; then
13995 predep_objects_CXX="$p"
13996 else
13997 predep_objects_CXX="$predep_objects_CXX $p"
13998 fi
13999 else
14000 if test -z "$postdep_objects_CXX"; then
14001 postdep_objects_CXX="$p"
14002 else
14003 postdep_objects_CXX="$postdep_objects_CXX $p"
14004 fi
14005 fi
14006 ;;
14007
14008 *) ;; # Ignore the rest.
14009
14010 esac
14011 done
14012
14013 # Clean up.
14014 rm -f a.out a.exe
14015else
14016 echo "libtool.m4: error: problem compiling CXX test program"
14017fi
14018
14019$RM -f confest.$objext
14020CFLAGS=$_lt_libdeps_save_CFLAGS
14021
14022# PORTME: override above test on systems where it is broken
14023case $host_os in
14024interix[3-9]*)
14025 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14026 # hack all around it, let's just trust "g++" to DTRT.
14027 predep_objects_CXX=
14028 postdep_objects_CXX=
14029 postdeps_CXX=
14030 ;;
14031
14032linux*)
14033 case `$CC -V 2>&1 | sed 5q` in
14034 *Sun\ C*)
14035 # Sun C++ 5.9
14036
14037 # The more standards-conforming stlport4 library is
14038 # incompatible with the Cstd library. Avoid specifying
14039 # it if it's in CXXFLAGS. Ignore libCrun as
14040 # -library=stlport4 depends on it.
14041 case " $CXX $CXXFLAGS " in
14042 *" -library=stlport4 "*)
14043 solaris_use_stlport4=yes
14044 ;;
14045 esac
14046
14047 if test "$solaris_use_stlport4" != yes; then
14048 postdeps_CXX='-library=Cstd -library=Crun'
14049 fi
14050 ;;
14051 esac
14052 ;;
14053
14054solaris*)
14055 case $cc_basename in
14056 CC* | sunCC*)
14057 # The more standards-conforming stlport4 library is
14058 # incompatible with the Cstd library. Avoid specifying
14059 # it if it's in CXXFLAGS. Ignore libCrun as
14060 # -library=stlport4 depends on it.
14061 case " $CXX $CXXFLAGS " in
14062 *" -library=stlport4 "*)
14063 solaris_use_stlport4=yes
14064 ;;
14065 esac
14066
14067 # Adding this requires a known-good setup of shared libraries for
14068 # Sun compiler versions before 5.6, else PIC objects from an old
14069 # archive will be linked into the output, leading to subtle bugs.
14070 if test "$solaris_use_stlport4" != yes; then
14071 postdeps_CXX='-library=Cstd -library=Crun'
14072 fi
14073 ;;
14074 esac
14075 ;;
14076esac
14077
14078
14079case " $postdeps_CXX " in
14080*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14081esac
14082 compiler_lib_search_dirs_CXX=
14083if test -n "${compiler_lib_search_path_CXX}"; then
14084 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14085fi
14086
14087
14088
14089
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117 lt_prog_compiler_wl_CXX=
14118lt_prog_compiler_pic_CXX=
14119lt_prog_compiler_static_CXX=
14120
14121
14122 # C++ specific cases for pic, static, wl, etc.
14123 if test "$GXX" = yes; then
14124 lt_prog_compiler_wl_CXX='-Wl,'
14125 lt_prog_compiler_static_CXX='-static'
14126
14127 case $host_os in
14128 aix*)
14129 # All AIX code is PIC.
14130 if test "$host_cpu" = ia64; then
14131 # AIX 5 now supports IA64 processor
14132 lt_prog_compiler_static_CXX='-Bstatic'
14133 fi
14134 ;;
14135
14136 amigaos*)
14137 case $host_cpu in
14138 powerpc)
14139 # see comment about AmigaOS4 .so support
14140 lt_prog_compiler_pic_CXX='-fPIC'
14141 ;;
14142 m68k)
14143 # FIXME: we need at least 68020 code to build shared libraries, but
14144 # adding the `-m68020' flag to GCC prevents building anything better,
14145 # like `-m68040'.
14146 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14147 ;;
14148 esac
14149 ;;
14150
14151 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14152 # PIC is the default for these OSes.
14153 ;;
14154 mingw* | cygwin* | os2* | pw32* | cegcc*)
14155 # This hack is so that the source file can tell whether it is being
14156 # built for inclusion in a dll (and should export symbols for example).
14157 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14158 # (--disable-auto-import) libraries
14159 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14160 ;;
14161 darwin* | rhapsody*)
14162 # PIC is the default on this platform
14163 # Common symbols not allowed in MH_DYLIB files
14164 lt_prog_compiler_pic_CXX='-fno-common'
14165 ;;
14166 *djgpp*)
14167 # DJGPP does not support shared libraries at all
14168 lt_prog_compiler_pic_CXX=
14169 ;;
14170 haiku*)
14171 # PIC is the default for Haiku.
14172 # The "-static" flag exists, but is broken.
14173 lt_prog_compiler_static_CXX=
14174 ;;
14175 interix[3-9]*)
14176 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14177 # Instead, we relocate shared libraries at runtime.
14178 ;;
14179 sysv4*MP*)
14180 if test -d /usr/nec; then
14181 lt_prog_compiler_pic_CXX=-Kconform_pic
14182 fi
14183 ;;
14184 hpux*)
14185 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14186 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14187 # sets the default TLS model and affects inlining.
14188 case $host_cpu in
14189 hppa*64*)
14190 ;;
14191 *)
14192 lt_prog_compiler_pic_CXX='-fPIC'
14193 ;;
14194 esac
14195 ;;
14196 *qnx* | *nto*)
14197 # QNX uses GNU C++, but need to define -shared option too, otherwise
14198 # it will coredump.
14199 lt_prog_compiler_pic_CXX='-fPIC -shared'
14200 ;;
14201 *)
14202 lt_prog_compiler_pic_CXX='-fPIC'
14203 ;;
14204 esac
14205 else
14206 case $host_os in
14207 aix[4-9]*)
14208 # All AIX code is PIC.
14209 if test "$host_cpu" = ia64; then
14210 # AIX 5 now supports IA64 processor
14211 lt_prog_compiler_static_CXX='-Bstatic'
14212 else
14213 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14214 fi
14215 ;;
14216 chorus*)
14217 case $cc_basename in
14218 cxch68*)
14219 # Green Hills C++ Compiler
14220 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14221 ;;
14222 esac
14223 ;;
14224 mingw* | cygwin* | os2* | pw32* | cegcc*)
14225 # This hack is so that the source file can tell whether it is being
14226 # built for inclusion in a dll (and should export symbols for example).
14227 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14228 ;;
14229 dgux*)
14230 case $cc_basename in
14231 ec++*)
14232 lt_prog_compiler_pic_CXX='-KPIC'
14233 ;;
14234 ghcx*)
14235 # Green Hills C++ Compiler
14236 lt_prog_compiler_pic_CXX='-pic'
14237 ;;
14238 *)
14239 ;;
14240 esac
14241 ;;
14242 freebsd* | dragonfly*)
14243 # FreeBSD uses GNU C++
14244 ;;
14245 hpux9* | hpux10* | hpux11*)
14246 case $cc_basename in
14247 CC*)
14248 lt_prog_compiler_wl_CXX='-Wl,'
14249 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14250 if test "$host_cpu" != ia64; then
14251 lt_prog_compiler_pic_CXX='+Z'
14252 fi
14253 ;;
14254 aCC*)
14255 lt_prog_compiler_wl_CXX='-Wl,'
14256 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14257 case $host_cpu in
14258 hppa*64*|ia64*)
14259 # +Z the default
14260 ;;
14261 *)
14262 lt_prog_compiler_pic_CXX='+Z'
14263 ;;
14264 esac
14265 ;;
14266 *)
14267 ;;
14268 esac
14269 ;;
14270 interix*)
14271 # This is c89, which is MS Visual C++ (no shared libs)
14272 # Anyone wants to do a port?
14273 ;;
14274 irix5* | irix6* | nonstopux*)
14275 case $cc_basename in
14276 CC*)
14277 lt_prog_compiler_wl_CXX='-Wl,'
14278 lt_prog_compiler_static_CXX='-non_shared'
14279 # CC pic flag -KPIC is the default.
14280 ;;
14281 *)
14282 ;;
14283 esac
14284 ;;
14285 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14286 case $cc_basename in
14287 KCC*)
14288 # KAI C++ Compiler
14289 lt_prog_compiler_wl_CXX='--backend -Wl,'
14290 lt_prog_compiler_pic_CXX='-fPIC'
14291 ;;
14292 ecpc* )
14293 # old Intel C++ for x86_64 which still supported -KPIC.
14294 lt_prog_compiler_wl_CXX='-Wl,'
14295 lt_prog_compiler_pic_CXX='-KPIC'
14296 lt_prog_compiler_static_CXX='-static'
14297 ;;
14298 icpc* )
14299 # Intel C++, used to be incompatible with GCC.
14300 # ICC 10 doesn't accept -KPIC any more.
14301 lt_prog_compiler_wl_CXX='-Wl,'
14302 lt_prog_compiler_pic_CXX='-fPIC'
14303 lt_prog_compiler_static_CXX='-static'
14304 ;;
14305 pgCC* | pgcpp*)
14306 # Portland Group C++ compiler
14307 lt_prog_compiler_wl_CXX='-Wl,'
14308 lt_prog_compiler_pic_CXX='-fpic'
14309 lt_prog_compiler_static_CXX='-Bstatic'
14310 ;;
14311 cxx*)
14312 # Compaq C++
14313 # Make sure the PIC flag is empty. It appears that all Alpha
14314 # Linux and Compaq Tru64 Unix objects are PIC.
14315 lt_prog_compiler_pic_CXX=
14316 lt_prog_compiler_static_CXX='-non_shared'
14317 ;;
14318 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14319 # IBM XL 8.0, 9.0 on PPC and BlueGene
14320 lt_prog_compiler_wl_CXX='-Wl,'
14321 lt_prog_compiler_pic_CXX='-qpic'
14322 lt_prog_compiler_static_CXX='-qstaticlink'
14323 ;;
14324 *)
14325 case `$CC -V 2>&1 | sed 5q` in
14326 *Sun\ C*)
14327 # Sun C++ 5.9
14328 lt_prog_compiler_pic_CXX='-KPIC'
14329 lt_prog_compiler_static_CXX='-Bstatic'
14330 lt_prog_compiler_wl_CXX='-Qoption ld '
14331 ;;
14332 esac
14333 ;;
14334 esac
14335 ;;
14336 lynxos*)
14337 ;;
14338 m88k*)
14339 ;;
14340 mvs*)
14341 case $cc_basename in
14342 cxx*)
14343 lt_prog_compiler_pic_CXX='-W c,exportall'
14344 ;;
14345 *)
14346 ;;
14347 esac
14348 ;;
14349 netbsd*)
14350 ;;
14351 *qnx* | *nto*)
14352 # QNX uses GNU C++, but need to define -shared option too, otherwise
14353 # it will coredump.
14354 lt_prog_compiler_pic_CXX='-fPIC -shared'
14355 ;;
14356 osf3* | osf4* | osf5*)
14357 case $cc_basename in
14358 KCC*)
14359 lt_prog_compiler_wl_CXX='--backend -Wl,'
14360 ;;
14361 RCC*)
14362 # Rational C++ 2.4.1
14363 lt_prog_compiler_pic_CXX='-pic'
14364 ;;
14365 cxx*)
14366 # Digital/Compaq C++
14367 lt_prog_compiler_wl_CXX='-Wl,'
14368 # Make sure the PIC flag is empty. It appears that all Alpha
14369 # Linux and Compaq Tru64 Unix objects are PIC.
14370 lt_prog_compiler_pic_CXX=
14371 lt_prog_compiler_static_CXX='-non_shared'
14372 ;;
14373 *)
14374 ;;
14375 esac
14376 ;;
14377 psos*)
14378 ;;
14379 solaris*)
14380 case $cc_basename in
14381 CC* | sunCC*)
14382 # Sun C++ 4.2, 5.x and Centerline C++
14383 lt_prog_compiler_pic_CXX='-KPIC'
14384 lt_prog_compiler_static_CXX='-Bstatic'
14385 lt_prog_compiler_wl_CXX='-Qoption ld '
14386 ;;
14387 gcx*)
14388 # Green Hills C++ Compiler
14389 lt_prog_compiler_pic_CXX='-PIC'
14390 ;;
14391 *)
14392 ;;
14393 esac
14394 ;;
14395 sunos4*)
14396 case $cc_basename in
14397 CC*)
14398 # Sun C++ 4.x
14399 lt_prog_compiler_pic_CXX='-pic'
14400 lt_prog_compiler_static_CXX='-Bstatic'
14401 ;;
14402 lcc*)
14403 # Lucid
14404 lt_prog_compiler_pic_CXX='-pic'
14405 ;;
14406 *)
14407 ;;
14408 esac
14409 ;;
14410 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14411 case $cc_basename in
14412 CC*)
14413 lt_prog_compiler_wl_CXX='-Wl,'
14414 lt_prog_compiler_pic_CXX='-KPIC'
14415 lt_prog_compiler_static_CXX='-Bstatic'
14416 ;;
14417 esac
14418 ;;
14419 tandem*)
14420 case $cc_basename in
14421 NCC*)
14422 # NonStop-UX NCC 3.20
14423 lt_prog_compiler_pic_CXX='-KPIC'
14424 ;;
14425 *)
14426 ;;
14427 esac
14428 ;;
14429 vxworks*)
14430 ;;
14431 *)
14432 lt_prog_compiler_can_build_shared_CXX=no
14433 ;;
14434 esac
14435 fi
14436
14437case $host_os in
14438 # For platforms which do not support PIC, -DPIC is meaningless:
14439 *djgpp*)
14440 lt_prog_compiler_pic_CXX=
14441 ;;
14442 *)
14443 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
14444 ;;
14445esac
14446
14447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14448$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14449if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14450 $as_echo_n "(cached) " >&6
14451else
14452 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14453fi
14454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14455$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14456lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14457
14458#
14459# Check to make sure the PIC flag actually works.
14460#
14461if test -n "$lt_prog_compiler_pic_CXX"; then
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14463$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14464if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14465 $as_echo_n "(cached) " >&6
14466else
14467 lt_cv_prog_compiler_pic_works_CXX=no
14468 ac_outfile=conftest.$ac_objext
14469 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14470 lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
14471 # Insert the option either (1) after the last *FLAGS variable, or
14472 # (2) before a word containing "conftest.", or (3) at the end.
14473 # Note that $ac_compile itself does not contain backslashes and begins
14474 # with a dollar sign (not a hyphen), so the echo should work correctly.
14475 # The option is referenced via a variable to avoid confusing sed.
14476 lt_compile=`echo "$ac_compile" | $SED \
14477 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14478 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14479 -e 's:$: $lt_compiler_flag:'`
14480 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14481 (eval "$lt_compile" 2>conftest.err)
14482 ac_status=$?
14483 cat conftest.err >&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14485 if (exit $ac_status) && test -s "$ac_outfile"; then
14486 # The compiler can only warn and ignore the option if not recognized
14487 # So say no if there are warnings other than the usual output.
14488 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14489 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14490 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14491 lt_cv_prog_compiler_pic_works_CXX=yes
14492 fi
14493 fi
14494 $RM conftest*
14495
14496fi
14497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14498$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14499
14500if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14501 case $lt_prog_compiler_pic_CXX in
14502 "" | " "*) ;;
14503 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14504 esac
14505else
14506 lt_prog_compiler_pic_CXX=
14507 lt_prog_compiler_can_build_shared_CXX=no
14508fi
14509
14510fi
14511
14512
14513
14514
14515
14516#
14517# Check to make sure the static flag actually works.
14518#
14519wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14521$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14522if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14523 $as_echo_n "(cached) " >&6
14524else
14525 lt_cv_prog_compiler_static_works_CXX=no
14526 save_LDFLAGS="$LDFLAGS"
14527 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14528 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14529 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14530 # The linker can only warn and ignore the option if not recognized
14531 # So say no if there are warnings
14532 if test -s conftest.err; then
14533 # Append any errors to the config.log.
14534 cat conftest.err 1>&5
14535 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14536 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14537 if diff conftest.exp conftest.er2 >/dev/null; then
14538 lt_cv_prog_compiler_static_works_CXX=yes
14539 fi
14540 else
14541 lt_cv_prog_compiler_static_works_CXX=yes
14542 fi
14543 fi
14544 $RM -r conftest*
14545 LDFLAGS="$save_LDFLAGS"
14546
14547fi
14548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14549$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14550
14551if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14552 :
14553else
14554 lt_prog_compiler_static_CXX=
14555fi
14556
14557
14558
14559
14560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14561$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14562if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14563 $as_echo_n "(cached) " >&6
14564else
14565 lt_cv_prog_compiler_c_o_CXX=no
14566 $RM -r conftest 2>/dev/null
14567 mkdir conftest
14568 cd conftest
14569 mkdir out
14570 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14571
14572 lt_compiler_flag="-o out/conftest2.$ac_objext"
14573 # Insert the option either (1) after the last *FLAGS variable, or
14574 # (2) before a word containing "conftest.", or (3) at the end.
14575 # Note that $ac_compile itself does not contain backslashes and begins
14576 # with a dollar sign (not a hyphen), so the echo should work correctly.
14577 lt_compile=`echo "$ac_compile" | $SED \
14578 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14579 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14580 -e 's:$: $lt_compiler_flag:'`
14581 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14582 (eval "$lt_compile" 2>out/conftest.err)
14583 ac_status=$?
14584 cat out/conftest.err >&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14587 then
14588 # The compiler can only warn and ignore the option if not recognized
14589 # So say no if there are warnings
14590 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14591 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14592 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14593 lt_cv_prog_compiler_c_o_CXX=yes
14594 fi
14595 fi
14596 chmod u+w . 2>&5
14597 $RM conftest*
14598 # SGI C++ compiler will create directory out/ii_files/ for
14599 # template instantiation
14600 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14601 $RM out/* && rmdir out
14602 cd ..
14603 $RM -r conftest
14604 $RM conftest*
14605
14606fi
14607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14608$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14609
14610
14611
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14613$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14614if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14615 $as_echo_n "(cached) " >&6
14616else
14617 lt_cv_prog_compiler_c_o_CXX=no
14618 $RM -r conftest 2>/dev/null
14619 mkdir conftest
14620 cd conftest
14621 mkdir out
14622 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14623
14624 lt_compiler_flag="-o out/conftest2.$ac_objext"
14625 # Insert the option either (1) after the last *FLAGS variable, or
14626 # (2) before a word containing "conftest.", or (3) at the end.
14627 # Note that $ac_compile itself does not contain backslashes and begins
14628 # with a dollar sign (not a hyphen), so the echo should work correctly.
14629 lt_compile=`echo "$ac_compile" | $SED \
14630 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14632 -e 's:$: $lt_compiler_flag:'`
14633 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14634 (eval "$lt_compile" 2>out/conftest.err)
14635 ac_status=$?
14636 cat out/conftest.err >&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14639 then
14640 # The compiler can only warn and ignore the option if not recognized
14641 # So say no if there are warnings
14642 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14643 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14644 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14645 lt_cv_prog_compiler_c_o_CXX=yes
14646 fi
14647 fi
14648 chmod u+w . 2>&5
14649 $RM conftest*
14650 # SGI C++ compiler will create directory out/ii_files/ for
14651 # template instantiation
14652 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14653 $RM out/* && rmdir out
14654 cd ..
14655 $RM -r conftest
14656 $RM conftest*
14657
14658fi
14659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14660$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14661
14662
14663
14664
14665hard_links="nottested"
14666if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14667 # do not overwrite the value of need_locks provided by the user
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14669$as_echo_n "checking if we can lock with hard links... " >&6; }
14670 hard_links=yes
14671 $RM conftest*
14672 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14673 touch conftest.a
14674 ln conftest.a conftest.b 2>&5 || hard_links=no
14675 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14677$as_echo "$hard_links" >&6; }
14678 if test "$hard_links" = no; then
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14680$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14681 need_locks=warn
14682 fi
14683else
14684 need_locks=no
14685fi
14686
14687
14688
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14690$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14691
14692 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14693 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14694 case $host_os in
14695 aix[4-9]*)
14696 # If we're using GNU nm, then we don't want the "-C" option.
14697 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14698 # Also, AIX nm treats weak defined symbols like other global defined
14699 # symbols, whereas GNU nm marks them as "W".
14700 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14701 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14702 else
14703 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14704 fi
14705 ;;
14706 pw32*)
14707 export_symbols_cmds_CXX="$ltdll_cmds"
14708 ;;
14709 cygwin* | mingw* | cegcc*)
14710 case $cc_basename in
14711 cl*)
14712 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14713 ;;
14714 *)
14715 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14716 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14717 ;;
14718 esac
14719 ;;
14720 *)
14721 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14722 ;;
14723 esac
14724
14725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14726$as_echo "$ld_shlibs_CXX" >&6; }
14727test "$ld_shlibs_CXX" = no && can_build_shared=no
14728
14729with_gnu_ld_CXX=$with_gnu_ld
14730
14731
14732
14733
14734
14735
14736#
14737# Do we need to explicitly link libc?
14738#
14739case "x$archive_cmds_need_lc_CXX" in
14740x|xyes)
14741 # Assume -lc should be added
14742 archive_cmds_need_lc_CXX=yes
14743
14744 if test "$enable_shared" = yes && test "$GCC" = yes; then
14745 case $archive_cmds_CXX in
14746 *'~'*)
14747 # FIXME: we may have to deal with multi-command sequences.
14748 ;;
14749 '$CC '*)
14750 # Test whether the compiler implicitly links with -lc since on some
14751 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14752 # to ld, don't add -lc before -lgcc.
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14754$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14755if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14756 $as_echo_n "(cached) " >&6
14757else
14758 $RM conftest*
14759 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14760
14761 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14762 (eval $ac_compile) 2>&5
14763 ac_status=$?
14764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14765 test $ac_status = 0; } 2>conftest.err; then
14766 soname=conftest
14767 lib=conftest
14768 libobjs=conftest.$ac_objext
14769 deplibs=
14770 wl=$lt_prog_compiler_wl_CXX
14771 pic_flag=$lt_prog_compiler_pic_CXX
14772 compiler_flags=-v
14773 linker_flags=-v
14774 verstring=
14775 output_objdir=.
14776 libname=conftest
14777 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14778 allow_undefined_flag_CXX=
14779 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14780 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14781 ac_status=$?
14782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14783 test $ac_status = 0; }
14784 then
14785 lt_cv_archive_cmds_need_lc_CXX=no
14786 else
14787 lt_cv_archive_cmds_need_lc_CXX=yes
14788 fi
14789 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14790 else
14791 cat conftest.err 1>&5
14792 fi
14793 $RM conftest*
14794
14795fi
14796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14797$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14798 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14799 ;;
14800 esac
14801 fi
14802 ;;
14803esac
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14867$as_echo_n "checking dynamic linker characteristics... " >&6; }
14868
14869library_names_spec=
14870libname_spec='lib$name'
14871soname_spec=
14872shrext_cmds=".so"
14873postinstall_cmds=
14874postuninstall_cmds=
14875finish_cmds=
14876finish_eval=
14877shlibpath_var=
14878shlibpath_overrides_runpath=unknown
14879version_type=none
14880dynamic_linker="$host_os ld.so"
14881sys_lib_dlsearch_path_spec="/lib /usr/lib"
14882need_lib_prefix=unknown
14883hardcode_into_libs=no
14884
14885# when you set need_version to no, make sure it does not cause -set_version
14886# flags to be left without arguments
14887need_version=unknown
14888
14889case $host_os in
14890aix3*)
14891 version_type=linux # correct to gnu/linux during the next big refactor
14892 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14893 shlibpath_var=LIBPATH
14894
14895 # AIX 3 has no versioning support, so we append a major version to the name.
14896 soname_spec='${libname}${release}${shared_ext}$major'
14897 ;;
14898
14899aix[4-9]*)
14900 version_type=linux # correct to gnu/linux during the next big refactor
14901 need_lib_prefix=no
14902 need_version=no
14903 hardcode_into_libs=yes
14904 if test "$host_cpu" = ia64; then
14905 # AIX 5 supports IA64
14906 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14907 shlibpath_var=LD_LIBRARY_PATH
14908 else
14909 # With GCC up to 2.95.x, collect2 would create an import file
14910 # for dependence libraries. The import file would start with
14911 # the line `#! .'. This would cause the generated library to
14912 # depend on `.', always an invalid library. This was fixed in
14913 # development snapshots of GCC prior to 3.0.
14914 case $host_os in
14915 aix4 | aix4.[01] | aix4.[01].*)
14916 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14917 echo ' yes '
14918 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14919 :
14920 else
14921 can_build_shared=no
14922 fi
14923 ;;
14924 esac
14925 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14926 # soname into executable. Probably we can add versioning support to
14927 # collect2, so additional links can be useful in future.
14928 if test "$aix_use_runtimelinking" = yes; then
14929 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14930 # instead of lib<name>.a to let people know that these are not
14931 # typical AIX shared libraries.
14932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14933 else
14934 # We preserve .a as extension for shared libraries through AIX4.2
14935 # and later when we are not doing run time linking.
14936 library_names_spec='${libname}${release}.a $libname.a'
14937 soname_spec='${libname}${release}${shared_ext}$major'
14938 fi
14939 shlibpath_var=LIBPATH
14940 fi
14941 ;;
14942
14943amigaos*)
14944 case $host_cpu in
14945 powerpc)
14946 # Since July 2007 AmigaOS4 officially supports .so libraries.
14947 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14949 ;;
14950 m68k)
14951 library_names_spec='$libname.ixlibrary $libname.a'
14952 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14953 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14954 ;;
14955 esac
14956 ;;
14957
14958beos*)
14959 library_names_spec='${libname}${shared_ext}'
14960 dynamic_linker="$host_os ld.so"
14961 shlibpath_var=LIBRARY_PATH
14962 ;;
14963
14964bsdi[45]*)
14965 version_type=linux # correct to gnu/linux during the next big refactor
14966 need_version=no
14967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14968 soname_spec='${libname}${release}${shared_ext}$major'
14969 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14970 shlibpath_var=LD_LIBRARY_PATH
14971 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14972 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14973 # the default ld.so.conf also contains /usr/contrib/lib and
14974 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14975 # libtool to hard-code these into programs
14976 ;;
14977
14978cygwin* | mingw* | pw32* | cegcc*)
14979 version_type=windows
14980 shrext_cmds=".dll"
14981 need_version=no
14982 need_lib_prefix=no
14983
14984 case $GCC,$cc_basename in
14985 yes,*)
14986 # gcc
14987 library_names_spec='$libname.dll.a'
14988 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14989 postinstall_cmds='base_file=`basename \${file}`~
14990 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14991 dldir=$destdir/`dirname \$dlpath`~
14992 test -d \$dldir || mkdir -p \$dldir~
14993 $install_prog $dir/$dlname \$dldir/$dlname~
14994 chmod a+x \$dldir/$dlname~
14995 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14996 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14997 fi'
14998 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14999 dlpath=$dir/\$dldll~
15000 $RM \$dlpath'
15001 shlibpath_overrides_runpath=yes
15002
15003 case $host_os in
15004 cygwin*)
15005 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15006 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15007
15008 ;;
15009 mingw* | cegcc*)
15010 # MinGW DLLs use traditional 'lib' prefix
15011 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15012 ;;
15013 pw32*)
15014 # pw32 DLLs use 'pw' prefix rather than 'lib'
15015 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15016 ;;
15017 esac
15018 dynamic_linker='Win32 ld.exe'
15019 ;;
15020
15021 *,cl*)
15022 # Native MSVC
15023 libname_spec='$name'
15024 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15025 library_names_spec='${libname}.dll.lib'
15026
15027 case $build_os in
15028 mingw*)
15029 sys_lib_search_path_spec=
15030 lt_save_ifs=$IFS
15031 IFS=';'
15032 for lt_path in $LIB
15033 do
15034 IFS=$lt_save_ifs
15035 # Let DOS variable expansion print the short 8.3 style file name.
15036 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15037 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15038 done
15039 IFS=$lt_save_ifs
15040 # Convert to MSYS style.
15041 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15042 ;;
15043 cygwin*)
15044 # Convert to unix form, then to dos form, then back to unix form
15045 # but this time dos style (no spaces!) so that the unix form looks
15046 # like /cygdrive/c/PROGRA~1:/cygdr...
15047 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15048 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15049 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15050 ;;
15051 *)
15052 sys_lib_search_path_spec="$LIB"
15053 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15054 # It is most probably a Windows format PATH.
15055 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15056 else
15057 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15058 fi
15059 # FIXME: find the short name or the path components, as spaces are
15060 # common. (e.g. "Program Files" -> "PROGRA~1")
15061 ;;
15062 esac
15063
15064 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15065 postinstall_cmds='base_file=`basename \${file}`~
15066 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15067 dldir=$destdir/`dirname \$dlpath`~
15068 test -d \$dldir || mkdir -p \$dldir~
15069 $install_prog $dir/$dlname \$dldir/$dlname'
15070 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15071 dlpath=$dir/\$dldll~
15072 $RM \$dlpath'
15073 shlibpath_overrides_runpath=yes
15074 dynamic_linker='Win32 link.exe'
15075 ;;
15076
15077 *)
15078 # Assume MSVC wrapper
15079 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15080 dynamic_linker='Win32 ld.exe'
15081 ;;
15082 esac
15083 # FIXME: first we should search . and the directory the executable is in
15084 shlibpath_var=PATH
15085 ;;
15086
15087darwin* | rhapsody*)
15088 dynamic_linker="$host_os dyld"
15089 version_type=darwin
15090 need_lib_prefix=no
15091 need_version=no
15092 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15093 soname_spec='${libname}${release}${major}$shared_ext'
15094 shlibpath_overrides_runpath=yes
15095 shlibpath_var=DYLD_LIBRARY_PATH
15096 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15097
15098 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15099 ;;
15100
15101dgux*)
15102 version_type=linux # correct to gnu/linux during the next big refactor
15103 need_lib_prefix=no
15104 need_version=no
15105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15106 soname_spec='${libname}${release}${shared_ext}$major'
15107 shlibpath_var=LD_LIBRARY_PATH
15108 ;;
15109
15110freebsd* | dragonfly*)
15111 # DragonFly does not have aout. When/if they implement a new
15112 # versioning mechanism, adjust this.
15113 if test -x /usr/bin/objformat; then
15114 objformat=`/usr/bin/objformat`
15115 else
15116 case $host_os in
15117 freebsd[23].*) objformat=aout ;;
15118 *) objformat=elf ;;
15119 esac
15120 fi
15121 version_type=freebsd-$objformat
15122 case $version_type in
15123 freebsd-elf*)
15124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15125 need_version=no
15126 need_lib_prefix=no
15127 ;;
15128 freebsd-*)
15129 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15130 need_version=yes
15131 ;;
15132 esac
15133 shlibpath_var=LD_LIBRARY_PATH
15134 case $host_os in
15135 freebsd2.*)
15136 shlibpath_overrides_runpath=yes
15137 ;;
15138 freebsd3.[01]* | freebsdelf3.[01]*)
15139 shlibpath_overrides_runpath=yes
15140 hardcode_into_libs=yes
15141 ;;
15142 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15143 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15144 shlibpath_overrides_runpath=no
15145 hardcode_into_libs=yes
15146 ;;
15147 *) # from 4.6 on, and DragonFly
15148 shlibpath_overrides_runpath=yes
15149 hardcode_into_libs=yes
15150 ;;
15151 esac
15152 ;;
15153
15154gnu*)
15155 version_type=linux # correct to gnu/linux during the next big refactor
15156 need_lib_prefix=no
15157 need_version=no
15158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15159 soname_spec='${libname}${release}${shared_ext}$major'
15160 shlibpath_var=LD_LIBRARY_PATH
15161 shlibpath_overrides_runpath=no
15162 hardcode_into_libs=yes
15163 ;;
15164
15165haiku*)
15166 version_type=linux # correct to gnu/linux during the next big refactor
15167 need_lib_prefix=no
15168 need_version=no
15169 dynamic_linker="$host_os runtime_loader"
15170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15171 soname_spec='${libname}${release}${shared_ext}$major'
15172 shlibpath_var=LIBRARY_PATH
15173 shlibpath_overrides_runpath=yes
15174 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15175 hardcode_into_libs=yes
15176 ;;
15177
15178hpux9* | hpux10* | hpux11*)
15179 # Give a soname corresponding to the major version so that dld.sl refuses to
15180 # link against other versions.
15181 version_type=sunos
15182 need_lib_prefix=no
15183 need_version=no
15184 case $host_cpu in
15185 ia64*)
15186 shrext_cmds='.so'
15187 hardcode_into_libs=yes
15188 dynamic_linker="$host_os dld.so"
15189 shlibpath_var=LD_LIBRARY_PATH
15190 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15192 soname_spec='${libname}${release}${shared_ext}$major'
15193 if test "X$HPUX_IA64_MODE" = X32; then
15194 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15195 else
15196 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15197 fi
15198 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15199 ;;
15200 hppa*64*)
15201 shrext_cmds='.sl'
15202 hardcode_into_libs=yes
15203 dynamic_linker="$host_os dld.sl"
15204 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15205 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15207 soname_spec='${libname}${release}${shared_ext}$major'
15208 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15209 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15210 ;;
15211 *)
15212 shrext_cmds='.sl'
15213 dynamic_linker="$host_os dld.sl"
15214 shlibpath_var=SHLIB_PATH
15215 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15217 soname_spec='${libname}${release}${shared_ext}$major'
15218 ;;
15219 esac
15220 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15221 postinstall_cmds='chmod 555 $lib'
15222 # or fails outright, so override atomically:
15223 install_override_mode=555
15224 ;;
15225
15226interix[3-9]*)
15227 version_type=linux # correct to gnu/linux during the next big refactor
15228 need_lib_prefix=no
15229 need_version=no
15230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15231 soname_spec='${libname}${release}${shared_ext}$major'
15232 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15233 shlibpath_var=LD_LIBRARY_PATH
15234 shlibpath_overrides_runpath=no
15235 hardcode_into_libs=yes
15236 ;;
15237
15238irix5* | irix6* | nonstopux*)
15239 case $host_os in
15240 nonstopux*) version_type=nonstopux ;;
15241 *)
15242 if test "$lt_cv_prog_gnu_ld" = yes; then
15243 version_type=linux # correct to gnu/linux during the next big refactor
15244 else
15245 version_type=irix
15246 fi ;;
15247 esac
15248 need_lib_prefix=no
15249 need_version=no
15250 soname_spec='${libname}${release}${shared_ext}$major'
15251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15252 case $host_os in
15253 irix5* | nonstopux*)
15254 libsuff= shlibsuff=
15255 ;;
15256 *)
15257 case $LD in # libtool.m4 will add one of these switches to LD
15258 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15259 libsuff= shlibsuff= libmagic=32-bit;;
15260 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15261 libsuff=32 shlibsuff=N32 libmagic=N32;;
15262 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15263 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15264 *) libsuff= shlibsuff= libmagic=never-match;;
15265 esac
15266 ;;
15267 esac
15268 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15269 shlibpath_overrides_runpath=no
15270 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15271 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15272 hardcode_into_libs=yes
15273 ;;
15274
15275# No shared lib support for Linux oldld, aout, or coff.
15276linux*oldld* | linux*aout* | linux*coff*)
15277 dynamic_linker=no
15278 ;;
15279
15280# This must be glibc/ELF.
15281linux* | k*bsd*-gnu | kopensolaris*-gnu)
15282 version_type=linux # correct to gnu/linux during the next big refactor
15283 need_lib_prefix=no
15284 need_version=no
15285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15286 soname_spec='${libname}${release}${shared_ext}$major'
15287 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15288 shlibpath_var=LD_LIBRARY_PATH
15289 shlibpath_overrides_runpath=no
15290
15291 # Some binutils ld are patched to set DT_RUNPATH
15292 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15293 $as_echo_n "(cached) " >&6
15294else
15295 lt_cv_shlibpath_overrides_runpath=no
15296 save_LDFLAGS=$LDFLAGS
15297 save_libdir=$libdir
15298 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15299 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15301/* end confdefs.h. */
15302
15303int
15304main ()
15305{
15306
15307 ;
15308 return 0;
15309}
15310_ACEOF
15311if ac_fn_cxx_try_link "$LINENO"; then :
15312 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15313 lt_cv_shlibpath_overrides_runpath=yes
15314fi
15315fi
15316rm -f core conftest.err conftest.$ac_objext \
15317 conftest$ac_exeext conftest.$ac_ext
15318 LDFLAGS=$save_LDFLAGS
15319 libdir=$save_libdir
15320
15321fi
15322
15323 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15324
15325 # This implies no fast_install, which is unacceptable.
15326 # Some rework will be needed to allow for fast_install
15327 # before this can be enabled.
15328 hardcode_into_libs=yes
15329
15330 # Add ABI-specific directories to the system library path.
15331 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15332
15333 # Append ld.so.conf contents to the search path
15334 if test -f /etc/ld.so.conf; then
15335 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' ' '`
15336 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15337
15338 fi
15339
15340 # We used to test for /lib/ld.so.1 and disable shared libraries on
15341 # powerpc, because MkLinux only supported shared libraries with the
15342 # GNU dynamic linker. Since this was broken with cross compilers,
15343 # most powerpc-linux boxes support dynamic linking these days and
15344 # people can always --disable-shared, the test was removed, and we
15345 # assume the GNU/Linux dynamic linker is in use.
15346 dynamic_linker='GNU/Linux ld.so'
15347 ;;
15348
15349netbsd*)
15350 version_type=sunos
15351 need_lib_prefix=no
15352 need_version=no
15353 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15356 dynamic_linker='NetBSD (a.out) ld.so'
15357 else
15358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15359 soname_spec='${libname}${release}${shared_ext}$major'
15360 dynamic_linker='NetBSD ld.elf_so'
15361 fi
15362 shlibpath_var=LD_LIBRARY_PATH
15363 shlibpath_overrides_runpath=yes
15364 hardcode_into_libs=yes
15365 ;;
15366
15367newsos6)
15368 version_type=linux # correct to gnu/linux during the next big refactor
15369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15370 shlibpath_var=LD_LIBRARY_PATH
15371 shlibpath_overrides_runpath=yes
15372 ;;
15373
15374*nto* | *qnx*)
15375 version_type=qnx
15376 need_lib_prefix=no
15377 need_version=no
15378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15379 soname_spec='${libname}${release}${shared_ext}$major'
15380 shlibpath_var=LD_LIBRARY_PATH
15381 shlibpath_overrides_runpath=no
15382 hardcode_into_libs=yes
15383 dynamic_linker='ldqnx.so'
15384 ;;
15385
15386openbsd*)
15387 version_type=sunos
15388 sys_lib_dlsearch_path_spec="/usr/lib"
15389 need_lib_prefix=no
15390 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15391 case $host_os in
15392 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15393 *) need_version=no ;;
15394 esac
15395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15396 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15397 shlibpath_var=LD_LIBRARY_PATH
15398 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15399 case $host_os in
15400 openbsd2.[89] | openbsd2.[89].*)
15401 shlibpath_overrides_runpath=no
15402 ;;
15403 *)
15404 shlibpath_overrides_runpath=yes
15405 ;;
15406 esac
15407 else
15408 shlibpath_overrides_runpath=yes
15409 fi
15410 ;;
15411
15412os2*)
15413 libname_spec='$name'
15414 shrext_cmds=".dll"
15415 need_lib_prefix=no
15416 library_names_spec='$libname${shared_ext} $libname.a'
15417 dynamic_linker='OS/2 ld.exe'
15418 shlibpath_var=LIBPATH
15419 ;;
15420
15421osf3* | osf4* | osf5*)
15422 version_type=osf
15423 need_lib_prefix=no
15424 need_version=no
15425 soname_spec='${libname}${release}${shared_ext}$major'
15426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15427 shlibpath_var=LD_LIBRARY_PATH
15428 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15429 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15430 ;;
15431
15432rdos*)
15433 dynamic_linker=no
15434 ;;
15435
15436solaris*)
15437 version_type=linux # correct to gnu/linux during the next big refactor
15438 need_lib_prefix=no
15439 need_version=no
15440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15441 soname_spec='${libname}${release}${shared_ext}$major'
15442 shlibpath_var=LD_LIBRARY_PATH
15443 shlibpath_overrides_runpath=yes
15444 hardcode_into_libs=yes
15445 # ldd complains unless libraries are executable
15446 postinstall_cmds='chmod +x $lib'
15447 ;;
15448
15449sunos4*)
15450 version_type=sunos
15451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15452 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15453 shlibpath_var=LD_LIBRARY_PATH
15454 shlibpath_overrides_runpath=yes
15455 if test "$with_gnu_ld" = yes; then
15456 need_lib_prefix=no
15457 fi
15458 need_version=yes
15459 ;;
15460
15461sysv4 | sysv4.3*)
15462 version_type=linux # correct to gnu/linux during the next big refactor
15463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15464 soname_spec='${libname}${release}${shared_ext}$major'
15465 shlibpath_var=LD_LIBRARY_PATH
15466 case $host_vendor in
15467 sni)
15468 shlibpath_overrides_runpath=no
15469 need_lib_prefix=no
15470 runpath_var=LD_RUN_PATH
15471 ;;
15472 siemens)
15473 need_lib_prefix=no
15474 ;;
15475 motorola)
15476 need_lib_prefix=no
15477 need_version=no
15478 shlibpath_overrides_runpath=no
15479 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15480 ;;
15481 esac
15482 ;;
15483
15484sysv4*MP*)
15485 if test -d /usr/nec ;then
15486 version_type=linux # correct to gnu/linux during the next big refactor
15487 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15488 soname_spec='$libname${shared_ext}.$major'
15489 shlibpath_var=LD_LIBRARY_PATH
15490 fi
15491 ;;
15492
15493sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15494 version_type=freebsd-elf
15495 need_lib_prefix=no
15496 need_version=no
15497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15498 soname_spec='${libname}${release}${shared_ext}$major'
15499 shlibpath_var=LD_LIBRARY_PATH
15500 shlibpath_overrides_runpath=yes
15501 hardcode_into_libs=yes
15502 if test "$with_gnu_ld" = yes; then
15503 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15504 else
15505 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15506 case $host_os in
15507 sco3.2v5*)
15508 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15509 ;;
15510 esac
15511 fi
15512 sys_lib_dlsearch_path_spec='/usr/lib'
15513 ;;
15514
15515tpf*)
15516 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15517 version_type=linux # correct to gnu/linux during the next big refactor
15518 need_lib_prefix=no
15519 need_version=no
15520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15521 shlibpath_var=LD_LIBRARY_PATH
15522 shlibpath_overrides_runpath=no
15523 hardcode_into_libs=yes
15524 ;;
15525
15526uts4*)
15527 version_type=linux # correct to gnu/linux during the next big refactor
15528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15529 soname_spec='${libname}${release}${shared_ext}$major'
15530 shlibpath_var=LD_LIBRARY_PATH
15531 ;;
15532
15533*)
15534 dynamic_linker=no
15535 ;;
15536esac
15537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15538$as_echo "$dynamic_linker" >&6; }
15539test "$dynamic_linker" = no && can_build_shared=no
15540
15541variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15542if test "$GCC" = yes; then
15543 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15544fi
15545
15546if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15547 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15548fi
15549if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15550 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15551fi
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15591$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15592hardcode_action_CXX=
15593if test -n "$hardcode_libdir_flag_spec_CXX" ||
15594 test -n "$runpath_var_CXX" ||
15595 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15596
15597 # We can hardcode non-existent directories.
15598 if test "$hardcode_direct_CXX" != no &&
15599 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15600 # have to relink, otherwise we might link with an installed library
15601 # when we should be linking with a yet-to-be-installed one
15602 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15603 test "$hardcode_minus_L_CXX" != no; then
15604 # Linking always hardcodes the temporary library directory.
15605 hardcode_action_CXX=relink
15606 else
15607 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15608 hardcode_action_CXX=immediate
15609 fi
15610else
15611 # We cannot hardcode anything, or else we can only hardcode existing
15612 # directories.
15613 hardcode_action_CXX=unsupported
15614fi
15615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15616$as_echo "$hardcode_action_CXX" >&6; }
15617
15618if test "$hardcode_action_CXX" = relink ||
15619 test "$inherit_rpath_CXX" = yes; then
15620 # Fast installation is not supported
15621 enable_fast_install=no
15622elif test "$shlibpath_overrides_runpath" = yes ||
15623 test "$enable_shared" = no; then
15624 # Fast installation is not necessary
15625 enable_fast_install=needless
15626fi
15627
15628
15629
15630
15631
15632
15633
15634 fi # test -n "$compiler"
15635
15636 CC=$lt_save_CC
15637 CFLAGS=$lt_save_CFLAGS
15638 LDCXX=$LD
15639 LD=$lt_save_LD
15640 GCC=$lt_save_GCC
15641 with_gnu_ld=$lt_save_with_gnu_ld
15642 lt_cv_path_LDCXX=$lt_cv_path_LD
15643 lt_cv_path_LD=$lt_save_path_LD
15644 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15645 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15646fi # test "$_lt_caught_CXX_error" != yes
15647
15648ac_ext=c
15649ac_cpp='$CPP $CPPFLAGS'
15650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15652ac_compiler_gnu=$ac_cv_c_compiler_gnu
15653
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668 ac_config_commands="$ac_config_commands libtool"
15669
15670
15671
15672
15673# Only expand once:
15674
15675
15676am__api_version='1.13'
15677
15678# Find a good install program. We prefer a C program (faster),
15679# so one script is as good as another. But avoid the broken or
15680# incompatible versions:
15681# SysV /etc/install, /usr/sbin/install
15682# SunOS /usr/etc/install
15683# IRIX /sbin/install
15684# AIX /bin/install
15685# AmigaOS /C/install, which installs bootblocks on floppy discs
15686# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
15687# AFS /usr/afsws/bin/install, which mishandles nonexistent args
15688# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
15689# OS/2's system install, which has a completely different semantic
15690# ./install, which can be erroneously created by make from ./install.sh.
15691# Reject install programs that cannot install multiple files.
15692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
15693$as_echo_n "checking for a BSD-compatible install... " >&6; }
15694if test -z "$INSTALL"; then
15695if ${ac_cv_path_install+:} false; then :
15696 $as_echo_n "(cached) " >&6
15697else
15698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15699for as_dir in $PATH
15700do
15701 IFS=$as_save_IFS
15702 test -z "$as_dir" && as_dir=.
15703 # Account for people who put trailing slashes in PATH elements.
15704case $as_dir/ in @%:@((
15705 ./ | .// | /[cC]/* | \
15706 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
15707 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
15708 /usr/ucb/* ) ;;
15709 *)
15710 # OSF1 and SCO ODT 3.0 have their own names for install.
15711 # Don't use installbsd from OSF since it installs stuff as root
15712 # by default.
15713 for ac_prog in ginstall scoinst install; do
15714 for ac_exec_ext in '' $ac_executable_extensions; do
15715 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
15716 if test $ac_prog = install &&
15717 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15718 # AIX install. It has an incompatible calling convention.
15719 :
15720 elif test $ac_prog = install &&
15721 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
15722 # program-specific install script used by HP pwplus--don't use.
15723 :
15724 else
15725 rm -rf conftest.one conftest.two conftest.dir
15726 echo one > conftest.one
15727 echo two > conftest.two
15728 mkdir conftest.dir
15729 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
15730 test -s conftest.one && test -s conftest.two &&
15731 test -s conftest.dir/conftest.one &&
15732 test -s conftest.dir/conftest.two
15733 then
15734 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
15735 break 3
15736 fi
15737 fi
15738 fi
15739 done
15740 done
15741 ;;
15742esac
15743
15744 done
15745IFS=$as_save_IFS
15746
15747rm -rf conftest.one conftest.two conftest.dir
15748
15749fi
15750 if test "${ac_cv_path_install+set}" = set; then
15751 INSTALL=$ac_cv_path_install
15752 else
15753 # As a last resort, use the slow shell script. Don't cache a
15754 # value for INSTALL within a source directory, because that will
15755 # break other packages using the cache if that directory is
15756 # removed, or if the value is a relative name.
15757 INSTALL=$ac_install_sh
15758 fi
15759fi
15760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
15761$as_echo "$INSTALL" >&6; }
15762
15763# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
15764# It thinks the first close brace ends the variable substitution.
15765test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
15766
15767test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
15768
15769test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
15770
15771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
15772$as_echo_n "checking whether build environment is sane... " >&6; }
15773# Reject unsafe characters in $srcdir or the absolute working directory
15774# name. Accept space and tab only in the latter.
15775am_lf='
15776'
15777case `pwd` in
15778 *[\\\"\#\$\&\'\`$am_lf]*)
15779 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
15780esac
15781case $srcdir in
15782 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
15783 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
15784esac
15785
15786# Do 'set' in a subshell so we don't clobber the current shell's
15787# arguments. Must try -L first in case configure is actually a
15788# symlink; some systems play weird games with the mod time of symlinks
15789# (eg FreeBSD returns the mod time of the symlink's containing
15790# directory).
15791if (
15792 am_has_slept=no
15793 for am_try in 1 2; do
15794 echo "timestamp, slept: $am_has_slept" > conftest.file
15795 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
15796 if test "$*" = "X"; then
15797 # -L didn't work.
15798 set X `ls -t "$srcdir/configure" conftest.file`
15799 fi
15800 if test "$*" != "X $srcdir/configure conftest.file" \
15801 && test "$*" != "X conftest.file $srcdir/configure"; then
15802
15803 # If neither matched, then we have a broken ls. This can happen
15804 # if, for instance, CONFIG_SHELL is bash and it inherits a
15805 # broken ls alias from the environment. This has actually
15806 # happened. Such a system could not be considered "sane".
15807 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
15808 alias in your environment" "$LINENO" 5
15809 fi
15810 if test "$2" = conftest.file || test $am_try -eq 2; then
15811 break
15812 fi
15813 # Just in case.
15814 sleep 1
15815 am_has_slept=yes
15816 done
15817 test "$2" = conftest.file
15818 )
15819then
15820 # Ok.
15821 :
15822else
15823 as_fn_error $? "newly created file is older than distributed files!
15824Check your system clock" "$LINENO" 5
15825fi
15826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15827$as_echo "yes" >&6; }
15828# If we didn't sleep, we still need to ensure time stamps of config.status and
15829# generated files are strictly newer.
15830am_sleep_pid=
15831if grep 'slept: no' conftest.file >/dev/null 2>&1; then
15832 ( sleep 1 ) &
15833 am_sleep_pid=$!
15834fi
15835
15836rm -f conftest.file
15837
15838test "$program_prefix" != NONE &&
15839 program_transform_name="s&^&$program_prefix&;$program_transform_name"
15840# Use a double $ so make ignores it.
15841test "$program_suffix" != NONE &&
15842 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
15843# Double any \ or $.
15844# By default was `s,x,x', remove it if useless.
15845ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
15846program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
15847
15848# expand $ac_aux_dir to an absolute path
15849am_aux_dir=`cd $ac_aux_dir && pwd`
15850
15851if test x"${MISSING+set}" != xset; then
15852 case $am_aux_dir in
15853 *\ * | *\ *)
15854 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
15855 *)
15856 MISSING="\${SHELL} $am_aux_dir/missing" ;;
15857 esac
15858fi
15859# Use eval to expand $SHELL
15860if eval "$MISSING --is-lightweight"; then
15861 am_missing_run="$MISSING "
15862else
15863 am_missing_run=
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
15865$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
15866fi
15867
15868if test x"${install_sh}" != xset; then
15869 case $am_aux_dir in
15870 *\ * | *\ *)
15871 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
15872 *)
15873 install_sh="\${SHELL} $am_aux_dir/install-sh"
15874 esac
15875fi
15876
15877# Installed binaries are usually stripped using 'strip' when the user
15878# run "make install-strip". However 'strip' might not be the right
15879# tool to use in cross-compilation environments, therefore Automake
15880# will honor the 'STRIP' environment variable to overrule this program.
15881if test "$cross_compiling" != no; then
15882 if test -n "$ac_tool_prefix"; then
15883 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
15884set dummy ${ac_tool_prefix}strip; ac_word=$2
15885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15886$as_echo_n "checking for $ac_word... " >&6; }
15887if ${ac_cv_prog_STRIP+:} false; then :
15888 $as_echo_n "(cached) " >&6
15889else
15890 if test -n "$STRIP"; then
15891 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
15892else
15893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15894for as_dir in $PATH
15895do
15896 IFS=$as_save_IFS
15897 test -z "$as_dir" && as_dir=.
15898 for ac_exec_ext in '' $ac_executable_extensions; do
15899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15900 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
15901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15902 break 2
15903 fi
15904done
15905 done
15906IFS=$as_save_IFS
15907
15908fi
15909fi
15910STRIP=$ac_cv_prog_STRIP
15911if test -n "$STRIP"; then
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
15913$as_echo "$STRIP" >&6; }
15914else
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15916$as_echo "no" >&6; }
15917fi
15918
15919
15920fi
15921if test -z "$ac_cv_prog_STRIP"; then
15922 ac_ct_STRIP=$STRIP
15923 # Extract the first word of "strip", so it can be a program name with args.
15924set dummy strip; ac_word=$2
15925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15926$as_echo_n "checking for $ac_word... " >&6; }
15927if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
15928 $as_echo_n "(cached) " >&6
15929else
15930 if test -n "$ac_ct_STRIP"; then
15931 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
15932else
15933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15934for as_dir in $PATH
15935do
15936 IFS=$as_save_IFS
15937 test -z "$as_dir" && as_dir=.
15938 for ac_exec_ext in '' $ac_executable_extensions; do
15939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15940 ac_cv_prog_ac_ct_STRIP="strip"
15941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15942 break 2
15943 fi
15944done
15945 done
15946IFS=$as_save_IFS
15947
15948fi
15949fi
15950ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
15951if test -n "$ac_ct_STRIP"; then
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
15953$as_echo "$ac_ct_STRIP" >&6; }
15954else
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15956$as_echo "no" >&6; }
15957fi
15958
15959 if test "x$ac_ct_STRIP" = x; then
15960 STRIP=":"
15961 else
15962 case $cross_compiling:$ac_tool_warned in
15963yes:)
15964{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15965$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15966ac_tool_warned=yes ;;
15967esac
15968 STRIP=$ac_ct_STRIP
15969 fi
15970else
15971 STRIP="$ac_cv_prog_STRIP"
15972fi
15973
15974fi
15975INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
15976
15977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
15978$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
15979if test -z "$MKDIR_P"; then
15980 if ${ac_cv_path_mkdir+:} false; then :
15981 $as_echo_n "(cached) " >&6
15982else
15983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15984for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
15985do
15986 IFS=$as_save_IFS
15987 test -z "$as_dir" && as_dir=.
15988 for ac_prog in mkdir gmkdir; do
15989 for ac_exec_ext in '' $ac_executable_extensions; do
15990 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
15991 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
15992 'mkdir (GNU coreutils) '* | \
15993 'mkdir (coreutils) '* | \
15994 'mkdir (fileutils) '4.1*)
15995 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
15996 break 3;;
15997 esac
15998 done
15999 done
16000 done
16001IFS=$as_save_IFS
16002
16003fi
16004
16005 test -d ./--version && rmdir ./--version
16006 if test "${ac_cv_path_mkdir+set}" = set; then
16007 MKDIR_P="$ac_cv_path_mkdir -p"
16008 else
16009 # As a last resort, use the slow shell script. Don't cache a
16010 # value for MKDIR_P within a source directory, because that will
16011 # break other packages using the cache if that directory is
16012 # removed, or if the value is a relative name.
16013 MKDIR_P="$ac_install_sh -d"
16014 fi
16015fi
16016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
16017$as_echo "$MKDIR_P" >&6; }
16018
16019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16020$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16021set x ${MAKE-make}
16022ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16023if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16024 $as_echo_n "(cached) " >&6
16025else
16026 cat >conftest.make <<\_ACEOF
16027SHELL = /bin/sh
16028all:
16029 @echo '@@@%%%=$(MAKE)=@@@%%%'
16030_ACEOF
16031# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16032case `${MAKE-make} -f conftest.make 2>/dev/null` in
16033 *@@@%%%=?*=@@@%%%*)
16034 eval ac_cv_prog_make_${ac_make}_set=yes;;
16035 *)
16036 eval ac_cv_prog_make_${ac_make}_set=no;;
16037esac
16038rm -f conftest.make
16039fi
16040if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16042$as_echo "yes" >&6; }
16043 SET_MAKE=
16044else
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16046$as_echo "no" >&6; }
16047 SET_MAKE="MAKE=${MAKE-make}"
16048fi
16049
16050rm -rf .tst 2>/dev/null
16051mkdir .tst 2>/dev/null
16052if test -d .tst; then
16053 am__leading_dot=.
16054else
16055 am__leading_dot=_
16056fi
16057rmdir .tst 2>/dev/null
16058
16059DEPDIR="${am__leading_dot}deps"
16060
16061ac_config_commands="$ac_config_commands depfiles"
16062
16063
16064am_make=${MAKE-make}
16065cat > confinc << 'END'
16066am__doit:
16067 @echo this is the am__doit target
16068.PHONY: am__doit
16069END
16070# If we don't find an include directive, just comment out the code.
16071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
16072$as_echo_n "checking for style of include used by $am_make... " >&6; }
16073am__include="#"
16074am__quote=
16075_am_result=none
16076# First try GNU make style include.
16077echo "include confinc" > confmf
16078# Ignore all kinds of additional output from 'make'.
16079case `$am_make -s -f confmf 2> /dev/null` in #(
16080*the\ am__doit\ target*)
16081 am__include=include
16082 am__quote=
16083 _am_result=GNU
16084 ;;
16085esac
16086# Now try BSD make style include.
16087if test "$am__include" = "#"; then
16088 echo '.include "confinc"' > confmf
16089 case `$am_make -s -f confmf 2> /dev/null` in #(
16090 *the\ am__doit\ target*)
16091 am__include=.include
16092 am__quote="\""
16093 _am_result=BSD
16094 ;;
16095 esac
16096fi
16097
16098
16099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
16100$as_echo "$_am_result" >&6; }
16101rm -f confinc confmf
16102
16103@%:@ Check whether --enable-dependency-tracking was given.
16104if test "${enable_dependency_tracking+set}" = set; then :
16105 enableval=$enable_dependency_tracking;
16106fi
16107
16108if test "x$enable_dependency_tracking" != xno; then
16109 am_depcomp="$ac_aux_dir/depcomp"
16110 AMDEPBACKSLASH='\'
16111 am__nodep='_no'
16112fi
16113 if test "x$enable_dependency_tracking" != xno; then
16114 AMDEP_TRUE=
16115 AMDEP_FALSE='#'
16116else
16117 AMDEP_TRUE='#'
16118 AMDEP_FALSE=
16119fi
16120
16121
16122@%:@ Check whether --enable-silent-rules was given.
16123if test "${enable_silent_rules+set}" = set; then :
16124 enableval=$enable_silent_rules;
16125fi
16126
16127case $enable_silent_rules in @%:@ (((
16128 yes) AM_DEFAULT_VERBOSITY=0;;
16129 no) AM_DEFAULT_VERBOSITY=1;;
16130 *) AM_DEFAULT_VERBOSITY=1;;
16131esac
16132am_make=${MAKE-make}
16133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
16134$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
16135if ${am_cv_make_support_nested_variables+:} false; then :
16136 $as_echo_n "(cached) " >&6
16137else
16138 if $as_echo 'TRUE=$(BAR$(V))
16139BAR0=false
16140BAR1=true
16141V=1
16142am__doit:
16143 @$(TRUE)
16144.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
16145 am_cv_make_support_nested_variables=yes
16146else
16147 am_cv_make_support_nested_variables=no
16148fi
16149fi
16150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
16151$as_echo "$am_cv_make_support_nested_variables" >&6; }
16152if test $am_cv_make_support_nested_variables = yes; then
16153 AM_V='$(V)'
16154 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16155else
16156 AM_V=$AM_DEFAULT_VERBOSITY
16157 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16158fi
16159AM_BACKSLASH='\'
16160
16161if test "`cd $srcdir && pwd`" != "`pwd`"; then
16162 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
16163 # is not polluted with repeated "-I."
16164 am__isrc=' -I$(srcdir)'
16165 # test to see if srcdir already configured
16166 if test -f $srcdir/config.status; then
16167 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
16168 fi
16169fi
16170
16171# test whether we have cygpath
16172if test -z "$CYGPATH_W"; then
16173 if (cygpath --version) >/dev/null 2>/dev/null; then
16174 CYGPATH_W='cygpath -w'
16175 else
16176 CYGPATH_W=echo
16177 fi
16178fi
16179
16180
16181# Define the identity of the package.
16182 PACKAGE='ucommon'
16183 VERSION='6.0.7'
16184
16185
16186cat >>confdefs.h <<_ACEOF
16187@%:@define PACKAGE "$PACKAGE"
16188_ACEOF
16189
16190
16191cat >>confdefs.h <<_ACEOF
16192@%:@define VERSION "$VERSION"
16193_ACEOF
16194
16195# Some tools Automake needs.
16196
16197ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
16198
16199
16200AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
16201
16202
16203AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
16204
16205
16206AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
16207
16208
16209MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
16210
16211# For better backward compatibility. To be removed once Automake 1.9.x
16212# dies out for good. For more background, see:
16213# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
16214# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
16215mkdir_p='$(MKDIR_P)'
16216
16217# We need awk for the "check" target. The system "awk" is bad on
16218# some platforms.
16219# Always define AMTAR for backward compatibility. Yes, it's still used
16220# in the wild :-( We should find a proper way to deprecate it ...
16221AMTAR='$${TAR-tar}'
16222
16223
16224# We'll loop over all known methods to create a tar archive until one works.
16225_am_tools='gnutar pax cpio none'
16226
16227am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
16228
16229
16230
16231
16232
16233depcc="$CC" am_compiler_list=
16234
16235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16236$as_echo_n "checking dependency style of $depcc... " >&6; }
16237if ${am_cv_CC_dependencies_compiler_type+:} false; then :
16238 $as_echo_n "(cached) " >&6
16239else
16240 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16241 # We make a subdir and do the tests there. Otherwise we can end up
16242 # making bogus files that we don't know about and never remove. For
16243 # instance it was reported that on HP-UX the gcc test will end up
16244 # making a dummy file named 'D' -- because '-MD' means "put the output
16245 # in D".
16246 rm -rf conftest.dir
16247 mkdir conftest.dir
16248 # Copy depcomp to subdir because otherwise we won't find it if we're
16249 # using a relative directory.
16250 cp "$am_depcomp" conftest.dir
16251 cd conftest.dir
16252 # We will build objects and dependencies in a subdirectory because
16253 # it helps to detect inapplicable dependency modes. For instance
16254 # both Tru64's cc and ICC support -MD to output dependencies as a
16255 # side effect of compilation, but ICC will put the dependencies in
16256 # the current directory while Tru64 will put them in the object
16257 # directory.
16258 mkdir sub
16259
16260 am_cv_CC_dependencies_compiler_type=none
16261 if test "$am_compiler_list" = ""; then
16262 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16263 fi
16264 am__universal=false
16265 case " $depcc " in #(
16266 *\ -arch\ *\ -arch\ *) am__universal=true ;;
16267 esac
16268
16269 for depmode in $am_compiler_list; do
16270 # Setup a source with many dependencies, because some compilers
16271 # like to wrap large dependency lists on column 80 (with \), and
16272 # we should not choose a depcomp mode which is confused by this.
16273 #
16274 # We need to recreate these files for each test, as the compiler may
16275 # overwrite some of them when testing with obscure command lines.
16276 # This happens at least with the AIX C compiler.
16277 : > sub/conftest.c
16278 for i in 1 2 3 4 5 6; do
16279 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16280 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
16281 # Solaris 10 /bin/sh.
16282 echo '/* dummy */' > sub/conftst$i.h
16283 done
16284 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16285
16286 # We check with '-c' and '-o' for the sake of the "dashmstdout"
16287 # mode. It turns out that the SunPro C++ compiler does not properly
16288 # handle '-M -o', and we need to detect this. Also, some Intel
16289 # versions had trouble with output in subdirs.
16290 am__obj=sub/conftest.${OBJEXT-o}
16291 am__minus_obj="-o $am__obj"
16292 case $depmode in
16293 gcc)
16294 # This depmode causes a compiler race in universal mode.
16295 test "$am__universal" = false || continue
16296 ;;
16297 nosideeffect)
16298 # After this tag, mechanisms are not by side-effect, so they'll
16299 # only be used when explicitly requested.
16300 if test "x$enable_dependency_tracking" = xyes; then
16301 continue
16302 else
16303 break
16304 fi
16305 ;;
16306 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
16307 # This compiler won't grok '-c -o', but also, the minuso test has
16308 # not run yet. These depmodes are late enough in the game, and
16309 # so weak that their functioning should not be impacted.
16310 am__obj=conftest.${OBJEXT-o}
16311 am__minus_obj=
16312 ;;
16313 none) break ;;
16314 esac
16315 if depmode=$depmode \
16316 source=sub/conftest.c object=$am__obj \
16317 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16318 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16319 >/dev/null 2>conftest.err &&
16320 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16321 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16322 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16323 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16324 # icc doesn't choke on unknown options, it will just issue warnings
16325 # or remarks (even with -Werror). So we grep stderr for any message
16326 # that says an option was ignored or not supported.
16327 # When given -MP, icc 7.0 and 7.1 complain thusly:
16328 # icc: Command line warning: ignoring option '-M'; no argument required
16329 # The diagnosis changed in icc 8.0:
16330 # icc: Command line remark: option '-MP' not supported
16331 if (grep 'ignoring option' conftest.err ||
16332 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16333 am_cv_CC_dependencies_compiler_type=$depmode
16334 break
16335 fi
16336 fi
16337 done
16338
16339 cd ..
16340 rm -rf conftest.dir
16341else
16342 am_cv_CC_dependencies_compiler_type=none
16343fi
16344
16345fi
16346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
16347$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
16348CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
16349
16350 if
16351 test "x$enable_dependency_tracking" != xno \
16352 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
16353 am__fastdepCC_TRUE=
16354 am__fastdepCC_FALSE='#'
16355else
16356 am__fastdepCC_TRUE='#'
16357 am__fastdepCC_FALSE=
16358fi
16359
16360
16361depcc="$CXX" am_compiler_list=
16362
16363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16364$as_echo_n "checking dependency style of $depcc... " >&6; }
16365if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
16366 $as_echo_n "(cached) " >&6
16367else
16368 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16369 # We make a subdir and do the tests there. Otherwise we can end up
16370 # making bogus files that we don't know about and never remove. For
16371 # instance it was reported that on HP-UX the gcc test will end up
16372 # making a dummy file named 'D' -- because '-MD' means "put the output
16373 # in D".
16374 rm -rf conftest.dir
16375 mkdir conftest.dir
16376 # Copy depcomp to subdir because otherwise we won't find it if we're
16377 # using a relative directory.
16378 cp "$am_depcomp" conftest.dir
16379 cd conftest.dir
16380 # We will build objects and dependencies in a subdirectory because
16381 # it helps to detect inapplicable dependency modes. For instance
16382 # both Tru64's cc and ICC support -MD to output dependencies as a
16383 # side effect of compilation, but ICC will put the dependencies in
16384 # the current directory while Tru64 will put them in the object
16385 # directory.
16386 mkdir sub
16387
16388 am_cv_CXX_dependencies_compiler_type=none
16389 if test "$am_compiler_list" = ""; then
16390 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16391 fi
16392 am__universal=false
16393 case " $depcc " in #(
16394 *\ -arch\ *\ -arch\ *) am__universal=true ;;
16395 esac
16396
16397 for depmode in $am_compiler_list; do
16398 # Setup a source with many dependencies, because some compilers
16399 # like to wrap large dependency lists on column 80 (with \), and
16400 # we should not choose a depcomp mode which is confused by this.
16401 #
16402 # We need to recreate these files for each test, as the compiler may
16403 # overwrite some of them when testing with obscure command lines.
16404 # This happens at least with the AIX C compiler.
16405 : > sub/conftest.c
16406 for i in 1 2 3 4 5 6; do
16407 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16408 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
16409 # Solaris 10 /bin/sh.
16410 echo '/* dummy */' > sub/conftst$i.h
16411 done
16412 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16413
16414 # We check with '-c' and '-o' for the sake of the "dashmstdout"
16415 # mode. It turns out that the SunPro C++ compiler does not properly
16416 # handle '-M -o', and we need to detect this. Also, some Intel
16417 # versions had trouble with output in subdirs.
16418 am__obj=sub/conftest.${OBJEXT-o}
16419 am__minus_obj="-o $am__obj"
16420 case $depmode in
16421 gcc)
16422 # This depmode causes a compiler race in universal mode.
16423 test "$am__universal" = false || continue
16424 ;;
16425 nosideeffect)
16426 # After this tag, mechanisms are not by side-effect, so they'll
16427 # only be used when explicitly requested.
16428 if test "x$enable_dependency_tracking" = xyes; then
16429 continue
16430 else
16431 break
16432 fi
16433 ;;
16434 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
16435 # This compiler won't grok '-c -o', but also, the minuso test has
16436 # not run yet. These depmodes are late enough in the game, and
16437 # so weak that their functioning should not be impacted.
16438 am__obj=conftest.${OBJEXT-o}
16439 am__minus_obj=
16440 ;;
16441 none) break ;;
16442 esac
16443 if depmode=$depmode \
16444 source=sub/conftest.c object=$am__obj \
16445 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16446 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16447 >/dev/null 2>conftest.err &&
16448 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16449 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16450 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16451 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16452 # icc doesn't choke on unknown options, it will just issue warnings
16453 # or remarks (even with -Werror). So we grep stderr for any message
16454 # that says an option was ignored or not supported.
16455 # When given -MP, icc 7.0 and 7.1 complain thusly:
16456 # icc: Command line warning: ignoring option '-M'; no argument required
16457 # The diagnosis changed in icc 8.0:
16458 # icc: Command line remark: option '-MP' not supported
16459 if (grep 'ignoring option' conftest.err ||
16460 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16461 am_cv_CXX_dependencies_compiler_type=$depmode
16462 break
16463 fi
16464 fi
16465 done
16466
16467 cd ..
16468 rm -rf conftest.dir
16469else
16470 am_cv_CXX_dependencies_compiler_type=none
16471fi
16472
16473fi
16474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
16475$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
16476CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
16477
16478 if
16479 test "x$enable_dependency_tracking" != xno \
16480 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
16481 am__fastdepCXX_TRUE=
16482 am__fastdepCXX_FALSE='#'
16483else
16484 am__fastdepCXX_TRUE='#'
16485 am__fastdepCXX_FALSE=
16486fi
16487
16488
16489
16490ac_config_headers="$ac_config_headers ucommon-config.h"
16491
16492
16493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
16494$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
16495if ${ac_cv_c_restrict+:} false; then :
16496 $as_echo_n "(cached) " >&6
16497else
16498 ac_cv_c_restrict=no
16499 # The order here caters to the fact that C++ does not require restrict.
16500 for ac_kw in __restrict __restrict__ _Restrict restrict; do
16501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16502/* end confdefs.h. */
16503typedef int * int_ptr;
16504 int foo (int_ptr $ac_kw ip) {
16505 return ip[0];
16506 }
16507int
16508main ()
16509{
16510int s[1];
16511 int * $ac_kw t = s;
16512 t[0] = 0;
16513 return foo(t)
16514 ;
16515 return 0;
16516}
16517_ACEOF
16518if ac_fn_c_try_compile "$LINENO"; then :
16519 ac_cv_c_restrict=$ac_kw
16520fi
16521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16522 test "$ac_cv_c_restrict" != no && break
16523 done
16524
16525fi
16526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
16527$as_echo "$ac_cv_c_restrict" >&6; }
16528
16529 case $ac_cv_c_restrict in
16530 restrict) ;;
16531 no) $as_echo "@%:@define restrict /**/" >>confdefs.h
16532 ;;
16533 *) cat >>confdefs.h <<_ACEOF
16534@%:@define restrict $ac_cv_c_restrict
16535_ACEOF
16536 ;;
16537 esac
16538
16539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
16540$as_echo_n "checking for working volatile... " >&6; }
16541if ${ac_cv_c_volatile+:} false; then :
16542 $as_echo_n "(cached) " >&6
16543else
16544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16545/* end confdefs.h. */
16546
16547int
16548main ()
16549{
16550
16551volatile int x;
16552int * volatile y = (int *) 0;
16553return !x && !y;
16554 ;
16555 return 0;
16556}
16557_ACEOF
16558if ac_fn_c_try_compile "$LINENO"; then :
16559 ac_cv_c_volatile=yes
16560else
16561 ac_cv_c_volatile=no
16562fi
16563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16564fi
16565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
16566$as_echo "$ac_cv_c_volatile" >&6; }
16567if test $ac_cv_c_volatile = no; then
16568
16569$as_echo "@%:@define volatile /**/" >>confdefs.h
16570
16571fi
16572
16573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16574$as_echo_n "checking for inline... " >&6; }
16575if ${ac_cv_c_inline+:} false; then :
16576 $as_echo_n "(cached) " >&6
16577else
16578 ac_cv_c_inline=no
16579for ac_kw in inline __inline__ __inline; do
16580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16581/* end confdefs.h. */
16582#ifndef __cplusplus
16583typedef int foo_t;
16584static $ac_kw foo_t static_foo () {return 0; }
16585$ac_kw foo_t foo () {return 0; }
16586#endif
16587
16588_ACEOF
16589if ac_fn_c_try_compile "$LINENO"; then :
16590 ac_cv_c_inline=$ac_kw
16591fi
16592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16593 test "$ac_cv_c_inline" != no && break
16594done
16595
16596fi
16597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16598$as_echo "$ac_cv_c_inline" >&6; }
16599
16600case $ac_cv_c_inline in
16601 inline | yes) ;;
16602 *)
16603 case $ac_cv_c_inline in
16604 no) ac_val=;;
16605 *) ac_val=$ac_cv_c_inline;;
16606 esac
16607 cat >>confdefs.h <<_ACEOF
16608#ifndef __cplusplus
16609#define inline $ac_val
16610#endif
16611_ACEOF
16612 ;;
16613esac
16614
16615
16616UCOMMON_VISIBILITY="0"
16617UCOMMON_FLAGS=""
16618UCOMMON_MODEL="CXX"
16619UCOMMON_CLINK=""
16620UCOMMON_LIBC="-lc"
16621UCOMMON_LIBS=""
16622OPENSSL_LINK=""
16623
16624CHECKFLAGS="$CHECKFLAGS"
16625
16626case "$with_crypto" in
16627ssl|openssl)
16628 ssl="openssl"
16629 ;;
16630gnutls|gnu)
16631 ssl="gnutls"
16632 ;;
16633none|nossl)
16634 ssl="nossl"
16635 ;;
16636*)
16637 ssl="detect"
16638 ;;
16639esac
16640
16641have_gettext="no"
16642socket_lib=""
16643posix4_lib=""
16644rt_lib=""
16645
16646test -z "$localedir" && localedir='${datadir}/locale'
16647
16648
16649
16650# for very old gcc and for minix we disable full ucommon build by default
16651# we also disable for mingw32 or when no "shared" library support because
16652# libstdc++ is not dll and really bloats in linkage of plugins. Any case,
16653# you can always override with --enable-stdcpp...
16654
16655if test -z "$enable_stdcpp" ; then
16656 if test "x$GCC" = "xyes" ; then
16657 gccver=`$CC -dumpversion | cut -f1 -d.`
16658 fi
16659 if test -z "$gccver" ; then
16660 gccver="3"
16661 fi
16662 if test "$gccver" -lt "3" ; then
16663 enable_stdcpp="no"
16664 fi
16665 if test "x$enable_shared" = "xno" ; then
16666 enable_stdcpp="no"
16667 fi
16668 case "$target_os" in
16669 *minix*|mingw*)
16670 enable_stdcpp="no"
16671 ;;
16672 esac
16673fi
16674
16675@%:@ Check whether --enable-posix-timers was given.
16676if test "${enable_posix_timers+set}" = set; then :
16677 enableval=$enable_posix_timers;
16678fi
16679
16680
16681if test "x$enable_posix_timers" = "xyes" ; then
16682 UCOMMON_FLAGS="$UCOMMON_FLAGS -DPOSIX_TIMERS"
16683fi
16684
16685@%:@ Check whether --enable-stdcpp was given.
16686if test "${enable_stdcpp+set}" = set; then :
16687 enableval=$enable_stdcpp;
16688fi
16689
16690
16691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking full c++ support and linking model" >&5
16692$as_echo_n "checking full c++ support and linking model... " >&6; }
16693
16694if test "x$enable_stdcpp" = "xno" ; then
16695 UCOMMON_MODEL="CC"
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16697$as_echo "no" >&6; }
16698 COMPAT=""
16699else
16700 COMPAT="commoncpp"
16701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16702$as_echo "yes" >&6; }
16703fi
16704
16705
16706@%:@ Check whether --with-sslstack was given.
16707if test "${with_sslstack+set}" = set; then :
16708 withval=$with_sslstack;
16709 if test x$with_sslstack != x ; then
16710 ssl="${with_sslstack}" ; fi
16711
16712fi
16713
16714
16715
16716@%:@ Check whether --with-libc was given.
16717if test "${with_libc+set}" = set; then :
16718 withval=$with_libc;
16719 if test x$with_libc != x ; then
16720 clib=`echo ${with_libc} | sed s/-l//`
16721 UCOMMON_LIBC=-l${clib} ; fi
16722
16723fi
16724
16725
16726@%:@ Check whether --enable-debug was given.
16727if test "${enable_debug+set}" = set; then :
16728 enableval=$enable_debug;
16729fi
16730
16731if test -z "$enable_debug" ; then
16732 enable_debug="no"
16733elif test $enable_debug = "yes" ; then
16734 CXXFLAGS="${CXXFLAGS} -g -DDEBUG"
16735fi
16736
16737
16738
16739threading="none"
16740clib=`echo ${UCOMMON_LIBC} | sed s/-l//`
16741tlib=""
16742
16743for ac_header in stdint.h poll.h sys/mman.h sys/shm.h sys/poll.h sys/timeb.h endian.h sys/filio.h dirent.h sys/resource.h wchar.h netinet/in.h net/if.h
16744do :
16745 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16746ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16747if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16748 cat >>confdefs.h <<_ACEOF
16749@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16750_ACEOF
16751
16752fi
16753
16754done
16755
16756for ac_header in mach/clock.h mach-o/dyld.h linux/version.h sys/inotify.h sys/event.h syslog.h sys/wait.h termios.h termio.h fcntl.h unistd.h
16757do :
16758 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16759ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16760if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16761 cat >>confdefs.h <<_ACEOF
16762@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16763_ACEOF
16764
16765fi
16766
16767done
16768
16769for ac_header in sys/param.h sys/lockf.h sys/file.h dlfcn.h
16770do :
16771 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16772ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16773if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16774 cat >>confdefs.h <<_ACEOF
16775@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16776_ACEOF
16777
16778fi
16779
16780done
16781
16782
16783ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
16784if test "x$ac_cv_header_regex_h" = xyes; then :
16785
16786
16787$as_echo "@%:@define HAVE_REGEX_H 1" >>confdefs.h
16788
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regfree in -lregex" >&5
16790$as_echo_n "checking for regfree in -lregex... " >&6; }
16791if ${ac_cv_lib_regex_regfree+:} false; then :
16792 $as_echo_n "(cached) " >&6
16793else
16794 ac_check_lib_save_LIBS=$LIBS
16795LIBS="-lregex $LIBS"
16796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16797/* end confdefs.h. */
16798
16799/* Override any GCC internal prototype to avoid an error.
16800 Use char because int might match the return type of a GCC
16801 builtin and then its argument prototype would still apply. */
16802#ifdef __cplusplus
16803extern "C"
16804#endif
16805char regfree ();
16806int
16807main ()
16808{
16809return regfree ();
16810 ;
16811 return 0;
16812}
16813_ACEOF
16814if ac_fn_c_try_link "$LINENO"; then :
16815 ac_cv_lib_regex_regfree=yes
16816else
16817 ac_cv_lib_regex_regfree=no
16818fi
16819rm -f core conftest.err conftest.$ac_objext \
16820 conftest$ac_exeext conftest.$ac_ext
16821LIBS=$ac_check_lib_save_LIBS
16822fi
16823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regfree" >&5
16824$as_echo "$ac_cv_lib_regex_regfree" >&6; }
16825if test "x$ac_cv_lib_regex_regfree" = xyes; then :
16826
16827 UCOMMON_LIBS="$UCOMMON_LIBS -lregex"
16828
16829fi
16830
16831
16832fi
16833
16834
16835
16836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fopen in -lmsvcrt" >&5
16837$as_echo_n "checking for fopen in -lmsvcrt... " >&6; }
16838if ${ac_cv_lib_msvcrt_fopen+:} false; then :
16839 $as_echo_n "(cached) " >&6
16840else
16841 ac_check_lib_save_LIBS=$LIBS
16842LIBS="-lmsvcrt $LIBS"
16843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16844/* end confdefs.h. */
16845
16846/* Override any GCC internal prototype to avoid an error.
16847 Use char because int might match the return type of a GCC
16848 builtin and then its argument prototype would still apply. */
16849#ifdef __cplusplus
16850extern "C"
16851#endif
16852char fopen ();
16853int
16854main ()
16855{
16856return fopen ();
16857 ;
16858 return 0;
16859}
16860_ACEOF
16861if ac_fn_c_try_link "$LINENO"; then :
16862 ac_cv_lib_msvcrt_fopen=yes
16863else
16864 ac_cv_lib_msvcrt_fopen=no
16865fi
16866rm -f core conftest.err conftest.$ac_objext \
16867 conftest$ac_exeext conftest.$ac_ext
16868LIBS=$ac_check_lib_save_LIBS
16869fi
16870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_msvcrt_fopen" >&5
16871$as_echo "$ac_cv_lib_msvcrt_fopen" >&6; }
16872if test "x$ac_cv_lib_msvcrt_fopen" = xyes; then :
16873
16874 threading="msw"
16875 clib="msvcrt"
16876 UCOMMON_VISIBILITY="0"
16877 UCOMMON_LIBS="--enable-stdcall-fixup $UCOMMON_LIBS -lmingwex -lmingw32 -lcrypt32 -ladvapi32 -luser32 -lws2_32 -lwsock32 -lkernel32"
16878 UCOMMON_LIBC="-lmsvcrt -lgcc"
16879 OPENSSL_LINK="-lgdi32"
16880
16881$as_echo "@%:@define HAVE_INET_NTOP 1" >>confdefs.h
16882
16883
16884$as_echo "@%:@define HAVE_GETADDRINFO 1" >>confdefs.h
16885
16886
16887else
16888
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __modsi3 in -lgcc" >&5
16890$as_echo_n "checking for __modsi3 in -lgcc... " >&6; }
16891if ${ac_cv_lib_gcc___modsi3+:} false; then :
16892 $as_echo_n "(cached) " >&6
16893else
16894 ac_check_lib_save_LIBS=$LIBS
16895LIBS="-lgcc $LIBS"
16896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16897/* end confdefs.h. */
16898
16899/* Override any GCC internal prototype to avoid an error.
16900 Use char because int might match the return type of a GCC
16901 builtin and then its argument prototype would still apply. */
16902#ifdef __cplusplus
16903extern "C"
16904#endif
16905char __modsi3 ();
16906int
16907main ()
16908{
16909return __modsi3 ();
16910 ;
16911 return 0;
16912}
16913_ACEOF
16914if ac_fn_c_try_link "$LINENO"; then :
16915 ac_cv_lib_gcc___modsi3=yes
16916else
16917 ac_cv_lib_gcc___modsi3=no
16918fi
16919rm -f core conftest.err conftest.$ac_objext \
16920 conftest$ac_exeext conftest.$ac_ext
16921LIBS=$ac_check_lib_save_LIBS
16922fi
16923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcc___modsi3" >&5
16924$as_echo "$ac_cv_lib_gcc___modsi3" >&6; }
16925if test "x$ac_cv_lib_gcc___modsi3" = xyes; then :
16926
16927 UCOMMON_LIBC="$UCOMMON_LIBC -lgcc"
16928
16929fi
16930
16931 as_ac_Lib=`$as_echo "ac_cv_lib_$clib''_socketpair" | $as_tr_sh`
16932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair in -l$clib" >&5
16933$as_echo_n "checking for socketpair in -l$clib... " >&6; }
16934if eval \${$as_ac_Lib+:} false; then :
16935 $as_echo_n "(cached) " >&6
16936else
16937 ac_check_lib_save_LIBS=$LIBS
16938LIBS="-l$clib $LIBS"
16939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16940/* end confdefs.h. */
16941
16942/* Override any GCC internal prototype to avoid an error.
16943 Use char because int might match the return type of a GCC
16944 builtin and then its argument prototype would still apply. */
16945#ifdef __cplusplus
16946extern "C"
16947#endif
16948char socketpair ();
16949int
16950main ()
16951{
16952return socketpair ();
16953 ;
16954 return 0;
16955}
16956_ACEOF
16957if ac_fn_c_try_link "$LINENO"; then :
16958 eval "$as_ac_Lib=yes"
16959else
16960 eval "$as_ac_Lib=no"
16961fi
16962rm -f core conftest.err conftest.$ac_objext \
16963 conftest$ac_exeext conftest.$ac_ext
16964LIBS=$ac_check_lib_save_LIBS
16965fi
16966eval ac_res=\$$as_ac_Lib
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16968$as_echo "$ac_res" >&6; }
16969if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
16970
16971
16972$as_echo "@%:@define HAVE_SOCKETPAIR 1" >>confdefs.h
16973
16974
16975else
16976
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair in -lsocket" >&5
16978$as_echo_n "checking for socketpair in -lsocket... " >&6; }
16979if ${ac_cv_lib_socket_socketpair+:} false; then :
16980 $as_echo_n "(cached) " >&6
16981else
16982 ac_check_lib_save_LIBS=$LIBS
16983LIBS="-lsocket $LIBS"
16984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16985/* end confdefs.h. */
16986
16987/* Override any GCC internal prototype to avoid an error.
16988 Use char because int might match the return type of a GCC
16989 builtin and then its argument prototype would still apply. */
16990#ifdef __cplusplus
16991extern "C"
16992#endif
16993char socketpair ();
16994int
16995main ()
16996{
16997return socketpair ();
16998 ;
16999 return 0;
17000}
17001_ACEOF
17002if ac_fn_c_try_link "$LINENO"; then :
17003 ac_cv_lib_socket_socketpair=yes
17004else
17005 ac_cv_lib_socket_socketpair=no
17006fi
17007rm -f core conftest.err conftest.$ac_objext \
17008 conftest$ac_exeext conftest.$ac_ext
17009LIBS=$ac_check_lib_save_LIBS
17010fi
17011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socketpair" >&5
17012$as_echo "$ac_cv_lib_socket_socketpair" >&6; }
17013if test "x$ac_cv_lib_socket_socketpair" = xyes; then :
17014
17015$as_echo "@%:@define HAVE_SOCKETPAIR 1" >>confdefs.h
17016
17017fi
17018
17019
17020fi
17021
17022 as_ac_Lib=`$as_echo "ac_cv_lib_$clib''_getaddrinfo" | $as_tr_sh`
17023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -l$clib" >&5
17024$as_echo_n "checking for getaddrinfo in -l$clib... " >&6; }
17025if eval \${$as_ac_Lib+:} false; then :
17026 $as_echo_n "(cached) " >&6
17027else
17028 ac_check_lib_save_LIBS=$LIBS
17029LIBS="-l$clib $LIBS"
17030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17031/* end confdefs.h. */
17032
17033/* Override any GCC internal prototype to avoid an error.
17034 Use char because int might match the return type of a GCC
17035 builtin and then its argument prototype would still apply. */
17036#ifdef __cplusplus
17037extern "C"
17038#endif
17039char getaddrinfo ();
17040int
17041main ()
17042{
17043return getaddrinfo ();
17044 ;
17045 return 0;
17046}
17047_ACEOF
17048if ac_fn_c_try_link "$LINENO"; then :
17049 eval "$as_ac_Lib=yes"
17050else
17051 eval "$as_ac_Lib=no"
17052fi
17053rm -f core conftest.err conftest.$ac_objext \
17054 conftest$ac_exeext conftest.$ac_ext
17055LIBS=$ac_check_lib_save_LIBS
17056fi
17057eval ac_res=\$$as_ac_Lib
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17059$as_echo "$ac_res" >&6; }
17060if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17061
17062
17063$as_echo "@%:@define HAVE_GETADDRINFO 1" >>confdefs.h
17064
17065
17066else
17067
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
17069$as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
17070if ${ac_cv_lib_socket_getaddrinfo+:} false; then :
17071 $as_echo_n "(cached) " >&6
17072else
17073 ac_check_lib_save_LIBS=$LIBS
17074LIBS="-lsocket $LIBS"
17075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17076/* end confdefs.h. */
17077
17078/* Override any GCC internal prototype to avoid an error.
17079 Use char because int might match the return type of a GCC
17080 builtin and then its argument prototype would still apply. */
17081#ifdef __cplusplus
17082extern "C"
17083#endif
17084char getaddrinfo ();
17085int
17086main ()
17087{
17088return getaddrinfo ();
17089 ;
17090 return 0;
17091}
17092_ACEOF
17093if ac_fn_c_try_link "$LINENO"; then :
17094 ac_cv_lib_socket_getaddrinfo=yes
17095else
17096 ac_cv_lib_socket_getaddrinfo=no
17097fi
17098rm -f core conftest.err conftest.$ac_objext \
17099 conftest$ac_exeext conftest.$ac_ext
17100LIBS=$ac_check_lib_save_LIBS
17101fi
17102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
17103$as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
17104if test "x$ac_cv_lib_socket_getaddrinfo" = xyes; then :
17105
17106$as_echo "@%:@define HAVE_GETADDRINFO 1" >>confdefs.h
17107
17108fi
17109
17110
17111fi
17112
17113 as_ac_Lib=`$as_echo "ac_cv_lib_$clib''_gethostbyname2" | $as_tr_sh`
17114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname2 in -l$clib" >&5
17115$as_echo_n "checking for gethostbyname2 in -l$clib... " >&6; }
17116if eval \${$as_ac_Lib+:} false; then :
17117 $as_echo_n "(cached) " >&6
17118else
17119 ac_check_lib_save_LIBS=$LIBS
17120LIBS="-l$clib $LIBS"
17121cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17122/* end confdefs.h. */
17123
17124/* Override any GCC internal prototype to avoid an error.
17125 Use char because int might match the return type of a GCC
17126 builtin and then its argument prototype would still apply. */
17127#ifdef __cplusplus
17128extern "C"
17129#endif
17130char gethostbyname2 ();
17131int
17132main ()
17133{
17134return gethostbyname2 ();
17135 ;
17136 return 0;
17137}
17138_ACEOF
17139if ac_fn_c_try_link "$LINENO"; then :
17140 eval "$as_ac_Lib=yes"
17141else
17142 eval "$as_ac_Lib=no"
17143fi
17144rm -f core conftest.err conftest.$ac_objext \
17145 conftest$ac_exeext conftest.$ac_ext
17146LIBS=$ac_check_lib_save_LIBS
17147fi
17148eval ac_res=\$$as_ac_Lib
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17150$as_echo "$ac_res" >&6; }
17151if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17152
17153
17154$as_echo "@%:@define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
17155
17156
17157else
17158
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname2 in -lsocket" >&5
17160$as_echo_n "checking for gethostbyname2 in -lsocket... " >&6; }
17161if ${ac_cv_lib_socket_gethostbyname2+:} false; then :
17162 $as_echo_n "(cached) " >&6
17163else
17164 ac_check_lib_save_LIBS=$LIBS
17165LIBS="-lsocket $LIBS"
17166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17167/* end confdefs.h. */
17168
17169/* Override any GCC internal prototype to avoid an error.
17170 Use char because int might match the return type of a GCC
17171 builtin and then its argument prototype would still apply. */
17172#ifdef __cplusplus
17173extern "C"
17174#endif
17175char gethostbyname2 ();
17176int
17177main ()
17178{
17179return gethostbyname2 ();
17180 ;
17181 return 0;
17182}
17183_ACEOF
17184if ac_fn_c_try_link "$LINENO"; then :
17185 ac_cv_lib_socket_gethostbyname2=yes
17186else
17187 ac_cv_lib_socket_gethostbyname2=no
17188fi
17189rm -f core conftest.err conftest.$ac_objext \
17190 conftest$ac_exeext conftest.$ac_ext
17191LIBS=$ac_check_lib_save_LIBS
17192fi
17193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname2" >&5
17194$as_echo "$ac_cv_lib_socket_gethostbyname2" >&6; }
17195if test "x$ac_cv_lib_socket_gethostbyname2" = xyes; then :
17196
17197$as_echo "@%:@define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
17198
17199fi
17200
17201
17202fi
17203
17204
17205 as_ac_Lib=`$as_echo "ac_cv_lib_$clib''_inet_ntop" | $as_tr_sh`
17206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop in -l$clib" >&5
17207$as_echo_n "checking for inet_ntop in -l$clib... " >&6; }
17208if eval \${$as_ac_Lib+:} false; then :
17209 $as_echo_n "(cached) " >&6
17210else
17211 ac_check_lib_save_LIBS=$LIBS
17212LIBS="-l$clib $LIBS"
17213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17214/* end confdefs.h. */
17215
17216/* Override any GCC internal prototype to avoid an error.
17217 Use char because int might match the return type of a GCC
17218 builtin and then its argument prototype would still apply. */
17219#ifdef __cplusplus
17220extern "C"
17221#endif
17222char inet_ntop ();
17223int
17224main ()
17225{
17226return inet_ntop ();
17227 ;
17228 return 0;
17229}
17230_ACEOF
17231if ac_fn_c_try_link "$LINENO"; then :
17232 eval "$as_ac_Lib=yes"
17233else
17234 eval "$as_ac_Lib=no"
17235fi
17236rm -f core conftest.err conftest.$ac_objext \
17237 conftest$ac_exeext conftest.$ac_ext
17238LIBS=$ac_check_lib_save_LIBS
17239fi
17240eval ac_res=\$$as_ac_Lib
17241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17242$as_echo "$ac_res" >&6; }
17243if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17244
17245
17246$as_echo "@%:@define HAVE_INET_NTOP 1" >>confdefs.h
17247
17248
17249else
17250
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop in -lsocket" >&5
17252$as_echo_n "checking for inet_ntop in -lsocket... " >&6; }
17253if ${ac_cv_lib_socket_inet_ntop+:} false; then :
17254 $as_echo_n "(cached) " >&6
17255else
17256 ac_check_lib_save_LIBS=$LIBS
17257LIBS="-lsocket $LIBS"
17258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17259/* end confdefs.h. */
17260
17261/* Override any GCC internal prototype to avoid an error.
17262 Use char because int might match the return type of a GCC
17263 builtin and then its argument prototype would still apply. */
17264#ifdef __cplusplus
17265extern "C"
17266#endif
17267char inet_ntop ();
17268int
17269main ()
17270{
17271return inet_ntop ();
17272 ;
17273 return 0;
17274}
17275_ACEOF
17276if ac_fn_c_try_link "$LINENO"; then :
17277 ac_cv_lib_socket_inet_ntop=yes
17278else
17279 ac_cv_lib_socket_inet_ntop=no
17280fi
17281rm -f core conftest.err conftest.$ac_objext \
17282 conftest$ac_exeext conftest.$ac_ext
17283LIBS=$ac_check_lib_save_LIBS
17284fi
17285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_inet_ntop" >&5
17286$as_echo "$ac_cv_lib_socket_inet_ntop" >&6; }
17287if test "x$ac_cv_lib_socket_inet_ntop" = xyes; then :
17288
17289
17290$as_echo "@%:@define HAVE_INET_NTOP 1" >>confdefs.h
17291
17292
17293else
17294
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_ntop in -lnsl" >&5
17296$as_echo_n "checking for inet_ntop in -lnsl... " >&6; }
17297if ${ac_cv_lib_nsl_inet_ntop+:} false; then :
17298 $as_echo_n "(cached) " >&6
17299else
17300 ac_check_lib_save_LIBS=$LIBS
17301LIBS="-lnsl $LIBS"
17302cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17303/* end confdefs.h. */
17304
17305/* Override any GCC internal prototype to avoid an error.
17306 Use char because int might match the return type of a GCC
17307 builtin and then its argument prototype would still apply. */
17308#ifdef __cplusplus
17309extern "C"
17310#endif
17311char inet_ntop ();
17312int
17313main ()
17314{
17315return inet_ntop ();
17316 ;
17317 return 0;
17318}
17319_ACEOF
17320if ac_fn_c_try_link "$LINENO"; then :
17321 ac_cv_lib_nsl_inet_ntop=yes
17322else
17323 ac_cv_lib_nsl_inet_ntop=no
17324fi
17325rm -f core conftest.err conftest.$ac_objext \
17326 conftest$ac_exeext conftest.$ac_ext
17327LIBS=$ac_check_lib_save_LIBS
17328fi
17329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_ntop" >&5
17330$as_echo "$ac_cv_lib_nsl_inet_ntop" >&6; }
17331if test "x$ac_cv_lib_nsl_inet_ntop" = xyes; then :
17332
17333
17334$as_echo "@%:@define HAVE_INET_NTOP 1" >>confdefs.h
17335
17336 socket_lib="$socket_lib -lnsl"
17337
17338fi
17339
17340
17341fi
17342
17343
17344fi
17345
17346
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17348$as_echo_n "checking for socket in -lsocket... " >&6; }
17349if ${ac_cv_lib_socket_socket+:} false; then :
17350 $as_echo_n "(cached) " >&6
17351else
17352 ac_check_lib_save_LIBS=$LIBS
17353LIBS="-lsocket $LIBS"
17354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17355/* end confdefs.h. */
17356
17357/* Override any GCC internal prototype to avoid an error.
17358 Use char because int might match the return type of a GCC
17359 builtin and then its argument prototype would still apply. */
17360#ifdef __cplusplus
17361extern "C"
17362#endif
17363char socket ();
17364int
17365main ()
17366{
17367return socket ();
17368 ;
17369 return 0;
17370}
17371_ACEOF
17372if ac_fn_c_try_link "$LINENO"; then :
17373 ac_cv_lib_socket_socket=yes
17374else
17375 ac_cv_lib_socket_socket=no
17376fi
17377rm -f core conftest.err conftest.$ac_objext \
17378 conftest$ac_exeext conftest.$ac_ext
17379LIBS=$ac_check_lib_save_LIBS
17380fi
17381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
17382$as_echo "$ac_cv_lib_socket_socket" >&6; }
17383if test "x$ac_cv_lib_socket_socket" = xyes; then :
17384
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair in -lsocket" >&5
17386$as_echo_n "checking for socketpair in -lsocket... " >&6; }
17387if ${ac_cv_lib_socket_socketpair+:} false; then :
17388 $as_echo_n "(cached) " >&6
17389else
17390 ac_check_lib_save_LIBS=$LIBS
17391LIBS="-lsocket $LIBS"
17392cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17393/* end confdefs.h. */
17394
17395/* Override any GCC internal prototype to avoid an error.
17396 Use char because int might match the return type of a GCC
17397 builtin and then its argument prototype would still apply. */
17398#ifdef __cplusplus
17399extern "C"
17400#endif
17401char socketpair ();
17402int
17403main ()
17404{
17405return socketpair ();
17406 ;
17407 return 0;
17408}
17409_ACEOF
17410if ac_fn_c_try_link "$LINENO"; then :
17411 ac_cv_lib_socket_socketpair=yes
17412else
17413 ac_cv_lib_socket_socketpair=no
17414fi
17415rm -f core conftest.err conftest.$ac_objext \
17416 conftest$ac_exeext conftest.$ac_ext
17417LIBS=$ac_check_lib_save_LIBS
17418fi
17419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socketpair" >&5
17420$as_echo "$ac_cv_lib_socket_socketpair" >&6; }
17421if test "x$ac_cv_lib_socket_socketpair" = xyes; then :
17422
17423
17424$as_echo "@%:@define HAVE_SOCKETPAIR 1" >>confdefs.h
17425
17426
17427fi
17428
17429 socket_lib="-lsocket"
17430
17431fi
17432
17433
17434fi
17435
17436
17437@%:@ Check whether --enable-socks was given.
17438if test "${enable_socks+set}" = set; then :
17439 enableval=$enable_socks;
17440fi
17441
17442
17443if test "x$enable_socks" = "xyes" ; then
17444 enable_socks="no"
17445 for ac_header in socks.h
17446do :
17447 ac_fn_c_check_header_mongrel "$LINENO" "socks.h" "ac_cv_header_socks_h" "$ac_includes_default"
17448if test "x$ac_cv_header_socks_h" = xyes; then :
17449 cat >>confdefs.h <<_ACEOF
17450@%:@define HAVE_SOCKS_H 1
17451_ACEOF
17452
17453 enable_socks="yes"
17454
17455fi
17456
17457done
17458
17459else
17460 enable_socks="no"
17461fi
17462
17463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socks proxy support" >&5
17464$as_echo_n "checking for socks proxy support... " >&6; }
17465
17466if test "x$enable_socks" = "xyes" ; then
17467 socket_lib="-lsocksd $socket_lib"
17468
17469$as_echo "@%:@define HAVE_SOCKS 1" >>confdefs.h
17470
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17472$as_echo "yes" >&6; }
17473else
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17475$as_echo "no" >&6; }
17476fi
17477
17478as_ac_Lib=`$as_echo "ac_cv_lib_$clib''_lstat" | $as_tr_sh`
17479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for lstat in -l$clib" >&5
17480$as_echo_n "checking for lstat in -l$clib... " >&6; }
17481if eval \${$as_ac_Lib+:} false; then :
17482 $as_echo_n "(cached) " >&6
17483else
17484 ac_check_lib_save_LIBS=$LIBS
17485LIBS="-l$clib $LIBS"
17486cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17487/* end confdefs.h. */
17488
17489/* Override any GCC internal prototype to avoid an error.
17490 Use char because int might match the return type of a GCC
17491 builtin and then its argument prototype would still apply. */
17492#ifdef __cplusplus
17493extern "C"
17494#endif
17495char lstat ();
17496int
17497main ()
17498{
17499return lstat ();
17500 ;
17501 return 0;
17502}
17503_ACEOF
17504if ac_fn_c_try_link "$LINENO"; then :
17505 eval "$as_ac_Lib=yes"
17506else
17507 eval "$as_ac_Lib=no"
17508fi
17509rm -f core conftest.err conftest.$ac_objext \
17510 conftest$ac_exeext conftest.$ac_ext
17511LIBS=$ac_check_lib_save_LIBS
17512fi
17513eval ac_res=\$$as_ac_Lib
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17515$as_echo "$ac_res" >&6; }
17516if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17517
17518
17519$as_echo "@%:@define HAVE_LSTAT 1" >>confdefs.h
17520
17521
17522fi
17523
17524
17525as_ac_Lib=`$as_echo "ac_cv_lib_$clib''_strcoll" | $as_tr_sh`
17526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcoll in -l$clib" >&5
17527$as_echo_n "checking for strcoll in -l$clib... " >&6; }
17528if eval \${$as_ac_Lib+:} false; then :
17529 $as_echo_n "(cached) " >&6
17530else
17531 ac_check_lib_save_LIBS=$LIBS
17532LIBS="-l$clib $LIBS"
17533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17534/* end confdefs.h. */
17535
17536/* Override any GCC internal prototype to avoid an error.
17537 Use char because int might match the return type of a GCC
17538 builtin and then its argument prototype would still apply. */
17539#ifdef __cplusplus
17540extern "C"
17541#endif
17542char strcoll ();
17543int
17544main ()
17545{
17546return strcoll ();
17547 ;
17548 return 0;
17549}
17550_ACEOF
17551if ac_fn_c_try_link "$LINENO"; then :
17552 eval "$as_ac_Lib=yes"
17553else
17554 eval "$as_ac_Lib=no"
17555fi
17556rm -f core conftest.err conftest.$ac_objext \
17557 conftest$ac_exeext conftest.$ac_ext
17558LIBS=$ac_check_lib_save_LIBS
17559fi
17560eval ac_res=\$$as_ac_Lib
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17562$as_echo "$ac_res" >&6; }
17563if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17564
17565
17566$as_echo "@%:@define HAVE_STRCOLL 1" >>confdefs.h
17567
17568
17569fi
17570
17571
17572as_ac_Lib=`$as_echo "ac_cv_lib_$clib''_stricmp" | $as_tr_sh`
17573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stricmp in -l$clib" >&5
17574$as_echo_n "checking for stricmp in -l$clib... " >&6; }
17575if eval \${$as_ac_Lib+:} false; then :
17576 $as_echo_n "(cached) " >&6
17577else
17578 ac_check_lib_save_LIBS=$LIBS
17579LIBS="-l$clib $LIBS"
17580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17581/* end confdefs.h. */
17582
17583/* Override any GCC internal prototype to avoid an error.
17584 Use char because int might match the return type of a GCC
17585 builtin and then its argument prototype would still apply. */
17586#ifdef __cplusplus
17587extern "C"
17588#endif
17589char stricmp ();
17590int
17591main ()
17592{
17593return stricmp ();
17594 ;
17595 return 0;
17596}
17597_ACEOF
17598if ac_fn_c_try_link "$LINENO"; then :
17599 eval "$as_ac_Lib=yes"
17600else
17601 eval "$as_ac_Lib=no"
17602fi
17603rm -f core conftest.err conftest.$ac_objext \
17604 conftest$ac_exeext conftest.$ac_ext
17605LIBS=$ac_check_lib_save_LIBS
17606fi
17607eval ac_res=\$$as_ac_Lib
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17609$as_echo "$ac_res" >&6; }
17610if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17611
17612
17613$as_echo "@%:@define HAVE_STRICMP 1" >>confdefs.h
17614
17615
17616fi
17617
17618
17619as_ac_Lib=`$as_echo "ac_cv_lib_$clib''_stristr" | $as_tr_sh`
17620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stristr in -l$clib" >&5
17621$as_echo_n "checking for stristr in -l$clib... " >&6; }
17622if eval \${$as_ac_Lib+:} false; then :
17623 $as_echo_n "(cached) " >&6
17624else
17625 ac_check_lib_save_LIBS=$LIBS
17626LIBS="-l$clib $LIBS"
17627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17628/* end confdefs.h. */
17629
17630/* Override any GCC internal prototype to avoid an error.
17631 Use char because int might match the return type of a GCC
17632 builtin and then its argument prototype would still apply. */
17633#ifdef __cplusplus
17634extern "C"
17635#endif
17636char stristr ();
17637int
17638main ()
17639{
17640return stristr ();
17641 ;
17642 return 0;
17643}
17644_ACEOF
17645if ac_fn_c_try_link "$LINENO"; then :
17646 eval "$as_ac_Lib=yes"
17647else
17648 eval "$as_ac_Lib=no"
17649fi
17650rm -f core conftest.err conftest.$ac_objext \
17651 conftest$ac_exeext conftest.$ac_ext
17652LIBS=$ac_check_lib_save_LIBS
17653fi
17654eval ac_res=\$$as_ac_Lib
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17656$as_echo "$ac_res" >&6; }
17657if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17658
17659
17660$as_echo "@%:@define HAVE_STRISTR 1" >>confdefs.h
17661
17662
17663fi
17664
17665
17666as_ac_Lib=`$as_echo "ac_cv_lib_$clib''_sysconf" | $as_tr_sh`
17667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysconf in -l$clib" >&5
17668$as_echo_n "checking for sysconf in -l$clib... " >&6; }
17669if eval \${$as_ac_Lib+:} false; then :
17670 $as_echo_n "(cached) " >&6
17671else
17672 ac_check_lib_save_LIBS=$LIBS
17673LIBS="-l$clib $LIBS"
17674cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17675/* end confdefs.h. */
17676
17677/* Override any GCC internal prototype to avoid an error.
17678 Use char because int might match the return type of a GCC
17679 builtin and then its argument prototype would still apply. */
17680#ifdef __cplusplus
17681extern "C"
17682#endif
17683char sysconf ();
17684int
17685main ()
17686{
17687return sysconf ();
17688 ;
17689 return 0;
17690}
17691_ACEOF
17692if ac_fn_c_try_link "$LINENO"; then :
17693 eval "$as_ac_Lib=yes"
17694else
17695 eval "$as_ac_Lib=no"
17696fi
17697rm -f core conftest.err conftest.$ac_objext \
17698 conftest$ac_exeext conftest.$ac_ext
17699LIBS=$ac_check_lib_save_LIBS
17700fi
17701eval ac_res=\$$as_ac_Lib
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17703$as_echo "$ac_res" >&6; }
17704if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17705
17706
17707$as_echo "@%:@define HAVE_SYSCONF 1" >>confdefs.h
17708
17709
17710fi
17711
17712
17713as_ac_Lib=`$as_echo "ac_cv_lib_$clib''_posix_memalign" | $as_tr_sh`
17714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_memalign in -l$clib" >&5
17715$as_echo_n "checking for posix_memalign in -l$clib... " >&6; }
17716if eval \${$as_ac_Lib+:} false; then :
17717 $as_echo_n "(cached) " >&6
17718else
17719 ac_check_lib_save_LIBS=$LIBS
17720LIBS="-l$clib $LIBS"
17721cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17722/* end confdefs.h. */
17723
17724/* Override any GCC internal prototype to avoid an error.
17725 Use char because int might match the return type of a GCC
17726 builtin and then its argument prototype would still apply. */
17727#ifdef __cplusplus
17728extern "C"
17729#endif
17730char posix_memalign ();
17731int
17732main ()
17733{
17734return posix_memalign ();
17735 ;
17736 return 0;
17737}
17738_ACEOF
17739if ac_fn_c_try_link "$LINENO"; then :
17740 eval "$as_ac_Lib=yes"
17741else
17742 eval "$as_ac_Lib=no"
17743fi
17744rm -f core conftest.err conftest.$ac_objext \
17745 conftest$ac_exeext conftest.$ac_ext
17746LIBS=$ac_check_lib_save_LIBS
17747fi
17748eval ac_res=\$$as_ac_Lib
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17750$as_echo "$ac_res" >&6; }
17751if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17752
17753
17754$as_echo "@%:@define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
17755
17756
17757fi
17758
17759
17760as_ac_Lib=`$as_echo "ac_cv_lib_$clib''_dlopen" | $as_tr_sh`
17761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -l$clib" >&5
17762$as_echo_n "checking for dlopen in -l$clib... " >&6; }
17763if eval \${$as_ac_Lib+:} false; then :
17764 $as_echo_n "(cached) " >&6
17765else
17766 ac_check_lib_save_LIBS=$LIBS
17767LIBS="-l$clib $LIBS"
17768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17769/* end confdefs.h. */
17770
17771/* Override any GCC internal prototype to avoid an error.
17772 Use char because int might match the return type of a GCC
17773 builtin and then its argument prototype would still apply. */
17774#ifdef __cplusplus
17775extern "C"
17776#endif
17777char dlopen ();
17778int
17779main ()
17780{
17781return dlopen ();
17782 ;
17783 return 0;
17784}
17785_ACEOF
17786if ac_fn_c_try_link "$LINENO"; then :
17787 eval "$as_ac_Lib=yes"
17788else
17789 eval "$as_ac_Lib=no"
17790fi
17791rm -f core conftest.err conftest.$ac_objext \
17792 conftest$ac_exeext conftest.$ac_ext
17793LIBS=$ac_check_lib_save_LIBS
17794fi
17795eval ac_res=\$$as_ac_Lib
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17797$as_echo "$ac_res" >&6; }
17798if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17799 cat >>confdefs.h <<_ACEOF
17800@%:@define `$as_echo "HAVE_LIB$clib" | $as_tr_cpp` 1
17801_ACEOF
17802
17803 LIBS="-l$clib $LIBS"
17804
17805else
17806
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17808$as_echo_n "checking for dlopen in -ldl... " >&6; }
17809if ${ac_cv_lib_dl_dlopen+:} false; then :
17810 $as_echo_n "(cached) " >&6
17811else
17812 ac_check_lib_save_LIBS=$LIBS
17813LIBS="-ldl $LIBS"
17814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17815/* end confdefs.h. */
17816
17817/* Override any GCC internal prototype to avoid an error.
17818 Use char because int might match the return type of a GCC
17819 builtin and then its argument prototype would still apply. */
17820#ifdef __cplusplus
17821extern "C"
17822#endif
17823char dlopen ();
17824int
17825main ()
17826{
17827return dlopen ();
17828 ;
17829 return 0;
17830}
17831_ACEOF
17832if ac_fn_c_try_link "$LINENO"; then :
17833 ac_cv_lib_dl_dlopen=yes
17834else
17835 ac_cv_lib_dl_dlopen=no
17836fi
17837rm -f core conftest.err conftest.$ac_objext \
17838 conftest$ac_exeext conftest.$ac_ext
17839LIBS=$ac_check_lib_save_LIBS
17840fi
17841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17842$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17843if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17844 UCOMMON_LIBS="$UCOMMON_LIBS -ldl"
17845else
17846
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lcompat" >&5
17848$as_echo_n "checking for dlopen in -lcompat... " >&6; }
17849if ${ac_cv_lib_compat_dlopen+:} false; then :
17850 $as_echo_n "(cached) " >&6
17851else
17852 ac_check_lib_save_LIBS=$LIBS
17853LIBS="-lcompat $LIBS"
17854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17855/* end confdefs.h. */
17856
17857/* Override any GCC internal prototype to avoid an error.
17858 Use char because int might match the return type of a GCC
17859 builtin and then its argument prototype would still apply. */
17860#ifdef __cplusplus
17861extern "C"
17862#endif
17863char dlopen ();
17864int
17865main ()
17866{
17867return dlopen ();
17868 ;
17869 return 0;
17870}
17871_ACEOF
17872if ac_fn_c_try_link "$LINENO"; then :
17873 ac_cv_lib_compat_dlopen=yes
17874else
17875 ac_cv_lib_compat_dlopen=no
17876fi
17877rm -f core conftest.err conftest.$ac_objext \
17878 conftest$ac_exeext conftest.$ac_ext
17879LIBS=$ac_check_lib_save_LIBS
17880fi
17881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_compat_dlopen" >&5
17882$as_echo "$ac_cv_lib_compat_dlopen" >&6; }
17883if test "x$ac_cv_lib_compat_dlopen" = xyes; then :
17884 UCOMMON_LIBS="$UCOMMON_LIBS -lcompat"
17885fi
17886
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17888$as_echo_n "checking for shl_load in -ldld... " >&6; }
17889if ${ac_cv_lib_dld_shl_load+:} false; then :
17890 $as_echo_n "(cached) " >&6
17891else
17892 ac_check_lib_save_LIBS=$LIBS
17893LIBS="-ldld $LIBS"
17894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17895/* end confdefs.h. */
17896
17897/* Override any GCC internal prototype to avoid an error.
17898 Use char because int might match the return type of a GCC
17899 builtin and then its argument prototype would still apply. */
17900#ifdef __cplusplus
17901extern "C"
17902#endif
17903char shl_load ();
17904int
17905main ()
17906{
17907return shl_load ();
17908 ;
17909 return 0;
17910}
17911_ACEOF
17912if ac_fn_c_try_link "$LINENO"; then :
17913 ac_cv_lib_dld_shl_load=yes
17914else
17915 ac_cv_lib_dld_shl_load=no
17916fi
17917rm -f core conftest.err conftest.$ac_objext \
17918 conftest$ac_exeext conftest.$ac_ext
17919LIBS=$ac_check_lib_save_LIBS
17920fi
17921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17922$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17923if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
17924
17925
17926$as_echo "@%:@define HAVE_SHL_LOAD 1" >>confdefs.h
17927
17928 UCOMMON_LIBS="$UCOMMON_LIBS -ldld"
17929
17930fi
17931
17932
17933fi
17934
17935
17936fi
17937
17938
17939PTHREAD_FLAGS=""
17940
17941if test "$enable_shared" = "no" ; then
17942 UCOMMON_FLAGS="$UCOMMON_FLAGS -DUCOMMON_STATIC" ; fi
17943
17944@%:@ Check whether --enable-atomics was given.
17945if test "${enable_atomics+set}" = set; then :
17946 enableval=$enable_atomics;
17947
17948$as_echo "@%:@define HAVE_GCC_ATOMICS 1" >>confdefs.h
17949
17950
17951fi
17952
17953
17954@%:@ Check whether --enable-pth was given.
17955if test "${enable_pth+set}" = set; then :
17956 enableval=$enable_pth;
17957fi
17958
17959
17960if test "$threading" = "none" ; then
17961 if test "$enable_pth" != "yes" ; then
17962 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
17963if test "x$ac_cv_header_pthread_h" = xyes; then :
17964
17965 PTHREAD_FLAGS="-mt -pthread -pthreads"
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
17967$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17968if ${ac_cv_lib_pthread_pthread_create+:} false; then :
17969 $as_echo_n "(cached) " >&6
17970else
17971 ac_check_lib_save_LIBS=$LIBS
17972LIBS="-lpthread $LIBS"
17973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17974/* end confdefs.h. */
17975
17976/* Override any GCC internal prototype to avoid an error.
17977 Use char because int might match the return type of a GCC
17978 builtin and then its argument prototype would still apply. */
17979#ifdef __cplusplus
17980extern "C"
17981#endif
17982char pthread_create ();
17983int
17984main ()
17985{
17986return pthread_create ();
17987 ;
17988 return 0;
17989}
17990_ACEOF
17991if ac_fn_c_try_link "$LINENO"; then :
17992 ac_cv_lib_pthread_pthread_create=yes
17993else
17994 ac_cv_lib_pthread_pthread_create=no
17995fi
17996rm -f core conftest.err conftest.$ac_objext \
17997 conftest$ac_exeext conftest.$ac_ext
17998LIBS=$ac_check_lib_save_LIBS
17999fi
18000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
18001$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
18002if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
18003
18004 tlib="pthread"
18005 UCOMMON_LIBS="$UCOMMON_LIBS -lpthread"
18006
18007fi
18008
18009 if test -z "$tlib" ; then
18010 as_ac_Lib=`$as_echo "ac_cv_lib_$clib''_pthread_create" | $as_tr_sh`
18011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -l$clib" >&5
18012$as_echo_n "checking for pthread_create in -l$clib... " >&6; }
18013if eval \${$as_ac_Lib+:} false; then :
18014 $as_echo_n "(cached) " >&6
18015else
18016 ac_check_lib_save_LIBS=$LIBS
18017LIBS="-l$clib $LIBS"
18018cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18019/* end confdefs.h. */
18020
18021/* Override any GCC internal prototype to avoid an error.
18022 Use char because int might match the return type of a GCC
18023 builtin and then its argument prototype would still apply. */
18024#ifdef __cplusplus
18025extern "C"
18026#endif
18027char pthread_create ();
18028int
18029main ()
18030{
18031return pthread_create ();
18032 ;
18033 return 0;
18034}
18035_ACEOF
18036if ac_fn_c_try_link "$LINENO"; then :
18037 eval "$as_ac_Lib=yes"
18038else
18039 eval "$as_ac_Lib=no"
18040fi
18041rm -f core conftest.err conftest.$ac_objext \
18042 conftest$ac_exeext conftest.$ac_ext
18043LIBS=$ac_check_lib_save_LIBS
18044fi
18045eval ac_res=\$$as_ac_Lib
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18047$as_echo "$ac_res" >&6; }
18048if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18049 tlib="$clib"
18050fi
18051
18052 fi
18053 if test -z "$tlib" ; then
18054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
18055$as_echo_n "checking for pthread_create in -lc_r... " >&6; }
18056if ${ac_cv_lib_c_r_pthread_create+:} false; then :
18057 $as_echo_n "(cached) " >&6
18058else
18059 ac_check_lib_save_LIBS=$LIBS
18060LIBS="-lc_r $LIBS"
18061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18062/* end confdefs.h. */
18063
18064/* Override any GCC internal prototype to avoid an error.
18065 Use char because int might match the return type of a GCC
18066 builtin and then its argument prototype would still apply. */
18067#ifdef __cplusplus
18068extern "C"
18069#endif
18070char pthread_create ();
18071int
18072main ()
18073{
18074return pthread_create ();
18075 ;
18076 return 0;
18077}
18078_ACEOF
18079if ac_fn_c_try_link "$LINENO"; then :
18080 ac_cv_lib_c_r_pthread_create=yes
18081else
18082 ac_cv_lib_c_r_pthread_create=no
18083fi
18084rm -f core conftest.err conftest.$ac_objext \
18085 conftest$ac_exeext conftest.$ac_ext
18086LIBS=$ac_check_lib_save_LIBS
18087fi
18088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
18089$as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
18090if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
18091
18092 tlib="c_r"
18093 if test "$clib" = "c" ; then
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lc_r" >&5
18095$as_echo_n "checking for malloc in -lc_r... " >&6; }
18096if ${ac_cv_lib_c_r_malloc+:} false; then :
18097 $as_echo_n "(cached) " >&6
18098else
18099 ac_check_lib_save_LIBS=$LIBS
18100LIBS="-lc_r $LIBS"
18101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18102/* end confdefs.h. */
18103
18104/* Override any GCC internal prototype to avoid an error.
18105 Use char because int might match the return type of a GCC
18106 builtin and then its argument prototype would still apply. */
18107#ifdef __cplusplus
18108extern "C"
18109#endif
18110char malloc ();
18111int
18112main ()
18113{
18114return malloc ();
18115 ;
18116 return 0;
18117}
18118_ACEOF
18119if ac_fn_c_try_link "$LINENO"; then :
18120 ac_cv_lib_c_r_malloc=yes
18121else
18122 ac_cv_lib_c_r_malloc=no
18123fi
18124rm -f core conftest.err conftest.$ac_objext \
18125 conftest$ac_exeext conftest.$ac_ext
18126LIBS=$ac_check_lib_save_LIBS
18127fi
18128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_malloc" >&5
18129$as_echo "$ac_cv_lib_c_r_malloc" >&6; }
18130if test "x$ac_cv_lib_c_r_malloc" = xyes; then :
18131 clib="c_r"
18132fi
18133
18134 fi
18135
18136fi
18137
18138 fi
18139 if test ! -z "$tlib" ; then
18140 as_ac_Lib=`$as_echo "ac_cv_lib_$tlib''_pthread_condattr_setclock" | $as_tr_sh`
18141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_condattr_setclock in -l$tlib" >&5
18142$as_echo_n "checking for pthread_condattr_setclock in -l$tlib... " >&6; }
18143if eval \${$as_ac_Lib+:} false; then :
18144 $as_echo_n "(cached) " >&6
18145else
18146 ac_check_lib_save_LIBS=$LIBS
18147LIBS="-l$tlib $LIBS"
18148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18149/* end confdefs.h. */
18150
18151/* Override any GCC internal prototype to avoid an error.
18152 Use char because int might match the return type of a GCC
18153 builtin and then its argument prototype would still apply. */
18154#ifdef __cplusplus
18155extern "C"
18156#endif
18157char pthread_condattr_setclock ();
18158int
18159main ()
18160{
18161return pthread_condattr_setclock ();
18162 ;
18163 return 0;
18164}
18165_ACEOF
18166if ac_fn_c_try_link "$LINENO"; then :
18167 eval "$as_ac_Lib=yes"
18168else
18169 eval "$as_ac_Lib=no"
18170fi
18171rm -f core conftest.err conftest.$ac_objext \
18172 conftest$ac_exeext conftest.$ac_ext
18173LIBS=$ac_check_lib_save_LIBS
18174fi
18175eval ac_res=\$$as_ac_Lib
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18177$as_echo "$ac_res" >&6; }
18178if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18179
18180
18181$as_echo "@%:@define HAVE_PTHREAD_CONDATTR_SETCLOCK 1" >>confdefs.h
18182
18183
18184fi
18185
18186 as_ac_Lib=`$as_echo "ac_cv_lib_$tlib''_pthread_setconcurrency" | $as_tr_sh`
18187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setconcurrency in -l$tlib" >&5
18188$as_echo_n "checking for pthread_setconcurrency in -l$tlib... " >&6; }
18189if eval \${$as_ac_Lib+:} false; then :
18190 $as_echo_n "(cached) " >&6
18191else
18192 ac_check_lib_save_LIBS=$LIBS
18193LIBS="-l$tlib $LIBS"
18194cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18195/* end confdefs.h. */
18196
18197/* Override any GCC internal prototype to avoid an error.
18198 Use char because int might match the return type of a GCC
18199 builtin and then its argument prototype would still apply. */
18200#ifdef __cplusplus
18201extern "C"
18202#endif
18203char pthread_setconcurrency ();
18204int
18205main ()
18206{
18207return pthread_setconcurrency ();
18208 ;
18209 return 0;
18210}
18211_ACEOF
18212if ac_fn_c_try_link "$LINENO"; then :
18213 eval "$as_ac_Lib=yes"
18214else
18215 eval "$as_ac_Lib=no"
18216fi
18217rm -f core conftest.err conftest.$ac_objext \
18218 conftest$ac_exeext conftest.$ac_ext
18219LIBS=$ac_check_lib_save_LIBS
18220fi
18221eval ac_res=\$$as_ac_Lib
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18223$as_echo "$ac_res" >&6; }
18224if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18225
18226
18227$as_echo "@%:@define HAVE_PTHREAD_SETCONCURRENCY 1" >>confdefs.h
18228
18229
18230fi
18231
18232
18233 as_ac_Lib=`$as_echo "ac_cv_lib_$tlib''_pthread_yield" | $as_tr_sh`
18234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_yield in -l$tlib" >&5
18235$as_echo_n "checking for pthread_yield in -l$tlib... " >&6; }
18236if eval \${$as_ac_Lib+:} false; then :
18237 $as_echo_n "(cached) " >&6
18238else
18239 ac_check_lib_save_LIBS=$LIBS
18240LIBS="-l$tlib $LIBS"
18241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18242/* end confdefs.h. */
18243
18244/* Override any GCC internal prototype to avoid an error.
18245 Use char because int might match the return type of a GCC
18246 builtin and then its argument prototype would still apply. */
18247#ifdef __cplusplus
18248extern "C"
18249#endif
18250char pthread_yield ();
18251int
18252main ()
18253{
18254return pthread_yield ();
18255 ;
18256 return 0;
18257}
18258_ACEOF
18259if ac_fn_c_try_link "$LINENO"; then :
18260 eval "$as_ac_Lib=yes"
18261else
18262 eval "$as_ac_Lib=no"
18263fi
18264rm -f core conftest.err conftest.$ac_objext \
18265 conftest$ac_exeext conftest.$ac_ext
18266LIBS=$ac_check_lib_save_LIBS
18267fi
18268eval ac_res=\$$as_ac_Lib
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18270$as_echo "$ac_res" >&6; }
18271if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18272
18273
18274$as_echo "@%:@define HAVE_PTHREAD_YIELD 1" >>confdefs.h
18275
18276
18277fi
18278
18279
18280 as_ac_Lib=`$as_echo "ac_cv_lib_$tlib''_pthread_delay" | $as_tr_sh`
18281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_delay in -l$tlib" >&5
18282$as_echo_n "checking for pthread_delay in -l$tlib... " >&6; }
18283if eval \${$as_ac_Lib+:} false; then :
18284 $as_echo_n "(cached) " >&6
18285else
18286 ac_check_lib_save_LIBS=$LIBS
18287LIBS="-l$tlib $LIBS"
18288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18289/* end confdefs.h. */
18290
18291/* Override any GCC internal prototype to avoid an error.
18292 Use char because int might match the return type of a GCC
18293 builtin and then its argument prototype would still apply. */
18294#ifdef __cplusplus
18295extern "C"
18296#endif
18297char pthread_delay ();
18298int
18299main ()
18300{
18301return pthread_delay ();
18302 ;
18303 return 0;
18304}
18305_ACEOF
18306if ac_fn_c_try_link "$LINENO"; then :
18307 eval "$as_ac_Lib=yes"
18308else
18309 eval "$as_ac_Lib=no"
18310fi
18311rm -f core conftest.err conftest.$ac_objext \
18312 conftest$ac_exeext conftest.$ac_ext
18313LIBS=$ac_check_lib_save_LIBS
18314fi
18315eval ac_res=\$$as_ac_Lib
18316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18317$as_echo "$ac_res" >&6; }
18318if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18319
18320
18321$as_echo "@%:@define HAVE_PTHREAD_DELAY 1" >>confdefs.h
18322
18323
18324fi
18325
18326 as_ac_Lib=`$as_echo "ac_cv_lib_$tlib''_pthread_delay_np" | $as_tr_sh`
18327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_delay_np in -l$tlib" >&5
18328$as_echo_n "checking for pthread_delay_np in -l$tlib... " >&6; }
18329if eval \${$as_ac_Lib+:} false; then :
18330 $as_echo_n "(cached) " >&6
18331else
18332 ac_check_lib_save_LIBS=$LIBS
18333LIBS="-l$tlib $LIBS"
18334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18335/* end confdefs.h. */
18336
18337/* Override any GCC internal prototype to avoid an error.
18338 Use char because int might match the return type of a GCC
18339 builtin and then its argument prototype would still apply. */
18340#ifdef __cplusplus
18341extern "C"
18342#endif
18343char pthread_delay_np ();
18344int
18345main ()
18346{
18347return pthread_delay_np ();
18348 ;
18349 return 0;
18350}
18351_ACEOF
18352if ac_fn_c_try_link "$LINENO"; then :
18353 eval "$as_ac_Lib=yes"
18354else
18355 eval "$as_ac_Lib=no"
18356fi
18357rm -f core conftest.err conftest.$ac_objext \
18358 conftest$ac_exeext conftest.$ac_ext
18359LIBS=$ac_check_lib_save_LIBS
18360fi
18361eval ac_res=\$$as_ac_Lib
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18363$as_echo "$ac_res" >&6; }
18364if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18365
18366
18367$as_echo "@%:@define HAVE_PTHREAD_DELAY_NP 1" >>confdefs.h
18368
18369
18370fi
18371
18372 as_ac_Lib=`$as_echo "ac_cv_lib_$tlib''_pthread_setschedprio" | $as_tr_sh`
18373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setschedprio in -l$tlib" >&5
18374$as_echo_n "checking for pthread_setschedprio in -l$tlib... " >&6; }
18375if eval \${$as_ac_Lib+:} false; then :
18376 $as_echo_n "(cached) " >&6
18377else
18378 ac_check_lib_save_LIBS=$LIBS
18379LIBS="-l$tlib $LIBS"
18380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18381/* end confdefs.h. */
18382
18383/* Override any GCC internal prototype to avoid an error.
18384 Use char because int might match the return type of a GCC
18385 builtin and then its argument prototype would still apply. */
18386#ifdef __cplusplus
18387extern "C"
18388#endif
18389char pthread_setschedprio ();
18390int
18391main ()
18392{
18393return pthread_setschedprio ();
18394 ;
18395 return 0;
18396}
18397_ACEOF
18398if ac_fn_c_try_link "$LINENO"; then :
18399 eval "$as_ac_Lib=yes"
18400else
18401 eval "$as_ac_Lib=no"
18402fi
18403rm -f core conftest.err conftest.$ac_objext \
18404 conftest$ac_exeext conftest.$ac_ext
18405LIBS=$ac_check_lib_save_LIBS
18406fi
18407eval ac_res=\$$as_ac_Lib
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18409$as_echo "$ac_res" >&6; }
18410if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18411
18412
18413$as_echo "@%:@define HAVE_PTHREAD_SETSCHEDPRIO 1" >>confdefs.h
18414
18415
18416fi
18417
18418 fi
18419
18420else
18421
18422 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
18423if test "x$ac_cv_header_windows_h" = xyes; then :
18424
18425else
18426
18427 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
18428if test "x$ac_cv_header_pth_h" = xyes; then :
18429
18430 UCOMMON_LIBS="$UCOMMON_LIBS -lpth"
18431 UCOMMON_FLAGS="$UCOMMON_FLAGS -D__PTH__"
18432
18433else
18434
18435 as_fn_error $? "\"pthread or GNU pth support required\"" "$LINENO" 5
18436
18437fi
18438
18439
18440
18441fi
18442
18443
18444
18445fi
18446
18447
18448 else
18449 ac_fn_c_check_header_mongrel "$LINENO" "pth.h" "ac_cv_header_pth_h" "$ac_includes_default"
18450if test "x$ac_cv_header_pth_h" = xyes; then :
18451
18452 UCOMMON_LIBS="$UCOMMON_LIBS -lpth"
18453 UCOMMON_FLAGS="$UCOMMON_FLAGS -D__PTH__"
18454
18455else
18456
18457 as_fn_error $? "\"GNU pth required\"" "$LINENO" 5
18458
18459fi
18460
18461
18462 fi
18463fi
18464
18465for func in ftok shm_open nanosleep clock_nanosleep clock_gettime strerror_r localtime_r gmtime_r posix_fadvise ftruncate pwrite setpgrp setlocale gettext execvp atexit realpath symlink readlink waitpid wait4 ; do
18466 found="no"
18467 as_ac_var=`$as_echo "ac_cv_func_$func" | $as_tr_sh`
18468ac_fn_c_check_func "$LINENO" "$func" "$as_ac_var"
18469if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18470
18471 found=$func
18472
18473else
18474
18475 as_ac_Lib=`$as_echo "ac_cv_lib_posix4_$func" | $as_tr_sh`
18476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $func in -lposix4" >&5
18477$as_echo_n "checking for $func in -lposix4... " >&6; }
18478if eval \${$as_ac_Lib+:} false; then :
18479 $as_echo_n "(cached) " >&6
18480else
18481 ac_check_lib_save_LIBS=$LIBS
18482LIBS="-lposix4 $LIBS"
18483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18484/* end confdefs.h. */
18485
18486/* Override any GCC internal prototype to avoid an error.
18487 Use char because int might match the return type of a GCC
18488 builtin and then its argument prototype would still apply. */
18489#ifdef __cplusplus
18490extern "C"
18491#endif
18492char $func ();
18493int
18494main ()
18495{
18496return $func ();
18497 ;
18498 return 0;
18499}
18500_ACEOF
18501if ac_fn_c_try_link "$LINENO"; then :
18502 eval "$as_ac_Lib=yes"
18503else
18504 eval "$as_ac_Lib=no"
18505fi
18506rm -f core conftest.err conftest.$ac_objext \
18507 conftest$ac_exeext conftest.$ac_ext
18508LIBS=$ac_check_lib_save_LIBS
18509fi
18510eval ac_res=\$$as_ac_Lib
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18512$as_echo "$ac_res" >&6; }
18513if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18514
18515 found=$func
18516 posix4_lib="-lposix4"
18517
18518else
18519
18520 as_ac_Lib=`$as_echo "ac_cv_lib_rt_$func" | $as_tr_sh`
18521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $func in -lrt" >&5
18522$as_echo_n "checking for $func in -lrt... " >&6; }
18523if eval \${$as_ac_Lib+:} false; then :
18524 $as_echo_n "(cached) " >&6
18525else
18526 ac_check_lib_save_LIBS=$LIBS
18527LIBS="-lrt $LIBS"
18528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18529/* end confdefs.h. */
18530
18531/* Override any GCC internal prototype to avoid an error.
18532 Use char because int might match the return type of a GCC
18533 builtin and then its argument prototype would still apply. */
18534#ifdef __cplusplus
18535extern "C"
18536#endif
18537char $func ();
18538int
18539main ()
18540{
18541return $func ();
18542 ;
18543 return 0;
18544}
18545_ACEOF
18546if ac_fn_c_try_link "$LINENO"; then :
18547 eval "$as_ac_Lib=yes"
18548else
18549 eval "$as_ac_Lib=no"
18550fi
18551rm -f core conftest.err conftest.$ac_objext \
18552 conftest$ac_exeext conftest.$ac_ext
18553LIBS=$ac_check_lib_save_LIBS
18554fi
18555eval ac_res=\$$as_ac_Lib
18556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18557$as_echo "$ac_res" >&6; }
18558if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18559
18560 found=$func
18561 rt_lib="-lrt"
18562
18563else
18564
18565 if test ! -z "$tlib" ; then
18566 as_ac_Lib=`$as_echo "ac_cv_lib_$tlib''_$func" | $as_tr_sh`
18567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $func in -l$tlib" >&5
18568$as_echo_n "checking for $func in -l$tlib... " >&6; }
18569if eval \${$as_ac_Lib+:} false; then :
18570 $as_echo_n "(cached) " >&6
18571else
18572 ac_check_lib_save_LIBS=$LIBS
18573LIBS="-l$tlib $LIBS"
18574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18575/* end confdefs.h. */
18576
18577/* Override any GCC internal prototype to avoid an error.
18578 Use char because int might match the return type of a GCC
18579 builtin and then its argument prototype would still apply. */
18580#ifdef __cplusplus
18581extern "C"
18582#endif
18583char $func ();
18584int
18585main ()
18586{
18587return $func ();
18588 ;
18589 return 0;
18590}
18591_ACEOF
18592if ac_fn_c_try_link "$LINENO"; then :
18593 eval "$as_ac_Lib=yes"
18594else
18595 eval "$as_ac_Lib=no"
18596fi
18597rm -f core conftest.err conftest.$ac_objext \
18598 conftest$ac_exeext conftest.$ac_ext
18599LIBS=$ac_check_lib_save_LIBS
18600fi
18601eval ac_res=\$$as_ac_Lib
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18603$as_echo "$ac_res" >&6; }
18604if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18605
18606 found=$func
18607
18608fi
18609
18610 fi
18611
18612fi
18613
18614
18615fi
18616
18617
18618fi
18619
18620 case $found in
18621 shm_open)
18622
18623$as_echo "@%:@define HAVE_SHM_OPEN 1" >>confdefs.h
18624
18625 ;;
18626 setpgrp)
18627
18628$as_echo "@%:@define HAVE_SETPGRP 1" >>confdefs.h
18629
18630 ;;
18631 realpath)
18632
18633$as_echo "@%:@define HAVE_REALPATH 1" >>confdefs.h
18634
18635 ;;
18636 ftok)
18637
18638$as_echo "@%:@define HAVE_FTOK 1" >>confdefs.h
18639
18640 ;;
18641 gmtime_r)
18642
18643$as_echo "@%:@define HAVE_GMTIME_R 1" >>confdefs.h
18644
18645 ;;
18646 localtime_r)
18647
18648$as_echo "@%:@define HAVE_LOCALTIME_R 1" >>confdefs.h
18649
18650 ;;
18651 strerror_r)
18652
18653$as_echo "@%:@define HAVE_STRERROR_R 1" >>confdefs.h
18654
18655 ;;
18656 nanosleep)
18657
18658$as_echo "@%:@define HAVE_NANOSLEEP 1" >>confdefs.h
18659
18660 ;;
18661 clock_nanosleep)
18662
18663$as_echo "@%:@define HAVE_CLOCK_NANOSLEEP 1" >>confdefs.h
18664
18665 ;;
18666 clock_gettime)
18667
18668$as_echo "@%:@define HAVE_CLOCK_GETTIME 1" >>confdefs.h
18669
18670 ;;
18671 posix_fadvise)
18672
18673$as_echo "@%:@define HAVE_POSIX_FADVISE 1" >>confdefs.h
18674
18675 ;;
18676 ftruncate)
18677
18678$as_echo "@%:@define HAVE_FTRUNCATE 1" >>confdefs.h
18679
18680 ;;
18681 pwrite)
18682
18683$as_echo "@%:@define HAVE_PWRITE 1" >>confdefs.h
18684
18685 ;;
18686 setlocale)
18687
18688$as_echo "@%:@define HAVE_SETLOCALE 1" >>confdefs.h
18689
18690 ;;
18691 gettext)
18692
18693$as_echo "@%:@define HAVE_GETTEXT 1" >>confdefs.h
18694
18695 have_gettext="yes"
18696 ;;
18697 execvp)
18698
18699$as_echo "@%:@define HAVE_EXECVP 1" >>confdefs.h
18700
18701 ;;
18702 symlink)
18703
18704$as_echo "@%:@define HAVE_SYMLINK 1" >>confdefs.h
18705
18706 ;;
18707 readlink)
18708
18709$as_echo "@%:@define HAVE_READLINK 1" >>confdefs.h
18710
18711 ;;
18712 waitpid)
18713
18714$as_echo "@%:@define HAVE_WAITPID 1" >>confdefs.h
18715
18716 ;;
18717 wait4)
18718
18719$as_echo "@%:@define HAVE_WAIT4 1" >>confdefs.h
18720
18721 ;;
18722 esac
18723done
18724
18725UCOMMON_LINKED="$socket_lib $posix4_lib $rt_lib $UCOMMON_LIBS"
18726UCOMMON_LIBS="$socket_lib $posix4_lib $rt_lib $UCOMMON_LIBS $UCOMMON_LIBC"
18727
18728if test "$UCOMMON_MODEL" = "CC" ; then
18729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for printf in -lSystemstubs" >&5
18730$as_echo_n "checking for printf in -lSystemstubs... " >&6; }
18731if ${ac_cv_lib_Systemstubs_printf+:} false; then :
18732 $as_echo_n "(cached) " >&6
18733else
18734 ac_check_lib_save_LIBS=$LIBS
18735LIBS="-lSystemstubs $LIBS"
18736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18737/* end confdefs.h. */
18738
18739/* Override any GCC internal prototype to avoid an error.
18740 Use char because int might match the return type of a GCC
18741 builtin and then its argument prototype would still apply. */
18742#ifdef __cplusplus
18743extern "C"
18744#endif
18745char printf ();
18746int
18747main ()
18748{
18749return printf ();
18750 ;
18751 return 0;
18752}
18753_ACEOF
18754if ac_fn_c_try_link "$LINENO"; then :
18755 ac_cv_lib_Systemstubs_printf=yes
18756else
18757 ac_cv_lib_Systemstubs_printf=no
18758fi
18759rm -f core conftest.err conftest.$ac_objext \
18760 conftest$ac_exeext conftest.$ac_ext
18761LIBS=$ac_check_lib_save_LIBS
18762fi
18763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Systemstubs_printf" >&5
18764$as_echo "$ac_cv_lib_Systemstubs_printf" >&6; }
18765if test "x$ac_cv_lib_Systemstubs_printf" = xyes; then :
18766
18767 UCOMMON_CLINK="$UCOMMON_CLINK -lSystemstubs"
18768 UCOMMON_LIBC="$UCOMMON_LIBC -lgcc"
18769
18770fi
18771
18772fi
18773
18774
18775ac_ext=cpp
18776ac_cpp='$CXXCPP $CPPFLAGS'
18777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18780
18781COMPILER_FLAGS=""
18782
18783if test "x$GCC" = "xyes" ; then
18784 UCOMMON_FLAGS="$UCOMMON_FLAGS -Wno-long-long" ; fi
18785
18786for flag in $CXXFLAGS ; do
18787 case "$flag" in
18788 -f*exceptions|-f*rtti|-f*check-new|-f*enforce-eh-specs|-finline|-f*except)
18789 if test "$UCOMMON_MODEL" = "CXX" ; then
18790 UCOMMON_FLAGS="$UCOMMON_FLAGS $flag" ; fi
18791 ;;
18792 -fvisibility=*)
18793 VISIBLE_FLAGS=""
18794 COMPILER_FLAGS="$COMPILER_FLAGS $flag"
18795 ;;
18796 *)
18797 COMPILER_FLAGS="$COMPILER_FLAGS $flag"
18798 ;;
18799 esac
18800done
18801export CXXFLAGS="$COMPILER_FLAGS"
18802
18803if test "$UCOMMON_MODEL" = "CC" ; then
18804 UCOMMON_FLAGS="$UCOMMON_FLAGS"
18805
18806 if test x"$GCC" = "xyes" ; then
18807 ucflags="-fno-exceptions -fno-rtti -fno-enforce-eh-specs"
18808 lcflags="-nodefaultlibs -nostdinc++"
18809 else
18810 ucflags="-library=no%Cstd -features=no%except -features=namespace -features=no%rtti"
18811 lcflags=""
18812 fi
18813
18814 for flag in $ucflags ; do
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports $flag" >&5
18816$as_echo_n "checking whether ${CXX} supports $flag... " >&6; }
18817 echo 'void f(){}' >conftest.cpp
18818 if test -z "`${CXX} $flag -c conftest.cpp 2>&1`"; then
18819 UCOMMON_FLAGS="$UCOMMON_FLAGS $flag"
18820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18821$as_echo "yes" >&6; }
18822 if test "$flag" = "-library=no%Cstd" ; then
18823 UCOMMON_MODEL="CXX" ; fi
18824 else
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18826$as_echo "no" >&6; }
18827 fi
18828 rm -f conftest*
18829 done
18830
18831 for flag in $lcflags ; do
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports $flag" >&5
18833$as_echo_n "checking whether ${CXX} supports $flag... " >&6; }
18834 echo 'void f(){}' >conftest.cpp
18835 if test -z "`${CXX} $flag -c conftest.cpp 2>&1`"; then
18836 UCOMMON_CLINK="$UCOMMON_CLINK $flag"
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18838$as_echo "yes" >&6; }
18839 else
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18841$as_echo "no" >&6; }
18842 fi
18843 rm -f conftest*
18844 done
18845else
18846 ac_save_CXXFLAGS="$CXXFLAGS"
18847 CXXFLAGS=""
18848
18849 ac_ext=cpp
18850ac_cpp='$CXXCPP $CPPFLAGS'
18851ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18852ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18853ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18854
18855
18856for ac_header in stdexcept
18857do :
18858 ac_fn_cxx_check_header_mongrel "$LINENO" "stdexcept" "ac_cv_header_stdexcept" "$ac_includes_default"
18859if test "x$ac_cv_header_stdexcept" = xyes; then :
18860 cat >>confdefs.h <<_ACEOF
18861@%:@define HAVE_STDEXCEPT 1
18862_ACEOF
18863
18864fi
18865
18866done
18867
18868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old style iostream" >&5
18869$as_echo_n "checking for old style iostream... " >&6; }
18870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18871/* end confdefs.h. */
18872
18873 #include <iostream>
18874 using namespace std;
18875
18876 class mystr : public streambuf, public iostream
18877 {
18878 mystr();
18879 };
18880
18881 mystr::mystr() : streambuf(), iostream((streambuf *)this)
18882 {
18883 }
18884
18885int
18886main ()
18887{
18888return 0;
18889 ;
18890 return 0;
18891}
18892_ACEOF
18893if ac_fn_cxx_try_compile "$LINENO"; then :
18894
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18896$as_echo "no" >&6; }
18897 UCOMMON_FLAGS="$UCOMMON_FLAGS -DNEW_STDCPP"
18898
18899else
18900
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18902$as_echo "yes" >&6; }
18903 UCOMMON_FLAGS="$UCOMMON_FLAGS -DOLD_STDCPP"
18904
18905fi
18906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18907 ac_ext=cpp
18908ac_cpp='$CXXCPP $CPPFLAGS'
18909ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18910ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18911ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18912
18913 CXXFLAGS="$ac_save_CXXFLAGS"
18914fi
18915
18916if test ! -z "$PTHREAD_FLAGS" ; then
18917 for flag in $PTHREAD_FLAGS ; do
18918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports $flag" >&5
18919$as_echo_n "checking whether ${CXX} supports $flag... " >&6; }
18920 echo 'void f(){}' >conftest.cpp
18921 if test -z "`${CXX} $flag -c conftest.cpp 2>&1`"; then
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18923$as_echo "yes" >&6; }
18924 UCOMMON_FLAGS="$UCOMMON_FLAGS $flag"
18925 break
18926 else
18927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18928$as_echo "no" >&6; }
18929 fi
18930 done
18931fi
18932
18933export CXXFLAGS
18934
18935# libstdc++ on some targets broken badly if inlines hidden. Might be
18936# deeper issue with ansi c++ library model...
18937flags="-fno-check-new -finline"
18938if test "$UCOMMON_MODEL" = "CC" ; then
18939 if test "$enable_shared" != "no" ; then
18940 flags="$flags -fvisibility-inlines-hidden"
18941 fi
18942fi
18943
18944for flag in $flags ; do
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports $flag" >&5
18946$as_echo_n "checking whether ${CXX} supports $flag... " >&6; }
18947 echo 'void f(){}' >conftest.cpp
18948 if test -z "`${CXX} $flag -c conftest.cpp 2>&1`"; then
18949 UCOMMON_FLAGS="$UCOMMON_FLAGS $flag"
18950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18951$as_echo "yes" >&6; }
18952 else
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18954$as_echo "no" >&6; }
18955 fi
18956 rm -f conftest*
18957done
18958
18959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CXX} supports visibility" >&5
18960$as_echo_n "checking whether ${CXX} supports visibility... " >&6; }
18961echo 'void f(){}' >conftest.cpp
18962if test -z "`${CXX} -fvisibility=hidden -c conftest.cpp 2>&1`"; then
18963 UCOMMON_FLAGS="$UCOMMON_FLAGS -fvisibility=hidden -DUCOMMON_VISIBILITY=1"
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18965$as_echo "yes" >&6; }
18966 UCOMMON_VISIBILITY="1"
18967else
18968 UCOMMON_FLAGS="$UCOMMON_FLAGS -DUCOMMON_VISIBILITY=0"
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18970$as_echo "no" >&6; }
18971fi
18972rm -f conftest*
18973
18974ac_ext=c
18975ac_cpp='$CPP $CPPFLAGS'
18976ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18977ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18978ac_compiler_gnu=$ac_cv_c_compiler_gnu
18979
18980
18981
18982 includes="$includedir"
18983 result="***"
18984 prior="A"
18985 while test "$prior" != "$result" ; do
18986 prior=`(echo "$includes")`
18987 includes=`(
18988 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
18989 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
18990 eval echo \""$includes"\"
18991 )`
18992 result=`(echo "$includes")`
18993 done
18994
18995
18996
18997 libs="$libdir"
18998 result="***"
18999 prior="A"
19000 while test "$prior" != "$result" ; do
19001 prior=`(echo "$libs")`
19002 libs=`(
19003 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19004 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
19005 eval echo \""$libs"\"
19006 )`
19007 result=`(echo "$libs")`
19008 done
19009
19010
19011
19012case "$libs" in
19013/usr/*)
19014 ;;
19015*)
19016 UCOMMON_LINKED="-L$libs $UCOMMON_LINKED"
19017 ;;
19018esac
19019
19020case "$includes" in
19021/usr/*)
19022 ;;
19023*)
19024 UCOMMON_FLAGS="$UCOMMON_FLAGS -I$includes"
19025 ;;
19026esac
19027
19028case "$target_os" in
19029*bsd*)
19030 if test "$UCOMMON_MODEL" = "CC" ; then
19031 if test "$GCC" = "yes" -a "$UCOMMON_LIBC" = "-lc" ; then
19032 UCOMMON_LIBC="-Wl,-lc"
19033 elif test "$GCC" = "yes" -a "$UCOMMON_LIBC" = "-lc_r" ; then
19034 UCOMMON_LIBC="-Wl,-lc_r"
19035 fi
19036 fi
19037 ;;
19038osf*)
19039 UCOMMON_FLAGS="$UCOMMON_FLAGS -D_POSIX_C_SOURCE=1 -D_OSF_SOURCE=1 -D__USE_STD_IOSTREAM"
19040 ;;
19041cygwin*|mingw*)
19042 UCOMMON_LINKED="$UCOMMON_LINKED -no-undefined"
19043 UCOMMON_LIBS="$UCOMMON_LIBS -no-undefined"
19044 ;;
19045esac
19046
19047UCOMMON_CLINK="$UCOMMON_CLINK $UCOMMON_LIBC"
19048
19049if test -z "$UCOMMON_SSLSTACK" ; then
19050 UCOMMON_SSLSTACK="$sslstack" ; fi
19051
19052OPENSSL_LIBS=""
19053GNUTLS_LIBS=""
19054
19055
19056
19057
19058
19059
19060
19061
19062if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19063 if test -n "$ac_tool_prefix"; then
19064 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19065set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19067$as_echo_n "checking for $ac_word... " >&6; }
19068if ${ac_cv_path_PKG_CONFIG+:} false; then :
19069 $as_echo_n "(cached) " >&6
19070else
19071 case $PKG_CONFIG in
19072 [\\/]* | ?:[\\/]*)
19073 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19074 ;;
19075 *)
19076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19077for as_dir in $PATH
19078do
19079 IFS=$as_save_IFS
19080 test -z "$as_dir" && as_dir=.
19081 for ac_exec_ext in '' $ac_executable_extensions; do
19082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19083 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19085 break 2
19086 fi
19087done
19088 done
19089IFS=$as_save_IFS
19090
19091 ;;
19092esac
19093fi
19094PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19095if test -n "$PKG_CONFIG"; then
19096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19097$as_echo "$PKG_CONFIG" >&6; }
19098else
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19100$as_echo "no" >&6; }
19101fi
19102
19103
19104fi
19105if test -z "$ac_cv_path_PKG_CONFIG"; then
19106 ac_pt_PKG_CONFIG=$PKG_CONFIG
19107 # Extract the first word of "pkg-config", so it can be a program name with args.
19108set dummy pkg-config; ac_word=$2
19109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19110$as_echo_n "checking for $ac_word... " >&6; }
19111if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19112 $as_echo_n "(cached) " >&6
19113else
19114 case $ac_pt_PKG_CONFIG in
19115 [\\/]* | ?:[\\/]*)
19116 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19117 ;;
19118 *)
19119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19120for as_dir in $PATH
19121do
19122 IFS=$as_save_IFS
19123 test -z "$as_dir" && as_dir=.
19124 for ac_exec_ext in '' $ac_executable_extensions; do
19125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19126 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19128 break 2
19129 fi
19130done
19131 done
19132IFS=$as_save_IFS
19133
19134 ;;
19135esac
19136fi
19137ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19138if test -n "$ac_pt_PKG_CONFIG"; then
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19140$as_echo "$ac_pt_PKG_CONFIG" >&6; }
19141else
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19143$as_echo "no" >&6; }
19144fi
19145
19146 if test "x$ac_pt_PKG_CONFIG" = x; then
19147 PKG_CONFIG=""
19148 else
19149 case $cross_compiling:$ac_tool_warned in
19150yes:)
19151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19153ac_tool_warned=yes ;;
19154esac
19155 PKG_CONFIG=$ac_pt_PKG_CONFIG
19156 fi
19157else
19158 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19159fi
19160
19161fi
19162if test -n "$PKG_CONFIG"; then
19163 _pkg_min_version=0.9.0
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19165$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19166 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19168$as_echo "yes" >&6; }
19169 else
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19171$as_echo "no" >&6; }
19172 PKG_CONFIG=""
19173 fi
19174fi
19175
19176@%:@ Check whether --with-pkg-config was given.
19177if test "${with_pkg_config+set}" = set; then :
19178 withval=$with_pkg_config;
19179
19180pkg_failed=no
19181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5
19182$as_echo_n "checking for OPENSSL... " >&6; }
19183
19184if test -n "$OPENSSL_CFLAGS"; then
19185 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS"
19186 elif test -n "$PKG_CONFIG"; then
19187 if test -n "$PKG_CONFIG" && \
19188 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= \$OPENSSL_REQUIRES\""; } >&5
19189 ($PKG_CONFIG --exists --print-errors "openssl >= $OPENSSL_REQUIRES") 2>&5
19190 ac_status=$?
19191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19192 test $ac_status = 0; }; then
19193 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl >= $OPENSSL_REQUIRES" 2>/dev/null`
19194 test "x$?" != "x0" && pkg_failed=yes
19195else
19196 pkg_failed=yes
19197fi
19198 else
19199 pkg_failed=untried
19200fi
19201if test -n "$OPENSSL_LIBS"; then
19202 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS"
19203 elif test -n "$PKG_CONFIG"; then
19204 if test -n "$PKG_CONFIG" && \
19205 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl >= \$OPENSSL_REQUIRES\""; } >&5
19206 ($PKG_CONFIG --exists --print-errors "openssl >= $OPENSSL_REQUIRES") 2>&5
19207 ac_status=$?
19208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19209 test $ac_status = 0; }; then
19210 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl >= $OPENSSL_REQUIRES" 2>/dev/null`
19211 test "x$?" != "x0" && pkg_failed=yes
19212else
19213 pkg_failed=yes
19214fi
19215 else
19216 pkg_failed=untried
19217fi
19218
19219
19220
19221if test $pkg_failed = yes; then
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19223$as_echo "no" >&6; }
19224
19225if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19226 _pkg_short_errors_supported=yes
19227else
19228 _pkg_short_errors_supported=no
19229fi
19230 if test $_pkg_short_errors_supported = yes; then
19231 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl >= $OPENSSL_REQUIRES" 2>&1`
19232 else
19233 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl >= $OPENSSL_REQUIRES" 2>&1`
19234 fi
19235 # Put the nasty error message in config.log where it belongs
19236 echo "$OPENSSL_PKG_ERRORS" >&5
19237
19238
19239 OPENSSL_LIBS=""
19240 for ac_header in openssl/ssl.h
19241do :
19242 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
19243if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
19244 cat >>confdefs.h <<_ACEOF
19245@%:@define HAVE_OPENSSL_SSL_H 1
19246_ACEOF
19247
19248 OPENSSL_LIBS="-lssl -lcrypto -lz $OPENSSL_LINK"
19249
19250fi
19251
19252done
19253
19254 for ac_header in openssl/fips.h
19255do :
19256 ac_fn_c_check_header_mongrel "$LINENO" "openssl/fips.h" "ac_cv_header_openssl_fips_h" "$ac_includes_default"
19257if test "x$ac_cv_header_openssl_fips_h" = xyes; then :
19258 cat >>confdefs.h <<_ACEOF
19259@%:@define HAVE_OPENSSL_FIPS_H 1
19260_ACEOF
19261
19262fi
19263
19264done
19265
19266
19267elif test $pkg_failed = untried; then
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19269$as_echo "no" >&6; }
19270
19271 OPENSSL_LIBS=""
19272 for ac_header in openssl/ssl.h
19273do :
19274 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
19275if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
19276 cat >>confdefs.h <<_ACEOF
19277@%:@define HAVE_OPENSSL_SSL_H 1
19278_ACEOF
19279
19280 OPENSSL_LIBS="-lssl -lcrypto -lz $OPENSSL_LINK"
19281
19282fi
19283
19284done
19285
19286 for ac_header in openssl/fips.h
19287do :
19288 ac_fn_c_check_header_mongrel "$LINENO" "openssl/fips.h" "ac_cv_header_openssl_fips_h" "$ac_includes_default"
19289if test "x$ac_cv_header_openssl_fips_h" = xyes; then :
19290 cat >>confdefs.h <<_ACEOF
19291@%:@define HAVE_OPENSSL_FIPS_H 1
19292_ACEOF
19293
19294fi
19295
19296done
19297
19298
19299else
19300 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS
19301 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS
19302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19303$as_echo "yes" >&6; }
19304
19305fi
19306
19307pkg_failed=no
19308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
19309$as_echo_n "checking for GNUTLS... " >&6; }
19310
19311if test -n "$GNUTLS_CFLAGS"; then
19312 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
19313 elif test -n "$PKG_CONFIG"; then
19314 if test -n "$PKG_CONFIG" && \
19315 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 2.8.0\""; } >&5
19316 ($PKG_CONFIG --exists --print-errors "gnutls >= 2.8.0") 2>&5
19317 ac_status=$?
19318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19319 test $ac_status = 0; }; then
19320 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.8.0" 2>/dev/null`
19321 test "x$?" != "x0" && pkg_failed=yes
19322else
19323 pkg_failed=yes
19324fi
19325 else
19326 pkg_failed=untried
19327fi
19328if test -n "$GNUTLS_LIBS"; then
19329 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
19330 elif test -n "$PKG_CONFIG"; then
19331 if test -n "$PKG_CONFIG" && \
19332 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 2.8.0\""; } >&5
19333 ($PKG_CONFIG --exists --print-errors "gnutls >= 2.8.0") 2>&5
19334 ac_status=$?
19335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19336 test $ac_status = 0; }; then
19337 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.8.0" 2>/dev/null`
19338 test "x$?" != "x0" && pkg_failed=yes
19339else
19340 pkg_failed=yes
19341fi
19342 else
19343 pkg_failed=untried
19344fi
19345
19346
19347
19348if test $pkg_failed = yes; then
19349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19350$as_echo "no" >&6; }
19351
19352if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19353 _pkg_short_errors_supported=yes
19354else
19355 _pkg_short_errors_supported=no
19356fi
19357 if test $_pkg_short_errors_supported = yes; then
19358 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= 2.8.0" 2>&1`
19359 else
19360 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= 2.8.0" 2>&1`
19361 fi
19362 # Put the nasty error message in config.log where it belongs
19363 echo "$GNUTLS_PKG_ERRORS" >&5
19364
19365 GNUTLS_LIBS=""
19366elif test $pkg_failed = untried; then
19367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19368$as_echo "no" >&6; }
19369 GNUTLS_LIBS=""
19370else
19371 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
19372 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
19373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19374$as_echo "yes" >&6; }
19375
19376fi
19377
19378else
19379
19380 for ac_header in openssl/ssl.h
19381do :
19382 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
19383if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
19384 cat >>confdefs.h <<_ACEOF
19385@%:@define HAVE_OPENSSL_SSL_H 1
19386_ACEOF
19387
19388 OPENSSL_LIBS="-lssl -lcrypto -lz $OPENSSL_LINK"
19389
19390fi
19391
19392done
19393
19394 for ac_header in openssl/fips.h
19395do :
19396 ac_fn_c_check_header_mongrel "$LINENO" "openssl/fips.h" "ac_cv_header_openssl_fips_h" "$ac_includes_default"
19397if test "x$ac_cv_header_openssl_fips_h" = xyes; then :
19398 cat >>confdefs.h <<_ACEOF
19399@%:@define HAVE_OPENSSL_FIPS_H 1
19400_ACEOF
19401
19402fi
19403
19404done
19405
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_init in -lgnutls" >&5
19407$as_echo_n "checking for gnutls_init in -lgnutls... " >&6; }
19408if ${ac_cv_lib_gnutls_gnutls_init+:} false; then :
19409 $as_echo_n "(cached) " >&6
19410else
19411 ac_check_lib_save_LIBS=$LIBS
19412LIBS="-lgnutls $LIBS"
19413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19414/* end confdefs.h. */
19415
19416/* Override any GCC internal prototype to avoid an error.
19417 Use char because int might match the return type of a GCC
19418 builtin and then its argument prototype would still apply. */
19419#ifdef __cplusplus
19420extern "C"
19421#endif
19422char gnutls_init ();
19423int
19424main ()
19425{
19426return gnutls_init ();
19427 ;
19428 return 0;
19429}
19430_ACEOF
19431if ac_fn_c_try_link "$LINENO"; then :
19432 ac_cv_lib_gnutls_gnutls_init=yes
19433else
19434 ac_cv_lib_gnutls_gnutls_init=no
19435fi
19436rm -f core conftest.err conftest.$ac_objext \
19437 conftest$ac_exeext conftest.$ac_ext
19438LIBS=$ac_check_lib_save_LIBS
19439fi
19440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19441$as_echo "$ac_cv_lib_gnutls_gnutls_init" >&6; }
19442if test "x$ac_cv_lib_gnutls_gnutls_init" = xyes; then :
19443
19444 GNUTLS_LIBS="-lgnutls"
19445
19446fi
19447
19448
19449fi
19450
19451
19452
19453SECURE=""
19454case "$ssl" in
19455secure|any|detect)
19456 if test ! -z "$GNUTLS_LIBS" ; then
19457 SECURE_LIBS="$GNUTLS_LIBS"
19458 SECURE="gnutls"
19459 fi
19460 if test -z "$SECURE" ; then
19461 if test ! -z "$OPENSSL_LIBS" ; then
19462 SECURE_LIBS="$OPENSSL_LIBS"
19463 SECURE="openssl"
19464 fi
19465 fi
19466 ;;
19467gnutls|gnu)
19468 if test ! -z "$GNUTLS_LIBS" ; then
19469 SECURE_LIBS="$GNUTLS_LIBS"
19470 SECURE="gnutls"
19471 fi
19472 ;;
19473openssl|ssl)
19474 if test ! -z "$OPENSSL_LIBS" ; then
19475 SECURE_LIBS="$OPENSSL_LIBS"
19476 SECURE="openssl"
19477 fi
19478 ;;
19479esac
19480
19481if test -z "$SECURE" ; then
19482 SECURE_LIBS=""
19483 SECURE="nossl"
19484fi
19485
19486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking secure library mode" >&5
19487$as_echo_n "checking secure library mode... " >&6; }
19488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SECURE" >&5
19489$as_echo "$SECURE" >&6; }
19490
19491SECURE_LOCAL="../$SECURE/libusecure.la $SECURE_LIBS"
19492
19493LT_GENERIC="${LIBTOOL}"
19494if test "$UCOMMON_MODEL" = "CC" ; then
19495 LIBTOOL='$(SHELL) $(top_srcdir)/cmodel.sh'" ${LIBTOOL}" ; fi
19496
19497includes='${includedir}/ucommon'
19498
19499if test "$sysconfdir" = '${prefix}/etc' ; then
19500 sysconfdir="/etc" ; fi
19501
19502if test "$localstatedir" = '${prefix}/var' ; then
19503 localstatedir="/var" ; fi
19504
19505ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
19506if test "x$ac_cv_header_libintl_h" = xyes; then :
19507
19508
19509$as_echo "@%:@define HAVE_LIBINTL_H 1" >>confdefs.h
19510
19511 if test "$have_gettext" = "no" ; then
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
19513$as_echo_n "checking for gettext in -lintl... " >&6; }
19514if ${ac_cv_lib_intl_gettext+:} false; then :
19515 $as_echo_n "(cached) " >&6
19516else
19517 ac_check_lib_save_LIBS=$LIBS
19518LIBS="-lintl $LIBS"
19519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19520/* end confdefs.h. */
19521
19522/* Override any GCC internal prototype to avoid an error.
19523 Use char because int might match the return type of a GCC
19524 builtin and then its argument prototype would still apply. */
19525#ifdef __cplusplus
19526extern "C"
19527#endif
19528char gettext ();
19529int
19530main ()
19531{
19532return gettext ();
19533 ;
19534 return 0;
19535}
19536_ACEOF
19537if ac_fn_c_try_link "$LINENO"; then :
19538 ac_cv_lib_intl_gettext=yes
19539else
19540 ac_cv_lib_intl_gettext=no
19541fi
19542rm -f core conftest.err conftest.$ac_objext \
19543 conftest$ac_exeext conftest.$ac_ext
19544LIBS=$ac_check_lib_save_LIBS
19545fi
19546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
19547$as_echo "$ac_cv_lib_intl_gettext" >&6; }
19548if test "x$ac_cv_lib_intl_gettext" = xyes; then :
19549
19550
19551$as_echo "@%:@define HAVE_GETTEXT 1" >>confdefs.h
19552
19553 UCOMMON_LIBS="$UCOMMON_LIBS -lintl"
19554
19555fi
19556
19557 fi
19558
19559fi
19560
19561
19562
19563if test "$prefix" = "NONE" ; then
19564 prefixdir="$ac_default_prefix"
19565else
19566 prefixdir="$prefix" ; fi
19567
19568
19569 UCOMMON_INCLUDES="$includes"
19570 result="***"
19571 prior="A"
19572 while test "$prior" != "$result" ; do
19573 prior=`(echo "$UCOMMON_INCLUDES")`
19574 UCOMMON_INCLUDES=`(
19575 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19576 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
19577 eval echo \""$UCOMMON_INCLUDES"\"
19578 )`
19579 result=`(echo "$UCOMMON_INCLUDES")`
19580 done
19581
19582
19583
19584 UCOMMON_LOCALE="$localedir"
19585 result="***"
19586 prior="A"
19587 while test "$prior" != "$result" ; do
19588 prior=`(echo "$UCOMMON_LOCALE")`
19589 UCOMMON_LOCALE=`(
19590 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19591 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
19592 eval echo \""$UCOMMON_LOCALE"\"
19593 )`
19594 result=`(echo "$UCOMMON_LOCALE")`
19595 done
19596
19597
19598
19599 UCOMMON_CFGPATH="$sysconfdir"
19600 result="***"
19601 prior="A"
19602 while test "$prior" != "$result" ; do
19603 prior=`(echo "$UCOMMON_CFGPATH")`
19604 UCOMMON_CFGPATH=`(
19605 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19606 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
19607 eval echo \""$UCOMMON_CFGPATH"\"
19608 )`
19609 result=`(echo "$UCOMMON_CFGPATH")`
19610 done
19611
19612
19613
19614 UCOMMON_VARPATH="$localstatedir"
19615 result="***"
19616 prior="A"
19617 while test "$prior" != "$result" ; do
19618 prior=`(echo "$UCOMMON_VARPATH")`
19619 UCOMMON_VARPATH=`(
19620 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19621 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
19622 eval echo \""$UCOMMON_VARPATH"\"
19623 )`
19624 result=`(echo "$UCOMMON_VARPATH")`
19625 done
19626
19627
19628
19629 UCOMMON_PREFIX="$prefixdir"
19630 result="***"
19631 prior="A"
19632 while test "$prior" != "$result" ; do
19633 prior=`(echo "$UCOMMON_PREFIX")`
19634 UCOMMON_PREFIX=`(
19635 test "x$prefix" = xNONE && prefix="$ac_default_prefix"
19636 test "x$exec_prefix" = xNONE && exec_prefix="${prefix}"
19637 eval echo \""$UCOMMON_PREFIX"\"
19638 )`
19639 result=`(echo "$UCOMMON_PREFIX")`
19640 done
19641
19642
19643
19644cat >>confdefs.h <<_ACEOF
19645@%:@define UCOMMON_PREFIX "$UCOMMON_PREFIX"
19646_ACEOF
19647
19648
19649cat >>confdefs.h <<_ACEOF
19650@%:@define UCOMMON_CFGPATH "$UCOMMON_CFGPATH"
19651_ACEOF
19652
19653
19654cat >>confdefs.h <<_ACEOF
19655@%:@define UCOMMON_VARPATH "$UCOMMON_VARPATH"
19656_ACEOF
19657
19658
19659cat >>confdefs.h <<_ACEOF
19660@%:@define UCOMMON_LOCALE "$UCOMMON_LOCALE"
19661_ACEOF
19662
19663
19664# Extract the first word of "doxygen", so it can be a program name with args.
19665set dummy doxygen; ac_word=$2
19666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19667$as_echo_n "checking for $ac_word... " >&6; }
19668if ${ac_cv_path_DOXYGEN+:} false; then :
19669 $as_echo_n "(cached) " >&6
19670else
19671 case $DOXYGEN in
19672 [\\/]* | ?:[\\/]*)
19673 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
19674 ;;
19675 *)
19676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19677for as_dir in $PATH
19678do
19679 IFS=$as_save_IFS
19680 test -z "$as_dir" && as_dir=.
19681 for ac_exec_ext in '' $ac_executable_extensions; do
19682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19683 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
19684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19685 break 2
19686 fi
19687done
19688 done
19689IFS=$as_save_IFS
19690
19691 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="doxygen"
19692 ;;
19693esac
19694fi
19695DOXYGEN=$ac_cv_path_DOXYGEN
19696if test -n "$DOXYGEN"; then
19697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
19698$as_echo "$DOXYGEN" >&6; }
19699else
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19701$as_echo "no" >&6; }
19702fi
19703
19704
19705
19706
19707
19708
19709
19710
19711
19712
19713
19714
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727ac_config_files="$ac_config_files Makefile corelib/Makefile commoncpp/Makefile openssl/Makefile gnutls/Makefile nossl/Makefile utils/Makefile inc/Makefile inc/ucommon/Makefile inc/commoncpp/Makefile test/Makefile directive commoncpp.pc ucommon.pc ucommon.spec ucommon-config commoncpp-config"
19728
19729cat >confcache <<\_ACEOF
19730# This file is a shell script that caches the results of configure
19731# tests run on this system so they can be shared between configure
19732# scripts and configure runs, see configure's option --config-cache.
19733# It is not useful on other systems. If it contains results you don't
19734# want to keep, you may remove or edit it.
19735#
19736# config.status only pays attention to the cache file if you give it
19737# the --recheck option to rerun configure.
19738#
19739# `ac_cv_env_foo' variables (set or unset) will be overridden when
19740# loading this file, other *unset* `ac_cv_foo' will be assigned the
19741# following values.
19742
19743_ACEOF
19744
19745# The following way of writing the cache mishandles newlines in values,
19746# but we know of no workaround that is simple, portable, and efficient.
19747# So, we kill variables containing newlines.
19748# Ultrix sh set writes to stderr and can't be redirected directly,
19749# and sets the high bit in the cache file unless we assign to the vars.
19750(
19751 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19752 eval ac_val=\$$ac_var
19753 case $ac_val in #(
19754 *${as_nl}*)
19755 case $ac_var in #(
19756 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19757$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19758 esac
19759 case $ac_var in #(
19760 _ | IFS | as_nl) ;; #(
19761 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19762 *) { eval $ac_var=; unset $ac_var;} ;;
19763 esac ;;
19764 esac
19765 done
19766
19767 (set) 2>&1 |
19768 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19769 *${as_nl}ac_space=\ *)
19770 # `set' does not quote correctly, so add quotes: double-quote
19771 # substitution turns \\\\ into \\, and sed turns \\ into \.
19772 sed -n \
19773 "s/'/'\\\\''/g;
19774 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19775 ;; #(
19776 *)
19777 # `set' quotes correctly as required by POSIX, so do not add quotes.
19778 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19779 ;;
19780 esac |
19781 sort
19782) |
19783 sed '
19784 /^ac_cv_env_/b end
19785 t clear
19786 :clear
19787 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19788 t end
19789 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19790 :end' >>confcache
19791if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19792 if test -w "$cache_file"; then
19793 if test "x$cache_file" != "x/dev/null"; then
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19795$as_echo "$as_me: updating cache $cache_file" >&6;}
19796 if test ! -f "$cache_file" || test -h "$cache_file"; then
19797 cat confcache >"$cache_file"
19798 else
19799 case $cache_file in #(
19800 */* | ?:*)
19801 mv -f confcache "$cache_file"$$ &&
19802 mv -f "$cache_file"$$ "$cache_file" ;; #(
19803 *)
19804 mv -f confcache "$cache_file" ;;
19805 esac
19806 fi
19807 fi
19808 else
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19810$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19811 fi
19812fi
19813rm -f confcache
19814
19815test "x$prefix" = xNONE && prefix=$ac_default_prefix
19816# Let make expand exec_prefix.
19817test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19818
19819DEFS=-DHAVE_CONFIG_H
19820
19821ac_libobjs=
19822ac_ltlibobjs=
19823for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
19824 # 1. Remove the extension, and $U if already installed.
19825 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19826 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19827 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19828 # will be set to the directory where LIBOBJS objects are built.
19829 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19830 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19831done
19832LIB@&t@OBJS=$ac_libobjs
19833
19834LTLIBOBJS=$ac_ltlibobjs
19835
19836
19837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19838$as_echo_n "checking that generated files are newer than configure... " >&6; }
19839 if test -n "$am_sleep_pid"; then
19840 # Hide warnings about reused PIDs.
19841 wait $am_sleep_pid 2>/dev/null
19842 fi
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19844$as_echo "done" >&6; }
19845if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19846 as_fn_error $? "conditional \"AMDEP\" was never defined.
19847Usually this means the macro was only invoked conditionally." "$LINENO" 5
19848fi
19849if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19850 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19851Usually this means the macro was only invoked conditionally." "$LINENO" 5
19852fi
19853if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19854 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19855Usually this means the macro was only invoked conditionally." "$LINENO" 5
19856fi
19857 if test -n "$EXEEXT"; then
19858 am__EXEEXT_TRUE=
19859 am__EXEEXT_FALSE='#'
19860else
19861 am__EXEEXT_TRUE='#'
19862 am__EXEEXT_FALSE=
19863fi
19864
19865
19866: "${CONFIG_STATUS=./config.status}"
19867ac_write_fail=0
19868ac_clean_files_save=$ac_clean_files
19869ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19870{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19871$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19872as_write_fail=0
19873cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19874#! $SHELL
19875# Generated by $as_me.
19876# Run this file to recreate the current configuration.
19877# Compiler output produced by configure, useful for debugging
19878# configure, is in config.log if it exists.
19879
19880debug=false
19881ac_cs_recheck=false
19882ac_cs_silent=false
19883
19884SHELL=\${CONFIG_SHELL-$SHELL}
19885export SHELL
19886_ASEOF
19887cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19888## -------------------- ##
19889## M4sh Initialization. ##
19890## -------------------- ##
19891
19892# Be more Bourne compatible
19893DUALCASE=1; export DUALCASE # for MKS sh
19894if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19895 emulate sh
19896 NULLCMD=:
19897 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19898 # is contrary to our usage. Disable this feature.
19899 alias -g '${1+"$@"}'='"$@"'
19900 setopt NO_GLOB_SUBST
19901else
19902 case `(set -o) 2>/dev/null` in @%:@(
19903 *posix*) :
19904 set -o posix ;; @%:@(
19905 *) :
19906 ;;
19907esac
19908fi
19909
19910
19911as_nl='
19912'
19913export as_nl
19914# Printing a long string crashes Solaris 7 /usr/bin/printf.
19915as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19916as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19917as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19918# Prefer a ksh shell builtin over an external printf program on Solaris,
19919# but without wasting forks for bash or zsh.
19920if test -z "$BASH_VERSION$ZSH_VERSION" \
19921 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19922 as_echo='print -r --'
19923 as_echo_n='print -rn --'
19924elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19925 as_echo='printf %s\n'
19926 as_echo_n='printf %s'
19927else
19928 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19929 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19930 as_echo_n='/usr/ucb/echo -n'
19931 else
19932 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19933 as_echo_n_body='eval
19934 arg=$1;
19935 case $arg in @%:@(
19936 *"$as_nl"*)
19937 expr "X$arg" : "X\\(.*\\)$as_nl";
19938 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19939 esac;
19940 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19941 '
19942 export as_echo_n_body
19943 as_echo_n='sh -c $as_echo_n_body as_echo'
19944 fi
19945 export as_echo_body
19946 as_echo='sh -c $as_echo_body as_echo'
19947fi
19948
19949# The user is always right.
19950if test "${PATH_SEPARATOR+set}" != set; then
19951 PATH_SEPARATOR=:
19952 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19953 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19954 PATH_SEPARATOR=';'
19955 }
19956fi
19957
19958
19959# IFS
19960# We need space, tab and new line, in precisely that order. Quoting is
19961# there to prevent editors from complaining about space-tab.
19962# (If _AS_PATH_WALK were called with IFS unset, it would disable word
19963# splitting by setting IFS to empty value.)
19964IFS=" "" $as_nl"
19965
19966# Find who we are. Look in the path if we contain no directory separator.
19967as_myself=
19968case $0 in @%:@((
19969 *[\\/]* ) as_myself=$0 ;;
19970 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19971for as_dir in $PATH
19972do
19973 IFS=$as_save_IFS
19974 test -z "$as_dir" && as_dir=.
19975 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19976 done
19977IFS=$as_save_IFS
19978
19979 ;;
19980esac
19981# We did not find ourselves, most probably we were run as `sh COMMAND'
19982# in which case we are not to be found in the path.
19983if test "x$as_myself" = x; then
19984 as_myself=$0
19985fi
19986if test ! -f "$as_myself"; then
19987 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19988 exit 1
19989fi
19990
19991# Unset variables that we do not need and which cause bugs (e.g. in
19992# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19993# suppresses any "Segmentation fault" message there. '((' could
19994# trigger a bug in pdksh 5.2.14.
19995for as_var in BASH_ENV ENV MAIL MAILPATH
19996do eval test x\${$as_var+set} = xset \
19997 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19998done
19999PS1='$ '
20000PS2='> '
20001PS4='+ '
20002
20003# NLS nuisances.
20004LC_ALL=C
20005export LC_ALL
20006LANGUAGE=C
20007export LANGUAGE
20008
20009# CDPATH.
20010(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20011
20012
20013@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
20014@%:@ ----------------------------------------
20015@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20016@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20017@%:@ script with STATUS, using 1 if that was 0.
20018as_fn_error ()
20019{
20020 as_status=$1; test $as_status -eq 0 && as_status=1
20021 if test "$4"; then
20022 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20023 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20024 fi
20025 $as_echo "$as_me: error: $2" >&2
20026 as_fn_exit $as_status
20027} @%:@ as_fn_error
20028
20029
20030@%:@ as_fn_set_status STATUS
20031@%:@ -----------------------
20032@%:@ Set @S|@? to STATUS, without forking.
20033as_fn_set_status ()
20034{
20035 return $1
20036} @%:@ as_fn_set_status
20037
20038@%:@ as_fn_exit STATUS
20039@%:@ -----------------
20040@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20041as_fn_exit ()
20042{
20043 set +e
20044 as_fn_set_status $1
20045 exit $1
20046} @%:@ as_fn_exit
20047
20048@%:@ as_fn_unset VAR
20049@%:@ ---------------
20050@%:@ Portably unset VAR.
20051as_fn_unset ()
20052{
20053 { eval $1=; unset $1;}
20054}
20055as_unset=as_fn_unset
20056@%:@ as_fn_append VAR VALUE
20057@%:@ ----------------------
20058@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
20059@%:@ advantage of any shell optimizations that allow amortized linear growth over
20060@%:@ repeated appends, instead of the typical quadratic growth present in naive
20061@%:@ implementations.
20062if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20063 eval 'as_fn_append ()
20064 {
20065 eval $1+=\$2
20066 }'
20067else
20068 as_fn_append ()
20069 {
20070 eval $1=\$$1\$2
20071 }
20072fi # as_fn_append
20073
20074@%:@ as_fn_arith ARG...
20075@%:@ ------------------
20076@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
20077@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
20078@%:@ must be portable across @S|@(()) and expr.
20079if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20080 eval 'as_fn_arith ()
20081 {
20082 as_val=$(( $* ))
20083 }'
20084else
20085 as_fn_arith ()
20086 {
20087 as_val=`expr "$@" || test $? -eq 1`
20088 }
20089fi # as_fn_arith
20090
20091
20092if expr a : '\(a\)' >/dev/null 2>&1 &&
20093 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20094 as_expr=expr
20095else
20096 as_expr=false
20097fi
20098
20099if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20100 as_basename=basename
20101else
20102 as_basename=false
20103fi
20104
20105if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20106 as_dirname=dirname
20107else
20108 as_dirname=false
20109fi
20110
20111as_me=`$as_basename -- "$0" ||
20112$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20113 X"$0" : 'X\(//\)$' \| \
20114 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20115$as_echo X/"$0" |
20116 sed '/^.*\/\([^/][^/]*\)\/*$/{
20117 s//\1/
20118 q
20119 }
20120 /^X\/\(\/\/\)$/{
20121 s//\1/
20122 q
20123 }
20124 /^X\/\(\/\).*/{
20125 s//\1/
20126 q
20127 }
20128 s/.*/./; q'`
20129
20130# Avoid depending upon Character Ranges.
20131as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20132as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20133as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20134as_cr_digits='0123456789'
20135as_cr_alnum=$as_cr_Letters$as_cr_digits
20136
20137ECHO_C= ECHO_N= ECHO_T=
20138case `echo -n x` in @%:@(((((
20139-n*)
20140 case `echo 'xy\c'` in
20141 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20142 xy) ECHO_C='\c';;
20143 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20144 ECHO_T=' ';;
20145 esac;;
20146*)
20147 ECHO_N='-n';;
20148esac
20149
20150rm -f conf$$ conf$$.exe conf$$.file
20151if test -d conf$$.dir; then
20152 rm -f conf$$.dir/conf$$.file
20153else
20154 rm -f conf$$.dir
20155 mkdir conf$$.dir 2>/dev/null
20156fi
20157if (echo >conf$$.file) 2>/dev/null; then
20158 if ln -s conf$$.file conf$$ 2>/dev/null; then
20159 as_ln_s='ln -s'
20160 # ... but there are two gotchas:
20161 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20162 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20163 # In both cases, we have to default to `cp -pR'.
20164 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20165 as_ln_s='cp -pR'
20166 elif ln conf$$.file conf$$ 2>/dev/null; then
20167 as_ln_s=ln
20168 else
20169 as_ln_s='cp -pR'
20170 fi
20171else
20172 as_ln_s='cp -pR'
20173fi
20174rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20175rmdir conf$$.dir 2>/dev/null
20176
20177
20178@%:@ as_fn_mkdir_p
20179@%:@ -------------
20180@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
20181as_fn_mkdir_p ()
20182{
20183
20184 case $as_dir in #(
20185 -*) as_dir=./$as_dir;;
20186 esac
20187 test -d "$as_dir" || eval $as_mkdir_p || {
20188 as_dirs=
20189 while :; do
20190 case $as_dir in #(
20191 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20192 *) as_qdir=$as_dir;;
20193 esac
20194 as_dirs="'$as_qdir' $as_dirs"
20195 as_dir=`$as_dirname -- "$as_dir" ||
20196$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20197 X"$as_dir" : 'X\(//\)[^/]' \| \
20198 X"$as_dir" : 'X\(//\)$' \| \
20199 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20200$as_echo X"$as_dir" |
20201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20202 s//\1/
20203 q
20204 }
20205 /^X\(\/\/\)[^/].*/{
20206 s//\1/
20207 q
20208 }
20209 /^X\(\/\/\)$/{
20210 s//\1/
20211 q
20212 }
20213 /^X\(\/\).*/{
20214 s//\1/
20215 q
20216 }
20217 s/.*/./; q'`
20218 test -d "$as_dir" && break
20219 done
20220 test -z "$as_dirs" || eval "mkdir $as_dirs"
20221 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20222
20223
20224} @%:@ as_fn_mkdir_p
20225if mkdir -p . 2>/dev/null; then
20226 as_mkdir_p='mkdir -p "$as_dir"'
20227else
20228 test -d ./-p && rmdir ./-p
20229 as_mkdir_p=false
20230fi
20231
20232
20233@%:@ as_fn_executable_p FILE
20234@%:@ -----------------------
20235@%:@ Test if FILE is an executable regular file.
20236as_fn_executable_p ()
20237{
20238 test -f "$1" && test -x "$1"
20239} @%:@ as_fn_executable_p
20240as_test_x='test -x'
20241as_executable_p=as_fn_executable_p
20242
20243# Sed expression to map a string onto a valid CPP name.
20244as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20245
20246# Sed expression to map a string onto a valid variable name.
20247as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20248
20249
20250exec 6>&1
20251## ----------------------------------- ##
20252## Main body of $CONFIG_STATUS script. ##
20253## ----------------------------------- ##
20254_ASEOF
20255test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20256
20257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20258# Save the log message, to keep $0 and so on meaningful, and to
20259# report actual input values of CONFIG_FILES etc. instead of their
20260# values after options handling.
20261ac_log="
20262This file was extended by ucommon $as_me 6.0.7, which was
20263generated by GNU Autoconf 2.69. Invocation command line was
20264
20265 CONFIG_FILES = $CONFIG_FILES
20266 CONFIG_HEADERS = $CONFIG_HEADERS
20267 CONFIG_LINKS = $CONFIG_LINKS
20268 CONFIG_COMMANDS = $CONFIG_COMMANDS
20269 $ $0 $@
20270
20271on `(hostname || uname -n) 2>/dev/null | sed 1q`
20272"
20273
20274_ACEOF
20275
20276case $ac_config_files in *"
20277"*) set x $ac_config_files; shift; ac_config_files=$*;;
20278esac
20279
20280case $ac_config_headers in *"
20281"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20282esac
20283
20284
20285cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20286# Files that config.status was made for.
20287config_files="$ac_config_files"
20288config_headers="$ac_config_headers"
20289config_commands="$ac_config_commands"
20290
20291_ACEOF
20292
20293cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20294ac_cs_usage="\
20295\`$as_me' instantiates files and other configuration actions
20296from templates according to the current configuration. Unless the files
20297and actions are specified as TAGs, all are instantiated by default.
20298
20299Usage: $0 [OPTION]... [TAG]...
20300
20301 -h, --help print this help, then exit
20302 -V, --version print version number and configuration settings, then exit
20303 --config print configuration, then exit
20304 -q, --quiet, --silent
20305 do not print progress messages
20306 -d, --debug don't remove temporary files
20307 --recheck update $as_me by reconfiguring in the same conditions
20308 --file=FILE[:TEMPLATE]
20309 instantiate the configuration file FILE
20310 --header=FILE[:TEMPLATE]
20311 instantiate the configuration header FILE
20312
20313Configuration files:
20314$config_files
20315
20316Configuration headers:
20317$config_headers
20318
20319Configuration commands:
20320$config_commands
20321
20322Report bugs to the package provider."
20323
20324_ACEOF
20325cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20326ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20327ac_cs_version="\\
20328ucommon config.status 6.0.7
20329configured by $0, generated by GNU Autoconf 2.69,
20330 with options \\"\$ac_cs_config\\"
20331
20332Copyright (C) 2012 Free Software Foundation, Inc.
20333This config.status script is free software; the Free Software Foundation
20334gives unlimited permission to copy, distribute and modify it."
20335
20336ac_pwd='$ac_pwd'
20337srcdir='$srcdir'
20338INSTALL='$INSTALL'
20339MKDIR_P='$MKDIR_P'
20340AWK='$AWK'
20341test -n "\$AWK" || AWK=awk
20342_ACEOF
20343
20344cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20345# The default lists apply if the user does not specify any file.
20346ac_need_defaults=:
20347while test $# != 0
20348do
20349 case $1 in
20350 --*=?*)
20351 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20352 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20353 ac_shift=:
20354 ;;
20355 --*=)
20356 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20357 ac_optarg=
20358 ac_shift=:
20359 ;;
20360 *)
20361 ac_option=$1
20362 ac_optarg=$2
20363 ac_shift=shift
20364 ;;
20365 esac
20366
20367 case $ac_option in
20368 # Handling of the options.
20369 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20370 ac_cs_recheck=: ;;
20371 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20372 $as_echo "$ac_cs_version"; exit ;;
20373 --config | --confi | --conf | --con | --co | --c )
20374 $as_echo "$ac_cs_config"; exit ;;
20375 --debug | --debu | --deb | --de | --d | -d )
20376 debug=: ;;
20377 --file | --fil | --fi | --f )
20378 $ac_shift
20379 case $ac_optarg in
20380 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20381 '') as_fn_error $? "missing file argument" ;;
20382 esac
20383 as_fn_append CONFIG_FILES " '$ac_optarg'"
20384 ac_need_defaults=false;;
20385 --header | --heade | --head | --hea )
20386 $ac_shift
20387 case $ac_optarg in
20388 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20389 esac
20390 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20391 ac_need_defaults=false;;
20392 --he | --h)
20393 # Conflict between --help and --header
20394 as_fn_error $? "ambiguous option: \`$1'
20395Try \`$0 --help' for more information.";;
20396 --help | --hel | -h )
20397 $as_echo "$ac_cs_usage"; exit ;;
20398 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20399 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20400 ac_cs_silent=: ;;
20401
20402 # This is an error.
20403 -*) as_fn_error $? "unrecognized option: \`$1'
20404Try \`$0 --help' for more information." ;;
20405
20406 *) as_fn_append ac_config_targets " $1"
20407 ac_need_defaults=false ;;
20408
20409 esac
20410 shift
20411done
20412
20413ac_configure_extra_args=
20414
20415if $ac_cs_silent; then
20416 exec 6>/dev/null
20417 ac_configure_extra_args="$ac_configure_extra_args --silent"
20418fi
20419
20420_ACEOF
20421cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20422if \$ac_cs_recheck; then
20423 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20424 shift
20425 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20426 CONFIG_SHELL='$SHELL'
20427 export CONFIG_SHELL
20428 exec "\$@"
20429fi
20430
20431_ACEOF
20432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20433exec 5>>config.log
20434{
20435 echo
20436 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
20437@%:@@%:@ Running $as_me. @%:@@%:@
20438_ASBOX
20439 $as_echo "$ac_log"
20440} >&5
20441
20442_ACEOF
20443cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20444#
20445# INIT-COMMANDS
20446#
20447
20448
20449# The HP-UX ksh and POSIX shell print the target directory to stdout
20450# if CDPATH is set.
20451(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20452
20453sed_quote_subst='$sed_quote_subst'
20454double_quote_subst='$double_quote_subst'
20455delay_variable_subst='$delay_variable_subst'
20456AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20457DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20458OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20459macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20460macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20461enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20462enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20463pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20464enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20465SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20466ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20467PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20468host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20469host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20470host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20471build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20472build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20473build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20474SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20475Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20476GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20477EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20478FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20479LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20480NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20481LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20482max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20483ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20484exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20485lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20486lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20487lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20488lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20489lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20490reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20491reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20492deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20493file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20494file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20495want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20496sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20497AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20498AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20499archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20500STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20501RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20502old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20503old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20504old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20505lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20506CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20507CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20508compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20509GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20510lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20511lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20512lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20513lt_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"`'
20514nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20515lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20516objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20517MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20518lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20519lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20520lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20521lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20522lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20523need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20524MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20525DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20526NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20527LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20528OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20529OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20530libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20531shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20532extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20533archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20534enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20535export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20536whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20537compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20538old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20539old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20540archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20541archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20542module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20543module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20544with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20545allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20546no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20547hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20548hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20549hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20550hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20551hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20552hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20553hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20554inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20555link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20556always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20557export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20558exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20559include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20560prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20561postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20562file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20563variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20564need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20565need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20566version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20567runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20568shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20569shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20570libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20571library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20572soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20573install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20574postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20575postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20576finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20577finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20578hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20579sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20580sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20581hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20582enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20583enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20584enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20585old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20586striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20587compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20588predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20589postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20590predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20591postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20592compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20593LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20594reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20595reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20596old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20597compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20598GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20599lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20600lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20601lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20602lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20603lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20604archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20605enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20606export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20607whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20608compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20609old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20610old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20611archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20612archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20613module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20614module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20615with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20616allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20617no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20618hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20619hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20620hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20621hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20622hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20623hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20624hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20625inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20626link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20627always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20628export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20629exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20630include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20631prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20632postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20633file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20634hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20635compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20636predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20637postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20638predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20639postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20640compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20641
20642LTCC='$LTCC'
20643LTCFLAGS='$LTCFLAGS'
20644compiler='$compiler_DEFAULT'
20645
20646# A function that is used when there is no print builtin or printf.
20647func_fallback_echo ()
20648{
20649 eval 'cat <<_LTECHO_EOF
20650\$1
20651_LTECHO_EOF'
20652}
20653
20654# Quote evaled strings.
20655for var in AS \
20656DLLTOOL \
20657OBJDUMP \
20658SHELL \
20659ECHO \
20660PATH_SEPARATOR \
20661SED \
20662GREP \
20663EGREP \
20664FGREP \
20665LD \
20666NM \
20667LN_S \
20668lt_SP2NL \
20669lt_NL2SP \
20670reload_flag \
20671deplibs_check_method \
20672file_magic_cmd \
20673file_magic_glob \
20674want_nocaseglob \
20675sharedlib_from_linklib_cmd \
20676AR \
20677AR_FLAGS \
20678archiver_list_spec \
20679STRIP \
20680RANLIB \
20681CC \
20682CFLAGS \
20683compiler \
20684lt_cv_sys_global_symbol_pipe \
20685lt_cv_sys_global_symbol_to_cdecl \
20686lt_cv_sys_global_symbol_to_c_name_address \
20687lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20688nm_file_list_spec \
20689lt_prog_compiler_no_builtin_flag \
20690lt_prog_compiler_pic \
20691lt_prog_compiler_wl \
20692lt_prog_compiler_static \
20693lt_cv_prog_compiler_c_o \
20694need_locks \
20695MANIFEST_TOOL \
20696DSYMUTIL \
20697NMEDIT \
20698LIPO \
20699OTOOL \
20700OTOOL64 \
20701shrext_cmds \
20702export_dynamic_flag_spec \
20703whole_archive_flag_spec \
20704compiler_needs_object \
20705with_gnu_ld \
20706allow_undefined_flag \
20707no_undefined_flag \
20708hardcode_libdir_flag_spec \
20709hardcode_libdir_separator \
20710exclude_expsyms \
20711include_expsyms \
20712file_list_spec \
20713variables_saved_for_relink \
20714libname_spec \
20715library_names_spec \
20716soname_spec \
20717install_override_mode \
20718finish_eval \
20719old_striplib \
20720striplib \
20721compiler_lib_search_dirs \
20722predep_objects \
20723postdep_objects \
20724predeps \
20725postdeps \
20726compiler_lib_search_path \
20727LD_CXX \
20728reload_flag_CXX \
20729compiler_CXX \
20730lt_prog_compiler_no_builtin_flag_CXX \
20731lt_prog_compiler_pic_CXX \
20732lt_prog_compiler_wl_CXX \
20733lt_prog_compiler_static_CXX \
20734lt_cv_prog_compiler_c_o_CXX \
20735export_dynamic_flag_spec_CXX \
20736whole_archive_flag_spec_CXX \
20737compiler_needs_object_CXX \
20738with_gnu_ld_CXX \
20739allow_undefined_flag_CXX \
20740no_undefined_flag_CXX \
20741hardcode_libdir_flag_spec_CXX \
20742hardcode_libdir_separator_CXX \
20743exclude_expsyms_CXX \
20744include_expsyms_CXX \
20745file_list_spec_CXX \
20746compiler_lib_search_dirs_CXX \
20747predep_objects_CXX \
20748postdep_objects_CXX \
20749predeps_CXX \
20750postdeps_CXX \
20751compiler_lib_search_path_CXX; do
20752 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20753 *[\\\\\\\`\\"\\\$]*)
20754 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20755 ;;
20756 *)
20757 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20758 ;;
20759 esac
20760done
20761
20762# Double-quote double-evaled strings.
20763for var in reload_cmds \
20764old_postinstall_cmds \
20765old_postuninstall_cmds \
20766old_archive_cmds \
20767extract_expsyms_cmds \
20768old_archive_from_new_cmds \
20769old_archive_from_expsyms_cmds \
20770archive_cmds \
20771archive_expsym_cmds \
20772module_cmds \
20773module_expsym_cmds \
20774export_symbols_cmds \
20775prelink_cmds \
20776postlink_cmds \
20777postinstall_cmds \
20778postuninstall_cmds \
20779finish_cmds \
20780sys_lib_search_path_spec \
20781sys_lib_dlsearch_path_spec \
20782reload_cmds_CXX \
20783old_archive_cmds_CXX \
20784old_archive_from_new_cmds_CXX \
20785old_archive_from_expsyms_cmds_CXX \
20786archive_cmds_CXX \
20787archive_expsym_cmds_CXX \
20788module_cmds_CXX \
20789module_expsym_cmds_CXX \
20790export_symbols_cmds_CXX \
20791prelink_cmds_CXX \
20792postlink_cmds_CXX; do
20793 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20794 *[\\\\\\\`\\"\\\$]*)
20795 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20796 ;;
20797 *)
20798 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20799 ;;
20800 esac
20801done
20802
20803ac_aux_dir='$ac_aux_dir'
20804xsi_shell='$xsi_shell'
20805lt_shell_append='$lt_shell_append'
20806
20807# See if we are running on zsh, and set the options which allow our
20808# commands through without removal of \ escapes INIT.
20809if test -n "\${ZSH_VERSION+set}" ; then
20810 setopt NO_GLOB_SUBST
20811fi
20812
20813
20814 PACKAGE='$PACKAGE'
20815 VERSION='$VERSION'
20816 TIMESTAMP='$TIMESTAMP'
20817 RM='$RM'
20818 ofile='$ofile'
20819
20820
20821
20822
20823
20824AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20825
20826_ACEOF
20827
20828cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20829
20830# Handling of arguments.
20831for ac_config_target in $ac_config_targets
20832do
20833 case $ac_config_target in
20834 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20835 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20836 "ucommon-config.h") CONFIG_HEADERS="$CONFIG_HEADERS ucommon-config.h" ;;
20837 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20838 "corelib/Makefile") CONFIG_FILES="$CONFIG_FILES corelib/Makefile" ;;
20839 "commoncpp/Makefile") CONFIG_FILES="$CONFIG_FILES commoncpp/Makefile" ;;
20840 "openssl/Makefile") CONFIG_FILES="$CONFIG_FILES openssl/Makefile" ;;
20841 "gnutls/Makefile") CONFIG_FILES="$CONFIG_FILES gnutls/Makefile" ;;
20842 "nossl/Makefile") CONFIG_FILES="$CONFIG_FILES nossl/Makefile" ;;
20843 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
20844 "inc/Makefile") CONFIG_FILES="$CONFIG_FILES inc/Makefile" ;;
20845 "inc/ucommon/Makefile") CONFIG_FILES="$CONFIG_FILES inc/ucommon/Makefile" ;;
20846 "inc/commoncpp/Makefile") CONFIG_FILES="$CONFIG_FILES inc/commoncpp/Makefile" ;;
20847 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
20848 "directive") CONFIG_FILES="$CONFIG_FILES directive" ;;
20849 "commoncpp.pc") CONFIG_FILES="$CONFIG_FILES commoncpp.pc" ;;
20850 "ucommon.pc") CONFIG_FILES="$CONFIG_FILES ucommon.pc" ;;
20851 "ucommon.spec") CONFIG_FILES="$CONFIG_FILES ucommon.spec" ;;
20852 "ucommon-config") CONFIG_FILES="$CONFIG_FILES ucommon-config" ;;
20853 "commoncpp-config") CONFIG_FILES="$CONFIG_FILES commoncpp-config" ;;
20854
20855 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20856 esac
20857done
20858
20859
20860# If the user did not use the arguments to specify the items to instantiate,
20861# then the envvar interface is used. Set only those that are not.
20862# We use the long form for the default assignment because of an extremely
20863# bizarre bug on SunOS 4.1.3.
20864if $ac_need_defaults; then
20865 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20866 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20867 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20868fi
20869
20870# Have a temporary directory for convenience. Make it in the build tree
20871# simply because there is no reason against having it here, and in addition,
20872# creating and moving files from /tmp can sometimes cause problems.
20873# Hook for its removal unless debugging.
20874# Note that there is a small window in which the directory will not be cleaned:
20875# after its creation but before its name has been assigned to `$tmp'.
20876$debug ||
20877{
20878 tmp= ac_tmp=
20879 trap 'exit_status=$?
20880 : "${ac_tmp:=$tmp}"
20881 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20882' 0
20883 trap 'as_fn_exit 1' 1 2 13 15
20884}
20885# Create a (secure) tmp directory for tmp files.
20886
20887{
20888 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20889 test -d "$tmp"
20890} ||
20891{
20892 tmp=./conf$$-$RANDOM
20893 (umask 077 && mkdir "$tmp")
20894} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20895ac_tmp=$tmp
20896
20897# Set up the scripts for CONFIG_FILES section.
20898# No need to generate them if there are no CONFIG_FILES.
20899# This happens for instance with `./config.status config.h'.
20900if test -n "$CONFIG_FILES"; then
20901
20902
20903ac_cr=`echo X | tr X '\015'`
20904# On cygwin, bash can eat \r inside `` if the user requested igncr.
20905# But we know of no other shell where ac_cr would be empty at this
20906# point, so we can use a bashism as a fallback.
20907if test "x$ac_cr" = x; then
20908 eval ac_cr=\$\'\\r\'
20909fi
20910ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20911if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20912 ac_cs_awk_cr='\\r'
20913else
20914 ac_cs_awk_cr=$ac_cr
20915fi
20916
20917echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20918_ACEOF
20919
20920
20921{
20922 echo "cat >conf$$subs.awk <<_ACEOF" &&
20923 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20924 echo "_ACEOF"
20925} >conf$$subs.sh ||
20926 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20927ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20928ac_delim='%!_!# '
20929for ac_last_try in false false false false false :; do
20930 . ./conf$$subs.sh ||
20931 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20932
20933 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20934 if test $ac_delim_n = $ac_delim_num; then
20935 break
20936 elif $ac_last_try; then
20937 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20938 else
20939 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20940 fi
20941done
20942rm -f conf$$subs.sh
20943
20944cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20945cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20946_ACEOF
20947sed -n '
20948h
20949s/^/S["/; s/!.*/"]=/
20950p
20951g
20952s/^[^!]*!//
20953:repl
20954t repl
20955s/'"$ac_delim"'$//
20956t delim
20957:nl
20958h
20959s/\(.\{148\}\)..*/\1/
20960t more1
20961s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20962p
20963n
20964b repl
20965:more1
20966s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20967p
20968g
20969s/.\{148\}//
20970t nl
20971:delim
20972h
20973s/\(.\{148\}\)..*/\1/
20974t more2
20975s/["\\]/\\&/g; s/^/"/; s/$/"/
20976p
20977b
20978:more2
20979s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20980p
20981g
20982s/.\{148\}//
20983t delim
20984' <conf$$subs.awk | sed '
20985/^[^""]/{
20986 N
20987 s/\n//
20988}
20989' >>$CONFIG_STATUS || ac_write_fail=1
20990rm -f conf$$subs.awk
20991cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20992_ACAWK
20993cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20994 for (key in S) S_is_set[key] = 1
20995 FS = ""
20996
20997}
20998{
20999 line = $ 0
21000 nfields = split(line, field, "@")
21001 substed = 0
21002 len = length(field[1])
21003 for (i = 2; i < nfields; i++) {
21004 key = field[i]
21005 keylen = length(key)
21006 if (S_is_set[key]) {
21007 value = S[key]
21008 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21009 len += length(value) + length(field[++i])
21010 substed = 1
21011 } else
21012 len += 1 + keylen
21013 }
21014
21015 print line
21016}
21017
21018_ACAWK
21019_ACEOF
21020cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21021if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21022 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21023else
21024 cat
21025fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21026 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21027_ACEOF
21028
21029# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21030# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21031# trailing colons and then remove the whole line if VPATH becomes empty
21032# (actually we leave an empty line to preserve line numbers).
21033if test "x$srcdir" = x.; then
21034 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21035h
21036s///
21037s/^/:/
21038s/[ ]*$/:/
21039s/:\$(srcdir):/:/g
21040s/:\${srcdir}:/:/g
21041s/:@srcdir@:/:/g
21042s/^:*//
21043s/:*$//
21044x
21045s/\(=[ ]*\).*/\1/
21046G
21047s/\n//
21048s/^[^=]*=[ ]*$//
21049}'
21050fi
21051
21052cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21053fi # test -n "$CONFIG_FILES"
21054
21055# Set up the scripts for CONFIG_HEADERS section.
21056# No need to generate them if there are no CONFIG_HEADERS.
21057# This happens for instance with `./config.status Makefile'.
21058if test -n "$CONFIG_HEADERS"; then
21059cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21060BEGIN {
21061_ACEOF
21062
21063# Transform confdefs.h into an awk script `defines.awk', embedded as
21064# here-document in config.status, that substitutes the proper values into
21065# config.h.in to produce config.h.
21066
21067# Create a delimiter string that does not exist in confdefs.h, to ease
21068# handling of long lines.
21069ac_delim='%!_!# '
21070for ac_last_try in false false :; do
21071 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21072 if test -z "$ac_tt"; then
21073 break
21074 elif $ac_last_try; then
21075 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21076 else
21077 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21078 fi
21079done
21080
21081# For the awk script, D is an array of macro values keyed by name,
21082# likewise P contains macro parameters if any. Preserve backslash
21083# newline sequences.
21084
21085ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21086sed -n '
21087s/.\{148\}/&'"$ac_delim"'/g
21088t rset
21089:rset
21090s/^[ ]*#[ ]*define[ ][ ]*/ /
21091t def
21092d
21093:def
21094s/\\$//
21095t bsnl
21096s/["\\]/\\&/g
21097s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21098D["\1"]=" \3"/p
21099s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21100d
21101:bsnl
21102s/["\\]/\\&/g
21103s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21104D["\1"]=" \3\\\\\\n"\\/p
21105t cont
21106s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21107t cont
21108d
21109:cont
21110n
21111s/.\{148\}/&'"$ac_delim"'/g
21112t clear
21113:clear
21114s/\\$//
21115t bsnlc
21116s/["\\]/\\&/g; s/^/"/; s/$/"/p
21117d
21118:bsnlc
21119s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21120b cont
21121' <confdefs.h | sed '
21122s/'"$ac_delim"'/"\\\
21123"/g' >>$CONFIG_STATUS || ac_write_fail=1
21124
21125cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21126 for (key in D) D_is_set[key] = 1
21127 FS = ""
21128}
21129/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21130 line = \$ 0
21131 split(line, arg, " ")
21132 if (arg[1] == "#") {
21133 defundef = arg[2]
21134 mac1 = arg[3]
21135 } else {
21136 defundef = substr(arg[1], 2)
21137 mac1 = arg[2]
21138 }
21139 split(mac1, mac2, "(") #)
21140 macro = mac2[1]
21141 prefix = substr(line, 1, index(line, defundef) - 1)
21142 if (D_is_set[macro]) {
21143 # Preserve the white space surrounding the "#".
21144 print prefix "define", macro P[macro] D[macro]
21145 next
21146 } else {
21147 # Replace #undef with comments. This is necessary, for example,
21148 # in the case of _POSIX_SOURCE, which is predefined and required
21149 # on some systems where configure will not decide to define it.
21150 if (defundef == "undef") {
21151 print "/*", prefix defundef, macro, "*/"
21152 next
21153 }
21154 }
21155}
21156{ print }
21157_ACAWK
21158_ACEOF
21159cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21160 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21161fi # test -n "$CONFIG_HEADERS"
21162
21163
21164eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21165shift
21166for ac_tag
21167do
21168 case $ac_tag in
21169 :[FHLC]) ac_mode=$ac_tag; continue;;
21170 esac
21171 case $ac_mode$ac_tag in
21172 :[FHL]*:*);;
21173 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21174 :[FH]-) ac_tag=-:-;;
21175 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21176 esac
21177 ac_save_IFS=$IFS
21178 IFS=:
21179 set x $ac_tag
21180 IFS=$ac_save_IFS
21181 shift
21182 ac_file=$1
21183 shift
21184
21185 case $ac_mode in
21186 :L) ac_source=$1;;
21187 :[FH])
21188 ac_file_inputs=
21189 for ac_f
21190 do
21191 case $ac_f in
21192 -) ac_f="$ac_tmp/stdin";;
21193 *) # Look for the file first in the build tree, then in the source tree
21194 # (if the path is not absolute). The absolute path cannot be DOS-style,
21195 # because $ac_f cannot contain `:'.
21196 test -f "$ac_f" ||
21197 case $ac_f in
21198 [\\/$]*) false;;
21199 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21200 esac ||
21201 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21202 esac
21203 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21204 as_fn_append ac_file_inputs " '$ac_f'"
21205 done
21206
21207 # Let's still pretend it is `configure' which instantiates (i.e., don't
21208 # use $as_me), people would be surprised to read:
21209 # /* config.h. Generated by config.status. */
21210 configure_input='Generated from '`
21211 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21212 `' by configure.'
21213 if test x"$ac_file" != x-; then
21214 configure_input="$ac_file. $configure_input"
21215 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21216$as_echo "$as_me: creating $ac_file" >&6;}
21217 fi
21218 # Neutralize special characters interpreted by sed in replacement strings.
21219 case $configure_input in #(
21220 *\&* | *\|* | *\\* )
21221 ac_sed_conf_input=`$as_echo "$configure_input" |
21222 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21223 *) ac_sed_conf_input=$configure_input;;
21224 esac
21225
21226 case $ac_tag in
21227 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21228 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21229 esac
21230 ;;
21231 esac
21232
21233 ac_dir=`$as_dirname -- "$ac_file" ||
21234$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21235 X"$ac_file" : 'X\(//\)[^/]' \| \
21236 X"$ac_file" : 'X\(//\)$' \| \
21237 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21238$as_echo X"$ac_file" |
21239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21240 s//\1/
21241 q
21242 }
21243 /^X\(\/\/\)[^/].*/{
21244 s//\1/
21245 q
21246 }
21247 /^X\(\/\/\)$/{
21248 s//\1/
21249 q
21250 }
21251 /^X\(\/\).*/{
21252 s//\1/
21253 q
21254 }
21255 s/.*/./; q'`
21256 as_dir="$ac_dir"; as_fn_mkdir_p
21257 ac_builddir=.
21258
21259case "$ac_dir" in
21260.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21261*)
21262 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21263 # A ".." for each directory in $ac_dir_suffix.
21264 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21265 case $ac_top_builddir_sub in
21266 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21267 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21268 esac ;;
21269esac
21270ac_abs_top_builddir=$ac_pwd
21271ac_abs_builddir=$ac_pwd$ac_dir_suffix
21272# for backward compatibility:
21273ac_top_builddir=$ac_top_build_prefix
21274
21275case $srcdir in
21276 .) # We are building in place.
21277 ac_srcdir=.
21278 ac_top_srcdir=$ac_top_builddir_sub
21279 ac_abs_top_srcdir=$ac_pwd ;;
21280 [\\/]* | ?:[\\/]* ) # Absolute name.
21281 ac_srcdir=$srcdir$ac_dir_suffix;
21282 ac_top_srcdir=$srcdir
21283 ac_abs_top_srcdir=$srcdir ;;
21284 *) # Relative name.
21285 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21286 ac_top_srcdir=$ac_top_build_prefix$srcdir
21287 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21288esac
21289ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21290
21291
21292 case $ac_mode in
21293 :F)
21294 #
21295 # CONFIG_FILE
21296 #
21297
21298 case $INSTALL in
21299 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21300 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21301 esac
21302 ac_MKDIR_P=$MKDIR_P
21303 case $MKDIR_P in
21304 [\\/$]* | ?:[\\/]* ) ;;
21305 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21306 esac
21307_ACEOF
21308
21309cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21310# If the template does not know about datarootdir, expand it.
21311# FIXME: This hack should be removed a few years after 2.60.
21312ac_datarootdir_hack=; ac_datarootdir_seen=
21313ac_sed_dataroot='
21314/datarootdir/ {
21315 p
21316 q
21317}
21318/@datadir@/p
21319/@docdir@/p
21320/@infodir@/p
21321/@localedir@/p
21322/@mandir@/p'
21323case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21324*datarootdir*) ac_datarootdir_seen=yes;;
21325*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21327$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21328_ACEOF
21329cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21330 ac_datarootdir_hack='
21331 s&@datadir@&$datadir&g
21332 s&@docdir@&$docdir&g
21333 s&@infodir@&$infodir&g
21334 s&@localedir@&$localedir&g
21335 s&@mandir@&$mandir&g
21336 s&\\\${datarootdir}&$datarootdir&g' ;;
21337esac
21338_ACEOF
21339
21340# Neutralize VPATH when `$srcdir' = `.'.
21341# Shell code in configure.ac might set extrasub.
21342# FIXME: do we really want to maintain this feature?
21343cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21344ac_sed_extra="$ac_vpsub
21345$extrasub
21346_ACEOF
21347cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21348:t
21349/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21350s|@configure_input@|$ac_sed_conf_input|;t t
21351s&@top_builddir@&$ac_top_builddir_sub&;t t
21352s&@top_build_prefix@&$ac_top_build_prefix&;t t
21353s&@srcdir@&$ac_srcdir&;t t
21354s&@abs_srcdir@&$ac_abs_srcdir&;t t
21355s&@top_srcdir@&$ac_top_srcdir&;t t
21356s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21357s&@builddir@&$ac_builddir&;t t
21358s&@abs_builddir@&$ac_abs_builddir&;t t
21359s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21360s&@INSTALL@&$ac_INSTALL&;t t
21361s&@MKDIR_P@&$ac_MKDIR_P&;t t
21362$ac_datarootdir_hack
21363"
21364eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21365 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21366
21367test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21368 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21369 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21370 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21372which seems to be undefined. Please make sure it is defined" >&5
21373$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21374which seems to be undefined. Please make sure it is defined" >&2;}
21375
21376 rm -f "$ac_tmp/stdin"
21377 case $ac_file in
21378 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21379 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21380 esac \
21381 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21382 ;;
21383 :H)
21384 #
21385 # CONFIG_HEADER
21386 #
21387 if test x"$ac_file" != x-; then
21388 {
21389 $as_echo "/* $configure_input */" \
21390 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21391 } >"$ac_tmp/config.h" \
21392 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21393 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21394 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21395$as_echo "$as_me: $ac_file is unchanged" >&6;}
21396 else
21397 rm -f "$ac_file"
21398 mv "$ac_tmp/config.h" "$ac_file" \
21399 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21400 fi
21401 else
21402 $as_echo "/* $configure_input */" \
21403 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21404 || as_fn_error $? "could not create -" "$LINENO" 5
21405 fi
21406# Compute "$ac_file"'s index in $config_headers.
21407_am_arg="$ac_file"
21408_am_stamp_count=1
21409for _am_header in $config_headers :; do
21410 case $_am_header in
21411 $_am_arg | $_am_arg:* )
21412 break ;;
21413 * )
21414 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21415 esac
21416done
21417echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21418$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21419 X"$_am_arg" : 'X\(//\)[^/]' \| \
21420 X"$_am_arg" : 'X\(//\)$' \| \
21421 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21422$as_echo X"$_am_arg" |
21423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21424 s//\1/
21425 q
21426 }
21427 /^X\(\/\/\)[^/].*/{
21428 s//\1/
21429 q
21430 }
21431 /^X\(\/\/\)$/{
21432 s//\1/
21433 q
21434 }
21435 /^X\(\/\).*/{
21436 s//\1/
21437 q
21438 }
21439 s/.*/./; q'`/stamp-h$_am_stamp_count
21440 ;;
21441
21442 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21443$as_echo "$as_me: executing $ac_file commands" >&6;}
21444 ;;
21445 esac
21446
21447
21448 case $ac_file$ac_mode in
21449 "libtool":C)
21450
21451 # See if we are running on zsh, and set the options which allow our
21452 # commands through without removal of \ escapes.
21453 if test -n "${ZSH_VERSION+set}" ; then
21454 setopt NO_GLOB_SUBST
21455 fi
21456
21457 cfgfile="${ofile}T"
21458 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21459 $RM "$cfgfile"
21460
21461 cat <<_LT_EOF >> "$cfgfile"
21462#! $SHELL
21463
21464# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21465# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21466# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21467# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21468#
21469# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21470# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21471# Foundation, Inc.
21472# Written by Gordon Matzigkeit, 1996
21473#
21474# This file is part of GNU Libtool.
21475#
21476# GNU Libtool is free software; you can redistribute it and/or
21477# modify it under the terms of the GNU General Public License as
21478# published by the Free Software Foundation; either version 2 of
21479# the License, or (at your option) any later version.
21480#
21481# As a special exception to the GNU General Public License,
21482# if you distribute this file as part of a program or library that
21483# is built using GNU Libtool, you may include this file under the
21484# same distribution terms that you use for the rest of that program.
21485#
21486# GNU Libtool is distributed in the hope that it will be useful,
21487# but WITHOUT ANY WARRANTY; without even the implied warranty of
21488# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21489# GNU General Public License for more details.
21490#
21491# You should have received a copy of the GNU General Public License
21492# along with GNU Libtool; see the file COPYING. If not, a copy
21493# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21494# obtained by writing to the Free Software Foundation, Inc.,
21495# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21496
21497
21498# The names of the tagged configurations supported by this script.
21499available_tags="CXX "
21500
21501# ### BEGIN LIBTOOL CONFIG
21502
21503# Assembler program.
21504AS=$lt_AS
21505
21506# DLL creation program.
21507DLLTOOL=$lt_DLLTOOL
21508
21509# Object dumper program.
21510OBJDUMP=$lt_OBJDUMP
21511
21512# Which release of libtool.m4 was used?
21513macro_version=$macro_version
21514macro_revision=$macro_revision
21515
21516# Whether or not to build shared libraries.
21517build_libtool_libs=$enable_shared
21518
21519# Whether or not to build static libraries.
21520build_old_libs=$enable_static
21521
21522# What type of objects to build.
21523pic_mode=$pic_mode
21524
21525# Whether or not to optimize for fast installation.
21526fast_install=$enable_fast_install
21527
21528# Shell to use when invoking shell scripts.
21529SHELL=$lt_SHELL
21530
21531# An echo program that protects backslashes.
21532ECHO=$lt_ECHO
21533
21534# The PATH separator for the build system.
21535PATH_SEPARATOR=$lt_PATH_SEPARATOR
21536
21537# The host system.
21538host_alias=$host_alias
21539host=$host
21540host_os=$host_os
21541
21542# The build system.
21543build_alias=$build_alias
21544build=$build
21545build_os=$build_os
21546
21547# A sed program that does not truncate output.
21548SED=$lt_SED
21549
21550# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21551Xsed="\$SED -e 1s/^X//"
21552
21553# A grep program that handles long lines.
21554GREP=$lt_GREP
21555
21556# An ERE matcher.
21557EGREP=$lt_EGREP
21558
21559# A literal string matcher.
21560FGREP=$lt_FGREP
21561
21562# A BSD- or MS-compatible name lister.
21563NM=$lt_NM
21564
21565# Whether we need soft or hard links.
21566LN_S=$lt_LN_S
21567
21568# What is the maximum length of a command?
21569max_cmd_len=$max_cmd_len
21570
21571# Object file suffix (normally "o").
21572objext=$ac_objext
21573
21574# Executable file suffix (normally "").
21575exeext=$exeext
21576
21577# whether the shell understands "unset".
21578lt_unset=$lt_unset
21579
21580# turn spaces into newlines.
21581SP2NL=$lt_lt_SP2NL
21582
21583# turn newlines into spaces.
21584NL2SP=$lt_lt_NL2SP
21585
21586# convert \$build file names to \$host format.
21587to_host_file_cmd=$lt_cv_to_host_file_cmd
21588
21589# convert \$build files to toolchain format.
21590to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21591
21592# Method to check whether dependent libraries are shared objects.
21593deplibs_check_method=$lt_deplibs_check_method
21594
21595# Command to use when deplibs_check_method = "file_magic".
21596file_magic_cmd=$lt_file_magic_cmd
21597
21598# How to find potential files when deplibs_check_method = "file_magic".
21599file_magic_glob=$lt_file_magic_glob
21600
21601# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21602want_nocaseglob=$lt_want_nocaseglob
21603
21604# Command to associate shared and link libraries.
21605sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21606
21607# The archiver.
21608AR=$lt_AR
21609
21610# Flags to create an archive.
21611AR_FLAGS=$lt_AR_FLAGS
21612
21613# How to feed a file listing to the archiver.
21614archiver_list_spec=$lt_archiver_list_spec
21615
21616# A symbol stripping program.
21617STRIP=$lt_STRIP
21618
21619# Commands used to install an old-style archive.
21620RANLIB=$lt_RANLIB
21621old_postinstall_cmds=$lt_old_postinstall_cmds
21622old_postuninstall_cmds=$lt_old_postuninstall_cmds
21623
21624# Whether to use a lock for old archive extraction.
21625lock_old_archive_extraction=$lock_old_archive_extraction
21626
21627# A C compiler.
21628LTCC=$lt_CC
21629
21630# LTCC compiler flags.
21631LTCFLAGS=$lt_CFLAGS
21632
21633# Take the output of nm and produce a listing of raw symbols and C names.
21634global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21635
21636# Transform the output of nm in a proper C declaration.
21637global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21638
21639# Transform the output of nm in a C name address pair.
21640global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21641
21642# Transform the output of nm in a C name address pair when lib prefix is needed.
21643global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21644
21645# Specify filename containing input files for \$NM.
21646nm_file_list_spec=$lt_nm_file_list_spec
21647
21648# The root where to search for dependent libraries,and in which our libraries should be installed.
21649lt_sysroot=$lt_sysroot
21650
21651# The name of the directory that contains temporary libtool files.
21652objdir=$objdir
21653
21654# Used to examine libraries when file_magic_cmd begins with "file".
21655MAGIC_CMD=$MAGIC_CMD
21656
21657# Must we lock files when doing compilation?
21658need_locks=$lt_need_locks
21659
21660# Manifest tool.
21661MANIFEST_TOOL=$lt_MANIFEST_TOOL
21662
21663# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21664DSYMUTIL=$lt_DSYMUTIL
21665
21666# Tool to change global to local symbols on Mac OS X.
21667NMEDIT=$lt_NMEDIT
21668
21669# Tool to manipulate fat objects and archives on Mac OS X.
21670LIPO=$lt_LIPO
21671
21672# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21673OTOOL=$lt_OTOOL
21674
21675# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21676OTOOL64=$lt_OTOOL64
21677
21678# Old archive suffix (normally "a").
21679libext=$libext
21680
21681# Shared library suffix (normally ".so").
21682shrext_cmds=$lt_shrext_cmds
21683
21684# The commands to extract the exported symbol list from a shared archive.
21685extract_expsyms_cmds=$lt_extract_expsyms_cmds
21686
21687# Variables whose values should be saved in libtool wrapper scripts and
21688# restored at link time.
21689variables_saved_for_relink=$lt_variables_saved_for_relink
21690
21691# Do we need the "lib" prefix for modules?
21692need_lib_prefix=$need_lib_prefix
21693
21694# Do we need a version for libraries?
21695need_version=$need_version
21696
21697# Library versioning type.
21698version_type=$version_type
21699
21700# Shared library runtime path variable.
21701runpath_var=$runpath_var
21702
21703# Shared library path variable.
21704shlibpath_var=$shlibpath_var
21705
21706# Is shlibpath searched before the hard-coded library search path?
21707shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21708
21709# Format of library name prefix.
21710libname_spec=$lt_libname_spec
21711
21712# List of archive names. First name is the real one, the rest are links.
21713# The last name is the one that the linker finds with -lNAME
21714library_names_spec=$lt_library_names_spec
21715
21716# The coded name of the library, if different from the real name.
21717soname_spec=$lt_soname_spec
21718
21719# Permission mode override for installation of shared libraries.
21720install_override_mode=$lt_install_override_mode
21721
21722# Command to use after installation of a shared archive.
21723postinstall_cmds=$lt_postinstall_cmds
21724
21725# Command to use after uninstallation of a shared archive.
21726postuninstall_cmds=$lt_postuninstall_cmds
21727
21728# Commands used to finish a libtool library installation in a directory.
21729finish_cmds=$lt_finish_cmds
21730
21731# As "finish_cmds", except a single script fragment to be evaled but
21732# not shown.
21733finish_eval=$lt_finish_eval
21734
21735# Whether we should hardcode library paths into libraries.
21736hardcode_into_libs=$hardcode_into_libs
21737
21738# Compile-time system search path for libraries.
21739sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21740
21741# Run-time system search path for libraries.
21742sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21743
21744# Whether dlopen is supported.
21745dlopen_support=$enable_dlopen
21746
21747# Whether dlopen of programs is supported.
21748dlopen_self=$enable_dlopen_self
21749
21750# Whether dlopen of statically linked programs is supported.
21751dlopen_self_static=$enable_dlopen_self_static
21752
21753# Commands to strip libraries.
21754old_striplib=$lt_old_striplib
21755striplib=$lt_striplib
21756
21757
21758# The linker used to build libraries.
21759LD=$lt_LD
21760
21761# How to create reloadable object files.
21762reload_flag=$lt_reload_flag
21763reload_cmds=$lt_reload_cmds
21764
21765# Commands used to build an old-style archive.
21766old_archive_cmds=$lt_old_archive_cmds
21767
21768# A language specific compiler.
21769CC=$lt_compiler
21770
21771# Is the compiler the GNU compiler?
21772with_gcc=$GCC
21773
21774# Compiler flag to turn off builtin functions.
21775no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21776
21777# Additional compiler flags for building library objects.
21778pic_flag=$lt_lt_prog_compiler_pic
21779
21780# How to pass a linker flag through the compiler.
21781wl=$lt_lt_prog_compiler_wl
21782
21783# Compiler flag to prevent dynamic linking.
21784link_static_flag=$lt_lt_prog_compiler_static
21785
21786# Does compiler simultaneously support -c and -o options?
21787compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21788
21789# Whether or not to add -lc for building shared libraries.
21790build_libtool_need_lc=$archive_cmds_need_lc
21791
21792# Whether or not to disallow shared libs when runtime libs are static.
21793allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21794
21795# Compiler flag to allow reflexive dlopens.
21796export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21797
21798# Compiler flag to generate shared objects directly from archives.
21799whole_archive_flag_spec=$lt_whole_archive_flag_spec
21800
21801# Whether the compiler copes with passing no objects directly.
21802compiler_needs_object=$lt_compiler_needs_object
21803
21804# Create an old-style archive from a shared archive.
21805old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21806
21807# Create a temporary old-style archive to link instead of a shared archive.
21808old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21809
21810# Commands used to build a shared archive.
21811archive_cmds=$lt_archive_cmds
21812archive_expsym_cmds=$lt_archive_expsym_cmds
21813
21814# Commands used to build a loadable module if different from building
21815# a shared archive.
21816module_cmds=$lt_module_cmds
21817module_expsym_cmds=$lt_module_expsym_cmds
21818
21819# Whether we are building with GNU ld or not.
21820with_gnu_ld=$lt_with_gnu_ld
21821
21822# Flag that allows shared libraries with undefined symbols to be built.
21823allow_undefined_flag=$lt_allow_undefined_flag
21824
21825# Flag that enforces no undefined symbols.
21826no_undefined_flag=$lt_no_undefined_flag
21827
21828# Flag to hardcode \$libdir into a binary during linking.
21829# This must work even if \$libdir does not exist
21830hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21831
21832# Whether we need a single "-rpath" flag with a separated argument.
21833hardcode_libdir_separator=$lt_hardcode_libdir_separator
21834
21835# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21836# DIR into the resulting binary.
21837hardcode_direct=$hardcode_direct
21838
21839# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21840# DIR into the resulting binary and the resulting library dependency is
21841# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21842# library is relocated.
21843hardcode_direct_absolute=$hardcode_direct_absolute
21844
21845# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21846# into the resulting binary.
21847hardcode_minus_L=$hardcode_minus_L
21848
21849# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21850# into the resulting binary.
21851hardcode_shlibpath_var=$hardcode_shlibpath_var
21852
21853# Set to "yes" if building a shared library automatically hardcodes DIR
21854# into the library and all subsequent libraries and executables linked
21855# against it.
21856hardcode_automatic=$hardcode_automatic
21857
21858# Set to yes if linker adds runtime paths of dependent libraries
21859# to runtime path list.
21860inherit_rpath=$inherit_rpath
21861
21862# Whether libtool must link a program against all its dependency libraries.
21863link_all_deplibs=$link_all_deplibs
21864
21865# Set to "yes" if exported symbols are required.
21866always_export_symbols=$always_export_symbols
21867
21868# The commands to list exported symbols.
21869export_symbols_cmds=$lt_export_symbols_cmds
21870
21871# Symbols that should not be listed in the preloaded symbols.
21872exclude_expsyms=$lt_exclude_expsyms
21873
21874# Symbols that must always be exported.
21875include_expsyms=$lt_include_expsyms
21876
21877# Commands necessary for linking programs (against libraries) with templates.
21878prelink_cmds=$lt_prelink_cmds
21879
21880# Commands necessary for finishing linking programs.
21881postlink_cmds=$lt_postlink_cmds
21882
21883# Specify filename containing input files.
21884file_list_spec=$lt_file_list_spec
21885
21886# How to hardcode a shared library path into an executable.
21887hardcode_action=$hardcode_action
21888
21889# The directories searched by this compiler when creating a shared library.
21890compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21891
21892# Dependencies to place before and after the objects being linked to
21893# create a shared library.
21894predep_objects=$lt_predep_objects
21895postdep_objects=$lt_postdep_objects
21896predeps=$lt_predeps
21897postdeps=$lt_postdeps
21898
21899# The library search path used internally by the compiler when linking
21900# a shared library.
21901compiler_lib_search_path=$lt_compiler_lib_search_path
21902
21903# ### END LIBTOOL CONFIG
21904
21905_LT_EOF
21906
21907 case $host_os in
21908 aix3*)
21909 cat <<\_LT_EOF >> "$cfgfile"
21910# AIX sometimes has problems with the GCC collect2 program. For some
21911# reason, if we set the COLLECT_NAMES environment variable, the problems
21912# vanish in a puff of smoke.
21913if test "X${COLLECT_NAMES+set}" != Xset; then
21914 COLLECT_NAMES=
21915 export COLLECT_NAMES
21916fi
21917_LT_EOF
21918 ;;
21919 esac
21920
21921
21922ltmain="$ac_aux_dir/ltmain.sh"
21923
21924
21925 # We use sed instead of cat because bash on DJGPP gets confused if
21926 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21927 # text mode, it properly converts lines to CR/LF. This bash problem
21928 # is reportedly fixed, but why not run on old versions too?
21929 sed '$q' "$ltmain" >> "$cfgfile" \
21930 || (rm -f "$cfgfile"; exit 1)
21931
21932 if test x"$xsi_shell" = xyes; then
21933 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21934func_dirname ()\
21935{\
21936\ case ${1} in\
21937\ */*) func_dirname_result="${1%/*}${2}" ;;\
21938\ * ) func_dirname_result="${3}" ;;\
21939\ esac\
21940} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21941 && mv -f "$cfgfile.tmp" "$cfgfile" \
21942 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21943test 0 -eq $? || _lt_function_replace_fail=:
21944
21945
21946 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21947func_basename ()\
21948{\
21949\ func_basename_result="${1##*/}"\
21950} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21951 && mv -f "$cfgfile.tmp" "$cfgfile" \
21952 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21953test 0 -eq $? || _lt_function_replace_fail=:
21954
21955
21956 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21957func_dirname_and_basename ()\
21958{\
21959\ case ${1} in\
21960\ */*) func_dirname_result="${1%/*}${2}" ;;\
21961\ * ) func_dirname_result="${3}" ;;\
21962\ esac\
21963\ func_basename_result="${1##*/}"\
21964} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21965 && mv -f "$cfgfile.tmp" "$cfgfile" \
21966 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21967test 0 -eq $? || _lt_function_replace_fail=:
21968
21969
21970 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21971func_stripname ()\
21972{\
21973\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21974\ # positional parameters, so assign one to ordinary parameter first.\
21975\ func_stripname_result=${3}\
21976\ func_stripname_result=${func_stripname_result#"${1}"}\
21977\ func_stripname_result=${func_stripname_result%"${2}"}\
21978} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21979 && mv -f "$cfgfile.tmp" "$cfgfile" \
21980 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21981test 0 -eq $? || _lt_function_replace_fail=:
21982
21983
21984 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21985func_split_long_opt ()\
21986{\
21987\ func_split_long_opt_name=${1%%=*}\
21988\ func_split_long_opt_arg=${1#*=}\
21989} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21990 && mv -f "$cfgfile.tmp" "$cfgfile" \
21991 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21992test 0 -eq $? || _lt_function_replace_fail=:
21993
21994
21995 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21996func_split_short_opt ()\
21997{\
21998\ func_split_short_opt_arg=${1#??}\
21999\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22000} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22001 && mv -f "$cfgfile.tmp" "$cfgfile" \
22002 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22003test 0 -eq $? || _lt_function_replace_fail=:
22004
22005
22006 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22007func_lo2o ()\
22008{\
22009\ case ${1} in\
22010\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22011\ *) func_lo2o_result=${1} ;;\
22012\ esac\
22013} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22014 && mv -f "$cfgfile.tmp" "$cfgfile" \
22015 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22016test 0 -eq $? || _lt_function_replace_fail=:
22017
22018
22019 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22020func_xform ()\
22021{\
22022 func_xform_result=${1%.*}.lo\
22023} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22024 && mv -f "$cfgfile.tmp" "$cfgfile" \
22025 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22026test 0 -eq $? || _lt_function_replace_fail=:
22027
22028
22029 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22030func_arith ()\
22031{\
22032 func_arith_result=$(( $* ))\
22033} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22034 && mv -f "$cfgfile.tmp" "$cfgfile" \
22035 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22036test 0 -eq $? || _lt_function_replace_fail=:
22037
22038
22039 sed -e '/^func_len ()$/,/^} # func_len /c\
22040func_len ()\
22041{\
22042 func_len_result=${#1}\
22043} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22044 && mv -f "$cfgfile.tmp" "$cfgfile" \
22045 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22046test 0 -eq $? || _lt_function_replace_fail=:
22047
22048fi
22049
22050if test x"$lt_shell_append" = xyes; then
22051 sed -e '/^func_append ()$/,/^} # func_append /c\
22052func_append ()\
22053{\
22054 eval "${1}+=\\${2}"\
22055} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22056 && mv -f "$cfgfile.tmp" "$cfgfile" \
22057 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22058test 0 -eq $? || _lt_function_replace_fail=:
22059
22060
22061 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22062func_append_quoted ()\
22063{\
22064\ func_quote_for_eval "${2}"\
22065\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22066} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22067 && mv -f "$cfgfile.tmp" "$cfgfile" \
22068 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22069test 0 -eq $? || _lt_function_replace_fail=:
22070
22071
22072 # Save a `func_append' function call where possible by direct use of '+='
22073 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22074 && mv -f "$cfgfile.tmp" "$cfgfile" \
22075 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22076 test 0 -eq $? || _lt_function_replace_fail=:
22077else
22078 # Save a `func_append' function call even when '+=' is not available
22079 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22080 && mv -f "$cfgfile.tmp" "$cfgfile" \
22081 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22082 test 0 -eq $? || _lt_function_replace_fail=:
22083fi
22084
22085if test x"$_lt_function_replace_fail" = x":"; then
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22087$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22088fi
22089
22090
22091 mv -f "$cfgfile" "$ofile" ||
22092 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22093 chmod +x "$ofile"
22094
22095
22096 cat <<_LT_EOF >> "$ofile"
22097
22098# ### BEGIN LIBTOOL TAG CONFIG: CXX
22099
22100# The linker used to build libraries.
22101LD=$lt_LD_CXX
22102
22103# How to create reloadable object files.
22104reload_flag=$lt_reload_flag_CXX
22105reload_cmds=$lt_reload_cmds_CXX
22106
22107# Commands used to build an old-style archive.
22108old_archive_cmds=$lt_old_archive_cmds_CXX
22109
22110# A language specific compiler.
22111CC=$lt_compiler_CXX
22112
22113# Is the compiler the GNU compiler?
22114with_gcc=$GCC_CXX
22115
22116# Compiler flag to turn off builtin functions.
22117no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22118
22119# Additional compiler flags for building library objects.
22120pic_flag=$lt_lt_prog_compiler_pic_CXX
22121
22122# How to pass a linker flag through the compiler.
22123wl=$lt_lt_prog_compiler_wl_CXX
22124
22125# Compiler flag to prevent dynamic linking.
22126link_static_flag=$lt_lt_prog_compiler_static_CXX
22127
22128# Does compiler simultaneously support -c and -o options?
22129compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22130
22131# Whether or not to add -lc for building shared libraries.
22132build_libtool_need_lc=$archive_cmds_need_lc_CXX
22133
22134# Whether or not to disallow shared libs when runtime libs are static.
22135allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22136
22137# Compiler flag to allow reflexive dlopens.
22138export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22139
22140# Compiler flag to generate shared objects directly from archives.
22141whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22142
22143# Whether the compiler copes with passing no objects directly.
22144compiler_needs_object=$lt_compiler_needs_object_CXX
22145
22146# Create an old-style archive from a shared archive.
22147old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22148
22149# Create a temporary old-style archive to link instead of a shared archive.
22150old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22151
22152# Commands used to build a shared archive.
22153archive_cmds=$lt_archive_cmds_CXX
22154archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22155
22156# Commands used to build a loadable module if different from building
22157# a shared archive.
22158module_cmds=$lt_module_cmds_CXX
22159module_expsym_cmds=$lt_module_expsym_cmds_CXX
22160
22161# Whether we are building with GNU ld or not.
22162with_gnu_ld=$lt_with_gnu_ld_CXX
22163
22164# Flag that allows shared libraries with undefined symbols to be built.
22165allow_undefined_flag=$lt_allow_undefined_flag_CXX
22166
22167# Flag that enforces no undefined symbols.
22168no_undefined_flag=$lt_no_undefined_flag_CXX
22169
22170# Flag to hardcode \$libdir into a binary during linking.
22171# This must work even if \$libdir does not exist
22172hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22173
22174# Whether we need a single "-rpath" flag with a separated argument.
22175hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22176
22177# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22178# DIR into the resulting binary.
22179hardcode_direct=$hardcode_direct_CXX
22180
22181# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22182# DIR into the resulting binary and the resulting library dependency is
22183# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22184# library is relocated.
22185hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22186
22187# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22188# into the resulting binary.
22189hardcode_minus_L=$hardcode_minus_L_CXX
22190
22191# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22192# into the resulting binary.
22193hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22194
22195# Set to "yes" if building a shared library automatically hardcodes DIR
22196# into the library and all subsequent libraries and executables linked
22197# against it.
22198hardcode_automatic=$hardcode_automatic_CXX
22199
22200# Set to yes if linker adds runtime paths of dependent libraries
22201# to runtime path list.
22202inherit_rpath=$inherit_rpath_CXX
22203
22204# Whether libtool must link a program against all its dependency libraries.
22205link_all_deplibs=$link_all_deplibs_CXX
22206
22207# Set to "yes" if exported symbols are required.
22208always_export_symbols=$always_export_symbols_CXX
22209
22210# The commands to list exported symbols.
22211export_symbols_cmds=$lt_export_symbols_cmds_CXX
22212
22213# Symbols that should not be listed in the preloaded symbols.
22214exclude_expsyms=$lt_exclude_expsyms_CXX
22215
22216# Symbols that must always be exported.
22217include_expsyms=$lt_include_expsyms_CXX
22218
22219# Commands necessary for linking programs (against libraries) with templates.
22220prelink_cmds=$lt_prelink_cmds_CXX
22221
22222# Commands necessary for finishing linking programs.
22223postlink_cmds=$lt_postlink_cmds_CXX
22224
22225# Specify filename containing input files.
22226file_list_spec=$lt_file_list_spec_CXX
22227
22228# How to hardcode a shared library path into an executable.
22229hardcode_action=$hardcode_action_CXX
22230
22231# The directories searched by this compiler when creating a shared library.
22232compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22233
22234# Dependencies to place before and after the objects being linked to
22235# create a shared library.
22236predep_objects=$lt_predep_objects_CXX
22237postdep_objects=$lt_postdep_objects_CXX
22238predeps=$lt_predeps_CXX
22239postdeps=$lt_postdeps_CXX
22240
22241# The library search path used internally by the compiler when linking
22242# a shared library.
22243compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22244
22245# ### END LIBTOOL TAG CONFIG: CXX
22246_LT_EOF
22247
22248 ;;
22249 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22250 # Older Autoconf quotes --file arguments for eval, but not when files
22251 # are listed without --file. Let's play safe and only enable the eval
22252 # if we detect the quoting.
22253 case $CONFIG_FILES in
22254 *\'*) eval set x "$CONFIG_FILES" ;;
22255 *) set x $CONFIG_FILES ;;
22256 esac
22257 shift
22258 for mf
22259 do
22260 # Strip MF so we end up with the name of the file.
22261 mf=`echo "$mf" | sed -e 's/:.*$//'`
22262 # Check whether this is an Automake generated Makefile or not.
22263 # We used to match only the files named 'Makefile.in', but
22264 # some people rename them; so instead we look at the file content.
22265 # Grep'ing the first line is not enough: some people post-process
22266 # each Makefile.in and add a new line on top of each file to say so.
22267 # Grep'ing the whole file is not good either: AIX grep has a line
22268 # limit of 2048, but all sed's we know have understand at least 4000.
22269 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22270 dirpart=`$as_dirname -- "$mf" ||
22271$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22272 X"$mf" : 'X\(//\)[^/]' \| \
22273 X"$mf" : 'X\(//\)$' \| \
22274 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22275$as_echo X"$mf" |
22276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22277 s//\1/
22278 q
22279 }
22280 /^X\(\/\/\)[^/].*/{
22281 s//\1/
22282 q
22283 }
22284 /^X\(\/\/\)$/{
22285 s//\1/
22286 q
22287 }
22288 /^X\(\/\).*/{
22289 s//\1/
22290 q
22291 }
22292 s/.*/./; q'`
22293 else
22294 continue
22295 fi
22296 # Extract the definition of DEPDIR, am__include, and am__quote
22297 # from the Makefile without running 'make'.
22298 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22299 test -z "$DEPDIR" && continue
22300 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22301 test -z "$am__include" && continue
22302 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22303 # Find all dependency output files, they are included files with
22304 # $(DEPDIR) in their names. We invoke sed twice because it is the
22305 # simplest approach to changing $(DEPDIR) to its actual value in the
22306 # expansion.
22307 for file in `sed -n "
22308 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22309 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22310 # Make sure the directory exists.
22311 test -f "$dirpart/$file" && continue
22312 fdir=`$as_dirname -- "$file" ||
22313$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22314 X"$file" : 'X\(//\)[^/]' \| \
22315 X"$file" : 'X\(//\)$' \| \
22316 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22317$as_echo X"$file" |
22318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22319 s//\1/
22320 q
22321 }
22322 /^X\(\/\/\)[^/].*/{
22323 s//\1/
22324 q
22325 }
22326 /^X\(\/\/\)$/{
22327 s//\1/
22328 q
22329 }
22330 /^X\(\/\).*/{
22331 s//\1/
22332 q
22333 }
22334 s/.*/./; q'`
22335 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22336 # echo "creating $dirpart/$file"
22337 echo '# dummy' > "$dirpart/$file"
22338 done
22339 done
22340}
22341 ;;
22342
22343 esac
22344done # for ac_tag
22345
22346
22347as_fn_exit 0
22348_ACEOF
22349ac_clean_files=$ac_clean_files_save
22350
22351test $ac_write_fail = 0 ||
22352 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22353
22354
22355# configure is writing to config.log, and then calls config.status.
22356# config.status does its own redirection, appending to config.log.
22357# Unfortunately, on DOS this fails, as config.log is still kept open
22358# by configure, so config.status won't be able to write to it; its
22359# output is simply discarded. So we exec the FD to /dev/null,
22360# effectively closing config.log, so it can be properly (re)opened and
22361# appended to by config.status. When coming back to configure, we
22362# need to make the FD available again.
22363if test "$no_create" != yes; then
22364 ac_cs_success=:
22365 ac_config_status_args=
22366 test "$silent" = yes &&
22367 ac_config_status_args="$ac_config_status_args --quiet"
22368 exec 5>/dev/null
22369 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22370 exec 5>>config.log
22371 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22372 # would make configure fail if this is the last instruction.
22373 $ac_cs_success || as_fn_exit 1
22374fi
22375if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22377$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22378fi
22379
22380