release
[tango-nonfree.git] / configure
blob0d86bf1ad21fbb7ddf3dc74f26743c32a597b249
1 #! /bin/sh
2 # From configure.ac Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for Tango 9.2.5a.
6 # Report bugs to <info@tango-controls.org>.
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
33 esac
37 as_nl='
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
92 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171 else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
177 esac
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 else
194 exitcode=1; echo positional parameters were not saved.
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test \$(( 1 + 1 )) = 2 || exit 1
204 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
205 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
208 PATH=/empty FPATH=/empty; export PATH FPATH
209 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
210 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
212 as_have_required=yes
213 else
214 as_have_required=no
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 else
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 as_found=false
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 as_found=:
226 case $as_dir in #(
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235 break 2
238 done;;
239 esac
240 as_found=false
241 done
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi; }
246 IFS=$as_save_IFS
249 if test "x$CONFIG_SHELL" != x; then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 $as_echo "$0: Please tell bug-autoconf@gnu.org and
279 $0: info@tango-controls.org about your system, including
280 $0: any error possibly output before this message. Then
281 $0: install a modern shell, or manually run the script
282 $0: under such a shell if you do have one."
284 exit 1
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
302 { eval $1=; unset $1;}
304 as_unset=as_fn_unset
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
311 return $1
312 } # as_fn_set_status
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
355 /^X\(\/\/\)$/{
356 s//\1/
359 /^X\(\/\).*/{
360 s//\1/
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
370 } # as_fn_mkdir_p
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
388 eval $1+=\$2
390 else
391 as_fn_append ()
393 eval $1=\$$1\$2
395 fi # as_fn_append
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
405 as_val=$(( $* ))
407 else
408 as_fn_arith ()
410 as_val=`expr "$@" || test $? -eq 1`
412 fi # as_fn_arith
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
459 /^X\/\(\/\/\)$/{
460 s//\1/
463 /^X\/\(\/\).*/{
464 s//\1/
467 s/.*/./; q'`
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
490 :lineno
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
522 ECHO_N='-n';;
523 esac
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
546 else
547 as_ln_s='cp -pR'
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568 SHELL=${CONFIG_SHELL-/bin/sh}
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580 # Initializations.
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
591 # Identity of this package.
592 PACKAGE_NAME='Tango'
593 PACKAGE_TARNAME='tango'
594 PACKAGE_VERSION='9.2.5a'
595 PACKAGE_STRING='Tango 9.2.5a'
596 PACKAGE_BUGREPORT='info@tango-controls.org'
597 PACKAGE_URL=''
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
635 enable_option_checking=no
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 subdirs
641 JNI_INCL_DIRS
642 DATADIR
643 VERSION_INFO
644 ac_aux_dir
645 TANGO_DB_CREATE_ENABLED_FALSE
646 TANGO_DB_CREATE_ENABLED_TRUE
647 TANGO_DB_SERVER_ENABLED_FALSE
648 TANGO_DB_SERVER_ENABLED_TRUE
649 JPEG_MMX_LIB_CXXFLAGS
650 JPEG_LIB_CXXFLAGS
651 DB_LDLIBS
652 DB_CFLAGS
653 DB_LDFLAGS
654 MARIADBCLIENT_LIBS
655 MARIADBCLIENT_CFLAGS
656 MARIADBCLIENT_LDFLAGS
657 MYSQL_HOST
658 MYSQL_ADMIN_PASSWD
659 MYSQL_ADMIN
660 MYSQL
661 MYSQLCLIENT_LIBS
662 MYSQLCLIENT_CFLAGS
663 MYSQLCLIENT_LDFLAGS
664 TANGO_DB_NAME
665 TANGO_RC_FILE
666 ALLOCA
667 DARWIN_ENABLED_FALSE
668 DARWIN_ENABLED_TRUE
669 ZMQ_PREFIX
670 LIBZMQ_LIBS
671 LIBZMQ_CFLAGS
672 HAVE_ORB_IDL
673 ORB_COSNAMING_LIB
674 IDL_TIE_CPP_SUFFIX
675 IDL_TIE_H1_SUFFIX
676 IDL_TIE_H_SUFFIX
677 IDL_SRV_OBJ_SUFFIX
678 IDL_SRV_O
679 IDL_SRV_CPP_SUFFIX
680 IDL_SRV_CPP
681 IDL_SRV_H1_SUFFIX
682 IDL_SRV_H_SUFFIX
683 IDL_SRV_H
684 IDL_CLN_OBJ_SUFFIX
685 IDL_CLN_O
686 IDL_CLN_CPP_SUFFIX
687 IDL_CLN_CPP
688 IDL_CLN_H1_SUFFIX
689 IDL_CLN_H_SUFFIX
690 IDL_CLN_H
691 IDL_H1_SUFFIX
692 IDL_H_SUFFIX
693 ORB_INCLUDE_PREFIX
694 IDLFLAGS
695 IDLCXX
698 ORB_PREFIX
699 CORBA_INCLUDES
700 omniCOS4_LIBS
701 omniCOS4_CFLAGS
702 omniORB4_LIBS
703 omniORB4_CFLAGS
704 PKG_CONFIG_LIBDIR
705 PKG_CONFIG_PATH
706 PKG_CONFIG
707 IDLCXXFLAGS
708 ZLIB_CPPFLAGS
709 ZLIB_LIBS
710 ZLIB_LDFLAGS
711 OTOOL64
712 OTOOL
713 LIPO
714 NMEDIT
715 DSYMUTIL
716 MANIFEST_TOOL
717 RANLIB
718 ac_ct_AR
720 DLLTOOL
721 OBJDUMP
723 ac_ct_DUMPBIN
724 DUMPBIN
726 FGREP
728 LIBTOOL
729 TANGO_DOC_ENABLED_FALSE
730 TANGO_DOC_ENABLED_TRUE
731 TANGO_FIG2DEV_ENABLED_FALSE
732 TANGO_FIG2DEV_ENABLED_TRUE
733 FIG2DEV
734 TANGO_LYX_ENABLED_FALSE
735 TANGO_LYX_ENABLED_TRUE
737 DOXYGEN
738 TANGO_JAVA_ENABLED_FALSE
739 TANGO_JAVA_ENABLED_TRUE
740 JAVA
741 CPP_ELEVEN
742 HAVE_CXX11
743 EGREP
744 GREP
745 LN_S
747 am__fastdepCC_FALSE
748 am__fastdepCC_TRUE
749 CCDEPMODE
750 ac_ct_CC
751 CFLAGS
753 CXXCPP
754 am__fastdepCXX_FALSE
755 am__fastdepCXX_TRUE
756 CXXDEPMODE
757 am__nodep
758 AMDEPBACKSLASH
759 AMDEP_FALSE
760 AMDEP_TRUE
761 am__quote
762 am__include
763 DEPDIR
764 OBJEXT
765 EXEEXT
766 ac_ct_CXX
767 CPPFLAGS
768 LDFLAGS
769 CXXFLAGS
771 AM_BACKSLASH
772 AM_DEFAULT_VERBOSITY
773 AM_DEFAULT_V
774 AM_V
775 am__untar
776 am__tar
777 AMTAR
778 am__leading_dot
779 SET_MAKE
781 mkdir_p
782 MKDIR_P
783 INSTALL_STRIP_PROGRAM
784 STRIP
785 install_sh
786 MAKEINFO
787 AUTOHEADER
788 AUTOMAKE
789 AUTOCONF
790 ACLOCAL
791 VERSION
792 PACKAGE
793 CYGPATH_W
794 am__isrc
795 INSTALL_DATA
796 INSTALL_SCRIPT
797 INSTALL_PROGRAM
798 host_os
799 host_vendor
800 host_cpu
801 host
802 build_os
803 build_vendor
804 build_cpu
805 build
806 MAINT
807 MAINTAINER_MODE_FALSE
808 MAINTAINER_MODE_TRUE
809 target_alias
810 host_alias
811 build_alias
812 LIBS
813 ECHO_T
814 ECHO_N
815 ECHO_C
816 DEFS
817 mandir
818 localedir
819 libdir
820 psdir
821 pdfdir
822 dvidir
823 htmldir
824 infodir
825 docdir
826 oldincludedir
827 includedir
828 localstatedir
829 sharedstatedir
830 sysconfdir
831 datadir
832 datarootdir
833 libexecdir
834 sbindir
835 bindir
836 program_transform_name
837 prefix
838 exec_prefix
839 PACKAGE_URL
840 PACKAGE_BUGREPORT
841 PACKAGE_STRING
842 PACKAGE_VERSION
843 PACKAGE_TARNAME
844 PACKAGE_NAME
845 PATH_SEPARATOR
846 SHELL'
847 ac_subst_files=''
848 ac_user_opts='
849 enable_option_checking
850 enable_maintainer_mode
851 enable_silent_rules
852 enable_dependency_tracking
853 enable_java
854 enable_mariadb
855 with_java
856 with_doxygen
857 with_lyx
858 with_fig2dev
859 enable_shared
860 enable_static
861 with_pic
862 enable_fast_install
863 with_gnu_ld
864 with_sysroot
865 enable_libtool_lock
866 with_zlib
867 with_omni
868 with_zmq
869 enable_dbserver
870 with_tango_rc_file
871 with_tango_db_name
872 with_mysqlclient_prefix
873 with_mysqlclient_include
874 with_mysqlclient_lib
875 enable_dbcreate
876 with_mysql_ho
877 with_mysql_admin
878 with_mysql_admin_passwd
879 with_mariadbclient_prefix
880 with_mariadbclient_include
881 with_mariadbclient_lib
882 enable_jpegmmx
884 ac_precious_vars='build_alias
885 host_alias
886 target_alias
888 CXXFLAGS
889 LDFLAGS
890 LIBS
891 CPPFLAGS
893 CXXCPP
895 CFLAGS
897 PKG_CONFIG
898 PKG_CONFIG_PATH
899 PKG_CONFIG_LIBDIR
900 omniORB4_CFLAGS
901 omniORB4_LIBS
902 omniCOS4_CFLAGS
903 omniCOS4_LIBS
904 LIBZMQ_CFLAGS
905 LIBZMQ_LIBS'
906 ac_subdirs_all='lib/cpp/log4tango'
908 # Initialize some variables set by options.
909 ac_init_help=
910 ac_init_version=false
911 ac_unrecognized_opts=
912 ac_unrecognized_sep=
913 # The variables have the same names as the options, with
914 # dashes changed to underlines.
915 cache_file=/dev/null
916 exec_prefix=NONE
917 no_create=
918 no_recursion=
919 prefix=NONE
920 program_prefix=NONE
921 program_suffix=NONE
922 program_transform_name=s,x,x,
923 silent=
924 site=
925 srcdir=
926 verbose=
927 x_includes=NONE
928 x_libraries=NONE
930 # Installation directory options.
931 # These are left unexpanded so users can "make install exec_prefix=/foo"
932 # and all the variables that are supposed to be based on exec_prefix
933 # by default will actually change.
934 # Use braces instead of parens because sh, perl, etc. also accept them.
935 # (The list follows the same order as the GNU Coding Standards.)
936 bindir='${exec_prefix}/bin'
937 sbindir='${exec_prefix}/sbin'
938 libexecdir='${exec_prefix}/libexec'
939 datarootdir='${prefix}/share'
940 datadir='${datarootdir}'
941 sysconfdir='${prefix}/etc'
942 sharedstatedir='${prefix}/com'
943 localstatedir='${prefix}/var'
944 includedir='${prefix}/include'
945 oldincludedir='/usr/include'
946 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
947 infodir='${datarootdir}/info'
948 htmldir='${docdir}'
949 dvidir='${docdir}'
950 pdfdir='${docdir}'
951 psdir='${docdir}'
952 libdir='${exec_prefix}/lib'
953 localedir='${datarootdir}/locale'
954 mandir='${datarootdir}/man'
956 ac_prev=
957 ac_dashdash=
958 for ac_option
960 # If the previous option needs an argument, assign it.
961 if test -n "$ac_prev"; then
962 eval $ac_prev=\$ac_option
963 ac_prev=
964 continue
967 case $ac_option in
968 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969 *=) ac_optarg= ;;
970 *) ac_optarg=yes ;;
971 esac
973 # Accept the important Cygnus configure options, so we can diagnose typos.
975 case $ac_dashdash$ac_option in
977 ac_dashdash=yes ;;
979 -bindir | --bindir | --bindi | --bind | --bin | --bi)
980 ac_prev=bindir ;;
981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
982 bindir=$ac_optarg ;;
984 -build | --build | --buil | --bui | --bu)
985 ac_prev=build_alias ;;
986 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
987 build_alias=$ac_optarg ;;
989 -cache-file | --cache-file | --cache-fil | --cache-fi \
990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991 ac_prev=cache_file ;;
992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
994 cache_file=$ac_optarg ;;
996 --config-cache | -C)
997 cache_file=config.cache ;;
999 -datadir | --datadir | --datadi | --datad)
1000 ac_prev=datadir ;;
1001 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1002 datadir=$ac_optarg ;;
1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005 | --dataroo | --dataro | --datar)
1006 ac_prev=datarootdir ;;
1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009 datarootdir=$ac_optarg ;;
1011 -disable-* | --disable-*)
1012 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1015 as_fn_error $? "invalid feature name: $ac_useropt"
1016 ac_useropt_orig=$ac_useropt
1017 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1020 "enable_$ac_useropt"
1021 "*) ;;
1022 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1023 ac_unrecognized_sep=', ';;
1024 esac
1025 eval enable_$ac_useropt=no ;;
1027 -docdir | --docdir | --docdi | --doc | --do)
1028 ac_prev=docdir ;;
1029 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1030 docdir=$ac_optarg ;;
1032 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1033 ac_prev=dvidir ;;
1034 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1035 dvidir=$ac_optarg ;;
1037 -enable-* | --enable-*)
1038 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1041 as_fn_error $? "invalid feature name: $ac_useropt"
1042 ac_useropt_orig=$ac_useropt
1043 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1046 "enable_$ac_useropt"
1047 "*) ;;
1048 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1049 ac_unrecognized_sep=', ';;
1050 esac
1051 eval enable_$ac_useropt=\$ac_optarg ;;
1053 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1054 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1055 | --exec | --exe | --ex)
1056 ac_prev=exec_prefix ;;
1057 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1058 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1059 | --exec=* | --exe=* | --ex=*)
1060 exec_prefix=$ac_optarg ;;
1062 -gas | --gas | --ga | --g)
1063 # Obsolete; use --with-gas.
1064 with_gas=yes ;;
1066 -help | --help | --hel | --he | -h)
1067 ac_init_help=long ;;
1068 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1069 ac_init_help=recursive ;;
1070 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1071 ac_init_help=short ;;
1073 -host | --host | --hos | --ho)
1074 ac_prev=host_alias ;;
1075 -host=* | --host=* | --hos=* | --ho=*)
1076 host_alias=$ac_optarg ;;
1078 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1079 ac_prev=htmldir ;;
1080 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1081 | --ht=*)
1082 htmldir=$ac_optarg ;;
1084 -includedir | --includedir | --includedi | --included | --include \
1085 | --includ | --inclu | --incl | --inc)
1086 ac_prev=includedir ;;
1087 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1088 | --includ=* | --inclu=* | --incl=* | --inc=*)
1089 includedir=$ac_optarg ;;
1091 -infodir | --infodir | --infodi | --infod | --info | --inf)
1092 ac_prev=infodir ;;
1093 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1094 infodir=$ac_optarg ;;
1096 -libdir | --libdir | --libdi | --libd)
1097 ac_prev=libdir ;;
1098 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1099 libdir=$ac_optarg ;;
1101 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1102 | --libexe | --libex | --libe)
1103 ac_prev=libexecdir ;;
1104 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1105 | --libexe=* | --libex=* | --libe=*)
1106 libexecdir=$ac_optarg ;;
1108 -localedir | --localedir | --localedi | --localed | --locale)
1109 ac_prev=localedir ;;
1110 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1111 localedir=$ac_optarg ;;
1113 -localstatedir | --localstatedir | --localstatedi | --localstated \
1114 | --localstate | --localstat | --localsta | --localst | --locals)
1115 ac_prev=localstatedir ;;
1116 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1117 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1118 localstatedir=$ac_optarg ;;
1120 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1121 ac_prev=mandir ;;
1122 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1123 mandir=$ac_optarg ;;
1125 -nfp | --nfp | --nf)
1126 # Obsolete; use --without-fp.
1127 with_fp=no ;;
1129 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1130 | --no-cr | --no-c | -n)
1131 no_create=yes ;;
1133 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1134 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1135 no_recursion=yes ;;
1137 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1138 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1139 | --oldin | --oldi | --old | --ol | --o)
1140 ac_prev=oldincludedir ;;
1141 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1142 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1143 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1144 oldincludedir=$ac_optarg ;;
1146 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1147 ac_prev=prefix ;;
1148 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1149 prefix=$ac_optarg ;;
1151 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1152 | --program-pre | --program-pr | --program-p)
1153 ac_prev=program_prefix ;;
1154 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1155 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1156 program_prefix=$ac_optarg ;;
1158 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1159 | --program-suf | --program-su | --program-s)
1160 ac_prev=program_suffix ;;
1161 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1162 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1163 program_suffix=$ac_optarg ;;
1165 -program-transform-name | --program-transform-name \
1166 | --program-transform-nam | --program-transform-na \
1167 | --program-transform-n | --program-transform- \
1168 | --program-transform | --program-transfor \
1169 | --program-transfo | --program-transf \
1170 | --program-trans | --program-tran \
1171 | --progr-tra | --program-tr | --program-t)
1172 ac_prev=program_transform_name ;;
1173 -program-transform-name=* | --program-transform-name=* \
1174 | --program-transform-nam=* | --program-transform-na=* \
1175 | --program-transform-n=* | --program-transform-=* \
1176 | --program-transform=* | --program-transfor=* \
1177 | --program-transfo=* | --program-transf=* \
1178 | --program-trans=* | --program-tran=* \
1179 | --progr-tra=* | --program-tr=* | --program-t=*)
1180 program_transform_name=$ac_optarg ;;
1182 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1183 ac_prev=pdfdir ;;
1184 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1185 pdfdir=$ac_optarg ;;
1187 -psdir | --psdir | --psdi | --psd | --ps)
1188 ac_prev=psdir ;;
1189 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1190 psdir=$ac_optarg ;;
1192 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1193 | -silent | --silent | --silen | --sile | --sil)
1194 silent=yes ;;
1196 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1197 ac_prev=sbindir ;;
1198 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1199 | --sbi=* | --sb=*)
1200 sbindir=$ac_optarg ;;
1202 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1203 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1204 | --sharedst | --shareds | --shared | --share | --shar \
1205 | --sha | --sh)
1206 ac_prev=sharedstatedir ;;
1207 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1208 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1209 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1210 | --sha=* | --sh=*)
1211 sharedstatedir=$ac_optarg ;;
1213 -site | --site | --sit)
1214 ac_prev=site ;;
1215 -site=* | --site=* | --sit=*)
1216 site=$ac_optarg ;;
1218 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1219 ac_prev=srcdir ;;
1220 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1221 srcdir=$ac_optarg ;;
1223 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1224 | --syscon | --sysco | --sysc | --sys | --sy)
1225 ac_prev=sysconfdir ;;
1226 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1227 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1228 sysconfdir=$ac_optarg ;;
1230 -target | --target | --targe | --targ | --tar | --ta | --t)
1231 ac_prev=target_alias ;;
1232 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1233 target_alias=$ac_optarg ;;
1235 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1236 verbose=yes ;;
1238 -version | --version | --versio | --versi | --vers | -V)
1239 ac_init_version=: ;;
1241 -with-* | --with-*)
1242 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245 as_fn_error $? "invalid package name: $ac_useropt"
1246 ac_useropt_orig=$ac_useropt
1247 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 case $ac_user_opts in
1250 "with_$ac_useropt"
1251 "*) ;;
1252 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1253 ac_unrecognized_sep=', ';;
1254 esac
1255 eval with_$ac_useropt=\$ac_optarg ;;
1257 -without-* | --without-*)
1258 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261 as_fn_error $? "invalid package name: $ac_useropt"
1262 ac_useropt_orig=$ac_useropt
1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1266 "with_$ac_useropt"
1267 "*) ;;
1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1269 ac_unrecognized_sep=', ';;
1270 esac
1271 eval with_$ac_useropt=no ;;
1273 --x)
1274 # Obsolete; use --with-x.
1275 with_x=yes ;;
1277 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1278 | --x-incl | --x-inc | --x-in | --x-i)
1279 ac_prev=x_includes ;;
1280 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1281 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1282 x_includes=$ac_optarg ;;
1284 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1285 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1286 ac_prev=x_libraries ;;
1287 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1288 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1289 x_libraries=$ac_optarg ;;
1291 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1292 Try \`$0 --help' for more information"
1295 *=*)
1296 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1297 # Reject names that are not valid shell variable names.
1298 case $ac_envvar in #(
1299 '' | [0-9]* | *[!_$as_cr_alnum]* )
1300 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1301 esac
1302 eval $ac_envvar=\$ac_optarg
1303 export $ac_envvar ;;
1306 # FIXME: should be removed in autoconf 3.0.
1307 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1308 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1309 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1310 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1313 esac
1314 done
1316 if test -n "$ac_prev"; then
1317 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1318 as_fn_error $? "missing argument to $ac_option"
1321 if test -n "$ac_unrecognized_opts"; then
1322 case $enable_option_checking in
1323 no) ;;
1324 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1325 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1326 esac
1329 # Check all directory arguments for consistency.
1330 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1331 datadir sysconfdir sharedstatedir localstatedir includedir \
1332 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1333 libdir localedir mandir
1335 eval ac_val=\$$ac_var
1336 # Remove trailing slashes.
1337 case $ac_val in
1338 */ )
1339 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1340 eval $ac_var=\$ac_val;;
1341 esac
1342 # Be sure to have absolute directory names.
1343 case $ac_val in
1344 [\\/$]* | ?:[\\/]* ) continue;;
1345 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1346 esac
1347 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1348 done
1350 # There might be people who depend on the old broken behavior: `$host'
1351 # used to hold the argument of --host etc.
1352 # FIXME: To remove some day.
1353 build=$build_alias
1354 host=$host_alias
1355 target=$target_alias
1357 # FIXME: To remove some day.
1358 if test "x$host_alias" != x; then
1359 if test "x$build_alias" = x; then
1360 cross_compiling=maybe
1361 elif test "x$build_alias" != "x$host_alias"; then
1362 cross_compiling=yes
1366 ac_tool_prefix=
1367 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1369 test "$silent" = yes && exec 6>/dev/null
1372 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1373 ac_ls_di=`ls -di .` &&
1374 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1375 as_fn_error $? "working directory cannot be determined"
1376 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1377 as_fn_error $? "pwd does not report name of working directory"
1380 # Find the source files, if location was not specified.
1381 if test -z "$srcdir"; then
1382 ac_srcdir_defaulted=yes
1383 # Try the directory containing this script, then the parent directory.
1384 ac_confdir=`$as_dirname -- "$as_myself" ||
1385 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1386 X"$as_myself" : 'X\(//\)[^/]' \| \
1387 X"$as_myself" : 'X\(//\)$' \| \
1388 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1389 $as_echo X"$as_myself" |
1390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1391 s//\1/
1394 /^X\(\/\/\)[^/].*/{
1395 s//\1/
1398 /^X\(\/\/\)$/{
1399 s//\1/
1402 /^X\(\/\).*/{
1403 s//\1/
1406 s/.*/./; q'`
1407 srcdir=$ac_confdir
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1409 srcdir=..
1411 else
1412 ac_srcdir_defaulted=no
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1416 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1418 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1419 ac_abs_confdir=`(
1420 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1421 pwd)`
1422 # When building in place, set srcdir=.
1423 if test "$ac_abs_confdir" = "$ac_pwd"; then
1424 srcdir=.
1426 # Remove unnecessary trailing slashes from srcdir.
1427 # Double slashes in file names in object file debugging info
1428 # mess up M-x gdb in Emacs.
1429 case $srcdir in
1430 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1431 esac
1432 for ac_var in $ac_precious_vars; do
1433 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1434 eval ac_env_${ac_var}_value=\$${ac_var}
1435 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1437 done
1440 # Report the --help message.
1442 if test "$ac_init_help" = "long"; then
1443 # Omit some internal or obsolete options to make the list less imposing.
1444 # This message is too long to be a string in the A/UX 3.1 sh.
1445 cat <<_ACEOF
1446 \`configure' configures Tango 9.2.5a to adapt to many kinds of systems.
1448 Usage: $0 [OPTION]... [VAR=VALUE]...
1450 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1451 VAR=VALUE. See below for descriptions of some of the useful variables.
1453 Defaults for the options are specified in brackets.
1455 Configuration:
1456 -h, --help display this help and exit
1457 --help=short display options specific to this package
1458 --help=recursive display the short help of all the included packages
1459 -V, --version display version information and exit
1460 -q, --quiet, --silent do not print \`checking ...' messages
1461 --cache-file=FILE cache test results in FILE [disabled]
1462 -C, --config-cache alias for \`--cache-file=config.cache'
1463 -n, --no-create do not create output files
1464 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1466 Installation directories:
1467 --prefix=PREFIX install architecture-independent files in PREFIX
1468 [$ac_default_prefix]
1469 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1470 [PREFIX]
1472 By default, \`make install' will install all the files in
1473 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1474 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1475 for instance \`--prefix=\$HOME'.
1477 For better control, use the options below.
1479 Fine tuning of the installation directories:
1480 --bindir=DIR user executables [EPREFIX/bin]
1481 --sbindir=DIR system admin executables [EPREFIX/sbin]
1482 --libexecdir=DIR program executables [EPREFIX/libexec]
1483 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1484 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1485 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1486 --libdir=DIR object code libraries [EPREFIX/lib]
1487 --includedir=DIR C header files [PREFIX/include]
1488 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1489 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1490 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1491 --infodir=DIR info documentation [DATAROOTDIR/info]
1492 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1493 --mandir=DIR man documentation [DATAROOTDIR/man]
1494 --docdir=DIR documentation root [DATAROOTDIR/doc/tango]
1495 --htmldir=DIR html documentation [DOCDIR]
1496 --dvidir=DIR dvi documentation [DOCDIR]
1497 --pdfdir=DIR pdf documentation [DOCDIR]
1498 --psdir=DIR ps documentation [DOCDIR]
1499 _ACEOF
1501 cat <<\_ACEOF
1503 Program names:
1504 --program-prefix=PREFIX prepend PREFIX to installed program names
1505 --program-suffix=SUFFIX append SUFFIX to installed program names
1506 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1508 System types:
1509 --build=BUILD configure for building on BUILD [guessed]
1510 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1511 _ACEOF
1514 if test -n "$ac_init_help"; then
1515 case $ac_init_help in
1516 short | recursive ) echo "Configuration of Tango 9.2.5a:";;
1517 esac
1518 cat <<\_ACEOF
1520 Optional Features:
1521 --disable-option-checking ignore unrecognized --enable/--with options
1522 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1523 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1524 --enable-maintainer-mode enable make rules and dependencies not useful
1525 (and sometimes confusing) to the casual installer
1526 --enable-silent-rules less verbose build output (undo: `make V=1')
1527 --disable-silent-rules verbose build output (undo: `make V=0')
1528 --disable-dependency-tracking speeds up one-time build
1529 --enable-dependency-tracking do not reject slow dependency extractors
1530 --enable-java enable installation of Java applications
1531 --enable-mariadb enable mariadb instead of mysql
1532 --enable-shared[=PKGS] build shared libraries [default=yes]
1533 --enable-static[=PKGS] build static libraries [default=yes]
1534 --enable-fast-install[=PKGS]
1535 optimize for fast installation [default=yes]
1536 --disable-libtool-lock avoid locking (might break parallel builds)
1537 --enable-dbserver enable installation of Tango database server
1538 --enable-dbcreate enable an creation of the Tango database schema
1539 --disable-jpegmmx disable jpeg mmx optimization
1541 Optional Packages:
1542 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1543 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1544 --with-java path to java interpreter
1545 --with-doxygen path to doxygen utility
1546 --with-lyx path to LyX utility
1547 --with-fig2dev path to fig2dev utility
1548 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1549 both]
1550 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1551 --with-sysroot=DIR Search for dependent libraries within DIR
1552 (or the compiler's sysroot if not specified).
1553 --with-zlib=DIR root directory path of zlib installation defaults to
1554 /usr/local or /usr if not found in /usr/local
1555 --with-omni prefix to omniORB installation (default: $OMNI_ROOT)
1556 --with-zmq prefix to ZMQ installation
1557 --with-tango-rc-file location of the tango rc file (default /etc/tangorc)
1558 --with-tango-db-name the name of the tango database (default tango)
1559 --with-mysqlclient-prefix=PFX
1560 Prefix where mysqlclient is installed
1561 --with-mysqlclient-include=DIR
1562 Directory pointing to mysqlclient include files
1563 --with-mysqlclient-lib=LIB
1564 Directory pointing to mysqlclient library (Note:
1565 -include and -lib do override paths found with
1566 -prefix)
1567 --with-mysql-ho the host of the mysql database (default: <blank>)
1568 --with-mysql-admin super user of your mysql database (default: <blank>)
1569 --with-mysql-admin-passwd
1570 super user password of your mysql database (default:
1571 <blank>)
1572 --with-mariadbclient-prefix=PFX
1573 Prefix where mariadbclient is installed
1574 --with-mariadbclient-include=DIR
1575 Directory pointing to mariadbclient include files
1576 --with-mariadbclient-lib=LIB
1577 Directory pointing to mariadbclient library (Note:
1578 -include and -lib do override paths found with
1579 -prefix)
1581 Some influential environment variables:
1582 CXX C++ compiler command
1583 CXXFLAGS C++ compiler flags
1584 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1585 nonstandard directory <lib dir>
1586 LIBS libraries to pass to the linker, e.g. -l<library>
1587 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1588 you have headers in a nonstandard directory <include dir>
1589 CXXCPP C++ preprocessor
1590 CC C compiler command
1591 CFLAGS C compiler flags
1592 CPP C preprocessor
1593 PKG_CONFIG path to pkg-config utility
1594 PKG_CONFIG_PATH
1595 directories to add to pkg-config's search path
1596 PKG_CONFIG_LIBDIR
1597 path overriding pkg-config's built-in search path
1598 omniORB4_CFLAGS
1599 C compiler flags for omniORB4, overriding pkg-config
1600 omniORB4_LIBS
1601 linker flags for omniORB4, overriding pkg-config
1602 omniCOS4_CFLAGS
1603 C compiler flags for omniCOS4, overriding pkg-config
1604 omniCOS4_LIBS
1605 linker flags for omniCOS4, overriding pkg-config
1606 LIBZMQ_CFLAGS
1607 C compiler flags for LIBZMQ, overriding pkg-config
1608 LIBZMQ_LIBS linker flags for LIBZMQ, overriding pkg-config
1610 Use these variables to override the choices made by `configure' or to help
1611 it to find libraries and programs with nonstandard names/locations.
1613 Report bugs to <info@tango-controls.org>.
1614 _ACEOF
1615 ac_status=$?
1618 if test "$ac_init_help" = "recursive"; then
1619 # If there are subdirs, report their specific --help.
1620 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1621 test -d "$ac_dir" ||
1622 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1623 continue
1624 ac_builddir=.
1626 case "$ac_dir" in
1627 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1629 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1630 # A ".." for each directory in $ac_dir_suffix.
1631 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1632 case $ac_top_builddir_sub in
1633 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1634 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1635 esac ;;
1636 esac
1637 ac_abs_top_builddir=$ac_pwd
1638 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1639 # for backward compatibility:
1640 ac_top_builddir=$ac_top_build_prefix
1642 case $srcdir in
1643 .) # We are building in place.
1644 ac_srcdir=.
1645 ac_top_srcdir=$ac_top_builddir_sub
1646 ac_abs_top_srcdir=$ac_pwd ;;
1647 [\\/]* | ?:[\\/]* ) # Absolute name.
1648 ac_srcdir=$srcdir$ac_dir_suffix;
1649 ac_top_srcdir=$srcdir
1650 ac_abs_top_srcdir=$srcdir ;;
1651 *) # Relative name.
1652 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1653 ac_top_srcdir=$ac_top_build_prefix$srcdir
1654 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1655 esac
1656 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1658 cd "$ac_dir" || { ac_status=$?; continue; }
1659 # Check for guested configure.
1660 if test -f "$ac_srcdir/configure.gnu"; then
1661 echo &&
1662 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1663 elif test -f "$ac_srcdir/configure"; then
1664 echo &&
1665 $SHELL "$ac_srcdir/configure" --help=recursive
1666 else
1667 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1668 fi || ac_status=$?
1669 cd "$ac_pwd" || { ac_status=$?; break; }
1670 done
1673 test -n "$ac_init_help" && exit $ac_status
1674 if $ac_init_version; then
1675 cat <<\_ACEOF
1676 Tango configure 9.2.5a
1677 generated by GNU Autoconf 2.69
1679 Copyright (C) 2012 Free Software Foundation, Inc.
1680 This configure script is free software; the Free Software Foundation
1681 gives unlimited permission to copy, distribute and modify it.
1682 _ACEOF
1683 exit
1686 ## ------------------------ ##
1687 ## Autoconf initialization. ##
1688 ## ------------------------ ##
1690 # ac_fn_cxx_try_compile LINENO
1691 # ----------------------------
1692 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1693 ac_fn_cxx_try_compile ()
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 rm -f conftest.$ac_objext
1697 if { { ac_try="$ac_compile"
1698 case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_compile") 2>conftest.err
1705 ac_status=$?
1706 if test -s conftest.err; then
1707 grep -v '^ *+' conftest.err >conftest.er1
1708 cat conftest.er1 >&5
1709 mv -f conftest.er1 conftest.err
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; } && {
1713 test -z "$ac_cxx_werror_flag" ||
1714 test ! -s conftest.err
1715 } && test -s conftest.$ac_objext; then :
1716 ac_retval=0
1717 else
1718 $as_echo "$as_me: failed program was:" >&5
1719 sed 's/^/| /' conftest.$ac_ext >&5
1721 ac_retval=1
1723 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1724 as_fn_set_status $ac_retval
1726 } # ac_fn_cxx_try_compile
1728 # ac_fn_cxx_try_cpp LINENO
1729 # ------------------------
1730 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1731 ac_fn_cxx_try_cpp ()
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 if { { ac_try="$ac_cpp conftest.$ac_ext"
1735 case "(($ac_try" in
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1738 esac
1739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740 $as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1742 ac_status=$?
1743 if test -s conftest.err; then
1744 grep -v '^ *+' conftest.err >conftest.er1
1745 cat conftest.er1 >&5
1746 mv -f conftest.er1 conftest.err
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; } > conftest.i && {
1750 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1751 test ! -s conftest.err
1752 }; then :
1753 ac_retval=0
1754 else
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1758 ac_retval=1
1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1761 as_fn_set_status $ac_retval
1763 } # ac_fn_cxx_try_cpp
1765 # ac_fn_c_try_compile LINENO
1766 # --------------------------
1767 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1768 ac_fn_c_try_compile ()
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 rm -f conftest.$ac_objext
1772 if { { ac_try="$ac_compile"
1773 case "(($ac_try" in
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_compile") 2>conftest.err
1780 ac_status=$?
1781 if test -s conftest.err; then
1782 grep -v '^ *+' conftest.err >conftest.er1
1783 cat conftest.er1 >&5
1784 mv -f conftest.er1 conftest.err
1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787 test $ac_status = 0; } && {
1788 test -z "$ac_c_werror_flag" ||
1789 test ! -s conftest.err
1790 } && test -s conftest.$ac_objext; then :
1791 ac_retval=0
1792 else
1793 $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1796 ac_retval=1
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 as_fn_set_status $ac_retval
1801 } # ac_fn_c_try_compile
1803 # ac_fn_c_try_cpp LINENO
1804 # ----------------------
1805 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1806 ac_fn_c_try_cpp ()
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 if { { ac_try="$ac_cpp conftest.$ac_ext"
1810 case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1817 ac_status=$?
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } > conftest.i && {
1825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1827 }; then :
1828 ac_retval=0
1829 else
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1833 ac_retval=1
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 as_fn_set_status $ac_retval
1838 } # ac_fn_c_try_cpp
1840 # ac_fn_c_try_link LINENO
1841 # -----------------------
1842 # Try to link conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_c_try_link ()
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 rm -f conftest.$ac_objext conftest$ac_exeext
1847 if { { ac_try="$ac_link"
1848 case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_link") 2>conftest.err
1855 ac_status=$?
1856 if test -s conftest.err; then
1857 grep -v '^ *+' conftest.err >conftest.er1
1858 cat conftest.er1 >&5
1859 mv -f conftest.er1 conftest.err
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && {
1863 test -z "$ac_c_werror_flag" ||
1864 test ! -s conftest.err
1865 } && test -s conftest$ac_exeext && {
1866 test "$cross_compiling" = yes ||
1867 test -x conftest$ac_exeext
1868 }; then :
1869 ac_retval=0
1870 else
1871 $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1874 ac_retval=1
1876 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1877 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1878 # interfere with the next link command; also delete a directory that is
1879 # left behind by Apple's compiler. We do this before executing the actions.
1880 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 as_fn_set_status $ac_retval
1884 } # ac_fn_c_try_link
1886 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1887 # -------------------------------------------------------
1888 # Tests whether HEADER exists and can be compiled using the include files in
1889 # INCLUDES, setting the cache variable VAR accordingly.
1890 ac_fn_c_check_header_compile ()
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894 $as_echo_n "checking for $2... " >&6; }
1895 if eval \${$3+:} false; then :
1896 $as_echo_n "(cached) " >&6
1897 else
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899 /* end confdefs.h. */
1901 #include <$2>
1902 _ACEOF
1903 if ac_fn_c_try_compile "$LINENO"; then :
1904 eval "$3=yes"
1905 else
1906 eval "$3=no"
1908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910 eval ac_res=\$$3
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912 $as_echo "$ac_res" >&6; }
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 } # ac_fn_c_check_header_compile
1917 # ac_fn_c_try_run LINENO
1918 # ----------------------
1919 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1920 # that executables *can* be run.
1921 ac_fn_c_try_run ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if { { ac_try="$ac_link"
1925 case "(($ac_try" in
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_link") 2>&5
1932 ac_status=$?
1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1935 { { case "(($ac_try" in
1936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937 *) ac_try_echo=$ac_try;;
1938 esac
1939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940 $as_echo "$ac_try_echo"; } >&5
1941 (eval "$ac_try") 2>&5
1942 ac_status=$?
1943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944 test $ac_status = 0; }; }; then :
1945 ac_retval=0
1946 else
1947 $as_echo "$as_me: program exited with status $ac_status" >&5
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1951 ac_retval=$ac_status
1953 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955 as_fn_set_status $ac_retval
1957 } # ac_fn_c_try_run
1959 # ac_fn_c_check_func LINENO FUNC VAR
1960 # ----------------------------------
1961 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1962 ac_fn_c_check_func ()
1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1966 $as_echo_n "checking for $2... " >&6; }
1967 if eval \${$3+:} false; then :
1968 $as_echo_n "(cached) " >&6
1969 else
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1972 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1974 #define $2 innocuous_$2
1976 /* System header to define __stub macros and hopefully few prototypes,
1977 which can conflict with char $2 (); below.
1978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1979 <limits.h> exists even on freestanding compilers. */
1981 #ifdef __STDC__
1982 # include <limits.h>
1983 #else
1984 # include <assert.h>
1985 #endif
1987 #undef $2
1989 /* Override any GCC internal prototype to avoid an error.
1990 Use char because int might match the return type of a GCC
1991 builtin and then its argument prototype would still apply. */
1992 #ifdef __cplusplus
1993 extern "C"
1994 #endif
1995 char $2 ();
1996 /* The GNU C library defines this for functions which it implements
1997 to always fail with ENOSYS. Some functions are actually named
1998 something starting with __ and the normal name is an alias. */
1999 #if defined __stub_$2 || defined __stub___$2
2000 choke me
2001 #endif
2004 main ()
2006 return $2 ();
2008 return 0;
2010 _ACEOF
2011 if ac_fn_c_try_link "$LINENO"; then :
2012 eval "$3=yes"
2013 else
2014 eval "$3=no"
2016 rm -f core conftest.err conftest.$ac_objext \
2017 conftest$ac_exeext conftest.$ac_ext
2019 eval ac_res=\$$3
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021 $as_echo "$ac_res" >&6; }
2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024 } # ac_fn_c_check_func
2026 # ac_fn_cxx_try_link LINENO
2027 # -------------------------
2028 # Try to link conftest.$ac_ext, and return whether this succeeded.
2029 ac_fn_cxx_try_link ()
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 rm -f conftest.$ac_objext conftest$ac_exeext
2033 if { { ac_try="$ac_link"
2034 case "(($ac_try" in
2035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2036 *) ac_try_echo=$ac_try;;
2037 esac
2038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2039 $as_echo "$ac_try_echo"; } >&5
2040 (eval "$ac_link") 2>conftest.err
2041 ac_status=$?
2042 if test -s conftest.err; then
2043 grep -v '^ *+' conftest.err >conftest.er1
2044 cat conftest.er1 >&5
2045 mv -f conftest.er1 conftest.err
2047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2048 test $ac_status = 0; } && {
2049 test -z "$ac_cxx_werror_flag" ||
2050 test ! -s conftest.err
2051 } && test -s conftest$ac_exeext && {
2052 test "$cross_compiling" = yes ||
2053 test -x conftest$ac_exeext
2054 }; then :
2055 ac_retval=0
2056 else
2057 $as_echo "$as_me: failed program was:" >&5
2058 sed 's/^/| /' conftest.$ac_ext >&5
2060 ac_retval=1
2062 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2063 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2064 # interfere with the next link command; also delete a directory that is
2065 # left behind by Apple's compiler. We do this before executing the actions.
2066 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2068 as_fn_set_status $ac_retval
2070 } # ac_fn_cxx_try_link
2072 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2073 # -------------------------------------------------------
2074 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2075 # the include files in INCLUDES and setting the cache variable VAR
2076 # accordingly.
2077 ac_fn_c_check_header_mongrel ()
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 if eval \${$3+:} false; then :
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2082 $as_echo_n "checking for $2... " >&6; }
2083 if eval \${$3+:} false; then :
2084 $as_echo_n "(cached) " >&6
2086 eval ac_res=\$$3
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2088 $as_echo "$ac_res" >&6; }
2089 else
2090 # Is the header compilable?
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2092 $as_echo_n "checking $2 usability... " >&6; }
2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h. */
2096 #include <$2>
2097 _ACEOF
2098 if ac_fn_c_try_compile "$LINENO"; then :
2099 ac_header_compiler=yes
2100 else
2101 ac_header_compiler=no
2103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2105 $as_echo "$ac_header_compiler" >&6; }
2107 # Is the header present?
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2109 $as_echo_n "checking $2 presence... " >&6; }
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111 /* end confdefs.h. */
2112 #include <$2>
2113 _ACEOF
2114 if ac_fn_c_try_cpp "$LINENO"; then :
2115 ac_header_preproc=yes
2116 else
2117 ac_header_preproc=no
2119 rm -f conftest.err conftest.i conftest.$ac_ext
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2121 $as_echo "$ac_header_preproc" >&6; }
2123 # So? What about this header?
2124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2125 yes:no: )
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2127 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2129 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2131 no:yes:* )
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2133 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2135 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2137 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2139 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2141 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2142 ( $as_echo "## -------------------------------------- ##
2143 ## Report this to info@tango-controls.org ##
2144 ## -------------------------------------- ##"
2145 ) | sed "s/^/$as_me: WARNING: /" >&2
2147 esac
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2149 $as_echo_n "checking for $2... " >&6; }
2150 if eval \${$3+:} false; then :
2151 $as_echo_n "(cached) " >&6
2152 else
2153 eval "$3=\$ac_header_compiler"
2155 eval ac_res=\$$3
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2157 $as_echo "$ac_res" >&6; }
2159 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2161 } # ac_fn_c_check_header_mongrel
2163 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2164 # ---------------------------------------------------------
2165 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2166 # the include files in INCLUDES and setting the cache variable VAR
2167 # accordingly.
2168 ac_fn_cxx_check_header_mongrel ()
2170 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2171 if eval \${$3+:} false; then :
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2173 $as_echo_n "checking for $2... " >&6; }
2174 if eval \${$3+:} false; then :
2175 $as_echo_n "(cached) " >&6
2177 eval ac_res=\$$3
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179 $as_echo "$ac_res" >&6; }
2180 else
2181 # Is the header compilable?
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2183 $as_echo_n "checking $2 usability... " >&6; }
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2187 #include <$2>
2188 _ACEOF
2189 if ac_fn_cxx_try_compile "$LINENO"; then :
2190 ac_header_compiler=yes
2191 else
2192 ac_header_compiler=no
2194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2196 $as_echo "$ac_header_compiler" >&6; }
2198 # Is the header present?
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2200 $as_echo_n "checking $2 presence... " >&6; }
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2203 #include <$2>
2204 _ACEOF
2205 if ac_fn_cxx_try_cpp "$LINENO"; then :
2206 ac_header_preproc=yes
2207 else
2208 ac_header_preproc=no
2210 rm -f conftest.err conftest.i conftest.$ac_ext
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2212 $as_echo "$ac_header_preproc" >&6; }
2214 # So? What about this header?
2215 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2216 yes:no: )
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2218 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2220 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2222 no:yes:* )
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2224 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2226 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2228 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2230 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2232 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2233 ( $as_echo "## -------------------------------------- ##
2234 ## Report this to info@tango-controls.org ##
2235 ## -------------------------------------- ##"
2236 ) | sed "s/^/$as_me: WARNING: /" >&2
2238 esac
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2240 $as_echo_n "checking for $2... " >&6; }
2241 if eval \${$3+:} false; then :
2242 $as_echo_n "(cached) " >&6
2243 else
2244 eval "$3=\$ac_header_compiler"
2246 eval ac_res=\$$3
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248 $as_echo "$ac_res" >&6; }
2250 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2252 } # ac_fn_cxx_check_header_mongrel
2254 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2255 # -------------------------------------------
2256 # Tests whether TYPE exists after having included INCLUDES, setting cache
2257 # variable VAR accordingly.
2258 ac_fn_c_check_type ()
2260 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2262 $as_echo_n "checking for $2... " >&6; }
2263 if eval \${$3+:} false; then :
2264 $as_echo_n "(cached) " >&6
2265 else
2266 eval "$3=no"
2267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2268 /* end confdefs.h. */
2271 main ()
2273 if (sizeof ($2))
2274 return 0;
2276 return 0;
2278 _ACEOF
2279 if ac_fn_c_try_compile "$LINENO"; then :
2280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2281 /* end confdefs.h. */
2284 main ()
2286 if (sizeof (($2)))
2287 return 0;
2289 return 0;
2291 _ACEOF
2292 if ac_fn_c_try_compile "$LINENO"; then :
2294 else
2295 eval "$3=yes"
2297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 eval ac_res=\$$3
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2303 $as_echo "$ac_res" >&6; }
2304 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2306 } # ac_fn_c_check_type
2307 cat >config.log <<_ACEOF
2308 This file contains any messages produced by compilers while
2309 running configure, to aid debugging if configure makes a mistake.
2311 It was created by Tango $as_me 9.2.5a, which was
2312 generated by GNU Autoconf 2.69. Invocation command line was
2314 $ $0 $@
2316 _ACEOF
2317 exec 5>>config.log
2319 cat <<_ASUNAME
2320 ## --------- ##
2321 ## Platform. ##
2322 ## --------- ##
2324 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2325 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2326 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2327 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2328 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2330 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2331 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2333 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2334 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2335 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2336 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2337 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2338 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2339 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2341 _ASUNAME
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 for as_dir in $PATH
2346 IFS=$as_save_IFS
2347 test -z "$as_dir" && as_dir=.
2348 $as_echo "PATH: $as_dir"
2349 done
2350 IFS=$as_save_IFS
2352 } >&5
2354 cat >&5 <<_ACEOF
2357 ## ----------- ##
2358 ## Core tests. ##
2359 ## ----------- ##
2361 _ACEOF
2364 # Keep a trace of the command line.
2365 # Strip out --no-create and --no-recursion so they do not pile up.
2366 # Strip out --silent because we don't want to record it for future runs.
2367 # Also quote any args containing shell meta-characters.
2368 # Make two passes to allow for proper duplicate-argument suppression.
2369 ac_configure_args=
2370 ac_configure_args0=
2371 ac_configure_args1=
2372 ac_must_keep_next=false
2373 for ac_pass in 1 2
2375 for ac_arg
2377 case $ac_arg in
2378 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2379 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2380 | -silent | --silent | --silen | --sile | --sil)
2381 continue ;;
2382 *\'*)
2383 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2384 esac
2385 case $ac_pass in
2386 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2388 as_fn_append ac_configure_args1 " '$ac_arg'"
2389 if test $ac_must_keep_next = true; then
2390 ac_must_keep_next=false # Got value, back to normal.
2391 else
2392 case $ac_arg in
2393 *=* | --config-cache | -C | -disable-* | --disable-* \
2394 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2395 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2396 | -with-* | --with-* | -without-* | --without-* | --x)
2397 case "$ac_configure_args0 " in
2398 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2399 esac
2401 -* ) ac_must_keep_next=true ;;
2402 esac
2404 as_fn_append ac_configure_args " '$ac_arg'"
2406 esac
2407 done
2408 done
2409 { ac_configure_args0=; unset ac_configure_args0;}
2410 { ac_configure_args1=; unset ac_configure_args1;}
2412 # When interrupted or exit'd, cleanup temporary files, and complete
2413 # config.log. We remove comments because anyway the quotes in there
2414 # would cause problems or look ugly.
2415 # WARNING: Use '\'' to represent an apostrophe within the trap.
2416 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2417 trap 'exit_status=$?
2418 # Save into config.log some information that might help in debugging.
2420 echo
2422 $as_echo "## ---------------- ##
2423 ## Cache variables. ##
2424 ## ---------------- ##"
2425 echo
2426 # The following way of writing the cache mishandles newlines in values,
2428 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2429 eval ac_val=\$$ac_var
2430 case $ac_val in #(
2431 *${as_nl}*)
2432 case $ac_var in #(
2433 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2434 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2435 esac
2436 case $ac_var in #(
2437 _ | IFS | as_nl) ;; #(
2438 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2439 *) { eval $ac_var=; unset $ac_var;} ;;
2440 esac ;;
2441 esac
2442 done
2443 (set) 2>&1 |
2444 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2445 *${as_nl}ac_space=\ *)
2446 sed -n \
2447 "s/'\''/'\''\\\\'\'''\''/g;
2448 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2449 ;; #(
2451 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2453 esac |
2454 sort
2456 echo
2458 $as_echo "## ----------------- ##
2459 ## Output variables. ##
2460 ## ----------------- ##"
2461 echo
2462 for ac_var in $ac_subst_vars
2464 eval ac_val=\$$ac_var
2465 case $ac_val in
2466 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2467 esac
2468 $as_echo "$ac_var='\''$ac_val'\''"
2469 done | sort
2470 echo
2472 if test -n "$ac_subst_files"; then
2473 $as_echo "## ------------------- ##
2474 ## File substitutions. ##
2475 ## ------------------- ##"
2476 echo
2477 for ac_var in $ac_subst_files
2479 eval ac_val=\$$ac_var
2480 case $ac_val in
2481 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2482 esac
2483 $as_echo "$ac_var='\''$ac_val'\''"
2484 done | sort
2485 echo
2488 if test -s confdefs.h; then
2489 $as_echo "## ----------- ##
2490 ## confdefs.h. ##
2491 ## ----------- ##"
2492 echo
2493 cat confdefs.h
2494 echo
2496 test "$ac_signal" != 0 &&
2497 $as_echo "$as_me: caught signal $ac_signal"
2498 $as_echo "$as_me: exit $exit_status"
2499 } >&5
2500 rm -f core *.core core.conftest.* &&
2501 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2502 exit $exit_status
2504 for ac_signal in 1 2 13 15; do
2505 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2506 done
2507 ac_signal=0
2509 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2510 rm -f -r conftest* confdefs.h
2512 $as_echo "/* confdefs.h */" > confdefs.h
2514 # Predefined preprocessor variables.
2516 cat >>confdefs.h <<_ACEOF
2517 #define PACKAGE_NAME "$PACKAGE_NAME"
2518 _ACEOF
2520 cat >>confdefs.h <<_ACEOF
2521 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2522 _ACEOF
2524 cat >>confdefs.h <<_ACEOF
2525 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2526 _ACEOF
2528 cat >>confdefs.h <<_ACEOF
2529 #define PACKAGE_STRING "$PACKAGE_STRING"
2530 _ACEOF
2532 cat >>confdefs.h <<_ACEOF
2533 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2534 _ACEOF
2536 cat >>confdefs.h <<_ACEOF
2537 #define PACKAGE_URL "$PACKAGE_URL"
2538 _ACEOF
2541 # Let the site file select an alternate cache file if it wants to.
2542 # Prefer an explicitly selected file to automatically selected ones.
2543 ac_site_file1=NONE
2544 ac_site_file2=NONE
2545 if test -n "$CONFIG_SITE"; then
2546 # We do not want a PATH search for config.site.
2547 case $CONFIG_SITE in #((
2548 -*) ac_site_file1=./$CONFIG_SITE;;
2549 */*) ac_site_file1=$CONFIG_SITE;;
2550 *) ac_site_file1=./$CONFIG_SITE;;
2551 esac
2552 elif test "x$prefix" != xNONE; then
2553 ac_site_file1=$prefix/share/config.site
2554 ac_site_file2=$prefix/etc/config.site
2555 else
2556 ac_site_file1=$ac_default_prefix/share/config.site
2557 ac_site_file2=$ac_default_prefix/etc/config.site
2559 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2561 test "x$ac_site_file" = xNONE && continue
2562 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2564 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2565 sed 's/^/| /' "$ac_site_file" >&5
2566 . "$ac_site_file" \
2567 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2568 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2569 as_fn_error $? "failed to load site script $ac_site_file
2570 See \`config.log' for more details" "$LINENO" 5; }
2572 done
2574 if test -r "$cache_file"; then
2575 # Some versions of bash will fail to source /dev/null (special files
2576 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2577 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2579 $as_echo "$as_me: loading cache $cache_file" >&6;}
2580 case $cache_file in
2581 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2582 *) . "./$cache_file";;
2583 esac
2585 else
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2587 $as_echo "$as_me: creating cache $cache_file" >&6;}
2588 >$cache_file
2591 # Check that the precious variables saved in the cache have kept the same
2592 # value.
2593 ac_cache_corrupted=false
2594 for ac_var in $ac_precious_vars; do
2595 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2596 eval ac_new_set=\$ac_env_${ac_var}_set
2597 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2598 eval ac_new_val=\$ac_env_${ac_var}_value
2599 case $ac_old_set,$ac_new_set in
2600 set,)
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2602 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2603 ac_cache_corrupted=: ;;
2604 ,set)
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2606 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2607 ac_cache_corrupted=: ;;
2608 ,);;
2610 if test "x$ac_old_val" != "x$ac_new_val"; then
2611 # differences in whitespace do not lead to failure.
2612 ac_old_val_w=`echo x $ac_old_val`
2613 ac_new_val_w=`echo x $ac_new_val`
2614 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2616 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2617 ac_cache_corrupted=:
2618 else
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2620 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2621 eval $ac_var=\$ac_old_val
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2624 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2626 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2627 fi;;
2628 esac
2629 # Pass precious variables to config.status.
2630 if test "$ac_new_set" = set; then
2631 case $ac_new_val in
2632 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2633 *) ac_arg=$ac_var=$ac_new_val ;;
2634 esac
2635 case " $ac_configure_args " in
2636 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2637 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2638 esac
2640 done
2641 if $ac_cache_corrupted; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2645 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2646 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2648 ## -------------------- ##
2649 ## Main body of script. ##
2650 ## -------------------- ##
2652 ac_ext=c
2653 ac_cpp='$CPP $CPPFLAGS'
2654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659 ac_aux_dir=
2660 for ac_dir in config "$srcdir"/config; do
2661 if test -f "$ac_dir/install-sh"; then
2662 ac_aux_dir=$ac_dir
2663 ac_install_sh="$ac_aux_dir/install-sh -c"
2664 break
2665 elif test -f "$ac_dir/install.sh"; then
2666 ac_aux_dir=$ac_dir
2667 ac_install_sh="$ac_aux_dir/install.sh -c"
2668 break
2669 elif test -f "$ac_dir/shtool"; then
2670 ac_aux_dir=$ac_dir
2671 ac_install_sh="$ac_aux_dir/shtool install -c"
2672 break
2674 done
2675 if test -z "$ac_aux_dir"; then
2676 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2679 # These three variables are undocumented and unsupported,
2680 # and are intended to be withdrawn in a future Autoconf release.
2681 # They can cause serious problems if a builder's source tree is in a directory
2682 # whose full name contains unusual characters.
2683 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2684 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2685 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2690 # Tells autoconf that we want at least version 2.53 of autoconf to
2691 # create configure from configure.ac
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2696 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2697 # Check whether --enable-maintainer-mode was given.
2698 if test "${enable_maintainer_mode+set}" = set; then :
2699 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2700 else
2701 USE_MAINTAINER_MODE=no
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2705 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2706 if test $USE_MAINTAINER_MODE = yes; then
2707 MAINTAINER_MODE_TRUE=
2708 MAINTAINER_MODE_FALSE='#'
2709 else
2710 MAINTAINER_MODE_TRUE='#'
2711 MAINTAINER_MODE_FALSE=
2714 MAINT=$MAINTAINER_MODE_TRUE
2717 # Make sure we can run config.sub.
2718 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2719 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2722 $as_echo_n "checking build system type... " >&6; }
2723 if ${ac_cv_build+:} false; then :
2724 $as_echo_n "(cached) " >&6
2725 else
2726 ac_build_alias=$build_alias
2727 test "x$ac_build_alias" = x &&
2728 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2729 test "x$ac_build_alias" = x &&
2730 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2731 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2732 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2736 $as_echo "$ac_cv_build" >&6; }
2737 case $ac_cv_build in
2738 *-*-*) ;;
2739 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2740 esac
2741 build=$ac_cv_build
2742 ac_save_IFS=$IFS; IFS='-'
2743 set x $ac_cv_build
2744 shift
2745 build_cpu=$1
2746 build_vendor=$2
2747 shift; shift
2748 # Remember, the first character of IFS is used to create $*,
2749 # except with old shells:
2750 build_os=$*
2751 IFS=$ac_save_IFS
2752 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2756 $as_echo_n "checking host system type... " >&6; }
2757 if ${ac_cv_host+:} false; then :
2758 $as_echo_n "(cached) " >&6
2759 else
2760 if test "x$host_alias" = x; then
2761 ac_cv_host=$ac_cv_build
2762 else
2763 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2764 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2769 $as_echo "$ac_cv_host" >&6; }
2770 case $ac_cv_host in
2771 *-*-*) ;;
2772 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2773 esac
2774 host=$ac_cv_host
2775 ac_save_IFS=$IFS; IFS='-'
2776 set x $ac_cv_host
2777 shift
2778 host_cpu=$1
2779 host_vendor=$2
2780 shift; shift
2781 # Remember, the first character of IFS is used to create $*,
2782 # except with old shells:
2783 host_os=$*
2784 IFS=$ac_save_IFS
2785 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2789 # Lets the revision tag from cvs or rcs propagate into the
2790 # configure script, handy for debugging.
2793 # AM_INIT_AUTOMAKE sets up automake which is used to generate
2794 # Makefile.in from Makefile.am
2795 am__api_version='1.11'
2797 # Find a good install program. We prefer a C program (faster),
2798 # so one script is as good as another. But avoid the broken or
2799 # incompatible versions:
2800 # SysV /etc/install, /usr/sbin/install
2801 # SunOS /usr/etc/install
2802 # IRIX /sbin/install
2803 # AIX /bin/install
2804 # AmigaOS /C/install, which installs bootblocks on floppy discs
2805 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2806 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2807 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2808 # OS/2's system install, which has a completely different semantic
2809 # ./install, which can be erroneously created by make from ./install.sh.
2810 # Reject install programs that cannot install multiple files.
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2812 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2813 if test -z "$INSTALL"; then
2814 if ${ac_cv_path_install+:} false; then :
2815 $as_echo_n "(cached) " >&6
2816 else
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 # Account for people who put trailing slashes in PATH elements.
2823 case $as_dir/ in #((
2824 ./ | .// | /[cC]/* | \
2825 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2826 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2827 /usr/ucb/* ) ;;
2829 # OSF1 and SCO ODT 3.0 have their own names for install.
2830 # Don't use installbsd from OSF since it installs stuff as root
2831 # by default.
2832 for ac_prog in ginstall scoinst install; do
2833 for ac_exec_ext in '' $ac_executable_extensions; do
2834 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2835 if test $ac_prog = install &&
2836 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2837 # AIX install. It has an incompatible calling convention.
2839 elif test $ac_prog = install &&
2840 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2841 # program-specific install script used by HP pwplus--don't use.
2843 else
2844 rm -rf conftest.one conftest.two conftest.dir
2845 echo one > conftest.one
2846 echo two > conftest.two
2847 mkdir conftest.dir
2848 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2849 test -s conftest.one && test -s conftest.two &&
2850 test -s conftest.dir/conftest.one &&
2851 test -s conftest.dir/conftest.two
2852 then
2853 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2854 break 3
2858 done
2859 done
2861 esac
2863 done
2864 IFS=$as_save_IFS
2866 rm -rf conftest.one conftest.two conftest.dir
2869 if test "${ac_cv_path_install+set}" = set; then
2870 INSTALL=$ac_cv_path_install
2871 else
2872 # As a last resort, use the slow shell script. Don't cache a
2873 # value for INSTALL within a source directory, because that will
2874 # break other packages using the cache if that directory is
2875 # removed, or if the value is a relative name.
2876 INSTALL=$ac_install_sh
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2880 $as_echo "$INSTALL" >&6; }
2882 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2883 # It thinks the first close brace ends the variable substitution.
2884 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2886 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2888 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2891 $as_echo_n "checking whether build environment is sane... " >&6; }
2892 # Just in case
2893 sleep 1
2894 echo timestamp > conftest.file
2895 # Reject unsafe characters in $srcdir or the absolute working directory
2896 # name. Accept space and tab only in the latter.
2897 am_lf='
2899 case `pwd` in
2900 *[\\\"\#\$\&\'\`$am_lf]*)
2901 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2902 esac
2903 case $srcdir in
2904 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2905 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2906 esac
2908 # Do `set' in a subshell so we don't clobber the current shell's
2909 # arguments. Must try -L first in case configure is actually a
2910 # symlink; some systems play weird games with the mod time of symlinks
2911 # (eg FreeBSD returns the mod time of the symlink's containing
2912 # directory).
2913 if (
2914 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2915 if test "$*" = "X"; then
2916 # -L didn't work.
2917 set X `ls -t "$srcdir/configure" conftest.file`
2919 rm -f conftest.file
2920 if test "$*" != "X $srcdir/configure conftest.file" \
2921 && test "$*" != "X conftest.file $srcdir/configure"; then
2923 # If neither matched, then we have a broken ls. This can happen
2924 # if, for instance, CONFIG_SHELL is bash and it inherits a
2925 # broken ls alias from the environment. This has actually
2926 # happened. Such a system could not be considered "sane".
2927 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2928 alias in your environment" "$LINENO" 5
2931 test "$2" = conftest.file
2933 then
2934 # Ok.
2936 else
2937 as_fn_error $? "newly created file is older than distributed files!
2938 Check your system clock" "$LINENO" 5
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2941 $as_echo "yes" >&6; }
2942 test "$program_prefix" != NONE &&
2943 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2944 # Use a double $ so make ignores it.
2945 test "$program_suffix" != NONE &&
2946 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2947 # Double any \ or $.
2948 # By default was `s,x,x', remove it if useless.
2949 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2950 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2952 # expand $ac_aux_dir to an absolute path
2953 am_aux_dir=`cd $ac_aux_dir && pwd`
2955 if test x"${MISSING+set}" != xset; then
2956 case $am_aux_dir in
2957 *\ * | *\ *)
2958 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2960 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2961 esac
2963 # Use eval to expand $SHELL
2964 if eval "$MISSING --run true"; then
2965 am_missing_run="$MISSING --run "
2966 else
2967 am_missing_run=
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2969 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2972 if test x"${install_sh}" != xset; then
2973 case $am_aux_dir in
2974 *\ * | *\ *)
2975 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2977 install_sh="\${SHELL} $am_aux_dir/install-sh"
2978 esac
2981 # Installed binaries are usually stripped using `strip' when the user
2982 # run `make install-strip'. However `strip' might not be the right
2983 # tool to use in cross-compilation environments, therefore Automake
2984 # will honor the `STRIP' environment variable to overrule this program.
2985 if test "$cross_compiling" != no; then
2986 if test -n "$ac_tool_prefix"; then
2987 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2988 set dummy ${ac_tool_prefix}strip; ac_word=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if ${ac_cv_prog_STRIP+:} false; then :
2992 $as_echo_n "(cached) " >&6
2993 else
2994 if test -n "$STRIP"; then
2995 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2996 else
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 for as_dir in $PATH
3000 IFS=$as_save_IFS
3001 test -z "$as_dir" && as_dir=.
3002 for ac_exec_ext in '' $ac_executable_extensions; do
3003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 break 2
3008 done
3009 done
3010 IFS=$as_save_IFS
3014 STRIP=$ac_cv_prog_STRIP
3015 if test -n "$STRIP"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3017 $as_echo "$STRIP" >&6; }
3018 else
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3025 if test -z "$ac_cv_prog_STRIP"; then
3026 ac_ct_STRIP=$STRIP
3027 # Extract the first word of "strip", so it can be a program name with args.
3028 set dummy strip; ac_word=$2
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030 $as_echo_n "checking for $ac_word... " >&6; }
3031 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3032 $as_echo_n "(cached) " >&6
3033 else
3034 if test -n "$ac_ct_STRIP"; then
3035 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3036 else
3037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038 for as_dir in $PATH
3040 IFS=$as_save_IFS
3041 test -z "$as_dir" && as_dir=.
3042 for ac_exec_ext in '' $ac_executable_extensions; do
3043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3044 ac_cv_prog_ac_ct_STRIP="strip"
3045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3046 break 2
3048 done
3049 done
3050 IFS=$as_save_IFS
3054 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3055 if test -n "$ac_ct_STRIP"; then
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3057 $as_echo "$ac_ct_STRIP" >&6; }
3058 else
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3060 $as_echo "no" >&6; }
3063 if test "x$ac_ct_STRIP" = x; then
3064 STRIP=":"
3065 else
3066 case $cross_compiling:$ac_tool_warned in
3067 yes:)
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3070 ac_tool_warned=yes ;;
3071 esac
3072 STRIP=$ac_ct_STRIP
3074 else
3075 STRIP="$ac_cv_prog_STRIP"
3079 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3082 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3083 if test -z "$MKDIR_P"; then
3084 if ${ac_cv_path_mkdir+:} false; then :
3085 $as_echo_n "(cached) " >&6
3086 else
3087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3090 IFS=$as_save_IFS
3091 test -z "$as_dir" && as_dir=.
3092 for ac_prog in mkdir gmkdir; do
3093 for ac_exec_ext in '' $ac_executable_extensions; do
3094 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3095 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3096 'mkdir (GNU coreutils) '* | \
3097 'mkdir (coreutils) '* | \
3098 'mkdir (fileutils) '4.1*)
3099 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3100 break 3;;
3101 esac
3102 done
3103 done
3104 done
3105 IFS=$as_save_IFS
3109 test -d ./--version && rmdir ./--version
3110 if test "${ac_cv_path_mkdir+set}" = set; then
3111 MKDIR_P="$ac_cv_path_mkdir -p"
3112 else
3113 # As a last resort, use the slow shell script. Don't cache a
3114 # value for MKDIR_P within a source directory, because that will
3115 # break other packages using the cache if that directory is
3116 # removed, or if the value is a relative name.
3117 MKDIR_P="$ac_install_sh -d"
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3121 $as_echo "$MKDIR_P" >&6; }
3123 mkdir_p="$MKDIR_P"
3124 case $mkdir_p in
3125 [\\/$]* | ?:[\\/]*) ;;
3126 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3127 esac
3129 for ac_prog in gawk mawk nawk awk
3131 # Extract the first word of "$ac_prog", so it can be a program name with args.
3132 set dummy $ac_prog; ac_word=$2
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3134 $as_echo_n "checking for $ac_word... " >&6; }
3135 if ${ac_cv_prog_AWK+:} false; then :
3136 $as_echo_n "(cached) " >&6
3137 else
3138 if test -n "$AWK"; then
3139 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3140 else
3141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3142 for as_dir in $PATH
3144 IFS=$as_save_IFS
3145 test -z "$as_dir" && as_dir=.
3146 for ac_exec_ext in '' $ac_executable_extensions; do
3147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3148 ac_cv_prog_AWK="$ac_prog"
3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 break 2
3152 done
3153 done
3154 IFS=$as_save_IFS
3158 AWK=$ac_cv_prog_AWK
3159 if test -n "$AWK"; then
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3161 $as_echo "$AWK" >&6; }
3162 else
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3164 $as_echo "no" >&6; }
3168 test -n "$AWK" && break
3169 done
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3172 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3173 set x ${MAKE-make}
3174 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3175 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3176 $as_echo_n "(cached) " >&6
3177 else
3178 cat >conftest.make <<\_ACEOF
3179 SHELL = /bin/sh
3180 all:
3181 @echo '@@@%%%=$(MAKE)=@@@%%%'
3182 _ACEOF
3183 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3184 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3185 *@@@%%%=?*=@@@%%%*)
3186 eval ac_cv_prog_make_${ac_make}_set=yes;;
3188 eval ac_cv_prog_make_${ac_make}_set=no;;
3189 esac
3190 rm -f conftest.make
3192 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3194 $as_echo "yes" >&6; }
3195 SET_MAKE=
3196 else
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 $as_echo "no" >&6; }
3199 SET_MAKE="MAKE=${MAKE-make}"
3202 rm -rf .tst 2>/dev/null
3203 mkdir .tst 2>/dev/null
3204 if test -d .tst; then
3205 am__leading_dot=.
3206 else
3207 am__leading_dot=_
3209 rmdir .tst 2>/dev/null
3211 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3212 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3213 # is not polluted with repeated "-I."
3214 am__isrc=' -I$(srcdir)'
3215 # test to see if srcdir already configured
3216 if test -f $srcdir/config.status; then
3217 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3221 # test whether we have cygpath
3222 if test -z "$CYGPATH_W"; then
3223 if (cygpath --version) >/dev/null 2>/dev/null; then
3224 CYGPATH_W='cygpath -w'
3225 else
3226 CYGPATH_W=echo
3231 # Define the identity of the package.
3232 PACKAGE='tango'
3233 VERSION='9.2.5a'
3236 cat >>confdefs.h <<_ACEOF
3237 #define PACKAGE "$PACKAGE"
3238 _ACEOF
3241 cat >>confdefs.h <<_ACEOF
3242 #define VERSION "$VERSION"
3243 _ACEOF
3245 # Some tools Automake needs.
3247 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3250 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3253 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3256 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3259 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3261 # We need awk for the "check" target. The system "awk" is bad on
3262 # some platforms.
3263 # Always define AMTAR for backward compatibility. Yes, it's still used
3264 # in the wild :-( We should find a proper way to deprecate it ...
3265 AMTAR='$${TAR-tar}'
3267 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3273 # Check whether --enable-silent-rules was given.
3274 if test "${enable_silent_rules+set}" = set; then :
3275 enableval=$enable_silent_rules;
3278 case $enable_silent_rules in
3279 yes) AM_DEFAULT_VERBOSITY=0;;
3280 no) AM_DEFAULT_VERBOSITY=1;;
3281 *) AM_DEFAULT_VERBOSITY=0;;
3282 esac
3283 am_make=${MAKE-make}
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3285 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3286 if ${am_cv_make_support_nested_variables+:} false; then :
3287 $as_echo_n "(cached) " >&6
3288 else
3289 if $as_echo 'TRUE=$(BAR$(V))
3290 BAR0=false
3291 BAR1=true
3293 am__doit:
3294 @$(TRUE)
3295 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3296 am_cv_make_support_nested_variables=yes
3297 else
3298 am_cv_make_support_nested_variables=no
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3302 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3303 if test $am_cv_make_support_nested_variables = yes; then
3304 AM_V='$(V)'
3305 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3306 else
3307 AM_V=$AM_DEFAULT_VERBOSITY
3308 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3310 AM_BACKSLASH='\'
3313 # Tells automake to use `ac_config.h.tmp' to stash all the #defines
3314 # that result from a run of configure.
3315 # The name is .tmp since I must change the PACKAGE_ definitions because
3316 # of omniORBS installation of their version of this file.
3317 ac_config_headers="$ac_config_headers ac_config.h.tmp"
3321 # -version-info CURRENT[:REVISION[:AGE]]
3322 # From the libtool documentation (info libtool)
3323 # So, libtool library versions are described by three integers:
3325 # CURRENT
3326 # The most recent interface number that this library implements.
3328 # REVISION
3329 # The implementation number of the CURRENT interface.
3331 # AGE
3332 # The difference between the newest and oldest interfaces that this
3333 # library implements. In other words, the library implements all the
3334 # interface numbers in the range from number `CURRENT - AGE' to
3335 # `CURRENT'.
3337 VERSION_INFO=11:5:2
3339 # Checks for programs.
3341 ac_ext=cpp
3342 ac_cpp='$CXXCPP $CPPFLAGS'
3343 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3344 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3345 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3346 if test -z "$CXX"; then
3347 if test -n "$CCC"; then
3348 CXX=$CCC
3349 else
3350 if test -n "$ac_tool_prefix"; then
3351 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3353 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3356 $as_echo_n "checking for $ac_word... " >&6; }
3357 if ${ac_cv_prog_CXX+:} false; then :
3358 $as_echo_n "(cached) " >&6
3359 else
3360 if test -n "$CXX"; then
3361 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3362 else
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3366 IFS=$as_save_IFS
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3370 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3372 break 2
3374 done
3375 done
3376 IFS=$as_save_IFS
3380 CXX=$ac_cv_prog_CXX
3381 if test -n "$CXX"; then
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3383 $as_echo "$CXX" >&6; }
3384 else
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386 $as_echo "no" >&6; }
3390 test -n "$CXX" && break
3391 done
3393 if test -z "$CXX"; then
3394 ac_ct_CXX=$CXX
3395 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3397 # Extract the first word of "$ac_prog", so it can be a program name with args.
3398 set dummy $ac_prog; ac_word=$2
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3402 $as_echo_n "(cached) " >&6
3403 else
3404 if test -n "$ac_ct_CXX"; then
3405 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3406 else
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 for as_dir in $PATH
3410 IFS=$as_save_IFS
3411 test -z "$as_dir" && as_dir=.
3412 for ac_exec_ext in '' $ac_executable_extensions; do
3413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3414 ac_cv_prog_ac_ct_CXX="$ac_prog"
3415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 break 2
3418 done
3419 done
3420 IFS=$as_save_IFS
3424 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3425 if test -n "$ac_ct_CXX"; then
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3427 $as_echo "$ac_ct_CXX" >&6; }
3428 else
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3434 test -n "$ac_ct_CXX" && break
3435 done
3437 if test "x$ac_ct_CXX" = x; then
3438 CXX="g++"
3439 else
3440 case $cross_compiling:$ac_tool_warned in
3441 yes:)
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3444 ac_tool_warned=yes ;;
3445 esac
3446 CXX=$ac_ct_CXX
3452 # Provide some information about the compiler.
3453 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3454 set X $ac_compile
3455 ac_compiler=$2
3456 for ac_option in --version -v -V -qversion; do
3457 { { ac_try="$ac_compiler $ac_option >&5"
3458 case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3461 esac
3462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3463 $as_echo "$ac_try_echo"; } >&5
3464 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3465 ac_status=$?
3466 if test -s conftest.err; then
3467 sed '10a\
3468 ... rest of stderr output deleted ...
3469 10q' conftest.err >conftest.er1
3470 cat conftest.er1 >&5
3472 rm -f conftest.er1 conftest.err
3473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3474 test $ac_status = 0; }
3475 done
3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3478 /* end confdefs.h. */
3481 main ()
3485 return 0;
3487 _ACEOF
3488 ac_clean_files_save=$ac_clean_files
3489 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3490 # Try to create an executable without -o first, disregard a.out.
3491 # It will help us diagnose broken compilers, and finding out an intuition
3492 # of exeext.
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3494 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3495 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3497 # The possible output files:
3498 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3500 ac_rmfiles=
3501 for ac_file in $ac_files
3503 case $ac_file in
3504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3505 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3506 esac
3507 done
3508 rm -f $ac_rmfiles
3510 if { { ac_try="$ac_link_default"
3511 case "(($ac_try" in
3512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3513 *) ac_try_echo=$ac_try;;
3514 esac
3515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3516 $as_echo "$ac_try_echo"; } >&5
3517 (eval "$ac_link_default") 2>&5
3518 ac_status=$?
3519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3520 test $ac_status = 0; }; then :
3521 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3522 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3523 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3524 # so that the user can short-circuit this test for compilers unknown to
3525 # Autoconf.
3526 for ac_file in $ac_files ''
3528 test -f "$ac_file" || continue
3529 case $ac_file in
3530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3532 [ab].out )
3533 # We found the default executable, but exeext='' is most
3534 # certainly right.
3535 break;;
3536 *.* )
3537 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3538 then :; else
3539 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3541 # We set ac_cv_exeext here because the later test for it is not
3542 # safe: cross compilers may not add the suffix if given an `-o'
3543 # argument, so we may need to know it at that point already.
3544 # Even if this section looks crufty: it has the advantage of
3545 # actually working.
3546 break;;
3548 break;;
3549 esac
3550 done
3551 test "$ac_cv_exeext" = no && ac_cv_exeext=
3553 else
3554 ac_file=''
3556 if test -z "$ac_file"; then :
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3558 $as_echo "no" >&6; }
3559 $as_echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564 as_fn_error 77 "C++ compiler cannot create executables
3565 See \`config.log' for more details" "$LINENO" 5; }
3566 else
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3568 $as_echo "yes" >&6; }
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3571 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3573 $as_echo "$ac_file" >&6; }
3574 ac_exeext=$ac_cv_exeext
3576 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3577 ac_clean_files=$ac_clean_files_save
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3579 $as_echo_n "checking for suffix of executables... " >&6; }
3580 if { { ac_try="$ac_link"
3581 case "(($ac_try" in
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3584 esac
3585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3586 $as_echo "$ac_try_echo"; } >&5
3587 (eval "$ac_link") 2>&5
3588 ac_status=$?
3589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3590 test $ac_status = 0; }; then :
3591 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3592 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3593 # work properly (i.e., refer to `conftest.exe'), while it won't with
3594 # `rm'.
3595 for ac_file in conftest.exe conftest conftest.*; do
3596 test -f "$ac_file" || continue
3597 case $ac_file in
3598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3599 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3600 break;;
3601 * ) break;;
3602 esac
3603 done
3604 else
3605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3607 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3608 See \`config.log' for more details" "$LINENO" 5; }
3610 rm -f conftest conftest$ac_cv_exeext
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3612 $as_echo "$ac_cv_exeext" >&6; }
3614 rm -f conftest.$ac_ext
3615 EXEEXT=$ac_cv_exeext
3616 ac_exeext=$EXEEXT
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3618 /* end confdefs.h. */
3619 #include <stdio.h>
3621 main ()
3623 FILE *f = fopen ("conftest.out", "w");
3624 return ferror (f) || fclose (f) != 0;
3627 return 0;
3629 _ACEOF
3630 ac_clean_files="$ac_clean_files conftest.out"
3631 # Check that the compiler produces executables we can run. If not, either
3632 # the compiler is broken, or we cross compile.
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3634 $as_echo_n "checking whether we are cross compiling... " >&6; }
3635 if test "$cross_compiling" != yes; then
3636 { { ac_try="$ac_link"
3637 case "(($ac_try" in
3638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3639 *) ac_try_echo=$ac_try;;
3640 esac
3641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3642 $as_echo "$ac_try_echo"; } >&5
3643 (eval "$ac_link") 2>&5
3644 ac_status=$?
3645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3646 test $ac_status = 0; }
3647 if { ac_try='./conftest$ac_cv_exeext'
3648 { { case "(($ac_try" in
3649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3651 esac
3652 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3653 $as_echo "$ac_try_echo"; } >&5
3654 (eval "$ac_try") 2>&5
3655 ac_status=$?
3656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3657 test $ac_status = 0; }; }; then
3658 cross_compiling=no
3659 else
3660 if test "$cross_compiling" = maybe; then
3661 cross_compiling=yes
3662 else
3663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3665 as_fn_error $? "cannot run C++ compiled programs.
3666 If you meant to cross compile, use \`--host'.
3667 See \`config.log' for more details" "$LINENO" 5; }
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3672 $as_echo "$cross_compiling" >&6; }
3674 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3675 ac_clean_files=$ac_clean_files_save
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3677 $as_echo_n "checking for suffix of object files... " >&6; }
3678 if ${ac_cv_objext+:} false; then :
3679 $as_echo_n "(cached) " >&6
3680 else
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3685 main ()
3689 return 0;
3691 _ACEOF
3692 rm -f conftest.o conftest.obj
3693 if { { ac_try="$ac_compile"
3694 case "(($ac_try" in
3695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3696 *) ac_try_echo=$ac_try;;
3697 esac
3698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3699 $as_echo "$ac_try_echo"; } >&5
3700 (eval "$ac_compile") 2>&5
3701 ac_status=$?
3702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3703 test $ac_status = 0; }; then :
3704 for ac_file in conftest.o conftest.obj conftest.*; do
3705 test -f "$ac_file" || continue;
3706 case $ac_file in
3707 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3708 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3709 break;;
3710 esac
3711 done
3712 else
3713 $as_echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.$ac_ext >&5
3716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3718 as_fn_error $? "cannot compute suffix of object files: cannot compile
3719 See \`config.log' for more details" "$LINENO" 5; }
3721 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3724 $as_echo "$ac_cv_objext" >&6; }
3725 OBJEXT=$ac_cv_objext
3726 ac_objext=$OBJEXT
3727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3728 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3729 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3730 $as_echo_n "(cached) " >&6
3731 else
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3736 main ()
3738 #ifndef __GNUC__
3739 choke me
3740 #endif
3743 return 0;
3745 _ACEOF
3746 if ac_fn_cxx_try_compile "$LINENO"; then :
3747 ac_compiler_gnu=yes
3748 else
3749 ac_compiler_gnu=no
3751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3756 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3757 if test $ac_compiler_gnu = yes; then
3758 GXX=yes
3759 else
3760 GXX=
3762 ac_test_CXXFLAGS=${CXXFLAGS+set}
3763 ac_save_CXXFLAGS=$CXXFLAGS
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3765 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3766 if ${ac_cv_prog_cxx_g+:} false; then :
3767 $as_echo_n "(cached) " >&6
3768 else
3769 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3770 ac_cxx_werror_flag=yes
3771 ac_cv_prog_cxx_g=no
3772 CXXFLAGS="-g"
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3777 main ()
3781 return 0;
3783 _ACEOF
3784 if ac_fn_cxx_try_compile "$LINENO"; then :
3785 ac_cv_prog_cxx_g=yes
3786 else
3787 CXXFLAGS=""
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3792 main ()
3796 return 0;
3798 _ACEOF
3799 if ac_fn_cxx_try_compile "$LINENO"; then :
3801 else
3802 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3803 CXXFLAGS="-g"
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3808 main ()
3812 return 0;
3814 _ACEOF
3815 if ac_fn_cxx_try_compile "$LINENO"; then :
3816 ac_cv_prog_cxx_g=yes
3818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3823 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3826 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3827 if test "$ac_test_CXXFLAGS" = set; then
3828 CXXFLAGS=$ac_save_CXXFLAGS
3829 elif test $ac_cv_prog_cxx_g = yes; then
3830 if test "$GXX" = yes; then
3831 CXXFLAGS="-g -O2"
3832 else
3833 CXXFLAGS="-g"
3835 else
3836 if test "$GXX" = yes; then
3837 CXXFLAGS="-O2"
3838 else
3839 CXXFLAGS=
3842 ac_ext=c
3843 ac_cpp='$CPP $CPPFLAGS'
3844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3847 DEPDIR="${am__leading_dot}deps"
3849 ac_config_commands="$ac_config_commands depfiles"
3852 am_make=${MAKE-make}
3853 cat > confinc << 'END'
3854 am__doit:
3855 @echo this is the am__doit target
3856 .PHONY: am__doit
3858 # If we don't find an include directive, just comment out the code.
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3860 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3861 am__include="#"
3862 am__quote=
3863 _am_result=none
3864 # First try GNU make style include.
3865 echo "include confinc" > confmf
3866 # Ignore all kinds of additional output from `make'.
3867 case `$am_make -s -f confmf 2> /dev/null` in #(
3868 *the\ am__doit\ target*)
3869 am__include=include
3870 am__quote=
3871 _am_result=GNU
3873 esac
3874 # Now try BSD make style include.
3875 if test "$am__include" = "#"; then
3876 echo '.include "confinc"' > confmf
3877 case `$am_make -s -f confmf 2> /dev/null` in #(
3878 *the\ am__doit\ target*)
3879 am__include=.include
3880 am__quote="\""
3881 _am_result=BSD
3883 esac
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3888 $as_echo "$_am_result" >&6; }
3889 rm -f confinc confmf
3891 # Check whether --enable-dependency-tracking was given.
3892 if test "${enable_dependency_tracking+set}" = set; then :
3893 enableval=$enable_dependency_tracking;
3896 if test "x$enable_dependency_tracking" != xno; then
3897 am_depcomp="$ac_aux_dir/depcomp"
3898 AMDEPBACKSLASH='\'
3899 am__nodep='_no'
3901 if test "x$enable_dependency_tracking" != xno; then
3902 AMDEP_TRUE=
3903 AMDEP_FALSE='#'
3904 else
3905 AMDEP_TRUE='#'
3906 AMDEP_FALSE=
3911 depcc="$CXX" am_compiler_list=
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3914 $as_echo_n "checking dependency style of $depcc... " >&6; }
3915 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3916 $as_echo_n "(cached) " >&6
3917 else
3918 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3919 # We make a subdir and do the tests there. Otherwise we can end up
3920 # making bogus files that we don't know about and never remove. For
3921 # instance it was reported that on HP-UX the gcc test will end up
3922 # making a dummy file named `D' -- because `-MD' means `put the output
3923 # in D'.
3924 rm -rf conftest.dir
3925 mkdir conftest.dir
3926 # Copy depcomp to subdir because otherwise we won't find it if we're
3927 # using a relative directory.
3928 cp "$am_depcomp" conftest.dir
3929 cd conftest.dir
3930 # We will build objects and dependencies in a subdirectory because
3931 # it helps to detect inapplicable dependency modes. For instance
3932 # both Tru64's cc and ICC support -MD to output dependencies as a
3933 # side effect of compilation, but ICC will put the dependencies in
3934 # the current directory while Tru64 will put them in the object
3935 # directory.
3936 mkdir sub
3938 am_cv_CXX_dependencies_compiler_type=none
3939 if test "$am_compiler_list" = ""; then
3940 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3942 am__universal=false
3943 case " $depcc " in #(
3944 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3945 esac
3947 for depmode in $am_compiler_list; do
3948 # Setup a source with many dependencies, because some compilers
3949 # like to wrap large dependency lists on column 80 (with \), and
3950 # we should not choose a depcomp mode which is confused by this.
3952 # We need to recreate these files for each test, as the compiler may
3953 # overwrite some of them when testing with obscure command lines.
3954 # This happens at least with the AIX C compiler.
3955 : > sub/conftest.c
3956 for i in 1 2 3 4 5 6; do
3957 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3958 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3959 # Solaris 8's {/usr,}/bin/sh.
3960 touch sub/conftst$i.h
3961 done
3962 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3964 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3965 # mode. It turns out that the SunPro C++ compiler does not properly
3966 # handle `-M -o', and we need to detect this. Also, some Intel
3967 # versions had trouble with output in subdirs
3968 am__obj=sub/conftest.${OBJEXT-o}
3969 am__minus_obj="-o $am__obj"
3970 case $depmode in
3971 gcc)
3972 # This depmode causes a compiler race in universal mode.
3973 test "$am__universal" = false || continue
3975 nosideeffect)
3976 # after this tag, mechanisms are not by side-effect, so they'll
3977 # only be used when explicitly requested
3978 if test "x$enable_dependency_tracking" = xyes; then
3979 continue
3980 else
3981 break
3984 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3985 # This compiler won't grok `-c -o', but also, the minuso test has
3986 # not run yet. These depmodes are late enough in the game, and
3987 # so weak that their functioning should not be impacted.
3988 am__obj=conftest.${OBJEXT-o}
3989 am__minus_obj=
3991 none) break ;;
3992 esac
3993 if depmode=$depmode \
3994 source=sub/conftest.c object=$am__obj \
3995 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3996 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3997 >/dev/null 2>conftest.err &&
3998 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3999 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4000 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4001 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4002 # icc doesn't choke on unknown options, it will just issue warnings
4003 # or remarks (even with -Werror). So we grep stderr for any message
4004 # that says an option was ignored or not supported.
4005 # When given -MP, icc 7.0 and 7.1 complain thusly:
4006 # icc: Command line warning: ignoring option '-M'; no argument required
4007 # The diagnosis changed in icc 8.0:
4008 # icc: Command line remark: option '-MP' not supported
4009 if (grep 'ignoring option' conftest.err ||
4010 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4011 am_cv_CXX_dependencies_compiler_type=$depmode
4012 break
4015 done
4017 cd ..
4018 rm -rf conftest.dir
4019 else
4020 am_cv_CXX_dependencies_compiler_type=none
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4025 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4026 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4029 test "x$enable_dependency_tracking" != xno \
4030 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4031 am__fastdepCXX_TRUE=
4032 am__fastdepCXX_FALSE='#'
4033 else
4034 am__fastdepCXX_TRUE='#'
4035 am__fastdepCXX_FALSE=
4039 ac_ext=cpp
4040 ac_cpp='$CXXCPP $CPPFLAGS'
4041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4045 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4046 if test -z "$CXXCPP"; then
4047 if ${ac_cv_prog_CXXCPP+:} false; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 # Double quotes because CXXCPP needs to be expanded
4051 for CXXCPP in "$CXX -E" "/lib/cpp"
4053 ac_preproc_ok=false
4054 for ac_cxx_preproc_warn_flag in '' yes
4056 # Use a header file that comes with gcc, so configuring glibc
4057 # with a fresh cross-compiler works.
4058 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4059 # <limits.h> exists even on freestanding compilers.
4060 # On the NeXT, cc -E runs the code through the compiler's parser,
4061 # not just through cpp. "Syntax error" is here to catch this case.
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h. */
4064 #ifdef __STDC__
4065 # include <limits.h>
4066 #else
4067 # include <assert.h>
4068 #endif
4069 Syntax error
4070 _ACEOF
4071 if ac_fn_cxx_try_cpp "$LINENO"; then :
4073 else
4074 # Broken: fails on valid input.
4075 continue
4077 rm -f conftest.err conftest.i conftest.$ac_ext
4079 # OK, works on sane cases. Now check whether nonexistent headers
4080 # can be detected and how.
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4083 #include <ac_nonexistent.h>
4084 _ACEOF
4085 if ac_fn_cxx_try_cpp "$LINENO"; then :
4086 # Broken: success on invalid input.
4087 continue
4088 else
4089 # Passes both tests.
4090 ac_preproc_ok=:
4091 break
4093 rm -f conftest.err conftest.i conftest.$ac_ext
4095 done
4096 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4097 rm -f conftest.i conftest.err conftest.$ac_ext
4098 if $ac_preproc_ok; then :
4099 break
4102 done
4103 ac_cv_prog_CXXCPP=$CXXCPP
4106 CXXCPP=$ac_cv_prog_CXXCPP
4107 else
4108 ac_cv_prog_CXXCPP=$CXXCPP
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4111 $as_echo "$CXXCPP" >&6; }
4112 ac_preproc_ok=false
4113 for ac_cxx_preproc_warn_flag in '' yes
4115 # Use a header file that comes with gcc, so configuring glibc
4116 # with a fresh cross-compiler works.
4117 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4118 # <limits.h> exists even on freestanding compilers.
4119 # On the NeXT, cc -E runs the code through the compiler's parser,
4120 # not just through cpp. "Syntax error" is here to catch this case.
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122 /* end confdefs.h. */
4123 #ifdef __STDC__
4124 # include <limits.h>
4125 #else
4126 # include <assert.h>
4127 #endif
4128 Syntax error
4129 _ACEOF
4130 if ac_fn_cxx_try_cpp "$LINENO"; then :
4132 else
4133 # Broken: fails on valid input.
4134 continue
4136 rm -f conftest.err conftest.i conftest.$ac_ext
4138 # OK, works on sane cases. Now check whether nonexistent headers
4139 # can be detected and how.
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141 /* end confdefs.h. */
4142 #include <ac_nonexistent.h>
4143 _ACEOF
4144 if ac_fn_cxx_try_cpp "$LINENO"; then :
4145 # Broken: success on invalid input.
4146 continue
4147 else
4148 # Passes both tests.
4149 ac_preproc_ok=:
4150 break
4152 rm -f conftest.err conftest.i conftest.$ac_ext
4154 done
4155 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4156 rm -f conftest.i conftest.err conftest.$ac_ext
4157 if $ac_preproc_ok; then :
4159 else
4160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4162 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4163 See \`config.log' for more details" "$LINENO" 5; }
4166 ac_ext=c
4167 ac_cpp='$CPP $CPPFLAGS'
4168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4172 ac_ext=c
4173 ac_cpp='$CPP $CPPFLAGS'
4174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4177 if test -n "$ac_tool_prefix"; then
4178 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4179 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4181 $as_echo_n "checking for $ac_word... " >&6; }
4182 if ${ac_cv_prog_CC+:} false; then :
4183 $as_echo_n "(cached) " >&6
4184 else
4185 if test -n "$CC"; then
4186 ac_cv_prog_CC="$CC" # Let the user override the test.
4187 else
4188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 for as_dir in $PATH
4191 IFS=$as_save_IFS
4192 test -z "$as_dir" && as_dir=.
4193 for ac_exec_ext in '' $ac_executable_extensions; do
4194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4195 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4197 break 2
4199 done
4200 done
4201 IFS=$as_save_IFS
4205 CC=$ac_cv_prog_CC
4206 if test -n "$CC"; then
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4208 $as_echo "$CC" >&6; }
4209 else
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211 $as_echo "no" >&6; }
4216 if test -z "$ac_cv_prog_CC"; then
4217 ac_ct_CC=$CC
4218 # Extract the first word of "gcc", so it can be a program name with args.
4219 set dummy gcc; ac_word=$2
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221 $as_echo_n "checking for $ac_word... " >&6; }
4222 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4223 $as_echo_n "(cached) " >&6
4224 else
4225 if test -n "$ac_ct_CC"; then
4226 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4227 else
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4231 IFS=$as_save_IFS
4232 test -z "$as_dir" && as_dir=.
4233 for ac_exec_ext in '' $ac_executable_extensions; do
4234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4235 ac_cv_prog_ac_ct_CC="gcc"
4236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 break 2
4239 done
4240 done
4241 IFS=$as_save_IFS
4245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4246 if test -n "$ac_ct_CC"; then
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4248 $as_echo "$ac_ct_CC" >&6; }
4249 else
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 $as_echo "no" >&6; }
4254 if test "x$ac_ct_CC" = x; then
4255 CC=""
4256 else
4257 case $cross_compiling:$ac_tool_warned in
4258 yes:)
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4261 ac_tool_warned=yes ;;
4262 esac
4263 CC=$ac_ct_CC
4265 else
4266 CC="$ac_cv_prog_CC"
4269 if test -z "$CC"; then
4270 if test -n "$ac_tool_prefix"; then
4271 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4272 set dummy ${ac_tool_prefix}cc; ac_word=$2
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4274 $as_echo_n "checking for $ac_word... " >&6; }
4275 if ${ac_cv_prog_CC+:} false; then :
4276 $as_echo_n "(cached) " >&6
4277 else
4278 if test -n "$CC"; then
4279 ac_cv_prog_CC="$CC" # Let the user override the test.
4280 else
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 for as_dir in $PATH
4284 IFS=$as_save_IFS
4285 test -z "$as_dir" && as_dir=.
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4288 ac_cv_prog_CC="${ac_tool_prefix}cc"
4289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 break 2
4292 done
4293 done
4294 IFS=$as_save_IFS
4298 CC=$ac_cv_prog_CC
4299 if test -n "$CC"; then
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4301 $as_echo "$CC" >&6; }
4302 else
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4304 $as_echo "no" >&6; }
4310 if test -z "$CC"; then
4311 # Extract the first word of "cc", so it can be a program name with args.
4312 set dummy cc; ac_word=$2
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4314 $as_echo_n "checking for $ac_word... " >&6; }
4315 if ${ac_cv_prog_CC+:} false; then :
4316 $as_echo_n "(cached) " >&6
4317 else
4318 if test -n "$CC"; then
4319 ac_cv_prog_CC="$CC" # Let the user override the test.
4320 else
4321 ac_prog_rejected=no
4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 for as_dir in $PATH
4325 IFS=$as_save_IFS
4326 test -z "$as_dir" && as_dir=.
4327 for ac_exec_ext in '' $ac_executable_extensions; do
4328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4329 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4330 ac_prog_rejected=yes
4331 continue
4333 ac_cv_prog_CC="cc"
4334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 break 2
4337 done
4338 done
4339 IFS=$as_save_IFS
4341 if test $ac_prog_rejected = yes; then
4342 # We found a bogon in the path, so make sure we never use it.
4343 set dummy $ac_cv_prog_CC
4344 shift
4345 if test $# != 0; then
4346 # We chose a different compiler from the bogus one.
4347 # However, it has the same basename, so the bogon will be chosen
4348 # first if we set CC to just the basename; use the full file name.
4349 shift
4350 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4355 CC=$ac_cv_prog_CC
4356 if test -n "$CC"; then
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4358 $as_echo "$CC" >&6; }
4359 else
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4361 $as_echo "no" >&6; }
4366 if test -z "$CC"; then
4367 if test -n "$ac_tool_prefix"; then
4368 for ac_prog in cl.exe
4370 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4371 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4373 $as_echo_n "checking for $ac_word... " >&6; }
4374 if ${ac_cv_prog_CC+:} false; then :
4375 $as_echo_n "(cached) " >&6
4376 else
4377 if test -n "$CC"; then
4378 ac_cv_prog_CC="$CC" # Let the user override the test.
4379 else
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH
4383 IFS=$as_save_IFS
4384 test -z "$as_dir" && as_dir=.
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4387 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 break 2
4391 done
4392 done
4393 IFS=$as_save_IFS
4397 CC=$ac_cv_prog_CC
4398 if test -n "$CC"; then
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4400 $as_echo "$CC" >&6; }
4401 else
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4403 $as_echo "no" >&6; }
4407 test -n "$CC" && break
4408 done
4410 if test -z "$CC"; then
4411 ac_ct_CC=$CC
4412 for ac_prog in cl.exe
4414 # Extract the first word of "$ac_prog", so it can be a program name with args.
4415 set dummy $ac_prog; ac_word=$2
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417 $as_echo_n "checking for $ac_word... " >&6; }
4418 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4419 $as_echo_n "(cached) " >&6
4420 else
4421 if test -n "$ac_ct_CC"; then
4422 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4423 else
4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH
4427 IFS=$as_save_IFS
4428 test -z "$as_dir" && as_dir=.
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4431 ac_cv_prog_ac_ct_CC="$ac_prog"
4432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4433 break 2
4435 done
4436 done
4437 IFS=$as_save_IFS
4441 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4442 if test -n "$ac_ct_CC"; then
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4444 $as_echo "$ac_ct_CC" >&6; }
4445 else
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4447 $as_echo "no" >&6; }
4451 test -n "$ac_ct_CC" && break
4452 done
4454 if test "x$ac_ct_CC" = x; then
4455 CC=""
4456 else
4457 case $cross_compiling:$ac_tool_warned in
4458 yes:)
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4461 ac_tool_warned=yes ;;
4462 esac
4463 CC=$ac_ct_CC
4470 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4471 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4472 as_fn_error $? "no acceptable C compiler found in \$PATH
4473 See \`config.log' for more details" "$LINENO" 5; }
4475 # Provide some information about the compiler.
4476 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4477 set X $ac_compile
4478 ac_compiler=$2
4479 for ac_option in --version -v -V -qversion; do
4480 { { ac_try="$ac_compiler $ac_option >&5"
4481 case "(($ac_try" in
4482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4483 *) ac_try_echo=$ac_try;;
4484 esac
4485 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4486 $as_echo "$ac_try_echo"; } >&5
4487 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4488 ac_status=$?
4489 if test -s conftest.err; then
4490 sed '10a\
4491 ... rest of stderr output deleted ...
4492 10q' conftest.err >conftest.er1
4493 cat conftest.er1 >&5
4495 rm -f conftest.er1 conftest.err
4496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4497 test $ac_status = 0; }
4498 done
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4501 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4502 if ${ac_cv_c_compiler_gnu+:} false; then :
4503 $as_echo_n "(cached) " >&6
4504 else
4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4506 /* end confdefs.h. */
4509 main ()
4511 #ifndef __GNUC__
4512 choke me
4513 #endif
4516 return 0;
4518 _ACEOF
4519 if ac_fn_c_try_compile "$LINENO"; then :
4520 ac_compiler_gnu=yes
4521 else
4522 ac_compiler_gnu=no
4524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4529 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4530 if test $ac_compiler_gnu = yes; then
4531 GCC=yes
4532 else
4533 GCC=
4535 ac_test_CFLAGS=${CFLAGS+set}
4536 ac_save_CFLAGS=$CFLAGS
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4538 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4539 if ${ac_cv_prog_cc_g+:} false; then :
4540 $as_echo_n "(cached) " >&6
4541 else
4542 ac_save_c_werror_flag=$ac_c_werror_flag
4543 ac_c_werror_flag=yes
4544 ac_cv_prog_cc_g=no
4545 CFLAGS="-g"
4546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4547 /* end confdefs.h. */
4550 main ()
4554 return 0;
4556 _ACEOF
4557 if ac_fn_c_try_compile "$LINENO"; then :
4558 ac_cv_prog_cc_g=yes
4559 else
4560 CFLAGS=""
4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4565 main ()
4569 return 0;
4571 _ACEOF
4572 if ac_fn_c_try_compile "$LINENO"; then :
4574 else
4575 ac_c_werror_flag=$ac_save_c_werror_flag
4576 CFLAGS="-g"
4577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4578 /* end confdefs.h. */
4581 main ()
4585 return 0;
4587 _ACEOF
4588 if ac_fn_c_try_compile "$LINENO"; then :
4589 ac_cv_prog_cc_g=yes
4591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4596 ac_c_werror_flag=$ac_save_c_werror_flag
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4599 $as_echo "$ac_cv_prog_cc_g" >&6; }
4600 if test "$ac_test_CFLAGS" = set; then
4601 CFLAGS=$ac_save_CFLAGS
4602 elif test $ac_cv_prog_cc_g = yes; then
4603 if test "$GCC" = yes; then
4604 CFLAGS="-g -O2"
4605 else
4606 CFLAGS="-g"
4608 else
4609 if test "$GCC" = yes; then
4610 CFLAGS="-O2"
4611 else
4612 CFLAGS=
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4616 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4617 if ${ac_cv_prog_cc_c89+:} false; then :
4618 $as_echo_n "(cached) " >&6
4619 else
4620 ac_cv_prog_cc_c89=no
4621 ac_save_CC=$CC
4622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4624 #include <stdarg.h>
4625 #include <stdio.h>
4626 struct stat;
4627 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4628 struct buf { int x; };
4629 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4630 static char *e (p, i)
4631 char **p;
4632 int i;
4634 return p[i];
4636 static char *f (char * (*g) (char **, int), char **p, ...)
4638 char *s;
4639 va_list v;
4640 va_start (v,p);
4641 s = g (p, va_arg (v,int));
4642 va_end (v);
4643 return s;
4646 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4647 function prototypes and stuff, but not '\xHH' hex character constants.
4648 These don't provoke an error unfortunately, instead are silently treated
4649 as 'x'. The following induces an error, until -std is added to get
4650 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4651 array size at least. It's necessary to write '\x00'==0 to get something
4652 that's true only with -std. */
4653 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4655 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4656 inside strings and character constants. */
4657 #define FOO(x) 'x'
4658 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4660 int test (int i, double x);
4661 struct s1 {int (*f) (int a);};
4662 struct s2 {int (*f) (double a);};
4663 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4664 int argc;
4665 char **argv;
4667 main ()
4669 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4671 return 0;
4673 _ACEOF
4674 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4675 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4677 CC="$ac_save_CC $ac_arg"
4678 if ac_fn_c_try_compile "$LINENO"; then :
4679 ac_cv_prog_cc_c89=$ac_arg
4681 rm -f core conftest.err conftest.$ac_objext
4682 test "x$ac_cv_prog_cc_c89" != "xno" && break
4683 done
4684 rm -f conftest.$ac_ext
4685 CC=$ac_save_CC
4688 # AC_CACHE_VAL
4689 case "x$ac_cv_prog_cc_c89" in
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4692 $as_echo "none needed" >&6; } ;;
4693 xno)
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4695 $as_echo "unsupported" >&6; } ;;
4697 CC="$CC $ac_cv_prog_cc_c89"
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4699 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4700 esac
4701 if test "x$ac_cv_prog_cc_c89" != xno; then :
4705 ac_ext=c
4706 ac_cpp='$CPP $CPPFLAGS'
4707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4711 depcc="$CC" am_compiler_list=
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4714 $as_echo_n "checking dependency style of $depcc... " >&6; }
4715 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4716 $as_echo_n "(cached) " >&6
4717 else
4718 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4719 # We make a subdir and do the tests there. Otherwise we can end up
4720 # making bogus files that we don't know about and never remove. For
4721 # instance it was reported that on HP-UX the gcc test will end up
4722 # making a dummy file named `D' -- because `-MD' means `put the output
4723 # in D'.
4724 rm -rf conftest.dir
4725 mkdir conftest.dir
4726 # Copy depcomp to subdir because otherwise we won't find it if we're
4727 # using a relative directory.
4728 cp "$am_depcomp" conftest.dir
4729 cd conftest.dir
4730 # We will build objects and dependencies in a subdirectory because
4731 # it helps to detect inapplicable dependency modes. For instance
4732 # both Tru64's cc and ICC support -MD to output dependencies as a
4733 # side effect of compilation, but ICC will put the dependencies in
4734 # the current directory while Tru64 will put them in the object
4735 # directory.
4736 mkdir sub
4738 am_cv_CC_dependencies_compiler_type=none
4739 if test "$am_compiler_list" = ""; then
4740 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4742 am__universal=false
4743 case " $depcc " in #(
4744 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4745 esac
4747 for depmode in $am_compiler_list; do
4748 # Setup a source with many dependencies, because some compilers
4749 # like to wrap large dependency lists on column 80 (with \), and
4750 # we should not choose a depcomp mode which is confused by this.
4752 # We need to recreate these files for each test, as the compiler may
4753 # overwrite some of them when testing with obscure command lines.
4754 # This happens at least with the AIX C compiler.
4755 : > sub/conftest.c
4756 for i in 1 2 3 4 5 6; do
4757 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4758 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4759 # Solaris 8's {/usr,}/bin/sh.
4760 touch sub/conftst$i.h
4761 done
4762 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4764 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4765 # mode. It turns out that the SunPro C++ compiler does not properly
4766 # handle `-M -o', and we need to detect this. Also, some Intel
4767 # versions had trouble with output in subdirs
4768 am__obj=sub/conftest.${OBJEXT-o}
4769 am__minus_obj="-o $am__obj"
4770 case $depmode in
4771 gcc)
4772 # This depmode causes a compiler race in universal mode.
4773 test "$am__universal" = false || continue
4775 nosideeffect)
4776 # after this tag, mechanisms are not by side-effect, so they'll
4777 # only be used when explicitly requested
4778 if test "x$enable_dependency_tracking" = xyes; then
4779 continue
4780 else
4781 break
4784 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4785 # This compiler won't grok `-c -o', but also, the minuso test has
4786 # not run yet. These depmodes are late enough in the game, and
4787 # so weak that their functioning should not be impacted.
4788 am__obj=conftest.${OBJEXT-o}
4789 am__minus_obj=
4791 none) break ;;
4792 esac
4793 if depmode=$depmode \
4794 source=sub/conftest.c object=$am__obj \
4795 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4796 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4797 >/dev/null 2>conftest.err &&
4798 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4799 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4800 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4801 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4802 # icc doesn't choke on unknown options, it will just issue warnings
4803 # or remarks (even with -Werror). So we grep stderr for any message
4804 # that says an option was ignored or not supported.
4805 # When given -MP, icc 7.0 and 7.1 complain thusly:
4806 # icc: Command line warning: ignoring option '-M'; no argument required
4807 # The diagnosis changed in icc 8.0:
4808 # icc: Command line remark: option '-MP' not supported
4809 if (grep 'ignoring option' conftest.err ||
4810 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4811 am_cv_CC_dependencies_compiler_type=$depmode
4812 break
4815 done
4817 cd ..
4818 rm -rf conftest.dir
4819 else
4820 am_cv_CC_dependencies_compiler_type=none
4824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4825 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4826 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4829 test "x$enable_dependency_tracking" != xno \
4830 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4831 am__fastdepCC_TRUE=
4832 am__fastdepCC_FALSE='#'
4833 else
4834 am__fastdepCC_TRUE='#'
4835 am__fastdepCC_FALSE=
4839 ac_ext=c
4840 ac_cpp='$CPP $CPPFLAGS'
4841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4845 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4846 # On Suns, sometimes $CPP names a directory.
4847 if test -n "$CPP" && test -d "$CPP"; then
4848 CPP=
4850 if test -z "$CPP"; then
4851 if ${ac_cv_prog_CPP+:} false; then :
4852 $as_echo_n "(cached) " >&6
4853 else
4854 # Double quotes because CPP needs to be expanded
4855 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4857 ac_preproc_ok=false
4858 for ac_c_preproc_warn_flag in '' yes
4860 # Use a header file that comes with gcc, so configuring glibc
4861 # with a fresh cross-compiler works.
4862 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4863 # <limits.h> exists even on freestanding compilers.
4864 # On the NeXT, cc -E runs the code through the compiler's parser,
4865 # not just through cpp. "Syntax error" is here to catch this case.
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4868 #ifdef __STDC__
4869 # include <limits.h>
4870 #else
4871 # include <assert.h>
4872 #endif
4873 Syntax error
4874 _ACEOF
4875 if ac_fn_c_try_cpp "$LINENO"; then :
4877 else
4878 # Broken: fails on valid input.
4879 continue
4881 rm -f conftest.err conftest.i conftest.$ac_ext
4883 # OK, works on sane cases. Now check whether nonexistent headers
4884 # can be detected and how.
4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4887 #include <ac_nonexistent.h>
4888 _ACEOF
4889 if ac_fn_c_try_cpp "$LINENO"; then :
4890 # Broken: success on invalid input.
4891 continue
4892 else
4893 # Passes both tests.
4894 ac_preproc_ok=:
4895 break
4897 rm -f conftest.err conftest.i conftest.$ac_ext
4899 done
4900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4901 rm -f conftest.i conftest.err conftest.$ac_ext
4902 if $ac_preproc_ok; then :
4903 break
4906 done
4907 ac_cv_prog_CPP=$CPP
4910 CPP=$ac_cv_prog_CPP
4911 else
4912 ac_cv_prog_CPP=$CPP
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4915 $as_echo "$CPP" >&6; }
4916 ac_preproc_ok=false
4917 for ac_c_preproc_warn_flag in '' yes
4919 # Use a header file that comes with gcc, so configuring glibc
4920 # with a fresh cross-compiler works.
4921 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4922 # <limits.h> exists even on freestanding compilers.
4923 # On the NeXT, cc -E runs the code through the compiler's parser,
4924 # not just through cpp. "Syntax error" is here to catch this case.
4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4927 #ifdef __STDC__
4928 # include <limits.h>
4929 #else
4930 # include <assert.h>
4931 #endif
4932 Syntax error
4933 _ACEOF
4934 if ac_fn_c_try_cpp "$LINENO"; then :
4936 else
4937 # Broken: fails on valid input.
4938 continue
4940 rm -f conftest.err conftest.i conftest.$ac_ext
4942 # OK, works on sane cases. Now check whether nonexistent headers
4943 # can be detected and how.
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4946 #include <ac_nonexistent.h>
4947 _ACEOF
4948 if ac_fn_c_try_cpp "$LINENO"; then :
4949 # Broken: success on invalid input.
4950 continue
4951 else
4952 # Passes both tests.
4953 ac_preproc_ok=:
4954 break
4956 rm -f conftest.err conftest.i conftest.$ac_ext
4958 done
4959 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4960 rm -f conftest.i conftest.err conftest.$ac_ext
4961 if $ac_preproc_ok; then :
4963 else
4964 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4966 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4967 See \`config.log' for more details" "$LINENO" 5; }
4970 ac_ext=c
4971 ac_cpp='$CPP $CPPFLAGS'
4972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4976 for ac_prog in gawk mawk nawk awk
4978 # Extract the first word of "$ac_prog", so it can be a program name with args.
4979 set dummy $ac_prog; ac_word=$2
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4981 $as_echo_n "checking for $ac_word... " >&6; }
4982 if ${ac_cv_prog_AWK+:} false; then :
4983 $as_echo_n "(cached) " >&6
4984 else
4985 if test -n "$AWK"; then
4986 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4987 else
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4995 ac_cv_prog_AWK="$ac_prog"
4996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 break 2
4999 done
5000 done
5001 IFS=$as_save_IFS
5005 AWK=$ac_cv_prog_AWK
5006 if test -n "$AWK"; then
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5008 $as_echo "$AWK" >&6; }
5009 else
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5011 $as_echo "no" >&6; }
5015 test -n "$AWK" && break
5016 done
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5020 $as_echo_n "checking whether ln -s works... " >&6; }
5021 LN_S=$as_ln_s
5022 if test "$LN_S" = "ln -s"; then
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5024 $as_echo "yes" >&6; }
5025 else
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5027 $as_echo "no, using $LN_S" >&6; }
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5031 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5032 set x ${MAKE-make}
5033 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5034 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5035 $as_echo_n "(cached) " >&6
5036 else
5037 cat >conftest.make <<\_ACEOF
5038 SHELL = /bin/sh
5039 all:
5040 @echo '@@@%%%=$(MAKE)=@@@%%%'
5041 _ACEOF
5042 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5043 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5044 *@@@%%%=?*=@@@%%%*)
5045 eval ac_cv_prog_make_${ac_make}_set=yes;;
5047 eval ac_cv_prog_make_${ac_make}_set=no;;
5048 esac
5049 rm -f conftest.make
5051 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5053 $as_echo "yes" >&6; }
5054 SET_MAKE=
5055 else
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057 $as_echo "no" >&6; }
5058 SET_MAKE="MAKE=${MAKE-make}"
5062 # Check gcc release
5064 if test "$CXX" = "c++" -o "$CXX" = "g++"
5065 then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5069 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5070 if ${ac_cv_path_GREP+:} false; then :
5071 $as_echo_n "(cached) " >&6
5072 else
5073 if test -z "$GREP"; then
5074 ac_path_GREP_found=false
5075 # Loop through the user's path and test for each of PROGNAME-LIST
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5079 IFS=$as_save_IFS
5080 test -z "$as_dir" && as_dir=.
5081 for ac_prog in grep ggrep; do
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5084 as_fn_executable_p "$ac_path_GREP" || continue
5085 # Check for GNU ac_path_GREP and select it if it is found.
5086 # Check for GNU $ac_path_GREP
5087 case `"$ac_path_GREP" --version 2>&1` in
5088 *GNU*)
5089 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5091 ac_count=0
5092 $as_echo_n 0123456789 >"conftest.in"
5093 while :
5095 cat "conftest.in" "conftest.in" >"conftest.tmp"
5096 mv "conftest.tmp" "conftest.in"
5097 cp "conftest.in" "conftest.nl"
5098 $as_echo 'GREP' >> "conftest.nl"
5099 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5100 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5101 as_fn_arith $ac_count + 1 && ac_count=$as_val
5102 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5103 # Best one so far, save it but keep looking for a better one
5104 ac_cv_path_GREP="$ac_path_GREP"
5105 ac_path_GREP_max=$ac_count
5107 # 10*(2^10) chars as input seems more than enough
5108 test $ac_count -gt 10 && break
5109 done
5110 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5111 esac
5113 $ac_path_GREP_found && break 3
5114 done
5115 done
5116 done
5117 IFS=$as_save_IFS
5118 if test -z "$ac_cv_path_GREP"; then
5119 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5121 else
5122 ac_cv_path_GREP=$GREP
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5127 $as_echo "$ac_cv_path_GREP" >&6; }
5128 GREP="$ac_cv_path_GREP"
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5132 $as_echo_n "checking for egrep... " >&6; }
5133 if ${ac_cv_path_EGREP+:} false; then :
5134 $as_echo_n "(cached) " >&6
5135 else
5136 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5137 then ac_cv_path_EGREP="$GREP -E"
5138 else
5139 if test -z "$EGREP"; then
5140 ac_path_EGREP_found=false
5141 # Loop through the user's path and test for each of PROGNAME-LIST
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
5147 for ac_prog in egrep; do
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5150 as_fn_executable_p "$ac_path_EGREP" || continue
5151 # Check for GNU ac_path_EGREP and select it if it is found.
5152 # Check for GNU $ac_path_EGREP
5153 case `"$ac_path_EGREP" --version 2>&1` in
5154 *GNU*)
5155 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5157 ac_count=0
5158 $as_echo_n 0123456789 >"conftest.in"
5159 while :
5161 cat "conftest.in" "conftest.in" >"conftest.tmp"
5162 mv "conftest.tmp" "conftest.in"
5163 cp "conftest.in" "conftest.nl"
5164 $as_echo 'EGREP' >> "conftest.nl"
5165 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5166 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5167 as_fn_arith $ac_count + 1 && ac_count=$as_val
5168 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5169 # Best one so far, save it but keep looking for a better one
5170 ac_cv_path_EGREP="$ac_path_EGREP"
5171 ac_path_EGREP_max=$ac_count
5173 # 10*(2^10) chars as input seems more than enough
5174 test $ac_count -gt 10 && break
5175 done
5176 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5177 esac
5179 $ac_path_EGREP_found && break 3
5180 done
5181 done
5182 done
5183 IFS=$as_save_IFS
5184 if test -z "$ac_cv_path_EGREP"; then
5185 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5187 else
5188 ac_cv_path_EGREP=$EGREP
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5194 $as_echo "$ac_cv_path_EGREP" >&6; }
5195 EGREP="$ac_cv_path_EGREP"
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc compiler release (at least version 3.2.0)" >&5
5199 $as_echo_n "checking for gcc compiler release (at least version 3.2.0)... " >&6; }
5200 if ${ac_cv_gcc_version_3_2_0+:} false; then :
5201 $as_echo_n "(cached) " >&6
5202 else
5203 if test x$GCC = x ; then
5204 ac_cv_gcc_version_3_2_0=no
5205 else
5206 ac_gcc_date=0 ;
5207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208 /* end confdefs.h. */
5209 #define HAVE_GCC_VERSION(MAJOR, MINOR, MICRO, DATE) \
5210 (__GNUC__ > (MAJOR) \
5211 || (__GNUC__ == (MAJOR) && __GNUC_MINOR__ > (MINOR)) \
5212 || (__GNUC__ == (MAJOR) && __GNUC_MINOR__ == (MINOR) \
5213 && __GNUC_PATCHLEVEL__ > (MICRO)) \
5214 || (__GNUC__ == (MAJOR) && __GNUC_MINOR__ == (MINOR) \
5215 && __GNUC_PATCHLEVEL__ == (MICRO) && ${ac_gcc_date}L >= (DATE)))
5216 #if HAVE_GCC_VERSION(3,2,0,0)
5218 #endif
5219 _ACEOF
5220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5221 $EGREP "yes" >/dev/null 2>&1; then :
5222 ac_cv_gcc_version_3_2_0=yes
5223 else
5224 ac_cv_gcc_version_3_2_0=no
5226 rm -f conftest*
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gcc_version_3_2_0" >&5
5232 $as_echo "$ac_cv_gcc_version_3_2_0" >&6; }
5233 if test x$ac_cv_gcc_version_3_2_0 = xyes; then
5235 cat >>confdefs.h <<_ACEOF
5236 #define HAVE_GCC_VERSION_3_2_0 1
5237 _ACEOF
5241 if test "x$ac_cv_gcc_version_3_2_0" = "xno"; then
5242 as_fn_error -1 "Not supported gcc release. Should be 3.2.0 or above. Please update !" "$LINENO" 5
5246 # Check if compiler support C++11
5249 ax_cxx_compile_cxx11_required=falsednl
5250 ac_ext=cpp
5251 ac_cpp='$CXXCPP $CPPFLAGS'
5252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5255 ac_success=no
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5257 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5258 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5259 $as_echo_n "(cached) " >&6
5260 else
5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5262 /* end confdefs.h. */
5264 template <typename T>
5265 struct check
5267 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5270 typedef check<check<bool>> right_angle_brackets;
5272 int a;
5273 decltype(a) b;
5275 typedef check<int> check_type;
5276 check_type c;
5277 check_type&& cr = static_cast<check_type&&>(c);
5279 auto d = a;
5281 _ACEOF
5282 if ac_fn_cxx_try_compile "$LINENO"; then :
5283 ax_cv_cxx_compile_cxx11=yes
5284 else
5285 ax_cv_cxx_compile_cxx11=no
5287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
5290 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
5291 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
5292 ac_success=yes
5297 if test x$ac_success = xno; then
5298 for switch in -std=c++11 -std=c++0x; do
5299 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
5301 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
5302 if eval \${$cachevar+:} false; then :
5303 $as_echo_n "(cached) " >&6
5304 else
5305 ac_save_CXXFLAGS="$CXXFLAGS"
5306 CXXFLAGS="$CXXFLAGS $switch"
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5310 template <typename T>
5311 struct check
5313 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5316 typedef check<check<bool>> right_angle_brackets;
5318 int a;
5319 decltype(a) b;
5321 typedef check<int> check_type;
5322 check_type c;
5323 check_type&& cr = static_cast<check_type&&>(c);
5325 auto d = a;
5327 _ACEOF
5328 if ac_fn_cxx_try_compile "$LINENO"; then :
5329 eval $cachevar=yes
5330 else
5331 eval $cachevar=no
5333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5334 CXXFLAGS="$ac_save_CXXFLAGS"
5336 eval ac_res=\$$cachevar
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5338 $as_echo "$ac_res" >&6; }
5339 if eval test x\$$cachevar = xyes; then
5340 CXXFLAGS="$CXXFLAGS $switch"
5341 ac_success=yes
5342 break
5344 done
5346 ac_ext=c
5347 ac_cpp='$CPP $CPPFLAGS'
5348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5352 if test x$ax_cxx_compile_cxx11_required = xtrue; then
5353 if test x$ac_success = xno; then
5354 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
5356 else
5357 if test x$ac_success = xno; then
5358 HAVE_CXX11=0
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
5360 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
5361 else
5362 HAVE_CXX11=1
5363 CPP_ELEVEN=$switch
5365 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
5374 # Check if Java interpreter is there
5376 # Check whether --enable-java was given.
5377 if test "${enable_java+set}" = set; then :
5378 enableval=$enable_java;
5379 else
5380 enable_java=yes
5384 # Check whether --enable-mariadb was given.
5385 if test "${enable_mariadb+set}" = set; then :
5386 enableval=$enable_mariadb; enable_mariadb=yes
5387 else
5388 enable_mariadb=no
5393 # Check whether --with-java was given.
5394 if test "${with_java+set}" = set; then :
5395 withval=$with_java; JAVA=${with_java}
5396 else
5397 with_java=yes
5401 if test "x$enable_java" = "xyes" ; then
5402 if test "x$with_java" = "xno" -o -z "$with_java"; then
5403 with_java=
5404 enable_java=no
5405 else
5406 if test "x$with_java" = "xyes"; then
5407 # Extract the first word of "java", so it can be a program name with args.
5408 set dummy java; ac_word=$2
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5410 $as_echo_n "checking for $ac_word... " >&6; }
5411 if ${ac_cv_path_JAVA+:} false; then :
5412 $as_echo_n "(cached) " >&6
5413 else
5414 case $JAVA in
5415 [\\/]* | ?:[\\/]*)
5416 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in $PATH
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5426 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
5427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 break 2
5430 done
5431 done
5432 IFS=$as_save_IFS
5434 test -z "$ac_cv_path_JAVA" && ac_cv_path_JAVA=""notfound""
5436 esac
5438 JAVA=$ac_cv_path_JAVA
5439 if test -n "$JAVA"; then
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
5441 $as_echo "$JAVA" >&6; }
5442 else
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5444 $as_echo "no" >&6; }
5449 if test "x$JAVA" != "xnotfound"; then
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java release (at least version 1.7)" >&5
5451 $as_echo_n "checking for java release (at least version 1.7)... " >&6; }
5452 if ${ac_cv_java_version_1_7+:} false; then :
5453 $as_echo_n "(cached) " >&6
5454 else
5456 if test -x $JAVA -a -f $JAVA; then
5457 VERS=`$JAVA -version 2>&1 | grep version | cut -d '"' -f 2`
5458 JAVA_VERSION=$VERS
5460 JAVA_MAJOR=`echo $VERS | cut -d '.' -f 1`
5461 JAVA_MINOR=`echo $VERS | cut -d '.' -f 2`
5462 JAVA_MICRO=`echo $VERS | cut -d '.' -f 3`
5465 if test $JAVA_MAJOR -lt 1; then
5466 ac_cv_java_version_1_7=no
5467 else
5468 if test $JAVA_MINOR -lt 7; then
5469 ac_cv_java_version_1_7=no
5470 else
5471 ac_cv_java_version_1_7=yes
5474 else
5475 ac_cv_java_version_1_7=no
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_java_version_1_7" >&5
5480 $as_echo "$ac_cv_java_version_1_7" >&6; }
5482 if test "x$ac_cv_java_version_1_7" = "xno"; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not supported java release. Should be 1.7.x or above. Java will be disabled for this build!" >&5
5484 $as_echo "$as_me: WARNING: Not supported java release. Should be 1.7.x or above. Java will be disabled for this build!" >&2;}
5485 with_java=
5486 enable_java=no
5487 else
5488 with_java=$JAVA
5490 else
5491 with_java=
5492 enable_java=no
5495 else
5496 with_java=
5499 # Define a conditional variable to enable or disable installation
5500 # of java applications. The variable is used in the Makefiles.
5503 if test x"$enable_java" != x"no"; then
5504 TANGO_JAVA_ENABLED_TRUE=
5505 TANGO_JAVA_ENABLED_FALSE='#'
5506 else
5507 TANGO_JAVA_ENABLED_TRUE='#'
5508 TANGO_JAVA_ENABLED_FALSE=
5512 # Check if doxygen is there
5515 # Check whether --with-doxygen was given.
5516 if test "${with_doxygen+set}" = set; then :
5517 withval=$with_doxygen; DOXYGEN=${with_doxygen}
5518 else
5519 # Extract the first word of "doxygen", so it can be a program name with args.
5520 set dummy doxygen; ac_word=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if ${ac_cv_path_DOXYGEN+:} false; then :
5524 $as_echo_n "(cached) " >&6
5525 else
5526 case $DOXYGEN in
5527 [\\/]* | ?:[\\/]*)
5528 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 for as_dir in $PATH
5534 IFS=$as_save_IFS
5535 test -z "$as_dir" && as_dir=.
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5538 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 break 2
5542 done
5543 done
5544 IFS=$as_save_IFS
5547 esac
5549 DOXYGEN=$ac_cv_path_DOXYGEN
5550 if test -n "$DOXYGEN"; then
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
5552 $as_echo "$DOXYGEN" >&6; }
5553 else
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 $as_echo "no" >&6; }
5562 if test -z "$DOXYGEN"; then
5563 DOXYGEN=NOT_INSTALLED
5566 # Check if lyx is there
5569 # Check whether --with-lyx was given.
5570 if test "${with_lyx+set}" = set; then :
5571 withval=$with_lyx; LYX=${with_lyx}
5572 else
5573 # Extract the first word of "lyx", so it can be a program name with args.
5574 set dummy lyx; ac_word=$2
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576 $as_echo_n "checking for $ac_word... " >&6; }
5577 if ${ac_cv_path_LYX+:} false; then :
5578 $as_echo_n "(cached) " >&6
5579 else
5580 case $LYX in
5581 [\\/]* | ?:[\\/]*)
5582 ac_cv_path_LYX="$LYX" # Let the user override the test with a path.
5585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5586 for as_dir in $PATH
5588 IFS=$as_save_IFS
5589 test -z "$as_dir" && as_dir=.
5590 for ac_exec_ext in '' $ac_executable_extensions; do
5591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5592 ac_cv_path_LYX="$as_dir/$ac_word$ac_exec_ext"
5593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594 break 2
5596 done
5597 done
5598 IFS=$as_save_IFS
5601 esac
5603 LYX=$ac_cv_path_LYX
5604 if test -n "$LYX"; then
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LYX" >&5
5606 $as_echo "$LYX" >&6; }
5607 else
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609 $as_echo "no" >&6; }
5616 if test -z "$LYX"; then
5617 LYX="false"
5620 if test x"$LYX" != x"false"; then
5621 TANGO_LYX_ENABLED_TRUE=
5622 TANGO_LYX_ENABLED_FALSE='#'
5623 else
5624 TANGO_LYX_ENABLED_TRUE='#'
5625 TANGO_LYX_ENABLED_FALSE=
5629 # Check if fig2dev is there
5632 # Check whether --with-fig2dev was given.
5633 if test "${with_fig2dev+set}" = set; then :
5634 withval=$with_fig2dev; FIG2DEV=${with_fig2dev}
5635 else
5636 # Extract the first word of "fig2dev", so it can be a program name with args.
5637 set dummy fig2dev; ac_word=$2
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5639 $as_echo_n "checking for $ac_word... " >&6; }
5640 if ${ac_cv_path_FIG2DEV+:} false; then :
5641 $as_echo_n "(cached) " >&6
5642 else
5643 case $FIG2DEV in
5644 [\\/]* | ?:[\\/]*)
5645 ac_cv_path_FIG2DEV="$FIG2DEV" # Let the user override the test with a path.
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $PATH
5651 IFS=$as_save_IFS
5652 test -z "$as_dir" && as_dir=.
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5655 ac_cv_path_FIG2DEV="$as_dir/$ac_word$ac_exec_ext"
5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657 break 2
5659 done
5660 done
5661 IFS=$as_save_IFS
5664 esac
5666 FIG2DEV=$ac_cv_path_FIG2DEV
5667 if test -n "$FIG2DEV"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIG2DEV" >&5
5669 $as_echo "$FIG2DEV" >&6; }
5670 else
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5679 if test -z "$FIG2DEV"; then
5680 FIG2DEV="false"
5683 if test x"$FIG2DEV" != x"false"; then
5684 TANGO_FIG2DEV_ENABLED_TRUE=
5685 TANGO_FIG2DEV_ENABLED_FALSE='#'
5686 else
5687 TANGO_FIG2DEV_ENABLED_TRUE='#'
5688 TANGO_FIG2DEV_ENABLED_FALSE=
5691 if test x"$LYX" != x"false" && test x"$FIG2DEV" != x"false"; then
5692 TANGO_DOC_ENABLED_TRUE=
5693 TANGO_DOC_ENABLED_FALSE='#'
5694 else
5695 TANGO_DOC_ENABLED_TRUE='#'
5696 TANGO_DOC_ENABLED_FALSE=
5701 # Use libtool which facilitates the creation of shared libraries
5702 case `pwd` in
5703 *\ * | *\ *)
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5705 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5706 esac
5710 macro_version='2.4.2'
5711 macro_revision='1.3337'
5725 ltmain="$ac_aux_dir/ltmain.sh"
5727 # Backslashify metacharacters that are still active within
5728 # double-quoted strings.
5729 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5731 # Same as above, but do not quote variable references.
5732 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5734 # Sed substitution to delay expansion of an escaped shell variable in a
5735 # double_quote_subst'ed string.
5736 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5738 # Sed substitution to delay expansion of an escaped single quote.
5739 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5741 # Sed substitution to avoid accidental globbing in evaled expressions
5742 no_glob_subst='s/\*/\\\*/g'
5744 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5745 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5746 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5749 $as_echo_n "checking how to print strings... " >&6; }
5750 # Test print first, because it will be a builtin if present.
5751 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5752 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5753 ECHO='print -r --'
5754 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5755 ECHO='printf %s\n'
5756 else
5757 # Use this function as a fallback that always works.
5758 func_fallback_echo ()
5760 eval 'cat <<_LTECHO_EOF
5762 _LTECHO_EOF'
5764 ECHO='func_fallback_echo'
5767 # func_echo_all arg...
5768 # Invoke $ECHO with all args, space-separated.
5769 func_echo_all ()
5771 $ECHO ""
5774 case "$ECHO" in
5775 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5776 $as_echo "printf" >&6; } ;;
5777 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5778 $as_echo "print -r" >&6; } ;;
5779 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5780 $as_echo "cat" >&6; } ;;
5781 esac
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5797 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5798 if ${ac_cv_path_SED+:} false; then :
5799 $as_echo_n "(cached) " >&6
5800 else
5801 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5802 for ac_i in 1 2 3 4 5 6 7; do
5803 ac_script="$ac_script$as_nl$ac_script"
5804 done
5805 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5806 { ac_script=; unset ac_script;}
5807 if test -z "$SED"; then
5808 ac_path_SED_found=false
5809 # Loop through the user's path and test for each of PROGNAME-LIST
5810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5811 for as_dir in $PATH
5813 IFS=$as_save_IFS
5814 test -z "$as_dir" && as_dir=.
5815 for ac_prog in sed gsed; do
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5818 as_fn_executable_p "$ac_path_SED" || continue
5819 # Check for GNU ac_path_SED and select it if it is found.
5820 # Check for GNU $ac_path_SED
5821 case `"$ac_path_SED" --version 2>&1` in
5822 *GNU*)
5823 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5825 ac_count=0
5826 $as_echo_n 0123456789 >"conftest.in"
5827 while :
5829 cat "conftest.in" "conftest.in" >"conftest.tmp"
5830 mv "conftest.tmp" "conftest.in"
5831 cp "conftest.in" "conftest.nl"
5832 $as_echo '' >> "conftest.nl"
5833 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5834 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5835 as_fn_arith $ac_count + 1 && ac_count=$as_val
5836 if test $ac_count -gt ${ac_path_SED_max-0}; then
5837 # Best one so far, save it but keep looking for a better one
5838 ac_cv_path_SED="$ac_path_SED"
5839 ac_path_SED_max=$ac_count
5841 # 10*(2^10) chars as input seems more than enough
5842 test $ac_count -gt 10 && break
5843 done
5844 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5845 esac
5847 $ac_path_SED_found && break 3
5848 done
5849 done
5850 done
5851 IFS=$as_save_IFS
5852 if test -z "$ac_cv_path_SED"; then
5853 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5855 else
5856 ac_cv_path_SED=$SED
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5861 $as_echo "$ac_cv_path_SED" >&6; }
5862 SED="$ac_cv_path_SED"
5863 rm -f conftest.sed
5865 test -z "$SED" && SED=sed
5866 Xsed="$SED -e 1s/^X//"
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5879 $as_echo_n "checking for fgrep... " >&6; }
5880 if ${ac_cv_path_FGREP+:} false; then :
5881 $as_echo_n "(cached) " >&6
5882 else
5883 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5884 then ac_cv_path_FGREP="$GREP -F"
5885 else
5886 if test -z "$FGREP"; then
5887 ac_path_FGREP_found=false
5888 # Loop through the user's path and test for each of PROGNAME-LIST
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5892 IFS=$as_save_IFS
5893 test -z "$as_dir" && as_dir=.
5894 for ac_prog in fgrep; do
5895 for ac_exec_ext in '' $ac_executable_extensions; do
5896 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5897 as_fn_executable_p "$ac_path_FGREP" || continue
5898 # Check for GNU ac_path_FGREP and select it if it is found.
5899 # Check for GNU $ac_path_FGREP
5900 case `"$ac_path_FGREP" --version 2>&1` in
5901 *GNU*)
5902 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5904 ac_count=0
5905 $as_echo_n 0123456789 >"conftest.in"
5906 while :
5908 cat "conftest.in" "conftest.in" >"conftest.tmp"
5909 mv "conftest.tmp" "conftest.in"
5910 cp "conftest.in" "conftest.nl"
5911 $as_echo 'FGREP' >> "conftest.nl"
5912 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5913 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5914 as_fn_arith $ac_count + 1 && ac_count=$as_val
5915 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5916 # Best one so far, save it but keep looking for a better one
5917 ac_cv_path_FGREP="$ac_path_FGREP"
5918 ac_path_FGREP_max=$ac_count
5920 # 10*(2^10) chars as input seems more than enough
5921 test $ac_count -gt 10 && break
5922 done
5923 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5924 esac
5926 $ac_path_FGREP_found && break 3
5927 done
5928 done
5929 done
5930 IFS=$as_save_IFS
5931 if test -z "$ac_cv_path_FGREP"; then
5932 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5934 else
5935 ac_cv_path_FGREP=$FGREP
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5941 $as_echo "$ac_cv_path_FGREP" >&6; }
5942 FGREP="$ac_cv_path_FGREP"
5945 test -z "$GREP" && GREP=grep
5965 # Check whether --with-gnu-ld was given.
5966 if test "${with_gnu_ld+set}" = set; then :
5967 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5968 else
5969 with_gnu_ld=no
5972 ac_prog=ld
5973 if test "$GCC" = yes; then
5974 # Check if gcc -print-prog-name=ld gives a path.
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5976 $as_echo_n "checking for ld used by $CC... " >&6; }
5977 case $host in
5978 *-*-mingw*)
5979 # gcc leaves a trailing carriage return which upsets mingw
5980 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5982 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5983 esac
5984 case $ac_prog in
5985 # Accept absolute paths.
5986 [\\/]* | ?:[\\/]*)
5987 re_direlt='/[^/][^/]*/\.\./'
5988 # Canonicalize the pathname of ld
5989 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5990 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5991 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5992 done
5993 test -z "$LD" && LD="$ac_prog"
5996 # If it fails, then pretend we aren't using GCC.
5997 ac_prog=ld
6000 # If it is relative, then search for the first ld in PATH.
6001 with_gnu_ld=unknown
6003 esac
6004 elif test "$with_gnu_ld" = yes; then
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6006 $as_echo_n "checking for GNU ld... " >&6; }
6007 else
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6009 $as_echo_n "checking for non-GNU ld... " >&6; }
6011 if ${lt_cv_path_LD+:} false; then :
6012 $as_echo_n "(cached) " >&6
6013 else
6014 if test -z "$LD"; then
6015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6016 for ac_dir in $PATH; do
6017 IFS="$lt_save_ifs"
6018 test -z "$ac_dir" && ac_dir=.
6019 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6020 lt_cv_path_LD="$ac_dir/$ac_prog"
6021 # Check to see if the program is GNU ld. I'd rather use --version,
6022 # but apparently some variants of GNU ld only accept -v.
6023 # Break only if it was the GNU/non-GNU ld that we prefer.
6024 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6025 *GNU* | *'with BFD'*)
6026 test "$with_gnu_ld" != no && break
6029 test "$with_gnu_ld" != yes && break
6031 esac
6033 done
6034 IFS="$lt_save_ifs"
6035 else
6036 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6040 LD="$lt_cv_path_LD"
6041 if test -n "$LD"; then
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6043 $as_echo "$LD" >&6; }
6044 else
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046 $as_echo "no" >&6; }
6048 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6050 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6051 if ${lt_cv_prog_gnu_ld+:} false; then :
6052 $as_echo_n "(cached) " >&6
6053 else
6054 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6055 case `$LD -v 2>&1 </dev/null` in
6056 *GNU* | *'with BFD'*)
6057 lt_cv_prog_gnu_ld=yes
6060 lt_cv_prog_gnu_ld=no
6062 esac
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6065 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6066 with_gnu_ld=$lt_cv_prog_gnu_ld
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6077 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6078 if ${lt_cv_path_NM+:} false; then :
6079 $as_echo_n "(cached) " >&6
6080 else
6081 if test -n "$NM"; then
6082 # Let the user override the test.
6083 lt_cv_path_NM="$NM"
6084 else
6085 lt_nm_to_check="${ac_tool_prefix}nm"
6086 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6087 lt_nm_to_check="$lt_nm_to_check nm"
6089 for lt_tmp_nm in $lt_nm_to_check; do
6090 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6091 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6092 IFS="$lt_save_ifs"
6093 test -z "$ac_dir" && ac_dir=.
6094 tmp_nm="$ac_dir/$lt_tmp_nm"
6095 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6096 # Check to see if the nm accepts a BSD-compat flag.
6097 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6098 # nm: unknown option "B" ignored
6099 # Tru64's nm complains that /dev/null is an invalid object file
6100 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6101 */dev/null* | *'Invalid file or object type'*)
6102 lt_cv_path_NM="$tmp_nm -B"
6103 break
6106 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6107 */dev/null*)
6108 lt_cv_path_NM="$tmp_nm -p"
6109 break
6112 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6113 continue # so that we can try to find one that supports BSD flags
6115 esac
6117 esac
6119 done
6120 IFS="$lt_save_ifs"
6121 done
6122 : ${lt_cv_path_NM=no}
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6126 $as_echo "$lt_cv_path_NM" >&6; }
6127 if test "$lt_cv_path_NM" != "no"; then
6128 NM="$lt_cv_path_NM"
6129 else
6130 # Didn't find any BSD compatible name lister, look for dumpbin.
6131 if test -n "$DUMPBIN"; then :
6132 # Let the user override the test.
6133 else
6134 if test -n "$ac_tool_prefix"; then
6135 for ac_prog in dumpbin "link -dump"
6137 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6138 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6140 $as_echo_n "checking for $ac_word... " >&6; }
6141 if ${ac_cv_prog_DUMPBIN+:} false; then :
6142 $as_echo_n "(cached) " >&6
6143 else
6144 if test -n "$DUMPBIN"; then
6145 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6146 else
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148 for as_dir in $PATH
6150 IFS=$as_save_IFS
6151 test -z "$as_dir" && as_dir=.
6152 for ac_exec_ext in '' $ac_executable_extensions; do
6153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6154 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6156 break 2
6158 done
6159 done
6160 IFS=$as_save_IFS
6164 DUMPBIN=$ac_cv_prog_DUMPBIN
6165 if test -n "$DUMPBIN"; then
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6167 $as_echo "$DUMPBIN" >&6; }
6168 else
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6170 $as_echo "no" >&6; }
6174 test -n "$DUMPBIN" && break
6175 done
6177 if test -z "$DUMPBIN"; then
6178 ac_ct_DUMPBIN=$DUMPBIN
6179 for ac_prog in dumpbin "link -dump"
6181 # Extract the first word of "$ac_prog", so it can be a program name with args.
6182 set dummy $ac_prog; ac_word=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6186 $as_echo_n "(cached) " >&6
6187 else
6188 if test -n "$ac_ct_DUMPBIN"; then
6189 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6190 else
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6194 IFS=$as_save_IFS
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6198 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 break 2
6202 done
6203 done
6204 IFS=$as_save_IFS
6208 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6209 if test -n "$ac_ct_DUMPBIN"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6211 $as_echo "$ac_ct_DUMPBIN" >&6; }
6212 else
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6218 test -n "$ac_ct_DUMPBIN" && break
6219 done
6221 if test "x$ac_ct_DUMPBIN" = x; then
6222 DUMPBIN=":"
6223 else
6224 case $cross_compiling:$ac_tool_warned in
6225 yes:)
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6227 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6228 ac_tool_warned=yes ;;
6229 esac
6230 DUMPBIN=$ac_ct_DUMPBIN
6234 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6235 *COFF*)
6236 DUMPBIN="$DUMPBIN -symbols"
6239 DUMPBIN=:
6241 esac
6244 if test "$DUMPBIN" != ":"; then
6245 NM="$DUMPBIN"
6248 test -z "$NM" && NM=nm
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6256 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6257 if ${lt_cv_nm_interface+:} false; then :
6258 $as_echo_n "(cached) " >&6
6259 else
6260 lt_cv_nm_interface="BSD nm"
6261 echo "int some_variable = 0;" > conftest.$ac_ext
6262 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6263 (eval "$ac_compile" 2>conftest.err)
6264 cat conftest.err >&5
6265 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6266 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6267 cat conftest.err >&5
6268 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6269 cat conftest.out >&5
6270 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6271 lt_cv_nm_interface="MS dumpbin"
6273 rm -f conftest*
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6276 $as_echo "$lt_cv_nm_interface" >&6; }
6278 # find the maximum length of command line arguments
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6280 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6281 if ${lt_cv_sys_max_cmd_len+:} false; then :
6282 $as_echo_n "(cached) " >&6
6283 else
6285 teststring="ABCD"
6287 case $build_os in
6288 msdosdjgpp*)
6289 # On DJGPP, this test can blow up pretty badly due to problems in libc
6290 # (any single argument exceeding 2000 bytes causes a buffer overrun
6291 # during glob expansion). Even if it were fixed, the result of this
6292 # check would be larger than it should be.
6293 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6296 gnu*)
6297 # Under GNU Hurd, this test is not required because there is
6298 # no limit to the length of command line arguments.
6299 # Libtool will interpret -1 as no limit whatsoever
6300 lt_cv_sys_max_cmd_len=-1;
6303 cygwin* | mingw* | cegcc*)
6304 # On Win9x/ME, this test blows up -- it succeeds, but takes
6305 # about 5 minutes as the teststring grows exponentially.
6306 # Worse, since 9x/ME are not pre-emptively multitasking,
6307 # you end up with a "frozen" computer, even though with patience
6308 # the test eventually succeeds (with a max line length of 256k).
6309 # Instead, let's just punt: use the minimum linelength reported by
6310 # all of the supported platforms: 8192 (on NT/2K/XP).
6311 lt_cv_sys_max_cmd_len=8192;
6314 mint*)
6315 # On MiNT this can take a long time and run out of memory.
6316 lt_cv_sys_max_cmd_len=8192;
6319 amigaos*)
6320 # On AmigaOS with pdksh, this test takes hours, literally.
6321 # So we just punt and use a minimum line length of 8192.
6322 lt_cv_sys_max_cmd_len=8192;
6325 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6326 # This has been around since 386BSD, at least. Likely further.
6327 if test -x /sbin/sysctl; then
6328 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6329 elif test -x /usr/sbin/sysctl; then
6330 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6331 else
6332 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6334 # And add a safety zone
6335 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6336 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6339 interix*)
6340 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6341 lt_cv_sys_max_cmd_len=196608
6344 os2*)
6345 # The test takes a long time on OS/2.
6346 lt_cv_sys_max_cmd_len=8192
6349 osf*)
6350 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6351 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6352 # nice to cause kernel panics so lets avoid the loop below.
6353 # First set a reasonable default.
6354 lt_cv_sys_max_cmd_len=16384
6356 if test -x /sbin/sysconfig; then
6357 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6358 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6359 esac
6362 sco3.2v5*)
6363 lt_cv_sys_max_cmd_len=102400
6365 sysv5* | sco5v6* | sysv4.2uw2*)
6366 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6367 if test -n "$kargmax"; then
6368 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6369 else
6370 lt_cv_sys_max_cmd_len=32768
6374 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6375 if test -n "$lt_cv_sys_max_cmd_len"; then
6376 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6377 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6378 else
6379 # Make teststring a little bigger before we do anything with it.
6380 # a 1K string should be a reasonable start.
6381 for i in 1 2 3 4 5 6 7 8 ; do
6382 teststring=$teststring$teststring
6383 done
6384 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6385 # If test is not a shell built-in, we'll probably end up computing a
6386 # maximum length that is only half of the actual maximum length, but
6387 # we can't tell.
6388 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6389 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6390 test $i != 17 # 1/2 MB should be enough
6392 i=`expr $i + 1`
6393 teststring=$teststring$teststring
6394 done
6395 # Only check the string length outside the loop.
6396 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6397 teststring=
6398 # Add a significant safety factor because C++ compilers can tack on
6399 # massive amounts of additional arguments before passing them to the
6400 # linker. It appears as though 1/2 is a usable value.
6401 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6404 esac
6408 if test -n $lt_cv_sys_max_cmd_len ; then
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6410 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6411 else
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6413 $as_echo "none" >&6; }
6415 max_cmd_len=$lt_cv_sys_max_cmd_len
6422 : ${CP="cp -f"}
6423 : ${MV="mv -f"}
6424 : ${RM="rm -f"}
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6427 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6428 # Try some XSI features
6429 xsi_shell=no
6430 ( _lt_dummy="a/b/c"
6431 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6432 = c,a/b,b/c, \
6433 && eval 'test $(( 1 + 1 )) -eq 2 \
6434 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6435 && xsi_shell=yes
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6437 $as_echo "$xsi_shell" >&6; }
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6441 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6442 lt_shell_append=no
6443 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6444 >/dev/null 2>&1 \
6445 && lt_shell_append=yes
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6447 $as_echo "$lt_shell_append" >&6; }
6450 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6451 lt_unset=unset
6452 else
6453 lt_unset=false
6460 # test EBCDIC or ASCII
6461 case `echo X|tr X '\101'` in
6462 A) # ASCII based system
6463 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6464 lt_SP2NL='tr \040 \012'
6465 lt_NL2SP='tr \015\012 \040\040'
6467 *) # EBCDIC based system
6468 lt_SP2NL='tr \100 \n'
6469 lt_NL2SP='tr \r\n \100\100'
6471 esac
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6482 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6483 if ${lt_cv_to_host_file_cmd+:} false; then :
6484 $as_echo_n "(cached) " >&6
6485 else
6486 case $host in
6487 *-*-mingw* )
6488 case $build in
6489 *-*-mingw* ) # actually msys
6490 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6492 *-*-cygwin* )
6493 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6495 * ) # otherwise, assume *nix
6496 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6498 esac
6500 *-*-cygwin* )
6501 case $build in
6502 *-*-mingw* ) # actually msys
6503 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6505 *-*-cygwin* )
6506 lt_cv_to_host_file_cmd=func_convert_file_noop
6508 * ) # otherwise, assume *nix
6509 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6511 esac
6513 * ) # unhandled hosts (and "normal" native builds)
6514 lt_cv_to_host_file_cmd=func_convert_file_noop
6516 esac
6520 to_host_file_cmd=$lt_cv_to_host_file_cmd
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6522 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6529 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6530 if ${lt_cv_to_tool_file_cmd+:} false; then :
6531 $as_echo_n "(cached) " >&6
6532 else
6533 #assume ordinary cross tools, or native build.
6534 lt_cv_to_tool_file_cmd=func_convert_file_noop
6535 case $host in
6536 *-*-mingw* )
6537 case $build in
6538 *-*-mingw* ) # actually msys
6539 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6541 esac
6543 esac
6547 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6549 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6556 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6557 if ${lt_cv_ld_reload_flag+:} false; then :
6558 $as_echo_n "(cached) " >&6
6559 else
6560 lt_cv_ld_reload_flag='-r'
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6563 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6564 reload_flag=$lt_cv_ld_reload_flag
6565 case $reload_flag in
6566 "" | " "*) ;;
6567 *) reload_flag=" $reload_flag" ;;
6568 esac
6569 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6570 case $host_os in
6571 cygwin* | mingw* | pw32* | cegcc*)
6572 if test "$GCC" != yes; then
6573 reload_cmds=false
6576 darwin*)
6577 if test "$GCC" = yes; then
6578 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6579 else
6580 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6583 esac
6593 if test -n "$ac_tool_prefix"; then
6594 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6595 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6597 $as_echo_n "checking for $ac_word... " >&6; }
6598 if ${ac_cv_prog_OBJDUMP+:} false; then :
6599 $as_echo_n "(cached) " >&6
6600 else
6601 if test -n "$OBJDUMP"; then
6602 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6603 else
6604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605 for as_dir in $PATH
6607 IFS=$as_save_IFS
6608 test -z "$as_dir" && as_dir=.
6609 for ac_exec_ext in '' $ac_executable_extensions; do
6610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6611 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6613 break 2
6615 done
6616 done
6617 IFS=$as_save_IFS
6621 OBJDUMP=$ac_cv_prog_OBJDUMP
6622 if test -n "$OBJDUMP"; then
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6624 $as_echo "$OBJDUMP" >&6; }
6625 else
6626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6627 $as_echo "no" >&6; }
6632 if test -z "$ac_cv_prog_OBJDUMP"; then
6633 ac_ct_OBJDUMP=$OBJDUMP
6634 # Extract the first word of "objdump", so it can be a program name with args.
6635 set dummy objdump; ac_word=$2
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6637 $as_echo_n "checking for $ac_word... " >&6; }
6638 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6639 $as_echo_n "(cached) " >&6
6640 else
6641 if test -n "$ac_ct_OBJDUMP"; then
6642 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6643 else
6644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 for as_dir in $PATH
6647 IFS=$as_save_IFS
6648 test -z "$as_dir" && as_dir=.
6649 for ac_exec_ext in '' $ac_executable_extensions; do
6650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6651 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6653 break 2
6655 done
6656 done
6657 IFS=$as_save_IFS
6661 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6662 if test -n "$ac_ct_OBJDUMP"; then
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6664 $as_echo "$ac_ct_OBJDUMP" >&6; }
6665 else
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6667 $as_echo "no" >&6; }
6670 if test "x$ac_ct_OBJDUMP" = x; then
6671 OBJDUMP="false"
6672 else
6673 case $cross_compiling:$ac_tool_warned in
6674 yes:)
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6677 ac_tool_warned=yes ;;
6678 esac
6679 OBJDUMP=$ac_ct_OBJDUMP
6681 else
6682 OBJDUMP="$ac_cv_prog_OBJDUMP"
6685 test -z "$OBJDUMP" && OBJDUMP=objdump
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6696 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6697 if ${lt_cv_deplibs_check_method+:} false; then :
6698 $as_echo_n "(cached) " >&6
6699 else
6700 lt_cv_file_magic_cmd='$MAGIC_CMD'
6701 lt_cv_file_magic_test_file=
6702 lt_cv_deplibs_check_method='unknown'
6703 # Need to set the preceding variable on all platforms that support
6704 # interlibrary dependencies.
6705 # 'none' -- dependencies not supported.
6706 # `unknown' -- same as none, but documents that we really don't know.
6707 # 'pass_all' -- all dependencies passed with no checks.
6708 # 'test_compile' -- check by making test program.
6709 # 'file_magic [[regex]]' -- check by looking for files in library path
6710 # which responds to the $file_magic_cmd with a given extended regex.
6711 # If you have `file' or equivalent on your system and you're not sure
6712 # whether `pass_all' will *always* work, you probably want this one.
6714 case $host_os in
6715 aix[4-9]*)
6716 lt_cv_deplibs_check_method=pass_all
6719 beos*)
6720 lt_cv_deplibs_check_method=pass_all
6723 bsdi[45]*)
6724 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6725 lt_cv_file_magic_cmd='/usr/bin/file -L'
6726 lt_cv_file_magic_test_file=/shlib/libc.so
6729 cygwin*)
6730 # func_win32_libid is a shell function defined in ltmain.sh
6731 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6732 lt_cv_file_magic_cmd='func_win32_libid'
6735 mingw* | pw32*)
6736 # Base MSYS/MinGW do not provide the 'file' command needed by
6737 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6738 # unless we find 'file', for example because we are cross-compiling.
6739 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6740 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6741 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6742 lt_cv_file_magic_cmd='func_win32_libid'
6743 else
6744 # Keep this pattern in sync with the one in func_win32_libid.
6745 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6746 lt_cv_file_magic_cmd='$OBJDUMP -f'
6750 cegcc*)
6751 # use the weaker test based on 'objdump'. See mingw*.
6752 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6753 lt_cv_file_magic_cmd='$OBJDUMP -f'
6756 darwin* | rhapsody*)
6757 lt_cv_deplibs_check_method=pass_all
6760 freebsd* | dragonfly*)
6761 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6762 case $host_cpu in
6763 i*86 )
6764 # Not sure whether the presence of OpenBSD here was a mistake.
6765 # Let's accept both of them until this is cleared up.
6766 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6767 lt_cv_file_magic_cmd=/usr/bin/file
6768 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6770 esac
6771 else
6772 lt_cv_deplibs_check_method=pass_all
6776 haiku*)
6777 lt_cv_deplibs_check_method=pass_all
6780 hpux10.20* | hpux11*)
6781 lt_cv_file_magic_cmd=/usr/bin/file
6782 case $host_cpu in
6783 ia64*)
6784 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6785 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6787 hppa*64*)
6788 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]'
6789 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6792 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6793 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6795 esac
6798 interix[3-9]*)
6799 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6800 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6803 irix5* | irix6* | nonstopux*)
6804 case $LD in
6805 *-32|*"-32 ") libmagic=32-bit;;
6806 *-n32|*"-n32 ") libmagic=N32;;
6807 *-64|*"-64 ") libmagic=64-bit;;
6808 *) libmagic=never-match;;
6809 esac
6810 lt_cv_deplibs_check_method=pass_all
6813 # This must be glibc/ELF.
6814 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6815 lt_cv_deplibs_check_method=pass_all
6818 netbsd* | netbsdelf*-gnu)
6819 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6820 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6821 else
6822 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6826 newos6*)
6827 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6828 lt_cv_file_magic_cmd=/usr/bin/file
6829 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6832 *nto* | *qnx*)
6833 lt_cv_deplibs_check_method=pass_all
6836 openbsd*)
6837 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6838 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6839 else
6840 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6844 osf3* | osf4* | osf5*)
6845 lt_cv_deplibs_check_method=pass_all
6848 rdos*)
6849 lt_cv_deplibs_check_method=pass_all
6852 solaris*)
6853 lt_cv_deplibs_check_method=pass_all
6856 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6857 lt_cv_deplibs_check_method=pass_all
6860 sysv4 | sysv4.3*)
6861 case $host_vendor in
6862 motorola)
6863 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]'
6864 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6866 ncr)
6867 lt_cv_deplibs_check_method=pass_all
6869 sequent)
6870 lt_cv_file_magic_cmd='/bin/file'
6871 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6873 sni)
6874 lt_cv_file_magic_cmd='/bin/file'
6875 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6876 lt_cv_file_magic_test_file=/lib/libc.so
6878 siemens)
6879 lt_cv_deplibs_check_method=pass_all
6882 lt_cv_deplibs_check_method=pass_all
6884 esac
6887 tpf*)
6888 lt_cv_deplibs_check_method=pass_all
6890 esac
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6894 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6896 file_magic_glob=
6897 want_nocaseglob=no
6898 if test "$build" = "$host"; then
6899 case $host_os in
6900 mingw* | pw32*)
6901 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6902 want_nocaseglob=yes
6903 else
6904 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6907 esac
6910 file_magic_cmd=$lt_cv_file_magic_cmd
6911 deplibs_check_method=$lt_cv_deplibs_check_method
6912 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6935 if test -n "$ac_tool_prefix"; then
6936 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6937 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939 $as_echo_n "checking for $ac_word... " >&6; }
6940 if ${ac_cv_prog_DLLTOOL+:} false; then :
6941 $as_echo_n "(cached) " >&6
6942 else
6943 if test -n "$DLLTOOL"; then
6944 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6945 else
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 for as_dir in $PATH
6949 IFS=$as_save_IFS
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6953 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 break 2
6957 done
6958 done
6959 IFS=$as_save_IFS
6963 DLLTOOL=$ac_cv_prog_DLLTOOL
6964 if test -n "$DLLTOOL"; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6966 $as_echo "$DLLTOOL" >&6; }
6967 else
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969 $as_echo "no" >&6; }
6974 if test -z "$ac_cv_prog_DLLTOOL"; then
6975 ac_ct_DLLTOOL=$DLLTOOL
6976 # Extract the first word of "dlltool", so it can be a program name with args.
6977 set dummy dlltool; ac_word=$2
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6979 $as_echo_n "checking for $ac_word... " >&6; }
6980 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6983 if test -n "$ac_ct_DLLTOOL"; then
6984 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6985 else
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6993 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 break 2
6997 done
6998 done
6999 IFS=$as_save_IFS
7003 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7004 if test -n "$ac_ct_DLLTOOL"; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7006 $as_echo "$ac_ct_DLLTOOL" >&6; }
7007 else
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009 $as_echo "no" >&6; }
7012 if test "x$ac_ct_DLLTOOL" = x; then
7013 DLLTOOL="false"
7014 else
7015 case $cross_compiling:$ac_tool_warned in
7016 yes:)
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7019 ac_tool_warned=yes ;;
7020 esac
7021 DLLTOOL=$ac_ct_DLLTOOL
7023 else
7024 DLLTOOL="$ac_cv_prog_DLLTOOL"
7027 test -z "$DLLTOOL" && DLLTOOL=dlltool
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7039 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7040 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7041 $as_echo_n "(cached) " >&6
7042 else
7043 lt_cv_sharedlib_from_linklib_cmd='unknown'
7045 case $host_os in
7046 cygwin* | mingw* | pw32* | cegcc*)
7047 # two different shell functions defined in ltmain.sh
7048 # decide which to use based on capabilities of $DLLTOOL
7049 case `$DLLTOOL --help 2>&1` in
7050 *--identify-strict*)
7051 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7054 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7056 esac
7059 # fallback: assume linklib IS sharedlib
7060 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7062 esac
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7066 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7067 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7068 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7076 if test -n "$ac_tool_prefix"; then
7077 for ac_prog in ar
7079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7080 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7082 $as_echo_n "checking for $ac_word... " >&6; }
7083 if ${ac_cv_prog_AR+:} false; then :
7084 $as_echo_n "(cached) " >&6
7085 else
7086 if test -n "$AR"; then
7087 ac_cv_prog_AR="$AR" # Let the user override the test.
7088 else
7089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7090 for as_dir in $PATH
7092 IFS=$as_save_IFS
7093 test -z "$as_dir" && as_dir=.
7094 for ac_exec_ext in '' $ac_executable_extensions; do
7095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7096 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 break 2
7100 done
7101 done
7102 IFS=$as_save_IFS
7106 AR=$ac_cv_prog_AR
7107 if test -n "$AR"; then
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7109 $as_echo "$AR" >&6; }
7110 else
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7112 $as_echo "no" >&6; }
7116 test -n "$AR" && break
7117 done
7119 if test -z "$AR"; then
7120 ac_ct_AR=$AR
7121 for ac_prog in ar
7123 # Extract the first word of "$ac_prog", so it can be a program name with args.
7124 set dummy $ac_prog; ac_word=$2
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7126 $as_echo_n "checking for $ac_word... " >&6; }
7127 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7128 $as_echo_n "(cached) " >&6
7129 else
7130 if test -n "$ac_ct_AR"; then
7131 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7132 else
7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 for as_dir in $PATH
7136 IFS=$as_save_IFS
7137 test -z "$as_dir" && as_dir=.
7138 for ac_exec_ext in '' $ac_executable_extensions; do
7139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7140 ac_cv_prog_ac_ct_AR="$ac_prog"
7141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7142 break 2
7144 done
7145 done
7146 IFS=$as_save_IFS
7150 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7151 if test -n "$ac_ct_AR"; then
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7153 $as_echo "$ac_ct_AR" >&6; }
7154 else
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7156 $as_echo "no" >&6; }
7160 test -n "$ac_ct_AR" && break
7161 done
7163 if test "x$ac_ct_AR" = x; then
7164 AR="false"
7165 else
7166 case $cross_compiling:$ac_tool_warned in
7167 yes:)
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7170 ac_tool_warned=yes ;;
7171 esac
7172 AR=$ac_ct_AR
7176 : ${AR=ar}
7177 : ${AR_FLAGS=cru}
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7190 $as_echo_n "checking for archiver @FILE support... " >&6; }
7191 if ${lt_cv_ar_at_file+:} false; then :
7192 $as_echo_n "(cached) " >&6
7193 else
7194 lt_cv_ar_at_file=no
7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h. */
7199 main ()
7203 return 0;
7205 _ACEOF
7206 if ac_fn_c_try_compile "$LINENO"; then :
7207 echo conftest.$ac_objext > conftest.lst
7208 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7210 (eval $lt_ar_try) 2>&5
7211 ac_status=$?
7212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7213 test $ac_status = 0; }
7214 if test "$ac_status" -eq 0; then
7215 # Ensure the archiver fails upon bogus file names.
7216 rm -f conftest.$ac_objext libconftest.a
7217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7218 (eval $lt_ar_try) 2>&5
7219 ac_status=$?
7220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7221 test $ac_status = 0; }
7222 if test "$ac_status" -ne 0; then
7223 lt_cv_ar_at_file=@
7226 rm -f conftest.* libconftest.a
7229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7233 $as_echo "$lt_cv_ar_at_file" >&6; }
7235 if test "x$lt_cv_ar_at_file" = xno; then
7236 archiver_list_spec=
7237 else
7238 archiver_list_spec=$lt_cv_ar_at_file
7247 if test -n "$ac_tool_prefix"; then
7248 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7249 set dummy ${ac_tool_prefix}strip; ac_word=$2
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7251 $as_echo_n "checking for $ac_word... " >&6; }
7252 if ${ac_cv_prog_STRIP+:} false; then :
7253 $as_echo_n "(cached) " >&6
7254 else
7255 if test -n "$STRIP"; then
7256 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7257 else
7258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7259 for as_dir in $PATH
7261 IFS=$as_save_IFS
7262 test -z "$as_dir" && as_dir=.
7263 for ac_exec_ext in '' $ac_executable_extensions; do
7264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7265 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7267 break 2
7269 done
7270 done
7271 IFS=$as_save_IFS
7275 STRIP=$ac_cv_prog_STRIP
7276 if test -n "$STRIP"; then
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7278 $as_echo "$STRIP" >&6; }
7279 else
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }
7286 if test -z "$ac_cv_prog_STRIP"; then
7287 ac_ct_STRIP=$STRIP
7288 # Extract the first word of "strip", so it can be a program name with args.
7289 set dummy strip; ac_word=$2
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7291 $as_echo_n "checking for $ac_word... " >&6; }
7292 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7293 $as_echo_n "(cached) " >&6
7294 else
7295 if test -n "$ac_ct_STRIP"; then
7296 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7297 else
7298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7299 for as_dir in $PATH
7301 IFS=$as_save_IFS
7302 test -z "$as_dir" && as_dir=.
7303 for ac_exec_ext in '' $ac_executable_extensions; do
7304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7305 ac_cv_prog_ac_ct_STRIP="strip"
7306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7307 break 2
7309 done
7310 done
7311 IFS=$as_save_IFS
7315 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7316 if test -n "$ac_ct_STRIP"; then
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7318 $as_echo "$ac_ct_STRIP" >&6; }
7319 else
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7321 $as_echo "no" >&6; }
7324 if test "x$ac_ct_STRIP" = x; then
7325 STRIP=":"
7326 else
7327 case $cross_compiling:$ac_tool_warned in
7328 yes:)
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7331 ac_tool_warned=yes ;;
7332 esac
7333 STRIP=$ac_ct_STRIP
7335 else
7336 STRIP="$ac_cv_prog_STRIP"
7339 test -z "$STRIP" && STRIP=:
7346 if test -n "$ac_tool_prefix"; then
7347 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7348 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350 $as_echo_n "checking for $ac_word... " >&6; }
7351 if ${ac_cv_prog_RANLIB+:} false; then :
7352 $as_echo_n "(cached) " >&6
7353 else
7354 if test -n "$RANLIB"; then
7355 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7356 else
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7360 IFS=$as_save_IFS
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 break 2
7368 done
7369 done
7370 IFS=$as_save_IFS
7374 RANLIB=$ac_cv_prog_RANLIB
7375 if test -n "$RANLIB"; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7377 $as_echo "$RANLIB" >&6; }
7378 else
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7385 if test -z "$ac_cv_prog_RANLIB"; then
7386 ac_ct_RANLIB=$RANLIB
7387 # Extract the first word of "ranlib", so it can be a program name with args.
7388 set dummy ranlib; ac_word=$2
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390 $as_echo_n "checking for $ac_word... " >&6; }
7391 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7392 $as_echo_n "(cached) " >&6
7393 else
7394 if test -n "$ac_ct_RANLIB"; then
7395 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7396 else
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7400 IFS=$as_save_IFS
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404 ac_cv_prog_ac_ct_RANLIB="ranlib"
7405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 break 2
7408 done
7409 done
7410 IFS=$as_save_IFS
7414 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7415 if test -n "$ac_ct_RANLIB"; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7417 $as_echo "$ac_ct_RANLIB" >&6; }
7418 else
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7423 if test "x$ac_ct_RANLIB" = x; then
7424 RANLIB=":"
7425 else
7426 case $cross_compiling:$ac_tool_warned in
7427 yes:)
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7430 ac_tool_warned=yes ;;
7431 esac
7432 RANLIB=$ac_ct_RANLIB
7434 else
7435 RANLIB="$ac_cv_prog_RANLIB"
7438 test -z "$RANLIB" && RANLIB=:
7445 # Determine commands to create old-style static archives.
7446 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7447 old_postinstall_cmds='chmod 644 $oldlib'
7448 old_postuninstall_cmds=
7450 if test -n "$RANLIB"; then
7451 case $host_os in
7452 openbsd*)
7453 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7456 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7458 esac
7459 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7462 case $host_os in
7463 darwin*)
7464 lock_old_archive_extraction=yes ;;
7466 lock_old_archive_extraction=no ;;
7467 esac
7507 # If no C compiler was specified, use CC.
7508 LTCC=${LTCC-"$CC"}
7510 # If no C compiler flags were specified, use CFLAGS.
7511 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7513 # Allow CC to be a program name with arguments.
7514 compiler=$CC
7517 # Check for command to grab the raw symbol name followed by C symbol from nm.
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7519 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7520 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7521 $as_echo_n "(cached) " >&6
7522 else
7524 # These are sane defaults that work on at least a few old systems.
7525 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7527 # Character class describing NM global symbol codes.
7528 symcode='[BCDEGRST]'
7530 # Regexp to match symbols that can be accessed directly from C.
7531 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7533 # Define system-specific variables.
7534 case $host_os in
7535 aix*)
7536 symcode='[BCDT]'
7538 cygwin* | mingw* | pw32* | cegcc*)
7539 symcode='[ABCDGISTW]'
7541 hpux*)
7542 if test "$host_cpu" = ia64; then
7543 symcode='[ABCDEGRST]'
7546 irix* | nonstopux*)
7547 symcode='[BCDEGRST]'
7549 osf*)
7550 symcode='[BCDEGQRST]'
7552 solaris*)
7553 symcode='[BDRT]'
7555 sco3.2v5*)
7556 symcode='[DT]'
7558 sysv4.2uw2*)
7559 symcode='[DT]'
7561 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7562 symcode='[ABDT]'
7564 sysv4)
7565 symcode='[DFNSTU]'
7567 esac
7569 # If we're using GNU nm, then use its standard symbol codes.
7570 case `$NM -V 2>&1` in
7571 *GNU* | *'with BFD'*)
7572 symcode='[ABCDGIRSTW]' ;;
7573 esac
7575 # Transform an extracted symbol line into a proper C declaration.
7576 # Some systems (esp. on ia64) link data and code symbols differently,
7577 # so use this general approach.
7578 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7580 # Transform an extracted symbol line into symbol name and symbol address
7581 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7582 lt_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'"
7584 # Handle CRLF in mingw tool chain
7585 opt_cr=
7586 case $build_os in
7587 mingw*)
7588 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7590 esac
7592 # Try without a prefix underscore, then with it.
7593 for ac_symprfx in "" "_"; do
7595 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7596 symxfrm="\\1 $ac_symprfx\\2 \\2"
7598 # Write the raw and C identifiers.
7599 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7600 # Fake it for dumpbin and say T for any non-static function
7601 # and D for any global variable.
7602 # Also find C++ and __fastcall symbols from MSVC++,
7603 # which start with @ or ?.
7604 lt_cv_sys_global_symbol_pipe="$AWK '"\
7605 " {last_section=section; section=\$ 3};"\
7606 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7607 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7608 " \$ 0!~/External *\|/{next};"\
7609 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7610 " {if(hide[section]) next};"\
7611 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7612 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7613 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7614 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7615 " ' prfx=^$ac_symprfx"
7616 else
7617 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7619 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7621 # Check to see that the pipe works correctly.
7622 pipe_works=no
7624 rm -f conftest*
7625 cat > conftest.$ac_ext <<_LT_EOF
7626 #ifdef __cplusplus
7627 extern "C" {
7628 #endif
7629 char nm_test_var;
7630 void nm_test_func(void);
7631 void nm_test_func(void){}
7632 #ifdef __cplusplus
7634 #endif
7635 int main(){nm_test_var='a';nm_test_func();return(0);}
7636 _LT_EOF
7638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7639 (eval $ac_compile) 2>&5
7640 ac_status=$?
7641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7642 test $ac_status = 0; }; then
7643 # Now try to grab the symbols.
7644 nlist=conftest.nm
7645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7646 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7647 ac_status=$?
7648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7649 test $ac_status = 0; } && test -s "$nlist"; then
7650 # Try sorting and uniquifying the output.
7651 if sort "$nlist" | uniq > "$nlist"T; then
7652 mv -f "$nlist"T "$nlist"
7653 else
7654 rm -f "$nlist"T
7657 # Make sure that we snagged all the symbols we need.
7658 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7659 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7660 cat <<_LT_EOF > conftest.$ac_ext
7661 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7662 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7663 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7664 relocations are performed -- see ld's documentation on pseudo-relocs. */
7665 # define LT_DLSYM_CONST
7666 #elif defined(__osf__)
7667 /* This system does not cope well with relocations in const data. */
7668 # define LT_DLSYM_CONST
7669 #else
7670 # define LT_DLSYM_CONST const
7671 #endif
7673 #ifdef __cplusplus
7674 extern "C" {
7675 #endif
7677 _LT_EOF
7678 # Now generate the symbol file.
7679 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7681 cat <<_LT_EOF >> conftest.$ac_ext
7683 /* The mapping between symbol names and symbols. */
7684 LT_DLSYM_CONST struct {
7685 const char *name;
7686 void *address;
7688 lt__PROGRAM__LTX_preloaded_symbols[] =
7690 { "@PROGRAM@", (void *) 0 },
7691 _LT_EOF
7692 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7693 cat <<\_LT_EOF >> conftest.$ac_ext
7694 {0, (void *) 0}
7697 /* This works around a problem in FreeBSD linker */
7698 #ifdef FREEBSD_WORKAROUND
7699 static const void *lt_preloaded_setup() {
7700 return lt__PROGRAM__LTX_preloaded_symbols;
7702 #endif
7704 #ifdef __cplusplus
7706 #endif
7707 _LT_EOF
7708 # Now try linking the two files.
7709 mv conftest.$ac_objext conftstm.$ac_objext
7710 lt_globsym_save_LIBS=$LIBS
7711 lt_globsym_save_CFLAGS=$CFLAGS
7712 LIBS="conftstm.$ac_objext"
7713 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7715 (eval $ac_link) 2>&5
7716 ac_status=$?
7717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7718 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7719 pipe_works=yes
7721 LIBS=$lt_globsym_save_LIBS
7722 CFLAGS=$lt_globsym_save_CFLAGS
7723 else
7724 echo "cannot find nm_test_func in $nlist" >&5
7726 else
7727 echo "cannot find nm_test_var in $nlist" >&5
7729 else
7730 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7732 else
7733 echo "$progname: failed program was:" >&5
7734 cat conftest.$ac_ext >&5
7736 rm -rf conftest* conftst*
7738 # Do not use the global_symbol_pipe unless it works.
7739 if test "$pipe_works" = yes; then
7740 break
7741 else
7742 lt_cv_sys_global_symbol_pipe=
7744 done
7748 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7749 lt_cv_sys_global_symbol_to_cdecl=
7751 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7753 $as_echo "failed" >&6; }
7754 else
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7756 $as_echo "ok" >&6; }
7759 # Response file support.
7760 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7761 nm_file_list_spec='@'
7762 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7763 nm_file_list_spec='@'
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7793 $as_echo_n "checking for sysroot... " >&6; }
7795 # Check whether --with-sysroot was given.
7796 if test "${with_sysroot+set}" = set; then :
7797 withval=$with_sysroot;
7798 else
7799 with_sysroot=no
7803 lt_sysroot=
7804 case ${with_sysroot} in #(
7805 yes)
7806 if test "$GCC" = yes; then
7807 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7809 ;; #(
7811 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7812 ;; #(
7813 no|'')
7814 ;; #(
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7817 $as_echo "${with_sysroot}" >&6; }
7818 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7820 esac
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7823 $as_echo "${lt_sysroot:-no}" >&6; }
7829 # Check whether --enable-libtool-lock was given.
7830 if test "${enable_libtool_lock+set}" = set; then :
7831 enableval=$enable_libtool_lock;
7834 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7836 # Some flags need to be propagated to the compiler or linker for good
7837 # libtool support.
7838 case $host in
7839 ia64-*-hpux*)
7840 # Find out which ABI we are using.
7841 echo 'int i;' > conftest.$ac_ext
7842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7843 (eval $ac_compile) 2>&5
7844 ac_status=$?
7845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7846 test $ac_status = 0; }; then
7847 case `/usr/bin/file conftest.$ac_objext` in
7848 *ELF-32*)
7849 HPUX_IA64_MODE="32"
7851 *ELF-64*)
7852 HPUX_IA64_MODE="64"
7854 esac
7856 rm -rf conftest*
7858 *-*-irix6*)
7859 # Find out which ABI we are using.
7860 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7861 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7862 (eval $ac_compile) 2>&5
7863 ac_status=$?
7864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7865 test $ac_status = 0; }; then
7866 if test "$lt_cv_prog_gnu_ld" = yes; then
7867 case `/usr/bin/file conftest.$ac_objext` in
7868 *32-bit*)
7869 LD="${LD-ld} -melf32bsmip"
7871 *N32*)
7872 LD="${LD-ld} -melf32bmipn32"
7874 *64-bit*)
7875 LD="${LD-ld} -melf64bmip"
7877 esac
7878 else
7879 case `/usr/bin/file conftest.$ac_objext` in
7880 *32-bit*)
7881 LD="${LD-ld} -32"
7883 *N32*)
7884 LD="${LD-ld} -n32"
7886 *64-bit*)
7887 LD="${LD-ld} -64"
7889 esac
7892 rm -rf conftest*
7895 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7896 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7897 # Find out which ABI we are using.
7898 echo 'int i;' > conftest.$ac_ext
7899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7900 (eval $ac_compile) 2>&5
7901 ac_status=$?
7902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7903 test $ac_status = 0; }; then
7904 case `/usr/bin/file conftest.o` in
7905 *32-bit*)
7906 case $host in
7907 x86_64-*kfreebsd*-gnu)
7908 LD="${LD-ld} -m elf_i386_fbsd"
7910 x86_64-*linux*)
7911 LD="${LD-ld} -m elf_i386"
7913 ppc64-*linux*|powerpc64-*linux*)
7914 LD="${LD-ld} -m elf32ppclinux"
7916 s390x-*linux*)
7917 LD="${LD-ld} -m elf_s390"
7919 sparc64-*linux*)
7920 LD="${LD-ld} -m elf32_sparc"
7922 esac
7924 *64-bit*)
7925 case $host in
7926 x86_64-*kfreebsd*-gnu)
7927 LD="${LD-ld} -m elf_x86_64_fbsd"
7929 x86_64-*linux*)
7930 LD="${LD-ld} -m elf_x86_64"
7932 ppc*-*linux*|powerpc*-*linux*)
7933 LD="${LD-ld} -m elf64ppc"
7935 s390*-*linux*|s390*-*tpf*)
7936 LD="${LD-ld} -m elf64_s390"
7938 sparc*-*linux*)
7939 LD="${LD-ld} -m elf64_sparc"
7941 esac
7943 esac
7945 rm -rf conftest*
7948 *-*-sco3.2v5*)
7949 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7950 SAVE_CFLAGS="$CFLAGS"
7951 CFLAGS="$CFLAGS -belf"
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7953 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7954 if ${lt_cv_cc_needs_belf+:} false; then :
7955 $as_echo_n "(cached) " >&6
7956 else
7957 ac_ext=c
7958 ac_cpp='$CPP $CPPFLAGS'
7959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h. */
7967 main ()
7971 return 0;
7973 _ACEOF
7974 if ac_fn_c_try_link "$LINENO"; then :
7975 lt_cv_cc_needs_belf=yes
7976 else
7977 lt_cv_cc_needs_belf=no
7979 rm -f core conftest.err conftest.$ac_objext \
7980 conftest$ac_exeext conftest.$ac_ext
7981 ac_ext=c
7982 ac_cpp='$CPP $CPPFLAGS'
7983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7989 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7990 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7991 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7992 CFLAGS="$SAVE_CFLAGS"
7995 *-*solaris*)
7996 # Find out which ABI we are using.
7997 echo 'int i;' > conftest.$ac_ext
7998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7999 (eval $ac_compile) 2>&5
8000 ac_status=$?
8001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8002 test $ac_status = 0; }; then
8003 case `/usr/bin/file conftest.o` in
8004 *64-bit*)
8005 case $lt_cv_prog_gnu_ld in
8006 yes*)
8007 case $host in
8008 i?86-*-solaris*)
8009 LD="${LD-ld} -m elf_x86_64"
8011 sparc*-*-solaris*)
8012 LD="${LD-ld} -m elf64_sparc"
8014 esac
8015 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8016 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8017 LD="${LD-ld}_sol2"
8021 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8022 LD="${LD-ld} -64"
8025 esac
8027 esac
8029 rm -rf conftest*
8031 esac
8033 need_locks="$enable_libtool_lock"
8035 if test -n "$ac_tool_prefix"; then
8036 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8037 set dummy ${ac_tool_prefix}mt; ac_word=$2
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8039 $as_echo_n "checking for $ac_word... " >&6; }
8040 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8041 $as_echo_n "(cached) " >&6
8042 else
8043 if test -n "$MANIFEST_TOOL"; then
8044 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8045 else
8046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8047 for as_dir in $PATH
8049 IFS=$as_save_IFS
8050 test -z "$as_dir" && as_dir=.
8051 for ac_exec_ext in '' $ac_executable_extensions; do
8052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8053 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8055 break 2
8057 done
8058 done
8059 IFS=$as_save_IFS
8063 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8064 if test -n "$MANIFEST_TOOL"; then
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8066 $as_echo "$MANIFEST_TOOL" >&6; }
8067 else
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8069 $as_echo "no" >&6; }
8074 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8075 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8076 # Extract the first word of "mt", so it can be a program name with args.
8077 set dummy mt; ac_word=$2
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8079 $as_echo_n "checking for $ac_word... " >&6; }
8080 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8081 $as_echo_n "(cached) " >&6
8082 else
8083 if test -n "$ac_ct_MANIFEST_TOOL"; then
8084 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8085 else
8086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8087 for as_dir in $PATH
8089 IFS=$as_save_IFS
8090 test -z "$as_dir" && as_dir=.
8091 for ac_exec_ext in '' $ac_executable_extensions; do
8092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8093 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8095 break 2
8097 done
8098 done
8099 IFS=$as_save_IFS
8103 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8104 if test -n "$ac_ct_MANIFEST_TOOL"; then
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8106 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8107 else
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109 $as_echo "no" >&6; }
8112 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8113 MANIFEST_TOOL=":"
8114 else
8115 case $cross_compiling:$ac_tool_warned in
8116 yes:)
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8119 ac_tool_warned=yes ;;
8120 esac
8121 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8123 else
8124 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8127 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8129 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8130 if ${lt_cv_path_mainfest_tool+:} false; then :
8131 $as_echo_n "(cached) " >&6
8132 else
8133 lt_cv_path_mainfest_tool=no
8134 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8135 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8136 cat conftest.err >&5
8137 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8138 lt_cv_path_mainfest_tool=yes
8140 rm -f conftest*
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8143 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8144 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8145 MANIFEST_TOOL=:
8153 case $host_os in
8154 rhapsody* | darwin*)
8155 if test -n "$ac_tool_prefix"; then
8156 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8157 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8159 $as_echo_n "checking for $ac_word... " >&6; }
8160 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8161 $as_echo_n "(cached) " >&6
8162 else
8163 if test -n "$DSYMUTIL"; then
8164 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8165 else
8166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8167 for as_dir in $PATH
8169 IFS=$as_save_IFS
8170 test -z "$as_dir" && as_dir=.
8171 for ac_exec_ext in '' $ac_executable_extensions; do
8172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8173 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8175 break 2
8177 done
8178 done
8179 IFS=$as_save_IFS
8183 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8184 if test -n "$DSYMUTIL"; then
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8186 $as_echo "$DSYMUTIL" >&6; }
8187 else
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189 $as_echo "no" >&6; }
8194 if test -z "$ac_cv_prog_DSYMUTIL"; then
8195 ac_ct_DSYMUTIL=$DSYMUTIL
8196 # Extract the first word of "dsymutil", so it can be a program name with args.
8197 set dummy dsymutil; ac_word=$2
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8199 $as_echo_n "checking for $ac_word... " >&6; }
8200 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8201 $as_echo_n "(cached) " >&6
8202 else
8203 if test -n "$ac_ct_DSYMUTIL"; then
8204 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8205 else
8206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207 for as_dir in $PATH
8209 IFS=$as_save_IFS
8210 test -z "$as_dir" && as_dir=.
8211 for ac_exec_ext in '' $ac_executable_extensions; do
8212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8213 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8215 break 2
8217 done
8218 done
8219 IFS=$as_save_IFS
8223 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8224 if test -n "$ac_ct_DSYMUTIL"; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8226 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8227 else
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229 $as_echo "no" >&6; }
8232 if test "x$ac_ct_DSYMUTIL" = x; then
8233 DSYMUTIL=":"
8234 else
8235 case $cross_compiling:$ac_tool_warned in
8236 yes:)
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8239 ac_tool_warned=yes ;;
8240 esac
8241 DSYMUTIL=$ac_ct_DSYMUTIL
8243 else
8244 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8247 if test -n "$ac_tool_prefix"; then
8248 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8249 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8251 $as_echo_n "checking for $ac_word... " >&6; }
8252 if ${ac_cv_prog_NMEDIT+:} false; then :
8253 $as_echo_n "(cached) " >&6
8254 else
8255 if test -n "$NMEDIT"; then
8256 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8257 else
8258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8259 for as_dir in $PATH
8261 IFS=$as_save_IFS
8262 test -z "$as_dir" && as_dir=.
8263 for ac_exec_ext in '' $ac_executable_extensions; do
8264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8265 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8267 break 2
8269 done
8270 done
8271 IFS=$as_save_IFS
8275 NMEDIT=$ac_cv_prog_NMEDIT
8276 if test -n "$NMEDIT"; then
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8278 $as_echo "$NMEDIT" >&6; }
8279 else
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8281 $as_echo "no" >&6; }
8286 if test -z "$ac_cv_prog_NMEDIT"; then
8287 ac_ct_NMEDIT=$NMEDIT
8288 # Extract the first word of "nmedit", so it can be a program name with args.
8289 set dummy nmedit; ac_word=$2
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8291 $as_echo_n "checking for $ac_word... " >&6; }
8292 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8293 $as_echo_n "(cached) " >&6
8294 else
8295 if test -n "$ac_ct_NMEDIT"; then
8296 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8297 else
8298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8299 for as_dir in $PATH
8301 IFS=$as_save_IFS
8302 test -z "$as_dir" && as_dir=.
8303 for ac_exec_ext in '' $ac_executable_extensions; do
8304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8305 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8307 break 2
8309 done
8310 done
8311 IFS=$as_save_IFS
8315 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8316 if test -n "$ac_ct_NMEDIT"; then
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8318 $as_echo "$ac_ct_NMEDIT" >&6; }
8319 else
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8321 $as_echo "no" >&6; }
8324 if test "x$ac_ct_NMEDIT" = x; then
8325 NMEDIT=":"
8326 else
8327 case $cross_compiling:$ac_tool_warned in
8328 yes:)
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8331 ac_tool_warned=yes ;;
8332 esac
8333 NMEDIT=$ac_ct_NMEDIT
8335 else
8336 NMEDIT="$ac_cv_prog_NMEDIT"
8339 if test -n "$ac_tool_prefix"; then
8340 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8341 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8343 $as_echo_n "checking for $ac_word... " >&6; }
8344 if ${ac_cv_prog_LIPO+:} false; then :
8345 $as_echo_n "(cached) " >&6
8346 else
8347 if test -n "$LIPO"; then
8348 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8349 else
8350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351 for as_dir in $PATH
8353 IFS=$as_save_IFS
8354 test -z "$as_dir" && as_dir=.
8355 for ac_exec_ext in '' $ac_executable_extensions; do
8356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8357 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8359 break 2
8361 done
8362 done
8363 IFS=$as_save_IFS
8367 LIPO=$ac_cv_prog_LIPO
8368 if test -n "$LIPO"; then
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8370 $as_echo "$LIPO" >&6; }
8371 else
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8373 $as_echo "no" >&6; }
8378 if test -z "$ac_cv_prog_LIPO"; then
8379 ac_ct_LIPO=$LIPO
8380 # Extract the first word of "lipo", so it can be a program name with args.
8381 set dummy lipo; ac_word=$2
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8383 $as_echo_n "checking for $ac_word... " >&6; }
8384 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8385 $as_echo_n "(cached) " >&6
8386 else
8387 if test -n "$ac_ct_LIPO"; then
8388 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8389 else
8390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391 for as_dir in $PATH
8393 IFS=$as_save_IFS
8394 test -z "$as_dir" && as_dir=.
8395 for ac_exec_ext in '' $ac_executable_extensions; do
8396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8397 ac_cv_prog_ac_ct_LIPO="lipo"
8398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8399 break 2
8401 done
8402 done
8403 IFS=$as_save_IFS
8407 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8408 if test -n "$ac_ct_LIPO"; then
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8410 $as_echo "$ac_ct_LIPO" >&6; }
8411 else
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413 $as_echo "no" >&6; }
8416 if test "x$ac_ct_LIPO" = x; then
8417 LIPO=":"
8418 else
8419 case $cross_compiling:$ac_tool_warned in
8420 yes:)
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8423 ac_tool_warned=yes ;;
8424 esac
8425 LIPO=$ac_ct_LIPO
8427 else
8428 LIPO="$ac_cv_prog_LIPO"
8431 if test -n "$ac_tool_prefix"; then
8432 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8433 set dummy ${ac_tool_prefix}otool; ac_word=$2
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8435 $as_echo_n "checking for $ac_word... " >&6; }
8436 if ${ac_cv_prog_OTOOL+:} false; then :
8437 $as_echo_n "(cached) " >&6
8438 else
8439 if test -n "$OTOOL"; then
8440 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8441 else
8442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8443 for as_dir in $PATH
8445 IFS=$as_save_IFS
8446 test -z "$as_dir" && as_dir=.
8447 for ac_exec_ext in '' $ac_executable_extensions; do
8448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8449 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8451 break 2
8453 done
8454 done
8455 IFS=$as_save_IFS
8459 OTOOL=$ac_cv_prog_OTOOL
8460 if test -n "$OTOOL"; then
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8462 $as_echo "$OTOOL" >&6; }
8463 else
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8465 $as_echo "no" >&6; }
8470 if test -z "$ac_cv_prog_OTOOL"; then
8471 ac_ct_OTOOL=$OTOOL
8472 # Extract the first word of "otool", so it can be a program name with args.
8473 set dummy otool; ac_word=$2
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8475 $as_echo_n "checking for $ac_word... " >&6; }
8476 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8477 $as_echo_n "(cached) " >&6
8478 else
8479 if test -n "$ac_ct_OTOOL"; then
8480 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8481 else
8482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8483 for as_dir in $PATH
8485 IFS=$as_save_IFS
8486 test -z "$as_dir" && as_dir=.
8487 for ac_exec_ext in '' $ac_executable_extensions; do
8488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8489 ac_cv_prog_ac_ct_OTOOL="otool"
8490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8491 break 2
8493 done
8494 done
8495 IFS=$as_save_IFS
8499 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8500 if test -n "$ac_ct_OTOOL"; then
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8502 $as_echo "$ac_ct_OTOOL" >&6; }
8503 else
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8505 $as_echo "no" >&6; }
8508 if test "x$ac_ct_OTOOL" = x; then
8509 OTOOL=":"
8510 else
8511 case $cross_compiling:$ac_tool_warned in
8512 yes:)
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8515 ac_tool_warned=yes ;;
8516 esac
8517 OTOOL=$ac_ct_OTOOL
8519 else
8520 OTOOL="$ac_cv_prog_OTOOL"
8523 if test -n "$ac_tool_prefix"; then
8524 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8525 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8527 $as_echo_n "checking for $ac_word... " >&6; }
8528 if ${ac_cv_prog_OTOOL64+:} false; then :
8529 $as_echo_n "(cached) " >&6
8530 else
8531 if test -n "$OTOOL64"; then
8532 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8533 else
8534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8535 for as_dir in $PATH
8537 IFS=$as_save_IFS
8538 test -z "$as_dir" && as_dir=.
8539 for ac_exec_ext in '' $ac_executable_extensions; do
8540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8541 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8543 break 2
8545 done
8546 done
8547 IFS=$as_save_IFS
8551 OTOOL64=$ac_cv_prog_OTOOL64
8552 if test -n "$OTOOL64"; then
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8554 $as_echo "$OTOOL64" >&6; }
8555 else
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8557 $as_echo "no" >&6; }
8562 if test -z "$ac_cv_prog_OTOOL64"; then
8563 ac_ct_OTOOL64=$OTOOL64
8564 # Extract the first word of "otool64", so it can be a program name with args.
8565 set dummy otool64; ac_word=$2
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8567 $as_echo_n "checking for $ac_word... " >&6; }
8568 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8569 $as_echo_n "(cached) " >&6
8570 else
8571 if test -n "$ac_ct_OTOOL64"; then
8572 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8573 else
8574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575 for as_dir in $PATH
8577 IFS=$as_save_IFS
8578 test -z "$as_dir" && as_dir=.
8579 for ac_exec_ext in '' $ac_executable_extensions; do
8580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8581 ac_cv_prog_ac_ct_OTOOL64="otool64"
8582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8583 break 2
8585 done
8586 done
8587 IFS=$as_save_IFS
8591 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8592 if test -n "$ac_ct_OTOOL64"; then
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8594 $as_echo "$ac_ct_OTOOL64" >&6; }
8595 else
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8597 $as_echo "no" >&6; }
8600 if test "x$ac_ct_OTOOL64" = x; then
8601 OTOOL64=":"
8602 else
8603 case $cross_compiling:$ac_tool_warned in
8604 yes:)
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8607 ac_tool_warned=yes ;;
8608 esac
8609 OTOOL64=$ac_ct_OTOOL64
8611 else
8612 OTOOL64="$ac_cv_prog_OTOOL64"
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8642 $as_echo_n "checking for -single_module linker flag... " >&6; }
8643 if ${lt_cv_apple_cc_single_mod+:} false; then :
8644 $as_echo_n "(cached) " >&6
8645 else
8646 lt_cv_apple_cc_single_mod=no
8647 if test -z "${LT_MULTI_MODULE}"; then
8648 # By default we will add the -single_module flag. You can override
8649 # by either setting the environment variable LT_MULTI_MODULE
8650 # non-empty at configure time, or by adding -multi_module to the
8651 # link flags.
8652 rm -rf libconftest.dylib*
8653 echo "int foo(void){return 1;}" > conftest.c
8654 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8655 -dynamiclib -Wl,-single_module conftest.c" >&5
8656 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8657 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8658 _lt_result=$?
8659 # If there is a non-empty error log, and "single_module"
8660 # appears in it, assume the flag caused a linker warning
8661 if test -s conftest.err && $GREP single_module conftest.err; then
8662 cat conftest.err >&5
8663 # Otherwise, if the output was created with a 0 exit code from
8664 # the compiler, it worked.
8665 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8666 lt_cv_apple_cc_single_mod=yes
8667 else
8668 cat conftest.err >&5
8670 rm -rf libconftest.dylib*
8671 rm -f conftest.*
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8675 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8678 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8679 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8680 $as_echo_n "(cached) " >&6
8681 else
8682 lt_cv_ld_exported_symbols_list=no
8683 save_LDFLAGS=$LDFLAGS
8684 echo "_main" > conftest.sym
8685 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8687 /* end confdefs.h. */
8690 main ()
8694 return 0;
8696 _ACEOF
8697 if ac_fn_c_try_link "$LINENO"; then :
8698 lt_cv_ld_exported_symbols_list=yes
8699 else
8700 lt_cv_ld_exported_symbols_list=no
8702 rm -f core conftest.err conftest.$ac_objext \
8703 conftest$ac_exeext conftest.$ac_ext
8704 LDFLAGS="$save_LDFLAGS"
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8708 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8711 $as_echo_n "checking for -force_load linker flag... " >&6; }
8712 if ${lt_cv_ld_force_load+:} false; then :
8713 $as_echo_n "(cached) " >&6
8714 else
8715 lt_cv_ld_force_load=no
8716 cat > conftest.c << _LT_EOF
8717 int forced_loaded() { return 2;}
8718 _LT_EOF
8719 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8720 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8721 echo "$AR cru libconftest.a conftest.o" >&5
8722 $AR cru libconftest.a conftest.o 2>&5
8723 echo "$RANLIB libconftest.a" >&5
8724 $RANLIB libconftest.a 2>&5
8725 cat > conftest.c << _LT_EOF
8726 int main() { return 0;}
8727 _LT_EOF
8728 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8729 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8730 _lt_result=$?
8731 if test -s conftest.err && $GREP force_load conftest.err; then
8732 cat conftest.err >&5
8733 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8734 lt_cv_ld_force_load=yes
8735 else
8736 cat conftest.err >&5
8738 rm -f conftest.err libconftest.a conftest conftest.c
8739 rm -rf conftest.dSYM
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8743 $as_echo "$lt_cv_ld_force_load" >&6; }
8744 case $host_os in
8745 rhapsody* | darwin1.[012])
8746 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8747 darwin1.*)
8748 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8749 darwin*) # darwin 5.x on
8750 # if running on 10.5 or later, the deployment target defaults
8751 # to the OS version, if on x86, and 10.4, the deployment
8752 # target defaults to 10.4. Don't you love it?
8753 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8754 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8755 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8756 10.[012]*)
8757 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8758 10.*)
8759 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8760 esac
8762 esac
8763 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8764 _lt_dar_single_mod='$single_module'
8766 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8767 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8768 else
8769 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8771 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8772 _lt_dsymutil='~$DSYMUTIL $lib || :'
8773 else
8774 _lt_dsymutil=
8777 esac
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8780 $as_echo_n "checking for ANSI C header files... " >&6; }
8781 if ${ac_cv_header_stdc+:} false; then :
8782 $as_echo_n "(cached) " >&6
8783 else
8784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8785 /* end confdefs.h. */
8786 #include <stdlib.h>
8787 #include <stdarg.h>
8788 #include <string.h>
8789 #include <float.h>
8792 main ()
8796 return 0;
8798 _ACEOF
8799 if ac_fn_c_try_compile "$LINENO"; then :
8800 ac_cv_header_stdc=yes
8801 else
8802 ac_cv_header_stdc=no
8804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8806 if test $ac_cv_header_stdc = yes; then
8807 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8809 /* end confdefs.h. */
8810 #include <string.h>
8812 _ACEOF
8813 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8814 $EGREP "memchr" >/dev/null 2>&1; then :
8816 else
8817 ac_cv_header_stdc=no
8819 rm -f conftest*
8823 if test $ac_cv_header_stdc = yes; then
8824 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8827 #include <stdlib.h>
8829 _ACEOF
8830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8831 $EGREP "free" >/dev/null 2>&1; then :
8833 else
8834 ac_cv_header_stdc=no
8836 rm -f conftest*
8840 if test $ac_cv_header_stdc = yes; then
8841 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8842 if test "$cross_compiling" = yes; then :
8844 else
8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8847 #include <ctype.h>
8848 #include <stdlib.h>
8849 #if ((' ' & 0x0FF) == 0x020)
8850 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8851 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8852 #else
8853 # define ISLOWER(c) \
8854 (('a' <= (c) && (c) <= 'i') \
8855 || ('j' <= (c) && (c) <= 'r') \
8856 || ('s' <= (c) && (c) <= 'z'))
8857 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8858 #endif
8860 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8862 main ()
8864 int i;
8865 for (i = 0; i < 256; i++)
8866 if (XOR (islower (i), ISLOWER (i))
8867 || toupper (i) != TOUPPER (i))
8868 return 2;
8869 return 0;
8871 _ACEOF
8872 if ac_fn_c_try_run "$LINENO"; then :
8874 else
8875 ac_cv_header_stdc=no
8877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8878 conftest.$ac_objext conftest.beam conftest.$ac_ext
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8884 $as_echo "$ac_cv_header_stdc" >&6; }
8885 if test $ac_cv_header_stdc = yes; then
8887 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8891 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8892 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8893 inttypes.h stdint.h unistd.h
8894 do :
8895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8896 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8898 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8899 cat >>confdefs.h <<_ACEOF
8900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8901 _ACEOF
8905 done
8908 for ac_header in dlfcn.h
8909 do :
8910 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8912 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8913 cat >>confdefs.h <<_ACEOF
8914 #define HAVE_DLFCN_H 1
8915 _ACEOF
8919 done
8923 func_stripname_cnf ()
8925 case ${2} in
8926 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8927 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8928 esac
8929 } # func_stripname_cnf
8935 # Set options
8939 enable_dlopen=no
8942 enable_win32_dll=no
8945 # Check whether --enable-shared was given.
8946 if test "${enable_shared+set}" = set; then :
8947 enableval=$enable_shared; p=${PACKAGE-default}
8948 case $enableval in
8949 yes) enable_shared=yes ;;
8950 no) enable_shared=no ;;
8952 enable_shared=no
8953 # Look at the argument we got. We use all the common list separators.
8954 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8955 for pkg in $enableval; do
8956 IFS="$lt_save_ifs"
8957 if test "X$pkg" = "X$p"; then
8958 enable_shared=yes
8960 done
8961 IFS="$lt_save_ifs"
8963 esac
8964 else
8965 enable_shared=yes
8976 # Check whether --enable-static was given.
8977 if test "${enable_static+set}" = set; then :
8978 enableval=$enable_static; p=${PACKAGE-default}
8979 case $enableval in
8980 yes) enable_static=yes ;;
8981 no) enable_static=no ;;
8983 enable_static=no
8984 # Look at the argument we got. We use all the common list separators.
8985 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8986 for pkg in $enableval; do
8987 IFS="$lt_save_ifs"
8988 if test "X$pkg" = "X$p"; then
8989 enable_static=yes
8991 done
8992 IFS="$lt_save_ifs"
8994 esac
8995 else
8996 enable_static=yes
9008 # Check whether --with-pic was given.
9009 if test "${with_pic+set}" = set; then :
9010 withval=$with_pic; lt_p=${PACKAGE-default}
9011 case $withval in
9012 yes|no) pic_mode=$withval ;;
9014 pic_mode=default
9015 # Look at the argument we got. We use all the common list separators.
9016 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9017 for lt_pkg in $withval; do
9018 IFS="$lt_save_ifs"
9019 if test "X$lt_pkg" = "X$lt_p"; then
9020 pic_mode=yes
9022 done
9023 IFS="$lt_save_ifs"
9025 esac
9026 else
9027 pic_mode=default
9031 test -z "$pic_mode" && pic_mode=default
9039 # Check whether --enable-fast-install was given.
9040 if test "${enable_fast_install+set}" = set; then :
9041 enableval=$enable_fast_install; p=${PACKAGE-default}
9042 case $enableval in
9043 yes) enable_fast_install=yes ;;
9044 no) enable_fast_install=no ;;
9046 enable_fast_install=no
9047 # Look at the argument we got. We use all the common list separators.
9048 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9049 for pkg in $enableval; do
9050 IFS="$lt_save_ifs"
9051 if test "X$pkg" = "X$p"; then
9052 enable_fast_install=yes
9054 done
9055 IFS="$lt_save_ifs"
9057 esac
9058 else
9059 enable_fast_install=yes
9072 # This can be used to rebuild libtool when needed
9073 LIBTOOL_DEPS="$ltmain"
9075 # Always use our own libtool.
9076 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9107 test -z "$LN_S" && LN_S="ln -s"
9122 if test -n "${ZSH_VERSION+set}" ; then
9123 setopt NO_GLOB_SUBST
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9127 $as_echo_n "checking for objdir... " >&6; }
9128 if ${lt_cv_objdir+:} false; then :
9129 $as_echo_n "(cached) " >&6
9130 else
9131 rm -f .libs 2>/dev/null
9132 mkdir .libs 2>/dev/null
9133 if test -d .libs; then
9134 lt_cv_objdir=.libs
9135 else
9136 # MS-DOS does not allow filenames that begin with a dot.
9137 lt_cv_objdir=_libs
9139 rmdir .libs 2>/dev/null
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9142 $as_echo "$lt_cv_objdir" >&6; }
9143 objdir=$lt_cv_objdir
9149 cat >>confdefs.h <<_ACEOF
9150 #define LT_OBJDIR "$lt_cv_objdir/"
9151 _ACEOF
9156 case $host_os in
9157 aix3*)
9158 # AIX sometimes has problems with the GCC collect2 program. For some
9159 # reason, if we set the COLLECT_NAMES environment variable, the problems
9160 # vanish in a puff of smoke.
9161 if test "X${COLLECT_NAMES+set}" != Xset; then
9162 COLLECT_NAMES=
9163 export COLLECT_NAMES
9166 esac
9168 # Global variables:
9169 ofile=libtool
9170 can_build_shared=yes
9172 # All known linkers require a `.a' archive for static linking (except MSVC,
9173 # which needs '.lib').
9174 libext=a
9176 with_gnu_ld="$lt_cv_prog_gnu_ld"
9178 old_CC="$CC"
9179 old_CFLAGS="$CFLAGS"
9181 # Set sane defaults for various variables
9182 test -z "$CC" && CC=cc
9183 test -z "$LTCC" && LTCC=$CC
9184 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9185 test -z "$LD" && LD=ld
9186 test -z "$ac_objext" && ac_objext=o
9188 for cc_temp in $compiler""; do
9189 case $cc_temp in
9190 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9191 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9192 \-*) ;;
9193 *) break;;
9194 esac
9195 done
9196 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9199 # Only perform the check for file, if the check method requires it
9200 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9201 case $deplibs_check_method in
9202 file_magic*)
9203 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9205 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9206 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9207 $as_echo_n "(cached) " >&6
9208 else
9209 case $MAGIC_CMD in
9210 [\\/*] | ?:[\\/]*)
9211 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9214 lt_save_MAGIC_CMD="$MAGIC_CMD"
9215 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9216 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9217 for ac_dir in $ac_dummy; do
9218 IFS="$lt_save_ifs"
9219 test -z "$ac_dir" && ac_dir=.
9220 if test -f $ac_dir/${ac_tool_prefix}file; then
9221 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9222 if test -n "$file_magic_test_file"; then
9223 case $deplibs_check_method in
9224 "file_magic "*)
9225 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9226 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9227 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9228 $EGREP "$file_magic_regex" > /dev/null; then
9230 else
9231 cat <<_LT_EOF 1>&2
9233 *** Warning: the command libtool uses to detect shared libraries,
9234 *** $file_magic_cmd, produces output that libtool cannot recognize.
9235 *** The result is that libtool may fail to recognize shared libraries
9236 *** as such. This will affect the creation of libtool libraries that
9237 *** depend on shared libraries, but programs linked with such libtool
9238 *** libraries will work regardless of this problem. Nevertheless, you
9239 *** may want to report the problem to your system manager and/or to
9240 *** bug-libtool@gnu.org
9242 _LT_EOF
9243 fi ;;
9244 esac
9246 break
9248 done
9249 IFS="$lt_save_ifs"
9250 MAGIC_CMD="$lt_save_MAGIC_CMD"
9252 esac
9255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9256 if test -n "$MAGIC_CMD"; then
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9258 $as_echo "$MAGIC_CMD" >&6; }
9259 else
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9261 $as_echo "no" >&6; }
9268 if test -z "$lt_cv_path_MAGIC_CMD"; then
9269 if test -n "$ac_tool_prefix"; then
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9271 $as_echo_n "checking for file... " >&6; }
9272 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9273 $as_echo_n "(cached) " >&6
9274 else
9275 case $MAGIC_CMD in
9276 [\\/*] | ?:[\\/]*)
9277 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9280 lt_save_MAGIC_CMD="$MAGIC_CMD"
9281 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9282 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9283 for ac_dir in $ac_dummy; do
9284 IFS="$lt_save_ifs"
9285 test -z "$ac_dir" && ac_dir=.
9286 if test -f $ac_dir/file; then
9287 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9288 if test -n "$file_magic_test_file"; then
9289 case $deplibs_check_method in
9290 "file_magic "*)
9291 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9292 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9293 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9294 $EGREP "$file_magic_regex" > /dev/null; then
9296 else
9297 cat <<_LT_EOF 1>&2
9299 *** Warning: the command libtool uses to detect shared libraries,
9300 *** $file_magic_cmd, produces output that libtool cannot recognize.
9301 *** The result is that libtool may fail to recognize shared libraries
9302 *** as such. This will affect the creation of libtool libraries that
9303 *** depend on shared libraries, but programs linked with such libtool
9304 *** libraries will work regardless of this problem. Nevertheless, you
9305 *** may want to report the problem to your system manager and/or to
9306 *** bug-libtool@gnu.org
9308 _LT_EOF
9309 fi ;;
9310 esac
9312 break
9314 done
9315 IFS="$lt_save_ifs"
9316 MAGIC_CMD="$lt_save_MAGIC_CMD"
9318 esac
9321 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9322 if test -n "$MAGIC_CMD"; then
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9324 $as_echo "$MAGIC_CMD" >&6; }
9325 else
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9327 $as_echo "no" >&6; }
9331 else
9332 MAGIC_CMD=:
9338 esac
9340 # Use C for the default configuration in the libtool script
9342 lt_save_CC="$CC"
9343 ac_ext=c
9344 ac_cpp='$CPP $CPPFLAGS'
9345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9350 # Source file extension for C test sources.
9351 ac_ext=c
9353 # Object file extension for compiled C test sources.
9354 objext=o
9355 objext=$objext
9357 # Code to be used in simple compile tests
9358 lt_simple_compile_test_code="int some_variable = 0;"
9360 # Code to be used in simple link tests
9361 lt_simple_link_test_code='int main(){return(0);}'
9369 # If no C compiler was specified, use CC.
9370 LTCC=${LTCC-"$CC"}
9372 # If no C compiler flags were specified, use CFLAGS.
9373 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9375 # Allow CC to be a program name with arguments.
9376 compiler=$CC
9378 # Save the default compiler, since it gets overwritten when the other
9379 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9380 compiler_DEFAULT=$CC
9382 # save warnings/boilerplate of simple test code
9383 ac_outfile=conftest.$ac_objext
9384 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9385 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9386 _lt_compiler_boilerplate=`cat conftest.err`
9387 $RM conftest*
9389 ac_outfile=conftest.$ac_objext
9390 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9391 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9392 _lt_linker_boilerplate=`cat conftest.err`
9393 $RM -r conftest*
9396 ## CAVEAT EMPTOR:
9397 ## There is no encapsulation within the following macros, do not change
9398 ## the running order or otherwise move them around unless you know exactly
9399 ## what you are doing...
9400 if test -n "$compiler"; then
9402 lt_prog_compiler_no_builtin_flag=
9404 if test "$GCC" = yes; then
9405 case $cc_basename in
9406 nvcc*)
9407 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9409 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9410 esac
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9413 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9414 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9415 $as_echo_n "(cached) " >&6
9416 else
9417 lt_cv_prog_compiler_rtti_exceptions=no
9418 ac_outfile=conftest.$ac_objext
9419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9420 lt_compiler_flag="-fno-rtti -fno-exceptions"
9421 # Insert the option either (1) after the last *FLAGS variable, or
9422 # (2) before a word containing "conftest.", or (3) at the end.
9423 # Note that $ac_compile itself does not contain backslashes and begins
9424 # with a dollar sign (not a hyphen), so the echo should work correctly.
9425 # The option is referenced via a variable to avoid confusing sed.
9426 lt_compile=`echo "$ac_compile" | $SED \
9427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9429 -e 's:$: $lt_compiler_flag:'`
9430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9431 (eval "$lt_compile" 2>conftest.err)
9432 ac_status=$?
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 if (exit $ac_status) && test -s "$ac_outfile"; then
9436 # The compiler can only warn and ignore the option if not recognized
9437 # So say no if there are warnings other than the usual output.
9438 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9439 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9440 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9441 lt_cv_prog_compiler_rtti_exceptions=yes
9444 $RM conftest*
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9448 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9450 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9451 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9452 else
9463 lt_prog_compiler_wl=
9464 lt_prog_compiler_pic=
9465 lt_prog_compiler_static=
9468 if test "$GCC" = yes; then
9469 lt_prog_compiler_wl='-Wl,'
9470 lt_prog_compiler_static='-static'
9472 case $host_os in
9473 aix*)
9474 # All AIX code is PIC.
9475 if test "$host_cpu" = ia64; then
9476 # AIX 5 now supports IA64 processor
9477 lt_prog_compiler_static='-Bstatic'
9481 amigaos*)
9482 case $host_cpu in
9483 powerpc)
9484 # see comment about AmigaOS4 .so support
9485 lt_prog_compiler_pic='-fPIC'
9487 m68k)
9488 # FIXME: we need at least 68020 code to build shared libraries, but
9489 # adding the `-m68020' flag to GCC prevents building anything better,
9490 # like `-m68040'.
9491 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9493 esac
9496 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9497 # PIC is the default for these OSes.
9500 mingw* | cygwin* | pw32* | os2* | cegcc*)
9501 # This hack is so that the source file can tell whether it is being
9502 # built for inclusion in a dll (and should export symbols for example).
9503 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9504 # (--disable-auto-import) libraries
9505 lt_prog_compiler_pic='-DDLL_EXPORT'
9508 darwin* | rhapsody*)
9509 # PIC is the default on this platform
9510 # Common symbols not allowed in MH_DYLIB files
9511 lt_prog_compiler_pic='-fno-common'
9514 haiku*)
9515 # PIC is the default for Haiku.
9516 # The "-static" flag exists, but is broken.
9517 lt_prog_compiler_static=
9520 hpux*)
9521 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9522 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9523 # sets the default TLS model and affects inlining.
9524 case $host_cpu in
9525 hppa*64*)
9526 # +Z the default
9529 lt_prog_compiler_pic='-fPIC'
9531 esac
9534 interix[3-9]*)
9535 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9536 # Instead, we relocate shared libraries at runtime.
9539 msdosdjgpp*)
9540 # Just because we use GCC doesn't mean we suddenly get shared libraries
9541 # on systems that don't support them.
9542 lt_prog_compiler_can_build_shared=no
9543 enable_shared=no
9546 *nto* | *qnx*)
9547 # QNX uses GNU C++, but need to define -shared option too, otherwise
9548 # it will coredump.
9549 lt_prog_compiler_pic='-fPIC -shared'
9552 sysv4*MP*)
9553 if test -d /usr/nec; then
9554 lt_prog_compiler_pic=-Kconform_pic
9559 lt_prog_compiler_pic='-fPIC'
9561 esac
9563 case $cc_basename in
9564 nvcc*) # Cuda Compiler Driver 2.2
9565 lt_prog_compiler_wl='-Xlinker '
9566 if test -n "$lt_prog_compiler_pic"; then
9567 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9570 esac
9571 else
9572 # PORTME Check for flag to pass linker flags through the system compiler.
9573 case $host_os in
9574 aix*)
9575 lt_prog_compiler_wl='-Wl,'
9576 if test "$host_cpu" = ia64; then
9577 # AIX 5 now supports IA64 processor
9578 lt_prog_compiler_static='-Bstatic'
9579 else
9580 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9584 mingw* | cygwin* | pw32* | os2* | cegcc*)
9585 # This hack is so that the source file can tell whether it is being
9586 # built for inclusion in a dll (and should export symbols for example).
9587 lt_prog_compiler_pic='-DDLL_EXPORT'
9590 hpux9* | hpux10* | hpux11*)
9591 lt_prog_compiler_wl='-Wl,'
9592 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9593 # not for PA HP-UX.
9594 case $host_cpu in
9595 hppa*64*|ia64*)
9596 # +Z the default
9599 lt_prog_compiler_pic='+Z'
9601 esac
9602 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9603 lt_prog_compiler_static='${wl}-a ${wl}archive'
9606 irix5* | irix6* | nonstopux*)
9607 lt_prog_compiler_wl='-Wl,'
9608 # PIC (with -KPIC) is the default.
9609 lt_prog_compiler_static='-non_shared'
9612 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9613 case $cc_basename in
9614 # old Intel for x86_64 which still supported -KPIC.
9615 ecc*)
9616 lt_prog_compiler_wl='-Wl,'
9617 lt_prog_compiler_pic='-KPIC'
9618 lt_prog_compiler_static='-static'
9620 # icc used to be incompatible with GCC.
9621 # ICC 10 doesn't accept -KPIC any more.
9622 icc* | ifort*)
9623 lt_prog_compiler_wl='-Wl,'
9624 lt_prog_compiler_pic='-fPIC'
9625 lt_prog_compiler_static='-static'
9627 # Lahey Fortran 8.1.
9628 lf95*)
9629 lt_prog_compiler_wl='-Wl,'
9630 lt_prog_compiler_pic='--shared'
9631 lt_prog_compiler_static='--static'
9633 nagfor*)
9634 # NAG Fortran compiler
9635 lt_prog_compiler_wl='-Wl,-Wl,,'
9636 lt_prog_compiler_pic='-PIC'
9637 lt_prog_compiler_static='-Bstatic'
9639 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9640 # Portland Group compilers (*not* the Pentium gcc compiler,
9641 # which looks to be a dead project)
9642 lt_prog_compiler_wl='-Wl,'
9643 lt_prog_compiler_pic='-fpic'
9644 lt_prog_compiler_static='-Bstatic'
9646 ccc*)
9647 lt_prog_compiler_wl='-Wl,'
9648 # All Alpha code is PIC.
9649 lt_prog_compiler_static='-non_shared'
9651 xl* | bgxl* | bgf* | mpixl*)
9652 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9653 lt_prog_compiler_wl='-Wl,'
9654 lt_prog_compiler_pic='-qpic'
9655 lt_prog_compiler_static='-qstaticlink'
9658 case `$CC -V 2>&1 | sed 5q` in
9659 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9660 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9661 lt_prog_compiler_pic='-KPIC'
9662 lt_prog_compiler_static='-Bstatic'
9663 lt_prog_compiler_wl=''
9665 *Sun\ F* | *Sun*Fortran*)
9666 lt_prog_compiler_pic='-KPIC'
9667 lt_prog_compiler_static='-Bstatic'
9668 lt_prog_compiler_wl='-Qoption ld '
9670 *Sun\ C*)
9671 # Sun C 5.9
9672 lt_prog_compiler_pic='-KPIC'
9673 lt_prog_compiler_static='-Bstatic'
9674 lt_prog_compiler_wl='-Wl,'
9676 *Intel*\ [CF]*Compiler*)
9677 lt_prog_compiler_wl='-Wl,'
9678 lt_prog_compiler_pic='-fPIC'
9679 lt_prog_compiler_static='-static'
9681 *Portland\ Group*)
9682 lt_prog_compiler_wl='-Wl,'
9683 lt_prog_compiler_pic='-fpic'
9684 lt_prog_compiler_static='-Bstatic'
9686 esac
9688 esac
9691 newsos6)
9692 lt_prog_compiler_pic='-KPIC'
9693 lt_prog_compiler_static='-Bstatic'
9696 *nto* | *qnx*)
9697 # QNX uses GNU C++, but need to define -shared option too, otherwise
9698 # it will coredump.
9699 lt_prog_compiler_pic='-fPIC -shared'
9702 osf3* | osf4* | osf5*)
9703 lt_prog_compiler_wl='-Wl,'
9704 # All OSF/1 code is PIC.
9705 lt_prog_compiler_static='-non_shared'
9708 rdos*)
9709 lt_prog_compiler_static='-non_shared'
9712 solaris*)
9713 lt_prog_compiler_pic='-KPIC'
9714 lt_prog_compiler_static='-Bstatic'
9715 case $cc_basename in
9716 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9717 lt_prog_compiler_wl='-Qoption ld ';;
9719 lt_prog_compiler_wl='-Wl,';;
9720 esac
9723 sunos4*)
9724 lt_prog_compiler_wl='-Qoption ld '
9725 lt_prog_compiler_pic='-PIC'
9726 lt_prog_compiler_static='-Bstatic'
9729 sysv4 | sysv4.2uw2* | sysv4.3*)
9730 lt_prog_compiler_wl='-Wl,'
9731 lt_prog_compiler_pic='-KPIC'
9732 lt_prog_compiler_static='-Bstatic'
9735 sysv4*MP*)
9736 if test -d /usr/nec ;then
9737 lt_prog_compiler_pic='-Kconform_pic'
9738 lt_prog_compiler_static='-Bstatic'
9742 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9743 lt_prog_compiler_wl='-Wl,'
9744 lt_prog_compiler_pic='-KPIC'
9745 lt_prog_compiler_static='-Bstatic'
9748 unicos*)
9749 lt_prog_compiler_wl='-Wl,'
9750 lt_prog_compiler_can_build_shared=no
9753 uts4*)
9754 lt_prog_compiler_pic='-pic'
9755 lt_prog_compiler_static='-Bstatic'
9759 lt_prog_compiler_can_build_shared=no
9761 esac
9764 case $host_os in
9765 # For platforms which do not support PIC, -DPIC is meaningless:
9766 *djgpp*)
9767 lt_prog_compiler_pic=
9770 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9772 esac
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9775 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9776 if ${lt_cv_prog_compiler_pic+:} false; then :
9777 $as_echo_n "(cached) " >&6
9778 else
9779 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9782 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9783 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9786 # Check to make sure the PIC flag actually works.
9788 if test -n "$lt_prog_compiler_pic"; then
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9790 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9791 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9792 $as_echo_n "(cached) " >&6
9793 else
9794 lt_cv_prog_compiler_pic_works=no
9795 ac_outfile=conftest.$ac_objext
9796 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9797 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9798 # Insert the option either (1) after the last *FLAGS variable, or
9799 # (2) before a word containing "conftest.", or (3) at the end.
9800 # Note that $ac_compile itself does not contain backslashes and begins
9801 # with a dollar sign (not a hyphen), so the echo should work correctly.
9802 # The option is referenced via a variable to avoid confusing sed.
9803 lt_compile=`echo "$ac_compile" | $SED \
9804 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9805 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9806 -e 's:$: $lt_compiler_flag:'`
9807 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9808 (eval "$lt_compile" 2>conftest.err)
9809 ac_status=$?
9810 cat conftest.err >&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 if (exit $ac_status) && test -s "$ac_outfile"; then
9813 # The compiler can only warn and ignore the option if not recognized
9814 # So say no if there are warnings other than the usual output.
9815 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9816 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9817 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9818 lt_cv_prog_compiler_pic_works=yes
9821 $RM conftest*
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9825 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9827 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9828 case $lt_prog_compiler_pic in
9829 "" | " "*) ;;
9830 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9831 esac
9832 else
9833 lt_prog_compiler_pic=
9834 lt_prog_compiler_can_build_shared=no
9850 # Check to make sure the static flag actually works.
9852 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9854 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9855 if ${lt_cv_prog_compiler_static_works+:} false; then :
9856 $as_echo_n "(cached) " >&6
9857 else
9858 lt_cv_prog_compiler_static_works=no
9859 save_LDFLAGS="$LDFLAGS"
9860 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9861 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9862 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9863 # The linker can only warn and ignore the option if not recognized
9864 # So say no if there are warnings
9865 if test -s conftest.err; then
9866 # Append any errors to the config.log.
9867 cat conftest.err 1>&5
9868 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9870 if diff conftest.exp conftest.er2 >/dev/null; then
9871 lt_cv_prog_compiler_static_works=yes
9873 else
9874 lt_cv_prog_compiler_static_works=yes
9877 $RM -r conftest*
9878 LDFLAGS="$save_LDFLAGS"
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9882 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9884 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9886 else
9887 lt_prog_compiler_static=
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9897 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9898 if ${lt_cv_prog_compiler_c_o+:} false; then :
9899 $as_echo_n "(cached) " >&6
9900 else
9901 lt_cv_prog_compiler_c_o=no
9902 $RM -r conftest 2>/dev/null
9903 mkdir conftest
9904 cd conftest
9905 mkdir out
9906 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9908 lt_compiler_flag="-o out/conftest2.$ac_objext"
9909 # Insert the option either (1) after the last *FLAGS variable, or
9910 # (2) before a word containing "conftest.", or (3) at the end.
9911 # Note that $ac_compile itself does not contain backslashes and begins
9912 # with a dollar sign (not a hyphen), so the echo should work correctly.
9913 lt_compile=`echo "$ac_compile" | $SED \
9914 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9916 -e 's:$: $lt_compiler_flag:'`
9917 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9918 (eval "$lt_compile" 2>out/conftest.err)
9919 ac_status=$?
9920 cat out/conftest.err >&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9923 then
9924 # The compiler can only warn and ignore the option if not recognized
9925 # So say no if there are warnings
9926 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9927 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9928 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9929 lt_cv_prog_compiler_c_o=yes
9932 chmod u+w . 2>&5
9933 $RM conftest*
9934 # SGI C++ compiler will create directory out/ii_files/ for
9935 # template instantiation
9936 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9937 $RM out/* && rmdir out
9938 cd ..
9939 $RM -r conftest
9940 $RM conftest*
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9944 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9952 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9953 if ${lt_cv_prog_compiler_c_o+:} false; then :
9954 $as_echo_n "(cached) " >&6
9955 else
9956 lt_cv_prog_compiler_c_o=no
9957 $RM -r conftest 2>/dev/null
9958 mkdir conftest
9959 cd conftest
9960 mkdir out
9961 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9963 lt_compiler_flag="-o out/conftest2.$ac_objext"
9964 # Insert the option either (1) after the last *FLAGS variable, or
9965 # (2) before a word containing "conftest.", or (3) at the end.
9966 # Note that $ac_compile itself does not contain backslashes and begins
9967 # with a dollar sign (not a hyphen), so the echo should work correctly.
9968 lt_compile=`echo "$ac_compile" | $SED \
9969 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9970 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9971 -e 's:$: $lt_compiler_flag:'`
9972 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9973 (eval "$lt_compile" 2>out/conftest.err)
9974 ac_status=$?
9975 cat out/conftest.err >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9978 then
9979 # The compiler can only warn and ignore the option if not recognized
9980 # So say no if there are warnings
9981 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9982 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9983 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9984 lt_cv_prog_compiler_c_o=yes
9987 chmod u+w . 2>&5
9988 $RM conftest*
9989 # SGI C++ compiler will create directory out/ii_files/ for
9990 # template instantiation
9991 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9992 $RM out/* && rmdir out
9993 cd ..
9994 $RM -r conftest
9995 $RM conftest*
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9999 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10004 hard_links="nottested"
10005 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10006 # do not overwrite the value of need_locks provided by the user
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10008 $as_echo_n "checking if we can lock with hard links... " >&6; }
10009 hard_links=yes
10010 $RM conftest*
10011 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10012 touch conftest.a
10013 ln conftest.a conftest.b 2>&5 || hard_links=no
10014 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10016 $as_echo "$hard_links" >&6; }
10017 if test "$hard_links" = no; then
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10019 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10020 need_locks=warn
10022 else
10023 need_locks=no
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10032 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10034 runpath_var=
10035 allow_undefined_flag=
10036 always_export_symbols=no
10037 archive_cmds=
10038 archive_expsym_cmds=
10039 compiler_needs_object=no
10040 enable_shared_with_static_runtimes=no
10041 export_dynamic_flag_spec=
10042 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10043 hardcode_automatic=no
10044 hardcode_direct=no
10045 hardcode_direct_absolute=no
10046 hardcode_libdir_flag_spec=
10047 hardcode_libdir_separator=
10048 hardcode_minus_L=no
10049 hardcode_shlibpath_var=unsupported
10050 inherit_rpath=no
10051 link_all_deplibs=unknown
10052 module_cmds=
10053 module_expsym_cmds=
10054 old_archive_from_new_cmds=
10055 old_archive_from_expsyms_cmds=
10056 thread_safe_flag_spec=
10057 whole_archive_flag_spec=
10058 # include_expsyms should be a list of space-separated symbols to be *always*
10059 # included in the symbol list
10060 include_expsyms=
10061 # exclude_expsyms can be an extended regexp of symbols to exclude
10062 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10063 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10064 # as well as any symbol that contains `d'.
10065 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10066 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10067 # platforms (ab)use it in PIC code, but their linkers get confused if
10068 # the symbol is explicitly referenced. Since portable code cannot
10069 # rely on this symbol name, it's probably fine to never include it in
10070 # preloaded symbol tables.
10071 # Exclude shared library initialization/finalization symbols.
10072 extract_expsyms_cmds=
10074 case $host_os in
10075 cygwin* | mingw* | pw32* | cegcc*)
10076 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10077 # When not using gcc, we currently assume that we are using
10078 # Microsoft Visual C++.
10079 if test "$GCC" != yes; then
10080 with_gnu_ld=no
10083 interix*)
10084 # we just hope/assume this is gcc and not c89 (= MSVC++)
10085 with_gnu_ld=yes
10087 openbsd*)
10088 with_gnu_ld=no
10090 linux* | k*bsd*-gnu | gnu*)
10091 link_all_deplibs=no
10093 esac
10095 ld_shlibs=yes
10097 # On some targets, GNU ld is compatible enough with the native linker
10098 # that we're better off using the native interface for both.
10099 lt_use_gnu_ld_interface=no
10100 if test "$with_gnu_ld" = yes; then
10101 case $host_os in
10102 aix*)
10103 # The AIX port of GNU ld has always aspired to compatibility
10104 # with the native linker. However, as the warning in the GNU ld
10105 # block says, versions before 2.19.5* couldn't really create working
10106 # shared libraries, regardless of the interface used.
10107 case `$LD -v 2>&1` in
10108 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10109 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10110 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10112 lt_use_gnu_ld_interface=yes
10114 esac
10117 lt_use_gnu_ld_interface=yes
10119 esac
10122 if test "$lt_use_gnu_ld_interface" = yes; then
10123 # If archive_cmds runs LD, not CC, wlarc should be empty
10124 wlarc='${wl}'
10126 # Set some defaults for GNU ld with shared library support. These
10127 # are reset later if shared libraries are not supported. Putting them
10128 # here allows them to be overridden if necessary.
10129 runpath_var=LD_RUN_PATH
10130 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10131 export_dynamic_flag_spec='${wl}--export-dynamic'
10132 # ancient GNU ld didn't support --whole-archive et. al.
10133 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10134 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10135 else
10136 whole_archive_flag_spec=
10138 supports_anon_versioning=no
10139 case `$LD -v 2>&1` in
10140 *GNU\ gold*) supports_anon_versioning=yes ;;
10141 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10142 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10143 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10144 *\ 2.11.*) ;; # other 2.11 versions
10145 *) supports_anon_versioning=yes ;;
10146 esac
10148 # See if GNU ld supports shared libraries.
10149 case $host_os in
10150 aix[3-9]*)
10151 # On AIX/PPC, the GNU linker is very broken
10152 if test "$host_cpu" != ia64; then
10153 ld_shlibs=no
10154 cat <<_LT_EOF 1>&2
10156 *** Warning: the GNU linker, at least up to release 2.19, is reported
10157 *** to be unable to reliably create shared libraries on AIX.
10158 *** Therefore, libtool is disabling shared libraries support. If you
10159 *** really care for shared libraries, you may want to install binutils
10160 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10161 *** You will then need to restart the configuration process.
10163 _LT_EOF
10167 amigaos*)
10168 case $host_cpu in
10169 powerpc)
10170 # see comment about AmigaOS4 .so support
10171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10172 archive_expsym_cmds=''
10174 m68k)
10175 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)'
10176 hardcode_libdir_flag_spec='-L$libdir'
10177 hardcode_minus_L=yes
10179 esac
10182 beos*)
10183 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10184 allow_undefined_flag=unsupported
10185 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10186 # support --undefined. This deserves some investigation. FIXME
10187 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10188 else
10189 ld_shlibs=no
10193 cygwin* | mingw* | pw32* | cegcc*)
10194 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10195 # as there is no search path for DLLs.
10196 hardcode_libdir_flag_spec='-L$libdir'
10197 export_dynamic_flag_spec='${wl}--export-all-symbols'
10198 allow_undefined_flag=unsupported
10199 always_export_symbols=no
10200 enable_shared_with_static_runtimes=yes
10201 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'
10202 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10204 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10205 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10206 # If the export-symbols file already is a .def file (1st line
10207 # is EXPORTS), use it as is; otherwise, prepend...
10208 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10209 cp $export_symbols $output_objdir/$soname.def;
10210 else
10211 echo EXPORTS > $output_objdir/$soname.def;
10212 cat $export_symbols >> $output_objdir/$soname.def;
10214 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10215 else
10216 ld_shlibs=no
10220 haiku*)
10221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10222 link_all_deplibs=yes
10225 interix[3-9]*)
10226 hardcode_direct=no
10227 hardcode_shlibpath_var=no
10228 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10229 export_dynamic_flag_spec='${wl}-E'
10230 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10231 # Instead, shared libraries are loaded at an image base (0x10000000 by
10232 # default) and relocated if they conflict, which is a slow very memory
10233 # consuming and fragmenting process. To avoid this, we pick a random,
10234 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10235 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10236 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10237 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'
10240 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10241 tmp_diet=no
10242 if test "$host_os" = linux-dietlibc; then
10243 case $cc_basename in
10244 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10245 esac
10247 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10248 && test "$tmp_diet" = no
10249 then
10250 tmp_addflag=' $pic_flag'
10251 tmp_sharedflag='-shared'
10252 case $cc_basename,$host_cpu in
10253 pgcc*) # Portland Group C compiler
10254 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'
10255 tmp_addflag=' $pic_flag'
10257 pgf77* | pgf90* | pgf95* | pgfortran*)
10258 # Portland Group f77 and f90 compilers
10259 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'
10260 tmp_addflag=' $pic_flag -Mnomain' ;;
10261 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10262 tmp_addflag=' -i_dynamic' ;;
10263 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10264 tmp_addflag=' -i_dynamic -nofor_main' ;;
10265 ifc* | ifort*) # Intel Fortran compiler
10266 tmp_addflag=' -nofor_main' ;;
10267 lf95*) # Lahey Fortran 8.1
10268 whole_archive_flag_spec=
10269 tmp_sharedflag='--shared' ;;
10270 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10271 tmp_sharedflag='-qmkshrobj'
10272 tmp_addflag= ;;
10273 nvcc*) # Cuda Compiler Driver 2.2
10274 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'
10275 compiler_needs_object=yes
10277 esac
10278 case `$CC -V 2>&1 | sed 5q` in
10279 *Sun\ C*) # Sun C 5.9
10280 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'
10281 compiler_needs_object=yes
10282 tmp_sharedflag='-G' ;;
10283 *Sun\ F*) # Sun Fortran 8.3
10284 tmp_sharedflag='-G' ;;
10285 esac
10286 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10288 if test "x$supports_anon_versioning" = xyes; then
10289 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10290 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10291 echo "local: *; };" >> $output_objdir/$libname.ver~
10292 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10295 case $cc_basename in
10296 xlf* | bgf* | bgxlf* | mpixlf*)
10297 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10298 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10299 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10300 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10301 if test "x$supports_anon_versioning" = xyes; then
10302 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10303 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10304 echo "local: *; };" >> $output_objdir/$libname.ver~
10305 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10308 esac
10309 else
10310 ld_shlibs=no
10314 netbsd* | netbsdelf*-gnu)
10315 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10316 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10317 wlarc=
10318 else
10319 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10320 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10324 solaris*)
10325 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10326 ld_shlibs=no
10327 cat <<_LT_EOF 1>&2
10329 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10330 *** create shared libraries on Solaris systems. Therefore, libtool
10331 *** is disabling shared libraries support. We urge you to upgrade GNU
10332 *** binutils to release 2.9.1 or newer. Another option is to modify
10333 *** your PATH or compiler configuration so that the native linker is
10334 *** used, and then restart.
10336 _LT_EOF
10337 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10338 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10339 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10340 else
10341 ld_shlibs=no
10345 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10346 case `$LD -v 2>&1` in
10347 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10348 ld_shlibs=no
10349 cat <<_LT_EOF 1>&2
10351 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10352 *** reliably create shared libraries on SCO systems. Therefore, libtool
10353 *** is disabling shared libraries support. We urge you to upgrade GNU
10354 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10355 *** your PATH or compiler configuration so that the native linker is
10356 *** used, and then restart.
10358 _LT_EOF
10361 # For security reasons, it is highly recommended that you always
10362 # use absolute paths for naming shared libraries, and exclude the
10363 # DT_RUNPATH tag from executables and libraries. But doing so
10364 # requires that you compile everything twice, which is a pain.
10365 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10366 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10367 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10368 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10369 else
10370 ld_shlibs=no
10373 esac
10376 sunos4*)
10377 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10378 wlarc=
10379 hardcode_direct=yes
10380 hardcode_shlibpath_var=no
10384 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10385 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10386 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10387 else
10388 ld_shlibs=no
10391 esac
10393 if test "$ld_shlibs" = no; then
10394 runpath_var=
10395 hardcode_libdir_flag_spec=
10396 export_dynamic_flag_spec=
10397 whole_archive_flag_spec=
10399 else
10400 # PORTME fill in a description of your system's linker (not GNU ld)
10401 case $host_os in
10402 aix3*)
10403 allow_undefined_flag=unsupported
10404 always_export_symbols=yes
10405 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'
10406 # Note: this linker hardcodes the directories in LIBPATH if there
10407 # are no directories specified by -L.
10408 hardcode_minus_L=yes
10409 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10410 # Neither direct hardcoding nor static linking is supported with a
10411 # broken collect2.
10412 hardcode_direct=unsupported
10416 aix[4-9]*)
10417 if test "$host_cpu" = ia64; then
10418 # On IA64, the linker does run time linking by default, so we don't
10419 # have to do anything special.
10420 aix_use_runtimelinking=no
10421 exp_sym_flag='-Bexport'
10422 no_entry_flag=""
10423 else
10424 # If we're using GNU nm, then we don't want the "-C" option.
10425 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10426 # Also, AIX nm treats weak defined symbols like other global
10427 # defined symbols, whereas GNU nm marks them as "W".
10428 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10429 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'
10430 else
10431 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'
10433 aix_use_runtimelinking=no
10435 # Test if we are trying to use run time linking or normal
10436 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10437 # need to do runtime linking.
10438 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10439 for ld_flag in $LDFLAGS; do
10440 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10441 aix_use_runtimelinking=yes
10442 break
10444 done
10446 esac
10448 exp_sym_flag='-bexport'
10449 no_entry_flag='-bnoentry'
10452 # When large executables or shared objects are built, AIX ld can
10453 # have problems creating the table of contents. If linking a library
10454 # or program results in "error TOC overflow" add -mminimal-toc to
10455 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10456 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10458 archive_cmds=''
10459 hardcode_direct=yes
10460 hardcode_direct_absolute=yes
10461 hardcode_libdir_separator=':'
10462 link_all_deplibs=yes
10463 file_list_spec='${wl}-f,'
10465 if test "$GCC" = yes; then
10466 case $host_os in aix4.[012]|aix4.[012].*)
10467 # We only want to do this on AIX 4.2 and lower, the check
10468 # below for broken collect2 doesn't work under 4.3+
10469 collect2name=`${CC} -print-prog-name=collect2`
10470 if test -f "$collect2name" &&
10471 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10472 then
10473 # We have reworked collect2
10475 else
10476 # We have old collect2
10477 hardcode_direct=unsupported
10478 # It fails to find uninstalled libraries when the uninstalled
10479 # path is not listed in the libpath. Setting hardcode_minus_L
10480 # to unsupported forces relinking
10481 hardcode_minus_L=yes
10482 hardcode_libdir_flag_spec='-L$libdir'
10483 hardcode_libdir_separator=
10486 esac
10487 shared_flag='-shared'
10488 if test "$aix_use_runtimelinking" = yes; then
10489 shared_flag="$shared_flag "'${wl}-G'
10491 link_all_deplibs=no
10492 else
10493 # not using gcc
10494 if test "$host_cpu" = ia64; then
10495 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10496 # chokes on -Wl,-G. The following line is correct:
10497 shared_flag='-G'
10498 else
10499 if test "$aix_use_runtimelinking" = yes; then
10500 shared_flag='${wl}-G'
10501 else
10502 shared_flag='${wl}-bM:SRE'
10507 export_dynamic_flag_spec='${wl}-bexpall'
10508 # It seems that -bexpall does not export symbols beginning with
10509 # underscore (_), so it is better to generate a list of symbols to export.
10510 always_export_symbols=yes
10511 if test "$aix_use_runtimelinking" = yes; then
10512 # Warning - without using the other runtime loading flags (-brtl),
10513 # -berok will link without error, but may produce a broken library.
10514 allow_undefined_flag='-berok'
10515 # Determine the default libpath from the value encoded in an
10516 # empty executable.
10517 if test "${lt_cv_aix_libpath+set}" = set; then
10518 aix_libpath=$lt_cv_aix_libpath
10519 else
10520 if ${lt_cv_aix_libpath_+:} false; then :
10521 $as_echo_n "(cached) " >&6
10522 else
10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10524 /* end confdefs.h. */
10527 main ()
10531 return 0;
10533 _ACEOF
10534 if ac_fn_c_try_link "$LINENO"; then :
10536 lt_aix_libpath_sed='
10537 /Import File Strings/,/^$/ {
10538 /^0/ {
10539 s/^0 *\([^ ]*\) *$/\1/
10543 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10544 # Check for a 64-bit object if we didn't find anything.
10545 if test -z "$lt_cv_aix_libpath_"; then
10546 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10549 rm -f core conftest.err conftest.$ac_objext \
10550 conftest$ac_exeext conftest.$ac_ext
10551 if test -z "$lt_cv_aix_libpath_"; then
10552 lt_cv_aix_libpath_="/usr/lib:/lib"
10557 aix_libpath=$lt_cv_aix_libpath_
10560 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10561 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"
10562 else
10563 if test "$host_cpu" = ia64; then
10564 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10565 allow_undefined_flag="-z nodefs"
10566 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"
10567 else
10568 # Determine the default libpath from the value encoded in an
10569 # empty executable.
10570 if test "${lt_cv_aix_libpath+set}" = set; then
10571 aix_libpath=$lt_cv_aix_libpath
10572 else
10573 if ${lt_cv_aix_libpath_+:} false; then :
10574 $as_echo_n "(cached) " >&6
10575 else
10576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10577 /* end confdefs.h. */
10580 main ()
10584 return 0;
10586 _ACEOF
10587 if ac_fn_c_try_link "$LINENO"; then :
10589 lt_aix_libpath_sed='
10590 /Import File Strings/,/^$/ {
10591 /^0/ {
10592 s/^0 *\([^ ]*\) *$/\1/
10596 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10597 # Check for a 64-bit object if we didn't find anything.
10598 if test -z "$lt_cv_aix_libpath_"; then
10599 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10602 rm -f core conftest.err conftest.$ac_objext \
10603 conftest$ac_exeext conftest.$ac_ext
10604 if test -z "$lt_cv_aix_libpath_"; then
10605 lt_cv_aix_libpath_="/usr/lib:/lib"
10610 aix_libpath=$lt_cv_aix_libpath_
10613 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10614 # Warning - without using the other run time loading flags,
10615 # -berok will link without error, but may produce a broken library.
10616 no_undefined_flag=' ${wl}-bernotok'
10617 allow_undefined_flag=' ${wl}-berok'
10618 if test "$with_gnu_ld" = yes; then
10619 # We only use this code for GNU lds that support --whole-archive.
10620 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10621 else
10622 # Exported symbols can be pulled into shared objects from archives
10623 whole_archive_flag_spec='$convenience'
10625 archive_cmds_need_lc=yes
10626 # This is similar to how AIX traditionally builds its shared libraries.
10627 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'
10632 amigaos*)
10633 case $host_cpu in
10634 powerpc)
10635 # see comment about AmigaOS4 .so support
10636 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10637 archive_expsym_cmds=''
10639 m68k)
10640 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)'
10641 hardcode_libdir_flag_spec='-L$libdir'
10642 hardcode_minus_L=yes
10644 esac
10647 bsdi[45]*)
10648 export_dynamic_flag_spec=-rdynamic
10651 cygwin* | mingw* | pw32* | cegcc*)
10652 # When not using gcc, we currently assume that we are using
10653 # Microsoft Visual C++.
10654 # hardcode_libdir_flag_spec is actually meaningless, as there is
10655 # no search path for DLLs.
10656 case $cc_basename in
10657 cl*)
10658 # Native MSVC
10659 hardcode_libdir_flag_spec=' '
10660 allow_undefined_flag=unsupported
10661 always_export_symbols=yes
10662 file_list_spec='@'
10663 # Tell ltmain to make .lib files, not .a files.
10664 libext=lib
10665 # Tell ltmain to make .dll files, not .so files.
10666 shrext_cmds=".dll"
10667 # FIXME: Setting linknames here is a bad hack.
10668 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10669 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10670 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10671 else
10672 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10674 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10675 linknames='
10676 # The linker will not automatically build a static lib if we build a DLL.
10677 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10678 enable_shared_with_static_runtimes=yes
10679 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10680 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10681 # Don't use ranlib
10682 old_postinstall_cmds='chmod 644 $oldlib'
10683 postlink_cmds='lt_outputfile="@OUTPUT@"~
10684 lt_tool_outputfile="@TOOL_OUTPUT@"~
10685 case $lt_outputfile in
10686 *.exe|*.EXE) ;;
10688 lt_outputfile="$lt_outputfile.exe"
10689 lt_tool_outputfile="$lt_tool_outputfile.exe"
10691 esac~
10692 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10693 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10694 $RM "$lt_outputfile.manifest";
10698 # Assume MSVC wrapper
10699 hardcode_libdir_flag_spec=' '
10700 allow_undefined_flag=unsupported
10701 # Tell ltmain to make .lib files, not .a files.
10702 libext=lib
10703 # Tell ltmain to make .dll files, not .so files.
10704 shrext_cmds=".dll"
10705 # FIXME: Setting linknames here is a bad hack.
10706 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10707 # The linker will automatically build a .lib file if we build a DLL.
10708 old_archive_from_new_cmds='true'
10709 # FIXME: Should let the user specify the lib program.
10710 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10711 enable_shared_with_static_runtimes=yes
10713 esac
10716 darwin* | rhapsody*)
10719 archive_cmds_need_lc=no
10720 hardcode_direct=no
10721 hardcode_automatic=yes
10722 hardcode_shlibpath_var=unsupported
10723 if test "$lt_cv_ld_force_load" = "yes"; then
10724 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\"`'
10726 else
10727 whole_archive_flag_spec=''
10729 link_all_deplibs=yes
10730 allow_undefined_flag="$_lt_dar_allow_undefined"
10731 case $cc_basename in
10732 ifort*) _lt_dar_can_shared=yes ;;
10733 *) _lt_dar_can_shared=$GCC ;;
10734 esac
10735 if test "$_lt_dar_can_shared" = "yes"; then
10736 output_verbose_link_cmd=func_echo_all
10737 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10738 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10739 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}"
10740 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}"
10742 else
10743 ld_shlibs=no
10748 dgux*)
10749 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10750 hardcode_libdir_flag_spec='-L$libdir'
10751 hardcode_shlibpath_var=no
10754 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10755 # support. Future versions do this automatically, but an explicit c++rt0.o
10756 # does not break anything, and helps significantly (at the cost of a little
10757 # extra space).
10758 freebsd2.2*)
10759 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10760 hardcode_libdir_flag_spec='-R$libdir'
10761 hardcode_direct=yes
10762 hardcode_shlibpath_var=no
10765 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10766 freebsd2.*)
10767 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10768 hardcode_direct=yes
10769 hardcode_minus_L=yes
10770 hardcode_shlibpath_var=no
10773 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10774 freebsd* | dragonfly*)
10775 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10776 hardcode_libdir_flag_spec='-R$libdir'
10777 hardcode_direct=yes
10778 hardcode_shlibpath_var=no
10781 hpux9*)
10782 if test "$GCC" = yes; then
10783 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'
10784 else
10785 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'
10787 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10788 hardcode_libdir_separator=:
10789 hardcode_direct=yes
10791 # hardcode_minus_L: Not really in the search PATH,
10792 # but as the default location of the library.
10793 hardcode_minus_L=yes
10794 export_dynamic_flag_spec='${wl}-E'
10797 hpux10*)
10798 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10799 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10800 else
10801 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10803 if test "$with_gnu_ld" = no; then
10804 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10805 hardcode_libdir_separator=:
10806 hardcode_direct=yes
10807 hardcode_direct_absolute=yes
10808 export_dynamic_flag_spec='${wl}-E'
10809 # hardcode_minus_L: Not really in the search PATH,
10810 # but as the default location of the library.
10811 hardcode_minus_L=yes
10815 hpux11*)
10816 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10817 case $host_cpu in
10818 hppa*64*)
10819 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10821 ia64*)
10822 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10825 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10827 esac
10828 else
10829 case $host_cpu in
10830 hppa*64*)
10831 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10833 ia64*)
10834 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10838 # Older versions of the 11.00 compiler do not understand -b yet
10839 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10841 $as_echo_n "checking if $CC understands -b... " >&6; }
10842 if ${lt_cv_prog_compiler__b+:} false; then :
10843 $as_echo_n "(cached) " >&6
10844 else
10845 lt_cv_prog_compiler__b=no
10846 save_LDFLAGS="$LDFLAGS"
10847 LDFLAGS="$LDFLAGS -b"
10848 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10849 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10850 # The linker can only warn and ignore the option if not recognized
10851 # So say no if there are warnings
10852 if test -s conftest.err; then
10853 # Append any errors to the config.log.
10854 cat conftest.err 1>&5
10855 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10857 if diff conftest.exp conftest.er2 >/dev/null; then
10858 lt_cv_prog_compiler__b=yes
10860 else
10861 lt_cv_prog_compiler__b=yes
10864 $RM -r conftest*
10865 LDFLAGS="$save_LDFLAGS"
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10869 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10871 if test x"$lt_cv_prog_compiler__b" = xyes; then
10872 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10873 else
10874 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10878 esac
10880 if test "$with_gnu_ld" = no; then
10881 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10882 hardcode_libdir_separator=:
10884 case $host_cpu in
10885 hppa*64*|ia64*)
10886 hardcode_direct=no
10887 hardcode_shlibpath_var=no
10890 hardcode_direct=yes
10891 hardcode_direct_absolute=yes
10892 export_dynamic_flag_spec='${wl}-E'
10894 # hardcode_minus_L: Not really in the search PATH,
10895 # but as the default location of the library.
10896 hardcode_minus_L=yes
10898 esac
10902 irix5* | irix6* | nonstopux*)
10903 if test "$GCC" = yes; then
10904 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'
10905 # Try to use the -exported_symbol ld option, if it does not
10906 # work, assume that -exports_file does not work either and
10907 # implicitly export all symbols.
10908 # This should be the same for all languages, so no per-tag cache variable.
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10910 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10911 if ${lt_cv_irix_exported_symbol+:} false; then :
10912 $as_echo_n "(cached) " >&6
10913 else
10914 save_LDFLAGS="$LDFLAGS"
10915 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10917 /* end confdefs.h. */
10918 int foo (void) { return 0; }
10919 _ACEOF
10920 if ac_fn_c_try_link "$LINENO"; then :
10921 lt_cv_irix_exported_symbol=yes
10922 else
10923 lt_cv_irix_exported_symbol=no
10925 rm -f core conftest.err conftest.$ac_objext \
10926 conftest$ac_exeext conftest.$ac_ext
10927 LDFLAGS="$save_LDFLAGS"
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10930 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10931 if test "$lt_cv_irix_exported_symbol" = yes; then
10932 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'
10934 else
10935 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'
10936 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'
10938 archive_cmds_need_lc='no'
10939 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10940 hardcode_libdir_separator=:
10941 inherit_rpath=yes
10942 link_all_deplibs=yes
10945 netbsd* | netbsdelf*-gnu)
10946 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10947 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10948 else
10949 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10951 hardcode_libdir_flag_spec='-R$libdir'
10952 hardcode_direct=yes
10953 hardcode_shlibpath_var=no
10956 newsos6)
10957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10958 hardcode_direct=yes
10959 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10960 hardcode_libdir_separator=:
10961 hardcode_shlibpath_var=no
10964 *nto* | *qnx*)
10967 openbsd*)
10968 if test -f /usr/libexec/ld.so; then
10969 hardcode_direct=yes
10970 hardcode_shlibpath_var=no
10971 hardcode_direct_absolute=yes
10972 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10973 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10974 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10975 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10976 export_dynamic_flag_spec='${wl}-E'
10977 else
10978 case $host_os in
10979 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10980 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10981 hardcode_libdir_flag_spec='-R$libdir'
10984 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10985 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10987 esac
10989 else
10990 ld_shlibs=no
10994 os2*)
10995 hardcode_libdir_flag_spec='-L$libdir'
10996 hardcode_minus_L=yes
10997 allow_undefined_flag=unsupported
10998 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'
10999 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11002 osf3*)
11003 if test "$GCC" = yes; then
11004 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11005 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'
11006 else
11007 allow_undefined_flag=' -expect_unresolved \*'
11008 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'
11010 archive_cmds_need_lc='no'
11011 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11012 hardcode_libdir_separator=:
11015 osf4* | osf5*) # as osf3* with the addition of -msym flag
11016 if test "$GCC" = yes; then
11017 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11018 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'
11019 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11020 else
11021 allow_undefined_flag=' -expect_unresolved \*'
11022 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'
11023 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~
11024 $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'
11026 # Both c and cxx compiler support -rpath directly
11027 hardcode_libdir_flag_spec='-rpath $libdir'
11029 archive_cmds_need_lc='no'
11030 hardcode_libdir_separator=:
11033 solaris*)
11034 no_undefined_flag=' -z defs'
11035 if test "$GCC" = yes; then
11036 wlarc='${wl}'
11037 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11038 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11039 $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'
11040 else
11041 case `$CC -V 2>&1` in
11042 *"Compilers 5.0"*)
11043 wlarc=''
11044 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11045 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11046 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11049 wlarc='${wl}'
11050 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11051 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11052 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11054 esac
11056 hardcode_libdir_flag_spec='-R$libdir'
11057 hardcode_shlibpath_var=no
11058 case $host_os in
11059 solaris2.[0-5] | solaris2.[0-5].*) ;;
11061 # The compiler driver will combine and reorder linker options,
11062 # but understands `-z linker_flag'. GCC discards it without `$wl',
11063 # but is careful enough not to reorder.
11064 # Supported since Solaris 2.6 (maybe 2.5.1?)
11065 if test "$GCC" = yes; then
11066 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11067 else
11068 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11071 esac
11072 link_all_deplibs=yes
11075 sunos4*)
11076 if test "x$host_vendor" = xsequent; then
11077 # Use $CC to link under sequent, because it throws in some extra .o
11078 # files that make .init and .fini sections work.
11079 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11080 else
11081 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11083 hardcode_libdir_flag_spec='-L$libdir'
11084 hardcode_direct=yes
11085 hardcode_minus_L=yes
11086 hardcode_shlibpath_var=no
11089 sysv4)
11090 case $host_vendor in
11091 sni)
11092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11093 hardcode_direct=yes # is this really true???
11095 siemens)
11096 ## LD is ld it makes a PLAMLIB
11097 ## CC just makes a GrossModule.
11098 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11099 reload_cmds='$CC -r -o $output$reload_objs'
11100 hardcode_direct=no
11102 motorola)
11103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11104 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11106 esac
11107 runpath_var='LD_RUN_PATH'
11108 hardcode_shlibpath_var=no
11111 sysv4.3*)
11112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11113 hardcode_shlibpath_var=no
11114 export_dynamic_flag_spec='-Bexport'
11117 sysv4*MP*)
11118 if test -d /usr/nec; then
11119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11120 hardcode_shlibpath_var=no
11121 runpath_var=LD_RUN_PATH
11122 hardcode_runpath_var=yes
11123 ld_shlibs=yes
11127 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11128 no_undefined_flag='${wl}-z,text'
11129 archive_cmds_need_lc=no
11130 hardcode_shlibpath_var=no
11131 runpath_var='LD_RUN_PATH'
11133 if test "$GCC" = yes; then
11134 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11135 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11136 else
11137 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11138 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11142 sysv5* | sco3.2v5* | sco5v6*)
11143 # Note: We can NOT use -z defs as we might desire, because we do not
11144 # link with -lc, and that would cause any symbols used from libc to
11145 # always be unresolved, which means just about no library would
11146 # ever link correctly. If we're not using GNU ld we use -z text
11147 # though, which does catch some bad symbols but isn't as heavy-handed
11148 # as -z defs.
11149 no_undefined_flag='${wl}-z,text'
11150 allow_undefined_flag='${wl}-z,nodefs'
11151 archive_cmds_need_lc=no
11152 hardcode_shlibpath_var=no
11153 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11154 hardcode_libdir_separator=':'
11155 link_all_deplibs=yes
11156 export_dynamic_flag_spec='${wl}-Bexport'
11157 runpath_var='LD_RUN_PATH'
11159 if test "$GCC" = yes; then
11160 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11161 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11162 else
11163 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11164 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11168 uts4*)
11169 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11170 hardcode_libdir_flag_spec='-L$libdir'
11171 hardcode_shlibpath_var=no
11175 ld_shlibs=no
11177 esac
11179 if test x$host_vendor = xsni; then
11180 case $host in
11181 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11182 export_dynamic_flag_spec='${wl}-Blargedynsym'
11184 esac
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11189 $as_echo "$ld_shlibs" >&6; }
11190 test "$ld_shlibs" = no && can_build_shared=no
11192 with_gnu_ld=$with_gnu_ld
11209 # Do we need to explicitly link libc?
11211 case "x$archive_cmds_need_lc" in
11212 x|xyes)
11213 # Assume -lc should be added
11214 archive_cmds_need_lc=yes
11216 if test "$enable_shared" = yes && test "$GCC" = yes; then
11217 case $archive_cmds in
11218 *'~'*)
11219 # FIXME: we may have to deal with multi-command sequences.
11221 '$CC '*)
11222 # Test whether the compiler implicitly links with -lc since on some
11223 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11224 # to ld, don't add -lc before -lgcc.
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11226 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11227 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11228 $as_echo_n "(cached) " >&6
11229 else
11230 $RM conftest*
11231 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11234 (eval $ac_compile) 2>&5
11235 ac_status=$?
11236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11237 test $ac_status = 0; } 2>conftest.err; then
11238 soname=conftest
11239 lib=conftest
11240 libobjs=conftest.$ac_objext
11241 deplibs=
11242 wl=$lt_prog_compiler_wl
11243 pic_flag=$lt_prog_compiler_pic
11244 compiler_flags=-v
11245 linker_flags=-v
11246 verstring=
11247 output_objdir=.
11248 libname=conftest
11249 lt_save_allow_undefined_flag=$allow_undefined_flag
11250 allow_undefined_flag=
11251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11252 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11253 ac_status=$?
11254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11255 test $ac_status = 0; }
11256 then
11257 lt_cv_archive_cmds_need_lc=no
11258 else
11259 lt_cv_archive_cmds_need_lc=yes
11261 allow_undefined_flag=$lt_save_allow_undefined_flag
11262 else
11263 cat conftest.err 1>&5
11265 $RM conftest*
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11269 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11270 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11272 esac
11275 esac
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11429 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11431 if test "$GCC" = yes; then
11432 case $host_os in
11433 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11434 *) lt_awk_arg="/^libraries:/" ;;
11435 esac
11436 case $host_os in
11437 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11438 *) lt_sed_strip_eq="s,=/,/,g" ;;
11439 esac
11440 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11441 case $lt_search_path_spec in
11442 *\;*)
11443 # if the path contains ";" then we assume it to be the separator
11444 # otherwise default to the standard path separator (i.e. ":") - it is
11445 # assumed that no part of a normal pathname contains ";" but that should
11446 # okay in the real world where ";" in dirpaths is itself problematic.
11447 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11450 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11452 esac
11453 # Ok, now we have the path, separated by spaces, we can step through it
11454 # and add multilib dir if necessary.
11455 lt_tmp_lt_search_path_spec=
11456 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11457 for lt_sys_path in $lt_search_path_spec; do
11458 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11459 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11460 else
11461 test -d "$lt_sys_path" && \
11462 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11464 done
11465 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11466 BEGIN {RS=" "; FS="/|\n";} {
11467 lt_foo="";
11468 lt_count=0;
11469 for (lt_i = NF; lt_i > 0; lt_i--) {
11470 if ($lt_i != "" && $lt_i != ".") {
11471 if ($lt_i == "..") {
11472 lt_count++;
11473 } else {
11474 if (lt_count == 0) {
11475 lt_foo="/" $lt_i lt_foo;
11476 } else {
11477 lt_count--;
11482 if (lt_foo != "") { lt_freq[lt_foo]++; }
11483 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11485 # AWK program above erroneously prepends '/' to C:/dos/paths
11486 # for these hosts.
11487 case $host_os in
11488 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11489 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11490 esac
11491 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11492 else
11493 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11495 library_names_spec=
11496 libname_spec='lib$name'
11497 soname_spec=
11498 shrext_cmds=".so"
11499 postinstall_cmds=
11500 postuninstall_cmds=
11501 finish_cmds=
11502 finish_eval=
11503 shlibpath_var=
11504 shlibpath_overrides_runpath=unknown
11505 version_type=none
11506 dynamic_linker="$host_os ld.so"
11507 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11508 need_lib_prefix=unknown
11509 hardcode_into_libs=no
11511 # when you set need_version to no, make sure it does not cause -set_version
11512 # flags to be left without arguments
11513 need_version=unknown
11515 case $host_os in
11516 aix3*)
11517 version_type=linux # correct to gnu/linux during the next big refactor
11518 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11519 shlibpath_var=LIBPATH
11521 # AIX 3 has no versioning support, so we append a major version to the name.
11522 soname_spec='${libname}${release}${shared_ext}$major'
11525 aix[4-9]*)
11526 version_type=linux # correct to gnu/linux during the next big refactor
11527 need_lib_prefix=no
11528 need_version=no
11529 hardcode_into_libs=yes
11530 if test "$host_cpu" = ia64; then
11531 # AIX 5 supports IA64
11532 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11533 shlibpath_var=LD_LIBRARY_PATH
11534 else
11535 # With GCC up to 2.95.x, collect2 would create an import file
11536 # for dependence libraries. The import file would start with
11537 # the line `#! .'. This would cause the generated library to
11538 # depend on `.', always an invalid library. This was fixed in
11539 # development snapshots of GCC prior to 3.0.
11540 case $host_os in
11541 aix4 | aix4.[01] | aix4.[01].*)
11542 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11543 echo ' yes '
11544 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11546 else
11547 can_build_shared=no
11550 esac
11551 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11552 # soname into executable. Probably we can add versioning support to
11553 # collect2, so additional links can be useful in future.
11554 if test "$aix_use_runtimelinking" = yes; then
11555 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11556 # instead of lib<name>.a to let people know that these are not
11557 # typical AIX shared libraries.
11558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11559 else
11560 # We preserve .a as extension for shared libraries through AIX4.2
11561 # and later when we are not doing run time linking.
11562 library_names_spec='${libname}${release}.a $libname.a'
11563 soname_spec='${libname}${release}${shared_ext}$major'
11565 shlibpath_var=LIBPATH
11569 amigaos*)
11570 case $host_cpu in
11571 powerpc)
11572 # Since July 2007 AmigaOS4 officially supports .so libraries.
11573 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11576 m68k)
11577 library_names_spec='$libname.ixlibrary $libname.a'
11578 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11579 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'
11581 esac
11584 beos*)
11585 library_names_spec='${libname}${shared_ext}'
11586 dynamic_linker="$host_os ld.so"
11587 shlibpath_var=LIBRARY_PATH
11590 bsdi[45]*)
11591 version_type=linux # correct to gnu/linux during the next big refactor
11592 need_version=no
11593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11594 soname_spec='${libname}${release}${shared_ext}$major'
11595 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11596 shlibpath_var=LD_LIBRARY_PATH
11597 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11598 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11599 # the default ld.so.conf also contains /usr/contrib/lib and
11600 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11601 # libtool to hard-code these into programs
11604 cygwin* | mingw* | pw32* | cegcc*)
11605 version_type=windows
11606 shrext_cmds=".dll"
11607 need_version=no
11608 need_lib_prefix=no
11610 case $GCC,$cc_basename in
11611 yes,*)
11612 # gcc
11613 library_names_spec='$libname.dll.a'
11614 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11615 postinstall_cmds='base_file=`basename \${file}`~
11616 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11617 dldir=$destdir/`dirname \$dlpath`~
11618 test -d \$dldir || mkdir -p \$dldir~
11619 $install_prog $dir/$dlname \$dldir/$dlname~
11620 chmod a+x \$dldir/$dlname~
11621 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11622 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11624 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11625 dlpath=$dir/\$dldll~
11626 $RM \$dlpath'
11627 shlibpath_overrides_runpath=yes
11629 case $host_os in
11630 cygwin*)
11631 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11632 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11634 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11636 mingw* | cegcc*)
11637 # MinGW DLLs use traditional 'lib' prefix
11638 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11640 pw32*)
11641 # pw32 DLLs use 'pw' prefix rather than 'lib'
11642 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11644 esac
11645 dynamic_linker='Win32 ld.exe'
11648 *,cl*)
11649 # Native MSVC
11650 libname_spec='$name'
11651 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11652 library_names_spec='${libname}.dll.lib'
11654 case $build_os in
11655 mingw*)
11656 sys_lib_search_path_spec=
11657 lt_save_ifs=$IFS
11658 IFS=';'
11659 for lt_path in $LIB
11661 IFS=$lt_save_ifs
11662 # Let DOS variable expansion print the short 8.3 style file name.
11663 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11664 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11665 done
11666 IFS=$lt_save_ifs
11667 # Convert to MSYS style.
11668 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11670 cygwin*)
11671 # Convert to unix form, then to dos form, then back to unix form
11672 # but this time dos style (no spaces!) so that the unix form looks
11673 # like /cygdrive/c/PROGRA~1:/cygdr...
11674 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11675 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11676 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11679 sys_lib_search_path_spec="$LIB"
11680 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11681 # It is most probably a Windows format PATH.
11682 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11683 else
11684 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11686 # FIXME: find the short name or the path components, as spaces are
11687 # common. (e.g. "Program Files" -> "PROGRA~1")
11689 esac
11691 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11692 postinstall_cmds='base_file=`basename \${file}`~
11693 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11694 dldir=$destdir/`dirname \$dlpath`~
11695 test -d \$dldir || mkdir -p \$dldir~
11696 $install_prog $dir/$dlname \$dldir/$dlname'
11697 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11698 dlpath=$dir/\$dldll~
11699 $RM \$dlpath'
11700 shlibpath_overrides_runpath=yes
11701 dynamic_linker='Win32 link.exe'
11705 # Assume MSVC wrapper
11706 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11707 dynamic_linker='Win32 ld.exe'
11709 esac
11710 # FIXME: first we should search . and the directory the executable is in
11711 shlibpath_var=PATH
11714 darwin* | rhapsody*)
11715 dynamic_linker="$host_os dyld"
11716 version_type=darwin
11717 need_lib_prefix=no
11718 need_version=no
11719 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11720 soname_spec='${libname}${release}${major}$shared_ext'
11721 shlibpath_overrides_runpath=yes
11722 shlibpath_var=DYLD_LIBRARY_PATH
11723 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11725 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11726 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11729 dgux*)
11730 version_type=linux # correct to gnu/linux during the next big refactor
11731 need_lib_prefix=no
11732 need_version=no
11733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11734 soname_spec='${libname}${release}${shared_ext}$major'
11735 shlibpath_var=LD_LIBRARY_PATH
11738 freebsd* | dragonfly*)
11739 # DragonFly does not have aout. When/if they implement a new
11740 # versioning mechanism, adjust this.
11741 if test -x /usr/bin/objformat; then
11742 objformat=`/usr/bin/objformat`
11743 else
11744 case $host_os in
11745 freebsd[23].*) objformat=aout ;;
11746 *) objformat=elf ;;
11747 esac
11749 version_type=freebsd-$objformat
11750 case $version_type in
11751 freebsd-elf*)
11752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11753 need_version=no
11754 need_lib_prefix=no
11756 freebsd-*)
11757 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11758 need_version=yes
11760 esac
11761 shlibpath_var=LD_LIBRARY_PATH
11762 case $host_os in
11763 freebsd2.*)
11764 shlibpath_overrides_runpath=yes
11766 freebsd3.[01]* | freebsdelf3.[01]*)
11767 shlibpath_overrides_runpath=yes
11768 hardcode_into_libs=yes
11770 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11771 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11772 shlibpath_overrides_runpath=no
11773 hardcode_into_libs=yes
11775 *) # from 4.6 on, and DragonFly
11776 shlibpath_overrides_runpath=yes
11777 hardcode_into_libs=yes
11779 esac
11782 haiku*)
11783 version_type=linux # correct to gnu/linux during the next big refactor
11784 need_lib_prefix=no
11785 need_version=no
11786 dynamic_linker="$host_os runtime_loader"
11787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11788 soname_spec='${libname}${release}${shared_ext}$major'
11789 shlibpath_var=LIBRARY_PATH
11790 shlibpath_overrides_runpath=yes
11791 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11792 hardcode_into_libs=yes
11795 hpux9* | hpux10* | hpux11*)
11796 # Give a soname corresponding to the major version so that dld.sl refuses to
11797 # link against other versions.
11798 version_type=sunos
11799 need_lib_prefix=no
11800 need_version=no
11801 case $host_cpu in
11802 ia64*)
11803 shrext_cmds='.so'
11804 hardcode_into_libs=yes
11805 dynamic_linker="$host_os dld.so"
11806 shlibpath_var=LD_LIBRARY_PATH
11807 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11809 soname_spec='${libname}${release}${shared_ext}$major'
11810 if test "X$HPUX_IA64_MODE" = X32; then
11811 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11812 else
11813 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11815 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11817 hppa*64*)
11818 shrext_cmds='.sl'
11819 hardcode_into_libs=yes
11820 dynamic_linker="$host_os dld.sl"
11821 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11822 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11824 soname_spec='${libname}${release}${shared_ext}$major'
11825 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11826 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11829 shrext_cmds='.sl'
11830 dynamic_linker="$host_os dld.sl"
11831 shlibpath_var=SHLIB_PATH
11832 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11834 soname_spec='${libname}${release}${shared_ext}$major'
11836 esac
11837 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11838 postinstall_cmds='chmod 555 $lib'
11839 # or fails outright, so override atomically:
11840 install_override_mode=555
11843 interix[3-9]*)
11844 version_type=linux # correct to gnu/linux during the next big refactor
11845 need_lib_prefix=no
11846 need_version=no
11847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11848 soname_spec='${libname}${release}${shared_ext}$major'
11849 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11850 shlibpath_var=LD_LIBRARY_PATH
11851 shlibpath_overrides_runpath=no
11852 hardcode_into_libs=yes
11855 irix5* | irix6* | nonstopux*)
11856 case $host_os in
11857 nonstopux*) version_type=nonstopux ;;
11859 if test "$lt_cv_prog_gnu_ld" = yes; then
11860 version_type=linux # correct to gnu/linux during the next big refactor
11861 else
11862 version_type=irix
11863 fi ;;
11864 esac
11865 need_lib_prefix=no
11866 need_version=no
11867 soname_spec='${libname}${release}${shared_ext}$major'
11868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11869 case $host_os in
11870 irix5* | nonstopux*)
11871 libsuff= shlibsuff=
11874 case $LD in # libtool.m4 will add one of these switches to LD
11875 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11876 libsuff= shlibsuff= libmagic=32-bit;;
11877 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11878 libsuff=32 shlibsuff=N32 libmagic=N32;;
11879 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11880 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11881 *) libsuff= shlibsuff= libmagic=never-match;;
11882 esac
11884 esac
11885 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11886 shlibpath_overrides_runpath=no
11887 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11888 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11889 hardcode_into_libs=yes
11892 # No shared lib support for Linux oldld, aout, or coff.
11893 linux*oldld* | linux*aout* | linux*coff*)
11894 dynamic_linker=no
11897 # This must be glibc/ELF.
11898 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11899 version_type=linux # correct to gnu/linux during the next big refactor
11900 need_lib_prefix=no
11901 need_version=no
11902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11903 soname_spec='${libname}${release}${shared_ext}$major'
11904 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11905 shlibpath_var=LD_LIBRARY_PATH
11906 shlibpath_overrides_runpath=no
11908 # Some binutils ld are patched to set DT_RUNPATH
11909 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11910 $as_echo_n "(cached) " >&6
11911 else
11912 lt_cv_shlibpath_overrides_runpath=no
11913 save_LDFLAGS=$LDFLAGS
11914 save_libdir=$libdir
11915 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11916 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h. */
11921 main ()
11925 return 0;
11927 _ACEOF
11928 if ac_fn_c_try_link "$LINENO"; then :
11929 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11930 lt_cv_shlibpath_overrides_runpath=yes
11933 rm -f core conftest.err conftest.$ac_objext \
11934 conftest$ac_exeext conftest.$ac_ext
11935 LDFLAGS=$save_LDFLAGS
11936 libdir=$save_libdir
11940 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11942 # This implies no fast_install, which is unacceptable.
11943 # Some rework will be needed to allow for fast_install
11944 # before this can be enabled.
11945 hardcode_into_libs=yes
11947 # Append ld.so.conf contents to the search path
11948 if test -f /etc/ld.so.conf; then
11949 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' ' '`
11950 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11953 # We used to test for /lib/ld.so.1 and disable shared libraries on
11954 # powerpc, because MkLinux only supported shared libraries with the
11955 # GNU dynamic linker. Since this was broken with cross compilers,
11956 # most powerpc-linux boxes support dynamic linking these days and
11957 # people can always --disable-shared, the test was removed, and we
11958 # assume the GNU/Linux dynamic linker is in use.
11959 dynamic_linker='GNU/Linux ld.so'
11962 netbsdelf*-gnu)
11963 version_type=linux
11964 need_lib_prefix=no
11965 need_version=no
11966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11967 soname_spec='${libname}${release}${shared_ext}$major'
11968 shlibpath_var=LD_LIBRARY_PATH
11969 shlibpath_overrides_runpath=no
11970 hardcode_into_libs=yes
11971 dynamic_linker='NetBSD ld.elf_so'
11974 netbsd*)
11975 version_type=sunos
11976 need_lib_prefix=no
11977 need_version=no
11978 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11980 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11981 dynamic_linker='NetBSD (a.out) ld.so'
11982 else
11983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11984 soname_spec='${libname}${release}${shared_ext}$major'
11985 dynamic_linker='NetBSD ld.elf_so'
11987 shlibpath_var=LD_LIBRARY_PATH
11988 shlibpath_overrides_runpath=yes
11989 hardcode_into_libs=yes
11992 newsos6)
11993 version_type=linux # correct to gnu/linux during the next big refactor
11994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11995 shlibpath_var=LD_LIBRARY_PATH
11996 shlibpath_overrides_runpath=yes
11999 *nto* | *qnx*)
12000 version_type=qnx
12001 need_lib_prefix=no
12002 need_version=no
12003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12004 soname_spec='${libname}${release}${shared_ext}$major'
12005 shlibpath_var=LD_LIBRARY_PATH
12006 shlibpath_overrides_runpath=no
12007 hardcode_into_libs=yes
12008 dynamic_linker='ldqnx.so'
12011 openbsd*)
12012 version_type=sunos
12013 sys_lib_dlsearch_path_spec="/usr/lib"
12014 need_lib_prefix=no
12015 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12016 case $host_os in
12017 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12018 *) need_version=no ;;
12019 esac
12020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12022 shlibpath_var=LD_LIBRARY_PATH
12023 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12024 case $host_os in
12025 openbsd2.[89] | openbsd2.[89].*)
12026 shlibpath_overrides_runpath=no
12029 shlibpath_overrides_runpath=yes
12031 esac
12032 else
12033 shlibpath_overrides_runpath=yes
12037 os2*)
12038 libname_spec='$name'
12039 shrext_cmds=".dll"
12040 need_lib_prefix=no
12041 library_names_spec='$libname${shared_ext} $libname.a'
12042 dynamic_linker='OS/2 ld.exe'
12043 shlibpath_var=LIBPATH
12046 osf3* | osf4* | osf5*)
12047 version_type=osf
12048 need_lib_prefix=no
12049 need_version=no
12050 soname_spec='${libname}${release}${shared_ext}$major'
12051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12052 shlibpath_var=LD_LIBRARY_PATH
12053 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12054 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12057 rdos*)
12058 dynamic_linker=no
12061 solaris*)
12062 version_type=linux # correct to gnu/linux during the next big refactor
12063 need_lib_prefix=no
12064 need_version=no
12065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12066 soname_spec='${libname}${release}${shared_ext}$major'
12067 shlibpath_var=LD_LIBRARY_PATH
12068 shlibpath_overrides_runpath=yes
12069 hardcode_into_libs=yes
12070 # ldd complains unless libraries are executable
12071 postinstall_cmds='chmod +x $lib'
12074 sunos4*)
12075 version_type=sunos
12076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12077 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12078 shlibpath_var=LD_LIBRARY_PATH
12079 shlibpath_overrides_runpath=yes
12080 if test "$with_gnu_ld" = yes; then
12081 need_lib_prefix=no
12083 need_version=yes
12086 sysv4 | sysv4.3*)
12087 version_type=linux # correct to gnu/linux during the next big refactor
12088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12089 soname_spec='${libname}${release}${shared_ext}$major'
12090 shlibpath_var=LD_LIBRARY_PATH
12091 case $host_vendor in
12092 sni)
12093 shlibpath_overrides_runpath=no
12094 need_lib_prefix=no
12095 runpath_var=LD_RUN_PATH
12097 siemens)
12098 need_lib_prefix=no
12100 motorola)
12101 need_lib_prefix=no
12102 need_version=no
12103 shlibpath_overrides_runpath=no
12104 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12106 esac
12109 sysv4*MP*)
12110 if test -d /usr/nec ;then
12111 version_type=linux # correct to gnu/linux during the next big refactor
12112 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12113 soname_spec='$libname${shared_ext}.$major'
12114 shlibpath_var=LD_LIBRARY_PATH
12118 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12119 version_type=freebsd-elf
12120 need_lib_prefix=no
12121 need_version=no
12122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12123 soname_spec='${libname}${release}${shared_ext}$major'
12124 shlibpath_var=LD_LIBRARY_PATH
12125 shlibpath_overrides_runpath=yes
12126 hardcode_into_libs=yes
12127 if test "$with_gnu_ld" = yes; then
12128 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12129 else
12130 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12131 case $host_os in
12132 sco3.2v5*)
12133 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12135 esac
12137 sys_lib_dlsearch_path_spec='/usr/lib'
12140 tpf*)
12141 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12142 version_type=linux # correct to gnu/linux during the next big refactor
12143 need_lib_prefix=no
12144 need_version=no
12145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12146 shlibpath_var=LD_LIBRARY_PATH
12147 shlibpath_overrides_runpath=no
12148 hardcode_into_libs=yes
12151 uts4*)
12152 version_type=linux # correct to gnu/linux during the next big refactor
12153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12154 soname_spec='${libname}${release}${shared_ext}$major'
12155 shlibpath_var=LD_LIBRARY_PATH
12159 dynamic_linker=no
12161 esac
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12163 $as_echo "$dynamic_linker" >&6; }
12164 test "$dynamic_linker" = no && can_build_shared=no
12166 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12167 if test "$GCC" = yes; then
12168 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12171 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12172 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12174 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12175 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12270 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12271 hardcode_action=
12272 if test -n "$hardcode_libdir_flag_spec" ||
12273 test -n "$runpath_var" ||
12274 test "X$hardcode_automatic" = "Xyes" ; then
12276 # We can hardcode non-existent directories.
12277 if test "$hardcode_direct" != no &&
12278 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12279 # have to relink, otherwise we might link with an installed library
12280 # when we should be linking with a yet-to-be-installed one
12281 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12282 test "$hardcode_minus_L" != no; then
12283 # Linking always hardcodes the temporary library directory.
12284 hardcode_action=relink
12285 else
12286 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12287 hardcode_action=immediate
12289 else
12290 # We cannot hardcode anything, or else we can only hardcode existing
12291 # directories.
12292 hardcode_action=unsupported
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12295 $as_echo "$hardcode_action" >&6; }
12297 if test "$hardcode_action" = relink ||
12298 test "$inherit_rpath" = yes; then
12299 # Fast installation is not supported
12300 enable_fast_install=no
12301 elif test "$shlibpath_overrides_runpath" = yes ||
12302 test "$enable_shared" = no; then
12303 # Fast installation is not necessary
12304 enable_fast_install=needless
12312 if test "x$enable_dlopen" != xyes; then
12313 enable_dlopen=unknown
12314 enable_dlopen_self=unknown
12315 enable_dlopen_self_static=unknown
12316 else
12317 lt_cv_dlopen=no
12318 lt_cv_dlopen_libs=
12320 case $host_os in
12321 beos*)
12322 lt_cv_dlopen="load_add_on"
12323 lt_cv_dlopen_libs=
12324 lt_cv_dlopen_self=yes
12327 mingw* | pw32* | cegcc*)
12328 lt_cv_dlopen="LoadLibrary"
12329 lt_cv_dlopen_libs=
12332 cygwin*)
12333 lt_cv_dlopen="dlopen"
12334 lt_cv_dlopen_libs=
12337 darwin*)
12338 # if libdl is installed we need to link against it
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12340 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12341 if ${ac_cv_lib_dl_dlopen+:} false; then :
12342 $as_echo_n "(cached) " >&6
12343 else
12344 ac_check_lib_save_LIBS=$LIBS
12345 LIBS="-ldl $LIBS"
12346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12347 /* end confdefs.h. */
12349 /* Override any GCC internal prototype to avoid an error.
12350 Use char because int might match the return type of a GCC
12351 builtin and then its argument prototype would still apply. */
12352 #ifdef __cplusplus
12353 extern "C"
12354 #endif
12355 char dlopen ();
12357 main ()
12359 return dlopen ();
12361 return 0;
12363 _ACEOF
12364 if ac_fn_c_try_link "$LINENO"; then :
12365 ac_cv_lib_dl_dlopen=yes
12366 else
12367 ac_cv_lib_dl_dlopen=no
12369 rm -f core conftest.err conftest.$ac_objext \
12370 conftest$ac_exeext conftest.$ac_ext
12371 LIBS=$ac_check_lib_save_LIBS
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12374 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12375 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12376 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12377 else
12379 lt_cv_dlopen="dyld"
12380 lt_cv_dlopen_libs=
12381 lt_cv_dlopen_self=yes
12388 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12389 if test "x$ac_cv_func_shl_load" = xyes; then :
12390 lt_cv_dlopen="shl_load"
12391 else
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12393 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12394 if ${ac_cv_lib_dld_shl_load+:} false; then :
12395 $as_echo_n "(cached) " >&6
12396 else
12397 ac_check_lib_save_LIBS=$LIBS
12398 LIBS="-ldld $LIBS"
12399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12400 /* end confdefs.h. */
12402 /* Override any GCC internal prototype to avoid an error.
12403 Use char because int might match the return type of a GCC
12404 builtin and then its argument prototype would still apply. */
12405 #ifdef __cplusplus
12406 extern "C"
12407 #endif
12408 char shl_load ();
12410 main ()
12412 return shl_load ();
12414 return 0;
12416 _ACEOF
12417 if ac_fn_c_try_link "$LINENO"; then :
12418 ac_cv_lib_dld_shl_load=yes
12419 else
12420 ac_cv_lib_dld_shl_load=no
12422 rm -f core conftest.err conftest.$ac_objext \
12423 conftest$ac_exeext conftest.$ac_ext
12424 LIBS=$ac_check_lib_save_LIBS
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12427 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12428 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12429 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12430 else
12431 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12432 if test "x$ac_cv_func_dlopen" = xyes; then :
12433 lt_cv_dlopen="dlopen"
12434 else
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12436 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12437 if ${ac_cv_lib_dl_dlopen+:} false; then :
12438 $as_echo_n "(cached) " >&6
12439 else
12440 ac_check_lib_save_LIBS=$LIBS
12441 LIBS="-ldl $LIBS"
12442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12443 /* end confdefs.h. */
12445 /* Override any GCC internal prototype to avoid an error.
12446 Use char because int might match the return type of a GCC
12447 builtin and then its argument prototype would still apply. */
12448 #ifdef __cplusplus
12449 extern "C"
12450 #endif
12451 char dlopen ();
12453 main ()
12455 return dlopen ();
12457 return 0;
12459 _ACEOF
12460 if ac_fn_c_try_link "$LINENO"; then :
12461 ac_cv_lib_dl_dlopen=yes
12462 else
12463 ac_cv_lib_dl_dlopen=no
12465 rm -f core conftest.err conftest.$ac_objext \
12466 conftest$ac_exeext conftest.$ac_ext
12467 LIBS=$ac_check_lib_save_LIBS
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12470 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12471 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12472 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12473 else
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12475 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12476 if ${ac_cv_lib_svld_dlopen+:} false; then :
12477 $as_echo_n "(cached) " >&6
12478 else
12479 ac_check_lib_save_LIBS=$LIBS
12480 LIBS="-lsvld $LIBS"
12481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12482 /* end confdefs.h. */
12484 /* Override any GCC internal prototype to avoid an error.
12485 Use char because int might match the return type of a GCC
12486 builtin and then its argument prototype would still apply. */
12487 #ifdef __cplusplus
12488 extern "C"
12489 #endif
12490 char dlopen ();
12492 main ()
12494 return dlopen ();
12496 return 0;
12498 _ACEOF
12499 if ac_fn_c_try_link "$LINENO"; then :
12500 ac_cv_lib_svld_dlopen=yes
12501 else
12502 ac_cv_lib_svld_dlopen=no
12504 rm -f core conftest.err conftest.$ac_objext \
12505 conftest$ac_exeext conftest.$ac_ext
12506 LIBS=$ac_check_lib_save_LIBS
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12509 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12510 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12511 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12512 else
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12514 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12515 if ${ac_cv_lib_dld_dld_link+:} false; then :
12516 $as_echo_n "(cached) " >&6
12517 else
12518 ac_check_lib_save_LIBS=$LIBS
12519 LIBS="-ldld $LIBS"
12520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12521 /* end confdefs.h. */
12523 /* Override any GCC internal prototype to avoid an error.
12524 Use char because int might match the return type of a GCC
12525 builtin and then its argument prototype would still apply. */
12526 #ifdef __cplusplus
12527 extern "C"
12528 #endif
12529 char dld_link ();
12531 main ()
12533 return dld_link ();
12535 return 0;
12537 _ACEOF
12538 if ac_fn_c_try_link "$LINENO"; then :
12539 ac_cv_lib_dld_dld_link=yes
12540 else
12541 ac_cv_lib_dld_dld_link=no
12543 rm -f core conftest.err conftest.$ac_objext \
12544 conftest$ac_exeext conftest.$ac_ext
12545 LIBS=$ac_check_lib_save_LIBS
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12548 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12549 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12550 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12569 esac
12571 if test "x$lt_cv_dlopen" != xno; then
12572 enable_dlopen=yes
12573 else
12574 enable_dlopen=no
12577 case $lt_cv_dlopen in
12578 dlopen)
12579 save_CPPFLAGS="$CPPFLAGS"
12580 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12582 save_LDFLAGS="$LDFLAGS"
12583 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12585 save_LIBS="$LIBS"
12586 LIBS="$lt_cv_dlopen_libs $LIBS"
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12589 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12590 if ${lt_cv_dlopen_self+:} false; then :
12591 $as_echo_n "(cached) " >&6
12592 else
12593 if test "$cross_compiling" = yes; then :
12594 lt_cv_dlopen_self=cross
12595 else
12596 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12597 lt_status=$lt_dlunknown
12598 cat > conftest.$ac_ext <<_LT_EOF
12599 #line $LINENO "configure"
12600 #include "confdefs.h"
12602 #if HAVE_DLFCN_H
12603 #include <dlfcn.h>
12604 #endif
12606 #include <stdio.h>
12608 #ifdef RTLD_GLOBAL
12609 # define LT_DLGLOBAL RTLD_GLOBAL
12610 #else
12611 # ifdef DL_GLOBAL
12612 # define LT_DLGLOBAL DL_GLOBAL
12613 # else
12614 # define LT_DLGLOBAL 0
12615 # endif
12616 #endif
12618 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12619 find out it does not work in some platform. */
12620 #ifndef LT_DLLAZY_OR_NOW
12621 # ifdef RTLD_LAZY
12622 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12623 # else
12624 # ifdef DL_LAZY
12625 # define LT_DLLAZY_OR_NOW DL_LAZY
12626 # else
12627 # ifdef RTLD_NOW
12628 # define LT_DLLAZY_OR_NOW RTLD_NOW
12629 # else
12630 # ifdef DL_NOW
12631 # define LT_DLLAZY_OR_NOW DL_NOW
12632 # else
12633 # define LT_DLLAZY_OR_NOW 0
12634 # endif
12635 # endif
12636 # endif
12637 # endif
12638 #endif
12640 /* When -fvisbility=hidden is used, assume the code has been annotated
12641 correspondingly for the symbols needed. */
12642 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12643 int fnord () __attribute__((visibility("default")));
12644 #endif
12646 int fnord () { return 42; }
12647 int main ()
12649 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12650 int status = $lt_dlunknown;
12652 if (self)
12654 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12655 else
12657 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12658 else puts (dlerror ());
12660 /* dlclose (self); */
12662 else
12663 puts (dlerror ());
12665 return status;
12667 _LT_EOF
12668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12669 (eval $ac_link) 2>&5
12670 ac_status=$?
12671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12672 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12673 (./conftest; exit; ) >&5 2>/dev/null
12674 lt_status=$?
12675 case x$lt_status in
12676 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12677 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12678 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12679 esac
12680 else :
12681 # compilation failed
12682 lt_cv_dlopen_self=no
12685 rm -fr conftest*
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12690 $as_echo "$lt_cv_dlopen_self" >&6; }
12692 if test "x$lt_cv_dlopen_self" = xyes; then
12693 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12695 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12696 if ${lt_cv_dlopen_self_static+:} false; then :
12697 $as_echo_n "(cached) " >&6
12698 else
12699 if test "$cross_compiling" = yes; then :
12700 lt_cv_dlopen_self_static=cross
12701 else
12702 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12703 lt_status=$lt_dlunknown
12704 cat > conftest.$ac_ext <<_LT_EOF
12705 #line $LINENO "configure"
12706 #include "confdefs.h"
12708 #if HAVE_DLFCN_H
12709 #include <dlfcn.h>
12710 #endif
12712 #include <stdio.h>
12714 #ifdef RTLD_GLOBAL
12715 # define LT_DLGLOBAL RTLD_GLOBAL
12716 #else
12717 # ifdef DL_GLOBAL
12718 # define LT_DLGLOBAL DL_GLOBAL
12719 # else
12720 # define LT_DLGLOBAL 0
12721 # endif
12722 #endif
12724 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12725 find out it does not work in some platform. */
12726 #ifndef LT_DLLAZY_OR_NOW
12727 # ifdef RTLD_LAZY
12728 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12729 # else
12730 # ifdef DL_LAZY
12731 # define LT_DLLAZY_OR_NOW DL_LAZY
12732 # else
12733 # ifdef RTLD_NOW
12734 # define LT_DLLAZY_OR_NOW RTLD_NOW
12735 # else
12736 # ifdef DL_NOW
12737 # define LT_DLLAZY_OR_NOW DL_NOW
12738 # else
12739 # define LT_DLLAZY_OR_NOW 0
12740 # endif
12741 # endif
12742 # endif
12743 # endif
12744 #endif
12746 /* When -fvisbility=hidden is used, assume the code has been annotated
12747 correspondingly for the symbols needed. */
12748 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12749 int fnord () __attribute__((visibility("default")));
12750 #endif
12752 int fnord () { return 42; }
12753 int main ()
12755 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12756 int status = $lt_dlunknown;
12758 if (self)
12760 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12761 else
12763 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12764 else puts (dlerror ());
12766 /* dlclose (self); */
12768 else
12769 puts (dlerror ());
12771 return status;
12773 _LT_EOF
12774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12775 (eval $ac_link) 2>&5
12776 ac_status=$?
12777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12778 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12779 (./conftest; exit; ) >&5 2>/dev/null
12780 lt_status=$?
12781 case x$lt_status in
12782 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12783 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12784 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12785 esac
12786 else :
12787 # compilation failed
12788 lt_cv_dlopen_self_static=no
12791 rm -fr conftest*
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12796 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12799 CPPFLAGS="$save_CPPFLAGS"
12800 LDFLAGS="$save_LDFLAGS"
12801 LIBS="$save_LIBS"
12803 esac
12805 case $lt_cv_dlopen_self in
12806 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12807 *) enable_dlopen_self=unknown ;;
12808 esac
12810 case $lt_cv_dlopen_self_static in
12811 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12812 *) enable_dlopen_self_static=unknown ;;
12813 esac
12832 striplib=
12833 old_striplib=
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12835 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12836 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12837 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12838 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12840 $as_echo "yes" >&6; }
12841 else
12842 # FIXME - insert some real tests, host_os isn't really good enough
12843 case $host_os in
12844 darwin*)
12845 if test -n "$STRIP" ; then
12846 striplib="$STRIP -x"
12847 old_striplib="$STRIP -S"
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12849 $as_echo "yes" >&6; }
12850 else
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12852 $as_echo "no" >&6; }
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12857 $as_echo "no" >&6; }
12859 esac
12873 # Report which library types will actually be built
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12875 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12877 $as_echo "$can_build_shared" >&6; }
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12880 $as_echo_n "checking whether to build shared libraries... " >&6; }
12881 test "$can_build_shared" = "no" && enable_shared=no
12883 # On AIX, shared libraries and static libraries use the same namespace, and
12884 # are all built from PIC.
12885 case $host_os in
12886 aix3*)
12887 test "$enable_shared" = yes && enable_static=no
12888 if test -n "$RANLIB"; then
12889 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12890 postinstall_cmds='$RANLIB $lib'
12894 aix[4-9]*)
12895 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12896 test "$enable_shared" = yes && enable_static=no
12899 esac
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12901 $as_echo "$enable_shared" >&6; }
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12904 $as_echo_n "checking whether to build static libraries... " >&6; }
12905 # Make sure either enable_shared or enable_static is yes.
12906 test "$enable_shared" = yes || enable_static=yes
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12908 $as_echo "$enable_static" >&6; }
12914 ac_ext=c
12915 ac_cpp='$CPP $CPPFLAGS'
12916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12920 CC="$lt_save_CC"
12922 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12923 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12924 (test "X$CXX" != "Xg++"))) ; then
12925 ac_ext=cpp
12926 ac_cpp='$CXXCPP $CPPFLAGS'
12927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12931 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12932 if test -z "$CXXCPP"; then
12933 if ${ac_cv_prog_CXXCPP+:} false; then :
12934 $as_echo_n "(cached) " >&6
12935 else
12936 # Double quotes because CXXCPP needs to be expanded
12937 for CXXCPP in "$CXX -E" "/lib/cpp"
12939 ac_preproc_ok=false
12940 for ac_cxx_preproc_warn_flag in '' yes
12942 # Use a header file that comes with gcc, so configuring glibc
12943 # with a fresh cross-compiler works.
12944 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12945 # <limits.h> exists even on freestanding compilers.
12946 # On the NeXT, cc -E runs the code through the compiler's parser,
12947 # not just through cpp. "Syntax error" is here to catch this case.
12948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12949 /* end confdefs.h. */
12950 #ifdef __STDC__
12951 # include <limits.h>
12952 #else
12953 # include <assert.h>
12954 #endif
12955 Syntax error
12956 _ACEOF
12957 if ac_fn_cxx_try_cpp "$LINENO"; then :
12959 else
12960 # Broken: fails on valid input.
12961 continue
12963 rm -f conftest.err conftest.i conftest.$ac_ext
12965 # OK, works on sane cases. Now check whether nonexistent headers
12966 # can be detected and how.
12967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12968 /* end confdefs.h. */
12969 #include <ac_nonexistent.h>
12970 _ACEOF
12971 if ac_fn_cxx_try_cpp "$LINENO"; then :
12972 # Broken: success on invalid input.
12973 continue
12974 else
12975 # Passes both tests.
12976 ac_preproc_ok=:
12977 break
12979 rm -f conftest.err conftest.i conftest.$ac_ext
12981 done
12982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12983 rm -f conftest.i conftest.err conftest.$ac_ext
12984 if $ac_preproc_ok; then :
12985 break
12988 done
12989 ac_cv_prog_CXXCPP=$CXXCPP
12992 CXXCPP=$ac_cv_prog_CXXCPP
12993 else
12994 ac_cv_prog_CXXCPP=$CXXCPP
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12997 $as_echo "$CXXCPP" >&6; }
12998 ac_preproc_ok=false
12999 for ac_cxx_preproc_warn_flag in '' yes
13001 # Use a header file that comes with gcc, so configuring glibc
13002 # with a fresh cross-compiler works.
13003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13004 # <limits.h> exists even on freestanding compilers.
13005 # On the NeXT, cc -E runs the code through the compiler's parser,
13006 # not just through cpp. "Syntax error" is here to catch this case.
13007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13008 /* end confdefs.h. */
13009 #ifdef __STDC__
13010 # include <limits.h>
13011 #else
13012 # include <assert.h>
13013 #endif
13014 Syntax error
13015 _ACEOF
13016 if ac_fn_cxx_try_cpp "$LINENO"; then :
13018 else
13019 # Broken: fails on valid input.
13020 continue
13022 rm -f conftest.err conftest.i conftest.$ac_ext
13024 # OK, works on sane cases. Now check whether nonexistent headers
13025 # can be detected and how.
13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027 /* end confdefs.h. */
13028 #include <ac_nonexistent.h>
13029 _ACEOF
13030 if ac_fn_cxx_try_cpp "$LINENO"; then :
13031 # Broken: success on invalid input.
13032 continue
13033 else
13034 # Passes both tests.
13035 ac_preproc_ok=:
13036 break
13038 rm -f conftest.err conftest.i conftest.$ac_ext
13040 done
13041 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13042 rm -f conftest.i conftest.err conftest.$ac_ext
13043 if $ac_preproc_ok; then :
13045 else
13046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13048 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13049 See \`config.log' for more details" "$LINENO" 5; }
13052 ac_ext=c
13053 ac_cpp='$CPP $CPPFLAGS'
13054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13058 else
13059 _lt_caught_CXX_error=yes
13062 ac_ext=cpp
13063 ac_cpp='$CXXCPP $CPPFLAGS'
13064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13068 archive_cmds_need_lc_CXX=no
13069 allow_undefined_flag_CXX=
13070 always_export_symbols_CXX=no
13071 archive_expsym_cmds_CXX=
13072 compiler_needs_object_CXX=no
13073 export_dynamic_flag_spec_CXX=
13074 hardcode_direct_CXX=no
13075 hardcode_direct_absolute_CXX=no
13076 hardcode_libdir_flag_spec_CXX=
13077 hardcode_libdir_separator_CXX=
13078 hardcode_minus_L_CXX=no
13079 hardcode_shlibpath_var_CXX=unsupported
13080 hardcode_automatic_CXX=no
13081 inherit_rpath_CXX=no
13082 module_cmds_CXX=
13083 module_expsym_cmds_CXX=
13084 link_all_deplibs_CXX=unknown
13085 old_archive_cmds_CXX=$old_archive_cmds
13086 reload_flag_CXX=$reload_flag
13087 reload_cmds_CXX=$reload_cmds
13088 no_undefined_flag_CXX=
13089 whole_archive_flag_spec_CXX=
13090 enable_shared_with_static_runtimes_CXX=no
13092 # Source file extension for C++ test sources.
13093 ac_ext=cpp
13095 # Object file extension for compiled C++ test sources.
13096 objext=o
13097 objext_CXX=$objext
13099 # No sense in running all these tests if we already determined that
13100 # the CXX compiler isn't working. Some variables (like enable_shared)
13101 # are currently assumed to apply to all compilers on this platform,
13102 # and will be corrupted by setting them based on a non-working compiler.
13103 if test "$_lt_caught_CXX_error" != yes; then
13104 # Code to be used in simple compile tests
13105 lt_simple_compile_test_code="int some_variable = 0;"
13107 # Code to be used in simple link tests
13108 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13110 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13117 # If no C compiler was specified, use CC.
13118 LTCC=${LTCC-"$CC"}
13120 # If no C compiler flags were specified, use CFLAGS.
13121 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13123 # Allow CC to be a program name with arguments.
13124 compiler=$CC
13127 # save warnings/boilerplate of simple test code
13128 ac_outfile=conftest.$ac_objext
13129 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13130 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13131 _lt_compiler_boilerplate=`cat conftest.err`
13132 $RM conftest*
13134 ac_outfile=conftest.$ac_objext
13135 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13136 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13137 _lt_linker_boilerplate=`cat conftest.err`
13138 $RM -r conftest*
13141 # Allow CC to be a program name with arguments.
13142 lt_save_CC=$CC
13143 lt_save_CFLAGS=$CFLAGS
13144 lt_save_LD=$LD
13145 lt_save_GCC=$GCC
13146 GCC=$GXX
13147 lt_save_with_gnu_ld=$with_gnu_ld
13148 lt_save_path_LD=$lt_cv_path_LD
13149 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13150 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13151 else
13152 $as_unset lt_cv_prog_gnu_ld
13154 if test -n "${lt_cv_path_LDCXX+set}"; then
13155 lt_cv_path_LD=$lt_cv_path_LDCXX
13156 else
13157 $as_unset lt_cv_path_LD
13159 test -z "${LDCXX+set}" || LD=$LDCXX
13160 CC=${CXX-"c++"}
13161 CFLAGS=$CXXFLAGS
13162 compiler=$CC
13163 compiler_CXX=$CC
13164 for cc_temp in $compiler""; do
13165 case $cc_temp in
13166 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13167 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13168 \-*) ;;
13169 *) break;;
13170 esac
13171 done
13172 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13175 if test -n "$compiler"; then
13176 # We don't want -fno-exception when compiling C++ code, so set the
13177 # no_builtin_flag separately
13178 if test "$GXX" = yes; then
13179 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13180 else
13181 lt_prog_compiler_no_builtin_flag_CXX=
13184 if test "$GXX" = yes; then
13185 # Set up default GNU C++ configuration
13189 # Check whether --with-gnu-ld was given.
13190 if test "${with_gnu_ld+set}" = set; then :
13191 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13192 else
13193 with_gnu_ld=no
13196 ac_prog=ld
13197 if test "$GCC" = yes; then
13198 # Check if gcc -print-prog-name=ld gives a path.
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13200 $as_echo_n "checking for ld used by $CC... " >&6; }
13201 case $host in
13202 *-*-mingw*)
13203 # gcc leaves a trailing carriage return which upsets mingw
13204 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13206 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13207 esac
13208 case $ac_prog in
13209 # Accept absolute paths.
13210 [\\/]* | ?:[\\/]*)
13211 re_direlt='/[^/][^/]*/\.\./'
13212 # Canonicalize the pathname of ld
13213 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13214 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13215 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13216 done
13217 test -z "$LD" && LD="$ac_prog"
13220 # If it fails, then pretend we aren't using GCC.
13221 ac_prog=ld
13224 # If it is relative, then search for the first ld in PATH.
13225 with_gnu_ld=unknown
13227 esac
13228 elif test "$with_gnu_ld" = yes; then
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13230 $as_echo_n "checking for GNU ld... " >&6; }
13231 else
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13233 $as_echo_n "checking for non-GNU ld... " >&6; }
13235 if ${lt_cv_path_LD+:} false; then :
13236 $as_echo_n "(cached) " >&6
13237 else
13238 if test -z "$LD"; then
13239 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13240 for ac_dir in $PATH; do
13241 IFS="$lt_save_ifs"
13242 test -z "$ac_dir" && ac_dir=.
13243 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13244 lt_cv_path_LD="$ac_dir/$ac_prog"
13245 # Check to see if the program is GNU ld. I'd rather use --version,
13246 # but apparently some variants of GNU ld only accept -v.
13247 # Break only if it was the GNU/non-GNU ld that we prefer.
13248 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13249 *GNU* | *'with BFD'*)
13250 test "$with_gnu_ld" != no && break
13253 test "$with_gnu_ld" != yes && break
13255 esac
13257 done
13258 IFS="$lt_save_ifs"
13259 else
13260 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13264 LD="$lt_cv_path_LD"
13265 if test -n "$LD"; then
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13267 $as_echo "$LD" >&6; }
13268 else
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13270 $as_echo "no" >&6; }
13272 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13274 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13275 if ${lt_cv_prog_gnu_ld+:} false; then :
13276 $as_echo_n "(cached) " >&6
13277 else
13278 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13279 case `$LD -v 2>&1 </dev/null` in
13280 *GNU* | *'with BFD'*)
13281 lt_cv_prog_gnu_ld=yes
13284 lt_cv_prog_gnu_ld=no
13286 esac
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13289 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13290 with_gnu_ld=$lt_cv_prog_gnu_ld
13298 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13299 # archiving commands below assume that GNU ld is being used.
13300 if test "$with_gnu_ld" = yes; then
13301 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13302 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'
13304 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13305 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13307 # If archive_cmds runs LD, not CC, wlarc should be empty
13308 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13309 # investigate it a little bit more. (MM)
13310 wlarc='${wl}'
13312 # ancient GNU ld didn't support --whole-archive et. al.
13313 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13314 $GREP 'no-whole-archive' > /dev/null; then
13315 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13316 else
13317 whole_archive_flag_spec_CXX=
13319 else
13320 with_gnu_ld=no
13321 wlarc=
13323 # A generic and very simple default shared library creation
13324 # command for GNU C++ for the case where it uses the native
13325 # linker, instead of GNU ld. If possible, this setting should
13326 # overridden to take advantage of the native linker features on
13327 # the platform it is being used on.
13328 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13331 # Commands to make compiler produce verbose output that lists
13332 # what "hidden" libraries, object files and flags are used when
13333 # linking a shared library.
13334 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13336 else
13337 GXX=no
13338 with_gnu_ld=no
13339 wlarc=
13342 # PORTME: fill in a description of your system's C++ link characteristics
13343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13344 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13345 ld_shlibs_CXX=yes
13346 case $host_os in
13347 aix3*)
13348 # FIXME: insert proper C++ library support
13349 ld_shlibs_CXX=no
13351 aix[4-9]*)
13352 if test "$host_cpu" = ia64; then
13353 # On IA64, the linker does run time linking by default, so we don't
13354 # have to do anything special.
13355 aix_use_runtimelinking=no
13356 exp_sym_flag='-Bexport'
13357 no_entry_flag=""
13358 else
13359 aix_use_runtimelinking=no
13361 # Test if we are trying to use run time linking or normal
13362 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13363 # need to do runtime linking.
13364 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13365 for ld_flag in $LDFLAGS; do
13366 case $ld_flag in
13367 *-brtl*)
13368 aix_use_runtimelinking=yes
13369 break
13371 esac
13372 done
13374 esac
13376 exp_sym_flag='-bexport'
13377 no_entry_flag='-bnoentry'
13380 # When large executables or shared objects are built, AIX ld can
13381 # have problems creating the table of contents. If linking a library
13382 # or program results in "error TOC overflow" add -mminimal-toc to
13383 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13384 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13386 archive_cmds_CXX=''
13387 hardcode_direct_CXX=yes
13388 hardcode_direct_absolute_CXX=yes
13389 hardcode_libdir_separator_CXX=':'
13390 link_all_deplibs_CXX=yes
13391 file_list_spec_CXX='${wl}-f,'
13393 if test "$GXX" = yes; then
13394 case $host_os in aix4.[012]|aix4.[012].*)
13395 # We only want to do this on AIX 4.2 and lower, the check
13396 # below for broken collect2 doesn't work under 4.3+
13397 collect2name=`${CC} -print-prog-name=collect2`
13398 if test -f "$collect2name" &&
13399 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13400 then
13401 # We have reworked collect2
13403 else
13404 # We have old collect2
13405 hardcode_direct_CXX=unsupported
13406 # It fails to find uninstalled libraries when the uninstalled
13407 # path is not listed in the libpath. Setting hardcode_minus_L
13408 # to unsupported forces relinking
13409 hardcode_minus_L_CXX=yes
13410 hardcode_libdir_flag_spec_CXX='-L$libdir'
13411 hardcode_libdir_separator_CXX=
13413 esac
13414 shared_flag='-shared'
13415 if test "$aix_use_runtimelinking" = yes; then
13416 shared_flag="$shared_flag "'${wl}-G'
13418 else
13419 # not using gcc
13420 if test "$host_cpu" = ia64; then
13421 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13422 # chokes on -Wl,-G. The following line is correct:
13423 shared_flag='-G'
13424 else
13425 if test "$aix_use_runtimelinking" = yes; then
13426 shared_flag='${wl}-G'
13427 else
13428 shared_flag='${wl}-bM:SRE'
13433 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13434 # It seems that -bexpall does not export symbols beginning with
13435 # underscore (_), so it is better to generate a list of symbols to
13436 # export.
13437 always_export_symbols_CXX=yes
13438 if test "$aix_use_runtimelinking" = yes; then
13439 # Warning - without using the other runtime loading flags (-brtl),
13440 # -berok will link without error, but may produce a broken library.
13441 allow_undefined_flag_CXX='-berok'
13442 # Determine the default libpath from the value encoded in an empty
13443 # executable.
13444 if test "${lt_cv_aix_libpath+set}" = set; then
13445 aix_libpath=$lt_cv_aix_libpath
13446 else
13447 if ${lt_cv_aix_libpath__CXX+:} false; then :
13448 $as_echo_n "(cached) " >&6
13449 else
13450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13451 /* end confdefs.h. */
13454 main ()
13458 return 0;
13460 _ACEOF
13461 if ac_fn_cxx_try_link "$LINENO"; then :
13463 lt_aix_libpath_sed='
13464 /Import File Strings/,/^$/ {
13465 /^0/ {
13466 s/^0 *\([^ ]*\) *$/\1/
13470 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13471 # Check for a 64-bit object if we didn't find anything.
13472 if test -z "$lt_cv_aix_libpath__CXX"; then
13473 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13476 rm -f core conftest.err conftest.$ac_objext \
13477 conftest$ac_exeext conftest.$ac_ext
13478 if test -z "$lt_cv_aix_libpath__CXX"; then
13479 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13484 aix_libpath=$lt_cv_aix_libpath__CXX
13487 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13489 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"
13490 else
13491 if test "$host_cpu" = ia64; then
13492 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13493 allow_undefined_flag_CXX="-z nodefs"
13494 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"
13495 else
13496 # Determine the default libpath from the value encoded in an
13497 # empty executable.
13498 if test "${lt_cv_aix_libpath+set}" = set; then
13499 aix_libpath=$lt_cv_aix_libpath
13500 else
13501 if ${lt_cv_aix_libpath__CXX+:} false; then :
13502 $as_echo_n "(cached) " >&6
13503 else
13504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13505 /* end confdefs.h. */
13508 main ()
13512 return 0;
13514 _ACEOF
13515 if ac_fn_cxx_try_link "$LINENO"; then :
13517 lt_aix_libpath_sed='
13518 /Import File Strings/,/^$/ {
13519 /^0/ {
13520 s/^0 *\([^ ]*\) *$/\1/
13524 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13525 # Check for a 64-bit object if we didn't find anything.
13526 if test -z "$lt_cv_aix_libpath__CXX"; then
13527 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13530 rm -f core conftest.err conftest.$ac_objext \
13531 conftest$ac_exeext conftest.$ac_ext
13532 if test -z "$lt_cv_aix_libpath__CXX"; then
13533 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13538 aix_libpath=$lt_cv_aix_libpath__CXX
13541 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13542 # Warning - without using the other run time loading flags,
13543 # -berok will link without error, but may produce a broken library.
13544 no_undefined_flag_CXX=' ${wl}-bernotok'
13545 allow_undefined_flag_CXX=' ${wl}-berok'
13546 if test "$with_gnu_ld" = yes; then
13547 # We only use this code for GNU lds that support --whole-archive.
13548 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13549 else
13550 # Exported symbols can be pulled into shared objects from archives
13551 whole_archive_flag_spec_CXX='$convenience'
13553 archive_cmds_need_lc_CXX=yes
13554 # This is similar to how AIX traditionally builds its shared
13555 # libraries.
13556 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'
13561 beos*)
13562 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13563 allow_undefined_flag_CXX=unsupported
13564 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13565 # support --undefined. This deserves some investigation. FIXME
13566 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13567 else
13568 ld_shlibs_CXX=no
13572 chorus*)
13573 case $cc_basename in
13575 # FIXME: insert proper C++ library support
13576 ld_shlibs_CXX=no
13578 esac
13581 cygwin* | mingw* | pw32* | cegcc*)
13582 case $GXX,$cc_basename in
13583 ,cl* | no,cl*)
13584 # Native MSVC
13585 # hardcode_libdir_flag_spec is actually meaningless, as there is
13586 # no search path for DLLs.
13587 hardcode_libdir_flag_spec_CXX=' '
13588 allow_undefined_flag_CXX=unsupported
13589 always_export_symbols_CXX=yes
13590 file_list_spec_CXX='@'
13591 # Tell ltmain to make .lib files, not .a files.
13592 libext=lib
13593 # Tell ltmain to make .dll files, not .so files.
13594 shrext_cmds=".dll"
13595 # FIXME: Setting linknames here is a bad hack.
13596 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13597 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13598 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13599 else
13600 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13602 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13603 linknames='
13604 # The linker will not automatically build a static lib if we build a DLL.
13605 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13606 enable_shared_with_static_runtimes_CXX=yes
13607 # Don't use ranlib
13608 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13609 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13610 lt_tool_outputfile="@TOOL_OUTPUT@"~
13611 case $lt_outputfile in
13612 *.exe|*.EXE) ;;
13614 lt_outputfile="$lt_outputfile.exe"
13615 lt_tool_outputfile="$lt_tool_outputfile.exe"
13617 esac~
13618 func_to_tool_file "$lt_outputfile"~
13619 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13620 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13621 $RM "$lt_outputfile.manifest";
13625 # g++
13626 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13627 # as there is no search path for DLLs.
13628 hardcode_libdir_flag_spec_CXX='-L$libdir'
13629 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13630 allow_undefined_flag_CXX=unsupported
13631 always_export_symbols_CXX=no
13632 enable_shared_with_static_runtimes_CXX=yes
13634 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13635 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'
13636 # If the export-symbols file already is a .def file (1st line
13637 # is EXPORTS), use it as is; otherwise, prepend...
13638 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13639 cp $export_symbols $output_objdir/$soname.def;
13640 else
13641 echo EXPORTS > $output_objdir/$soname.def;
13642 cat $export_symbols >> $output_objdir/$soname.def;
13644 $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'
13645 else
13646 ld_shlibs_CXX=no
13649 esac
13651 darwin* | rhapsody*)
13654 archive_cmds_need_lc_CXX=no
13655 hardcode_direct_CXX=no
13656 hardcode_automatic_CXX=yes
13657 hardcode_shlibpath_var_CXX=unsupported
13658 if test "$lt_cv_ld_force_load" = "yes"; then
13659 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\"`'
13661 else
13662 whole_archive_flag_spec_CXX=''
13664 link_all_deplibs_CXX=yes
13665 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13666 case $cc_basename in
13667 ifort*) _lt_dar_can_shared=yes ;;
13668 *) _lt_dar_can_shared=$GCC ;;
13669 esac
13670 if test "$_lt_dar_can_shared" = "yes"; then
13671 output_verbose_link_cmd=func_echo_all
13672 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}"
13673 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13674 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}"
13675 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}"
13676 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13677 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}"
13678 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}"
13681 else
13682 ld_shlibs_CXX=no
13687 dgux*)
13688 case $cc_basename in
13689 ec++*)
13690 # FIXME: insert proper C++ library support
13691 ld_shlibs_CXX=no
13693 ghcx*)
13694 # Green Hills C++ Compiler
13695 # FIXME: insert proper C++ library support
13696 ld_shlibs_CXX=no
13699 # FIXME: insert proper C++ library support
13700 ld_shlibs_CXX=no
13702 esac
13705 freebsd2.*)
13706 # C++ shared libraries reported to be fairly broken before
13707 # switch to ELF
13708 ld_shlibs_CXX=no
13711 freebsd-elf*)
13712 archive_cmds_need_lc_CXX=no
13715 freebsd* | dragonfly*)
13716 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13717 # conventions
13718 ld_shlibs_CXX=yes
13721 haiku*)
13722 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13723 link_all_deplibs_CXX=yes
13726 hpux9*)
13727 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13728 hardcode_libdir_separator_CXX=:
13729 export_dynamic_flag_spec_CXX='${wl}-E'
13730 hardcode_direct_CXX=yes
13731 hardcode_minus_L_CXX=yes # Not in the search PATH,
13732 # but as the default
13733 # location of the library.
13735 case $cc_basename in
13736 CC*)
13737 # FIXME: insert proper C++ library support
13738 ld_shlibs_CXX=no
13740 aCC*)
13741 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'
13742 # Commands to make compiler produce verbose output that lists
13743 # what "hidden" libraries, object files and flags are used when
13744 # linking a shared library.
13746 # There doesn't appear to be a way to prevent this compiler from
13747 # explicitly linking system object files so we need to strip them
13748 # from the output so that they don't get included in the library
13749 # dependencies.
13750 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"'
13753 if test "$GXX" = yes; then
13754 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'
13755 else
13756 # FIXME: insert proper C++ library support
13757 ld_shlibs_CXX=no
13760 esac
13763 hpux10*|hpux11*)
13764 if test $with_gnu_ld = no; then
13765 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13766 hardcode_libdir_separator_CXX=:
13768 case $host_cpu in
13769 hppa*64*|ia64*)
13772 export_dynamic_flag_spec_CXX='${wl}-E'
13774 esac
13776 case $host_cpu in
13777 hppa*64*|ia64*)
13778 hardcode_direct_CXX=no
13779 hardcode_shlibpath_var_CXX=no
13782 hardcode_direct_CXX=yes
13783 hardcode_direct_absolute_CXX=yes
13784 hardcode_minus_L_CXX=yes # Not in the search PATH,
13785 # but as the default
13786 # location of the library.
13788 esac
13790 case $cc_basename in
13791 CC*)
13792 # FIXME: insert proper C++ library support
13793 ld_shlibs_CXX=no
13795 aCC*)
13796 case $host_cpu in
13797 hppa*64*)
13798 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13800 ia64*)
13801 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13804 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13806 esac
13807 # Commands to make compiler produce verbose output that lists
13808 # what "hidden" libraries, object files and flags are used when
13809 # linking a shared library.
13811 # There doesn't appear to be a way to prevent this compiler from
13812 # explicitly linking system object files so we need to strip them
13813 # from the output so that they don't get included in the library
13814 # dependencies.
13815 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"'
13818 if test "$GXX" = yes; then
13819 if test $with_gnu_ld = no; then
13820 case $host_cpu in
13821 hppa*64*)
13822 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13824 ia64*)
13825 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13828 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'
13830 esac
13832 else
13833 # FIXME: insert proper C++ library support
13834 ld_shlibs_CXX=no
13837 esac
13840 interix[3-9]*)
13841 hardcode_direct_CXX=no
13842 hardcode_shlibpath_var_CXX=no
13843 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13844 export_dynamic_flag_spec_CXX='${wl}-E'
13845 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13846 # Instead, shared libraries are loaded at an image base (0x10000000 by
13847 # default) and relocated if they conflict, which is a slow very memory
13848 # consuming and fragmenting process. To avoid this, we pick a random,
13849 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13850 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13851 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'
13852 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'
13854 irix5* | irix6*)
13855 case $cc_basename in
13856 CC*)
13857 # SGI C++
13858 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'
13860 # Archives containing C++ object files must be created using
13861 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13862 # necessary to make sure instantiated templates are included
13863 # in the archive.
13864 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13867 if test "$GXX" = yes; then
13868 if test "$with_gnu_ld" = no; then
13869 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'
13870 else
13871 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'
13874 link_all_deplibs_CXX=yes
13876 esac
13877 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13878 hardcode_libdir_separator_CXX=:
13879 inherit_rpath_CXX=yes
13882 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13883 case $cc_basename in
13884 KCC*)
13885 # Kuck and Associates, Inc. (KAI) C++ Compiler
13887 # KCC will only create a shared library if the output file
13888 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13889 # to its proper name (with version) after linking.
13890 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'
13891 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'
13892 # Commands to make compiler produce verbose output that lists
13893 # what "hidden" libraries, object files and flags are used when
13894 # linking a shared library.
13896 # There doesn't appear to be a way to prevent this compiler from
13897 # explicitly linking system object files so we need to strip them
13898 # from the output so that they don't get included in the library
13899 # dependencies.
13900 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"'
13902 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13903 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13905 # Archives containing C++ object files must be created using
13906 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13907 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13909 icpc* | ecpc* )
13910 # Intel C++
13911 with_gnu_ld=yes
13912 # version 8.0 and above of icpc choke on multiply defined symbols
13913 # if we add $predep_objects and $postdep_objects, however 7.1 and
13914 # earlier do not add the objects themselves.
13915 case `$CC -V 2>&1` in
13916 *"Version 7."*)
13917 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13918 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'
13920 *) # Version 8.0 or newer
13921 tmp_idyn=
13922 case $host_cpu in
13923 ia64*) tmp_idyn=' -i_dynamic';;
13924 esac
13925 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13926 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'
13928 esac
13929 archive_cmds_need_lc_CXX=no
13930 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13931 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13932 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13934 pgCC* | pgcpp*)
13935 # Portland Group C++ compiler
13936 case `$CC -V` in
13937 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13938 prelink_cmds_CXX='tpldir=Template.dir~
13939 rm -rf $tpldir~
13940 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13941 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13942 old_archive_cmds_CXX='tpldir=Template.dir~
13943 rm -rf $tpldir~
13944 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13945 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13946 $RANLIB $oldlib'
13947 archive_cmds_CXX='tpldir=Template.dir~
13948 rm -rf $tpldir~
13949 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13950 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13951 archive_expsym_cmds_CXX='tpldir=Template.dir~
13952 rm -rf $tpldir~
13953 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13954 $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'
13956 *) # Version 6 and above use weak symbols
13957 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13958 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'
13960 esac
13962 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13963 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13964 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'
13966 cxx*)
13967 # Compaq C++
13968 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13969 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'
13971 runpath_var=LD_RUN_PATH
13972 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13973 hardcode_libdir_separator_CXX=:
13975 # Commands to make compiler produce verbose output that lists
13976 # what "hidden" libraries, object files and flags are used when
13977 # linking a shared library.
13979 # There doesn't appear to be a way to prevent this compiler from
13980 # explicitly linking system object files so we need to strip them
13981 # from the output so that they don't get included in the library
13982 # dependencies.
13983 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'
13985 xl* | mpixl* | bgxl*)
13986 # IBM XL 8.0 on PPC, with GNU ld
13987 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13988 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13989 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13990 if test "x$supports_anon_versioning" = xyes; then
13991 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13992 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13993 echo "local: *; };" >> $output_objdir/$libname.ver~
13994 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13998 case `$CC -V 2>&1 | sed 5q` in
13999 *Sun\ C*)
14000 # Sun C++ 5.9
14001 no_undefined_flag_CXX=' -zdefs'
14002 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14003 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'
14004 hardcode_libdir_flag_spec_CXX='-R$libdir'
14005 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'
14006 compiler_needs_object_CXX=yes
14008 # Not sure whether something based on
14009 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14010 # would be better.
14011 output_verbose_link_cmd='func_echo_all'
14013 # Archives containing C++ object files must be created using
14014 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14015 # necessary to make sure instantiated templates are included
14016 # in the archive.
14017 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14019 esac
14021 esac
14024 lynxos*)
14025 # FIXME: insert proper C++ library support
14026 ld_shlibs_CXX=no
14029 m88k*)
14030 # FIXME: insert proper C++ library support
14031 ld_shlibs_CXX=no
14034 mvs*)
14035 case $cc_basename in
14036 cxx*)
14037 # FIXME: insert proper C++ library support
14038 ld_shlibs_CXX=no
14041 # FIXME: insert proper C++ library support
14042 ld_shlibs_CXX=no
14044 esac
14047 netbsd*)
14048 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14049 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14050 wlarc=
14051 hardcode_libdir_flag_spec_CXX='-R$libdir'
14052 hardcode_direct_CXX=yes
14053 hardcode_shlibpath_var_CXX=no
14055 # Workaround some broken pre-1.5 toolchains
14056 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14059 *nto* | *qnx*)
14060 ld_shlibs_CXX=yes
14063 openbsd2*)
14064 # C++ shared libraries are fairly broken
14065 ld_shlibs_CXX=no
14068 openbsd*)
14069 if test -f /usr/libexec/ld.so; then
14070 hardcode_direct_CXX=yes
14071 hardcode_shlibpath_var_CXX=no
14072 hardcode_direct_absolute_CXX=yes
14073 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14074 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14075 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14076 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14077 export_dynamic_flag_spec_CXX='${wl}-E'
14078 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14080 output_verbose_link_cmd=func_echo_all
14081 else
14082 ld_shlibs_CXX=no
14086 osf3* | osf4* | osf5*)
14087 case $cc_basename in
14088 KCC*)
14089 # Kuck and Associates, Inc. (KAI) C++ Compiler
14091 # KCC will only create a shared library if the output file
14092 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14093 # to its proper name (with version) after linking.
14094 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'
14096 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14097 hardcode_libdir_separator_CXX=:
14099 # Archives containing C++ object files must be created using
14100 # the KAI C++ compiler.
14101 case $host in
14102 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14103 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14104 esac
14106 RCC*)
14107 # Rational C++ 2.4.1
14108 # FIXME: insert proper C++ library support
14109 ld_shlibs_CXX=no
14111 cxx*)
14112 case $host in
14113 osf3*)
14114 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14115 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'
14116 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14119 allow_undefined_flag_CXX=' -expect_unresolved \*'
14120 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'
14121 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14122 echo "-hidden">> $lib.exp~
14123 $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~
14124 $RM $lib.exp'
14125 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14127 esac
14129 hardcode_libdir_separator_CXX=:
14131 # Commands to make compiler produce verbose output that lists
14132 # what "hidden" libraries, object files and flags are used when
14133 # linking a shared library.
14135 # There doesn't appear to be a way to prevent this compiler from
14136 # explicitly linking system object files so we need to strip them
14137 # from the output so that they don't get included in the library
14138 # dependencies.
14139 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"'
14142 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14143 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14144 case $host in
14145 osf3*)
14146 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'
14149 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'
14151 esac
14153 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14154 hardcode_libdir_separator_CXX=:
14156 # Commands to make compiler produce verbose output that lists
14157 # what "hidden" libraries, object files and flags are used when
14158 # linking a shared library.
14159 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14161 else
14162 # FIXME: insert proper C++ library support
14163 ld_shlibs_CXX=no
14166 esac
14169 psos*)
14170 # FIXME: insert proper C++ library support
14171 ld_shlibs_CXX=no
14174 sunos4*)
14175 case $cc_basename in
14176 CC*)
14177 # Sun C++ 4.x
14178 # FIXME: insert proper C++ library support
14179 ld_shlibs_CXX=no
14181 lcc*)
14182 # Lucid
14183 # FIXME: insert proper C++ library support
14184 ld_shlibs_CXX=no
14187 # FIXME: insert proper C++ library support
14188 ld_shlibs_CXX=no
14190 esac
14193 solaris*)
14194 case $cc_basename in
14195 CC* | sunCC*)
14196 # Sun C++ 4.2, 5.x and Centerline C++
14197 archive_cmds_need_lc_CXX=yes
14198 no_undefined_flag_CXX=' -zdefs'
14199 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14200 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14201 $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'
14203 hardcode_libdir_flag_spec_CXX='-R$libdir'
14204 hardcode_shlibpath_var_CXX=no
14205 case $host_os in
14206 solaris2.[0-5] | solaris2.[0-5].*) ;;
14208 # The compiler driver will combine and reorder linker options,
14209 # but understands `-z linker_flag'.
14210 # Supported since Solaris 2.6 (maybe 2.5.1?)
14211 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14213 esac
14214 link_all_deplibs_CXX=yes
14216 output_verbose_link_cmd='func_echo_all'
14218 # Archives containing C++ object files must be created using
14219 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14220 # necessary to make sure instantiated templates are included
14221 # in the archive.
14222 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14224 gcx*)
14225 # Green Hills C++ Compiler
14226 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14228 # The C++ compiler must be used to create the archive.
14229 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14232 # GNU C++ compiler with Solaris linker
14233 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14234 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14235 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14236 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14237 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14238 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14240 # Commands to make compiler produce verbose output that lists
14241 # what "hidden" libraries, object files and flags are used when
14242 # linking a shared library.
14243 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14244 else
14245 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14246 # platform.
14247 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14248 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14249 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14251 # Commands to make compiler produce verbose output that lists
14252 # what "hidden" libraries, object files and flags are used when
14253 # linking a shared library.
14254 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14257 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14258 case $host_os in
14259 solaris2.[0-5] | solaris2.[0-5].*) ;;
14261 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14263 esac
14266 esac
14269 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14270 no_undefined_flag_CXX='${wl}-z,text'
14271 archive_cmds_need_lc_CXX=no
14272 hardcode_shlibpath_var_CXX=no
14273 runpath_var='LD_RUN_PATH'
14275 case $cc_basename in
14276 CC*)
14277 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14278 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14281 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14282 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14284 esac
14287 sysv5* | sco3.2v5* | sco5v6*)
14288 # Note: We can NOT use -z defs as we might desire, because we do not
14289 # link with -lc, and that would cause any symbols used from libc to
14290 # always be unresolved, which means just about no library would
14291 # ever link correctly. If we're not using GNU ld we use -z text
14292 # though, which does catch some bad symbols but isn't as heavy-handed
14293 # as -z defs.
14294 no_undefined_flag_CXX='${wl}-z,text'
14295 allow_undefined_flag_CXX='${wl}-z,nodefs'
14296 archive_cmds_need_lc_CXX=no
14297 hardcode_shlibpath_var_CXX=no
14298 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14299 hardcode_libdir_separator_CXX=':'
14300 link_all_deplibs_CXX=yes
14301 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14302 runpath_var='LD_RUN_PATH'
14304 case $cc_basename in
14305 CC*)
14306 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14307 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14308 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14309 '"$old_archive_cmds_CXX"
14310 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14311 '"$reload_cmds_CXX"
14314 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14315 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14317 esac
14320 tandem*)
14321 case $cc_basename in
14322 NCC*)
14323 # NonStop-UX NCC 3.20
14324 # FIXME: insert proper C++ library support
14325 ld_shlibs_CXX=no
14328 # FIXME: insert proper C++ library support
14329 ld_shlibs_CXX=no
14331 esac
14334 vxworks*)
14335 # FIXME: insert proper C++ library support
14336 ld_shlibs_CXX=no
14340 # FIXME: insert proper C++ library support
14341 ld_shlibs_CXX=no
14343 esac
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14346 $as_echo "$ld_shlibs_CXX" >&6; }
14347 test "$ld_shlibs_CXX" = no && can_build_shared=no
14349 GCC_CXX="$GXX"
14350 LD_CXX="$LD"
14352 ## CAVEAT EMPTOR:
14353 ## There is no encapsulation within the following macros, do not change
14354 ## the running order or otherwise move them around unless you know exactly
14355 ## what you are doing...
14356 # Dependencies to place before and after the object being linked:
14357 predep_objects_CXX=
14358 postdep_objects_CXX=
14359 predeps_CXX=
14360 postdeps_CXX=
14361 compiler_lib_search_path_CXX=
14363 cat > conftest.$ac_ext <<_LT_EOF
14364 class Foo
14366 public:
14367 Foo (void) { a = 0; }
14368 private:
14369 int a;
14371 _LT_EOF
14374 _lt_libdeps_save_CFLAGS=$CFLAGS
14375 case "$CC $CFLAGS " in #(
14376 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14377 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14378 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14379 esac
14381 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14382 (eval $ac_compile) 2>&5
14383 ac_status=$?
14384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14385 test $ac_status = 0; }; then
14386 # Parse the compiler output and extract the necessary
14387 # objects, libraries and library flags.
14389 # Sentinel used to keep track of whether or not we are before
14390 # the conftest object file.
14391 pre_test_object_deps_done=no
14393 for p in `eval "$output_verbose_link_cmd"`; do
14394 case ${prev}${p} in
14396 -L* | -R* | -l*)
14397 # Some compilers place space between "-{L,R}" and the path.
14398 # Remove the space.
14399 if test $p = "-L" ||
14400 test $p = "-R"; then
14401 prev=$p
14402 continue
14405 # Expand the sysroot to ease extracting the directories later.
14406 if test -z "$prev"; then
14407 case $p in
14408 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14409 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14410 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14411 esac
14413 case $p in
14414 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14415 esac
14416 if test "$pre_test_object_deps_done" = no; then
14417 case ${prev} in
14418 -L | -R)
14419 # Internal compiler library paths should come after those
14420 # provided the user. The postdeps already come after the
14421 # user supplied libs so there is no need to process them.
14422 if test -z "$compiler_lib_search_path_CXX"; then
14423 compiler_lib_search_path_CXX="${prev}${p}"
14424 else
14425 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14428 # The "-l" case would never come before the object being
14429 # linked, so don't bother handling this case.
14430 esac
14431 else
14432 if test -z "$postdeps_CXX"; then
14433 postdeps_CXX="${prev}${p}"
14434 else
14435 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14438 prev=
14441 *.lto.$objext) ;; # Ignore GCC LTO objects
14442 *.$objext)
14443 # This assumes that the test object file only shows up
14444 # once in the compiler output.
14445 if test "$p" = "conftest.$objext"; then
14446 pre_test_object_deps_done=yes
14447 continue
14450 if test "$pre_test_object_deps_done" = no; then
14451 if test -z "$predep_objects_CXX"; then
14452 predep_objects_CXX="$p"
14453 else
14454 predep_objects_CXX="$predep_objects_CXX $p"
14456 else
14457 if test -z "$postdep_objects_CXX"; then
14458 postdep_objects_CXX="$p"
14459 else
14460 postdep_objects_CXX="$postdep_objects_CXX $p"
14465 *) ;; # Ignore the rest.
14467 esac
14468 done
14470 # Clean up.
14471 rm -f a.out a.exe
14472 else
14473 echo "libtool.m4: error: problem compiling CXX test program"
14476 $RM -f confest.$objext
14477 CFLAGS=$_lt_libdeps_save_CFLAGS
14479 # PORTME: override above test on systems where it is broken
14480 case $host_os in
14481 interix[3-9]*)
14482 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14483 # hack all around it, let's just trust "g++" to DTRT.
14484 predep_objects_CXX=
14485 postdep_objects_CXX=
14486 postdeps_CXX=
14489 linux*)
14490 case `$CC -V 2>&1 | sed 5q` in
14491 *Sun\ C*)
14492 # Sun C++ 5.9
14494 # The more standards-conforming stlport4 library is
14495 # incompatible with the Cstd library. Avoid specifying
14496 # it if it's in CXXFLAGS. Ignore libCrun as
14497 # -library=stlport4 depends on it.
14498 case " $CXX $CXXFLAGS " in
14499 *" -library=stlport4 "*)
14500 solaris_use_stlport4=yes
14502 esac
14504 if test "$solaris_use_stlport4" != yes; then
14505 postdeps_CXX='-library=Cstd -library=Crun'
14508 esac
14511 solaris*)
14512 case $cc_basename in
14513 CC* | sunCC*)
14514 # The more standards-conforming stlport4 library is
14515 # incompatible with the Cstd library. Avoid specifying
14516 # it if it's in CXXFLAGS. Ignore libCrun as
14517 # -library=stlport4 depends on it.
14518 case " $CXX $CXXFLAGS " in
14519 *" -library=stlport4 "*)
14520 solaris_use_stlport4=yes
14522 esac
14524 # Adding this requires a known-good setup of shared libraries for
14525 # Sun compiler versions before 5.6, else PIC objects from an old
14526 # archive will be linked into the output, leading to subtle bugs.
14527 if test "$solaris_use_stlport4" != yes; then
14528 postdeps_CXX='-library=Cstd -library=Crun'
14531 esac
14533 esac
14536 case " $postdeps_CXX " in
14537 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14538 esac
14539 compiler_lib_search_dirs_CXX=
14540 if test -n "${compiler_lib_search_path_CXX}"; then
14541 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14574 lt_prog_compiler_wl_CXX=
14575 lt_prog_compiler_pic_CXX=
14576 lt_prog_compiler_static_CXX=
14579 # C++ specific cases for pic, static, wl, etc.
14580 if test "$GXX" = yes; then
14581 lt_prog_compiler_wl_CXX='-Wl,'
14582 lt_prog_compiler_static_CXX='-static'
14584 case $host_os in
14585 aix*)
14586 # All AIX code is PIC.
14587 if test "$host_cpu" = ia64; then
14588 # AIX 5 now supports IA64 processor
14589 lt_prog_compiler_static_CXX='-Bstatic'
14593 amigaos*)
14594 case $host_cpu in
14595 powerpc)
14596 # see comment about AmigaOS4 .so support
14597 lt_prog_compiler_pic_CXX='-fPIC'
14599 m68k)
14600 # FIXME: we need at least 68020 code to build shared libraries, but
14601 # adding the `-m68020' flag to GCC prevents building anything better,
14602 # like `-m68040'.
14603 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14605 esac
14608 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14609 # PIC is the default for these OSes.
14611 mingw* | cygwin* | os2* | pw32* | cegcc*)
14612 # This hack is so that the source file can tell whether it is being
14613 # built for inclusion in a dll (and should export symbols for example).
14614 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14615 # (--disable-auto-import) libraries
14616 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14618 darwin* | rhapsody*)
14619 # PIC is the default on this platform
14620 # Common symbols not allowed in MH_DYLIB files
14621 lt_prog_compiler_pic_CXX='-fno-common'
14623 *djgpp*)
14624 # DJGPP does not support shared libraries at all
14625 lt_prog_compiler_pic_CXX=
14627 haiku*)
14628 # PIC is the default for Haiku.
14629 # The "-static" flag exists, but is broken.
14630 lt_prog_compiler_static_CXX=
14632 interix[3-9]*)
14633 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14634 # Instead, we relocate shared libraries at runtime.
14636 sysv4*MP*)
14637 if test -d /usr/nec; then
14638 lt_prog_compiler_pic_CXX=-Kconform_pic
14641 hpux*)
14642 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14643 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14644 # sets the default TLS model and affects inlining.
14645 case $host_cpu in
14646 hppa*64*)
14649 lt_prog_compiler_pic_CXX='-fPIC'
14651 esac
14653 *qnx* | *nto*)
14654 # QNX uses GNU C++, but need to define -shared option too, otherwise
14655 # it will coredump.
14656 lt_prog_compiler_pic_CXX='-fPIC -shared'
14659 lt_prog_compiler_pic_CXX='-fPIC'
14661 esac
14662 else
14663 case $host_os in
14664 aix[4-9]*)
14665 # All AIX code is PIC.
14666 if test "$host_cpu" = ia64; then
14667 # AIX 5 now supports IA64 processor
14668 lt_prog_compiler_static_CXX='-Bstatic'
14669 else
14670 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14673 chorus*)
14674 case $cc_basename in
14675 cxch68*)
14676 # Green Hills C++ Compiler
14677 # _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"
14679 esac
14681 mingw* | cygwin* | os2* | pw32* | cegcc*)
14682 # This hack is so that the source file can tell whether it is being
14683 # built for inclusion in a dll (and should export symbols for example).
14684 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14686 dgux*)
14687 case $cc_basename in
14688 ec++*)
14689 lt_prog_compiler_pic_CXX='-KPIC'
14691 ghcx*)
14692 # Green Hills C++ Compiler
14693 lt_prog_compiler_pic_CXX='-pic'
14697 esac
14699 freebsd* | dragonfly*)
14700 # FreeBSD uses GNU C++
14702 hpux9* | hpux10* | hpux11*)
14703 case $cc_basename in
14704 CC*)
14705 lt_prog_compiler_wl_CXX='-Wl,'
14706 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14707 if test "$host_cpu" != ia64; then
14708 lt_prog_compiler_pic_CXX='+Z'
14711 aCC*)
14712 lt_prog_compiler_wl_CXX='-Wl,'
14713 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14714 case $host_cpu in
14715 hppa*64*|ia64*)
14716 # +Z the default
14719 lt_prog_compiler_pic_CXX='+Z'
14721 esac
14725 esac
14727 interix*)
14728 # This is c89, which is MS Visual C++ (no shared libs)
14729 # Anyone wants to do a port?
14731 irix5* | irix6* | nonstopux*)
14732 case $cc_basename in
14733 CC*)
14734 lt_prog_compiler_wl_CXX='-Wl,'
14735 lt_prog_compiler_static_CXX='-non_shared'
14736 # CC pic flag -KPIC is the default.
14740 esac
14742 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14743 case $cc_basename in
14744 KCC*)
14745 # KAI C++ Compiler
14746 lt_prog_compiler_wl_CXX='--backend -Wl,'
14747 lt_prog_compiler_pic_CXX='-fPIC'
14749 ecpc* )
14750 # old Intel C++ for x86_64 which still supported -KPIC.
14751 lt_prog_compiler_wl_CXX='-Wl,'
14752 lt_prog_compiler_pic_CXX='-KPIC'
14753 lt_prog_compiler_static_CXX='-static'
14755 icpc* )
14756 # Intel C++, used to be incompatible with GCC.
14757 # ICC 10 doesn't accept -KPIC any more.
14758 lt_prog_compiler_wl_CXX='-Wl,'
14759 lt_prog_compiler_pic_CXX='-fPIC'
14760 lt_prog_compiler_static_CXX='-static'
14762 pgCC* | pgcpp*)
14763 # Portland Group C++ compiler
14764 lt_prog_compiler_wl_CXX='-Wl,'
14765 lt_prog_compiler_pic_CXX='-fpic'
14766 lt_prog_compiler_static_CXX='-Bstatic'
14768 cxx*)
14769 # Compaq C++
14770 # Make sure the PIC flag is empty. It appears that all Alpha
14771 # Linux and Compaq Tru64 Unix objects are PIC.
14772 lt_prog_compiler_pic_CXX=
14773 lt_prog_compiler_static_CXX='-non_shared'
14775 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14776 # IBM XL 8.0, 9.0 on PPC and BlueGene
14777 lt_prog_compiler_wl_CXX='-Wl,'
14778 lt_prog_compiler_pic_CXX='-qpic'
14779 lt_prog_compiler_static_CXX='-qstaticlink'
14782 case `$CC -V 2>&1 | sed 5q` in
14783 *Sun\ C*)
14784 # Sun C++ 5.9
14785 lt_prog_compiler_pic_CXX='-KPIC'
14786 lt_prog_compiler_static_CXX='-Bstatic'
14787 lt_prog_compiler_wl_CXX='-Qoption ld '
14789 esac
14791 esac
14793 lynxos*)
14795 m88k*)
14797 mvs*)
14798 case $cc_basename in
14799 cxx*)
14800 lt_prog_compiler_pic_CXX='-W c,exportall'
14804 esac
14806 netbsd* | netbsdelf*-gnu)
14808 *qnx* | *nto*)
14809 # QNX uses GNU C++, but need to define -shared option too, otherwise
14810 # it will coredump.
14811 lt_prog_compiler_pic_CXX='-fPIC -shared'
14813 osf3* | osf4* | osf5*)
14814 case $cc_basename in
14815 KCC*)
14816 lt_prog_compiler_wl_CXX='--backend -Wl,'
14818 RCC*)
14819 # Rational C++ 2.4.1
14820 lt_prog_compiler_pic_CXX='-pic'
14822 cxx*)
14823 # Digital/Compaq C++
14824 lt_prog_compiler_wl_CXX='-Wl,'
14825 # Make sure the PIC flag is empty. It appears that all Alpha
14826 # Linux and Compaq Tru64 Unix objects are PIC.
14827 lt_prog_compiler_pic_CXX=
14828 lt_prog_compiler_static_CXX='-non_shared'
14832 esac
14834 psos*)
14836 solaris*)
14837 case $cc_basename in
14838 CC* | sunCC*)
14839 # Sun C++ 4.2, 5.x and Centerline C++
14840 lt_prog_compiler_pic_CXX='-KPIC'
14841 lt_prog_compiler_static_CXX='-Bstatic'
14842 lt_prog_compiler_wl_CXX='-Qoption ld '
14844 gcx*)
14845 # Green Hills C++ Compiler
14846 lt_prog_compiler_pic_CXX='-PIC'
14850 esac
14852 sunos4*)
14853 case $cc_basename in
14854 CC*)
14855 # Sun C++ 4.x
14856 lt_prog_compiler_pic_CXX='-pic'
14857 lt_prog_compiler_static_CXX='-Bstatic'
14859 lcc*)
14860 # Lucid
14861 lt_prog_compiler_pic_CXX='-pic'
14865 esac
14867 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14868 case $cc_basename in
14869 CC*)
14870 lt_prog_compiler_wl_CXX='-Wl,'
14871 lt_prog_compiler_pic_CXX='-KPIC'
14872 lt_prog_compiler_static_CXX='-Bstatic'
14874 esac
14876 tandem*)
14877 case $cc_basename in
14878 NCC*)
14879 # NonStop-UX NCC 3.20
14880 lt_prog_compiler_pic_CXX='-KPIC'
14884 esac
14886 vxworks*)
14889 lt_prog_compiler_can_build_shared_CXX=no
14891 esac
14894 case $host_os in
14895 # For platforms which do not support PIC, -DPIC is meaningless:
14896 *djgpp*)
14897 lt_prog_compiler_pic_CXX=
14900 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14902 esac
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14905 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14906 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14907 $as_echo_n "(cached) " >&6
14908 else
14909 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14912 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14913 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14916 # Check to make sure the PIC flag actually works.
14918 if test -n "$lt_prog_compiler_pic_CXX"; then
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14920 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14921 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14922 $as_echo_n "(cached) " >&6
14923 else
14924 lt_cv_prog_compiler_pic_works_CXX=no
14925 ac_outfile=conftest.$ac_objext
14926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14927 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14928 # Insert the option either (1) after the last *FLAGS variable, or
14929 # (2) before a word containing "conftest.", or (3) at the end.
14930 # Note that $ac_compile itself does not contain backslashes and begins
14931 # with a dollar sign (not a hyphen), so the echo should work correctly.
14932 # The option is referenced via a variable to avoid confusing sed.
14933 lt_compile=`echo "$ac_compile" | $SED \
14934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14936 -e 's:$: $lt_compiler_flag:'`
14937 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14938 (eval "$lt_compile" 2>conftest.err)
14939 ac_status=$?
14940 cat conftest.err >&5
14941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942 if (exit $ac_status) && test -s "$ac_outfile"; then
14943 # The compiler can only warn and ignore the option if not recognized
14944 # So say no if there are warnings other than the usual output.
14945 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14946 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14947 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14948 lt_cv_prog_compiler_pic_works_CXX=yes
14951 $RM conftest*
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14955 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14957 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14958 case $lt_prog_compiler_pic_CXX in
14959 "" | " "*) ;;
14960 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14961 esac
14962 else
14963 lt_prog_compiler_pic_CXX=
14964 lt_prog_compiler_can_build_shared_CXX=no
14974 # Check to make sure the static flag actually works.
14976 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14978 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14979 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14980 $as_echo_n "(cached) " >&6
14981 else
14982 lt_cv_prog_compiler_static_works_CXX=no
14983 save_LDFLAGS="$LDFLAGS"
14984 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14985 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14986 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14987 # The linker can only warn and ignore the option if not recognized
14988 # So say no if there are warnings
14989 if test -s conftest.err; then
14990 # Append any errors to the config.log.
14991 cat conftest.err 1>&5
14992 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14993 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14994 if diff conftest.exp conftest.er2 >/dev/null; then
14995 lt_cv_prog_compiler_static_works_CXX=yes
14997 else
14998 lt_cv_prog_compiler_static_works_CXX=yes
15001 $RM -r conftest*
15002 LDFLAGS="$save_LDFLAGS"
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15006 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15008 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15010 else
15011 lt_prog_compiler_static_CXX=
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15018 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15019 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15020 $as_echo_n "(cached) " >&6
15021 else
15022 lt_cv_prog_compiler_c_o_CXX=no
15023 $RM -r conftest 2>/dev/null
15024 mkdir conftest
15025 cd conftest
15026 mkdir out
15027 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15029 lt_compiler_flag="-o out/conftest2.$ac_objext"
15030 # Insert the option either (1) after the last *FLAGS variable, or
15031 # (2) before a word containing "conftest.", or (3) at the end.
15032 # Note that $ac_compile itself does not contain backslashes and begins
15033 # with a dollar sign (not a hyphen), so the echo should work correctly.
15034 lt_compile=`echo "$ac_compile" | $SED \
15035 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15036 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15037 -e 's:$: $lt_compiler_flag:'`
15038 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15039 (eval "$lt_compile" 2>out/conftest.err)
15040 ac_status=$?
15041 cat out/conftest.err >&5
15042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15043 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15044 then
15045 # The compiler can only warn and ignore the option if not recognized
15046 # So say no if there are warnings
15047 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15048 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15049 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15050 lt_cv_prog_compiler_c_o_CXX=yes
15053 chmod u+w . 2>&5
15054 $RM conftest*
15055 # SGI C++ compiler will create directory out/ii_files/ for
15056 # template instantiation
15057 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15058 $RM out/* && rmdir out
15059 cd ..
15060 $RM -r conftest
15061 $RM conftest*
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15065 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15070 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15071 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15072 $as_echo_n "(cached) " >&6
15073 else
15074 lt_cv_prog_compiler_c_o_CXX=no
15075 $RM -r conftest 2>/dev/null
15076 mkdir conftest
15077 cd conftest
15078 mkdir out
15079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15081 lt_compiler_flag="-o out/conftest2.$ac_objext"
15082 # Insert the option either (1) after the last *FLAGS variable, or
15083 # (2) before a word containing "conftest.", or (3) at the end.
15084 # Note that $ac_compile itself does not contain backslashes and begins
15085 # with a dollar sign (not a hyphen), so the echo should work correctly.
15086 lt_compile=`echo "$ac_compile" | $SED \
15087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15089 -e 's:$: $lt_compiler_flag:'`
15090 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15091 (eval "$lt_compile" 2>out/conftest.err)
15092 ac_status=$?
15093 cat out/conftest.err >&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15096 then
15097 # The compiler can only warn and ignore the option if not recognized
15098 # So say no if there are warnings
15099 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15100 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15101 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15102 lt_cv_prog_compiler_c_o_CXX=yes
15105 chmod u+w . 2>&5
15106 $RM conftest*
15107 # SGI C++ compiler will create directory out/ii_files/ for
15108 # template instantiation
15109 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15110 $RM out/* && rmdir out
15111 cd ..
15112 $RM -r conftest
15113 $RM conftest*
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15117 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15122 hard_links="nottested"
15123 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15124 # do not overwrite the value of need_locks provided by the user
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15126 $as_echo_n "checking if we can lock with hard links... " >&6; }
15127 hard_links=yes
15128 $RM conftest*
15129 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15130 touch conftest.a
15131 ln conftest.a conftest.b 2>&5 || hard_links=no
15132 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15134 $as_echo "$hard_links" >&6; }
15135 if test "$hard_links" = no; then
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15137 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15138 need_locks=warn
15140 else
15141 need_locks=no
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15147 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15149 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15150 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15151 case $host_os in
15152 aix[4-9]*)
15153 # If we're using GNU nm, then we don't want the "-C" option.
15154 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15155 # Also, AIX nm treats weak defined symbols like other global defined
15156 # symbols, whereas GNU nm marks them as "W".
15157 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15158 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'
15159 else
15160 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'
15163 pw32*)
15164 export_symbols_cmds_CXX="$ltdll_cmds"
15166 cygwin* | mingw* | cegcc*)
15167 case $cc_basename in
15168 cl*)
15169 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15172 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'
15173 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15175 esac
15177 linux* | k*bsd*-gnu | gnu*)
15178 link_all_deplibs_CXX=no
15181 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15183 esac
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15186 $as_echo "$ld_shlibs_CXX" >&6; }
15187 test "$ld_shlibs_CXX" = no && can_build_shared=no
15189 with_gnu_ld_CXX=$with_gnu_ld
15197 # Do we need to explicitly link libc?
15199 case "x$archive_cmds_need_lc_CXX" in
15200 x|xyes)
15201 # Assume -lc should be added
15202 archive_cmds_need_lc_CXX=yes
15204 if test "$enable_shared" = yes && test "$GCC" = yes; then
15205 case $archive_cmds_CXX in
15206 *'~'*)
15207 # FIXME: we may have to deal with multi-command sequences.
15209 '$CC '*)
15210 # Test whether the compiler implicitly links with -lc since on some
15211 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15212 # to ld, don't add -lc before -lgcc.
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15214 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15215 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15216 $as_echo_n "(cached) " >&6
15217 else
15218 $RM conftest*
15219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15222 (eval $ac_compile) 2>&5
15223 ac_status=$?
15224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15225 test $ac_status = 0; } 2>conftest.err; then
15226 soname=conftest
15227 lib=conftest
15228 libobjs=conftest.$ac_objext
15229 deplibs=
15230 wl=$lt_prog_compiler_wl_CXX
15231 pic_flag=$lt_prog_compiler_pic_CXX
15232 compiler_flags=-v
15233 linker_flags=-v
15234 verstring=
15235 output_objdir=.
15236 libname=conftest
15237 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15238 allow_undefined_flag_CXX=
15239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15240 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15241 ac_status=$?
15242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15243 test $ac_status = 0; }
15244 then
15245 lt_cv_archive_cmds_need_lc_CXX=no
15246 else
15247 lt_cv_archive_cmds_need_lc_CXX=yes
15249 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15250 else
15251 cat conftest.err 1>&5
15253 $RM conftest*
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15257 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15258 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15260 esac
15263 esac
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15327 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15329 library_names_spec=
15330 libname_spec='lib$name'
15331 soname_spec=
15332 shrext_cmds=".so"
15333 postinstall_cmds=
15334 postuninstall_cmds=
15335 finish_cmds=
15336 finish_eval=
15337 shlibpath_var=
15338 shlibpath_overrides_runpath=unknown
15339 version_type=none
15340 dynamic_linker="$host_os ld.so"
15341 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15342 need_lib_prefix=unknown
15343 hardcode_into_libs=no
15345 # when you set need_version to no, make sure it does not cause -set_version
15346 # flags to be left without arguments
15347 need_version=unknown
15349 case $host_os in
15350 aix3*)
15351 version_type=linux # correct to gnu/linux during the next big refactor
15352 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15353 shlibpath_var=LIBPATH
15355 # AIX 3 has no versioning support, so we append a major version to the name.
15356 soname_spec='${libname}${release}${shared_ext}$major'
15359 aix[4-9]*)
15360 version_type=linux # correct to gnu/linux during the next big refactor
15361 need_lib_prefix=no
15362 need_version=no
15363 hardcode_into_libs=yes
15364 if test "$host_cpu" = ia64; then
15365 # AIX 5 supports IA64
15366 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15367 shlibpath_var=LD_LIBRARY_PATH
15368 else
15369 # With GCC up to 2.95.x, collect2 would create an import file
15370 # for dependence libraries. The import file would start with
15371 # the line `#! .'. This would cause the generated library to
15372 # depend on `.', always an invalid library. This was fixed in
15373 # development snapshots of GCC prior to 3.0.
15374 case $host_os in
15375 aix4 | aix4.[01] | aix4.[01].*)
15376 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15377 echo ' yes '
15378 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15380 else
15381 can_build_shared=no
15384 esac
15385 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15386 # soname into executable. Probably we can add versioning support to
15387 # collect2, so additional links can be useful in future.
15388 if test "$aix_use_runtimelinking" = yes; then
15389 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15390 # instead of lib<name>.a to let people know that these are not
15391 # typical AIX shared libraries.
15392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15393 else
15394 # We preserve .a as extension for shared libraries through AIX4.2
15395 # and later when we are not doing run time linking.
15396 library_names_spec='${libname}${release}.a $libname.a'
15397 soname_spec='${libname}${release}${shared_ext}$major'
15399 shlibpath_var=LIBPATH
15403 amigaos*)
15404 case $host_cpu in
15405 powerpc)
15406 # Since July 2007 AmigaOS4 officially supports .so libraries.
15407 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15410 m68k)
15411 library_names_spec='$libname.ixlibrary $libname.a'
15412 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15413 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'
15415 esac
15418 beos*)
15419 library_names_spec='${libname}${shared_ext}'
15420 dynamic_linker="$host_os ld.so"
15421 shlibpath_var=LIBRARY_PATH
15424 bsdi[45]*)
15425 version_type=linux # correct to gnu/linux during the next big refactor
15426 need_version=no
15427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15428 soname_spec='${libname}${release}${shared_ext}$major'
15429 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15430 shlibpath_var=LD_LIBRARY_PATH
15431 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15432 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15433 # the default ld.so.conf also contains /usr/contrib/lib and
15434 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15435 # libtool to hard-code these into programs
15438 cygwin* | mingw* | pw32* | cegcc*)
15439 version_type=windows
15440 shrext_cmds=".dll"
15441 need_version=no
15442 need_lib_prefix=no
15444 case $GCC,$cc_basename in
15445 yes,*)
15446 # gcc
15447 library_names_spec='$libname.dll.a'
15448 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15449 postinstall_cmds='base_file=`basename \${file}`~
15450 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15451 dldir=$destdir/`dirname \$dlpath`~
15452 test -d \$dldir || mkdir -p \$dldir~
15453 $install_prog $dir/$dlname \$dldir/$dlname~
15454 chmod a+x \$dldir/$dlname~
15455 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15456 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15458 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15459 dlpath=$dir/\$dldll~
15460 $RM \$dlpath'
15461 shlibpath_overrides_runpath=yes
15463 case $host_os in
15464 cygwin*)
15465 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15466 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15469 mingw* | cegcc*)
15470 # MinGW DLLs use traditional 'lib' prefix
15471 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15473 pw32*)
15474 # pw32 DLLs use 'pw' prefix rather than 'lib'
15475 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15477 esac
15478 dynamic_linker='Win32 ld.exe'
15481 *,cl*)
15482 # Native MSVC
15483 libname_spec='$name'
15484 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15485 library_names_spec='${libname}.dll.lib'
15487 case $build_os in
15488 mingw*)
15489 sys_lib_search_path_spec=
15490 lt_save_ifs=$IFS
15491 IFS=';'
15492 for lt_path in $LIB
15494 IFS=$lt_save_ifs
15495 # Let DOS variable expansion print the short 8.3 style file name.
15496 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15497 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15498 done
15499 IFS=$lt_save_ifs
15500 # Convert to MSYS style.
15501 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15503 cygwin*)
15504 # Convert to unix form, then to dos form, then back to unix form
15505 # but this time dos style (no spaces!) so that the unix form looks
15506 # like /cygdrive/c/PROGRA~1:/cygdr...
15507 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15508 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15509 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15512 sys_lib_search_path_spec="$LIB"
15513 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15514 # It is most probably a Windows format PATH.
15515 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15516 else
15517 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15519 # FIXME: find the short name or the path components, as spaces are
15520 # common. (e.g. "Program Files" -> "PROGRA~1")
15522 esac
15524 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15525 postinstall_cmds='base_file=`basename \${file}`~
15526 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15527 dldir=$destdir/`dirname \$dlpath`~
15528 test -d \$dldir || mkdir -p \$dldir~
15529 $install_prog $dir/$dlname \$dldir/$dlname'
15530 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15531 dlpath=$dir/\$dldll~
15532 $RM \$dlpath'
15533 shlibpath_overrides_runpath=yes
15534 dynamic_linker='Win32 link.exe'
15538 # Assume MSVC wrapper
15539 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15540 dynamic_linker='Win32 ld.exe'
15542 esac
15543 # FIXME: first we should search . and the directory the executable is in
15544 shlibpath_var=PATH
15547 darwin* | rhapsody*)
15548 dynamic_linker="$host_os dyld"
15549 version_type=darwin
15550 need_lib_prefix=no
15551 need_version=no
15552 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15553 soname_spec='${libname}${release}${major}$shared_ext'
15554 shlibpath_overrides_runpath=yes
15555 shlibpath_var=DYLD_LIBRARY_PATH
15556 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15558 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15561 dgux*)
15562 version_type=linux # correct to gnu/linux during the next big refactor
15563 need_lib_prefix=no
15564 need_version=no
15565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15566 soname_spec='${libname}${release}${shared_ext}$major'
15567 shlibpath_var=LD_LIBRARY_PATH
15570 freebsd* | dragonfly*)
15571 # DragonFly does not have aout. When/if they implement a new
15572 # versioning mechanism, adjust this.
15573 if test -x /usr/bin/objformat; then
15574 objformat=`/usr/bin/objformat`
15575 else
15576 case $host_os in
15577 freebsd[23].*) objformat=aout ;;
15578 *) objformat=elf ;;
15579 esac
15581 version_type=freebsd-$objformat
15582 case $version_type in
15583 freebsd-elf*)
15584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15585 need_version=no
15586 need_lib_prefix=no
15588 freebsd-*)
15589 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15590 need_version=yes
15592 esac
15593 shlibpath_var=LD_LIBRARY_PATH
15594 case $host_os in
15595 freebsd2.*)
15596 shlibpath_overrides_runpath=yes
15598 freebsd3.[01]* | freebsdelf3.[01]*)
15599 shlibpath_overrides_runpath=yes
15600 hardcode_into_libs=yes
15602 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15603 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15604 shlibpath_overrides_runpath=no
15605 hardcode_into_libs=yes
15607 *) # from 4.6 on, and DragonFly
15608 shlibpath_overrides_runpath=yes
15609 hardcode_into_libs=yes
15611 esac
15614 haiku*)
15615 version_type=linux # correct to gnu/linux during the next big refactor
15616 need_lib_prefix=no
15617 need_version=no
15618 dynamic_linker="$host_os runtime_loader"
15619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15620 soname_spec='${libname}${release}${shared_ext}$major'
15621 shlibpath_var=LIBRARY_PATH
15622 shlibpath_overrides_runpath=yes
15623 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15624 hardcode_into_libs=yes
15627 hpux9* | hpux10* | hpux11*)
15628 # Give a soname corresponding to the major version so that dld.sl refuses to
15629 # link against other versions.
15630 version_type=sunos
15631 need_lib_prefix=no
15632 need_version=no
15633 case $host_cpu in
15634 ia64*)
15635 shrext_cmds='.so'
15636 hardcode_into_libs=yes
15637 dynamic_linker="$host_os dld.so"
15638 shlibpath_var=LD_LIBRARY_PATH
15639 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15641 soname_spec='${libname}${release}${shared_ext}$major'
15642 if test "X$HPUX_IA64_MODE" = X32; then
15643 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15644 else
15645 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15647 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15649 hppa*64*)
15650 shrext_cmds='.sl'
15651 hardcode_into_libs=yes
15652 dynamic_linker="$host_os dld.sl"
15653 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15654 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15656 soname_spec='${libname}${release}${shared_ext}$major'
15657 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15658 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15661 shrext_cmds='.sl'
15662 dynamic_linker="$host_os dld.sl"
15663 shlibpath_var=SHLIB_PATH
15664 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15666 soname_spec='${libname}${release}${shared_ext}$major'
15668 esac
15669 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15670 postinstall_cmds='chmod 555 $lib'
15671 # or fails outright, so override atomically:
15672 install_override_mode=555
15675 interix[3-9]*)
15676 version_type=linux # correct to gnu/linux during the next big refactor
15677 need_lib_prefix=no
15678 need_version=no
15679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15680 soname_spec='${libname}${release}${shared_ext}$major'
15681 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15682 shlibpath_var=LD_LIBRARY_PATH
15683 shlibpath_overrides_runpath=no
15684 hardcode_into_libs=yes
15687 irix5* | irix6* | nonstopux*)
15688 case $host_os in
15689 nonstopux*) version_type=nonstopux ;;
15691 if test "$lt_cv_prog_gnu_ld" = yes; then
15692 version_type=linux # correct to gnu/linux during the next big refactor
15693 else
15694 version_type=irix
15695 fi ;;
15696 esac
15697 need_lib_prefix=no
15698 need_version=no
15699 soname_spec='${libname}${release}${shared_ext}$major'
15700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15701 case $host_os in
15702 irix5* | nonstopux*)
15703 libsuff= shlibsuff=
15706 case $LD in # libtool.m4 will add one of these switches to LD
15707 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15708 libsuff= shlibsuff= libmagic=32-bit;;
15709 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15710 libsuff=32 shlibsuff=N32 libmagic=N32;;
15711 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15712 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15713 *) libsuff= shlibsuff= libmagic=never-match;;
15714 esac
15716 esac
15717 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15718 shlibpath_overrides_runpath=no
15719 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15720 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15721 hardcode_into_libs=yes
15724 # No shared lib support for Linux oldld, aout, or coff.
15725 linux*oldld* | linux*aout* | linux*coff*)
15726 dynamic_linker=no
15729 # This must be glibc/ELF.
15730 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15731 version_type=linux # correct to gnu/linux during the next big refactor
15732 need_lib_prefix=no
15733 need_version=no
15734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15735 soname_spec='${libname}${release}${shared_ext}$major'
15736 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15737 shlibpath_var=LD_LIBRARY_PATH
15738 shlibpath_overrides_runpath=no
15740 # Some binutils ld are patched to set DT_RUNPATH
15741 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15742 $as_echo_n "(cached) " >&6
15743 else
15744 lt_cv_shlibpath_overrides_runpath=no
15745 save_LDFLAGS=$LDFLAGS
15746 save_libdir=$libdir
15747 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15748 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15750 /* end confdefs.h. */
15753 main ()
15757 return 0;
15759 _ACEOF
15760 if ac_fn_cxx_try_link "$LINENO"; then :
15761 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15762 lt_cv_shlibpath_overrides_runpath=yes
15765 rm -f core conftest.err conftest.$ac_objext \
15766 conftest$ac_exeext conftest.$ac_ext
15767 LDFLAGS=$save_LDFLAGS
15768 libdir=$save_libdir
15772 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15774 # This implies no fast_install, which is unacceptable.
15775 # Some rework will be needed to allow for fast_install
15776 # before this can be enabled.
15777 hardcode_into_libs=yes
15779 # Append ld.so.conf contents to the search path
15780 if test -f /etc/ld.so.conf; then
15781 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' ' '`
15782 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15785 # We used to test for /lib/ld.so.1 and disable shared libraries on
15786 # powerpc, because MkLinux only supported shared libraries with the
15787 # GNU dynamic linker. Since this was broken with cross compilers,
15788 # most powerpc-linux boxes support dynamic linking these days and
15789 # people can always --disable-shared, the test was removed, and we
15790 # assume the GNU/Linux dynamic linker is in use.
15791 dynamic_linker='GNU/Linux ld.so'
15794 netbsdelf*-gnu)
15795 version_type=linux
15796 need_lib_prefix=no
15797 need_version=no
15798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15799 soname_spec='${libname}${release}${shared_ext}$major'
15800 shlibpath_var=LD_LIBRARY_PATH
15801 shlibpath_overrides_runpath=no
15802 hardcode_into_libs=yes
15803 dynamic_linker='NetBSD ld.elf_so'
15806 netbsd*)
15807 version_type=sunos
15808 need_lib_prefix=no
15809 need_version=no
15810 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15813 dynamic_linker='NetBSD (a.out) ld.so'
15814 else
15815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15816 soname_spec='${libname}${release}${shared_ext}$major'
15817 dynamic_linker='NetBSD ld.elf_so'
15819 shlibpath_var=LD_LIBRARY_PATH
15820 shlibpath_overrides_runpath=yes
15821 hardcode_into_libs=yes
15824 newsos6)
15825 version_type=linux # correct to gnu/linux during the next big refactor
15826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15827 shlibpath_var=LD_LIBRARY_PATH
15828 shlibpath_overrides_runpath=yes
15831 *nto* | *qnx*)
15832 version_type=qnx
15833 need_lib_prefix=no
15834 need_version=no
15835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15836 soname_spec='${libname}${release}${shared_ext}$major'
15837 shlibpath_var=LD_LIBRARY_PATH
15838 shlibpath_overrides_runpath=no
15839 hardcode_into_libs=yes
15840 dynamic_linker='ldqnx.so'
15843 openbsd*)
15844 version_type=sunos
15845 sys_lib_dlsearch_path_spec="/usr/lib"
15846 need_lib_prefix=no
15847 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15848 case $host_os in
15849 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15850 *) need_version=no ;;
15851 esac
15852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15853 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15854 shlibpath_var=LD_LIBRARY_PATH
15855 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15856 case $host_os in
15857 openbsd2.[89] | openbsd2.[89].*)
15858 shlibpath_overrides_runpath=no
15861 shlibpath_overrides_runpath=yes
15863 esac
15864 else
15865 shlibpath_overrides_runpath=yes
15869 os2*)
15870 libname_spec='$name'
15871 shrext_cmds=".dll"
15872 need_lib_prefix=no
15873 library_names_spec='$libname${shared_ext} $libname.a'
15874 dynamic_linker='OS/2 ld.exe'
15875 shlibpath_var=LIBPATH
15878 osf3* | osf4* | osf5*)
15879 version_type=osf
15880 need_lib_prefix=no
15881 need_version=no
15882 soname_spec='${libname}${release}${shared_ext}$major'
15883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15884 shlibpath_var=LD_LIBRARY_PATH
15885 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15886 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15889 rdos*)
15890 dynamic_linker=no
15893 solaris*)
15894 version_type=linux # correct to gnu/linux during the next big refactor
15895 need_lib_prefix=no
15896 need_version=no
15897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15898 soname_spec='${libname}${release}${shared_ext}$major'
15899 shlibpath_var=LD_LIBRARY_PATH
15900 shlibpath_overrides_runpath=yes
15901 hardcode_into_libs=yes
15902 # ldd complains unless libraries are executable
15903 postinstall_cmds='chmod +x $lib'
15906 sunos4*)
15907 version_type=sunos
15908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15909 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15910 shlibpath_var=LD_LIBRARY_PATH
15911 shlibpath_overrides_runpath=yes
15912 if test "$with_gnu_ld" = yes; then
15913 need_lib_prefix=no
15915 need_version=yes
15918 sysv4 | sysv4.3*)
15919 version_type=linux # correct to gnu/linux during the next big refactor
15920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15921 soname_spec='${libname}${release}${shared_ext}$major'
15922 shlibpath_var=LD_LIBRARY_PATH
15923 case $host_vendor in
15924 sni)
15925 shlibpath_overrides_runpath=no
15926 need_lib_prefix=no
15927 runpath_var=LD_RUN_PATH
15929 siemens)
15930 need_lib_prefix=no
15932 motorola)
15933 need_lib_prefix=no
15934 need_version=no
15935 shlibpath_overrides_runpath=no
15936 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15938 esac
15941 sysv4*MP*)
15942 if test -d /usr/nec ;then
15943 version_type=linux # correct to gnu/linux during the next big refactor
15944 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15945 soname_spec='$libname${shared_ext}.$major'
15946 shlibpath_var=LD_LIBRARY_PATH
15950 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15951 version_type=freebsd-elf
15952 need_lib_prefix=no
15953 need_version=no
15954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15955 soname_spec='${libname}${release}${shared_ext}$major'
15956 shlibpath_var=LD_LIBRARY_PATH
15957 shlibpath_overrides_runpath=yes
15958 hardcode_into_libs=yes
15959 if test "$with_gnu_ld" = yes; then
15960 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15961 else
15962 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15963 case $host_os in
15964 sco3.2v5*)
15965 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15967 esac
15969 sys_lib_dlsearch_path_spec='/usr/lib'
15972 tpf*)
15973 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15974 version_type=linux # correct to gnu/linux during the next big refactor
15975 need_lib_prefix=no
15976 need_version=no
15977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15978 shlibpath_var=LD_LIBRARY_PATH
15979 shlibpath_overrides_runpath=no
15980 hardcode_into_libs=yes
15983 uts4*)
15984 version_type=linux # correct to gnu/linux during the next big refactor
15985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15986 soname_spec='${libname}${release}${shared_ext}$major'
15987 shlibpath_var=LD_LIBRARY_PATH
15991 dynamic_linker=no
15993 esac
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15995 $as_echo "$dynamic_linker" >&6; }
15996 test "$dynamic_linker" = no && can_build_shared=no
15998 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15999 if test "$GCC" = yes; then
16000 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16003 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16004 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16006 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16007 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16048 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16049 hardcode_action_CXX=
16050 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16051 test -n "$runpath_var_CXX" ||
16052 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16054 # We can hardcode non-existent directories.
16055 if test "$hardcode_direct_CXX" != no &&
16056 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16057 # have to relink, otherwise we might link with an installed library
16058 # when we should be linking with a yet-to-be-installed one
16059 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16060 test "$hardcode_minus_L_CXX" != no; then
16061 # Linking always hardcodes the temporary library directory.
16062 hardcode_action_CXX=relink
16063 else
16064 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16065 hardcode_action_CXX=immediate
16067 else
16068 # We cannot hardcode anything, or else we can only hardcode existing
16069 # directories.
16070 hardcode_action_CXX=unsupported
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16073 $as_echo "$hardcode_action_CXX" >&6; }
16075 if test "$hardcode_action_CXX" = relink ||
16076 test "$inherit_rpath_CXX" = yes; then
16077 # Fast installation is not supported
16078 enable_fast_install=no
16079 elif test "$shlibpath_overrides_runpath" = yes ||
16080 test "$enable_shared" = no; then
16081 # Fast installation is not necessary
16082 enable_fast_install=needless
16091 fi # test -n "$compiler"
16093 CC=$lt_save_CC
16094 CFLAGS=$lt_save_CFLAGS
16095 LDCXX=$LD
16096 LD=$lt_save_LD
16097 GCC=$lt_save_GCC
16098 with_gnu_ld=$lt_save_with_gnu_ld
16099 lt_cv_path_LDCXX=$lt_cv_path_LD
16100 lt_cv_path_LD=$lt_save_path_LD
16101 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16102 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16103 fi # test "$_lt_caught_CXX_error" != yes
16105 ac_ext=c
16106 ac_cpp='$CPP $CPPFLAGS'
16107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16125 ac_config_commands="$ac_config_commands libtool"
16130 # Only expand once:
16134 # check for the presence of zlib
16136 # Handle user hints
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if zlib is wanted" >&5
16139 $as_echo_n "checking if zlib is wanted... " >&6; }
16141 # Check whether --with-zlib was given.
16142 if test "${with_zlib+set}" = set; then :
16143 withval=$with_zlib; if test "$withval" != no ; then
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16145 $as_echo "yes" >&6; }
16146 ZLIB_HOME="$withval"
16147 else
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16149 $as_echo "no" >&6; }
16151 else
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16154 $as_echo "yes" >&6; }
16155 ZLIB_HOME=/usr/local
16156 if test ! -f "${ZLIB_HOME}/include/zlib.h"
16157 then
16158 ZLIB_HOME=/usr
16165 # Locate zlib, if wanted
16169 if test -n "${ZLIB_HOME}"
16170 then
16171 ZLIB_OLD_LDFLAGS=$LDFLAGS
16172 ZLIB_OLD_LIBS=$LIBS
16173 ZLIB_OLD_CPPFLAGS=$LDFLAGS
16175 LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
16176 CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
16177 CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
16179 ac_ext=c
16180 ac_cpp='$CPP $CPPFLAGS'
16181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
16186 $as_echo_n "checking for inflateEnd in -lz... " >&6; }
16187 if ${ac_cv_lib_z_inflateEnd+:} false; then :
16188 $as_echo_n "(cached) " >&6
16189 else
16190 ac_check_lib_save_LIBS=$LIBS
16191 LIBS="-lz $LIBS"
16192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16193 /* end confdefs.h. */
16195 /* Override any GCC internal prototype to avoid an error.
16196 Use char because int might match the return type of a GCC
16197 builtin and then its argument prototype would still apply. */
16198 #ifdef __cplusplus
16199 extern "C"
16200 #endif
16201 char inflateEnd ();
16203 main ()
16205 return inflateEnd ();
16207 return 0;
16209 _ACEOF
16210 if ac_fn_c_try_link "$LINENO"; then :
16211 ac_cv_lib_z_inflateEnd=yes
16212 else
16213 ac_cv_lib_z_inflateEnd=no
16215 rm -f core conftest.err conftest.$ac_objext \
16216 conftest$ac_exeext conftest.$ac_ext
16217 LIBS=$ac_check_lib_save_LIBS
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
16220 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
16221 if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
16222 zlib_cv_libz=yes
16223 else
16224 zlib_cv_libz=no
16227 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
16228 if test "x$ac_cv_header_zlib_h" = xyes; then :
16229 zlib_cv_zlib_h=yes
16230 else
16231 zlib_cv_zlib_h=no
16235 ac_ext=c
16236 ac_cpp='$CPP $CPPFLAGS'
16237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16238 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16239 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16241 if test "$zlib_cv_libz" = "yes" -a "$zlib_cv_zlib_h" = "yes"
16242 then
16244 # If both library and header were found, use them
16246 # AC_CHECK_LIB(z, inflateEnd)
16247 # AC_MSG_CHECKING(zlib in ${ZLIB_HOME})
16248 # AC_MSG_RESULT(ok)
16249 ZLIB_CPPFLAGS="-I${ZLIB_HOME}/include"
16250 ZLIB_LDFLAGS="-L${ZLIB_HOME}/lib"
16251 ZLIB_LIBS="-lz"
16255 else
16257 # If either header or library was not found, revert and bomb
16259 as_fn_error $? "either specify a valid zlib installation with --with-zlib=DIR or disable zlib usage with --without-zlib" "$LINENO" 5
16261 LDFLAGS="$ZLIB_OLD_LDFLAGS"
16262 CPPFLAGS="$ZLIB_OLD_CPPFLAGS"
16263 LIBS="$ZLIB_OLD_LIBS"
16268 # This macro checks for omniorb and sets various defines, please
16269 # consult config/RSSH_CHECK_OMNIORB for more details
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether using Sun Worckshop C++ compiler" >&5
16272 $as_echo_n "checking whether using Sun Worckshop C++ compiler... " >&6; }
16273 if ${rssh_cv_check_sunpro_cc+:} false; then :
16274 $as_echo_n "(cached) " >&6
16275 else
16277 ac_ext=cpp
16278 ac_cpp='$CXXCPP $CPPFLAGS'
16279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16284 /* end confdefs.h. */
16287 main ()
16289 #ifndef __SUNPRO_CC
16290 # include "error: this is not Sun Workshop."
16291 #endif
16294 return 0;
16296 _ACEOF
16297 if ac_fn_cxx_try_compile "$LINENO"; then :
16298 rssh_cv_check_sunpro_cc=yes
16299 else
16300 rssh_cv_check_sunpro_cc=no
16302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16303 ac_ext=cpp
16304 ac_cpp='$CXXCPP $CPPFLAGS'
16305 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16306 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16307 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rssh_cv_check_sunpro_cc" >&5
16311 $as_echo "$rssh_cv_check_sunpro_cc" >&6; }
16312 if test ${rssh_cv_check_sunpro_cc} = yes
16313 then
16316 else
16323 ac_fn_cxx_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
16324 if test "x$ac_cv_header_pthread_h" = xyes; then :
16326 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
16331 if test x$rssh_cv_check_sunpro_c = xyes
16332 then
16333 CFLAGS_PTHREADS="-mt"
16335 if test x$rssh_cv_check_sunpro_cc = xyes
16336 then
16337 CXXFLAGS_PTHREADS="-mt"
16339 case $build_os in
16340 freebsd*)
16341 CFLAGS_PTHREADS="-pthread"
16342 CXXFLAGS_PTHREADS="-pthread"
16343 freebsd_pthreads=yes
16346 freebsd_pthreads=no
16348 esac
16349 if test x$freebsd_pthreads = xno
16350 then
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16352 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16353 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
16354 $as_echo_n "(cached) " >&6
16355 else
16356 ac_check_lib_save_LIBS=$LIBS
16357 LIBS="-lpthread $LIBS"
16358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16359 /* end confdefs.h. */
16361 /* Override any GCC internal prototype to avoid an error.
16362 Use char because int might match the return type of a GCC
16363 builtin and then its argument prototype would still apply. */
16364 #ifdef __cplusplus
16365 extern "C"
16366 #endif
16367 char pthread_create ();
16369 main ()
16371 return pthread_create ();
16373 return 0;
16375 _ACEOF
16376 if ac_fn_cxx_try_link "$LINENO"; then :
16377 ac_cv_lib_pthread_pthread_create=yes
16378 else
16379 ac_cv_lib_pthread_pthread_create=no
16381 rm -f core conftest.err conftest.$ac_objext \
16382 conftest$ac_exeext conftest.$ac_ext
16383 LIBS=$ac_check_lib_save_LIBS
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16386 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16387 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16388 LIBS_PTHREADS="-lpthread"
16392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
16393 $as_echo_n "checking for nanosleep in -lposix4... " >&6; }
16394 if ${ac_cv_lib_posix4_nanosleep+:} false; then :
16395 $as_echo_n "(cached) " >&6
16396 else
16397 ac_check_lib_save_LIBS=$LIBS
16398 LIBS="-lposix4 $LIBS"
16399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16400 /* end confdefs.h. */
16402 /* Override any GCC internal prototype to avoid an error.
16403 Use char because int might match the return type of a GCC
16404 builtin and then its argument prototype would still apply. */
16405 #ifdef __cplusplus
16406 extern "C"
16407 #endif
16408 char nanosleep ();
16410 main ()
16412 return nanosleep ();
16414 return 0;
16416 _ACEOF
16417 if ac_fn_cxx_try_link "$LINENO"; then :
16418 ac_cv_lib_posix4_nanosleep=yes
16419 else
16420 ac_cv_lib_posix4_nanosleep=no
16422 rm -f core conftest.err conftest.$ac_objext \
16423 conftest$ac_exeext conftest.$ac_ext
16424 LIBS=$ac_check_lib_save_LIBS
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
16427 $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
16428 if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then :
16429 LIBS_PTHREADS="$LIBS_PTHREADS -lposix4"
16440 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
16441 if test -n "$ac_tool_prefix"; then
16442 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
16443 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16445 $as_echo_n "checking for $ac_word... " >&6; }
16446 if ${ac_cv_path_PKG_CONFIG+:} false; then :
16447 $as_echo_n "(cached) " >&6
16448 else
16449 case $PKG_CONFIG in
16450 [\\/]* | ?:[\\/]*)
16451 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16455 for as_dir in $PATH
16457 IFS=$as_save_IFS
16458 test -z "$as_dir" && as_dir=.
16459 for ac_exec_ext in '' $ac_executable_extensions; do
16460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16461 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16463 break 2
16465 done
16466 done
16467 IFS=$as_save_IFS
16470 esac
16472 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16473 if test -n "$PKG_CONFIG"; then
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16475 $as_echo "$PKG_CONFIG" >&6; }
16476 else
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16478 $as_echo "no" >&6; }
16483 if test -z "$ac_cv_path_PKG_CONFIG"; then
16484 ac_pt_PKG_CONFIG=$PKG_CONFIG
16485 # Extract the first word of "pkg-config", so it can be a program name with args.
16486 set dummy pkg-config; ac_word=$2
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16488 $as_echo_n "checking for $ac_word... " >&6; }
16489 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
16490 $as_echo_n "(cached) " >&6
16491 else
16492 case $ac_pt_PKG_CONFIG in
16493 [\\/]* | ?:[\\/]*)
16494 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
16497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16498 for as_dir in $PATH
16500 IFS=$as_save_IFS
16501 test -z "$as_dir" && as_dir=.
16502 for ac_exec_ext in '' $ac_executable_extensions; do
16503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16504 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16506 break 2
16508 done
16509 done
16510 IFS=$as_save_IFS
16513 esac
16515 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
16516 if test -n "$ac_pt_PKG_CONFIG"; then
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
16518 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
16519 else
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16521 $as_echo "no" >&6; }
16524 if test "x$ac_pt_PKG_CONFIG" = x; then
16525 PKG_CONFIG=""
16526 else
16527 case $cross_compiling:$ac_tool_warned in
16528 yes:)
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16531 ac_tool_warned=yes ;;
16532 esac
16533 PKG_CONFIG=$ac_pt_PKG_CONFIG
16535 else
16536 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
16540 if test -n "$PKG_CONFIG"; then
16541 _pkg_min_version=0.9.0
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
16543 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
16544 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16546 $as_echo "yes" >&6; }
16547 else
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16549 $as_echo "no" >&6; }
16550 PKG_CONFIG=""
16561 # Check whether --with-omni was given.
16562 if test "${with_omni+set}" = set; then :
16563 withval=$with_omni; \
16564 OMNI_PREFIX=${with_omni}
16565 else
16566 OMNI_PREFIX=/usr/local
16570 if test "x$OMNI_ROOT" = "x"
16571 then
16572 if test "x$OMNI_PREFIX" = "x"
16573 then
16574 OMNI_ROOT="/usr/local"
16575 else
16576 OMNI_ROOT="$OMNI_PREFIX"
16580 if test "x$OMNI_PREFIX" = "xno"
16581 then
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: omniORB is disabled" >&5
16583 $as_echo "omniORB is disabled" >&6; }
16584 omni=no
16585 else
16588 ac_ext=cpp
16589 ac_cpp='$CXXCPP $CPPFLAGS'
16590 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16591 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16592 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16595 svCXXCPPFLAGS=$CXXCPPFLAGS
16596 svCXXFLAGS=$CXXFLAGS
16597 svCPPFLAGS=$CPPFLAGS
16598 svLIBS=$LIBS
16599 svLDFLAGS=$LDFLAGS
16600 svRSSH_ROLLBACK=$rssh_rollback
16601 rssh_rollback="true"
16603 ORB_INCLUDES="-I$OMNI_ROOT/include"
16604 CXXCPPFLAGS="$CXXCPPFLAGS -I$OMNI_ROOT/include "
16605 CPPFLAGS="$CPPFLAGS -I$OMNI_ROOT/include "
16610 if test -z "$rssh_enable_pthreads_done"
16611 then
16612 CFLAGS="$CFLAGS $CFLAGS_PTHREADS"
16613 CXXFLAGS="$CXXFLAGS $CXXFLAGS_PTHREADS"
16614 LIBS="$LIBS $LIBS_PTHREADS"
16616 rssh_enable_pthreads_done=yes
16618 rssh_rollback="$rssh_rollback; rssh_enable_pthreads_done="
16621 case $build_cpu in
16622 sparc*)
16624 $as_echo "#define __sparc__ 1" >>confdefs.h
16626 IDLCXXFLAGS="$IDLCXXFLAGS -D__sparc__"
16628 "i686"|"i586"|"i486"|"i386")
16630 $as_echo "#define __x86__ 1" >>confdefs.h
16632 IDLCXXFLAGS="$IDLCXXFLAGS -D__x86__"
16634 esac
16635 SL_SUFFIX=so
16636 case $build_os in
16637 darwin*)
16639 $as_echo "#define __darwin__ 1" >>confdefs.h
16641 IDLCXXFLAGS="$IDLCXXFLAGS -D__darwin__"
16642 SL_SUFFIX=dylib
16644 solaris*)
16646 $as_echo "#define __sunos__ 1" >>confdefs.h
16648 IDLCXXFLAGS="$IDLCXXFLAGS -D__sunos__"
16649 __OSVERSION__=5
16651 cat >>confdefs.h <<_ACEOF
16652 #define __OSVERSION__ $__OSVERSION__
16653 _ACEOF
16655 IDLCXXFLAGS="$IDLCXXFLAGS -D__OSVERSION__=5"
16657 freebsd*)
16659 $as_echo "#define __freebsd__ 1" >>confdefs.h
16661 IDLCXXFLAGS="$IDLCXXFLAGS -D__freebsd__"
16663 hpux*)
16665 $as_echo "#define __hpux__ 1" >>confdefs.h
16667 IDLCXXFLAGS="$IDLCXXFLAGS -AA -mt -D__hpux__ -D__hppa__ -D__OMNIORB4__"
16668 __OSVERSION__=11
16670 cat >>confdefs.h <<_ACEOF
16671 #define __OSVERSION__ $__OSVERSION__
16672 _ACEOF
16674 IDLCXXFLAGS="$IDLCXXFLAGS -D__OSVERSION__=11"
16675 SL_SUFFIX=sl
16677 esac
16681 CXXCPPFLAGS="$CXXCPPFLAGS $IDLCXXFLAGS"
16683 ac_fn_cxx_check_header_mongrel "$LINENO" "omniORB4/CORBA.h" "ac_cv_header_omniORB4_CORBA_h" "$ac_includes_default"
16684 if test "x$ac_cv_header_omniORB4_CORBA_h" = xyes; then :
16685 omni=yes
16686 else
16687 omni=no
16692 if test "x$omni" = "xyes"
16693 then
16694 ORB_LIBDIR="$OMNI_ROOT/lib"
16695 if test ! -r "$ORB_LIBDIR/libomniORB4.$SL_SUFFIX"
16696 then
16697 for i in $OMNI_ROOT/lib/*/lib*.$SL_SUFFIX
16699 ORB_LIBDIR=`dirname $i`
16700 break;
16701 done
16704 LIBS="$LIBS -lomnithread"
16705 svLIBS=$LIBS
16706 LIBS="-L$ORB_LIBDIR $LIBS"
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omnithreads" >&5
16709 $as_echo_n "checking for omnithreads... " >&6; }
16710 if ${rssh_cv_check_omnithreads+:} false; then :
16711 $as_echo_n "(cached) " >&6
16712 else
16713 rssh_enable_pthreads_done=""
16717 if test -z "$rssh_enable_pthreads_done"
16718 then
16719 CFLAGS="$CFLAGS $CFLAGS_PTHREADS"
16720 CXXFLAGS="$CXXFLAGS $CXXFLAGS_PTHREADS"
16721 LIBS="$LIBS $LIBS_PTHREADS"
16723 rssh_enable_pthreads_done=yes
16725 rssh_rollback="$rssh_rollback; rssh_enable_pthreads_done="
16728 ac_ext=cpp
16729 ac_cpp='$CXXCPP $CPPFLAGS'
16730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16735 /* end confdefs.h. */
16736 #include <omnithread.h>
16739 main ()
16741 omni_mutex my_mutex
16743 return 0;
16745 _ACEOF
16746 if ac_fn_cxx_try_link "$LINENO"; then :
16747 rssh_cv_check_omnithreads=yes
16748 else
16749 rssh_cv_check_omnithreads=no
16751 rm -f core conftest.err conftest.$ac_objext \
16752 conftest$ac_exeext conftest.$ac_ext
16753 ac_ext=cpp
16754 ac_cpp='$CXXCPP $CPPFLAGS'
16755 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16756 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16757 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rssh_cv_check_omnithreads" >&5
16762 $as_echo "$rssh_cv_check_omnithreads" >&6; }
16763 if test ! $rssh_cv_check_omnithreads = yes
16764 then
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"omnithreads not found\"" >&5
16766 $as_echo "\"omnithreads not found\"" >&6; }
16767 omni_lib=no
16769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
16770 $as_echo_n "checking for socket in -lsocket... " >&6; }
16771 if ${ac_cv_lib_socket_socket+:} false; then :
16772 $as_echo_n "(cached) " >&6
16773 else
16774 ac_check_lib_save_LIBS=$LIBS
16775 LIBS="-lsocket $LIBS"
16776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16777 /* end confdefs.h. */
16779 /* Override any GCC internal prototype to avoid an error.
16780 Use char because int might match the return type of a GCC
16781 builtin and then its argument prototype would still apply. */
16782 #ifdef __cplusplus
16783 extern "C"
16784 #endif
16785 char socket ();
16787 main ()
16789 return socket ();
16791 return 0;
16793 _ACEOF
16794 if ac_fn_cxx_try_link "$LINENO"; then :
16795 ac_cv_lib_socket_socket=yes
16796 else
16797 ac_cv_lib_socket_socket=no
16799 rm -f core conftest.err conftest.$ac_objext \
16800 conftest$ac_exeext conftest.$ac_ext
16801 LIBS=$ac_check_lib_save_LIBS
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
16804 $as_echo "$ac_cv_lib_socket_socket" >&6; }
16805 if test "x$ac_cv_lib_socket_socket" = xyes; then :
16806 LIBS="-lsocket $LIBS"
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
16810 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
16811 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
16812 $as_echo_n "(cached) " >&6
16813 else
16814 ac_check_lib_save_LIBS=$LIBS
16815 LIBS="-lnsl $LIBS"
16816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16817 /* end confdefs.h. */
16819 /* Override any GCC internal prototype to avoid an error.
16820 Use char because int might match the return type of a GCC
16821 builtin and then its argument prototype would still apply. */
16822 #ifdef __cplusplus
16823 extern "C"
16824 #endif
16825 char gethostbyname ();
16827 main ()
16829 return gethostbyname ();
16831 return 0;
16833 _ACEOF
16834 if ac_fn_cxx_try_link "$LINENO"; then :
16835 ac_cv_lib_nsl_gethostbyname=yes
16836 else
16837 ac_cv_lib_nsl_gethostbyname=no
16839 rm -f core conftest.err conftest.$ac_objext \
16840 conftest$ac_exeext conftest.$ac_ext
16841 LIBS=$ac_check_lib_save_LIBS
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
16844 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
16845 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
16846 LIBS="-lnsl $LIBS"
16850 ORB_LDFLAGS="-L$ORB_LIBDIR"
16851 LIBS="$ORB_LDFLAGS -lomniORB4 -lomniDynamic4 -lCOS4 $svLIBS $LIBS"
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with omniORB4" >&5
16853 $as_echo_n "checking whether we can link with omniORB4... " >&6; }
16854 if ${rssh_cv_check_omniORBlib+:} false; then :
16855 $as_echo_n "(cached) " >&6
16856 else
16857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16858 /* end confdefs.h. */
16859 #include <omniORB4/CORBA.h>
16862 main ()
16864 CORBA::ORB_var orb
16866 return 0;
16868 _ACEOF
16869 if ac_fn_cxx_try_link "$LINENO"; then :
16870 rssh_cv_check_omniORBlib=yes
16871 else
16872 rssh_cv_check_omniORBlib=no
16875 rm -f core conftest.err conftest.$ac_objext \
16876 conftest$ac_exeext conftest.$ac_ext
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rssh_cv_check_omniORBlib" >&5
16880 $as_echo "$rssh_cv_check_omniORBlib" >&6; }
16882 if test ! $rssh_cv_check_omniORBlib = yes
16883 then
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"omniORB libs not found\"" >&5
16885 $as_echo "\"omniORB libs not found\"" >&6; }
16886 omni_lib=no
16890 ORB_LIBS="$ORB_LDFLAGS -lomniORB4 -lomnithread"
16893 if test "x$omni_lib" = "xno"
16894 then
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: omniORB library linking failed" >&5
16896 $as_echo "omniORB library linking failed" >&6; }
16897 omni="no"
16904 export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$OMNI_ROOT/lib/pkgconfig
16906 pkg_failed=no
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omniORB4" >&5
16908 $as_echo_n "checking for omniORB4... " >&6; }
16910 if test -n "$omniORB4_CFLAGS"; then
16911 pkg_cv_omniORB4_CFLAGS="$omniORB4_CFLAGS"
16912 elif test -n "$PKG_CONFIG"; then
16913 if test -n "$PKG_CONFIG" && \
16914 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"omniORB4 >= 4.1.2\""; } >&5
16915 ($PKG_CONFIG --exists --print-errors "omniORB4 >= 4.1.2") 2>&5
16916 ac_status=$?
16917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16918 test $ac_status = 0; }; then
16919 pkg_cv_omniORB4_CFLAGS=`$PKG_CONFIG --cflags "omniORB4 >= 4.1.2" 2>/dev/null`
16920 test "x$?" != "x0" && pkg_failed=yes
16921 else
16922 pkg_failed=yes
16924 else
16925 pkg_failed=untried
16927 if test -n "$omniORB4_LIBS"; then
16928 pkg_cv_omniORB4_LIBS="$omniORB4_LIBS"
16929 elif test -n "$PKG_CONFIG"; then
16930 if test -n "$PKG_CONFIG" && \
16931 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"omniORB4 >= 4.1.2\""; } >&5
16932 ($PKG_CONFIG --exists --print-errors "omniORB4 >= 4.1.2") 2>&5
16933 ac_status=$?
16934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16935 test $ac_status = 0; }; then
16936 pkg_cv_omniORB4_LIBS=`$PKG_CONFIG --libs "omniORB4 >= 4.1.2" 2>/dev/null`
16937 test "x$?" != "x0" && pkg_failed=yes
16938 else
16939 pkg_failed=yes
16941 else
16942 pkg_failed=untried
16947 if test $pkg_failed = yes; then
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16949 $as_echo "no" >&6; }
16951 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16952 _pkg_short_errors_supported=yes
16953 else
16954 _pkg_short_errors_supported=no
16956 if test $_pkg_short_errors_supported = yes; then
16957 omniORB4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "omniORB4 >= 4.1.2" 2>&1`
16958 else
16959 omniORB4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "omniORB4 >= 4.1.2" 2>&1`
16961 # Put the nasty error message in config.log where it belongs
16962 echo "$omniORB4_PKG_ERRORS" >&5
16964 as_fn_error $? "Package requirements (omniORB4 >= 4.1.2) were not met:
16966 $omniORB4_PKG_ERRORS
16968 Consider adjusting the PKG_CONFIG_PATH environment variable if you
16969 installed software in a non-standard prefix.
16971 Alternatively, you may set the environment variables omniORB4_CFLAGS
16972 and omniORB4_LIBS to avoid the need to call pkg-config.
16973 See the pkg-config man page for more details." "$LINENO" 5
16974 elif test $pkg_failed = untried; then
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16976 $as_echo "no" >&6; }
16977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16979 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
16980 is in your PATH or set the PKG_CONFIG environment variable to the full
16981 path to pkg-config.
16983 Alternatively, you may set the environment variables omniORB4_CFLAGS
16984 and omniORB4_LIBS to avoid the need to call pkg-config.
16985 See the pkg-config man page for more details.
16987 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
16988 See \`config.log' for more details" "$LINENO" 5; }
16989 else
16990 omniORB4_CFLAGS=$pkg_cv_omniORB4_CFLAGS
16991 omniORB4_LIBS=$pkg_cv_omniORB4_LIBS
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16993 $as_echo "yes" >&6; }
16997 pkg_failed=no
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omniCOS4" >&5
16999 $as_echo_n "checking for omniCOS4... " >&6; }
17001 if test -n "$omniCOS4_CFLAGS"; then
17002 pkg_cv_omniCOS4_CFLAGS="$omniCOS4_CFLAGS"
17003 elif test -n "$PKG_CONFIG"; then
17004 if test -n "$PKG_CONFIG" && \
17005 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"omniCOS4 >= 4.1.2\""; } >&5
17006 ($PKG_CONFIG --exists --print-errors "omniCOS4 >= 4.1.2") 2>&5
17007 ac_status=$?
17008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17009 test $ac_status = 0; }; then
17010 pkg_cv_omniCOS4_CFLAGS=`$PKG_CONFIG --cflags "omniCOS4 >= 4.1.2" 2>/dev/null`
17011 test "x$?" != "x0" && pkg_failed=yes
17012 else
17013 pkg_failed=yes
17015 else
17016 pkg_failed=untried
17018 if test -n "$omniCOS4_LIBS"; then
17019 pkg_cv_omniCOS4_LIBS="$omniCOS4_LIBS"
17020 elif test -n "$PKG_CONFIG"; then
17021 if test -n "$PKG_CONFIG" && \
17022 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"omniCOS4 >= 4.1.2\""; } >&5
17023 ($PKG_CONFIG --exists --print-errors "omniCOS4 >= 4.1.2") 2>&5
17024 ac_status=$?
17025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17026 test $ac_status = 0; }; then
17027 pkg_cv_omniCOS4_LIBS=`$PKG_CONFIG --libs "omniCOS4 >= 4.1.2" 2>/dev/null`
17028 test "x$?" != "x0" && pkg_failed=yes
17029 else
17030 pkg_failed=yes
17032 else
17033 pkg_failed=untried
17038 if test $pkg_failed = yes; then
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17040 $as_echo "no" >&6; }
17042 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17043 _pkg_short_errors_supported=yes
17044 else
17045 _pkg_short_errors_supported=no
17047 if test $_pkg_short_errors_supported = yes; then
17048 omniCOS4_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "omniCOS4 >= 4.1.2" 2>&1`
17049 else
17050 omniCOS4_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "omniCOS4 >= 4.1.2" 2>&1`
17052 # Put the nasty error message in config.log where it belongs
17053 echo "$omniCOS4_PKG_ERRORS" >&5
17055 as_fn_error $? "Package requirements (omniCOS4 >= 4.1.2) were not met:
17057 $omniCOS4_PKG_ERRORS
17059 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17060 installed software in a non-standard prefix.
17062 Alternatively, you may set the environment variables omniCOS4_CFLAGS
17063 and omniCOS4_LIBS to avoid the need to call pkg-config.
17064 See the pkg-config man page for more details." "$LINENO" 5
17065 elif test $pkg_failed = untried; then
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17067 $as_echo "no" >&6; }
17068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17070 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17071 is in your PATH or set the PKG_CONFIG environment variable to the full
17072 path to pkg-config.
17074 Alternatively, you may set the environment variables omniCOS4_CFLAGS
17075 and omniCOS4_LIBS to avoid the need to call pkg-config.
17076 See the pkg-config man page for more details.
17078 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17079 See \`config.log' for more details" "$LINENO" 5; }
17080 else
17081 omniCOS4_CFLAGS=$pkg_cv_omniCOS4_CFLAGS
17082 omniCOS4_LIBS=$pkg_cv_omniCOS4_LIBS
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17084 $as_echo "yes" >&6; }
17089 if test -x $OMNI_ROOT/include/omniORB4
17090 then
17091 VERS=`grep VERSION $OMNI_ROOT/include/omniORB4/acconfig.h 2>&1 | cut -d ' ' -f 3`
17092 OMNI_VERSION=$VERS
17096 if test "x$omni" = "x" -o "x$omni" = "xno"
17097 then
17098 CXXCPPFLAGS=$svCXXCPPFLAGS
17099 CPPFLAGS=$svCPPFLAGS
17100 LIBS=$svLIBS
17101 LDFLAGS=$svLDFLAGS
17102 ORB=unknown
17103 omni=no
17104 eval "$rssh_rollback"
17105 rssh_rollback=$svRSSH_ROLLBACK
17106 else
17109 ORB_PREFIX=$OMNI_ROOT
17112 ORB=omniORB
17115 IDL=omniidl
17116 if test -x $OMNI_ROOT/bin/omniidl
17117 then
17118 IDL=$OMNI_ROOT/bin/omniidl
17119 else
17120 for i in $OMNI_ROOT/bin/*/omniidl
17122 if test "$i" != $OMNI_ROOT'/bin/*/omniidl'
17123 then
17124 IDL=$i
17125 break
17127 done
17130 IDLCXX=$IDL
17133 IDLFLAGS="$IDLFLAGS -bcxx -I$OMNI_ROOT/idl"
17136 ORB_INCLUDE_PREFIX=$ORB_INCLUDES
17139 IDL_H_SUFFIX=.hh
17141 IDL_H1_SUFFIX=no
17144 IDL_CLN_H=.hh
17145 IDL_CLN_H_SUFFIX=.hh
17146 IDL_CLN_H1_SUFFIX=no
17148 IDL_CLN_H=$IDL_CLN_H
17150 IDL_CLN_H_SUFFIX=$IDL_CLN_H_SUFFIX
17152 IDL_CLN_H1_SUFFIX=$IDL_CLN_H1_SUFFIX
17155 cat >>confdefs.h <<_ACEOF
17156 #define IDL_CLN_H_SUFFIX $IDL_CLN_H_SUFFIX
17157 _ACEOF
17160 IDL_CLN_CPP=SK.cc
17161 IDL_CLN_CPP_SUFFIX=SK.cc
17162 IDL_CLN_CPP=$IDL_CLN_CPP
17164 IDL_CLN_CPP_SUFFIX=$IDL_CLN_CPP_SUFFIX
17167 cat >>confdefs.h <<_ACEOF
17168 #define IDL_CLN_CPP_SUFFIX $IDL_CLN_CPP
17169 _ACEOF
17172 IDL_CLN_O=SK.o
17173 IDL_CLN_OBJ_SUFFIX=SK.o
17174 IDL_CLN_O=$IDL_CLN_O
17176 IDL_CLN_OBJ_SUFFIX=$IDL_CLN_OBJ_SUFFIX
17179 IDL_SRV_H=.hh
17180 IDL_SRV_H_SUFFIX=.hh
17181 IDL_SRV_H1_SUFFIX=no
17182 IDL_SRV_H=$IDL_SRV_H
17184 IDL_SRV_H_SUFFIX=$IDL_SRV_H_SUFFIX
17186 IDL_SRV_H1_SUFFIX=$IDL_SRV_H1_SUFFIX
17189 cat >>confdefs.h <<_ACEOF
17190 #define IDL_SRV_H_SUFFIX $IDL_SRV_H_SUFFIX
17191 _ACEOF
17194 IDL_SRV_CPP=SK.cc
17195 IDL_SRV_CPP_SUFFIX=SK.cc
17196 IDL_SRV_CPP=$IDL_SRV_CPP
17198 IDL_SRV_CPP_SUFFIX=$IDL_SRV_CPP_SUFFIX
17201 cat >>confdefs.h <<_ACEOF
17202 #define IDL_SRV_H_SUFFIX $IDL_SRV_H_SUFFIX
17203 _ACEOF
17206 IDL_SRV_O=SK.o
17207 IDL_SRV_OBJ_SUFFIX=SK.o
17208 IDL_SRV_O=$IDL_SRV_O
17210 IDL_SRV_OBJ_SUFFIX=$IDL_SRV_OBJ_SUFFIX
17213 IDL_TIE_H_SUFFIX=no
17214 IDL_TIE_H1_SUFFIX=no
17215 IDL_TIE_CPP_SUFFIX=no
17216 IDL_TIE_H_SUFFIX=$IDL_TIE_H_SUFFIX
17218 IDL_TIE_H1_SUFFIX=$IDL_TIE_H1_SUFFIX
17220 IDL_TIE_CPP_SUFFIX=$IDL_TIE_CPP_SUFFIX
17223 CORBA_H='omniORB4/CORBA.h'
17225 cat >>confdefs.h <<_ACEOF
17226 #define CORBA_H <$CORBA_H>
17227 _ACEOF
17230 COSNAMING_H='omniORB4/Naming.hh'
17232 cat >>confdefs.h <<_ACEOF
17233 #define COSNAMING_H <$COSNAMING_H>
17234 _ACEOF
17237 ORB_COSNAMING_LIB=
17241 HAVE_ORB_IDL=1
17244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CORBA modules mapped to namespaces" >&5
17245 $as_echo_n "checking whether CORBA modules mapped to namespaces... " >&6; }
17246 if ${rssh_cv_corba_namespaces+:} false; then :
17247 $as_echo_n "(cached) " >&6
17248 else
17249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17250 /* end confdefs.h. */
17251 #include <$CORBA_H>
17254 main ()
17257 #ifndef HAS_Cplusplus_Namespace
17258 #error "we have no namespaces"
17259 we have no namespaces -- $$$$
17260 #else
17261 return 0;
17262 #endif
17265 return 0;
17267 _ACEOF
17268 if ac_fn_cxx_try_compile "$LINENO"; then :
17269 rssh_cv_corba_namespaces=yes
17270 else
17271 rssh_cv_corba_namespaces=no
17273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rssh_cv_corba_namespaces" >&5
17277 $as_echo "$rssh_cv_corba_namespaces" >&6; }
17279 if test "$rssh_cv_corba_namespaces" = "yes"
17280 then
17282 $as_echo "#define CORBA_MODULE_NAMESPACE_MAPPING 1" >>confdefs.h
17284 else
17286 $as_echo "#define CORBA_MODULE_CLASS_MAPPING 1" >>confdefs.h
17291 $as_echo "#define OMNIORB 1" >>confdefs.h
17294 CORBA_HAVE_POA=1
17296 $as_echo "#define CORBA_HAVE_POA 1" >>confdefs.h
17299 CORBA_ORB_INIT_HAVE_3_ARGS=1
17301 $as_echo "#define CORBA_ORB_INIT_HAVE_3_ARGS 1" >>confdefs.h
17303 CORBA_ORB_INIT_THIRD_ARG='"omniORB4"'
17305 $as_echo "#define CORBA_ORB_INIT_THIRD_ARG \"omniORB4\"" >>confdefs.h
17308 $as_echo "#define CORBA_ORB_HAVE_DESTROY 1" >>confdefs.h
17314 ac_ext=c
17315 ac_cpp='$CPP $CPPFLAGS'
17316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17322 enable_lib=yes
17324 # ZMQ dependency
17327 # Check whether --with-zmq was given.
17328 if test "${with_zmq+set}" = set; then :
17329 withval=$with_zmq; \
17330 ZMQ_PREFIX=${with_zmq}
17331 else
17332 ZMQ_PREFIX=/usr/local
17336 PKG_CONFIG_PATH=$PKG_CONFIG_PATH:${ZMQ_PREFIX}/lib/pkgconfig
17339 pkg_failed=no
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBZMQ" >&5
17341 $as_echo_n "checking for LIBZMQ... " >&6; }
17343 if test -n "$LIBZMQ_CFLAGS"; then
17344 pkg_cv_LIBZMQ_CFLAGS="$LIBZMQ_CFLAGS"
17345 elif test -n "$PKG_CONFIG"; then
17346 if test -n "$PKG_CONFIG" && \
17347 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzmq >= 4.0.5\""; } >&5
17348 ($PKG_CONFIG --exists --print-errors "libzmq >= 4.0.5") 2>&5
17349 ac_status=$?
17350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17351 test $ac_status = 0; }; then
17352 pkg_cv_LIBZMQ_CFLAGS=`$PKG_CONFIG --cflags "libzmq >= 4.0.5" 2>/dev/null`
17353 test "x$?" != "x0" && pkg_failed=yes
17354 else
17355 pkg_failed=yes
17357 else
17358 pkg_failed=untried
17360 if test -n "$LIBZMQ_LIBS"; then
17361 pkg_cv_LIBZMQ_LIBS="$LIBZMQ_LIBS"
17362 elif test -n "$PKG_CONFIG"; then
17363 if test -n "$PKG_CONFIG" && \
17364 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libzmq >= 4.0.5\""; } >&5
17365 ($PKG_CONFIG --exists --print-errors "libzmq >= 4.0.5") 2>&5
17366 ac_status=$?
17367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17368 test $ac_status = 0; }; then
17369 pkg_cv_LIBZMQ_LIBS=`$PKG_CONFIG --libs "libzmq >= 4.0.5" 2>/dev/null`
17370 test "x$?" != "x0" && pkg_failed=yes
17371 else
17372 pkg_failed=yes
17374 else
17375 pkg_failed=untried
17380 if test $pkg_failed = yes; then
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17382 $as_echo "no" >&6; }
17384 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17385 _pkg_short_errors_supported=yes
17386 else
17387 _pkg_short_errors_supported=no
17389 if test $_pkg_short_errors_supported = yes; then
17390 LIBZMQ_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libzmq >= 4.0.5" 2>&1`
17391 else
17392 LIBZMQ_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libzmq >= 4.0.5" 2>&1`
17394 # Put the nasty error message in config.log where it belongs
17395 echo "$LIBZMQ_PKG_ERRORS" >&5
17397 as_fn_error $? "Missing ZMQ library - Use --with-zmq configure option or add directory containing libzmq.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
17398 elif test $pkg_failed = untried; then
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17400 $as_echo "no" >&6; }
17401 as_fn_error $? "Missing ZMQ library - Use --with-zmq configure option or add directory containing libzmq.pc to PKG_CONFIG_PATH environment variable" "$LINENO" 5
17402 else
17403 LIBZMQ_CFLAGS=$pkg_cv_LIBZMQ_CFLAGS
17404 LIBZMQ_LIBS=$pkg_cv_LIBZMQ_LIBS
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17406 $as_echo "yes" >&6; }
17409 ZMQ_VERSION=`eval pkg-config --modversion libzmq`
17410 ZMQ_ROOT=`eval pkg-config --variable=prefix libzmq`
17413 # We need to define some stuff for threads and stubs
17415 case $build_os in
17416 linux*)
17418 $as_echo "#define _REENTRANT 1" >>confdefs.h
17420 CXXFLAGS="$CXXFLAGS -D_REENTRANT"
17422 darwin*)
17424 $as_echo "#define _REENTRANT 1" >>confdefs.h
17426 CXXFLAGS="$CXXFLAGS -D_REENTRANT -D__darwin__"
17427 DARWIN=yes
17428 esac
17430 # condition used in the Makefile of the Tango library
17431 if test x"$DARWIN" = x"yes" ; then
17432 DARWIN_ENABLED_TRUE=
17433 DARWIN_ENABLED_FALSE='#'
17434 else
17435 DARWIN_ENABLED_TRUE='#'
17436 DARWIN_ENABLED_FALSE=
17441 # we want to include the omniORB stubs into the tango library
17442 CXXFLAGS="$CXXFLAGS -DOMNI_UNLOADABLE_STUBS"
17445 # checks for libdl
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17447 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17448 if ${ac_cv_lib_dl_dlopen+:} false; then :
17449 $as_echo_n "(cached) " >&6
17450 else
17451 ac_check_lib_save_LIBS=$LIBS
17452 LIBS="-ldl $LIBS"
17453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17454 /* end confdefs.h. */
17456 /* Override any GCC internal prototype to avoid an error.
17457 Use char because int might match the return type of a GCC
17458 builtin and then its argument prototype would still apply. */
17459 #ifdef __cplusplus
17460 extern "C"
17461 #endif
17462 char dlopen ();
17464 main ()
17466 return dlopen ();
17468 return 0;
17470 _ACEOF
17471 if ac_fn_c_try_link "$LINENO"; then :
17472 ac_cv_lib_dl_dlopen=yes
17473 else
17474 ac_cv_lib_dl_dlopen=no
17476 rm -f core conftest.err conftest.$ac_objext \
17477 conftest$ac_exeext conftest.$ac_ext
17478 LIBS=$ac_check_lib_save_LIBS
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17481 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17482 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17483 cat >>confdefs.h <<_ACEOF
17484 #define HAVE_LIBDL 1
17485 _ACEOF
17487 LIBS="-ldl $LIBS"
17491 # checks for libnsl
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for svc_pollfd in -lnsl" >&5
17493 $as_echo_n "checking for svc_pollfd in -lnsl... " >&6; }
17494 if ${ac_cv_lib_nsl_svc_pollfd+:} false; then :
17495 $as_echo_n "(cached) " >&6
17496 else
17497 ac_check_lib_save_LIBS=$LIBS
17498 LIBS="-lnsl $LIBS"
17499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17500 /* end confdefs.h. */
17502 /* Override any GCC internal prototype to avoid an error.
17503 Use char because int might match the return type of a GCC
17504 builtin and then its argument prototype would still apply. */
17505 #ifdef __cplusplus
17506 extern "C"
17507 #endif
17508 char svc_pollfd ();
17510 main ()
17512 return svc_pollfd ();
17514 return 0;
17516 _ACEOF
17517 if ac_fn_c_try_link "$LINENO"; then :
17518 ac_cv_lib_nsl_svc_pollfd=yes
17519 else
17520 ac_cv_lib_nsl_svc_pollfd=no
17522 rm -f core conftest.err conftest.$ac_objext \
17523 conftest$ac_exeext conftest.$ac_ext
17524 LIBS=$ac_check_lib_save_LIBS
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_svc_pollfd" >&5
17527 $as_echo "$ac_cv_lib_nsl_svc_pollfd" >&6; }
17528 if test "x$ac_cv_lib_nsl_svc_pollfd" = xyes; then :
17529 cat >>confdefs.h <<_ACEOF
17530 #define HAVE_LIBNSL 1
17531 _ACEOF
17533 LIBS="-lnsl $LIBS"
17537 # checks for libposix4
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
17539 $as_echo_n "checking for nanosleep in -lposix4... " >&6; }
17540 if ${ac_cv_lib_posix4_nanosleep+:} false; then :
17541 $as_echo_n "(cached) " >&6
17542 else
17543 ac_check_lib_save_LIBS=$LIBS
17544 LIBS="-lposix4 $LIBS"
17545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17546 /* end confdefs.h. */
17548 /* Override any GCC internal prototype to avoid an error.
17549 Use char because int might match the return type of a GCC
17550 builtin and then its argument prototype would still apply. */
17551 #ifdef __cplusplus
17552 extern "C"
17553 #endif
17554 char nanosleep ();
17556 main ()
17558 return nanosleep ();
17560 return 0;
17562 _ACEOF
17563 if ac_fn_c_try_link "$LINENO"; then :
17564 ac_cv_lib_posix4_nanosleep=yes
17565 else
17566 ac_cv_lib_posix4_nanosleep=no
17568 rm -f core conftest.err conftest.$ac_objext \
17569 conftest$ac_exeext conftest.$ac_ext
17570 LIBS=$ac_check_lib_save_LIBS
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
17573 $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
17574 if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then :
17575 cat >>confdefs.h <<_ACEOF
17576 #define HAVE_LIBPOSIX4 1
17577 _ACEOF
17579 LIBS="-lposix4 $LIBS"
17583 # checks for libpthread
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
17585 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
17586 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
17587 $as_echo_n "(cached) " >&6
17588 else
17589 ac_check_lib_save_LIBS=$LIBS
17590 LIBS="-lpthread $LIBS"
17591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17592 /* end confdefs.h. */
17594 /* Override any GCC internal prototype to avoid an error.
17595 Use char because int might match the return type of a GCC
17596 builtin and then its argument prototype would still apply. */
17597 #ifdef __cplusplus
17598 extern "C"
17599 #endif
17600 char pthread_create ();
17602 main ()
17604 return pthread_create ();
17606 return 0;
17608 _ACEOF
17609 if ac_fn_c_try_link "$LINENO"; then :
17610 ac_cv_lib_pthread_pthread_create=yes
17611 else
17612 ac_cv_lib_pthread_pthread_create=no
17614 rm -f core conftest.err conftest.$ac_objext \
17615 conftest$ac_exeext conftest.$ac_ext
17616 LIBS=$ac_check_lib_save_LIBS
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
17619 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
17620 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
17621 cat >>confdefs.h <<_ACEOF
17622 #define HAVE_LIBPTHREAD 1
17623 _ACEOF
17625 LIBS="-lpthread $LIBS"
17629 # checks for libsocket
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getprotobyname in -lsocket" >&5
17631 $as_echo_n "checking for getprotobyname in -lsocket... " >&6; }
17632 if ${ac_cv_lib_socket_getprotobyname+:} false; then :
17633 $as_echo_n "(cached) " >&6
17634 else
17635 ac_check_lib_save_LIBS=$LIBS
17636 LIBS="-lsocket $LIBS"
17637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17638 /* end confdefs.h. */
17640 /* Override any GCC internal prototype to avoid an error.
17641 Use char because int might match the return type of a GCC
17642 builtin and then its argument prototype would still apply. */
17643 #ifdef __cplusplus
17644 extern "C"
17645 #endif
17646 char getprotobyname ();
17648 main ()
17650 return getprotobyname ();
17652 return 0;
17654 _ACEOF
17655 if ac_fn_c_try_link "$LINENO"; then :
17656 ac_cv_lib_socket_getprotobyname=yes
17657 else
17658 ac_cv_lib_socket_getprotobyname=no
17660 rm -f core conftest.err conftest.$ac_objext \
17661 conftest$ac_exeext conftest.$ac_ext
17662 LIBS=$ac_check_lib_save_LIBS
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getprotobyname" >&5
17665 $as_echo "$ac_cv_lib_socket_getprotobyname" >&6; }
17666 if test "x$ac_cv_lib_socket_getprotobyname" = xyes; then :
17667 cat >>confdefs.h <<_ACEOF
17668 #define HAVE_LIBSOCKET 1
17669 _ACEOF
17671 LIBS="-lsocket $LIBS"
17676 # Checks for header files.
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17678 $as_echo_n "checking for ANSI C header files... " >&6; }
17679 if ${ac_cv_header_stdc+:} false; then :
17680 $as_echo_n "(cached) " >&6
17681 else
17682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17683 /* end confdefs.h. */
17684 #include <stdlib.h>
17685 #include <stdarg.h>
17686 #include <string.h>
17687 #include <float.h>
17690 main ()
17694 return 0;
17696 _ACEOF
17697 if ac_fn_c_try_compile "$LINENO"; then :
17698 ac_cv_header_stdc=yes
17699 else
17700 ac_cv_header_stdc=no
17702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17704 if test $ac_cv_header_stdc = yes; then
17705 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17707 /* end confdefs.h. */
17708 #include <string.h>
17710 _ACEOF
17711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17712 $EGREP "memchr" >/dev/null 2>&1; then :
17714 else
17715 ac_cv_header_stdc=no
17717 rm -f conftest*
17721 if test $ac_cv_header_stdc = yes; then
17722 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17724 /* end confdefs.h. */
17725 #include <stdlib.h>
17727 _ACEOF
17728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17729 $EGREP "free" >/dev/null 2>&1; then :
17731 else
17732 ac_cv_header_stdc=no
17734 rm -f conftest*
17738 if test $ac_cv_header_stdc = yes; then
17739 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17740 if test "$cross_compiling" = yes; then :
17742 else
17743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17744 /* end confdefs.h. */
17745 #include <ctype.h>
17746 #include <stdlib.h>
17747 #if ((' ' & 0x0FF) == 0x020)
17748 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17749 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17750 #else
17751 # define ISLOWER(c) \
17752 (('a' <= (c) && (c) <= 'i') \
17753 || ('j' <= (c) && (c) <= 'r') \
17754 || ('s' <= (c) && (c) <= 'z'))
17755 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17756 #endif
17758 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17760 main ()
17762 int i;
17763 for (i = 0; i < 256; i++)
17764 if (XOR (islower (i), ISLOWER (i))
17765 || toupper (i) != TOUPPER (i))
17766 return 2;
17767 return 0;
17769 _ACEOF
17770 if ac_fn_c_try_run "$LINENO"; then :
17772 else
17773 ac_cv_header_stdc=no
17775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17776 conftest.$ac_objext conftest.beam conftest.$ac_ext
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17782 $as_echo "$ac_cv_header_stdc" >&6; }
17783 if test $ac_cv_header_stdc = yes; then
17785 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17789 for ac_header in fcntl.h strings.h sys/time.h unistd.h
17790 do :
17791 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17792 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17793 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17794 cat >>confdefs.h <<_ACEOF
17795 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17796 _ACEOF
17800 done
17803 # Some hack for testing if we have sstream or not.
17804 use_sstream=yes;
17806 if test "x$GCC" = "xyes"; then
17807 case `$CC --version 2>/dev/null` in
17808 [12].*) use_sstream=no ;;
17809 *) use_sstream=yes ;;
17810 esac
17812 if test "x$use_sstream" = "xyes"; then
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
17814 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
17815 if ${ac_cv_cxx_namespaces+:} false; then :
17816 $as_echo_n "(cached) " >&6
17817 else
17819 ac_ext=cpp
17820 ac_cpp='$CXXCPP $CPPFLAGS'
17821 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17822 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17823 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17826 /* end confdefs.h. */
17827 namespace Outer { namespace Inner { int i = 0; }}
17829 main ()
17831 using namespace Outer::Inner; return i;
17833 return 0;
17835 _ACEOF
17836 if ac_fn_cxx_try_compile "$LINENO"; then :
17837 ac_cv_cxx_namespaces=yes
17838 else
17839 ac_cv_cxx_namespaces=no
17841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17842 ac_ext=c
17843 ac_cpp='$CPP $CPPFLAGS'
17844 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17845 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17846 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_namespaces" >&5
17851 $as_echo "$ac_cv_cxx_namespaces" >&6; }
17852 if test "$ac_cv_cxx_namespaces" = yes; then
17854 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler has stringstream" >&5
17859 $as_echo_n "checking whether the compiler has stringstream... " >&6; }
17860 if ${ac_cv_cxx_have_sstream+:} false; then :
17861 $as_echo_n "(cached) " >&6
17862 else
17865 ac_ext=cpp
17866 ac_cpp='$CXXCPP $CPPFLAGS'
17867 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17868 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17869 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17872 /* end confdefs.h. */
17873 #include <sstream>
17874 #ifdef HAVE_NAMESPACES
17875 using namespace std;
17876 #endif
17878 main ()
17880 stringstream message; message << "Hello"; return 0;
17882 return 0;
17884 _ACEOF
17885 if ac_fn_cxx_try_compile "$LINENO"; then :
17886 ac_cv_cxx_have_sstream=yes
17887 else
17888 ac_cv_cxx_have_sstream=no
17890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17891 ac_ext=c
17892 ac_cpp='$CPP $CPPFLAGS'
17893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_sstream" >&5
17900 $as_echo "$ac_cv_cxx_have_sstream" >&6; }
17901 if test "$ac_cv_cxx_have_sstream" = yes; then
17903 $as_echo "#define HAVE_SSTREAM /**/" >>confdefs.h
17908 # This needs to be worked on!!
17910 if test "x$use_sstream" = "xno"; then
17912 ac_ext=cpp
17913 ac_cpp='$CXXCPP $CPPFLAGS'
17914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17918 ac_fn_cxx_check_header_mongrel "$LINENO" "strstream" "ac_cv_header_strstream" "$ac_includes_default"
17919 if test "x$ac_cv_header_strstream" = xyes; then :
17921 $as_echo "#define HAVE_STRSTREAM 1" >>confdefs.h
17926 ac_ext=c
17927 ac_cpp='$CPP $CPPFLAGS'
17928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17933 # Checks for typedefs, structures, and compiler characteristics.
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17935 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17936 if ${ac_cv_c_const+:} false; then :
17937 $as_echo_n "(cached) " >&6
17938 else
17939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17940 /* end confdefs.h. */
17943 main ()
17946 #ifndef __cplusplus
17947 /* Ultrix mips cc rejects this sort of thing. */
17948 typedef int charset[2];
17949 const charset cs = { 0, 0 };
17950 /* SunOS 4.1.1 cc rejects this. */
17951 char const *const *pcpcc;
17952 char **ppc;
17953 /* NEC SVR4.0.2 mips cc rejects this. */
17954 struct point {int x, y;};
17955 static struct point const zero = {0,0};
17956 /* AIX XL C 1.02.0.0 rejects this.
17957 It does not let you subtract one const X* pointer from another in
17958 an arm of an if-expression whose if-part is not a constant
17959 expression */
17960 const char *g = "string";
17961 pcpcc = &g + (g ? g-g : 0);
17962 /* HPUX 7.0 cc rejects these. */
17963 ++pcpcc;
17964 ppc = (char**) pcpcc;
17965 pcpcc = (char const *const *) ppc;
17966 { /* SCO 3.2v4 cc rejects this sort of thing. */
17967 char tx;
17968 char *t = &tx;
17969 char const *s = 0 ? (char *) 0 : (char const *) 0;
17971 *t++ = 0;
17972 if (s) return 0;
17974 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17975 int x[] = {25, 17};
17976 const int *foo = &x[0];
17977 ++foo;
17979 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17980 typedef const int *iptr;
17981 iptr p = 0;
17982 ++p;
17984 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
17985 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17986 struct s { int j; const int *ap[3]; } bx;
17987 struct s *b = &bx; b->j = 5;
17989 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17990 const int foo = 10;
17991 if (!foo) return 0;
17993 return !cs[0] && !zero.x;
17994 #endif
17997 return 0;
17999 _ACEOF
18000 if ac_fn_c_try_compile "$LINENO"; then :
18001 ac_cv_c_const=yes
18002 else
18003 ac_cv_c_const=no
18005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18008 $as_echo "$ac_cv_c_const" >&6; }
18009 if test $ac_cv_c_const = no; then
18011 $as_echo "#define const /**/" >>confdefs.h
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18016 $as_echo_n "checking for inline... " >&6; }
18017 if ${ac_cv_c_inline+:} false; then :
18018 $as_echo_n "(cached) " >&6
18019 else
18020 ac_cv_c_inline=no
18021 for ac_kw in inline __inline__ __inline; do
18022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18023 /* end confdefs.h. */
18024 #ifndef __cplusplus
18025 typedef int foo_t;
18026 static $ac_kw foo_t static_foo () {return 0; }
18027 $ac_kw foo_t foo () {return 0; }
18028 #endif
18030 _ACEOF
18031 if ac_fn_c_try_compile "$LINENO"; then :
18032 ac_cv_c_inline=$ac_kw
18034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18035 test "$ac_cv_c_inline" != no && break
18036 done
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18040 $as_echo "$ac_cv_c_inline" >&6; }
18042 case $ac_cv_c_inline in
18043 inline | yes) ;;
18045 case $ac_cv_c_inline in
18046 no) ac_val=;;
18047 *) ac_val=$ac_cv_c_inline;;
18048 esac
18049 cat >>confdefs.h <<_ACEOF
18050 #ifndef __cplusplus
18051 #define inline $ac_val
18052 #endif
18053 _ACEOF
18055 esac
18057 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
18058 if test "x$ac_cv_type_pid_t" = xyes; then :
18060 else
18062 cat >>confdefs.h <<_ACEOF
18063 #define pid_t int
18064 _ACEOF
18068 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18069 if test "x$ac_cv_type_size_t" = xyes; then :
18071 else
18073 cat >>confdefs.h <<_ACEOF
18074 #define size_t unsigned int
18075 _ACEOF
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
18080 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18081 if ${ac_cv_header_time+:} false; then :
18082 $as_echo_n "(cached) " >&6
18083 else
18084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18085 /* end confdefs.h. */
18086 #include <sys/types.h>
18087 #include <sys/time.h>
18088 #include <time.h>
18091 main ()
18093 if ((struct tm *) 0)
18094 return 0;
18096 return 0;
18098 _ACEOF
18099 if ac_fn_c_try_compile "$LINENO"; then :
18100 ac_cv_header_time=yes
18101 else
18102 ac_cv_header_time=no
18104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
18107 $as_echo "$ac_cv_header_time" >&6; }
18108 if test $ac_cv_header_time = yes; then
18110 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
18115 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
18116 if ${ac_cv_struct_tm+:} false; then :
18117 $as_echo_n "(cached) " >&6
18118 else
18119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18120 /* end confdefs.h. */
18121 #include <sys/types.h>
18122 #include <time.h>
18125 main ()
18127 struct tm tm;
18128 int *p = &tm.tm_sec;
18129 return !p;
18131 return 0;
18133 _ACEOF
18134 if ac_fn_c_try_compile "$LINENO"; then :
18135 ac_cv_struct_tm=time.h
18136 else
18137 ac_cv_struct_tm=sys/time.h
18139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
18142 $as_echo "$ac_cv_struct_tm" >&6; }
18143 if test $ac_cv_struct_tm = sys/time.h; then
18145 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
18150 # Checks for library functions.
18151 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18152 # for constant arguments. Useless!
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18154 $as_echo_n "checking for working alloca.h... " >&6; }
18155 if ${ac_cv_working_alloca_h+:} false; then :
18156 $as_echo_n "(cached) " >&6
18157 else
18158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18159 /* end confdefs.h. */
18160 #include <alloca.h>
18162 main ()
18164 char *p = (char *) alloca (2 * sizeof (int));
18165 if (p) return 0;
18167 return 0;
18169 _ACEOF
18170 if ac_fn_c_try_link "$LINENO"; then :
18171 ac_cv_working_alloca_h=yes
18172 else
18173 ac_cv_working_alloca_h=no
18175 rm -f core conftest.err conftest.$ac_objext \
18176 conftest$ac_exeext conftest.$ac_ext
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18179 $as_echo "$ac_cv_working_alloca_h" >&6; }
18180 if test $ac_cv_working_alloca_h = yes; then
18182 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18187 $as_echo_n "checking for alloca... " >&6; }
18188 if ${ac_cv_func_alloca_works+:} false; then :
18189 $as_echo_n "(cached) " >&6
18190 else
18191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18192 /* end confdefs.h. */
18193 #ifdef __GNUC__
18194 # define alloca __builtin_alloca
18195 #else
18196 # ifdef _MSC_VER
18197 # include <malloc.h>
18198 # define alloca _alloca
18199 # else
18200 # ifdef HAVE_ALLOCA_H
18201 # include <alloca.h>
18202 # else
18203 # ifdef _AIX
18204 #pragma alloca
18205 # else
18206 # ifndef alloca /* predefined by HP cc +Olibcalls */
18207 void *alloca (size_t);
18208 # endif
18209 # endif
18210 # endif
18211 # endif
18212 #endif
18215 main ()
18217 char *p = (char *) alloca (1);
18218 if (p) return 0;
18220 return 0;
18222 _ACEOF
18223 if ac_fn_c_try_link "$LINENO"; then :
18224 ac_cv_func_alloca_works=yes
18225 else
18226 ac_cv_func_alloca_works=no
18228 rm -f core conftest.err conftest.$ac_objext \
18229 conftest$ac_exeext conftest.$ac_ext
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18232 $as_echo "$ac_cv_func_alloca_works" >&6; }
18234 if test $ac_cv_func_alloca_works = yes; then
18236 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18238 else
18239 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18240 # that cause trouble. Some versions do not even contain alloca or
18241 # contain a buggy version. If you still want to use their alloca,
18242 # use ar to extract alloca.o from them instead of compiling alloca.c.
18244 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18246 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18250 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18251 if ${ac_cv_os_cray+:} false; then :
18252 $as_echo_n "(cached) " >&6
18253 else
18254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18255 /* end confdefs.h. */
18256 #if defined CRAY && ! defined CRAY2
18257 webecray
18258 #else
18259 wenotbecray
18260 #endif
18262 _ACEOF
18263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18264 $EGREP "webecray" >/dev/null 2>&1; then :
18265 ac_cv_os_cray=yes
18266 else
18267 ac_cv_os_cray=no
18269 rm -f conftest*
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18273 $as_echo "$ac_cv_os_cray" >&6; }
18274 if test $ac_cv_os_cray = yes; then
18275 for ac_func in _getb67 GETB67 getb67; do
18276 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18277 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18278 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18280 cat >>confdefs.h <<_ACEOF
18281 #define CRAY_STACKSEG_END $ac_func
18282 _ACEOF
18284 break
18287 done
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18291 $as_echo_n "checking stack direction for C alloca... " >&6; }
18292 if ${ac_cv_c_stack_direction+:} false; then :
18293 $as_echo_n "(cached) " >&6
18294 else
18295 if test "$cross_compiling" = yes; then :
18296 ac_cv_c_stack_direction=0
18297 else
18298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18299 /* end confdefs.h. */
18300 $ac_includes_default
18302 find_stack_direction (int *addr, int depth)
18304 int dir, dummy = 0;
18305 if (! addr)
18306 addr = &dummy;
18307 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
18308 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
18309 return dir + dummy;
18313 main (int argc, char **argv)
18315 return find_stack_direction (0, argc + !argv + 20) < 0;
18317 _ACEOF
18318 if ac_fn_c_try_run "$LINENO"; then :
18319 ac_cv_c_stack_direction=1
18320 else
18321 ac_cv_c_stack_direction=-1
18323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18324 conftest.$ac_objext conftest.beam conftest.$ac_ext
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18329 $as_echo "$ac_cv_c_stack_direction" >&6; }
18330 cat >>confdefs.h <<_ACEOF
18331 #define STACK_DIRECTION $ac_cv_c_stack_direction
18332 _ACEOF
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
18338 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
18339 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
18340 $as_echo_n "(cached) " >&6
18341 else
18342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18343 /* end confdefs.h. */
18344 #include <sys/types.h>
18346 main ()
18348 return makedev(0, 0);
18350 return 0;
18352 _ACEOF
18353 if ac_fn_c_try_link "$LINENO"; then :
18354 ac_cv_header_sys_types_h_makedev=yes
18355 else
18356 ac_cv_header_sys_types_h_makedev=no
18358 rm -f core conftest.err conftest.$ac_objext \
18359 conftest$ac_exeext conftest.$ac_ext
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
18363 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
18365 if test $ac_cv_header_sys_types_h_makedev = no; then
18366 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
18367 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
18369 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
18375 if test $ac_cv_header_sys_mkdev_h = no; then
18376 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
18377 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
18379 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
18388 $as_echo_n "checking return type of signal handlers... " >&6; }
18389 if ${ac_cv_type_signal+:} false; then :
18390 $as_echo_n "(cached) " >&6
18391 else
18392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18393 /* end confdefs.h. */
18394 #include <sys/types.h>
18395 #include <signal.h>
18398 main ()
18400 return *(signal (0, 0)) (0) == 1;
18402 return 0;
18404 _ACEOF
18405 if ac_fn_c_try_compile "$LINENO"; then :
18406 ac_cv_type_signal=int
18407 else
18408 ac_cv_type_signal=void
18410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
18413 $as_echo "$ac_cv_type_signal" >&6; }
18415 cat >>confdefs.h <<_ACEOF
18416 #define RETSIGTYPE $ac_cv_type_signal
18417 _ACEOF
18420 for ac_func in gethostname gettimeofday exit tolower
18421 do :
18422 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18423 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18424 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18425 cat >>confdefs.h <<_ACEOF
18426 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18427 _ACEOF
18430 done
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the library defines class strstream" >&5
18433 $as_echo_n "checking whether the library defines class strstream... " >&6; }
18434 if ${ac_cv_cxx_have_class_strstream+:} false; then :
18435 $as_echo_n "(cached) " >&6
18436 else
18439 ac_ext=cpp
18440 ac_cpp='$CXXCPP $CPPFLAGS'
18441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18446 /* end confdefs.h. */
18448 #if HAVE_STRSTREAM
18449 # include <strstream>
18450 #else
18451 # include <strstream.h>
18452 #endif
18453 #ifdef HAVE_NAMESPACES
18454 using namespace std;
18455 #endif
18457 main ()
18459 ostrstream message; message << "Hello"; return 0;
18461 return 0;
18463 _ACEOF
18464 if ac_fn_cxx_try_compile "$LINENO"; then :
18465 ac_cv_cxx_have_class_strstream=yes
18466 else
18467 ac_cv_cxx_have_class_strstream=no
18469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18470 ac_ext=c
18471 ac_cpp='$CPP $CPPFLAGS'
18472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_class_strstream" >&5
18479 $as_echo "$ac_cv_cxx_have_class_strstream" >&6; }
18480 if test "$ac_cv_cxx_have_class_strstream" = yes; then
18482 $as_echo "#define HAVE_CLASS_STRSTREAM 1" >>confdefs.h
18487 # check for the presence of the mysql program, needed when doing the
18488 # install of the DataBaseds server. You can tweak the connection
18489 # with some --with variables. ./configure --help will, uhm, help you.
18491 # Check whether --enable-dbserver was given.
18492 if test "${enable_dbserver+set}" = set; then :
18493 enableval=$enable_dbserver;
18494 else
18495 enable_dbserver=yes
18498 enable_db_schema_create=no
18501 # Check whether --with-tango-rc-file was given.
18502 if test "${with_tango_rc_file+set}" = set; then :
18503 withval=$with_tango_rc_file; TANGO_RC_FILE=${with_tango_rc_file}
18504 else
18505 TANGO_RC_FILE=/etc/tangorc
18509 cat >>confdefs.h <<_ACEOF
18510 #define TANGO_RC_FILE "$TANGO_RC_FILE"
18511 _ACEOF
18515 # Hacks to provide the name for the tango
18516 # database. I havent found any other way to provide these arguments.
18518 # Check whether --with-tango-db-name was given.
18519 if test "${with_tango_db_name+set}" = set; then :
18520 withval=$with_tango_db_name; TANGO_DB_NAME=${with_tango_db_name}
18521 else
18522 TANGO_DB_NAME=tango
18526 # Here we define these constants so that they're reachable from c programs
18528 cat >>confdefs.h <<_ACEOF
18529 #define TANGO_DB_NAME "$TANGO_DB_NAME"
18530 _ACEOF
18533 # Here we propagate the constants into the makefiles.
18536 if test "x$enable_mariadb" != "xyes" ; then
18537 DB_NAME=MYSQL
18539 if test "x$enable_dbserver" = "xyes"; then :
18542 # We need libmysqlclient to compile
18543 # finds it for us. Abort if no mysqlclientlibs are found
18547 # Check whether --with-mysqlclient-prefix was given.
18548 if test "${with_mysqlclient_prefix+set}" = set; then :
18549 withval=$with_mysqlclient_prefix; mysqlclient_prefix="$withval"
18550 else
18551 mysqlclient_prefix=""
18556 # Check whether --with-mysqlclient-include was given.
18557 if test "${with_mysqlclient_include+set}" = set; then :
18558 withval=$with_mysqlclient_include; mysqlclient_include="$withval"
18559 else
18560 mysqlclient_include=""
18565 # Check whether --with-mysqlclient-lib was given.
18566 if test "${with_mysqlclient_lib+set}" = set; then :
18567 withval=$with_mysqlclient_lib; mysqlclient_lib="$withval"
18568 else
18569 mysqlclient_lib=""
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysqlclient " >&5
18574 $as_echo_n "checking for mysqlclient ... " >&6; }
18575 MYSQLCLIENT_LDFLAGS=""
18576 MYSQLCLIENT_CFLAGS=""
18577 MYSQLCLIENT_LIBS="-lmysqlclient"
18578 mysqlclient_fail=""
18580 for tryprefix in /usr /usr/local /usr/mysql /usr/local/mysql /usr/pkg $mysqlclient_prefix ; do
18581 for hloc in lib/mysql lib ; do
18582 if test -f "$tryprefix/$hloc/libmysqlclient.so"; then
18583 MYSQLCLIENT_LDFLAGS="-L$tryprefix/$hloc"
18584 elif test -f "$tryprefix/$hloc/libmysqlclient.a"; then
18585 MYSQLCLIENT_LDFLAGS="-L$tryprefix/$hloc"
18587 done
18589 for iloc in include/mysql include; do
18590 if test -f "$tryprefix/$iloc/mysql.h"; then
18591 MYSQLCLIENT_CFLAGS="-I$tryprefix/$iloc"
18593 done
18594 # testloop
18595 done
18597 if test "x$mysqlclient_include" != "x" ; then
18598 echo "checking for mysql includes... "
18599 if test -d "$mysqlclient_include/mysql" ; then
18600 MYSQLCLIENT_CFLAGS="-I$mysqlclient_include"
18601 echo " found $MYSQLCLIENT_CFLAGS"
18602 elif test -d "$mysqlclient_include/include/mysql" ; then
18603 MYSQLCLIENT_CFLAGS="-I$mysqlclient_include/include"
18604 echo " found $MYSQLCLIENT_CFLAGS"
18605 elif test -d "$mysqlclient_include" ; then
18606 MYSQLCLIENT_CFLAGS="-I$mysqlclient_include"
18607 echo "found $MYSQLCLIENT_CFLAGS"
18608 else
18609 echo "not found! no include dir found in $mysqlclient_include"
18613 if test "x$mysqlclient_lib" != "x" ; then
18614 echo "checking for mysql libx... "
18615 if test -d "$mysqlclient_lib/lib/mysql" ; then
18616 MYSQLCLIENT_LDFLAGS="-L$mysqlclient_lib/lib/mysql"
18617 echo "found $MYSQLCLIENT_LDFLAGS"
18618 elif test -d "$mysqlclient_lib/lin" ; then
18619 MYSQLCLIENT_LDFLAGS="-L$mysqlclient_lib/lib"
18620 echo "found $MYSQLCLIENT_LDFLAGS"
18621 else
18622 MYSQLCLIENT_LDFLAGS="-L$mysqlclient_lib"
18623 echo "defaultd to $MYSQLCLIENT_LDFLAGS"
18627 ac_save_CFLAGS="$CFLAGS"
18628 ac_save_LDFLAGS="$LDFLAGS"
18629 ac_save_LIBS="$LIBS"
18630 CFLAGS="-v $CFLAGS $MYSQLCLIENT_CFLAGS"
18631 LDFLAGS="$LDFLAGS $MYSQLCLIENT_LDFLAGS"
18632 LIBS="$LIBS $MYSQLCLIENT_LIBS"
18633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18634 /* end confdefs.h. */
18636 #include <mysql.h>
18637 #include <mysql_version.h>
18640 main ()
18643 mysql_init( 0 );
18646 return 0;
18648 _ACEOF
18649 if ac_fn_c_try_link "$LINENO"; then :
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes $MYSQLCLIENT_CFLAGS $MYSQLCLIENT_LDFLAGS" >&5
18651 $as_echo "yes $MYSQLCLIENT_CFLAGS $MYSQLCLIENT_LDFLAGS" >&6; }
18652 CFLAGS="$ac_save_CFLAGS"
18653 LDFLAGS="$ac_save_LDFLAGS"
18654 LIBS="$ac_save_LIBS"
18657 else
18659 echo "no"
18660 echo "can't compile a simple app with mysql_connnect in it. bad."
18661 mysqlclient_fail="yes"
18664 rm -f core conftest.err conftest.$ac_objext \
18665 conftest$ac_exeext conftest.$ac_ext
18667 if test "x$mysqlclient_fail" != "x" ; then
18668 echo
18669 echo "***"
18670 echo "*** mysqlclient test source had problems, check your config.log ."
18671 echo "*** Also try one of the following switches :"
18672 echo "*** --with-mysqlclient-prefix=PFX"
18673 echo "*** --with-mysqlclient-include=DIR"
18674 echo "*** --with-mysqlclient-lib=DIR"
18675 echo "***"
18676 CFLAGS="$ac_save_CFLAGS"
18677 LDFLAGS="$ac_save_LDFLAGS"
18678 LIBS="$ac_save_LIBS"
18679 MYSQLCLIENT_LIBS=""
18680 MYSQLCLIENT_CFLAGS=""
18684 CFLAGS="$ac_save_CFLAGS"
18685 LDFLAGS="$ac_save_LDFLAGS"
18686 LIBS="$ac_save_LIBS"
18691 if test "x$MYSQLCLIENT_CFLAGS" = "x"
18692 then
18693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No libmysqlclient libs found" >&5
18694 $as_echo "$as_me: WARNING: No libmysqlclient libs found" >&2;}
18695 enable_dbserver=no
18698 DB_LDFLAGS=${MYSQLCLIENT_LDFLAGS}
18699 DB_LDLIBS=${MYSQLCLIENT_LIBS}
18700 DB_CFLAGS=${MYSQLCLIENT_CFLAGS}
18702 # Extract the first word of "mysql", so it can be a program name with args.
18703 set dummy mysql; ac_word=$2
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18705 $as_echo_n "checking for $ac_word... " >&6; }
18706 if ${ac_cv_path_MYSQL+:} false; then :
18707 $as_echo_n "(cached) " >&6
18708 else
18709 case $MYSQL in
18710 [\\/]* | ?:[\\/]*)
18711 ac_cv_path_MYSQL="$MYSQL" # Let the user override the test with a path.
18714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18715 for as_dir in $PATH
18717 IFS=$as_save_IFS
18718 test -z "$as_dir" && as_dir=.
18719 for ac_exec_ext in '' $ac_executable_extensions; do
18720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18721 ac_cv_path_MYSQL="$as_dir/$ac_word$ac_exec_ext"
18722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18723 break 2
18725 done
18726 done
18727 IFS=$as_save_IFS
18729 test -z "$ac_cv_path_MYSQL" && ac_cv_path_MYSQL="nocommand"
18731 esac
18733 MYSQL=$ac_cv_path_MYSQL
18734 if test -n "$MYSQL"; then
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL" >&5
18736 $as_echo "$MYSQL" >&6; }
18737 else
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18739 $as_echo "no" >&6; }
18743 MYSQL_VERSION=not_found
18745 if test "x$MYSQL" != "xnocommand"; then
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql release (at least version 5.5)" >&5
18747 $as_echo_n "checking for mysql release (at least version 5.5)... " >&6; }
18748 if ${ac_cv_mysql_version_5_5+:} false; then :
18749 $as_echo_n "(cached) " >&6
18750 else
18752 if test -x $MYSQL; then
18753 VERS=`$MYSQL --version 2>&1 | cut -d ' ' -f 6 | cut -d ',' -f 1`
18754 MYSQL_VERSION=$VERS
18756 MYSQL_MAJOR=`echo $VERS | cut -d '.' -f 1`
18757 MYSQL_MINOR=`echo $VERS | cut -d '.' -f 2`
18758 MYSQL_MICRO=`echo $VERS | cut -d '.' -f 3`
18759 MARIA=`echo $MYSQL_MICRO | cut -d '-' -f 2`
18761 if [ "$MARIA" == *aria* ]; then
18762 MYSQL_VERSION=not_found
18763 ac_cv_mysql_version_5_5=no
18764 else
18765 if test $MYSQL_MAJOR -lt 5; then
18766 ac_cv_mysql_version_5_5=no
18767 else
18768 if test $MYSQL_MINOR -lt 5; then
18769 ac_cv_mysql_version_5_5=no
18770 else
18771 ac_cv_mysql_version_5_5=yes
18775 else
18776 ac_cv_mysql_version_5_5=no
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mysql_version_5_5" >&5
18781 $as_echo "$ac_cv_mysql_version_5_5" >&6; }
18783 if test "x$ac_cv_mysql_version_5_5" = "xno"; then
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not supported mysql release. Should be 5.5.x or above. Please update !" >&5
18785 $as_echo "$as_me: WARNING: Not supported mysql release. Should be 5.5.x or above. Please update !" >&2;}
18786 enable_db_schema_create=no
18787 enable_dbserver=no
18788 else
18789 enable_db_schema_create=yes
18791 else
18792 enable_db_schema_create=no
18796 # check for a database schema update
18798 if test "x$enable_db_schema_create" = "xyes"; then :
18801 # Check whether --enable-dbcreate was given.
18802 if test "${enable_dbcreate+set}" = set; then :
18803 enableval=$enable_dbcreate;
18804 else
18805 enable_dbcreate=yes
18808 enable_db_schema_create=$enable_dbcreate
18810 if test "x$enable_db_schema_create" = "xyes"; then :
18816 # Extract the first word of "mysql$EXEEXT", so it can be a program name with args.
18817 set dummy mysql$EXEEXT; ac_word=$2
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18819 $as_echo_n "checking for $ac_word... " >&6; }
18820 if ${ac_cv_path_MYSQL+:} false; then :
18821 $as_echo_n "(cached) " >&6
18822 else
18823 case $MYSQL in
18824 [\\/]* | ?:[\\/]*)
18825 ac_cv_path_MYSQL="$MYSQL" # Let the user override the test with a path.
18828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18829 for as_dir in $PATH
18831 IFS=$as_save_IFS
18832 test -z "$as_dir" && as_dir=.
18833 for ac_exec_ext in '' $ac_executable_extensions; do
18834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18835 ac_cv_path_MYSQL="$as_dir/$ac_word$ac_exec_ext"
18836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18837 break 2
18839 done
18840 done
18841 IFS=$as_save_IFS
18843 test -z "$ac_cv_path_MYSQL" && ac_cv_path_MYSQL="nocommand"
18845 esac
18847 MYSQL=$ac_cv_path_MYSQL
18848 if test -n "$MYSQL"; then
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL" >&5
18850 $as_echo "$MYSQL" >&6; }
18851 else
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18853 $as_echo "no" >&6; }
18857 if test "$MYSQL" = nocommand; then
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mysql not found in $PATH" >&5
18859 $as_echo "$as_me: WARNING: mysql not found in $PATH" >&2;}
18860 enable_db_schema_create=no
18861 else
18864 # Check whether --with-mysql-ho was given.
18865 if test "${with_mysql_ho+set}" = set; then :
18866 withval=$with_mysql_ho; MYSQL_HOST=${with_mysql_ho}
18867 else
18868 MYSQL_HOST=""
18873 # Check whether --with-mysql-admin was given.
18874 if test "${with_mysql_admin+set}" = set; then :
18875 withval=$with_mysql_admin; MYSQL_ADMIN=${with_mysql_admin}
18876 else
18877 MYSQL_ADMIN=""
18882 # Check whether --with-mysql-admin-passwd was given.
18883 if test "${with_mysql_admin_passwd+set}" = set; then :
18884 withval=$with_mysql_admin_passwd; MYSQL_ADMIN_PASSWD=${with_mysql_admin_passwd}
18885 else
18886 MYSQL_ADMIN_PASSWD=""
18890 if test "x$MYSQL_ADMIN" = "x"; then
18891 user_switch="";
18892 else
18893 user_switch="-u$MYSQL_ADMIN";
18896 if test "x$MYSQL_ADMIN_PASSWD" = "x"; then
18897 passwd_switch="";
18898 else
18899 passwd_switch="-p$MYSQL_ADMIN_PASSWD";
18902 if test "x$MYSQL_HOST" = "x"; then
18903 host_switch="";
18904 else
18905 host_switch="-h$MYSQL_HOST";
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mysql works" >&5
18909 $as_echo_n "checking if mysql works... " >&6; }
18911 if echo 'SELECT * FROM user' | $MYSQL $user_switch $passwd_switch $host_switch mysql> /dev/null; then
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18913 $as_echo "yes" >&6; }
18919 MYSQL_CONNECTION=OK
18921 else
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mysql cannot execute SELECT with user=$MYSQL_ADMIN, passwd=$MYSQL_ADMIN_PASSWD, and host=$MYSQL_HOST. Please check your my.cnf file or configure options!" >&5
18924 $as_echo "$as_me: WARNING: mysql cannot execute SELECT with user=$MYSQL_ADMIN, passwd=$MYSQL_ADMIN_PASSWD, and host=$MYSQL_HOST. Please check your my.cnf file or configure options!" >&2;}
18925 MYSQL_CONNECTION=failed
18926 enable_db_schema_create=no
18928 cat >>confdefs.h <<_ACEOF
18929 #define MYSQL_HOST "$MYSQL_HOST"
18930 _ACEOF
18941 if test "x$MYSQL_VERSION" != "xnot_found"; then
18942 DB_VERSION=${MYSQL_VERSION}
18944 else
18945 DB_NAME=MARIADB
18946 if test "x$enable_dbserver" = "xyes"; then :
18949 # We need libmysqlclient to compile
18950 # finds it for us. Abort if no mysqlclientlibs are found
18954 # Check whether --with-mariadbclient-prefix was given.
18955 if test "${with_mariadbclient_prefix+set}" = set; then :
18956 withval=$with_mariadbclient_prefix; mariadbclient_prefix="$withval"
18957 else
18958 mariadbclient_prefix=""
18963 # Check whether --with-mariadbclient-include was given.
18964 if test "${with_mariadbclient_include+set}" = set; then :
18965 withval=$with_mariadbclient_include; mariadbclient_include="$withval"
18966 else
18967 mariadbclient_include=""
18972 # Check whether --with-mariadbclient-lib was given.
18973 if test "${with_mariadbclient_lib+set}" = set; then :
18974 withval=$with_mariadbclient_lib; mariadbclient_lib="$withval"
18975 else
18976 mariadbclient_lib=""
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mariadbclient " >&5
18981 $as_echo_n "checking for mariadbclient ... " >&6; }
18982 MARIADBCLIENT_LDFLAGS=""
18983 MARIADBCLIENT_CFLAGS=""
18984 MARIADBCLIENT_LIBS="-lmariadb"
18985 mariadbclient_fail=""
18987 for tryprefix in /usr /usr/local /usr/mysql /usr/local/mysql /usr/pkg $mariadbclient_prefix ; do
18988 for hloc in lib/mariadb lib ; do
18989 if test -f "$tryprefix/$hloc/libmariadb.so"; then
18990 MARIADBCLIENT_LDFLAGS="-L$tryprefix/$hloc"
18991 elif test -f "$tryprefix/$hloc/libmariadb.a"; then
18992 MARIADBCLIENT_LDFLAGS="-L$tryprefix/$hloc"
18994 done
18996 for iloc in include/mariadb include; do
18997 if test -f "$tryprefix/$iloc/mysql.h"; then
18998 MARIADBCLIENT_CFLAGS="-I$tryprefix/$iloc"
19000 done
19001 # testloop
19002 done
19004 if test "x$mariadbclient_include" != "x" ; then
19005 echo "checking for mariadb includes... "
19006 if test -d "$mariadbclient_include/mariadb" ; then
19007 MARIADBCLIENT_CFLAGS="-I$mariadbclient_include"
19008 echo " found $MARIADBCLIENT_CFLAGS"
19009 elif test -d "$mariadbclient_include/include/mariadb" ; then
19010 MARIADBCLIENT_CFLAGS="-I$mariadbclient_include/include"
19011 echo " found $MARIADBCLIENT_CFLAGS"
19012 elif test -d "$mariadbclient_include" ; then
19013 MARIADBCLIENT_CFLAGS="-I$mariadbclient_include"
19014 echo "found $MARIADBCLIENT_CFLAGS"
19015 else
19016 echo "not found! no include dir found in $mariadbclient_include"
19020 if test "x$mariadbclient_lib" != "x" ; then
19021 echo "checking for mariadb libx... "
19022 if test -d "$mariadbclient_lib/lib/mariadb" ; then
19023 MARIADBCLIENT_LDFLAGS="-L$mariadbclient_lib/lib/mariadb"
19024 echo "found $MARIADBCLIENT_LDFLAGS"
19025 elif test -d "$mariadbclient_lib/lin" ; then
19026 MARIADBCLIENT_LDFLAGS="-L$mariadbclient_lib/lib"
19027 echo "found $MARIADBCLIENT_LDFLAGS"
19028 else
19029 MARIADBCLIENT_LDFLAGS="-L$mariadbclient_lib"
19030 echo "defaultd to $MARIADBCLIENT_LDFLAGS"
19034 ac_save_CFLAGS="$CFLAGS"
19035 ac_save_LDFLAGS="$LDFLAGS"
19036 ac_save_LIBS="$LIBS"
19037 CFLAGS="-v $CFLAGS $MARIADBCLIENT_CFLAGS"
19038 LDFLAGS="$LDFLAGS $MARIADBCLIENT_LDFLAGS"
19039 LIBS="$LIBS $MARIADBCLIENT_LIBS"
19040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19041 /* end confdefs.h. */
19043 #include <mysql.h>
19044 #include <mysql_version.h>
19047 main ()
19050 mysql_init( 0 );
19053 return 0;
19055 _ACEOF
19056 if ac_fn_c_try_link "$LINENO"; then :
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes $MARIADBCLIENT_CFLAGS $MARIADBCLIENT_LDFLAGS" >&5
19058 $as_echo "yes $MARIADBCLIENT_CFLAGS $MARIADBCLIENT_LDFLAGS" >&6; }
19059 CFLAGS="$ac_save_CFLAGS"
19060 LDFLAGS="$ac_save_LDFLAGS"
19061 LIBS="$ac_save_LIBS"
19064 else
19066 echo "no"
19067 echo "can't compile a simple app with mysql_connnect in it. bad."
19068 mariadbclient_fail="yes"
19071 rm -f core conftest.err conftest.$ac_objext \
19072 conftest$ac_exeext conftest.$ac_ext
19074 if test "x$mariadbclient_fail" != "x" ; then
19075 echo
19076 echo "***"
19077 echo "*** mariadbclient test source had problems, check your config.log ."
19078 echo "*** Also try one of the following switches :"
19079 echo "*** --with-mariadbclient-prefix=PFX"
19080 echo "*** --with-mariadbclient-include=DIR"
19081 echo "*** --with-mariadbclient-lib=DIR"
19082 echo "***"
19083 CFLAGS="$ac_save_CFLAGS"
19084 LDFLAGS="$ac_save_LDFLAGS"
19085 LIBS="$ac_save_LIBS"
19086 MARIADBCLIENT_LIBS=""
19087 MARIADBCLIENT_CFLAGS=""
19091 CFLAGS="$ac_save_CFLAGS"
19092 LDFLAGS="$ac_save_LDFLAGS"
19093 LIBS="$ac_save_LIBS"
19098 if test "x$MARIADBCLIENT_CFLAGS" = "x"
19099 then
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No libmariadbclient libs found" >&5
19101 $as_echo "$as_me: WARNING: No libmariadbclient libs found" >&2;}
19102 enable_dbserver=no
19105 DB_LDFLAGS=${MARIADBCLIENT_LDFLAGS}
19106 DB_LDLIBS=${MARIADBCLIENT_LIBS}
19107 DB_CFLAGS=${MARIADBCLIENT_CFLAGS}
19109 # Extract the first word of "mysql", so it can be a program name with args.
19110 set dummy mysql; ac_word=$2
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19112 $as_echo_n "checking for $ac_word... " >&6; }
19113 if ${ac_cv_path_MYSQL+:} false; then :
19114 $as_echo_n "(cached) " >&6
19115 else
19116 case $MYSQL in
19117 [\\/]* | ?:[\\/]*)
19118 ac_cv_path_MYSQL="$MYSQL" # Let the user override the test with a path.
19121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19122 for as_dir in $PATH
19124 IFS=$as_save_IFS
19125 test -z "$as_dir" && as_dir=.
19126 for ac_exec_ext in '' $ac_executable_extensions; do
19127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19128 ac_cv_path_MYSQL="$as_dir/$ac_word$ac_exec_ext"
19129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19130 break 2
19132 done
19133 done
19134 IFS=$as_save_IFS
19136 test -z "$ac_cv_path_MYSQL" && ac_cv_path_MYSQL="nocommand"
19138 esac
19140 MYSQL=$ac_cv_path_MYSQL
19141 if test -n "$MYSQL"; then
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL" >&5
19143 $as_echo "$MYSQL" >&6; }
19144 else
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19146 $as_echo "no" >&6; }
19150 MARIADB_VERSION=not_found
19152 if test "x$MYSQL" != "xnocommand"; then
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mariadb release (at least version 10.0)" >&5
19154 $as_echo_n "checking for mariadb release (at least version 10.0)... " >&6; }
19155 if ${ac_cv_mariadb_version_10_0+:} false; then :
19156 $as_echo_n "(cached) " >&6
19157 else
19159 if test -x $MYSQL; then
19160 VERS=`$MYSQL --version 2>&1 | cut -d ' ' -f 6 | cut -d ',' -f 1`
19161 MARIADB_VERSION=$VERS
19163 MARIADB_MAJOR=`echo $VERS | cut -d '.' -f 1`
19164 MARIADB_MINOR=`echo $VERS | cut -d '.' -f 2`
19165 MARIADB_MICRO=`echo $VERS | cut -d '.' -f 3`
19166 MARIA=`echo $MARIADB_MICRO | cut -d '-' -f 2`
19168 if test $MARIADB_MAJOR -lt 10; then
19169 ac_cv_mariadb_version_10_0=no
19170 MARIADB_VERSION=not_found
19171 else
19172 if test $MARIADB_MINOR -lt 0; then
19173 ac_cv_mariadb_version_10_0=no
19174 MARIADB_VERSION=not_found
19175 else
19176 ac_cv_mariadb_version_10_0=yes
19179 else
19180 ac_cv_mariadb_version_10_0=no
19181 MARIADB_VERSION=not_found
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mariadb_version_10_0" >&5
19186 $as_echo "$ac_cv_mariadb_version_10_0" >&6; }
19188 if test "x$ac_cv_mariadb_version_10_0" = "xno"; then
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not supported mariadb release. Should be 10.0.x or above. Please update !" >&5
19190 $as_echo "$as_me: WARNING: Not supported mariadb release. Should be 10.0.x or above. Please update !" >&2;}
19191 enable_db_schema_create=no
19192 enable_dbserver=no
19193 else
19194 enable_db_schema_create=yes
19196 else
19197 enable_db_schema_create=no
19201 # check for a database schema update
19203 if test "x$enable_db_schema_create" = "xyes"; then :
19206 # Check whether --enable-dbcreate was given.
19207 if test "${enable_dbcreate+set}" = set; then :
19208 enableval=$enable_dbcreate;
19209 else
19210 enable_dbcreate=yes
19213 enable_db_schema_create=$enable_dbcreate
19215 if test "x$enable_db_schema_create" = "xyes"; then :
19221 # Extract the first word of "mysql$EXEEXT", so it can be a program name with args.
19222 set dummy mysql$EXEEXT; ac_word=$2
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19224 $as_echo_n "checking for $ac_word... " >&6; }
19225 if ${ac_cv_path_MYSQL+:} false; then :
19226 $as_echo_n "(cached) " >&6
19227 else
19228 case $MYSQL in
19229 [\\/]* | ?:[\\/]*)
19230 ac_cv_path_MYSQL="$MYSQL" # Let the user override the test with a path.
19233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19234 for as_dir in $PATH
19236 IFS=$as_save_IFS
19237 test -z "$as_dir" && as_dir=.
19238 for ac_exec_ext in '' $ac_executable_extensions; do
19239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19240 ac_cv_path_MYSQL="$as_dir/$ac_word$ac_exec_ext"
19241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19242 break 2
19244 done
19245 done
19246 IFS=$as_save_IFS
19248 test -z "$ac_cv_path_MYSQL" && ac_cv_path_MYSQL="nocommand"
19250 esac
19252 MYSQL=$ac_cv_path_MYSQL
19253 if test -n "$MYSQL"; then
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL" >&5
19255 $as_echo "$MYSQL" >&6; }
19256 else
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19258 $as_echo "no" >&6; }
19262 if test "$MYSQL" = nocommand; then
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mysql not found in $PATH" >&5
19264 $as_echo "$as_me: WARNING: mysql not found in $PATH" >&2;}
19265 enable_db_schema_create=no
19266 else
19269 # Check whether --with-mysql-ho was given.
19270 if test "${with_mysql_ho+set}" = set; then :
19271 withval=$with_mysql_ho; MYSQL_HOST=${with_mysql_ho}
19272 else
19273 MYSQL_HOST=""
19278 # Check whether --with-mysql-admin was given.
19279 if test "${with_mysql_admin+set}" = set; then :
19280 withval=$with_mysql_admin; MYSQL_ADMIN=${with_mysql_admin}
19281 else
19282 MYSQL_ADMIN=""
19287 # Check whether --with-mysql-admin-passwd was given.
19288 if test "${with_mysql_admin_passwd+set}" = set; then :
19289 withval=$with_mysql_admin_passwd; MYSQL_ADMIN_PASSWD=${with_mysql_admin_passwd}
19290 else
19291 MYSQL_ADMIN_PASSWD=""
19295 if test "x$MYSQL_ADMIN" = "x"; then
19296 user_switch="";
19297 else
19298 user_switch="-u$MYSQL_ADMIN";
19301 if test "x$MYSQL_ADMIN_PASSWD" = "x"; then
19302 passwd_switch="";
19303 else
19304 passwd_switch="-p$MYSQL_ADMIN_PASSWD";
19307 if test "x$MYSQL_HOST" = "x"; then
19308 host_switch="";
19309 else
19310 host_switch="-h$MYSQL_HOST";
19313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mysql works" >&5
19314 $as_echo_n "checking if mysql works... " >&6; }
19316 if echo 'SELECT * FROM user' | $MYSQL $user_switch $passwd_switch $host_switch mysql> /dev/null; then
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19318 $as_echo "yes" >&6; }
19324 MYSQL_CONNECTION=OK
19326 else
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mysql cannot execute SELECT with user=$MYSQL_ADMIN, passwd=$MYSQL_ADMIN_PASSWD, and host=$MYSQL_HOST. Please check your my.cnf file or configure options!" >&5
19329 $as_echo "$as_me: WARNING: mysql cannot execute SELECT with user=$MYSQL_ADMIN, passwd=$MYSQL_ADMIN_PASSWD, and host=$MYSQL_HOST. Please check your my.cnf file or configure options!" >&2;}
19330 MYSQL_CONNECTION=failed
19331 enable_db_schema_create=no
19333 cat >>confdefs.h <<_ACEOF
19334 #define MYSQL_HOST "$MYSQL_HOST"
19335 _ACEOF
19346 if test "x$MARIADB_VERSION" != "xnot_found"; then
19347 DB_VERSION=${MARIADB_VERSION}
19357 # Build the jpeg library compilation option
19360 # Check whether --enable-jpegmmx was given.
19361 if test "${enable_jpegmmx+set}" = set; then :
19362 enableval=$enable_jpegmmx;
19363 else
19364 enable_jpegmmx=yes
19368 JPEG_LIB_CXXFLAGS="-D_TANGO_LIB"
19369 JPEG_MMX_LIB_CXXFLAGS="-D_TANGO_LIB"
19371 if test "x$enable_jpegmmx" != xno; then
19372 case $host_cpu in
19373 i*86 )
19374 JPEG_LIB_CXXFLAGS="-D_TANGO_LIB -DJPG_USE_ASM"
19375 JPEG_MMX_LIB_CXXFLAGS="-D_TANGO_LIB -mmmx -DJPG_USE_ASM"
19377 esac
19383 # Define a conditional variables to enable or disable installation
19384 # of the database server and the database schema creation.
19385 # The variables are used in the Makefiles.
19388 if test x"$enable_dbserver" = x"yes"; then
19389 TANGO_DB_SERVER_ENABLED_TRUE=
19390 TANGO_DB_SERVER_ENABLED_FALSE='#'
19391 else
19392 TANGO_DB_SERVER_ENABLED_TRUE='#'
19393 TANGO_DB_SERVER_ENABLED_FALSE=
19396 if test x"$enable_db_schema_create" = x"yes"; then
19397 TANGO_DB_CREATE_ENABLED_TRUE=
19398 TANGO_DB_CREATE_ENABLED_FALSE='#'
19399 else
19400 TANGO_DB_CREATE_ENABLED_TRUE='#'
19401 TANGO_DB_CREATE_ENABLED_FALSE=
19410 DATADIR=`eval echo $datadir`
19411 DATADIR=`eval echo $DATADIR`
19420 # This is a hack to change PACKAGE_ #defines into TANGO_PACKAGE
19421 ac_config_commands="$ac_config_commands ac_config.h"
19424 # configure log4tango sub-package
19427 subdirs="$subdirs lib/cpp/log4tango"
19430 # All the Makefiles to be generated.
19431 ac_config_files="$ac_config_files Makefile lib/Makefile lib/idl/Makefile lib/cpp/tango.pc lib/cpp/Makefile lib/cpp/server/Makefile lib/cpp/server/idl/Makefile lib/cpp/server/jpeg/Makefile lib/cpp/server/jpeg_mmx/Makefile lib/cpp/client/Makefile lib/cpp/client/helpers/Makefile lib/java/Makefile cppserver/Makefile cppserver/database/Makefile cppserver/database/create_db.sql cppserver/database/create_db.sh cppserver/database/my.cnf cppserver/database/stored_proc.sql cppserver/database/create_db_tables.sql cppserver/database/update_db.sh cppserver/database/update_db.sql cppserver/database/update_db8.sql cppserver/database/update_db7.sql cppserver/database/rem_history.sql cppserver/starter/Makefile cppserver/tangotest/Makefile cppserver/AbstractClass/Makefile cppserver/AbstractClass/AccessControl/Makefile cppserver/tangoaccesscontrol/Makefile utils/Makefile utils/tango_admin/Makefile scripts/Makefile scripts/tango scripts/tango_wca doc/Makefile doc/man/Makefile doc/src/Makefile doc/src/ds_writing/Makefile doc/src/ds_model/Makefile doc/src/dance/Makefile doc/src/java_api/Makefile doc/src/java_api/picture/Makefile doc/src/gen_api/Makefile doc/src/advanced/Makefile pogo/Makefile pogo/templates/Makefile pogo/preferences/Makefile pogo/templates/cpp/Makefile"
19433 cat >confcache <<\_ACEOF
19434 # This file is a shell script that caches the results of configure
19435 # tests run on this system so they can be shared between configure
19436 # scripts and configure runs, see configure's option --config-cache.
19437 # It is not useful on other systems. If it contains results you don't
19438 # want to keep, you may remove or edit it.
19440 # config.status only pays attention to the cache file if you give it
19441 # the --recheck option to rerun configure.
19443 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19444 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19445 # following values.
19447 _ACEOF
19449 # The following way of writing the cache mishandles newlines in values,
19450 # but we know of no workaround that is simple, portable, and efficient.
19451 # So, we kill variables containing newlines.
19452 # Ultrix sh set writes to stderr and can't be redirected directly,
19453 # and sets the high bit in the cache file unless we assign to the vars.
19455 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19456 eval ac_val=\$$ac_var
19457 case $ac_val in #(
19458 *${as_nl}*)
19459 case $ac_var in #(
19460 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19461 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19462 esac
19463 case $ac_var in #(
19464 _ | IFS | as_nl) ;; #(
19465 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19466 *) { eval $ac_var=; unset $ac_var;} ;;
19467 esac ;;
19468 esac
19469 done
19471 (set) 2>&1 |
19472 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19473 *${as_nl}ac_space=\ *)
19474 # `set' does not quote correctly, so add quotes: double-quote
19475 # substitution turns \\\\ into \\, and sed turns \\ into \.
19476 sed -n \
19477 "s/'/'\\\\''/g;
19478 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19479 ;; #(
19481 # `set' quotes correctly as required by POSIX, so do not add quotes.
19482 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19484 esac |
19485 sort
19487 sed '
19488 /^ac_cv_env_/b end
19489 t clear
19490 :clear
19491 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19492 t end
19493 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19494 :end' >>confcache
19495 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19496 if test -w "$cache_file"; then
19497 if test "x$cache_file" != "x/dev/null"; then
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19499 $as_echo "$as_me: updating cache $cache_file" >&6;}
19500 if test ! -f "$cache_file" || test -h "$cache_file"; then
19501 cat confcache >"$cache_file"
19502 else
19503 case $cache_file in #(
19504 */* | ?:*)
19505 mv -f confcache "$cache_file"$$ &&
19506 mv -f "$cache_file"$$ "$cache_file" ;; #(
19508 mv -f confcache "$cache_file" ;;
19509 esac
19512 else
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19514 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19517 rm -f confcache
19519 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19520 # Let make expand exec_prefix.
19521 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19523 DEFS=-DHAVE_CONFIG_H
19525 ac_libobjs=
19526 ac_ltlibobjs=
19528 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19529 # 1. Remove the extension, and $U if already installed.
19530 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19531 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19532 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19533 # will be set to the directory where LIBOBJS objects are built.
19534 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19535 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19536 done
19537 LIBOBJS=$ac_libobjs
19539 LTLIBOBJS=$ac_ltlibobjs
19542 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19543 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19544 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19546 if test -n "$EXEEXT"; then
19547 am__EXEEXT_TRUE=
19548 am__EXEEXT_FALSE='#'
19549 else
19550 am__EXEEXT_TRUE='#'
19551 am__EXEEXT_FALSE=
19554 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19555 as_fn_error $? "conditional \"AMDEP\" was never defined.
19556 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19558 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19559 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19560 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19562 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19563 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19564 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19566 if test -z "${TANGO_JAVA_ENABLED_TRUE}" && test -z "${TANGO_JAVA_ENABLED_FALSE}"; then
19567 as_fn_error $? "conditional \"TANGO_JAVA_ENABLED\" was never defined.
19568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19570 if test -z "${TANGO_LYX_ENABLED_TRUE}" && test -z "${TANGO_LYX_ENABLED_FALSE}"; then
19571 as_fn_error $? "conditional \"TANGO_LYX_ENABLED\" was never defined.
19572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19574 if test -z "${TANGO_FIG2DEV_ENABLED_TRUE}" && test -z "${TANGO_FIG2DEV_ENABLED_FALSE}"; then
19575 as_fn_error $? "conditional \"TANGO_FIG2DEV_ENABLED\" was never defined.
19576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19578 if test -z "${TANGO_DOC_ENABLED_TRUE}" && test -z "${TANGO_DOC_ENABLED_FALSE}"; then
19579 as_fn_error $? "conditional \"TANGO_DOC_ENABLED\" was never defined.
19580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19582 if test -z "${DARWIN_ENABLED_TRUE}" && test -z "${DARWIN_ENABLED_FALSE}"; then
19583 as_fn_error $? "conditional \"DARWIN_ENABLED\" was never defined.
19584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19586 if test -z "${TANGO_DB_SERVER_ENABLED_TRUE}" && test -z "${TANGO_DB_SERVER_ENABLED_FALSE}"; then
19587 as_fn_error $? "conditional \"TANGO_DB_SERVER_ENABLED\" was never defined.
19588 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19590 if test -z "${TANGO_DB_CREATE_ENABLED_TRUE}" && test -z "${TANGO_DB_CREATE_ENABLED_FALSE}"; then
19591 as_fn_error $? "conditional \"TANGO_DB_CREATE_ENABLED\" was never defined.
19592 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19595 : "${CONFIG_STATUS=./config.status}"
19596 ac_write_fail=0
19597 ac_clean_files_save=$ac_clean_files
19598 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19599 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19600 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19601 as_write_fail=0
19602 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19603 #! $SHELL
19604 # Generated by $as_me.
19605 # Run this file to recreate the current configuration.
19606 # Compiler output produced by configure, useful for debugging
19607 # configure, is in config.log if it exists.
19609 debug=false
19610 ac_cs_recheck=false
19611 ac_cs_silent=false
19613 SHELL=\${CONFIG_SHELL-$SHELL}
19614 export SHELL
19615 _ASEOF
19616 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19617 ## -------------------- ##
19618 ## M4sh Initialization. ##
19619 ## -------------------- ##
19621 # Be more Bourne compatible
19622 DUALCASE=1; export DUALCASE # for MKS sh
19623 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19624 emulate sh
19625 NULLCMD=:
19626 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19627 # is contrary to our usage. Disable this feature.
19628 alias -g '${1+"$@"}'='"$@"'
19629 setopt NO_GLOB_SUBST
19630 else
19631 case `(set -o) 2>/dev/null` in #(
19632 *posix*) :
19633 set -o posix ;; #(
19634 *) :
19636 esac
19640 as_nl='
19642 export as_nl
19643 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19644 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19645 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19646 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19647 # Prefer a ksh shell builtin over an external printf program on Solaris,
19648 # but without wasting forks for bash or zsh.
19649 if test -z "$BASH_VERSION$ZSH_VERSION" \
19650 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19651 as_echo='print -r --'
19652 as_echo_n='print -rn --'
19653 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19654 as_echo='printf %s\n'
19655 as_echo_n='printf %s'
19656 else
19657 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19658 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19659 as_echo_n='/usr/ucb/echo -n'
19660 else
19661 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19662 as_echo_n_body='eval
19663 arg=$1;
19664 case $arg in #(
19665 *"$as_nl"*)
19666 expr "X$arg" : "X\\(.*\\)$as_nl";
19667 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19668 esac;
19669 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19671 export as_echo_n_body
19672 as_echo_n='sh -c $as_echo_n_body as_echo'
19674 export as_echo_body
19675 as_echo='sh -c $as_echo_body as_echo'
19678 # The user is always right.
19679 if test "${PATH_SEPARATOR+set}" != set; then
19680 PATH_SEPARATOR=:
19681 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19682 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19683 PATH_SEPARATOR=';'
19688 # IFS
19689 # We need space, tab and new line, in precisely that order. Quoting is
19690 # there to prevent editors from complaining about space-tab.
19691 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19692 # splitting by setting IFS to empty value.)
19693 IFS=" "" $as_nl"
19695 # Find who we are. Look in the path if we contain no directory separator.
19696 as_myself=
19697 case $0 in #((
19698 *[\\/]* ) as_myself=$0 ;;
19699 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19700 for as_dir in $PATH
19702 IFS=$as_save_IFS
19703 test -z "$as_dir" && as_dir=.
19704 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19705 done
19706 IFS=$as_save_IFS
19709 esac
19710 # We did not find ourselves, most probably we were run as `sh COMMAND'
19711 # in which case we are not to be found in the path.
19712 if test "x$as_myself" = x; then
19713 as_myself=$0
19715 if test ! -f "$as_myself"; then
19716 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19717 exit 1
19720 # Unset variables that we do not need and which cause bugs (e.g. in
19721 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19722 # suppresses any "Segmentation fault" message there. '((' could
19723 # trigger a bug in pdksh 5.2.14.
19724 for as_var in BASH_ENV ENV MAIL MAILPATH
19725 do eval test x\${$as_var+set} = xset \
19726 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19727 done
19728 PS1='$ '
19729 PS2='> '
19730 PS4='+ '
19732 # NLS nuisances.
19733 LC_ALL=C
19734 export LC_ALL
19735 LANGUAGE=C
19736 export LANGUAGE
19738 # CDPATH.
19739 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19742 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19743 # ----------------------------------------
19744 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19745 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19746 # script with STATUS, using 1 if that was 0.
19747 as_fn_error ()
19749 as_status=$1; test $as_status -eq 0 && as_status=1
19750 if test "$4"; then
19751 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19752 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19754 $as_echo "$as_me: error: $2" >&2
19755 as_fn_exit $as_status
19756 } # as_fn_error
19759 # as_fn_set_status STATUS
19760 # -----------------------
19761 # Set $? to STATUS, without forking.
19762 as_fn_set_status ()
19764 return $1
19765 } # as_fn_set_status
19767 # as_fn_exit STATUS
19768 # -----------------
19769 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19770 as_fn_exit ()
19772 set +e
19773 as_fn_set_status $1
19774 exit $1
19775 } # as_fn_exit
19777 # as_fn_unset VAR
19778 # ---------------
19779 # Portably unset VAR.
19780 as_fn_unset ()
19782 { eval $1=; unset $1;}
19784 as_unset=as_fn_unset
19785 # as_fn_append VAR VALUE
19786 # ----------------------
19787 # Append the text in VALUE to the end of the definition contained in VAR. Take
19788 # advantage of any shell optimizations that allow amortized linear growth over
19789 # repeated appends, instead of the typical quadratic growth present in naive
19790 # implementations.
19791 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19792 eval 'as_fn_append ()
19794 eval $1+=\$2
19796 else
19797 as_fn_append ()
19799 eval $1=\$$1\$2
19801 fi # as_fn_append
19803 # as_fn_arith ARG...
19804 # ------------------
19805 # Perform arithmetic evaluation on the ARGs, and store the result in the
19806 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19807 # must be portable across $(()) and expr.
19808 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19809 eval 'as_fn_arith ()
19811 as_val=$(( $* ))
19813 else
19814 as_fn_arith ()
19816 as_val=`expr "$@" || test $? -eq 1`
19818 fi # as_fn_arith
19821 if expr a : '\(a\)' >/dev/null 2>&1 &&
19822 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19823 as_expr=expr
19824 else
19825 as_expr=false
19828 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19829 as_basename=basename
19830 else
19831 as_basename=false
19834 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19835 as_dirname=dirname
19836 else
19837 as_dirname=false
19840 as_me=`$as_basename -- "$0" ||
19841 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19842 X"$0" : 'X\(//\)$' \| \
19843 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19844 $as_echo X/"$0" |
19845 sed '/^.*\/\([^/][^/]*\)\/*$/{
19846 s//\1/
19849 /^X\/\(\/\/\)$/{
19850 s//\1/
19853 /^X\/\(\/\).*/{
19854 s//\1/
19857 s/.*/./; q'`
19859 # Avoid depending upon Character Ranges.
19860 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19861 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19862 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19863 as_cr_digits='0123456789'
19864 as_cr_alnum=$as_cr_Letters$as_cr_digits
19866 ECHO_C= ECHO_N= ECHO_T=
19867 case `echo -n x` in #(((((
19868 -n*)
19869 case `echo 'xy\c'` in
19870 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19871 xy) ECHO_C='\c';;
19872 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19873 ECHO_T=' ';;
19874 esac;;
19876 ECHO_N='-n';;
19877 esac
19879 rm -f conf$$ conf$$.exe conf$$.file
19880 if test -d conf$$.dir; then
19881 rm -f conf$$.dir/conf$$.file
19882 else
19883 rm -f conf$$.dir
19884 mkdir conf$$.dir 2>/dev/null
19886 if (echo >conf$$.file) 2>/dev/null; then
19887 if ln -s conf$$.file conf$$ 2>/dev/null; then
19888 as_ln_s='ln -s'
19889 # ... but there are two gotchas:
19890 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19891 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19892 # In both cases, we have to default to `cp -pR'.
19893 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19894 as_ln_s='cp -pR'
19895 elif ln conf$$.file conf$$ 2>/dev/null; then
19896 as_ln_s=ln
19897 else
19898 as_ln_s='cp -pR'
19900 else
19901 as_ln_s='cp -pR'
19903 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19904 rmdir conf$$.dir 2>/dev/null
19907 # as_fn_mkdir_p
19908 # -------------
19909 # Create "$as_dir" as a directory, including parents if necessary.
19910 as_fn_mkdir_p ()
19913 case $as_dir in #(
19914 -*) as_dir=./$as_dir;;
19915 esac
19916 test -d "$as_dir" || eval $as_mkdir_p || {
19917 as_dirs=
19918 while :; do
19919 case $as_dir in #(
19920 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19921 *) as_qdir=$as_dir;;
19922 esac
19923 as_dirs="'$as_qdir' $as_dirs"
19924 as_dir=`$as_dirname -- "$as_dir" ||
19925 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19926 X"$as_dir" : 'X\(//\)[^/]' \| \
19927 X"$as_dir" : 'X\(//\)$' \| \
19928 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19929 $as_echo X"$as_dir" |
19930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19931 s//\1/
19934 /^X\(\/\/\)[^/].*/{
19935 s//\1/
19938 /^X\(\/\/\)$/{
19939 s//\1/
19942 /^X\(\/\).*/{
19943 s//\1/
19946 s/.*/./; q'`
19947 test -d "$as_dir" && break
19948 done
19949 test -z "$as_dirs" || eval "mkdir $as_dirs"
19950 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19953 } # as_fn_mkdir_p
19954 if mkdir -p . 2>/dev/null; then
19955 as_mkdir_p='mkdir -p "$as_dir"'
19956 else
19957 test -d ./-p && rmdir ./-p
19958 as_mkdir_p=false
19962 # as_fn_executable_p FILE
19963 # -----------------------
19964 # Test if FILE is an executable regular file.
19965 as_fn_executable_p ()
19967 test -f "$1" && test -x "$1"
19968 } # as_fn_executable_p
19969 as_test_x='test -x'
19970 as_executable_p=as_fn_executable_p
19972 # Sed expression to map a string onto a valid CPP name.
19973 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19975 # Sed expression to map a string onto a valid variable name.
19976 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19979 exec 6>&1
19980 ## ----------------------------------- ##
19981 ## Main body of $CONFIG_STATUS script. ##
19982 ## ----------------------------------- ##
19983 _ASEOF
19984 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19987 # Save the log message, to keep $0 and so on meaningful, and to
19988 # report actual input values of CONFIG_FILES etc. instead of their
19989 # values after options handling.
19990 ac_log="
19991 This file was extended by Tango $as_me 9.2.5a, which was
19992 generated by GNU Autoconf 2.69. Invocation command line was
19994 CONFIG_FILES = $CONFIG_FILES
19995 CONFIG_HEADERS = $CONFIG_HEADERS
19996 CONFIG_LINKS = $CONFIG_LINKS
19997 CONFIG_COMMANDS = $CONFIG_COMMANDS
19998 $ $0 $@
20000 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20003 _ACEOF
20005 case $ac_config_files in *"
20006 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20007 esac
20009 case $ac_config_headers in *"
20010 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20011 esac
20014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20015 # Files that config.status was made for.
20016 config_files="$ac_config_files"
20017 config_headers="$ac_config_headers"
20018 config_commands="$ac_config_commands"
20020 _ACEOF
20022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20023 ac_cs_usage="\
20024 \`$as_me' instantiates files and other configuration actions
20025 from templates according to the current configuration. Unless the files
20026 and actions are specified as TAGs, all are instantiated by default.
20028 Usage: $0 [OPTION]... [TAG]...
20030 -h, --help print this help, then exit
20031 -V, --version print version number and configuration settings, then exit
20032 --config print configuration, then exit
20033 -q, --quiet, --silent
20034 do not print progress messages
20035 -d, --debug don't remove temporary files
20036 --recheck update $as_me by reconfiguring in the same conditions
20037 --file=FILE[:TEMPLATE]
20038 instantiate the configuration file FILE
20039 --header=FILE[:TEMPLATE]
20040 instantiate the configuration header FILE
20042 Configuration files:
20043 $config_files
20045 Configuration headers:
20046 $config_headers
20048 Configuration commands:
20049 $config_commands
20051 Report bugs to <info@tango-controls.org>."
20053 _ACEOF
20054 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20055 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20056 ac_cs_version="\\
20057 Tango config.status 9.2.5a
20058 configured by $0, generated by GNU Autoconf 2.69,
20059 with options \\"\$ac_cs_config\\"
20061 Copyright (C) 2012 Free Software Foundation, Inc.
20062 This config.status script is free software; the Free Software Foundation
20063 gives unlimited permission to copy, distribute and modify it."
20065 ac_pwd='$ac_pwd'
20066 srcdir='$srcdir'
20067 INSTALL='$INSTALL'
20068 MKDIR_P='$MKDIR_P'
20069 AWK='$AWK'
20070 test -n "\$AWK" || AWK=awk
20071 _ACEOF
20073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20074 # The default lists apply if the user does not specify any file.
20075 ac_need_defaults=:
20076 while test $# != 0
20078 case $1 in
20079 --*=?*)
20080 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20081 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20082 ac_shift=:
20084 --*=)
20085 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20086 ac_optarg=
20087 ac_shift=:
20090 ac_option=$1
20091 ac_optarg=$2
20092 ac_shift=shift
20094 esac
20096 case $ac_option in
20097 # Handling of the options.
20098 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20099 ac_cs_recheck=: ;;
20100 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20101 $as_echo "$ac_cs_version"; exit ;;
20102 --config | --confi | --conf | --con | --co | --c )
20103 $as_echo "$ac_cs_config"; exit ;;
20104 --debug | --debu | --deb | --de | --d | -d )
20105 debug=: ;;
20106 --file | --fil | --fi | --f )
20107 $ac_shift
20108 case $ac_optarg in
20109 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20110 '') as_fn_error $? "missing file argument" ;;
20111 esac
20112 as_fn_append CONFIG_FILES " '$ac_optarg'"
20113 ac_need_defaults=false;;
20114 --header | --heade | --head | --hea )
20115 $ac_shift
20116 case $ac_optarg in
20117 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20118 esac
20119 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20120 ac_need_defaults=false;;
20121 --he | --h)
20122 # Conflict between --help and --header
20123 as_fn_error $? "ambiguous option: \`$1'
20124 Try \`$0 --help' for more information.";;
20125 --help | --hel | -h )
20126 $as_echo "$ac_cs_usage"; exit ;;
20127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20128 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20129 ac_cs_silent=: ;;
20131 # This is an error.
20132 -*) as_fn_error $? "unrecognized option: \`$1'
20133 Try \`$0 --help' for more information." ;;
20135 *) as_fn_append ac_config_targets " $1"
20136 ac_need_defaults=false ;;
20138 esac
20139 shift
20140 done
20142 ac_configure_extra_args=
20144 if $ac_cs_silent; then
20145 exec 6>/dev/null
20146 ac_configure_extra_args="$ac_configure_extra_args --silent"
20149 _ACEOF
20150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20151 if \$ac_cs_recheck; then
20152 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20153 shift
20154 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20155 CONFIG_SHELL='$SHELL'
20156 export CONFIG_SHELL
20157 exec "\$@"
20160 _ACEOF
20161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20162 exec 5>>config.log
20164 echo
20165 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20166 ## Running $as_me. ##
20167 _ASBOX
20168 $as_echo "$ac_log"
20169 } >&5
20171 _ACEOF
20172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20174 # INIT-COMMANDS
20176 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20179 # The HP-UX ksh and POSIX shell print the target directory to stdout
20180 # if CDPATH is set.
20181 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20183 sed_quote_subst='$sed_quote_subst'
20184 double_quote_subst='$double_quote_subst'
20185 delay_variable_subst='$delay_variable_subst'
20186 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20187 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20188 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20189 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20190 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20191 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20192 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20193 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20194 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20195 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20196 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20197 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20198 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20199 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20200 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20201 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20202 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20203 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20204 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20205 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20206 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20207 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20208 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20209 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20210 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20211 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20212 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20213 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20214 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20215 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20216 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20217 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20218 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20219 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20220 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20221 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20222 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20223 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20224 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20225 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20226 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20227 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20228 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20229 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20230 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20231 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20232 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20233 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20234 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20235 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20236 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20237 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20238 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20239 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20240 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20241 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20242 lt_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"`'
20243 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20244 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20245 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20246 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20247 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20248 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20249 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20250 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20251 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20252 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20253 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20254 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20255 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20256 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20257 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20258 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20259 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20260 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20261 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20262 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20263 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20264 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20265 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20266 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20267 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20268 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20269 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20270 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20271 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20272 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20273 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20274 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20275 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20276 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20277 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20278 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20279 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20280 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20281 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20282 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20283 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20284 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20285 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20286 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20287 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20288 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20289 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20290 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20291 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20292 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20293 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20294 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20295 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20296 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20297 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20298 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20299 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20300 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20301 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20302 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20303 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20304 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20305 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20306 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20307 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20308 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20309 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20310 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20311 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20312 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20313 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20314 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20315 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20316 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20317 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20318 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20319 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20320 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20321 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20322 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20323 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20324 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20325 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20326 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20327 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20328 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20329 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20330 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20331 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20332 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20333 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20334 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20335 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20336 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20337 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20338 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20339 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20340 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20341 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20342 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20343 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20344 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20345 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20346 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20347 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20348 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20349 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20350 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20351 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20352 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20353 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20354 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20355 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20356 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20357 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20358 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20359 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20360 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20361 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20362 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20363 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20364 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20365 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20366 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20367 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20368 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20369 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20371 LTCC='$LTCC'
20372 LTCFLAGS='$LTCFLAGS'
20373 compiler='$compiler_DEFAULT'
20375 # A function that is used when there is no print builtin or printf.
20376 func_fallback_echo ()
20378 eval 'cat <<_LTECHO_EOF
20380 _LTECHO_EOF'
20383 # Quote evaled strings.
20384 for var in SHELL \
20385 ECHO \
20386 PATH_SEPARATOR \
20387 SED \
20388 GREP \
20389 EGREP \
20390 FGREP \
20391 LD \
20392 NM \
20393 LN_S \
20394 lt_SP2NL \
20395 lt_NL2SP \
20396 reload_flag \
20397 OBJDUMP \
20398 deplibs_check_method \
20399 file_magic_cmd \
20400 file_magic_glob \
20401 want_nocaseglob \
20402 DLLTOOL \
20403 sharedlib_from_linklib_cmd \
20404 AR \
20405 AR_FLAGS \
20406 archiver_list_spec \
20407 STRIP \
20408 RANLIB \
20409 CC \
20410 CFLAGS \
20411 compiler \
20412 lt_cv_sys_global_symbol_pipe \
20413 lt_cv_sys_global_symbol_to_cdecl \
20414 lt_cv_sys_global_symbol_to_c_name_address \
20415 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20416 nm_file_list_spec \
20417 lt_prog_compiler_no_builtin_flag \
20418 lt_prog_compiler_pic \
20419 lt_prog_compiler_wl \
20420 lt_prog_compiler_static \
20421 lt_cv_prog_compiler_c_o \
20422 need_locks \
20423 MANIFEST_TOOL \
20424 DSYMUTIL \
20425 NMEDIT \
20426 LIPO \
20427 OTOOL \
20428 OTOOL64 \
20429 shrext_cmds \
20430 export_dynamic_flag_spec \
20431 whole_archive_flag_spec \
20432 compiler_needs_object \
20433 with_gnu_ld \
20434 allow_undefined_flag \
20435 no_undefined_flag \
20436 hardcode_libdir_flag_spec \
20437 hardcode_libdir_separator \
20438 exclude_expsyms \
20439 include_expsyms \
20440 file_list_spec \
20441 variables_saved_for_relink \
20442 libname_spec \
20443 library_names_spec \
20444 soname_spec \
20445 install_override_mode \
20446 finish_eval \
20447 old_striplib \
20448 striplib \
20449 compiler_lib_search_dirs \
20450 predep_objects \
20451 postdep_objects \
20452 predeps \
20453 postdeps \
20454 compiler_lib_search_path \
20455 LD_CXX \
20456 reload_flag_CXX \
20457 compiler_CXX \
20458 lt_prog_compiler_no_builtin_flag_CXX \
20459 lt_prog_compiler_pic_CXX \
20460 lt_prog_compiler_wl_CXX \
20461 lt_prog_compiler_static_CXX \
20462 lt_cv_prog_compiler_c_o_CXX \
20463 export_dynamic_flag_spec_CXX \
20464 whole_archive_flag_spec_CXX \
20465 compiler_needs_object_CXX \
20466 with_gnu_ld_CXX \
20467 allow_undefined_flag_CXX \
20468 no_undefined_flag_CXX \
20469 hardcode_libdir_flag_spec_CXX \
20470 hardcode_libdir_separator_CXX \
20471 exclude_expsyms_CXX \
20472 include_expsyms_CXX \
20473 file_list_spec_CXX \
20474 compiler_lib_search_dirs_CXX \
20475 predep_objects_CXX \
20476 postdep_objects_CXX \
20477 predeps_CXX \
20478 postdeps_CXX \
20479 compiler_lib_search_path_CXX; do
20480 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20481 *[\\\\\\\`\\"\\\$]*)
20482 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20485 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20487 esac
20488 done
20490 # Double-quote double-evaled strings.
20491 for var in reload_cmds \
20492 old_postinstall_cmds \
20493 old_postuninstall_cmds \
20494 old_archive_cmds \
20495 extract_expsyms_cmds \
20496 old_archive_from_new_cmds \
20497 old_archive_from_expsyms_cmds \
20498 archive_cmds \
20499 archive_expsym_cmds \
20500 module_cmds \
20501 module_expsym_cmds \
20502 export_symbols_cmds \
20503 prelink_cmds \
20504 postlink_cmds \
20505 postinstall_cmds \
20506 postuninstall_cmds \
20507 finish_cmds \
20508 sys_lib_search_path_spec \
20509 sys_lib_dlsearch_path_spec \
20510 reload_cmds_CXX \
20511 old_archive_cmds_CXX \
20512 old_archive_from_new_cmds_CXX \
20513 old_archive_from_expsyms_cmds_CXX \
20514 archive_cmds_CXX \
20515 archive_expsym_cmds_CXX \
20516 module_cmds_CXX \
20517 module_expsym_cmds_CXX \
20518 export_symbols_cmds_CXX \
20519 prelink_cmds_CXX \
20520 postlink_cmds_CXX; do
20521 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20522 *[\\\\\\\`\\"\\\$]*)
20523 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20526 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20528 esac
20529 done
20531 ac_aux_dir='$ac_aux_dir'
20532 xsi_shell='$xsi_shell'
20533 lt_shell_append='$lt_shell_append'
20535 # See if we are running on zsh, and set the options which allow our
20536 # commands through without removal of \ escapes INIT.
20537 if test -n "\${ZSH_VERSION+set}" ; then
20538 setopt NO_GLOB_SUBST
20542 PACKAGE='$PACKAGE'
20543 VERSION='$VERSION'
20544 TIMESTAMP='$TIMESTAMP'
20545 RM='$RM'
20546 ofile='$ofile'
20553 _ACEOF
20555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20557 # Handling of arguments.
20558 for ac_config_target in $ac_config_targets
20560 case $ac_config_target in
20561 "ac_config.h.tmp") CONFIG_HEADERS="$CONFIG_HEADERS ac_config.h.tmp" ;;
20562 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20563 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20564 "ac_config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS ac_config.h" ;;
20565 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20566 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20567 "lib/idl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/idl/Makefile" ;;
20568 "lib/cpp/tango.pc") CONFIG_FILES="$CONFIG_FILES lib/cpp/tango.pc" ;;
20569 "lib/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/cpp/Makefile" ;;
20570 "lib/cpp/server/Makefile") CONFIG_FILES="$CONFIG_FILES lib/cpp/server/Makefile" ;;
20571 "lib/cpp/server/idl/Makefile") CONFIG_FILES="$CONFIG_FILES lib/cpp/server/idl/Makefile" ;;
20572 "lib/cpp/server/jpeg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/cpp/server/jpeg/Makefile" ;;
20573 "lib/cpp/server/jpeg_mmx/Makefile") CONFIG_FILES="$CONFIG_FILES lib/cpp/server/jpeg_mmx/Makefile" ;;
20574 "lib/cpp/client/Makefile") CONFIG_FILES="$CONFIG_FILES lib/cpp/client/Makefile" ;;
20575 "lib/cpp/client/helpers/Makefile") CONFIG_FILES="$CONFIG_FILES lib/cpp/client/helpers/Makefile" ;;
20576 "lib/java/Makefile") CONFIG_FILES="$CONFIG_FILES lib/java/Makefile" ;;
20577 "cppserver/Makefile") CONFIG_FILES="$CONFIG_FILES cppserver/Makefile" ;;
20578 "cppserver/database/Makefile") CONFIG_FILES="$CONFIG_FILES cppserver/database/Makefile" ;;
20579 "cppserver/database/create_db.sql") CONFIG_FILES="$CONFIG_FILES cppserver/database/create_db.sql" ;;
20580 "cppserver/database/create_db.sh") CONFIG_FILES="$CONFIG_FILES cppserver/database/create_db.sh" ;;
20581 "cppserver/database/my.cnf") CONFIG_FILES="$CONFIG_FILES cppserver/database/my.cnf" ;;
20582 "cppserver/database/stored_proc.sql") CONFIG_FILES="$CONFIG_FILES cppserver/database/stored_proc.sql" ;;
20583 "cppserver/database/create_db_tables.sql") CONFIG_FILES="$CONFIG_FILES cppserver/database/create_db_tables.sql" ;;
20584 "cppserver/database/update_db.sh") CONFIG_FILES="$CONFIG_FILES cppserver/database/update_db.sh" ;;
20585 "cppserver/database/update_db.sql") CONFIG_FILES="$CONFIG_FILES cppserver/database/update_db.sql" ;;
20586 "cppserver/database/update_db8.sql") CONFIG_FILES="$CONFIG_FILES cppserver/database/update_db8.sql" ;;
20587 "cppserver/database/update_db7.sql") CONFIG_FILES="$CONFIG_FILES cppserver/database/update_db7.sql" ;;
20588 "cppserver/database/rem_history.sql") CONFIG_FILES="$CONFIG_FILES cppserver/database/rem_history.sql" ;;
20589 "cppserver/starter/Makefile") CONFIG_FILES="$CONFIG_FILES cppserver/starter/Makefile" ;;
20590 "cppserver/tangotest/Makefile") CONFIG_FILES="$CONFIG_FILES cppserver/tangotest/Makefile" ;;
20591 "cppserver/AbstractClass/Makefile") CONFIG_FILES="$CONFIG_FILES cppserver/AbstractClass/Makefile" ;;
20592 "cppserver/AbstractClass/AccessControl/Makefile") CONFIG_FILES="$CONFIG_FILES cppserver/AbstractClass/AccessControl/Makefile" ;;
20593 "cppserver/tangoaccesscontrol/Makefile") CONFIG_FILES="$CONFIG_FILES cppserver/tangoaccesscontrol/Makefile" ;;
20594 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
20595 "utils/tango_admin/Makefile") CONFIG_FILES="$CONFIG_FILES utils/tango_admin/Makefile" ;;
20596 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
20597 "scripts/tango") CONFIG_FILES="$CONFIG_FILES scripts/tango" ;;
20598 "scripts/tango_wca") CONFIG_FILES="$CONFIG_FILES scripts/tango_wca" ;;
20599 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20600 "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
20601 "doc/src/Makefile") CONFIG_FILES="$CONFIG_FILES doc/src/Makefile" ;;
20602 "doc/src/ds_writing/Makefile") CONFIG_FILES="$CONFIG_FILES doc/src/ds_writing/Makefile" ;;
20603 "doc/src/ds_model/Makefile") CONFIG_FILES="$CONFIG_FILES doc/src/ds_model/Makefile" ;;
20604 "doc/src/dance/Makefile") CONFIG_FILES="$CONFIG_FILES doc/src/dance/Makefile" ;;
20605 "doc/src/java_api/Makefile") CONFIG_FILES="$CONFIG_FILES doc/src/java_api/Makefile" ;;
20606 "doc/src/java_api/picture/Makefile") CONFIG_FILES="$CONFIG_FILES doc/src/java_api/picture/Makefile" ;;
20607 "doc/src/gen_api/Makefile") CONFIG_FILES="$CONFIG_FILES doc/src/gen_api/Makefile" ;;
20608 "doc/src/advanced/Makefile") CONFIG_FILES="$CONFIG_FILES doc/src/advanced/Makefile" ;;
20609 "pogo/Makefile") CONFIG_FILES="$CONFIG_FILES pogo/Makefile" ;;
20610 "pogo/templates/Makefile") CONFIG_FILES="$CONFIG_FILES pogo/templates/Makefile" ;;
20611 "pogo/preferences/Makefile") CONFIG_FILES="$CONFIG_FILES pogo/preferences/Makefile" ;;
20612 "pogo/templates/cpp/Makefile") CONFIG_FILES="$CONFIG_FILES pogo/templates/cpp/Makefile" ;;
20614 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20615 esac
20616 done
20619 # If the user did not use the arguments to specify the items to instantiate,
20620 # then the envvar interface is used. Set only those that are not.
20621 # We use the long form for the default assignment because of an extremely
20622 # bizarre bug on SunOS 4.1.3.
20623 if $ac_need_defaults; then
20624 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20625 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20626 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20629 # Have a temporary directory for convenience. Make it in the build tree
20630 # simply because there is no reason against having it here, and in addition,
20631 # creating and moving files from /tmp can sometimes cause problems.
20632 # Hook for its removal unless debugging.
20633 # Note that there is a small window in which the directory will not be cleaned:
20634 # after its creation but before its name has been assigned to `$tmp'.
20635 $debug ||
20637 tmp= ac_tmp=
20638 trap 'exit_status=$?
20639 : "${ac_tmp:=$tmp}"
20640 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20642 trap 'as_fn_exit 1' 1 2 13 15
20644 # Create a (secure) tmp directory for tmp files.
20647 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20648 test -d "$tmp"
20649 } ||
20651 tmp=./conf$$-$RANDOM
20652 (umask 077 && mkdir "$tmp")
20653 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20654 ac_tmp=$tmp
20656 # Set up the scripts for CONFIG_FILES section.
20657 # No need to generate them if there are no CONFIG_FILES.
20658 # This happens for instance with `./config.status config.h'.
20659 if test -n "$CONFIG_FILES"; then
20662 ac_cr=`echo X | tr X '\015'`
20663 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20664 # But we know of no other shell where ac_cr would be empty at this
20665 # point, so we can use a bashism as a fallback.
20666 if test "x$ac_cr" = x; then
20667 eval ac_cr=\$\'\\r\'
20669 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20670 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20671 ac_cs_awk_cr='\\r'
20672 else
20673 ac_cs_awk_cr=$ac_cr
20676 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20677 _ACEOF
20681 echo "cat >conf$$subs.awk <<_ACEOF" &&
20682 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20683 echo "_ACEOF"
20684 } >conf$$subs.sh ||
20685 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20686 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20687 ac_delim='%!_!# '
20688 for ac_last_try in false false false false false :; do
20689 . ./conf$$subs.sh ||
20690 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20692 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20693 if test $ac_delim_n = $ac_delim_num; then
20694 break
20695 elif $ac_last_try; then
20696 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20697 else
20698 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20700 done
20701 rm -f conf$$subs.sh
20703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20704 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20705 _ACEOF
20706 sed -n '
20708 s/^/S["/; s/!.*/"]=/
20711 s/^[^!]*!//
20712 :repl
20713 t repl
20714 s/'"$ac_delim"'$//
20715 t delim
20718 s/\(.\{148\}\)..*/\1/
20719 t more1
20720 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20723 b repl
20724 :more1
20725 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20728 s/.\{148\}//
20729 t nl
20730 :delim
20732 s/\(.\{148\}\)..*/\1/
20733 t more2
20734 s/["\\]/\\&/g; s/^/"/; s/$/"/
20737 :more2
20738 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20741 s/.\{148\}//
20742 t delim
20743 ' <conf$$subs.awk | sed '
20744 /^[^""]/{
20746 s/\n//
20748 ' >>$CONFIG_STATUS || ac_write_fail=1
20749 rm -f conf$$subs.awk
20750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20751 _ACAWK
20752 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20753 for (key in S) S_is_set[key] = 1
20754 FS = "\a"
20758 line = $ 0
20759 nfields = split(line, field, "@")
20760 substed = 0
20761 len = length(field[1])
20762 for (i = 2; i < nfields; i++) {
20763 key = field[i]
20764 keylen = length(key)
20765 if (S_is_set[key]) {
20766 value = S[key]
20767 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20768 len += length(value) + length(field[++i])
20769 substed = 1
20770 } else
20771 len += 1 + keylen
20774 print line
20777 _ACAWK
20778 _ACEOF
20779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20780 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20781 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20782 else
20784 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20785 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20786 _ACEOF
20788 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20789 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20790 # trailing colons and then remove the whole line if VPATH becomes empty
20791 # (actually we leave an empty line to preserve line numbers).
20792 if test "x$srcdir" = x.; then
20793 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20795 s///
20796 s/^/:/
20797 s/[ ]*$/:/
20798 s/:\$(srcdir):/:/g
20799 s/:\${srcdir}:/:/g
20800 s/:@srcdir@:/:/g
20801 s/^:*//
20802 s/:*$//
20804 s/\(=[ ]*\).*/\1/
20806 s/\n//
20807 s/^[^=]*=[ ]*$//
20811 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20812 fi # test -n "$CONFIG_FILES"
20814 # Set up the scripts for CONFIG_HEADERS section.
20815 # No need to generate them if there are no CONFIG_HEADERS.
20816 # This happens for instance with `./config.status Makefile'.
20817 if test -n "$CONFIG_HEADERS"; then
20818 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20819 BEGIN {
20820 _ACEOF
20822 # Transform confdefs.h into an awk script `defines.awk', embedded as
20823 # here-document in config.status, that substitutes the proper values into
20824 # config.h.in to produce config.h.
20826 # Create a delimiter string that does not exist in confdefs.h, to ease
20827 # handling of long lines.
20828 ac_delim='%!_!# '
20829 for ac_last_try in false false :; do
20830 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20831 if test -z "$ac_tt"; then
20832 break
20833 elif $ac_last_try; then
20834 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20835 else
20836 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20838 done
20840 # For the awk script, D is an array of macro values keyed by name,
20841 # likewise P contains macro parameters if any. Preserve backslash
20842 # newline sequences.
20844 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20845 sed -n '
20846 s/.\{148\}/&'"$ac_delim"'/g
20847 t rset
20848 :rset
20849 s/^[ ]*#[ ]*define[ ][ ]*/ /
20850 t def
20852 :def
20853 s/\\$//
20854 t bsnl
20855 s/["\\]/\\&/g
20856 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20857 D["\1"]=" \3"/p
20858 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20860 :bsnl
20861 s/["\\]/\\&/g
20862 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20863 D["\1"]=" \3\\\\\\n"\\/p
20864 t cont
20865 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20866 t cont
20868 :cont
20870 s/.\{148\}/&'"$ac_delim"'/g
20871 t clear
20872 :clear
20873 s/\\$//
20874 t bsnlc
20875 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20877 :bsnlc
20878 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20879 b cont
20880 ' <confdefs.h | sed '
20881 s/'"$ac_delim"'/"\\\
20882 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20885 for (key in D) D_is_set[key] = 1
20886 FS = "\a"
20888 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20889 line = \$ 0
20890 split(line, arg, " ")
20891 if (arg[1] == "#") {
20892 defundef = arg[2]
20893 mac1 = arg[3]
20894 } else {
20895 defundef = substr(arg[1], 2)
20896 mac1 = arg[2]
20898 split(mac1, mac2, "(") #)
20899 macro = mac2[1]
20900 prefix = substr(line, 1, index(line, defundef) - 1)
20901 if (D_is_set[macro]) {
20902 # Preserve the white space surrounding the "#".
20903 print prefix "define", macro P[macro] D[macro]
20904 next
20905 } else {
20906 # Replace #undef with comments. This is necessary, for example,
20907 # in the case of _POSIX_SOURCE, which is predefined and required
20908 # on some systems where configure will not decide to define it.
20909 if (defundef == "undef") {
20910 print "/*", prefix defundef, macro, "*/"
20911 next
20915 { print }
20916 _ACAWK
20917 _ACEOF
20918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20919 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20920 fi # test -n "$CONFIG_HEADERS"
20923 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20924 shift
20925 for ac_tag
20927 case $ac_tag in
20928 :[FHLC]) ac_mode=$ac_tag; continue;;
20929 esac
20930 case $ac_mode$ac_tag in
20931 :[FHL]*:*);;
20932 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20933 :[FH]-) ac_tag=-:-;;
20934 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20935 esac
20936 ac_save_IFS=$IFS
20937 IFS=:
20938 set x $ac_tag
20939 IFS=$ac_save_IFS
20940 shift
20941 ac_file=$1
20942 shift
20944 case $ac_mode in
20945 :L) ac_source=$1;;
20946 :[FH])
20947 ac_file_inputs=
20948 for ac_f
20950 case $ac_f in
20951 -) ac_f="$ac_tmp/stdin";;
20952 *) # Look for the file first in the build tree, then in the source tree
20953 # (if the path is not absolute). The absolute path cannot be DOS-style,
20954 # because $ac_f cannot contain `:'.
20955 test -f "$ac_f" ||
20956 case $ac_f in
20957 [\\/$]*) false;;
20958 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20959 esac ||
20960 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20961 esac
20962 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20963 as_fn_append ac_file_inputs " '$ac_f'"
20964 done
20966 # Let's still pretend it is `configure' which instantiates (i.e., don't
20967 # use $as_me), people would be surprised to read:
20968 # /* config.h. Generated by config.status. */
20969 configure_input='Generated from '`
20970 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20971 `' by configure.'
20972 if test x"$ac_file" != x-; then
20973 configure_input="$ac_file. $configure_input"
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20975 $as_echo "$as_me: creating $ac_file" >&6;}
20977 # Neutralize special characters interpreted by sed in replacement strings.
20978 case $configure_input in #(
20979 *\&* | *\|* | *\\* )
20980 ac_sed_conf_input=`$as_echo "$configure_input" |
20981 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20982 *) ac_sed_conf_input=$configure_input;;
20983 esac
20985 case $ac_tag in
20986 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20987 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20988 esac
20990 esac
20992 ac_dir=`$as_dirname -- "$ac_file" ||
20993 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20994 X"$ac_file" : 'X\(//\)[^/]' \| \
20995 X"$ac_file" : 'X\(//\)$' \| \
20996 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20997 $as_echo X"$ac_file" |
20998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20999 s//\1/
21002 /^X\(\/\/\)[^/].*/{
21003 s//\1/
21006 /^X\(\/\/\)$/{
21007 s//\1/
21010 /^X\(\/\).*/{
21011 s//\1/
21014 s/.*/./; q'`
21015 as_dir="$ac_dir"; as_fn_mkdir_p
21016 ac_builddir=.
21018 case "$ac_dir" in
21019 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21021 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21022 # A ".." for each directory in $ac_dir_suffix.
21023 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21024 case $ac_top_builddir_sub in
21025 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21026 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21027 esac ;;
21028 esac
21029 ac_abs_top_builddir=$ac_pwd
21030 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21031 # for backward compatibility:
21032 ac_top_builddir=$ac_top_build_prefix
21034 case $srcdir in
21035 .) # We are building in place.
21036 ac_srcdir=.
21037 ac_top_srcdir=$ac_top_builddir_sub
21038 ac_abs_top_srcdir=$ac_pwd ;;
21039 [\\/]* | ?:[\\/]* ) # Absolute name.
21040 ac_srcdir=$srcdir$ac_dir_suffix;
21041 ac_top_srcdir=$srcdir
21042 ac_abs_top_srcdir=$srcdir ;;
21043 *) # Relative name.
21044 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21045 ac_top_srcdir=$ac_top_build_prefix$srcdir
21046 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21047 esac
21048 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21051 case $ac_mode in
21054 # CONFIG_FILE
21057 case $INSTALL in
21058 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21059 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21060 esac
21061 ac_MKDIR_P=$MKDIR_P
21062 case $MKDIR_P in
21063 [\\/$]* | ?:[\\/]* ) ;;
21064 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21065 esac
21066 _ACEOF
21068 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21069 # If the template does not know about datarootdir, expand it.
21070 # FIXME: This hack should be removed a few years after 2.60.
21071 ac_datarootdir_hack=; ac_datarootdir_seen=
21072 ac_sed_dataroot='
21073 /datarootdir/ {
21077 /@datadir@/p
21078 /@docdir@/p
21079 /@infodir@/p
21080 /@localedir@/p
21081 /@mandir@/p'
21082 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21083 *datarootdir*) ac_datarootdir_seen=yes;;
21084 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21086 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21087 _ACEOF
21088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21089 ac_datarootdir_hack='
21090 s&@datadir@&$datadir&g
21091 s&@docdir@&$docdir&g
21092 s&@infodir@&$infodir&g
21093 s&@localedir@&$localedir&g
21094 s&@mandir@&$mandir&g
21095 s&\\\${datarootdir}&$datarootdir&g' ;;
21096 esac
21097 _ACEOF
21099 # Neutralize VPATH when `$srcdir' = `.'.
21100 # Shell code in configure.ac might set extrasub.
21101 # FIXME: do we really want to maintain this feature?
21102 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21103 ac_sed_extra="$ac_vpsub
21104 $extrasub
21105 _ACEOF
21106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21108 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21109 s|@configure_input@|$ac_sed_conf_input|;t t
21110 s&@top_builddir@&$ac_top_builddir_sub&;t t
21111 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21112 s&@srcdir@&$ac_srcdir&;t t
21113 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21114 s&@top_srcdir@&$ac_top_srcdir&;t t
21115 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21116 s&@builddir@&$ac_builddir&;t t
21117 s&@abs_builddir@&$ac_abs_builddir&;t t
21118 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21119 s&@INSTALL@&$ac_INSTALL&;t t
21120 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21121 $ac_datarootdir_hack
21123 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21124 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21126 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21127 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21128 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21129 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21131 which seems to be undefined. Please make sure it is defined" >&5
21132 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21133 which seems to be undefined. Please make sure it is defined" >&2;}
21135 rm -f "$ac_tmp/stdin"
21136 case $ac_file in
21137 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21138 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21139 esac \
21140 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21144 # CONFIG_HEADER
21146 if test x"$ac_file" != x-; then
21148 $as_echo "/* $configure_input */" \
21149 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21150 } >"$ac_tmp/config.h" \
21151 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21152 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21153 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21154 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21155 else
21156 rm -f "$ac_file"
21157 mv "$ac_tmp/config.h" "$ac_file" \
21158 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21160 else
21161 $as_echo "/* $configure_input */" \
21162 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21163 || as_fn_error $? "could not create -" "$LINENO" 5
21165 # Compute "$ac_file"'s index in $config_headers.
21166 _am_arg="$ac_file"
21167 _am_stamp_count=1
21168 for _am_header in $config_headers :; do
21169 case $_am_header in
21170 $_am_arg | $_am_arg:* )
21171 break ;;
21173 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21174 esac
21175 done
21176 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21177 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21178 X"$_am_arg" : 'X\(//\)[^/]' \| \
21179 X"$_am_arg" : 'X\(//\)$' \| \
21180 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21181 $as_echo X"$_am_arg" |
21182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21183 s//\1/
21186 /^X\(\/\/\)[^/].*/{
21187 s//\1/
21190 /^X\(\/\/\)$/{
21191 s//\1/
21194 /^X\(\/\).*/{
21195 s//\1/
21198 s/.*/./; q'`/stamp-h$_am_stamp_count
21201 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21202 $as_echo "$as_me: executing $ac_file commands" >&6;}
21204 esac
21207 case $ac_file$ac_mode in
21208 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21209 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21210 # are listed without --file. Let's play safe and only enable the eval
21211 # if we detect the quoting.
21212 case $CONFIG_FILES in
21213 *\'*) eval set x "$CONFIG_FILES" ;;
21214 *) set x $CONFIG_FILES ;;
21215 esac
21216 shift
21217 for mf
21219 # Strip MF so we end up with the name of the file.
21220 mf=`echo "$mf" | sed -e 's/:.*$//'`
21221 # Check whether this is an Automake generated Makefile or not.
21222 # We used to match only the files named `Makefile.in', but
21223 # some people rename them; so instead we look at the file content.
21224 # Grep'ing the first line is not enough: some people post-process
21225 # each Makefile.in and add a new line on top of each file to say so.
21226 # Grep'ing the whole file is not good either: AIX grep has a line
21227 # limit of 2048, but all sed's we know have understand at least 4000.
21228 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21229 dirpart=`$as_dirname -- "$mf" ||
21230 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21231 X"$mf" : 'X\(//\)[^/]' \| \
21232 X"$mf" : 'X\(//\)$' \| \
21233 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21234 $as_echo X"$mf" |
21235 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21236 s//\1/
21239 /^X\(\/\/\)[^/].*/{
21240 s//\1/
21243 /^X\(\/\/\)$/{
21244 s//\1/
21247 /^X\(\/\).*/{
21248 s//\1/
21251 s/.*/./; q'`
21252 else
21253 continue
21255 # Extract the definition of DEPDIR, am__include, and am__quote
21256 # from the Makefile without running `make'.
21257 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21258 test -z "$DEPDIR" && continue
21259 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21260 test -z "am__include" && continue
21261 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21262 # When using ansi2knr, U may be empty or an underscore; expand it
21263 U=`sed -n 's/^U = //p' < "$mf"`
21264 # Find all dependency output files, they are included files with
21265 # $(DEPDIR) in their names. We invoke sed twice because it is the
21266 # simplest approach to changing $(DEPDIR) to its actual value in the
21267 # expansion.
21268 for file in `sed -n "
21269 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21270 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21271 # Make sure the directory exists.
21272 test -f "$dirpart/$file" && continue
21273 fdir=`$as_dirname -- "$file" ||
21274 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21275 X"$file" : 'X\(//\)[^/]' \| \
21276 X"$file" : 'X\(//\)$' \| \
21277 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21278 $as_echo X"$file" |
21279 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21280 s//\1/
21283 /^X\(\/\/\)[^/].*/{
21284 s//\1/
21287 /^X\(\/\/\)$/{
21288 s//\1/
21291 /^X\(\/\).*/{
21292 s//\1/
21295 s/.*/./; q'`
21296 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21297 # echo "creating $dirpart/$file"
21298 echo '# dummy' > "$dirpart/$file"
21299 done
21300 done
21303 "libtool":C)
21305 # See if we are running on zsh, and set the options which allow our
21306 # commands through without removal of \ escapes.
21307 if test -n "${ZSH_VERSION+set}" ; then
21308 setopt NO_GLOB_SUBST
21311 cfgfile="${ofile}T"
21312 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21313 $RM "$cfgfile"
21315 cat <<_LT_EOF >> "$cfgfile"
21316 #! $SHELL
21318 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21319 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21320 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21321 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21323 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21324 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21325 # Foundation, Inc.
21326 # Written by Gordon Matzigkeit, 1996
21328 # This file is part of GNU Libtool.
21330 # GNU Libtool is free software; you can redistribute it and/or
21331 # modify it under the terms of the GNU General Public License as
21332 # published by the Free Software Foundation; either version 2 of
21333 # the License, or (at your option) any later version.
21335 # As a special exception to the GNU General Public License,
21336 # if you distribute this file as part of a program or library that
21337 # is built using GNU Libtool, you may include this file under the
21338 # same distribution terms that you use for the rest of that program.
21340 # GNU Libtool is distributed in the hope that it will be useful,
21341 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21342 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21343 # GNU General Public License for more details.
21345 # You should have received a copy of the GNU General Public License
21346 # along with GNU Libtool; see the file COPYING. If not, a copy
21347 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21348 # obtained by writing to the Free Software Foundation, Inc.,
21349 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21352 # The names of the tagged configurations supported by this script.
21353 available_tags="CXX "
21355 # ### BEGIN LIBTOOL CONFIG
21357 # Which release of libtool.m4 was used?
21358 macro_version=$macro_version
21359 macro_revision=$macro_revision
21361 # Whether or not to build shared libraries.
21362 build_libtool_libs=$enable_shared
21364 # Whether or not to build static libraries.
21365 build_old_libs=$enable_static
21367 # What type of objects to build.
21368 pic_mode=$pic_mode
21370 # Whether or not to optimize for fast installation.
21371 fast_install=$enable_fast_install
21373 # Shell to use when invoking shell scripts.
21374 SHELL=$lt_SHELL
21376 # An echo program that protects backslashes.
21377 ECHO=$lt_ECHO
21379 # The PATH separator for the build system.
21380 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21382 # The host system.
21383 host_alias=$host_alias
21384 host=$host
21385 host_os=$host_os
21387 # The build system.
21388 build_alias=$build_alias
21389 build=$build
21390 build_os=$build_os
21392 # A sed program that does not truncate output.
21393 SED=$lt_SED
21395 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21396 Xsed="\$SED -e 1s/^X//"
21398 # A grep program that handles long lines.
21399 GREP=$lt_GREP
21401 # An ERE matcher.
21402 EGREP=$lt_EGREP
21404 # A literal string matcher.
21405 FGREP=$lt_FGREP
21407 # A BSD- or MS-compatible name lister.
21408 NM=$lt_NM
21410 # Whether we need soft or hard links.
21411 LN_S=$lt_LN_S
21413 # What is the maximum length of a command?
21414 max_cmd_len=$max_cmd_len
21416 # Object file suffix (normally "o").
21417 objext=$ac_objext
21419 # Executable file suffix (normally "").
21420 exeext=$exeext
21422 # whether the shell understands "unset".
21423 lt_unset=$lt_unset
21425 # turn spaces into newlines.
21426 SP2NL=$lt_lt_SP2NL
21428 # turn newlines into spaces.
21429 NL2SP=$lt_lt_NL2SP
21431 # convert \$build file names to \$host format.
21432 to_host_file_cmd=$lt_cv_to_host_file_cmd
21434 # convert \$build files to toolchain format.
21435 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21437 # An object symbol dumper.
21438 OBJDUMP=$lt_OBJDUMP
21440 # Method to check whether dependent libraries are shared objects.
21441 deplibs_check_method=$lt_deplibs_check_method
21443 # Command to use when deplibs_check_method = "file_magic".
21444 file_magic_cmd=$lt_file_magic_cmd
21446 # How to find potential files when deplibs_check_method = "file_magic".
21447 file_magic_glob=$lt_file_magic_glob
21449 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21450 want_nocaseglob=$lt_want_nocaseglob
21452 # DLL creation program.
21453 DLLTOOL=$lt_DLLTOOL
21455 # Command to associate shared and link libraries.
21456 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21458 # The archiver.
21459 AR=$lt_AR
21461 # Flags to create an archive.
21462 AR_FLAGS=$lt_AR_FLAGS
21464 # How to feed a file listing to the archiver.
21465 archiver_list_spec=$lt_archiver_list_spec
21467 # A symbol stripping program.
21468 STRIP=$lt_STRIP
21470 # Commands used to install an old-style archive.
21471 RANLIB=$lt_RANLIB
21472 old_postinstall_cmds=$lt_old_postinstall_cmds
21473 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21475 # Whether to use a lock for old archive extraction.
21476 lock_old_archive_extraction=$lock_old_archive_extraction
21478 # A C compiler.
21479 LTCC=$lt_CC
21481 # LTCC compiler flags.
21482 LTCFLAGS=$lt_CFLAGS
21484 # Take the output of nm and produce a listing of raw symbols and C names.
21485 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21487 # Transform the output of nm in a proper C declaration.
21488 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21490 # Transform the output of nm in a C name address pair.
21491 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21493 # Transform the output of nm in a C name address pair when lib prefix is needed.
21494 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21496 # Specify filename containing input files for \$NM.
21497 nm_file_list_spec=$lt_nm_file_list_spec
21499 # The root where to search for dependent libraries,and in which our libraries should be installed.
21500 lt_sysroot=$lt_sysroot
21502 # The name of the directory that contains temporary libtool files.
21503 objdir=$objdir
21505 # Used to examine libraries when file_magic_cmd begins with "file".
21506 MAGIC_CMD=$MAGIC_CMD
21508 # Must we lock files when doing compilation?
21509 need_locks=$lt_need_locks
21511 # Manifest tool.
21512 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21514 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21515 DSYMUTIL=$lt_DSYMUTIL
21517 # Tool to change global to local symbols on Mac OS X.
21518 NMEDIT=$lt_NMEDIT
21520 # Tool to manipulate fat objects and archives on Mac OS X.
21521 LIPO=$lt_LIPO
21523 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21524 OTOOL=$lt_OTOOL
21526 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21527 OTOOL64=$lt_OTOOL64
21529 # Old archive suffix (normally "a").
21530 libext=$libext
21532 # Shared library suffix (normally ".so").
21533 shrext_cmds=$lt_shrext_cmds
21535 # The commands to extract the exported symbol list from a shared archive.
21536 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21538 # Variables whose values should be saved in libtool wrapper scripts and
21539 # restored at link time.
21540 variables_saved_for_relink=$lt_variables_saved_for_relink
21542 # Do we need the "lib" prefix for modules?
21543 need_lib_prefix=$need_lib_prefix
21545 # Do we need a version for libraries?
21546 need_version=$need_version
21548 # Library versioning type.
21549 version_type=$version_type
21551 # Shared library runtime path variable.
21552 runpath_var=$runpath_var
21554 # Shared library path variable.
21555 shlibpath_var=$shlibpath_var
21557 # Is shlibpath searched before the hard-coded library search path?
21558 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21560 # Format of library name prefix.
21561 libname_spec=$lt_libname_spec
21563 # List of archive names. First name is the real one, the rest are links.
21564 # The last name is the one that the linker finds with -lNAME
21565 library_names_spec=$lt_library_names_spec
21567 # The coded name of the library, if different from the real name.
21568 soname_spec=$lt_soname_spec
21570 # Permission mode override for installation of shared libraries.
21571 install_override_mode=$lt_install_override_mode
21573 # Command to use after installation of a shared archive.
21574 postinstall_cmds=$lt_postinstall_cmds
21576 # Command to use after uninstallation of a shared archive.
21577 postuninstall_cmds=$lt_postuninstall_cmds
21579 # Commands used to finish a libtool library installation in a directory.
21580 finish_cmds=$lt_finish_cmds
21582 # As "finish_cmds", except a single script fragment to be evaled but
21583 # not shown.
21584 finish_eval=$lt_finish_eval
21586 # Whether we should hardcode library paths into libraries.
21587 hardcode_into_libs=$hardcode_into_libs
21589 # Compile-time system search path for libraries.
21590 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21592 # Run-time system search path for libraries.
21593 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21595 # Whether dlopen is supported.
21596 dlopen_support=$enable_dlopen
21598 # Whether dlopen of programs is supported.
21599 dlopen_self=$enable_dlopen_self
21601 # Whether dlopen of statically linked programs is supported.
21602 dlopen_self_static=$enable_dlopen_self_static
21604 # Commands to strip libraries.
21605 old_striplib=$lt_old_striplib
21606 striplib=$lt_striplib
21609 # The linker used to build libraries.
21610 LD=$lt_LD
21612 # How to create reloadable object files.
21613 reload_flag=$lt_reload_flag
21614 reload_cmds=$lt_reload_cmds
21616 # Commands used to build an old-style archive.
21617 old_archive_cmds=$lt_old_archive_cmds
21619 # A language specific compiler.
21620 CC=$lt_compiler
21622 # Is the compiler the GNU compiler?
21623 with_gcc=$GCC
21625 # Compiler flag to turn off builtin functions.
21626 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21628 # Additional compiler flags for building library objects.
21629 pic_flag=$lt_lt_prog_compiler_pic
21631 # How to pass a linker flag through the compiler.
21632 wl=$lt_lt_prog_compiler_wl
21634 # Compiler flag to prevent dynamic linking.
21635 link_static_flag=$lt_lt_prog_compiler_static
21637 # Does compiler simultaneously support -c and -o options?
21638 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21640 # Whether or not to add -lc for building shared libraries.
21641 build_libtool_need_lc=$archive_cmds_need_lc
21643 # Whether or not to disallow shared libs when runtime libs are static.
21644 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21646 # Compiler flag to allow reflexive dlopens.
21647 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21649 # Compiler flag to generate shared objects directly from archives.
21650 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21652 # Whether the compiler copes with passing no objects directly.
21653 compiler_needs_object=$lt_compiler_needs_object
21655 # Create an old-style archive from a shared archive.
21656 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21658 # Create a temporary old-style archive to link instead of a shared archive.
21659 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21661 # Commands used to build a shared archive.
21662 archive_cmds=$lt_archive_cmds
21663 archive_expsym_cmds=$lt_archive_expsym_cmds
21665 # Commands used to build a loadable module if different from building
21666 # a shared archive.
21667 module_cmds=$lt_module_cmds
21668 module_expsym_cmds=$lt_module_expsym_cmds
21670 # Whether we are building with GNU ld or not.
21671 with_gnu_ld=$lt_with_gnu_ld
21673 # Flag that allows shared libraries with undefined symbols to be built.
21674 allow_undefined_flag=$lt_allow_undefined_flag
21676 # Flag that enforces no undefined symbols.
21677 no_undefined_flag=$lt_no_undefined_flag
21679 # Flag to hardcode \$libdir into a binary during linking.
21680 # This must work even if \$libdir does not exist
21681 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21683 # Whether we need a single "-rpath" flag with a separated argument.
21684 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21686 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21687 # DIR into the resulting binary.
21688 hardcode_direct=$hardcode_direct
21690 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21691 # DIR into the resulting binary and the resulting library dependency is
21692 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21693 # library is relocated.
21694 hardcode_direct_absolute=$hardcode_direct_absolute
21696 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21697 # into the resulting binary.
21698 hardcode_minus_L=$hardcode_minus_L
21700 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21701 # into the resulting binary.
21702 hardcode_shlibpath_var=$hardcode_shlibpath_var
21704 # Set to "yes" if building a shared library automatically hardcodes DIR
21705 # into the library and all subsequent libraries and executables linked
21706 # against it.
21707 hardcode_automatic=$hardcode_automatic
21709 # Set to yes if linker adds runtime paths of dependent libraries
21710 # to runtime path list.
21711 inherit_rpath=$inherit_rpath
21713 # Whether libtool must link a program against all its dependency libraries.
21714 link_all_deplibs=$link_all_deplibs
21716 # Set to "yes" if exported symbols are required.
21717 always_export_symbols=$always_export_symbols
21719 # The commands to list exported symbols.
21720 export_symbols_cmds=$lt_export_symbols_cmds
21722 # Symbols that should not be listed in the preloaded symbols.
21723 exclude_expsyms=$lt_exclude_expsyms
21725 # Symbols that must always be exported.
21726 include_expsyms=$lt_include_expsyms
21728 # Commands necessary for linking programs (against libraries) with templates.
21729 prelink_cmds=$lt_prelink_cmds
21731 # Commands necessary for finishing linking programs.
21732 postlink_cmds=$lt_postlink_cmds
21734 # Specify filename containing input files.
21735 file_list_spec=$lt_file_list_spec
21737 # How to hardcode a shared library path into an executable.
21738 hardcode_action=$hardcode_action
21740 # The directories searched by this compiler when creating a shared library.
21741 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21743 # Dependencies to place before and after the objects being linked to
21744 # create a shared library.
21745 predep_objects=$lt_predep_objects
21746 postdep_objects=$lt_postdep_objects
21747 predeps=$lt_predeps
21748 postdeps=$lt_postdeps
21750 # The library search path used internally by the compiler when linking
21751 # a shared library.
21752 compiler_lib_search_path=$lt_compiler_lib_search_path
21754 # ### END LIBTOOL CONFIG
21756 _LT_EOF
21758 case $host_os in
21759 aix3*)
21760 cat <<\_LT_EOF >> "$cfgfile"
21761 # AIX sometimes has problems with the GCC collect2 program. For some
21762 # reason, if we set the COLLECT_NAMES environment variable, the problems
21763 # vanish in a puff of smoke.
21764 if test "X${COLLECT_NAMES+set}" != Xset; then
21765 COLLECT_NAMES=
21766 export COLLECT_NAMES
21768 _LT_EOF
21770 esac
21773 ltmain="$ac_aux_dir/ltmain.sh"
21776 # We use sed instead of cat because bash on DJGPP gets confused if
21777 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21778 # text mode, it properly converts lines to CR/LF. This bash problem
21779 # is reportedly fixed, but why not run on old versions too?
21780 sed '$q' "$ltmain" >> "$cfgfile" \
21781 || (rm -f "$cfgfile"; exit 1)
21783 if test x"$xsi_shell" = xyes; then
21784 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21785 func_dirname ()\
21787 \ case ${1} in\
21788 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21789 \ * ) func_dirname_result="${3}" ;;\
21790 \ esac\
21791 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21792 && mv -f "$cfgfile.tmp" "$cfgfile" \
21793 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21794 test 0 -eq $? || _lt_function_replace_fail=:
21797 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21798 func_basename ()\
21800 \ func_basename_result="${1##*/}"\
21801 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21802 && mv -f "$cfgfile.tmp" "$cfgfile" \
21803 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21804 test 0 -eq $? || _lt_function_replace_fail=:
21807 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21808 func_dirname_and_basename ()\
21810 \ case ${1} in\
21811 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21812 \ * ) func_dirname_result="${3}" ;;\
21813 \ esac\
21814 \ func_basename_result="${1##*/}"\
21815 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21816 && mv -f "$cfgfile.tmp" "$cfgfile" \
21817 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21818 test 0 -eq $? || _lt_function_replace_fail=:
21821 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21822 func_stripname ()\
21824 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21825 \ # positional parameters, so assign one to ordinary parameter first.\
21826 \ func_stripname_result=${3}\
21827 \ func_stripname_result=${func_stripname_result#"${1}"}\
21828 \ func_stripname_result=${func_stripname_result%"${2}"}\
21829 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21830 && mv -f "$cfgfile.tmp" "$cfgfile" \
21831 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21832 test 0 -eq $? || _lt_function_replace_fail=:
21835 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21836 func_split_long_opt ()\
21838 \ func_split_long_opt_name=${1%%=*}\
21839 \ func_split_long_opt_arg=${1#*=}\
21840 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21841 && mv -f "$cfgfile.tmp" "$cfgfile" \
21842 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21843 test 0 -eq $? || _lt_function_replace_fail=:
21846 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21847 func_split_short_opt ()\
21849 \ func_split_short_opt_arg=${1#??}\
21850 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21851 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21852 && mv -f "$cfgfile.tmp" "$cfgfile" \
21853 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21854 test 0 -eq $? || _lt_function_replace_fail=:
21857 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21858 func_lo2o ()\
21860 \ case ${1} in\
21861 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21862 \ *) func_lo2o_result=${1} ;;\
21863 \ esac\
21864 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21865 && mv -f "$cfgfile.tmp" "$cfgfile" \
21866 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21867 test 0 -eq $? || _lt_function_replace_fail=:
21870 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21871 func_xform ()\
21873 func_xform_result=${1%.*}.lo\
21874 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21875 && mv -f "$cfgfile.tmp" "$cfgfile" \
21876 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21877 test 0 -eq $? || _lt_function_replace_fail=:
21880 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21881 func_arith ()\
21883 func_arith_result=$(( $* ))\
21884 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21885 && mv -f "$cfgfile.tmp" "$cfgfile" \
21886 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21887 test 0 -eq $? || _lt_function_replace_fail=:
21890 sed -e '/^func_len ()$/,/^} # func_len /c\
21891 func_len ()\
21893 func_len_result=${#1}\
21894 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21895 && mv -f "$cfgfile.tmp" "$cfgfile" \
21896 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21897 test 0 -eq $? || _lt_function_replace_fail=:
21901 if test x"$lt_shell_append" = xyes; then
21902 sed -e '/^func_append ()$/,/^} # func_append /c\
21903 func_append ()\
21905 eval "${1}+=\\${2}"\
21906 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21907 && mv -f "$cfgfile.tmp" "$cfgfile" \
21908 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21909 test 0 -eq $? || _lt_function_replace_fail=:
21912 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21913 func_append_quoted ()\
21915 \ func_quote_for_eval "${2}"\
21916 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21917 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21918 && mv -f "$cfgfile.tmp" "$cfgfile" \
21919 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21920 test 0 -eq $? || _lt_function_replace_fail=:
21923 # Save a `func_append' function call where possible by direct use of '+='
21924 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21925 && mv -f "$cfgfile.tmp" "$cfgfile" \
21926 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21927 test 0 -eq $? || _lt_function_replace_fail=:
21928 else
21929 # Save a `func_append' function call even when '+=' is not available
21930 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21931 && mv -f "$cfgfile.tmp" "$cfgfile" \
21932 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21933 test 0 -eq $? || _lt_function_replace_fail=:
21936 if test x"$_lt_function_replace_fail" = x":"; then
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21938 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21942 mv -f "$cfgfile" "$ofile" ||
21943 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21944 chmod +x "$ofile"
21947 cat <<_LT_EOF >> "$ofile"
21949 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21951 # The linker used to build libraries.
21952 LD=$lt_LD_CXX
21954 # How to create reloadable object files.
21955 reload_flag=$lt_reload_flag_CXX
21956 reload_cmds=$lt_reload_cmds_CXX
21958 # Commands used to build an old-style archive.
21959 old_archive_cmds=$lt_old_archive_cmds_CXX
21961 # A language specific compiler.
21962 CC=$lt_compiler_CXX
21964 # Is the compiler the GNU compiler?
21965 with_gcc=$GCC_CXX
21967 # Compiler flag to turn off builtin functions.
21968 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21970 # Additional compiler flags for building library objects.
21971 pic_flag=$lt_lt_prog_compiler_pic_CXX
21973 # How to pass a linker flag through the compiler.
21974 wl=$lt_lt_prog_compiler_wl_CXX
21976 # Compiler flag to prevent dynamic linking.
21977 link_static_flag=$lt_lt_prog_compiler_static_CXX
21979 # Does compiler simultaneously support -c and -o options?
21980 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21982 # Whether or not to add -lc for building shared libraries.
21983 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21985 # Whether or not to disallow shared libs when runtime libs are static.
21986 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21988 # Compiler flag to allow reflexive dlopens.
21989 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21991 # Compiler flag to generate shared objects directly from archives.
21992 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21994 # Whether the compiler copes with passing no objects directly.
21995 compiler_needs_object=$lt_compiler_needs_object_CXX
21997 # Create an old-style archive from a shared archive.
21998 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22000 # Create a temporary old-style archive to link instead of a shared archive.
22001 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22003 # Commands used to build a shared archive.
22004 archive_cmds=$lt_archive_cmds_CXX
22005 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22007 # Commands used to build a loadable module if different from building
22008 # a shared archive.
22009 module_cmds=$lt_module_cmds_CXX
22010 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22012 # Whether we are building with GNU ld or not.
22013 with_gnu_ld=$lt_with_gnu_ld_CXX
22015 # Flag that allows shared libraries with undefined symbols to be built.
22016 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22018 # Flag that enforces no undefined symbols.
22019 no_undefined_flag=$lt_no_undefined_flag_CXX
22021 # Flag to hardcode \$libdir into a binary during linking.
22022 # This must work even if \$libdir does not exist
22023 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22025 # Whether we need a single "-rpath" flag with a separated argument.
22026 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22028 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22029 # DIR into the resulting binary.
22030 hardcode_direct=$hardcode_direct_CXX
22032 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22033 # DIR into the resulting binary and the resulting library dependency is
22034 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22035 # library is relocated.
22036 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22038 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22039 # into the resulting binary.
22040 hardcode_minus_L=$hardcode_minus_L_CXX
22042 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22043 # into the resulting binary.
22044 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22046 # Set to "yes" if building a shared library automatically hardcodes DIR
22047 # into the library and all subsequent libraries and executables linked
22048 # against it.
22049 hardcode_automatic=$hardcode_automatic_CXX
22051 # Set to yes if linker adds runtime paths of dependent libraries
22052 # to runtime path list.
22053 inherit_rpath=$inherit_rpath_CXX
22055 # Whether libtool must link a program against all its dependency libraries.
22056 link_all_deplibs=$link_all_deplibs_CXX
22058 # Set to "yes" if exported symbols are required.
22059 always_export_symbols=$always_export_symbols_CXX
22061 # The commands to list exported symbols.
22062 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22064 # Symbols that should not be listed in the preloaded symbols.
22065 exclude_expsyms=$lt_exclude_expsyms_CXX
22067 # Symbols that must always be exported.
22068 include_expsyms=$lt_include_expsyms_CXX
22070 # Commands necessary for linking programs (against libraries) with templates.
22071 prelink_cmds=$lt_prelink_cmds_CXX
22073 # Commands necessary for finishing linking programs.
22074 postlink_cmds=$lt_postlink_cmds_CXX
22076 # Specify filename containing input files.
22077 file_list_spec=$lt_file_list_spec_CXX
22079 # How to hardcode a shared library path into an executable.
22080 hardcode_action=$hardcode_action_CXX
22082 # The directories searched by this compiler when creating a shared library.
22083 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22085 # Dependencies to place before and after the objects being linked to
22086 # create a shared library.
22087 predep_objects=$lt_predep_objects_CXX
22088 postdep_objects=$lt_postdep_objects_CXX
22089 predeps=$lt_predeps_CXX
22090 postdeps=$lt_postdeps_CXX
22092 # The library search path used internally by the compiler when linking
22093 # a shared library.
22094 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22096 # ### END LIBTOOL TAG CONFIG: CXX
22097 _LT_EOF
22100 "ac_config.h":C) sed s/PACKAGE/TANGO_PACKAGE/g <ac_config.h.tmp>ac_config.h ;;
22102 esac
22103 done # for ac_tag
22106 as_fn_exit 0
22107 _ACEOF
22108 ac_clean_files=$ac_clean_files_save
22110 test $ac_write_fail = 0 ||
22111 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22114 # configure is writing to config.log, and then calls config.status.
22115 # config.status does its own redirection, appending to config.log.
22116 # Unfortunately, on DOS this fails, as config.log is still kept open
22117 # by configure, so config.status won't be able to write to it; its
22118 # output is simply discarded. So we exec the FD to /dev/null,
22119 # effectively closing config.log, so it can be properly (re)opened and
22120 # appended to by config.status. When coming back to configure, we
22121 # need to make the FD available again.
22122 if test "$no_create" != yes; then
22123 ac_cs_success=:
22124 ac_config_status_args=
22125 test "$silent" = yes &&
22126 ac_config_status_args="$ac_config_status_args --quiet"
22127 exec 5>/dev/null
22128 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22129 exec 5>>config.log
22130 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22131 # would make configure fail if this is the last instruction.
22132 $ac_cs_success || as_fn_exit 1
22136 # CONFIG_SUBDIRS section.
22138 if test "$no_recursion" != yes; then
22140 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
22141 # so they do not pile up.
22142 ac_sub_configure_args=
22143 ac_prev=
22144 eval "set x $ac_configure_args"
22145 shift
22146 for ac_arg
22148 if test -n "$ac_prev"; then
22149 ac_prev=
22150 continue
22152 case $ac_arg in
22153 -cache-file | --cache-file | --cache-fil | --cache-fi \
22154 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22155 ac_prev=cache_file ;;
22156 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22157 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22158 | --c=*)
22160 --config-cache | -C)
22162 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22163 ac_prev=srcdir ;;
22164 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22166 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22167 ac_prev=prefix ;;
22168 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22170 --disable-option-checking)
22173 case $ac_arg in
22174 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22175 esac
22176 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
22177 esac
22178 done
22180 # Always prepend --prefix to ensure using the same prefix
22181 # in subdir configurations.
22182 ac_arg="--prefix=$prefix"
22183 case $ac_arg in
22184 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22185 esac
22186 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
22188 # Pass --silent
22189 if test "$silent" = yes; then
22190 ac_sub_configure_args="--silent $ac_sub_configure_args"
22193 # Always prepend --disable-option-checking to silence warnings, since
22194 # different subdirs can have different --enable and --with options.
22195 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
22197 ac_popdir=`pwd`
22198 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22200 # Do not complain, so a configure script can configure whichever
22201 # parts of a large source tree are present.
22202 test -d "$srcdir/$ac_dir" || continue
22204 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22205 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
22206 $as_echo "$ac_msg" >&6
22207 as_dir="$ac_dir"; as_fn_mkdir_p
22208 ac_builddir=.
22210 case "$ac_dir" in
22211 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22213 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22214 # A ".." for each directory in $ac_dir_suffix.
22215 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22216 case $ac_top_builddir_sub in
22217 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22218 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22219 esac ;;
22220 esac
22221 ac_abs_top_builddir=$ac_pwd
22222 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22223 # for backward compatibility:
22224 ac_top_builddir=$ac_top_build_prefix
22226 case $srcdir in
22227 .) # We are building in place.
22228 ac_srcdir=.
22229 ac_top_srcdir=$ac_top_builddir_sub
22230 ac_abs_top_srcdir=$ac_pwd ;;
22231 [\\/]* | ?:[\\/]* ) # Absolute name.
22232 ac_srcdir=$srcdir$ac_dir_suffix;
22233 ac_top_srcdir=$srcdir
22234 ac_abs_top_srcdir=$srcdir ;;
22235 *) # Relative name.
22236 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22237 ac_top_srcdir=$ac_top_build_prefix$srcdir
22238 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22239 esac
22240 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22243 cd "$ac_dir"
22245 # Check for guested configure; otherwise get Cygnus style configure.
22246 if test -f "$ac_srcdir/configure.gnu"; then
22247 ac_sub_configure=$ac_srcdir/configure.gnu
22248 elif test -f "$ac_srcdir/configure"; then
22249 ac_sub_configure=$ac_srcdir/configure
22250 elif test -f "$ac_srcdir/configure.in"; then
22251 # This should be Cygnus configure.
22252 ac_sub_configure=$ac_aux_dir/configure
22253 else
22254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
22255 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22256 ac_sub_configure=
22259 # The recursion is here.
22260 if test -n "$ac_sub_configure"; then
22261 # Make the cache file name correct relative to the subdirectory.
22262 case $cache_file in
22263 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22264 *) # Relative name.
22265 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22266 esac
22268 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22269 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22270 # The eval makes quoting arguments work.
22271 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22272 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22273 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
22276 cd "$ac_popdir"
22277 done
22279 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22281 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
22287 Configuration ($PACKAGE):
22289 Source code location: ${srcdir}
22290 Version: ${VERSION}
22291 Compiler: ${ac_ct_CC},${ac_ct_CXX}
22293 OMNIORB PATH: ${OMNI_ROOT}
22294 OMNIORB VERSION: ${OMNI_VERSION}
22296 ZMQ PATH: ${ZMQ_ROOT}
22297 ZMQ VERSION: ${ZMQ_VERSION}
22299 JAVA PATH: ${with_java}
22300 JAVA VERSION: ${JAVA_VERSION}
22302 ${DB_NAME} CLIENT LIB: ${DB_LDFLAGS} ${DB_LDLIBS}
22303 ${DB_NAME} VERSION: ${DB_VERSION}
22304 ${DB_NAME} CONNECTION: ${MYSQL_CONNECTION}
22306 build:
22307 libraries: ${enable_lib}
22308 java application: ${enable_java}
22309 access control server: ${enable_dbserver}
22310 database server: ${enable_dbserver}
22311 database schema create: ${enable_db_schema_create}
22313 Please check whether the configuration I detected matches what you
22314 would like to have.
22316 " >&5
22317 $as_echo "
22318 Configuration ($PACKAGE):
22320 Source code location: ${srcdir}
22321 Version: ${VERSION}
22322 Compiler: ${ac_ct_CC},${ac_ct_CXX}
22324 OMNIORB PATH: ${OMNI_ROOT}
22325 OMNIORB VERSION: ${OMNI_VERSION}
22327 ZMQ PATH: ${ZMQ_ROOT}
22328 ZMQ VERSION: ${ZMQ_VERSION}
22330 JAVA PATH: ${with_java}
22331 JAVA VERSION: ${JAVA_VERSION}
22333 ${DB_NAME} CLIENT LIB: ${DB_LDFLAGS} ${DB_LDLIBS}
22334 ${DB_NAME} VERSION: ${DB_VERSION}
22335 ${DB_NAME} CONNECTION: ${MYSQL_CONNECTION}
22337 build:
22338 libraries: ${enable_lib}
22339 java application: ${enable_java}
22340 access control server: ${enable_dbserver}
22341 database server: ${enable_dbserver}
22342 database schema create: ${enable_db_schema_create}
22344 Please check whether the configuration I detected matches what you
22345 would like to have.
22347 " >&6; }